llvm-6502/lib/Transforms/IPO
Jeffrey Yasskin f0356fe140 Kill ModuleProvider and ghost linkage by inverting the relationship between
Modules and ModuleProviders. Because the "ModuleProvider" simply materializes
GlobalValues now, and doesn't provide modules, it's renamed to
"GVMaterializer". Code that used to need a ModuleProvider to materialize
Functions can now materialize the Functions directly. Functions no longer use a
magic linkage to record that they're materializable; they simply ask the
GVMaterializer.

Because the C ABI must never change, we can't remove LLVMModuleProviderRef or
the functions that refer to it. Instead, because Module now exposes the same
functionality ModuleProvider used to, we store a Module* in any
LLVMModuleProviderRef and translate in the wrapper methods.  The bindings to
other languages still use the ModuleProvider concept.  It would probably be
worth some time to update them to follow the C++ more closely, but I don't
intend to do it.

Fixes http://llvm.org/PR5737 and http://llvm.org/PR5735.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@94686 91177308-0d34-0410-b5e6-96231b3b80d8
2010-01-27 20:34:15 +00:00
..
ArgumentPromotion.cpp Change errs() to dbgs(). 2010-01-05 01:28:37 +00:00
CMakeLists.txt Auto-upgrade free instructions to calls to the builtin free function. 2009-10-24 04:23:03 +00:00
ConstantMerge.cpp Remove includes of Support/Compiler.h that are no longer needed after the 2009-10-25 06:57:41 +00:00
DeadArgumentElimination.cpp Speculatively revert r94322 to see if it fixes darwin selfhost buildbot. 2010-01-23 20:32:12 +00:00
DeadTypeElimination.cpp Remove includes of Support/Compiler.h that are no longer needed after the 2009-10-25 06:57:41 +00:00
ExtractGV.cpp Remove includes of Support/Compiler.h that are no longer needed after the 2009-10-25 06:57:41 +00:00
FunctionAttrs.cpp Be less stingy as to how many selects and phi nodes we 2010-01-07 05:48:42 +00:00
GlobalDCE.cpp cleanups, switch GlobalDCE to SmallPtrSet instead of std::set 2009-11-01 19:03:42 +00:00
GlobalOpt.cpp handle ConstantVector while I'm in here. 2010-01-07 01:20:20 +00:00
InlineAlways.cpp Remove includes of Support/Compiler.h that are no longer needed after the 2009-10-25 06:57:41 +00:00
Inliner.cpp Move per-function inline threshold calculation to a method. 2010-01-20 17:51:28 +00:00
InlineSimple.cpp Remove includes of Support/Compiler.h that are no longer needed after the 2009-10-25 06:57:41 +00:00
Internalize.cpp Change errs() to dbgs(). 2010-01-05 01:28:07 +00:00
IPConstantPropagation.cpp Remove unused LLVMContext. 2009-11-23 03:29:18 +00:00
IPO.cpp Reverting 85714, 85715, 85716, which are breaking the build 2009-11-01 16:42:53 +00:00
LoopExtractor.cpp Update various Loop optimization passes to cope with the possibility that 2009-11-05 21:11:53 +00:00
LowerSetJmp.cpp Eliminate some temporaries. 2009-11-03 12:52:50 +00:00
Makefile make -fno-rtti the default unless a directory builds with REQUIRES_RTTI. 2010-01-24 20:43:08 +00:00
MergeFunctions.cpp Kill ModuleProvider and ghost linkage by inverting the relationship between 2010-01-27 20:34:15 +00:00
PartialInlining.cpp Fix indentation. 2010-01-05 16:20:55 +00:00
PartialSpecialization.cpp Remove includes of Support/Compiler.h that are no longer needed after the 2009-10-25 06:57:41 +00:00
PruneEH.cpp Remove includes of Support/Compiler.h that are no longer needed after the 2009-10-25 06:57:41 +00:00
StripDeadPrototypes.cpp Remove includes of Support/Compiler.h that are no longer needed after the 2009-10-25 06:57:41 +00:00
StripSymbols.cpp Another strncmp -> StringRef.startswith simplification. 2010-01-22 20:00:21 +00:00
StructRetPromotion.cpp Avoid going through the LLVMContext for type equality where it's safe to dereference the type pointer. 2010-01-05 13:12:22 +00:00