llvm-6502/test/Instrumentation/AddressSanitizer
Alexey Samsonov cbd84586ef [ASan] Use metadata to pass source-level information from Clang to ASan.
Instead of creating global variables for source locations and global names,
just create metadata nodes and strings. They will be transformed into actual
globals in the instrumentation pass (if necessary). This approach is more
flexible:
1) we don't have to ensure that our custom globals survive all the optimizations
2) if globals are discarded for some reason, we will simply ignore metadata for them
   and won't have to erase corresponding globals
3) metadata for source locations can be reused for other purposes: e.g. we may
   attach source location metadata to alloca instructions and provide better descriptions
   for stack variables in ASan error reports.

No functionality change.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@214604 91177308-0d34-0410-b5e6-96231b3b80d8
2014-08-02 00:35:50 +00:00
..
X86 [asan] Support x86 REP MOVS asm instrumentation. 2014-07-31 09:11:04 +00:00
adaptive_global_redzones.ll [asan] adaptive redzones for globals (the larger the global the larger is the redzone) 2013-01-24 10:35:40 +00:00
asan-vs-gvn.ll [ASan] Add -asan-module to the ASan .ll tests. 2014-03-20 11:16:34 +00:00
basic.ll CHECK-LABEL-ize one test 2014-07-16 18:11:31 +00:00
coverage-dbg.ll [asancov] Fix coverage line info some more. 2014-06-05 14:34:45 +00:00
coverage.ll [asan] Fix coverage instrumentation with -asan-globals=0. 2014-06-03 14:16:00 +00:00
debug_info.ll Debug info: split out complex DIVariable address expressions into a 2014-06-30 17:17:35 +00:00
do-not-instrument-internal-globals.ll [ASan] Add -asan-module to the ASan .ll tests. 2014-03-20 11:16:34 +00:00
do-not-instrument-llvm-metadata.ll IR: Add COMDATs to the IR 2014-06-27 18:19:56 +00:00
do-not-touch-comdat-global.ll Add a test case for r212596 2014-07-11 16:32:53 +00:00
do-not-touch-odr-global.ll [ASan] Add -asan-module to the ASan .ll tests. 2014-03-20 11:16:34 +00:00
do-not-touch-threadlocal.ll [ASan] Add -asan-module to the ASan .ll tests. 2014-03-20 11:16:34 +00:00
freebsd.ll [ASan] Add -asan-module to the ASan .ll tests. 2014-03-20 11:16:34 +00:00
global_metadata.ll [ASan] Use metadata to pass source-level information from Clang to ASan. 2014-08-02 00:35:50 +00:00
instrument_global.ll [ASan] Collect unmangled names of global variables in Clang to print them in error reports. 2014-07-12 00:42:52 +00:00
instrument_initializer_metadata.ll [ASan] Collect unmangled names of global variables in Clang to print them in error reports. 2014-07-12 00:42:52 +00:00
instrument_load_then_store.ll [ASan] Add -asan-module to the ASan .ll tests. 2014-03-20 11:16:34 +00:00
instrument-no-return.ll [ASan] Add -asan-module to the ASan .ll tests. 2014-03-20 11:16:34 +00:00
instrumentation-with-call-threshold.ll [asan] properly instrument memory accesses that have small alignment (smaller than min(8,size)) by making two checks instead of one. This may slowdown some cases, e.g. long long on 32-bit or wide loads produced after loop unrolling. The benefit is higher sencitivity. 2014-05-23 11:52:07 +00:00
keep-instrumented_functions.ll [ASan] Add -asan-module to the ASan .ll tests. 2014-03-20 11:16:34 +00:00
lifetime-uar.ll [ASan] Add -asan-module to the ASan .ll tests. 2014-03-20 11:16:34 +00:00
lifetime.ll Remove top-level Clang -fsanitize= flags for optional ASan features. 2014-06-13 17:53:44 +00:00
stack_layout.ll [ASan] Add -asan-module to the ASan .ll tests. 2014-03-20 11:16:34 +00:00
stack-poisoning.ll Remove top-level Clang -fsanitize= flags for optional ASan features. 2014-06-13 17:53:44 +00:00
test64.ll [asan] properly instrument memory accesses that have small alignment (smaller than min(8,size)) by making two checks instead of one. This may slowdown some cases, e.g. long long on 32-bit or wide loads produced after loop unrolling. The benefit is higher sencitivity. 2014-05-23 11:52:07 +00:00
ubsan.ll [ASan] Don't instrument load/stores with !nosanitize metadata. 2014-07-17 18:48:12 +00:00