1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-10-25 05:52:53 +02:00
llvm-mirror/test/Instrumentation/MemorySanitizer
Duncan P. N. Exon Smith 0c1aee0b16 DI: Require subprogram definitions to be distinct
As a follow-up to r246098, require `DISubprogram` definitions
(`isDefinition: true`) to be 'distinct'.  Specifically, add an assembler
check, a verifier check, and bitcode upgrading logic to combat testcase
bitrot after the `DIBuilder` change.

While working on the testcases, I realized that
test/Linker/subprogram-linkonce-weak-odr.ll isn't relevant anymore.  Its
purpose was to check for a corner case in PR22792 where two subprogram
definitions match exactly and share the same metadata node.  The new
verifier check, requiring that subprogram definitions are 'distinct',
precludes that possibility.

I updated almost all the IR with the following script:

    git grep -l -E -e '= !DISubprogram\(.* isDefinition: true' |
    grep -v test/Bitcode |
    xargs sed -i '' -e 's/= \(!DISubprogram(.*, isDefinition: true\)/= distinct \1/'

Likely some variant of would work for out-of-tree testcases.

llvm-svn: 246327
2015-08-28 20:26:49 +00:00
..
X86
array_types.ll [opaque pointer type] Add textual IR support for explicit type parameter to load instruction 2015-02-27 21:17:42 +00:00
atomics.ll Use CHECK-LABEL in MSan IR tests. 2015-08-25 20:59:26 +00:00
byval-alignment.ll [msan] Fix handling of byval arguments with large alignment. 2014-10-17 23:29:44 +00:00
check_access_address.ll Use CHECK-LABEL in MSan IR tests. 2015-08-25 20:59:26 +00:00
check-constant-shadow.ll [msan] Optimize -msan-check-constant-shadow. 2015-01-20 15:21:35 +00:00
instrumentation-with-call-threshold.ll [opaque pointer type] Add textual IR support for explicit type parameter to the call instruction 2015-04-16 23:24:18 +00:00
missing_origin.ll [opaque pointer type] Add textual IR support for explicit type parameter to load instruction 2015-02-27 21:17:42 +00:00
msan_basic.ll [msan] Precise instrumentation for icmp sgt %x, -1. 2015-08-25 22:19:11 +00:00
mul_by_constant.ll
origin-alignment.ll [msan] Avoid extra origin address realignment. 2014-12-05 14:34:03 +00:00
return_from_main.ll Use CHECK-LABEL in MSan IR tests. 2015-08-25 20:59:26 +00:00
store-long-origin.ll [opaque pointer type] Add textual IR support for explicit type parameter to getelementptr instruction 2015-02-27 19:29:02 +00:00
store-origin.ll DI: Require subprogram definitions to be distinct 2015-08-28 20:26:49 +00:00
unreachable.ll Use CHECK-LABEL in MSan IR tests. 2015-08-25 20:59:26 +00:00
vector_arith.ll
vector_cvt.ll Use CHECK-LABEL in MSan IR tests. 2015-08-25 20:59:26 +00:00
vector_pack.ll
vector_shift.ll Use CHECK-LABEL in MSan IR tests. 2015-08-25 20:59:26 +00:00