1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-10-19 02:52:53 +02:00
llvm-mirror/test/Instrumentation/MemorySanitizer
Philip Pfaffe 65df098609 [NewPM] Port Msan
Summary:
Keeping msan a function pass requires replacing the module level initialization:
That means, don't define a ctor function which calls __msan_init, instead just
declare the init function at the first access, and add that to the global ctors
list.

Changes:
- Pull the actual sanitizer and the wrapper pass apart.
- Add a newpm msan pass. The function pass inserts calls to runtime
  library functions, for which it inserts declarations as necessary.
- Update tests.

Caveats:
- There is one test that I dropped, because it specifically tested the
  definition of the ctor.

Reviewers: chandlerc, fedor.sergeev, leonardchan, vitalybuka

Subscribers: sdardis, nemanjai, javed.absar, hiraditya, kbarton, bollu, atanasyan, jsji

Differential Revision: https://reviews.llvm.org/D55647

llvm-svn: 350305
2019-01-03 13:42:44 +00:00
..
AArch64 [NewPM] Port Msan 2019-01-03 13:42:44 +00:00
Mips [NewPM] Port Msan 2019-01-03 13:42:44 +00:00
PowerPC [NewPM] Port Msan 2019-01-03 13:42:44 +00:00
X86 [NewPM] Port Msan 2019-01-03 13:42:44 +00:00
alloca.ll [NewPM] Port Msan 2019-01-03 13:42:44 +00:00
array_types.ll [NewPM] Port Msan 2019-01-03 13:42:44 +00:00
atomics.ll [NewPM] Port Msan 2019-01-03 13:42:44 +00:00
byval-alignment.ll [NewPM] Port Msan 2019-01-03 13:42:44 +00:00
check_access_address.ll [NewPM] Port Msan 2019-01-03 13:42:44 +00:00
check-constant-shadow.ll [NewPM] Port Msan 2019-01-03 13:42:44 +00:00
csr.ll [NewPM] Port Msan 2019-01-03 13:42:44 +00:00
instrumentation-with-call-threshold.ll [NewPM] Port Msan 2019-01-03 13:42:44 +00:00
manual-shadow.ll [NewPM] Port Msan 2019-01-03 13:42:44 +00:00
masked-store-load.ll [NewPM] Port Msan 2019-01-03 13:42:44 +00:00
missing_origin.ll [NewPM] Port Msan 2019-01-03 13:42:44 +00:00
msan_asm_conservative.ll [NewPM] Port Msan 2019-01-03 13:42:44 +00:00
msan_basic.ll [NewPM] Port Msan 2019-01-03 13:42:44 +00:00
msan_kernel_basic.ll [NewPM] Port Msan 2019-01-03 13:42:44 +00:00
msan_llvm_is_constant.ll [MSan] Handle llvm.is.constant intrinsic 2018-12-31 09:42:23 +00:00
msan_x86_bts_asm.ll [NewPM] Port Msan 2019-01-03 13:42:44 +00:00
msan_x86intrinsics.ll [NewPM] Port Msan 2019-01-03 13:42:44 +00:00
mul_by_constant.ll [NewPM] Port Msan 2019-01-03 13:42:44 +00:00
nosanitize.ll [NewPM] Port Msan 2019-01-03 13:42:44 +00:00
origin-alignment.ll [NewPM] Port Msan 2019-01-03 13:42:44 +00:00
origin-array.ll [NewPM] Port Msan 2019-01-03 13:42:44 +00:00
pr32842.ll [NewPM] Port Msan 2019-01-03 13:42:44 +00:00
return_from_main.ll [NewPM] Port Msan 2019-01-03 13:42:44 +00:00
store-long-origin.ll [NewPM] Port Msan 2019-01-03 13:42:44 +00:00
store-origin.ll [NewPM] Port Msan 2019-01-03 13:42:44 +00:00
str-nobuiltin.ll [NewPM] Port Msan 2019-01-03 13:42:44 +00:00
unreachable.ll [NewPM] Port Msan 2019-01-03 13:42:44 +00:00
unsized_type.ll [NewPM] Port Msan 2019-01-03 13:42:44 +00:00
vector_arith.ll [NewPM] Port Msan 2019-01-03 13:42:44 +00:00
vector_cmp.ll [NewPM] Port Msan 2019-01-03 13:42:44 +00:00
vector_cvt.ll [NewPM] Port Msan 2019-01-03 13:42:44 +00:00
vector_pack.ll [NewPM] Port Msan 2019-01-03 13:42:44 +00:00
vector_shift.ll [NewPM] Port Msan 2019-01-03 13:42:44 +00:00
with-call-type-size.ll [NewPM] Port Msan 2019-01-03 13:42:44 +00:00