LLVM API Documentation
#include <X86TargetMachine.h>
Inheritance diagram for llvm::X86TargetMachine:
Public Member Functions | |
X86TargetMachine (const Module &M, IntrinsicLowering *IL) | |
virtual const X86InstrInfo * | getInstrInfo () const |
virtual const TargetFrameInfo * | getFrameInfo () const |
virtual TargetJITInfo * | getJITInfo () |
virtual const MRegisterInfo * | getRegisterInfo () const |
virtual bool | addPassesToEmitMachineCode (FunctionPassManager &PM, MachineCodeEmitter &MCE) |
virtual bool | addPassesToEmitAssembly (PassManager &PM, std::ostream &Out) |
Static Public Member Functions | |
static unsigned | getModuleMatchQuality (const Module &M) |
static unsigned | getJITMatchQuality () |
Definition at line 26 of file X86TargetMachine.h.
|
X86TargetMachine ctor - Create an ILP32 architecture model Definition at line 84 of file X86TargetMachine.cpp. |
|
addPassesToEmitAssembly - Add passes to the specified pass manager to get assembly langage code emitted. Typically this will involve several steps of code generation. This method should return true if assembly emission is not supported. Reimplemented from llvm::TargetMachine. Definition at line 93 of file X86TargetMachine.cpp. References llvm::PassManager::add(), llvm::createLowerGCPass(), llvm::createLowerInvokePass(), llvm::createLowerSwitchPass(), llvm::createMachineCodeDeleter(), llvm::createMachineFunctionPrinterPass(), llvm::createPrologEpilogCodeInserter(), llvm::createRegisterAllocator(), llvm::createUnreachableBlockEliminationPass(), llvm::createX86CodePrinterPass(), llvm::createX86FloatingPointStackifierPass(), llvm::createX86PeepholeOptimizerPass(), llvm::createX86SimpleInstructionSelector(), llvm::createX86SSAPeepholeOptimizerPass(), DisableOutput, NoSSAPeephole, and llvm::PrintMachineCode. |
|
addPassesToEmitMachineCode - Add passes to the specified pass manager to get machine code emitted. This uses a MachineCodeEmitter object to handle actually outputting the machine code and resolving things like the address of functions. This method should returns true if machine code emission is not supported. Reimplemented from llvm::TargetMachine. Definition at line 76 of file X86CodeEmitter.cpp. References llvm::FunctionPassManager::add(), and llvm::createMachineCodeDeleter(). |
|
Reimplemented from llvm::TargetMachine. Definition at line 34 of file X86TargetMachine.h. |
|
Reimplemented from llvm::TargetMachine. Definition at line 33 of file X86TargetMachine.h. |
|
getJITInfo - If this target supports a JIT, return information for it, otherwise return null. Reimplemented from llvm::TargetMachine. Definition at line 35 of file X86TargetMachine.h. |
|
getJITMatchQuality - This static method should be implemented by targets that provide JIT capabilities to indicate how suitable they are for execution on the current host. If a value of 0 is returned, the target will not be used unless an explicit -march option is used. Reimplemented from llvm::TargetMachine. Definition at line 63 of file X86TargetMachine.cpp. Referenced by getModuleMatchQuality(). |
|
getModuleMatchQuality - This static method should be implemented by targets to indicate how closely they match the specified module. This is used by the LLC tool to determine which target to use when an explicit -march option is not specified. If a target returns zero, it will never be chosen without an explicit -march option. Reimplemented from llvm::TargetMachine. Definition at line 71 of file X86TargetMachine.cpp. References llvm::Module::AnyEndianness, llvm::Module::AnyPointerSize, llvm::Module::getEndianness(), getJITMatchQuality(), llvm::Module::getPointerSize(), llvm::Module::LittleEndian, and llvm::Module::Pointer32. |
|
getRegisterInfo - If register information is available, return it. If not, return null. This is kept separate from RegInfo until RegInfo has details of graph coloring register allocation removed from it. Reimplemented from llvm::TargetMachine. Definition at line 36 of file X86TargetMachine.h. References llvm::X86InstrInfo::getRegisterInfo(). |