LLVM API Documentation
#include <TargetMachine.h>
Inheritance diagram for llvm::TargetMachine:
Public Member Functions | |
virtual | ~TargetMachine () |
const std::string & | getName () const |
IntrinsicLowering & | getIntrinsicLowering () const |
virtual const TargetInstrInfo * | getInstrInfo () const |
virtual const TargetFrameInfo * | getFrameInfo () const |
const TargetData & | getTargetData () const |
virtual const MRegisterInfo * | getRegisterInfo () const |
virtual TargetJITInfo * | getJITInfo () |
virtual const TargetSchedInfo * | getSchedInfo () const |
virtual const SparcV9RegInfo * | getRegInfo () const |
virtual bool | addPassesToEmitAssembly (PassManager &PM, std::ostream &Out) |
virtual bool | addPassesToEmitMachineCode (FunctionPassManager &PM, MachineCodeEmitter &MCE) |
Static Public Member Functions | |
static unsigned | getModuleMatchQuality (const Module &M) |
static unsigned | getJITMatchQuality () |
Protected Member Functions | |
TargetMachine (const std::string &name, IntrinsicLowering *IL, bool LittleEndian=false, unsigned char PtrSize=8, unsigned char PtrAl=8, unsigned char DoubleAl=8, unsigned char FloatAl=4, unsigned char LongAl=8, unsigned char IntAl=4, unsigned char ShortAl=2, unsigned char ByteAl=1, unsigned char BoolAl=1) | |
TargetMachine (const std::string &name, IntrinsicLowering *IL, const TargetData &TD) | |
TargetMachine (const std::string &name, IntrinsicLowering *IL, const Module &M) |
Definition at line 41 of file TargetMachine.h.
|
Definition at line 43 of file TargetMachine.cpp. |
|
Definition at line 56 of file TargetMachine.cpp. |
|
This constructor is used for targets that support arbitrary TargetData layouts, like the C backend. It initializes the TargetData to match that of the specified module. Definition at line 62 of file TargetMachine.cpp. |
|
Definition at line 68 of file TargetMachine.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 in llvm::CTargetMachine, llvm::PowerPCTargetMachine, llvm::SkeletonTargetMachine, llvm::SparcV9TargetMachine, and llvm::X86TargetMachine. Definition at line 120 of file TargetMachine.h. |
|
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 in llvm::PPC32TargetMachine, llvm::PPC64TargetMachine, llvm::SkeletonTargetMachine, llvm::SparcV9TargetMachine, and llvm::X86TargetMachine. Definition at line 130 of file TargetMachine.h. |
|
|
|
getIntrinsicLowering - This method returns a reference to an IntrinsicLowering instance which should be used by the code generator to lower unknown intrinsic functions to the equivalent LLVM expansion. Definition at line 89 of file TargetMachine.h. Referenced by llvm::CTargetMachine::addPassesToEmitAssembly(). |
|
getJITInfo - If this target supports a JIT, return information for it, otherwise return null. Reimplemented in llvm::PPC32TargetMachine, llvm::SkeletonTargetMachine, llvm::SparcV9TargetMachine, and llvm::X86TargetMachine. Definition at line 109 of file TargetMachine.h. Referenced by llvm::JIT::create(). |
|
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 in llvm::PPC32TargetMachine, llvm::SparcV9TargetMachine, and llvm::X86TargetMachine. Definition at line 80 of file TargetMachine.h. Referenced by llvm::PPC64TargetMachine::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 in llvm::CTargetMachine, llvm::PPC32TargetMachine, llvm::PPC64TargetMachine, llvm::SparcV9TargetMachine, and llvm::X86TargetMachine. Definition at line 74 of file TargetMachine.h. |
|
Definition at line 83 of file TargetMachine.h. |
|
Reimplemented in llvm::SparcV9TargetMachine. Definition at line 113 of file TargetMachine.h. Referenced by llvm::IsUselessCopy(), and llvm::PhyRegAlloc::runOnFunction(). |
|
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 in llvm::PPC32TargetMachine, llvm::PPC64TargetMachine, llvm::SkeletonTargetMachine, llvm::SparcV9TargetMachine, and llvm::X86TargetMachine. Definition at line 104 of file TargetMachine.h. Referenced by llvm::VirtRegMap::print(), print(), llvm::LiveVariables::runOnMachineFunction(), and llvm::LiveIntervals::runOnMachineFunction(). |
|
Reimplemented in llvm::SparcV9TargetMachine. Definition at line 112 of file TargetMachine.h. |
|