LLVM API Documentation

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Public Member Functions | List of all members
llvm::X86TargetMachine Class Reference

#include <X86TargetMachine.h>

Inheritance diagram for llvm::X86TargetMachine:
Inheritance graph
[legend]
Collaboration diagram for llvm::X86TargetMachine:
Collaboration graph
[legend]

Public Member Functions

 X86TargetMachine (const Target &T, StringRef TT, StringRef CPU, StringRef FS, const TargetOptions &Options, Reloc::Model RM, CodeModel::Model CM, CodeGenOpt::Level OL, bool is64Bit)
 
virtual const X86InstrInfogetInstrInfo () const
 
virtual const TargetFrameLoweringgetFrameLowering () const
 
virtual X86JITInfogetJITInfo ()
 
virtual const X86SubtargetgetSubtargetImpl () const
 
virtual const X86TargetLoweringgetTargetLowering () const
 
virtual const X86SelectionDAGInfogetSelectionDAGInfo () const
 
virtual const X86RegisterInfogetRegisterInfo () const
 
virtual const InstrItineraryDatagetInstrItineraryData () const
 
virtual void addAnalysisPasses (PassManagerBase &PM)
 Register X86 analysis passes with a pass manager. More...
 
virtual TargetPassConfigcreatePassConfig (PassManagerBase &PM)
 
virtual bool addCodeEmitter (PassManagerBase &PM, JITCodeEmitter &JCE)
 
- Public Member Functions inherited from llvm::LLVMTargetMachine
virtual bool addPassesToEmitFile (PassManagerBase &PM, formatted_raw_ostream &Out, CodeGenFileType FileType, bool DisableVerify=true, AnalysisID StartAfter=0, AnalysisID StopAfter=0)
 
virtual bool addPassesToEmitMachineCode (PassManagerBase &PM, JITCodeEmitter &MCE, bool DisableVerify=true)
 
virtual bool addPassesToEmitMC (PassManagerBase &PM, MCContext *&Ctx, raw_ostream &OS, bool DisableVerify=true)
 
- Public Member Functions inherited from llvm::TargetMachine
virtual ~TargetMachine ()
 
const TargetgetTarget () const
 
const StringRef getTargetTriple () const
 
const StringRef getTargetCPU () const
 
const StringRef getTargetFeatureString () const
 
void resetTargetOptions (const MachineFunction *MF) const
 Reset the target options based on the function's attributes. More...
 
virtual const DataLayoutgetDataLayout () const
 
const MCAsmInfogetMCAsmInfo () const
 
template<typename STC >
const STC & getSubtarget () const
 
virtual const TargetIntrinsicInfogetIntrinsicInfo () const
 
bool hasMCRelaxAll () const
 
void setMCRelaxAll (bool Value)
 
bool hasMCSaveTempLabels () const
 
void setMCSaveTempLabels (bool Value)
 
bool hasMCNoExecStack () const
 hasMCNoExecStack - Check whether an executable stack is not needed. More...
 
void setMCNoExecStack (bool Value)
 setMCNoExecStack - Set whether an executabel stack is not needed. More...
 
bool hasMCUseLoc () const
 hasMCUseLoc - Check whether we should use dwarf's .loc directive. More...
 
void setMCUseLoc (bool Value)
 setMCUseLoc - Set whether all we should use dwarf's .loc directive. More...
 
bool hasMCUseCFI () const
 hasMCUseCFI - Check whether we should use dwarf's .cfi_* directives. More...
 
void setMCUseCFI (bool Value)
 setMCUseCFI - Set whether all we should use dwarf's .cfi_* directives. More...
 
bool hasMCUseDwarfDirectory () const
 
void setMCUseDwarfDirectory (bool Value)
 
Reloc::Model getRelocationModel () const
 
CodeModel::Model getCodeModel () const
 
TLSModel::Model getTLSModel (const GlobalValue *GV) const
 
CodeGenOpt::Level getOptLevel () const
 
void setOptLevel (CodeGenOpt::Level Level) const
 Overrides the optimization level. More...
 
void setFastISel (bool Enable)
 
bool shouldPrintMachineCode () const
 

Additional Inherited Members

- Public Types inherited from llvm::TargetMachine
enum  CodeGenFileType { CGFT_AssemblyFile, CGFT_ObjectFile, CGFT_Null }
 
- Static Public Member Functions inherited from llvm::TargetMachine
static bool getAsmVerbosityDefault ()
 
static void setAsmVerbosityDefault (bool)
 
static bool getDataSections ()
 
static bool getFunctionSections ()
 
static void setDataSections (bool)
 setDataSections - Set if the data are emit into separate sections. More...
 
static void setFunctionSections (bool)
 
- Public Attributes inherited from llvm::TargetMachine
TargetOptions Options
 
- Protected Member Functions inherited from llvm::LLVMTargetMachine
 LLVMTargetMachine (const Target &T, StringRef TargetTriple, StringRef CPU, StringRef FS, TargetOptions Options, Reloc::Model RM, CodeModel::Model CM, CodeGenOpt::Level OL)
 
void initAsmInfo ()
 
- Protected Member Functions inherited from llvm::TargetMachine
 TargetMachine (const Target &T, StringRef TargetTriple, StringRef CPU, StringRef FS, const TargetOptions &Options)
 
