llvm-6502/test/Linker
Dan Gohman e3394d4a49 When a constant's type is refined, update the constant in place
instead of cloning and RAUWing it.

 - Make AbstractTypeUser a friend of Value so that it can offer
   its subclasses a way to update a Value's type in place. This
   is better than a universally visible setType method on Value,
   and it's sufficient for the immediate need.

 - Eliminate the constant "convert" functions. This eliminates a
   lot of logic duplication, and fixes a complicated bug where a
   constant can't actually be cloned during the type refinement
   process because some of the types that its folder needs are
   half-destroyed, being in the middle of refinement themselves.

 - Move the getValType functions from being static overloaded
   functions in Constants.cpp to be members of class template
   specializations in ConstantsContext.h. This means that the
   code ends up getting instantiated twice, however it also
   makes it possible to eliminate all "convert" functions, so
   it's not a big net code size increase. And if desired, the
   duplicate instantiations could be eliminated with some
   reorganization.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@81861 91177308-0d34-0410-b5e6-96231b3b80d8
2009-09-15 15:58:07 +00:00
..
2002-07-17-GlobalFail.ll
2002-07-17-LinkTest2.ll
2002-08-20-ConstantExpr.ll
2003-01-30-LinkerRename.ll Use llvm-link -S instead of using llvm-dis. 2009-09-15 15:38:31 +00:00
2003-01-30-LinkerTypeRename.ll Use llvm-link -S instead of using llvm-dis. 2009-09-15 15:38:31 +00:00
2003-04-21-Linkage.ll
2003-04-23-LinkOnceLost.ll Use llvm-link -S instead of using llvm-dis. 2009-09-15 15:38:31 +00:00
2003-04-26-NullPtrLinkProblem.ll
2003-05-15-TypeProblem.ll Rename %S metavar to %M (clang uses %S for the basename of the test file). 2009-09-05 12:38:35 +00:00
2003-05-31-LinkerRename.ll Use llvm-link -S instead of using llvm-dis. 2009-09-15 15:38:31 +00:00
2003-06-02-TypeResolveProblem2.ll
2003-06-02-TypeResolveProblem.ll
2003-08-20-OpaqueTypeResolve.ll Rename %S metavar to %M (clang uses %S for the basename of the test file). 2009-09-05 12:38:35 +00:00
2003-08-23-GlobalVarLinking.ll Use llvm-link -S instead of using llvm-dis. 2009-09-15 15:38:31 +00:00
2003-08-23-RecursiveOpaqueTypeResolve.ll Rename %S metavar to %M (clang uses %S for the basename of the test file). 2009-09-05 12:38:35 +00:00
2003-08-24-InheritPtrSize.ll
2003-08-28-TypeResolvesGlobal2.ll Rename %S metavar to %M (clang uses %S for the basename of the test file). 2009-09-05 12:38:35 +00:00
2003-08-28-TypeResolvesGlobal3.ll Rename %S metavar to %M (clang uses %S for the basename of the test file). 2009-09-05 12:38:35 +00:00
2003-08-28-TypeResolvesGlobal.ll Rename %S metavar to %M (clang uses %S for the basename of the test file). 2009-09-05 12:38:35 +00:00
2003-10-21-ConflictingTypesTolerance.ll Use llvm-link -S instead of using llvm-dis. 2009-09-15 15:38:31 +00:00
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 Use llvm-link -S instead of using llvm-dis. 2009-09-15 15:38:31 +00:00
2005-02-12-ConstantGlobals-2.ll Use llvm-link -S instead of using llvm-dis. 2009-09-15 15:38:31 +00:00
2005-02-12-ConstantGlobals.ll Use llvm-link -S instead of using llvm-dis. 2009-09-15 15:38:31 +00:00
2005-12-06-AppendingZeroLengthArrays.ll Use llvm-link -S instead of using llvm-dis. 2009-09-15 15:38:31 +00:00
2006-01-19-ConstantPacked.ll
2006-06-15-GlobalVarAlignment.ll Use llvm-link -S instead of using llvm-dis. 2009-09-15 15:38:31 +00:00
2008-03-05-AliasReference2.ll
2008-03-05-AliasReference.ll
2008-03-07-DroppedSection_a.ll
2008-03-07-DroppedSection_b.ll
2008-06-13-LinkOnceRedefinition.ll Use llvm-link -S instead of using llvm-dis. 2009-09-15 15:38:31 +00:00
2008-06-26-AddressSpace.ll Use llvm-link -S instead of using llvm-dis. 2009-09-15 15:38:31 +00:00
2008-07-06-AliasFnDecl2.ll
2008-07-06-AliasFnDecl.ll
2008-07-06-AliasWeakDest2.ll
2008-07-06-AliasWeakDest.ll
2009-09-03-mdnode2.ll
2009-09-03-mdnode.ll
AppendingLinkage2.ll Use llvm-link -S instead of using llvm-dis. 2009-09-15 15:38:31 +00:00
AppendingLinkage.ll Use llvm-link -S instead of using llvm-dis. 2009-09-15 15:38:31 +00:00
basiclink.ll
ConstantGlobals1.ll Use llvm-link -S instead of using llvm-dis. 2009-09-15 15:38:31 +00:00
ConstantGlobals2.ll Use llvm-link -S instead of using llvm-dis. 2009-09-15 15:38:31 +00:00
ConstantGlobals3.ll Use llvm-link -S instead of using llvm-dis. 2009-09-15 15:38:31 +00:00
dg.exp
link-archive.ll
link-global-to-func.ll Use llvm-link -S instead of using llvm-dis. 2009-09-15 15:38:31 +00:00
link-messages.ll
linkmdnode2.ll
linkmdnode.ll
linknamedmdnode2.ll
linknamedmdnode.ll Use llvm-link -S instead of using llvm-dis. 2009-09-15 15:38:31 +00:00
LinkOnce.ll Use llvm-link -S instead of using llvm-dis. 2009-09-15 15:38:31 +00:00
partial-type-refinement-link.ll When a constant's type is refined, update the constant in place 2009-09-15 15:58:07 +00:00
partial-type-refinement.ll When a constant's type is refined, update the constant in place 2009-09-15 15:58:07 +00:00
redefinition.ll
testlink1.ll
testlink2.ll
weakextern.ll