1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-10-21 12:02:58 +02:00
llvm-mirror/test/Instrumentation/AddressSanitizer
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 [asan] Don't run stack malloc on functions containing inline assembly. 2015-06-25 23:35:45 +00:00
adaptive_global_redzones.ll
asan-vs-gvn.ll [opaque pointer type] Add textual IR support for explicit type parameter to gep operator 2015-03-13 18:20:45 +00:00
basic.ll [asan] Rename the ABI versioning symbol to '__asan_version_mismatch_check' instead of abusing '__asan_init' 2015-07-23 10:54:06 +00:00
debug_info_noninstrumented_alloca.ll [asan] Improve moving of non-instrumented allocas 2015-07-22 10:25:38 +00:00
debug_info.ll DI: Require subprogram definitions to be distinct 2015-08-28 20:26:49 +00:00
do-not-instrument-cstring.ll Recommit of r223513 and r223514. 2014-12-05 22:19:18 +00:00
do-not-instrument-internal-globals.ll
do-not-instrument-llvm-metadata-darwin.ll [asan] Do not instrument special purpose LLVM sections. 2015-06-25 23:35:48 +00:00
do-not-instrument-llvm-metadata.ll [asan] Do not instrument special purpose LLVM sections. 2015-06-25 23:35:48 +00:00
do-not-instrument-promotable-allocas.ll [opaque pointer type] Add textual IR support for explicit type parameter to load instruction 2015-02-27 21:17:42 +00:00
do-not-touch-comdat-global.ll Change the .ll syntax for comdats and add a syntactic sugar. 2015-01-06 22:55:16 +00:00
do-not-touch-odr-global.ll
do-not-touch-threadlocal.ll
experiment-call.ll asan: optimization experiments 2015-03-17 16:59:19 +00:00
experiment.ll asan: optimization experiments 2015-03-17 16:59:19 +00:00
freebsd.ll [opaque pointer type] Add textual IR support for explicit type parameter to load instruction 2015-02-27 21:17:42 +00:00
global_metadata.ll Changed renaming of local symbols by inserting a dot vefore the numeric suffix. 2015-05-12 16:47:30 +00:00
instrument_global.ll [opaque pointer type] Add textual IR support for explicit type parameter to gep operator 2015-03-13 18:20:45 +00:00
instrument_initializer_metadata.ll IR: Make metadata typeless in assembly 2014-12-15 19:07:53 +00:00
instrument_load_then_store.ll [opaque pointer type] Add textual IR support for explicit type parameter to load instruction 2015-02-27 21:17:42 +00:00
instrument-dynamic-allocas.ll [ASan] New approach to dynamic allocas unpoisoning. Patch by Max Ostapenko! 2015-05-28 07:51:49 +00:00
instrument-no-return.ll Move the personality function from LandingPadInst to Function 2015-06-17 20:52:32 +00:00
instrument-stack.ll asan: do not instrument direct inbounds accesses to stack variables 2015-03-04 13:27:53 +00:00
instrumentation-with-call-threshold.ll [opaque pointer type] Add textual IR support for explicit type parameter to load instruction 2015-02-27 21:17:42 +00:00
lifetime-uar.ll [asan] Skip promotable allocas to improve performance at -O0 2015-02-27 03:12:36 +00:00
lifetime.ll [asan] Skip promotable allocas to improve performance at -O0 2015-02-27 03:12:36 +00:00
localescape.ll Re-land 242726 to use RAII to do cleanup 2015-07-21 17:40:14 +00:00
stack_dynamic_alloca.ll [ASan] Disable dynamic alloca and UAR detection in presence of returns_twice calls. 2015-07-29 19:36:08 +00:00
stack_layout.ll [asan] Skip promotable allocas to improve performance at -O0 2015-02-27 03:12:36 +00:00
stack-poisoning.ll [opaque pointer type] Add textual IR support for explicit type parameter to load instruction 2015-02-27 21:17:42 +00:00
test64.ll [opaque pointer type] Add textual IR support for explicit type parameter to load instruction 2015-02-27 21:17:42 +00:00
ubsan.ll [opaque pointer type] Add textual IR support for explicit type parameter to load instruction 2015-02-27 21:17:42 +00:00