llvm-project/llvm/lib/Transforms/Utils
Duncan Sands dd7daee850 Factor code to copy global value attributes like
the section or the visibility from one global
value to another: copyAttributesFrom.  This is
particularly useful for duplicating functions:
previously this was done by explicitly copying
each attribute in turn at each place where a
new function was created out of an old one, with
the result that obscure attributes were regularly
forgotten (like the collector or the section).
Hopefully now everything is uniform and nothing
is forgotten.

llvm-svn: 51567
2008-05-26 19:58:59 +00:00
..
BasicBlockUtils.cpp Remove 'unwinds to' support from mainline. This patch undoes r47802 r47989 2008-04-25 16:53:59 +00:00
BasicInliner.cpp Clean up the use of static and anonymous namespaces. This turned up 2008-05-13 00:00:25 +00:00
BreakCriticalEdges.cpp Change class' public PassInfo variables to by initialized with the 2008-05-13 02:05:11 +00:00
CloneFunction.cpp Factor code to copy global value attributes like 2008-05-26 19:58:59 +00:00
CloneLoop.cpp Remove 'unwinds to' support from mainline. This patch undoes r47802 r47989 2008-04-25 16:53:59 +00:00
CloneModule.cpp Factor code to copy global value attributes like 2008-05-26 19:58:59 +00:00
CloneTrace.cpp Remove 'unwinds to' support from mainline. This patch undoes r47802 r47989 2008-04-25 16:53:59 +00:00
CodeExtractor.cpp Tidy up BasicBlock::getFirstNonPHI, and change a bunch of places to 2008-05-23 21:05:58 +00:00
DemoteRegToStack.cpp Remove attribution from file headers, per discussion on llvmdev. 2007-12-29 20:36:04 +00:00
InlineCost.cpp Adjust inline cost computation to be less aggressive. 2008-04-24 18:42:47 +00:00
InlineFunction.cpp Fix a bunch of 80col violations that arose from the Create API change. Tweak makefile targets to find these better. 2008-05-15 10:04:30 +00:00
LCSSA.cpp Use a DenseMap instead of an std::map, speeding up the testcase in PR2368 by about a third. 2008-05-26 10:07:43 +00:00
Local.cpp API changes for class Use size reduction, wave 1. 2008-04-06 20:25:17 +00:00
LoopSimplify.cpp Change class' public PassInfo variables to by initialized with the 2008-05-13 02:05:11 +00:00
LowerAllocations.cpp API change for {BinaryOperator|CmpInst|CastInst}::create*() --> Create. Legacy interfaces will be in place for some time. (Merge from use-diet branch.) 2008-05-16 19:29:10 +00:00
LowerInvoke.cpp Tidy up BasicBlock::getFirstNonPHI, and change a bunch of places to 2008-05-23 21:05:58 +00:00
LowerSwitch.cpp API change for {BinaryOperator|CmpInst|CastInst}::create*() --> Create. Legacy interfaces will be in place for some time. (Merge from use-diet branch.) 2008-05-16 19:29:10 +00:00
Makefile remove attribution from lib Makefiles. 2007-12-29 20:09:26 +00:00
Mem2Reg.cpp Change class' public PassInfo variables to by initialized with the 2008-05-13 02:05:11 +00:00
PromoteMemoryToRegister.cpp API changes for class Use size reduction, wave 1. 2008-04-06 20:25:17 +00:00
SimplifyCFG.cpp Tidy up BasicBlock::getFirstNonPHI, and change a bunch of places to 2008-05-23 21:05:58 +00:00
UnifyFunctionExitNodes.cpp Remove uses of llvm/System/IncludeFile.h that are no longer needed. 2008-05-06 01:32:53 +00:00
UnrollLoop.cpp Split the loop unroll mechanism logic out into a utility function. 2008-05-14 00:24:14 +00:00
ValueMapper.cpp Remove attribution from file headers, per discussion on llvmdev. 2007-12-29 20:36:04 +00:00