1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-26 04:32:44 +01:00
llvm-mirror/test/Instrumentation
Alexander Potapenko d0446d3d9b [MSan] Add KMSAN instrumentation to MSan pass
Introduce the -msan-kernel flag, which enables the kernel instrumentation.

The main differences between KMSAN and MSan instrumentations are:

- KMSAN implies msan-track-origins=2, msan-keep-going=true;
- there're no explicit accesses to shadow and origin memory.
  Shadow and origin values for a particular X-byte memory location are
  read and written via pointers returned by
  __msan_metadata_ptr_for_load_X(u8 *addr) and
  __msan_store_shadow_origin_X(u8 *addr, uptr shadow, uptr origin);
- TLS variables are stored in a single struct in per-task storage. A call
  to a function returning that struct is inserted into every instrumented
  function before the entry block;
- __msan_warning() takes a 32-bit origin parameter;
- local variables are poisoned with __msan_poison_alloca() upon function
  entry and unpoisoned with __msan_unpoison_alloca() before leaving the
  function;
- the pass doesn't declare any global variables or add global constructors
  to the translation unit.

llvm-svn: 341637
2018-09-07 09:10:30 +00:00
..
AddressSanitizer Fix global_metadata_external_comdat.ll test 2018-08-21 00:03:21 +00:00
BoundsChecking Fix crash in bounds checking. 2018-08-03 17:12:23 +00:00
DataFlowSanitizer [DebugInfo] Add DILabel metadata and intrinsic llvm.dbg.label. 2018-05-09 02:40:45 +00:00
EfficiencySanitizer
HWAddressSanitizer [hwasan] Add -hwasan-with-ifunc flag. 2018-08-10 16:21:37 +00:00
InstrProfiling [InstrProf] Use atomic profile counter updates for TSan 2018-08-16 22:24:47 +00:00
MemorySanitizer [MSan] Add KMSAN instrumentation to MSan pass 2018-09-07 09:10:30 +00:00
SanitizerCoverage [libFuzzer] Port to Windows 2018-08-30 15:54:44 +00:00
ThreadSanitizer [DebugInfo] Add DILabel metadata and intrinsic llvm.dbg.label. 2018-05-09 02:40:45 +00:00
cgprofile.ll [BFI] Use rounding while computing profile counts. 2018-08-16 00:26:59 +00:00