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-vs-gvn.ll
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
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
do-not-touch-threadlocal.ll
freebsd.ll
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
instrument-no-return.ll
instrumentation-with-call-threshold.ll
keep-instrumented_functions.ll
lifetime-uar.ll
lifetime.ll Remove top-level Clang -fsanitize= flags for optional ASan features. 2014-06-13 17:53:44 +00:00
stack_layout.ll
stack-poisoning.ll Remove top-level Clang -fsanitize= flags for optional ASan features. 2014-06-13 17:53:44 +00:00
test64.ll
ubsan.ll [ASan] Don't instrument load/stores with !nosanitize metadata. 2014-07-17 18:48:12 +00:00