LLVM API Documentation
#include <X86TargetMachine.h>
Inheritance diagram for llvm::X86TargetMachine:
Public Member Functions | |
X86TargetMachine (const Module &M, const std::string &FS) | |
virtual const X86InstrInfo * | getInstrInfo () const |
virtual const TargetFrameInfo * | getFrameInfo () const |
virtual TargetJITInfo * | getJITInfo () |
virtual const TargetSubtarget * | getSubtargetImpl () const |
virtual X86TargetLowering * | getTargetLowering () const |
virtual const MRegisterInfo * | getRegisterInfo () const |
virtual const TargetData * | getTargetData () const |
virtual bool | addPassesToEmitMachineCode (FunctionPassManager &PM, MachineCodeEmitter &MCE) |
virtual bool | addPassesToEmitFile (PassManager &PM, std::ostream &Out, CodeGenFileType FileType, bool Fast) |
Static Public Member Functions | |
static unsigned | getModuleMatchQuality (const Module &M) |
static unsigned | getJITMatchQuality () |
Definition at line 29 of file X86TargetMachine.h.
X86TargetMachine::X86TargetMachine | ( | const Module & | M, | |
const std::string & | FS | |||
) |
X86TargetMachine ctor - Create an ILP32 architecture model
Definition at line 70 of file X86TargetMachine.cpp.
References llvm::Reloc::Default, llvm::Reloc::DynamicNoPIC, llvm::TargetMachine::getRelocationModel(), llvm::X86Subtarget::isTargetDarwin(), llvm::Reloc::PIC_, and llvm::TargetMachine::setRelocationModel().
virtual const X86InstrInfo* llvm::X86TargetMachine::getInstrInfo | ( | ) | const [inline, virtual] |
virtual const TargetFrameInfo* llvm::X86TargetMachine::getFrameInfo | ( | ) | const [inline, virtual] |
virtual TargetJITInfo* llvm::X86TargetMachine::getJITInfo | ( | ) | [inline, virtual] |
getJITInfo - If this target supports a JIT, return information for it, otherwise return null.
Reimplemented from llvm::TargetMachine.
Definition at line 41 of file X86TargetMachine.h.
virtual const TargetSubtarget* llvm::X86TargetMachine::getSubtargetImpl | ( | ) | const [inline, virtual] |
getSubtargetImpl - virtual method implemented by subclasses that returns a reference to that target's TargetSubtarget-derived member variable.
Reimplemented from llvm::TargetMachine.
Definition at line 42 of file X86TargetMachine.h.
virtual X86TargetLowering* llvm::X86TargetMachine::getTargetLowering | ( | ) | const [inline, virtual] |
Reimplemented from llvm::TargetMachine.
Definition at line 43 of file X86TargetMachine.h.
Referenced by llvm::X86JITInfo::addPassesToJITCompile().
virtual const MRegisterInfo* llvm::X86TargetMachine::getRegisterInfo | ( | ) | const [inline, virtual] |
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 46 of file X86TargetMachine.h.
References llvm::X86InstrInfo::getRegisterInfo().
virtual const TargetData* llvm::X86TargetMachine::getTargetData | ( | ) | const [inline, virtual] |
bool X86TargetMachine::addPassesToEmitMachineCode | ( | FunctionPassManager & | PM, | |
MachineCodeEmitter & | MCE | |||
) | [virtual] |
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 195 of file X86TargetMachine.cpp.
References llvm::FunctionPassManager::add(), llvm::createMachineCodeDeleter(), llvm::createX86CodeEmitterPass(), and MCE.
bool X86TargetMachine::addPassesToEmitFile | ( | PassManager & | PM, | |
std::ostream & | Out, | |||
CodeGenFileType | FileType, | |||
bool | Fast | |||
) | [virtual] |
addPassesToEmitFile - Add passes to the specified pass manager to get the specified file emitted. Typically this will involve several steps of code generation. If Fast is set to true, the code generator should emit code as fast as possible, without regard for compile time. This method should return true if emission of this file type is not supported.
Reimplemented from llvm::TargetMachine.
Definition at line 87 of file X86TargetMachine.cpp.
References llvm::PassManager::add(), llvm::addX86ELFObjectWriterPass(), llvm::TargetMachine::AssemblyFile, llvm::createLoopStrengthReducePass(), llvm::createLowerGCPass(), llvm::createLowerInvokePass(), llvm::createMachineCodeDeleter(), llvm::createMachineFunctionPrinterPass(), llvm::createPrologEpilogCodeInserter(), llvm::createRegisterAllocator(), llvm::createUnreachableBlockEliminationPass(), llvm::createX86CodePrinterPass(), llvm::createX86FloatingPointStackifierPass(), llvm::createX86ISelDag(), DisableOutput, llvm::TargetMachine::ObjectFile, and llvm::PrintMachineCode.
unsigned X86TargetMachine::getModuleMatchQuality | ( | const Module & | M | ) | [static] |
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 51 of file X86TargetMachine.cpp.
References llvm::Module::AnyEndianness, llvm::Module::AnyPointerSize, llvm::Module::getEndianness(), getJITMatchQuality(), llvm::Module::getPointerSize(), llvm::Module::getTargetTriple(), llvm::Module::LittleEndian, M, and llvm::Module::Pointer32.
unsigned X86TargetMachine::getJITMatchQuality | ( | ) | [static] |
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 43 of file X86TargetMachine.cpp.
Referenced by getModuleMatchQuality().