- Protected Attributes inherited from llvm::TargetMachine
const TargetTheTarget
 TheTarget - The Target that this machine was created for. More...
 
std::string TargetTriple
 
std::string TargetCPU
 
std::string TargetFS
 
MCCodeGenInfoCodeGenInfo
 
const MCAsmInfoAsmInfo
 
unsigned MCRelaxAll: 1
 
unsigned MCNoExecStack: 1
 
unsigned MCSaveTempLabels: 1
 
unsigned MCUseLoc: 1
 
unsigned MCUseCFI: 1
 
unsigned MCUseDwarfDirectory: 1
 

Detailed Description

Definition at line 32 of file X86TargetMachine.h.

Constructor & Destructor Documentation

X86TargetMachine::X86TargetMachine ( const Target T,
StringRef  TT,
StringRef  CPU,
StringRef  FS,
const TargetOptions Options,
Reloc::Model  RM,
CodeModel::Model  CM,
CodeGenOpt::Level  OL,
bool  is64Bit 
)

Member Function Documentation

void X86TargetMachine::addAnalysisPasses ( PassManagerBase &  PM)
virtual

Register X86 analysis passes with a pass manager.

Reimplemented from llvm::LLVMTargetMachine.

Definition at line 131 of file X86TargetMachine.cpp.

References llvm::createBasicTargetTransformInfoPass(), and llvm::createX86TargetTransformInfoPass().

bool X86TargetMachine::addCodeEmitter ( PassManagerBase &  ,
JITCodeEmitter  
)
virtual

addCodeEmitter - This pass should be overridden by the target to add a code emitter, if supported. If this is not supported, 'true' should be returned.

Reimplemented from llvm::LLVMTargetMachine.

Definition at line 229 of file X86TargetMachine.cpp.

References llvm::createX86JITCodeEmitterPass().

TargetPassConfig * X86TargetMachine::createPassConfig ( PassManagerBase &  PM)
virtual

createPassConfig - Create a pass configuration object to be used by addPassToEmitX methods for generating a pipeline of CodeGen passes.

createPassConfig - Create a pass configuration object to be used by addPassToEmitX methods for generating a pipeline of CodeGen passes.

Targets may override this to extend TargetPassConfig.

Reimplemented from llvm::LLVMTargetMachine.

Definition at line 167 of file X86TargetMachine.cpp.

virtual const TargetFrameLowering* llvm::X86TargetMachine::getFrameLowering ( ) const
inlinevirtual
virtual const X86InstrInfo* llvm::X86TargetMachine::getInstrInfo ( ) const
inlinevirtual
virtual const InstrItineraryData* llvm::X86TargetMachine::getInstrItineraryData ( ) const
inlinevirtual

getInstrItineraryData - Returns instruction itinerary data for the target or specific subtarget.

Reimplemented from llvm::TargetMachine.

Definition at line 63 of file X86TargetMachine.h.

virtual X86JITInfo* llvm::X86TargetMachine::getJITInfo ( )
inlinevirtual

getJITInfo - If this target supports a JIT, return information for it, otherwise return null.

Reimplemented from llvm::TargetMachine.

Reimplemented in llvm::X86_64TargetMachine, and llvm::X86_32TargetMachine.

Definition at line 50 of file X86TargetMachine.h.

References llvm_unreachable.

virtual const X86RegisterInfo* llvm::X86TargetMachine::getRegisterInfo ( ) const
inlinevirtual

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 60 of file X86TargetMachine.h.

References getInstrInfo(), and llvm::X86InstrInfo::getRegisterInfo().

Referenced by llvm::X86FrameLowering::adjustForHiPEPrologue(), llvm::X86FrameLowering::eliminateCallFramePseudoInstr(), llvm::X86FrameLowering::emitCalleeSavedFrameMoves(), llvm::X86FrameLowering::emitEpilogue(), llvm::X86FrameLowering::emitPrologue(), llvm::X86FrameLowering::hasFP(), and llvm::X86FrameLowering::processFunctionBeforeCalleeSavedScan().

virtual const X86SelectionDAGInfo* llvm::X86TargetMachine::getSelectionDAGInfo ( ) const
inlinevirtual

Reimplemented from llvm::TargetMachine.

Reimplemented in llvm::X86_64TargetMachine, and llvm::X86_32TargetMachine.

Definition at line 57 of file X86TargetMachine.h.

References llvm_unreachable.

virtual const X86Subtarget* llvm::X86TargetMachine::getSubtargetImpl ( ) const
inlinevirtual

getSubtargetImpl - virtual method implemented by subclasses that returns a reference to that target's TargetSubtargetInfo-derived member variable.

Reimplemented from llvm::TargetMachine.

Definition at line 53 of file X86TargetMachine.h.

Referenced by llvm::X86InstrInfo::shouldScheduleLoadsNear().

virtual const X86TargetLowering* llvm::X86TargetMachine::getTargetLowering ( ) const
inlinevirtual

Reimplemented from llvm::TargetMachine.

Reimplemented in llvm::X86_64TargetMachine, and llvm::X86_32TargetMachine.

Definition at line 54 of file X86TargetMachine.h.

References llvm_unreachable.


The documentation for this class was generated from the following files: