llvm-project/llvm/test/DebugInfo/Generic
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
..
2009-10-16-Phi.ll
2009-11-03-InsertExtractValue.ll
2009-11-05-DeadGlobalVariable.ll
2009-11-06-NamelessGlobalVariable.ll
2009-11-10-CurrentFn.ll [DebugInfo] Add DILabel metadata and intrinsic llvm.dbg.label. 2018-05-09 02:40:45 +00:00
2010-01-05-DbgScope.ll
2010-03-12-llc-crash.ll
2010-03-19-DbgDeclare.ll
2010-03-24-MemberFn.ll
2010-04-06-NestedFnDbgInfo.ll llvm-dwarfdump: Make -brief the default and add a -verbose option instead. 2017-09-11 23:05:20 +00:00
2010-04-19-FramePtr.ll Replace "no-frame-pointer-*" function attributes with "frame-pointer" 2019-01-14 10:55:55 +00:00
2010-05-03-DisableFramePtr.ll
2010-05-03-OriginDIE.ll
2010-05-10-MultipleCU.ll
2010-06-29-InlinedFnLocalVar.ll [DebugInfo] Add DILabel metadata and intrinsic llvm.dbg.label. 2018-05-09 02:40:45 +00:00
2010-10-01-crash.ll Remove alignment argument from memcpy/memmove/memset in favour of alignment attributes (Step 1) 2018-01-19 17:13:12 +00:00
DICommonBlock.ll Add LLVM IR debug info support for Fortran COMMON blocks 2019-04-08 19:13:55 +00:00
PR20038.ll [DebugInfo] Add DILabel metadata and intrinsic llvm.dbg.label. 2018-05-09 02:40:45 +00:00
PR37395.ll [DebugInfo] Fix PR37395. 2018-07-03 07:56:04 +00:00
accel-table-hash-collisions.ll Re-commit r329179 after fixing build&test issues 2018-04-04 14:42:14 +00:00
address_space_rvalue.ll Debug Info: Support address space attributes on rvalue references. 2019-05-07 17:42:38 +00:00
array.ll
block-asan.ll [DebugInfo] Add DILabel metadata and intrinsic llvm.dbg.label. 2018-05-09 02:40:45 +00:00
bug_null_debuginfo.ll
callsite-attr-invalid.ll [DebugInfo] Add support for DWARF5 call site-related attributes 2018-10-05 20:37:17 +00:00
codegenprep-value.ll [Debuginfo] Prevent CodeGenPrepare from dropping debuginfo references. 2018-12-11 21:13:53 +00:00
constant-pointers.ll [DebugInfo] Add DILabel metadata and intrinsic llvm.dbg.label. 2018-05-09 02:40:45 +00:00
containing-type-extension.ll [DebugInfoMetadata] Move main subprogram DIFlag into DISPFlags 2019-03-19 13:49:03 +00:00
cross-cu-inlining.ll [DebugInfo] Add DILabel metadata and intrinsic llvm.dbg.label. 2018-05-09 02:40:45 +00:00
cross-cu-linkonce-distinct.ll [DebugInfo] Add DILabel metadata and intrinsic llvm.dbg.label. 2018-05-09 02:40:45 +00:00
cross-cu-linkonce.ll [DebugInfo] Add DILabel metadata and intrinsic llvm.dbg.label. 2018-05-09 02:40:45 +00:00
cu-range-hole.ll [DebugInfo] Add DILabel metadata and intrinsic llvm.dbg.label. 2018-05-09 02:40:45 +00:00
cu-ranges.ll Revert "[DWARF] reposting r342048, which was reverted in r342056 due to buildbot errors. Adjusted 2 test cases for ARM and darwin and fixed a bug with the original change in dsymutil." 2018-09-17 15:40:01 +00:00
dbg-at-specficiation.ll
dbg-value-lower-linenos.ll [DebugInfo] Use zero linenos for debug intrinsics when promoting dbg.declare 2019-05-10 10:03:41 +00:00
dead-argument-order.ll [DebugInfo] Add DILabel metadata and intrinsic llvm.dbg.label. 2018-05-09 02:40:45 +00:00
debug-info-always-inline.ll
debug-info-enum.ll Rename DIFlagFixedEnum to DIFlagEnumClass. NFC 2019-01-08 17:52:29 +00:00
debug-info-qualifiers.ll [DebugInfo] Add DILabel metadata and intrinsic llvm.dbg.label. 2018-05-09 02:40:45 +00:00
debug-label-inline.ll [DebugInfo] Fix debug information label tests 2018-10-08 22:10:34 +00:00
debug-label-mi.ll [DebugInfo] In FastISel, convert llvm.dbg.label to DBG_LABEL MI. 2018-08-18 14:55:34 +00:00
debug-label-opt.ll [DebugInfo] In FastISel, convert llvm.dbg.label to DBG_LABEL MI. 2018-08-18 14:55:34 +00:00
debug-label.ll [DebugInfo] Fix debug information label tests 2018-10-08 22:10:34 +00:00
debug-names-empty-cu.ll [CodeGen/AccelTable] Don't emit zero-CU name indexes 2018-04-09 14:38:53 +00:00
debug-names-empty-name.ll [DebugInfo] Add DILabel metadata and intrinsic llvm.dbg.label. 2018-05-09 02:40:45 +00:00
debug-names-hash-collisions.ll Re-commit r329179 after fixing build&test issues 2018-04-04 14:42:14 +00:00
debug-names-index-type.ll [CodeGen/Dwarf] Rename the "sizetype" synthetic type and add it to the accelerator table 2018-04-10 14:23:41 +00:00
debug-names-linkage-name.ll [CodeGen/AccelTable]: Handle -dwarf-linkage-names=Abstract correctly 2018-05-14 14:13:20 +00:00
debug-names-many-cu.ll Re-commit r329179 after fixing build&test issues 2018-04-04 14:42:14 +00:00
debug-names-name-collisions.ll [CodeGen/AccelTable]: Handle -dwarf-linkage-names=Abstract correctly 2018-05-14 14:13:20 +00:00
debug-names-one-cu.ll Fix macosx build broken by r330249 2018-04-18 15:23:21 +00:00
debug-names-two-cu.ll Re-commit r329179 after fixing build&test issues 2018-04-04 14:42:14 +00:00
debuginfofinder-forward-declaration.ll Remove irrelevant references to legacy git repositories from 2019-01-15 16:18:52 +00:00
debuginfofinder-imported-global-variable.ll Remove irrelevant references to legacy git repositories from 2019-01-15 16:18:52 +00:00
debuginfofinder-inlined-cu.ll [DebugInfo] Add DILabel metadata and intrinsic llvm.dbg.label. 2018-05-09 02:40:45 +00:00
debuginfofinder-multiple-cu.ll [DebugInfo] Add DILabel metadata and intrinsic llvm.dbg.label. 2018-05-09 02:40:45 +00:00
def-line.ll [DebugInfo] Add DILabel metadata and intrinsic llvm.dbg.label. 2018-05-09 02:40:45 +00:00
directives-only.ll [DEBUGINFO] Disable emission of the dwarf sections, but allow directives. 2018-08-01 19:38:20 +00:00
discriminated-union.ll [DebugInfoMetadata] Move main subprogram DIFlag into DISPFlags 2019-03-19 13:49:03 +00:00
discriminator.ll [DebugInfo] Add DILabel metadata and intrinsic llvm.dbg.label. 2018-05-09 02:40:45 +00:00
disubrange_vla.ll [DebugInfo] Add DILabel metadata and intrinsic llvm.dbg.label. 2018-05-09 02:40:45 +00:00
disubrange_vla_no_dbgvalue.ll [DebugInfo] Add DILabel metadata and intrinsic llvm.dbg.label. 2018-05-09 02:40:45 +00:00
dwarf-public-names.ll Remove irrelevant references to legacy git repositories from 2019-01-15 16:18:52 +00:00
empty.ll [DWARF] Emit a split line table only if there are split type units. 2018-03-01 00:12:35 +00:00
enum-types.ll [DebugInfo] Add DILabel metadata and intrinsic llvm.dbg.label. 2018-05-09 02:40:45 +00:00
enum.ll [DebugInfo] Add DILabel metadata and intrinsic llvm.dbg.label. 2018-05-09 02:40:45 +00:00
extended-loc-directive.ll [DebugInfo] Add DILabel metadata and intrinsic llvm.dbg.label. 2018-05-09 02:40:45 +00:00
fortran-subprogram-attr.ll Add test I forgot to git-add in r356163. 2019-03-14 21:23:52 +00:00
global-sra-array.ll [DebugInfo] Add DILabel metadata and intrinsic llvm.dbg.label. 2018-05-09 02:40:45 +00:00
global-sra-single-member.ll [DebugInfo] Add DILabel metadata and intrinsic llvm.dbg.label. 2018-05-09 02:40:45 +00:00
global-sra-struct.ll [DebugInfo] Add DILabel metadata and intrinsic llvm.dbg.label. 2018-05-09 02:40:45 +00:00
global.ll [DebugInfo] Add DILabel metadata and intrinsic llvm.dbg.label. 2018-05-09 02:40:45 +00:00
gmlt.test Update testcases that are XFAILed on Darwin for llvm-dwarfdump changes. 2017-09-11 23:40:44 +00:00
gmlt_profiling.ll [DebugInfo] Add DILabel metadata and intrinsic llvm.dbg.label. 2018-05-09 02:40:45 +00:00
gvn.ll [DebugInfo] Add DILabel metadata and intrinsic llvm.dbg.label. 2018-05-09 02:40:45 +00:00
imported-name-inlined.ll [DebugInfo] Add DILabel metadata and intrinsic llvm.dbg.label. 2018-05-09 02:40:45 +00:00
incorrect-variable-debugloc.ll [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
incorrect-variable-debugloc1.ll Remove 'XFAIL: powerpc64' from a debuginfo test 2019-01-29 10:23:43 +00:00
indvar-discriminator.ll [DebugInfo] Add DILabel metadata and intrinsic llvm.dbg.label. 2018-05-09 02:40:45 +00:00
inheritance.ll
inline-debug-info-multiret.ll [DebugInfo] Add DILabel metadata and intrinsic llvm.dbg.label. 2018-05-09 02:40:45 +00:00
inline-debug-info.ll [DebugInfo] Add DILabel metadata and intrinsic llvm.dbg.label. 2018-05-09 02:40:45 +00:00
inline-debug-loc.ll [DebugInfo] Add DILabel metadata and intrinsic llvm.dbg.label. 2018-05-09 02:40:45 +00:00
inline-no-debug-info.ll [DebugInfo] Add DILabel metadata and intrinsic llvm.dbg.label. 2018-05-09 02:40:45 +00:00
inline-scopes.ll [DebugInfo] Add DILabel metadata and intrinsic llvm.dbg.label. 2018-05-09 02:40:45 +00:00
inlined-arguments.ll [DebugInfo] Add DILabel metadata and intrinsic llvm.dbg.label. 2018-05-09 02:40:45 +00:00
inlined-strings.ll [DebugInfo] Add DILabel metadata and intrinsic llvm.dbg.label. 2018-05-09 02:40:45 +00:00
inlined-vars.ll [DebugInfo] Add DILabel metadata and intrinsic llvm.dbg.label. 2018-05-09 02:40:45 +00:00
instcombine-phi.ll [DebugInfo] Add DILabel metadata and intrinsic llvm.dbg.label. 2018-05-09 02:40:45 +00:00
invalid.ll [DebugInfo] IR/Bitcode changes for DISubprogram flags. 2018-11-28 21:14:32 +00:00
licm-hoist-debug-loc.ll [GVN+LICM] Use line 0 locations for better crash attribution 2019-04-19 22:36:40 +00:00
line-table-addrx.ll DWARF v5: emit DW_AT_addr_base if DW_AT_low_pc references .debug_addr 2019-05-14 14:37:26 +00:00
linear-dbg-value.ll [X86] Re-enable the machine verifier after fixing more tests 2018-10-30 12:20:17 +00:00
linkage-name-abstract.ll [DebugInfo] Add DILabel metadata and intrinsic llvm.dbg.label. 2018-05-09 02:40:45 +00:00
lit.local.cfg
location-verifier.ll [DebugInfo] Add DILabel metadata and intrinsic llvm.dbg.label. 2018-05-09 02:40:45 +00:00
lto-comp-dir.ll [DebugInfo] Add DILabel metadata and intrinsic llvm.dbg.label. 2018-05-09 02:40:45 +00:00
mainsubprogram.ll [DebugInfoMetadata] Move main subprogram DIFlag into DISPFlags 2019-03-19 13:49:03 +00:00
member-order.ll [DebugInfo] Add DILabel metadata and intrinsic llvm.dbg.label. 2018-05-09 02:40:45 +00:00
member-pointers.ll Re-land "[llvm-dwarfdump] Print type names in DW_AT_type DIEs" 2017-10-10 14:15:25 +00:00
missing-abstract-variable.ll [DebugInfo] Add DILabel metadata and intrinsic llvm.dbg.label. 2018-05-09 02:40:45 +00:00
multiline.ll [DebugInfo] Add DILabel metadata and intrinsic llvm.dbg.label. 2018-05-09 02:40:45 +00:00
namespace.ll [DebugInfo] Add DILabel metadata and intrinsic llvm.dbg.label. 2018-05-09 02:40:45 +00:00
namespace_function_definition.ll [DebugInfo] Add DILabel metadata and intrinsic llvm.dbg.label. 2018-05-09 02:40:45 +00:00
namespace_inline_function_definition.ll [DebugInfo] Add DILabel metadata and intrinsic llvm.dbg.label. 2018-05-09 02:40:45 +00:00
noscopes.ll [DebugInfo] Add DILabel metadata and intrinsic llvm.dbg.label. 2018-05-09 02:40:45 +00:00
pass-by-value.ll add 'REQUIRES: object-emission' to test 2018-01-05 16:31:22 +00:00
piece-verifier.ll [DebugInfo] Add DILabel metadata and intrinsic llvm.dbg.label. 2018-05-09 02:40:45 +00:00
pr40628.ll [DebugInfo] Don't salvage load operations (PR40628). 2019-02-12 10:54:30 +00:00
ptrsize.ll [DebugInfo] Add DILabel metadata and intrinsic llvm.dbg.label. 2018-05-09 02:40:45 +00:00
recursive_inlining.ll [DebugInfo] Add DILabel metadata and intrinsic llvm.dbg.label. 2018-05-09 02:40:45 +00:00
restrict.ll [DebugInfo] Add DILabel metadata and intrinsic llvm.dbg.label. 2018-05-09 02:40:45 +00:00
simplifycfg_sink_last_inst.ll [DebugInfo] Add DILabel metadata and intrinsic llvm.dbg.label. 2018-05-09 02:40:45 +00:00
skeletoncu.ll
sroa-larger.ll [DebugInfo] Add DILabel metadata and intrinsic llvm.dbg.label. 2018-05-09 02:40:45 +00:00
sroa-samesize.ll [DebugInfo] Add DILabel metadata and intrinsic llvm.dbg.label. 2018-05-09 02:40:45 +00:00
store-tail-merge.ll [DebugInfo] Add DILabel metadata and intrinsic llvm.dbg.label. 2018-05-09 02:40:45 +00:00
string-offsets-form.ll llvm-dwarfdump: Remove extraneous space between '(' and 'indexed' 2018-12-22 08:43:08 +00:00
sugared-constants.ll [DebugInfo] Add DILabel metadata and intrinsic llvm.dbg.label. 2018-05-09 02:40:45 +00:00
sunk-compare.ll Generalize MergeBlockIntoPredecessor. Replace uses of MergeBasicBlockIntoOnlyPred. 2018-06-20 22:01:04 +00:00
template-recursive-void.ll llvm-dwarfdump: Make -brief the default and add a -verbose option instead. 2017-09-11 23:05:20 +00:00
thrownTypes.ll llvm-dwarfdump: Make -brief the default and add a -verbose option instead. 2017-09-11 23:05:20 +00:00
tu-composite.ll [DebugInfo] Add DILabel metadata and intrinsic llvm.dbg.label. 2018-05-09 02:40:45 +00:00
tu-member-pointer.ll Re-land "[llvm-dwarfdump] Print type names in DW_AT_type DIEs" 2017-10-10 14:15:25 +00:00
two-cus-from-same-file.ll [DebugInfo] Add DILabel metadata and intrinsic llvm.dbg.label. 2018-05-09 02:40:45 +00:00
typedef.ll
unconditional-branch.ll [DebugInfo] Add DILabel metadata and intrinsic llvm.dbg.label. 2018-05-09 02:40:45 +00:00
univariant-discriminated-union.ll [DebugInfoMetadata] Move main subprogram DIFlag into DISPFlags 2019-03-19 13:49:03 +00:00
varargs.ll [Verifier] Reject invalid type for DILocalVariable. 2019-01-07 23:09:09 +00:00
version.ll [DebugInfo] Add DILabel metadata and intrinsic llvm.dbg.label. 2018-05-09 02:40:45 +00:00
virtual-index.ll Update testcase since llvm-dwarfdump got more accurate in r355148. 2019-02-28 22:26:00 +00:00
volatile-alloca.ll [DebugInfo] Add DILabel metadata and intrinsic llvm.dbg.label. 2018-05-09 02:40:45 +00:00