1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-10-21 03:53:04 +02:00
llvm-mirror/lib/Transforms/Utils
Owen Anderson 46990c17f7 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.

llvm-svn: 116820
2010-10-19 17:21:58 +00:00
..
AddrModeMatcher.cpp Added skeleton for inline asm multiple alternative constraint support. 2010-09-13 18:15:37 +00:00
BasicBlockUtils.cpp typoes 2010-09-10 22:25:58 +00:00
BasicInliner.cpp simplify 2010-07-28 15:52:43 +00:00
BreakCriticalEdges.cpp Get rid of static constructors for pass registration. Instead, every pass exposes an initializeMyPassFunction(), which 2010-10-19 17:21:58 +00:00
BuildLibCalls.cpp undo 80 column trespassing I caused 2010-07-22 10:37:47 +00:00
CloneFunction.cpp Fix PR8313 by changing ValueToValueMap use a TrackingVH. 2010-10-13 02:08:17 +00:00
CloneLoop.cpp Be more consistent in using ValueToValueMapTy. 2010-10-13 01:36:30 +00:00
CloneModule.cpp Reapply r112091 and r111922, support for metadata linking, with a 2010-08-26 15:41:53 +00:00
CMakeLists.txt Next step on the getting-rid-of-static-ctors train: begin adding per-library 2010-10-07 17:55:47 +00:00
CodeExtractor.cpp typoes 2010-09-10 22:25:58 +00:00
DemoteRegToStack.cpp
InlineFunction.cpp Be more consistent in using ValueToValueMapTy. 2010-10-13 01:36:30 +00:00
InstructionNamer.cpp Get rid of static constructors for pass registration. Instead, every pass exposes an initializeMyPassFunction(), which 2010-10-19 17:21:58 +00:00
LCSSA.cpp Get rid of static constructors for pass registration. Instead, every pass exposes an initializeMyPassFunction(), which 2010-10-19 17:21:58 +00:00
Local.cpp Teach SimplifyCFG how to simplify indirectbr instructions. 2010-08-14 00:29:42 +00:00
LoopSimplify.cpp Get rid of static constructors for pass registration. Instead, every pass exposes an initializeMyPassFunction(), which 2010-10-19 17:21:58 +00:00
LoopUnroll.cpp Be more consistent in using ValueToValueMapTy. 2010-10-13 01:36:30 +00:00
LowerInvoke.cpp Get rid of static constructors for pass registration. Instead, every pass exposes an initializeMyPassFunction(), which 2010-10-19 17:21:58 +00:00
LowerSwitch.cpp Get rid of static constructors for pass registration. Instead, every pass exposes an initializeMyPassFunction(), which 2010-10-19 17:21:58 +00:00
Makefile
Mem2Reg.cpp Get rid of static constructors for pass registration. Instead, every pass exposes an initializeMyPassFunction(), which 2010-10-19 17:21:58 +00:00
PromoteMemoryToRegister.cpp remove some dead code. 2010-08-18 02:41:56 +00:00
SimplifyCFG.cpp Instead, teach SimplifyCFG to trim non-address-taken blocks from 2010-08-16 14:41:14 +00:00
SSAUpdater.cpp Reapply commit 112699, speculatively reverted by echristo, since 2010-09-02 08:14:03 +00:00
UnifyFunctionExitNodes.cpp Now with fewer extraneous semicolons! 2010-10-07 22:25:06 +00:00
Utils.cpp Next step on the getting-rid-of-static-ctors train: begin adding per-library 2010-10-07 17:55:47 +00:00
ValueMapper.cpp Fix PR8313 by changing ValueToValueMap use a TrackingVH. 2010-10-13 02:08:17 +00:00