llvm-project/llvm/test/MC
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 [AArch64][SVE2] Asm: add SQRDMLAH/SQRDMLSH instructions 2019-05-14 15:10:16 +00:00
AMDGPU [AMDGPU][GFX8][GFX9] Corrected predicate of v_*_co_u32 aliases 2019-05-14 19:16:24 +00:00
ARM [IR] Disallow llvm.global_ctors and llvm.global_dtors of the 2-field form in textual format 2019-05-15 02:35:32 +00:00
AVR [AVR] Fix the inst-cbr test 2019-01-18 10:11:33 +00:00
AsmParser [llvm-readobj] Change -t to --symbols in tests. NFC 2019-05-01 09:28:24 +00:00
BPF bpf: disassembler support for XADD under sub-register mode 2019-02-28 19:22:34 +00:00
COFF [llvm-readobj] Change -t to --symbols in tests. NFC 2019-05-01 09:28:24 +00:00
Disassembler [AMDGPU] gfx1010 tests. NFC. 2019-05-13 19:30:06 +00:00
ELF Replace 'REQUIRES: nozlib' with '!zlib' because we don't need two ways 2019-05-10 18:47:39 +00:00
Hexagon [llvm-objdump] - Print relocation record in a GNU format. 2019-05-07 13:14:18 +00:00
Lanai
MSP430 [llvm-readobj] Change -t to --symbols in tests. NFC 2019-05-01 09:28:24 +00:00
MachO [llvm-readobj] Change -t to --symbols in tests. NFC 2019-05-01 09:28:24 +00:00
Mips [llvm-readobj] Change -t to --symbols in tests. NFC 2019-05-01 09:28:24 +00:00
PowerPC [MC][ELF] Copy top 3 bits of st_other to .symver aliases 2019-05-10 17:09:25 +00:00
RISCV [llvm-readobj] Change -long-option to --long-option in tests. NFC 2019-05-01 05:27:20 +00:00
Sparc [llvm-readobj] Change -long-option to --long-option in tests. NFC 2019-05-01 05:27:20 +00:00
SystemZ [llvm-readobj] Change -long-option to --long-option in tests. NFC 2019-05-01 05:27:20 +00:00
WebAssembly [llvm-readobj] Change -long-option to --long-option in tests. NFC 2019-05-01 05:27:20 +00:00
X86 [MC][X86] Add test cases from PR14056 2019-05-11 15:51:14 +00:00