llvm-6502/lib/Transforms/IPO
Rafael Espindola c0916d30e0 llvm-extract was unable to handle aliases. It would leave a copy on the
output of both

llvm-extract foo.ll -func=bar
and
llvm-extract foo.ll -func=bar -delete

so the two new files could not be linked together anymore. With this change
alias are handled almost like functions and global variables. Almost because
with alias we cannot just clear the initializer/body, we have to create a new
declaration and replace the alias with it.

The net result is that now the output of the above commands can be linked
even if foo.ll has aliases.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@166907 91177308-0d34-0410-b5e6-96231b3b80d8
2012-10-29 00:27:55 +00:00
..
ArgumentPromotion.cpp Add an enum for the return and function indexes into the AttrListPtr object. This gets rid of some magic numbers. 2012-10-15 07:29:08 +00:00
BarrierNoopPass.cpp Introduce a BarrierNoop pass, a hack designed to allow *some* control 2012-10-18 08:05:46 +00:00
CMakeLists.txt Introduce a BarrierNoop pass, a hack designed to allow *some* control 2012-10-18 08:05:46 +00:00
ConstantMerge.cpp Move TargetData to DataLayout. 2012-10-08 16:38:25 +00:00
DeadArgumentElimination.cpp Move the Attributes::Builder outside of the Attributes class and into its own class named AttrBuilder. No functionality change. 2012-10-15 20:35:56 +00:00
ExtractGV.cpp llvm-extract was unable to handle aliases. It would leave a copy on the 2012-10-29 00:27:55 +00:00
FunctionAttrs.cpp Move the Attributes::Builder outside of the Attributes class and into its own class named AttrBuilder. No functionality change. 2012-10-15 20:35:56 +00:00
GlobalDCE.cpp Implement the isSafeToDiscardIfUnused predicate and use it in globalopt and 2012-06-14 22:48:13 +00:00
GlobalOpt.cpp Add in support for getIntPtrType to get the pointer type based on the address space. 2012-10-24 15:52:52 +00:00
InlineAlways.cpp Create enums for the different attributes. 2012-10-09 07:45:08 +00:00
Inliner.cpp Have 'addFnAttr' take the attribute enum value. Then have it build the attribute object and add it appropriately. No functionality change. 2012-10-10 03:12:49 +00:00
InlineSimple.cpp Move TargetData to DataLayout. 2012-10-08 16:38:25 +00:00
Internalize.cpp Change the internalize pass to internalize all symbols when given an empty 2012-10-26 18:47:48 +00:00
IPConstantPropagation.cpp
IPO.cpp Change the internalize pass to internalize all symbols when given an empty 2012-10-26 18:47:48 +00:00
LLVMBuild.txt
LoopExtractor.cpp Move the CodeExtractor utility to a dedicated header file / source file, 2012-05-04 10:18:49 +00:00
Makefile
MergeFunctions.cpp Add in support for getIntPtrType to get the pointer type based on the address space. 2012-10-24 15:52:52 +00:00
PartialInlining.cpp Move the CodeExtractor utility to a dedicated header file / source file, 2012-05-04 10:18:49 +00:00
PassManagerBuilder.cpp Change the internalize pass to internalize all symbols when given an empty 2012-10-26 18:47:48 +00:00
PruneEH.cpp Move the Attributes::Builder outside of the Attributes class and into its own class named AttrBuilder. No functionality change. 2012-10-15 20:35:56 +00:00
StripDeadPrototypes.cpp
StripSymbols.cpp Move the "findUsedStructTypes" functionality outside of the Module class. 2012-08-03 00:30:35 +00:00