llvm-6502/tools
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
..
bugpoint Whitespace. 2014-01-15 08:21:38 +00:00
bugpoint-passes
gold
llc
lli
llvm-ar
llvm-as
llvm-bcanalyzer
llvm-c-test
llvm-config
llvm-cov
llvm-diff
llvm-dis
llvm-dwarfdump
llvm-extract
llvm-jitlistener
llvm-link
llvm-lto
llvm-mc
llvm-mcmarkup
llvm-nm Return an ErrorOr<Binary *> from createBinary. 2014-01-15 19:37:43 +00:00
llvm-objdump Fix style issues. 2014-01-16 20:57:55 +00:00
llvm-readobj Return an ErrorOr<Binary *> from createBinary. 2014-01-15 19:37:43 +00:00
llvm-rtdyld
llvm-shlib
llvm-size Return an ErrorOr<Binary *> from createBinary. 2014-01-15 19:37:43 +00:00
llvm-stress
llvm-symbolizer llvm-symbolizer: make mangled name heuristic apply to all symbols 2014-01-16 17:25:12 +00:00
lto Revert r199361: Now, the sanitizer got the change 2014-01-16 07:29:07 +00:00
macho-dump Return an ErrorOr<Binary *> from createBinary. 2014-01-15 19:37:43 +00:00
msbuild
obj2yaml
opt [opt][PassInfo] Allow opt to run passes that need target machine. 2014-01-16 21:44:34 +00:00
yaml2obj
CMakeLists.txt
LLVMBuild.txt
Makefile