llvm-project/llvm/test
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
..
Analysis [MemorySSA] LoopSimplify preserves MemorySSA only when flag is flipped. 2019-05-14 18:07:18 +00:00
Assembler [ThinLTO] Auto-hide prevailing linkonce_odr only when all copies eligible 2019-05-10 20:08:24 +00:00
Bindings Replace 'REQUIRES: not_?san' with 'UNSUPPORTED: ?san' as that better 2019-05-10 18:08:02 +00:00
Bitcode [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
BugPoint
CodeGen [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
DebugInfo [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
Demangle llvm-undname: Fix assert-on->4GiB-string-literal, found by oss-fuzz 2019-04-24 16:09:38 +00:00
Examples
ExecutionEngine Replace lit feature keyword 'not_COFF' with 'uses_COFF'. 2019-05-14 14:51:54 +00:00
Feature [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
FileCheck Reinstate "FileCheck [5/12]: Introduce regular numeric variables" 2019-05-14 11:58:30 +00:00
Instrumentation [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
Integer
JitListener
LTO [llvm-readobj] Change -t to --symbols in tests. NFC 2019-05-01 09:28:24 +00:00
Linker [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
MC [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
MachineVerifier [X86] Merge the different Jcc instructions for each condition code into single instructions that store the condition code as an operand. 2019-04-05 19:28:09 +00:00
Object AArch64: support binutils-like things on arm64_32. 2019-05-14 11:25:44 +00:00
ObjectYAML [llvm-readobj] Change -long-option to --long-option in tests. NFC 2019-05-01 05:27:20 +00:00
Other [AliasAnalysis/NewPassManager] Invalidate AAManager less often. 2019-04-30 22:15:47 +00:00
SafepointIRVerifier
Support [CommandLine] Change help output to prefix long options with `--` instead of `-`. NFC . Part 3 of 5 2019-05-03 17:47:29 +00:00
SymbolRewriter
TableGen TableGen: support #ifndef in addition to #ifdef. 2019-05-14 13:04:25 +00:00
ThinLTO/X86 [ThinLTO] Don't internalize weak writeable variables 2019-05-13 11:53:05 +00:00
Transforms [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
Unit
Verifier [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
YAMLParser
tools [lit][tests]Add feature libcxx-used and use it in llvm-*-fuzzer tests 2019-05-14 13:54:33 +00:00
.clang-format
CMakeLists.txt [cmake] Add llvm-jit to LLVM_TEST_DEPENDS 2019-04-22 02:23:09 +00:00
TestRunner.sh
lit.cfg.py Replace lit feature keyword 'not_COFF' with 'uses_COFF'. 2019-05-14 14:51:54 +00:00
lit.site.cfg.py.in [lit][tests]Add feature libcxx-used and use it in llvm-*-fuzzer tests 2019-05-14 13:54:33 +00:00