llvm-6502/lib/VMCore
Owen Anderson 081c34b725 Get rid of static constructors for pass registration. Instead, every pass exposes an initializeMyPassFunction(), which
must be called in the pass's constructor.  This function uses static dependency declarations to recursively initialize
the pass's dependencies.

Clients that only create passes through the createFooPass() APIs will require no changes.  Clients that want to use the
CommandLine options for passes will need to manually call the appropriate initialization functions in PassInitialization.h
before parsing commandline arguments.

I have tested this with all standard configurations of clang and llvm-gcc on Darwin.  It is possible that there are problems
with the static dependencies that will only be visible with non-standard options.  If you encounter any crash in pass
registration/creation, please send the testcase to me directly.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@116820 91177308-0d34-0410-b5e6-96231b3b80d8
2010-10-19 17:21:58 +00:00
..
AsmWriter.cpp Add ret instruction to PTX backend 2010-09-25 07:46:17 +00:00
Attributes.cpp Fix a threaded LLVM bug due the need for operator= on reference counted AttrListImpl's. It might 2010-09-16 00:27:35 +00:00
AutoUpgrade.cpp The pshufw instruction came about in MMX2 when SSE was introduced. Don't place 2010-10-04 20:24:01 +00:00
BasicBlock.cpp
CMakeLists.txt Build with RTTI and exceptions disabled. Only in GCC for now. 2010-10-17 02:26:16 +00:00
ConstantFold.cpp
ConstantFold.h
Constants.cpp
ConstantsContext.h
Core.cpp std::string cleanup. 2010-10-17 07:39:34 +00:00
DebugLoc.cpp
Dominators.cpp Begin adding static dependence information to passes, which will allow us to 2010-10-12 19:48:12 +00:00
Function.cpp
Globals.cpp
GVMaterializer.cpp
InlineAsm.cpp Silence some constructor ordering warnings. 2010-09-13 18:25:05 +00:00
Instruction.cpp
Instructions.cpp Cleanup. Get rid of extraneous variable. 2010-10-03 00:46:06 +00:00
IntrinsicInst.cpp
IRBuilder.cpp
LeakDetector.cpp
LeaksContext.h
LLVMContext.cpp Remove the experimental AliasAnalysis::getDependency interface, which 2010-09-14 21:25:10 +00:00
LLVMContextImpl.cpp More SmallVectorImpls. 2010-10-12 00:15:27 +00:00
LLVMContextImpl.h Add X86 MMX type to bitcode and Type. 2010-09-10 20:55:01 +00:00
Makefile
Metadata.cpp When an MDNode changes to become identical to another MDNode, 2010-09-28 22:07:19 +00:00
Module.cpp Clarify the ownership model of LLVMContext and Module. Namely, contexts own 2010-09-08 18:03:32 +00:00
Pass.cpp Another step towards getting rid of static ctors for pass registration: have INITIALIZE_PASS AND INITIALIZE_AG_PASS 2010-10-05 22:58:16 +00:00
PassManager.cpp More SmallVectorImpls. 2010-10-12 00:15:27 +00:00
PassRegistry.cpp Delete a redundant check. 2010-10-12 00:19:24 +00:00
PrintModulePass.cpp Now with fewer extraneous semicolons! 2010-10-07 22:25:06 +00:00
SymbolTableListTraitsImpl.h
Type.cpp Massive rewrite of MMX: 2010-09-30 23:57:10 +00:00
TypesContext.h
TypeSymbolTable.cpp
Use.cpp
Value.cpp
ValueSymbolTable.cpp
ValueTypes.cpp Add x86MMX a few more places. 2010-09-15 00:52:23 +00:00
Verifier.cpp Get rid of static constructors for pass registration. Instead, every pass exposes an initializeMyPassFunction(), which 2010-10-19 17:21:58 +00:00