llvm-6502/tools/opt
Quentin Colombet 9b24eeee01 [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


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@199430 91177308-0d34-0410-b5e6-96231b3b80d8
2014-01-16 21:44:34 +00:00
..
AnalysisWrappers.cpp
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
Makefile
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