llvm/test/Instrumentation/MemorySanitizer
Duncan P. N. Exon Smith a5ae7c1c9f 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.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@246327 91177308-0d34-0410-b5e6-96231b3b80d8
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 [msan] Fix handling of multiplication by a constant with a number of trailing zeroes. 2014-06-17 09:23:12 +00:00
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 [msan] Handle X86 *.psad.* and *.pmadd.* intrinsics. 2014-06-18 12:02:29 +00:00
vector_cvt.ll Use CHECK-LABEL in MSan IR tests. 2015-08-25 20:59:26 +00:00
vector_pack.ll [msan] Fix vector pack intrinsic handling. 2014-06-09 08:40:16 +00:00
vector_shift.ll Use CHECK-LABEL in MSan IR tests. 2015-08-25 20:59:26 +00:00