llvm-mirror/tools/opt
Quentin Colombet b42dbc5117 [opt][PassInfo] Allow opt to run passes that need target machine.
When registering a pass, a pass can now specify a second construct that takes as
argument a pointer to TargetMachine.
The PassInfo class has been updated to reflect that possibility.
If such a constructor exists opt will use it instead of the default constructor
when instantiating the pass.

Since such IR passes are supposed to be rare, no specific support has been
added to this commit to allow an easy registration of such a pass.
In other words, for such pass, the initialization function has to be
hand-written (see CodeGenPrepare for instance).

Now, codegenprepare can be tested using opt:
opt -codegenprepare -mtriple=mytriple input.ll

llvm-svn: 199430
2014-01-16 21:44:34 +00:00
..
AnalysisWrappers.cpp [PM] Split the CallGraph out from the ModulePass which creates the 2013-11-26 04:19:30 +00:00
CMakeLists.txt [PM] Add (very skeletal) support to opt for running the new pass 2014-01-11 08:16:35 +00:00
GraphPrinters.cpp [PM] Split DominatorTree into a concrete analysis result object which 2014-01-13 13:07:17 +00:00
LLVMBuild.txt Split out the IRReader header and the utility functions it provides into 2013-03-26 02:25:37 +00:00
Makefile Strip dead code when linking by default with BFD ld (linux, ...) and ld64 (os x). 2013-12-27 22:38:59 +00:00
NewPMDriver.cpp [PM] Wire up support for writing bitcode with new PM. 2014-01-13 07:38:24 +00:00
NewPMDriver.h [PM] Add an enum for describing the desired output strategy, and run 2014-01-13 03:08:40 +00:00
opt.cpp [opt][PassInfo] Allow opt to run passes that need target machine. 2014-01-16 21:44:34 +00:00
Passes.cpp [PM] Add module and function printing passes for the new pass manager. 2014-01-12 12:15:39 +00:00
Passes.h [PM] Add (very skeletal) support to opt for running the new pass 2014-01-11 08:16:35 +00:00
PrintSCC.cpp [PM] Remove the underspecified 'getRoot' method from CallGraph. It's 2013-11-27 01:32:17 +00:00