llvm-project/llvm/test/Instrumentation/MemorySanitizer
Fangrui Song f4dfd63c74 [IR] Disallow llvm.global_ctors and llvm.global_dtors of the 2-field form in textual format
The 3-field form was introduced by D3499 in 2014 and the legacy 2-field
form was planned to be removed in LLVM 4.0

For the textual format, this patch migrates the existing 2-field form to
use the 3-field form and deletes the compatibility code.
test/Verifier/global-ctors-2.ll checks we have a friendly error message.

For bitcode, lib/IR/AutoUpgrade UpgradeGlobalVariables will upgrade the
2-field form (add i8* null as the third field).

Reviewed By: rnk, dexonsmith

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

llvm-svn: 360742
2019-05-15 02:35:32 +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][MSan] Add Options Handling 2019-02-04 21:02:49 +00:00
alloca.ll MSan: handle llvm.lifetime.start intrinsic 2019-04-30 08:35:14 +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
bmi.ll [msan] Instrument x86 BMI intrinsics. 2019-03-04 22:58:20 +00:00
byval-alignment.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
check_access_address.ll IR: Support parsing numeric block ids, and emit them in textual output. 2019-03-22 18:27:13 +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 IR: Support parsing numeric block ids, and emit them in textual output. 2019-03-22 18:27:13 +00:00
msan_kernel_basic.ll IR: Support parsing numeric block ids, and emit them in textual output. 2019-03-22 18:27:13 +00:00
msan_llvm_is_constant.ll [MSan] Apply the ctor creation scheme of TSan 2019-01-16 11:14:07 +00:00
msan_x86_bts_asm.ll IR: Support parsing numeric block ids, and emit them in textual output. 2019-03-22 18:27:13 +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 IR: Support parsing numeric block ids, and emit them in textual output. 2019-03-22 18:27:13 +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