llvm-project/llvm/test/Linker
Stephen Tozer 32417b3203 [DebugInfo] ValueMapper impl for DIArgList respects IgnoreMissingLocals
This patch fixes an issue in which SSA value reference within a
DIArgList would be unnecessarily dropped by llvm-link, even when
invoking on a single file (which should be a no-op). The reason for the
difference is that the ValueMapper does not refer to the
RF_IgnoreMissingLocals flag for LocalAsMetadata contained within a
DIArgList; this flag is used for direct LocalAsMetadata uses to preserve
SSA references even when the ValueMapper does not have an explicit
mapping for the referenced SSA value, which appears to always be the
case when using llvm-link in this manner.

Differential Revision: https://reviews.llvm.org/D114355
2022-01-17 17:17:32 +00:00
..
Inputs [DWARF] Standardize checks and remove verbose where possible in DWARF tests 2021-10-31 09:49:10 -04:00
2002-07-17-GlobalFail.ll
2002-07-17-LinkTest2.ll
2002-08-20-ConstantExpr.ll
2003-01-30-LinkerRename.ll
2003-01-30-LinkerTypeRename.ll
2003-04-23-LinkOnceLost.ll
2003-04-26-NullPtrLinkProblem.ll
2003-05-15-TypeProblem.ll
2003-05-31-LinkerRename.ll
2003-06-02-TypeResolveProblem.ll
2003-06-02-TypeResolveProblem2.ll
2003-08-20-OpaqueTypeResolve.ll
2003-08-23-GlobalVarLinking.ll
2003-08-23-RecursiveOpaqueTypeResolve.ll
2003-08-24-InheritPtrSize.ll
2003-08-28-TypeResolvesGlobal.ll
2003-08-28-TypeResolvesGlobal2.ll
2003-08-28-TypeResolvesGlobal3.ll
2003-10-27-LinkOncePromote.ll
2003-11-18-TypeResolution.ll
2004-02-17-WeakStrongLinkage.ll
2004-05-07-TypeResolution1.ll
2004-05-07-TypeResolution2.ll
2004-12-03-DisagreeingType.ll
2005-02-12-ConstantGlobals-2.ll
2005-02-12-ConstantGlobals.ll
2005-12-06-AppendingZeroLengthArrays.ll
2006-01-19-ConstantPacked.ll
2008-03-05-AliasReference.ll
2008-03-05-AliasReference2.ll
2008-03-07-DroppedSection_a.ll
2008-03-07-DroppedSection_b.ll
2008-06-13-LinkOnceRedefinition.ll
2008-06-26-AddressSpace.ll
2008-07-06-AliasFnDecl.ll
2008-07-06-AliasFnDecl2.ll
2008-07-06-AliasWeakDest.ll
2008-07-06-AliasWeakDest2.ll
2009-09-03-mdnode.ll
2009-09-03-mdnode2.ll
2011-08-04-DebugLoc.ll
2011-08-04-DebugLoc2.ll
2011-08-04-Metadata.ll
2011-08-04-Metadata2.ll
2011-08-18-unique-class-type.ll
2011-08-18-unique-class-type2.ll
2011-08-18-unique-debug-type.ll
2011-08-18-unique-debug-type2.ll
AppendingLinkage.ll
AppendingLinkage2.ll
ConstantGlobals.ll
DSOLocalEquivalent.ll
DbgDeclare.ll
DbgDeclare2.ll
LinkOnce.ll
PR8300.ll
addrspace.ll
alias-2.ll
alias-3.ll
alias-4.ll
alias-threadlocal.ll
alias.ll
alignment.ll
appending-global-crash.ll
appending-global-err1.ll
appending-global-err2.ll
appending-global-err3.ll
appending-global-err4.ll
appending-global-err5.ll
appending-global-proto.ll
apple-version.ll
available_externally_a.ll
available_externally_b.ll
available_externally_over_decl.ll
basiclink.ll
broken.ll
byref-types.ll
byval-types.ll
comdat-any.ll [test] Reorganize test/Linker/comdat*.ll 2021-08-28 10:11:08 -07:00
comdat-incompatible-kinds.ll [test] Reorganize test/Linker/comdat*.ll 2021-08-28 10:11:08 -07:00
comdat-largest.ll [test] Reorganize test/Linker/comdat*.ll 2021-08-28 10:11:08 -07:00
comdat-nodeduplicate.ll [Linker] Handle comdat nodeduplicate 2021-08-31 22:32:20 -07:00
comdat-nonprevailing-decl.ll [test] Reorganize test/Linker/comdat*.ll 2021-08-28 10:11:08 -07:00
comdat-refer-to-discarded.ll [test] Reorganize test/Linker/comdat*.ll 2021-08-28 10:11:08 -07:00
comdat-rm-dst.ll
comdat-samesize.ll [test] Reorganize test/Linker/comdat*.ll 2021-08-28 10:11:08 -07:00
comdat-size-err.ll [test] Reorganize test/Linker/comdat*.ll 2021-08-28 10:11:08 -07:00
comdat-unneeded.ll [test] Reorganize test/Linker/comdat*.ll 2021-08-28 10:11:08 -07:00
comdat.ll
comdat_group.ll
commandline.ll
constructor-comdat.ll
ctors.ll
ctors2.ll
ctors3.ll
ctors4.ll
cuda-libdevice.ll [IRLinker] Suppress linker warnings when linking with CUDA libdevice. 2021-09-01 10:45:15 -07:00
datalayout.ll
debug-info-bad-enum.ll [DebugInfo] Skip ODRUniquing for mismatched tags 2021-10-26 15:28:25 -07:00
debug-info-global-var.ll
debug-info-use-before-def.ll [DebugInfo] ValueMapper impl for DIArgList respects IgnoreMissingLocals 2022-01-17 17:17:32 +00:00
debug-info-version-a.ll
debug-info-version-b.ll
dicompositetype-unique.ll
distinct-cycles.ll
distinct.ll
dllstorage-a.ll
dllstorage-b.ll
drop-debug.ll
elementtype-struct-1.ll Copy Elementtype Attribute to IR at Link step 2021-09-07 11:41:43 -07:00
empty-swift.ll
func-attrs-a.ll
func-attrs-b.ll
funcimport.ll
funcimport2.ll
funcimport_appending_global.ll
funcimport_comdat.ll
globalorder.ll
ident.ll
ifunc.ll [Verifier] Add verification logic for GlobalIFuncs 2021-10-31 20:00:57 -07:00
inalloca-types.ll
inlineasm.ll [Tests] Add elementtype attribute to indirect inline asm operands (NFC) 2022-01-06 14:23:51 +01:00
internalize-lazy.ll
intrinsics-with-unnamed-types.ll
link-arm-and-thumb-module-inline-asm.ll
link-arm-and-thumb.ll
link-flags.ll
link-global-to-func.ll
link-type-names.ll
linkage.ll
linkage2.ll
linkmdnode.ll
linkmdnode2.ll
linknamedmdnode.ll
linknamedmdnode2.ll
lto-attributes.ll
mdlocation.ll
metadata-a.ll
metadata-attach.ll
metadata-b.ll
metadata-function.ll
metadata-global.ll
metadata-mismatch.test
metadata-source.ll
metadata-with-global-value-operand.ll
module-flags-1-a.ll
module-flags-1-b.ll
module-flags-2-a.ll
module-flags-2-b.ll
module-flags-3-a.ll
module-flags-3-b.ll
module-flags-4-a.ll
module-flags-4-b.ll
module-flags-5-a.ll
module-flags-5-b.ll
module-flags-6-a.ll
module-flags-6-b.ll
module-flags-7-a.ll
module-flags-7-b.ll
module-flags-8-a.ll
module-flags-8-b.ll
module-flags-dont-change-others.ll
module-flags-pic-1-a.ll
module-flags-pic-2-a.ll
module-max-warn.ll
multiple-merged-structs.ll
null_mapping_constant.ll
objectivec-class-property-flag-mismatch.ll
odr-lambda-1.ll
odr.ll
only-needed-compiler-used.ll
only-needed-ctors1.ll
only-needed-ctors2.ll
only-needed-debug-metadata.ll
only-needed-dtors1.ll
only-needed-dtors2.ll
only-needed-named-metadata.ll
only-needed-recurse.ll
only-needed-used.ll
opaque.ll
override-different-linkage.ll
override-with-internal-linkage-2.ll
override-with-internal-linkage.ll
override.ll
partial-type-refinement-link.ll
partial-type-refinement.ll
pr21374.ll
pr21494.ll
pr22807.ll
pr26037.ll
pr27044.ll
prologuedata.ll
redefinition.ll
replaced-function-matches-first-subprogram.ll
scalable-vector-type-construction.ll Fix typo of colon to semicolon in lit tests 2021-10-09 10:03:50 +08:00
sret-types.ll
stack-alignment.ll reland [IR] make -stack-alignment= into a module attr 2021-06-08 10:59:46 -07:00
stack-protector-guard-module-attrs.ll
subprogram-linkonce-weak.ll
syncscopes.ll
targettriple.ll
testlink.ll
thinlto_funcimport_debug.ll Revert "[NFC] remove explicit default value for strboolattr attribute in tests" 2021-05-24 19:43:40 +02:00
transitive-lazy-link.ll
type-unique-alias.ll
type-unique-dst-types.ll
type-unique-inheritance.ll
type-unique-name.ll
type-unique-odr-a.ll [DWARF] Standardize checks and remove verbose where possible in DWARF tests 2021-10-31 09:49:10 -04:00
type-unique-odr-b.ll
type-unique-opaque.ll
type-unique-simple-a.ll [DWARF] Standardize checks and remove verbose where possible in DWARF tests 2021-10-31 09:49:10 -04:00
type-unique-simple-b.ll Revert "[NFC] remove explicit default value for strboolattr attribute in tests" 2021-05-24 19:43:40 +02:00
type-unique-simple2-a.ll [DWARF] Standardize checks and remove verbose where possible in DWARF tests 2021-10-31 09:49:10 -04:00
type-unique-simple2-b.ll
type-unique-simple2.ll
type-unique-src-type.ll
type-unique-type-array-a.ll [DWARF] Standardize checks and remove verbose where possible in DWARF tests 2021-10-31 09:49:10 -04:00
type-unique-type-array-b.ll Revert "[NFC] remove explicit default value for strboolattr attribute in tests" 2021-05-24 19:43:40 +02:00
type-unique-unrelated.ll
unique-fwd-decl-a.ll
unique-fwd-decl-order.ll
uniqued-distinct-cycles.ll
unnamed-addr-err-a.ll
unnamed-addr-err-b.ll
unnamed-addr1-a.ll
unnamed-addr1-b.ll
visibility.ll
weakextern.ll
wrong-addrspace-gv-declaration.ll