llvm-6502/include/llvm
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
..
ADT Add missing definitions of key_type and value_type to DenseSet. 2014-01-08 21:38:04 +00:00
Analysis Fix PR18449: SCEV needs more precise max BECount for multi-exit loop. 2014-01-15 06:42:11 +00:00
AsmParser Move the LLVM IR asm writer header files into the IR directory, as they 2014-01-07 12:34:26 +00:00
Bitcode Make parseBitcodeFile return an ErrorOr<Module *>. 2014-01-15 01:08:23 +00:00
CodeGen Add FPExt option to CCValAssign::LocInfo. When generating calling-convention 2014-01-14 19:56:36 +00:00
Config Remove the test for endianness in configure.ac and regenerate. 2014-01-09 01:09:57 +00:00
DebugInfo llvm-dwarfdump: type unit dwo support 2014-01-09 05:08:24 +00:00
ExecutionEngine Re-apply r196639: Add support for archives and object file caching under MCJIT. 2014-01-08 04:09:09 +00:00
IR Report a warning when dropping outdated debug info metadata. 2014-01-16 01:51:12 +00:00
IRReader
LTO [LTO] Add a hook to map LLVM diagnostics into the clients of LTO. 2014-01-15 22:04:35 +00:00
MC Add an emitRawComment function and use it to simplify some uses of EmitRawText. 2014-01-16 16:28:37 +00:00
Object llvm-objdump/COFF: Print DLL name in the export table header. 2014-01-16 20:50:34 +00:00
Option
Support Remove support for armv7f slice. <rdar://problem/12478440> 2014-01-15 21:44:14 +00:00
TableGen
Target WinCOFF: Transform IR expressions featuring __ImageBase into image relative relocations 2014-01-15 09:16:42 +00:00
Transforms [asan] Remove -fsanitize-address-zero-base-shadow command line 2014-01-16 10:19:12 +00:00
AutoUpgrade.h Debug Info: drop debug info via upgrading path if version number does not match. 2013-12-02 21:29:56 +00:00
CMakeLists.txt
DebugInfo.h Re-sort all of the includes with ./utils/sort_includes.py so that 2014-01-07 11:48:04 +00:00
DIBuilder.h Debug info: Implement (rvalue) reference qualifiers for C++11 non-static 2013-12-18 21:48:19 +00:00
GVMaterializer.h
InitializePasses.h [PM] Split DominatorTree into a concrete analysis result object which 2014-01-13 13:07:17 +00:00
InstVisitor.h
LinkAllIR.h [cleanup] Move the Dominators.h and Verifier.h headers into the IR 2014-01-13 09:26:24 +00:00
LinkAllPasses.h [PM] Simplify the interface exposed for IR printing passes. 2014-01-12 11:30:46 +00:00
Linker.h
Pass.h
PassAnalysisSupport.h
PassManager.h
PassRegistry.h Re-sort all of the includes with ./utils/sort_includes.py so that 2014-01-07 11:48:04 +00:00
PassSupport.h [opt][PassInfo] Allow opt to run passes that need target machine. 2014-01-16 21:44:34 +00:00