LLVM API Documentation
#include <AMDGPUTargetMachine.h>
Public Member Functions | |
AMDGPUTargetMachine (const Target &T, StringRef TT, StringRef FS, StringRef CPU, TargetOptions Options, Reloc::Model RM, CodeModel::Model CM, CodeGenOpt::Level OL) | |
~AMDGPUTargetMachine () | |
virtual const AMDGPUFrameLowering * | getFrameLowering () const |
virtual const AMDGPUIntrinsicInfo * | getIntrinsicInfo () const |
virtual const AMDGPUInstrInfo * | getInstrInfo () const |
virtual const AMDGPUSubtarget * | getSubtargetImpl () const |
virtual const AMDGPURegisterInfo * | getRegisterInfo () const |
virtual AMDGPUTargetLowering * | getTargetLowering () const |
virtual const InstrItineraryData * | getInstrItineraryData () const |
virtual const DataLayout * | getDataLayout () const |
virtual TargetPassConfig * | createPassConfig (PassManagerBase &PM) |
virtual void | addAnalysisPasses (PassManagerBase &PM) |
Register R600 analysis passes with a pass manager. More... | |
![]() | |
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) |
virtual bool | addCodeEmitter (PassManagerBase &, JITCodeEmitter &) |
![]() | |
virtual | ~TargetMachine () |
const Target & | getTarget () 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 TargetSelectionDAGInfo * | getSelectionDAGInfo () const |
const MCAsmInfo * | getMCAsmInfo () const |
template<typename STC > | |
const STC & | getSubtarget () const |
virtual TargetJITInfo * | getJITInfo () |
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 |
Definition at line 28 of file AMDGPUTargetMachine.h.
AMDGPUTargetMachine::AMDGPUTargetMachine | ( | const Target & | T, |
StringRef | TT, | ||
StringRef | FS, | ||
StringRef | CPU, | ||
TargetOptions | Options, | ||
Reloc::Model | RM, | ||
CodeModel::Model | CM, | ||
CodeGenOpt::Level | OL | ||
) |
Definition at line 52 of file AMDGPUTargetMachine.cpp.
References llvm::AMDGPUSubtarget::getGeneration(), llvm::LLVMTargetMachine::initAsmInfo(), and llvm::AMDGPUSubtarget::NORTHERN_ISLANDS.
AMDGPUTargetMachine::~AMDGPUTargetMachine | ( | ) |
Definition at line 78 of file AMDGPUTargetMachine.cpp.
|
virtual |
Register R600 analysis passes with a pass manager.
Reimplemented from llvm::LLVMTargetMachine.
Definition at line 116 of file AMDGPUTargetMachine.cpp.
References llvm::createAMDGPUTargetTransformInfoPass(), and llvm::createBasicTargetTransformInfoPass().
|
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 108 of file AMDGPUTargetMachine.cpp.
|
inlinevirtual |
Reimplemented from llvm::TargetMachine.
Definition at line 62 of file AMDGPUTargetMachine.h.
|
inlinevirtual |
Reimplemented from llvm::TargetMachine.
Definition at line 43 of file AMDGPUTargetMachine.h.
|
inlinevirtual |
Reimplemented from llvm::TargetMachine.
Definition at line 49 of file AMDGPUTargetMachine.h.
Referenced by llvm::SIRegisterInfo::getReservedRegs(), and llvm::R600RegisterInfo::getReservedRegs().
|
inlinevirtual |
getInstrItineraryData - Returns instruction itinerary data for the target or specific subtarget.
Reimplemented from llvm::TargetMachine.
Definition at line 59 of file AMDGPUTargetMachine.h.
|
inlinevirtual |
getIntrinsicInfo - If intrinsic information is available, return it. If not, return null.
Reimplemented from llvm::TargetMachine.
Definition at line 46 of file AMDGPUTargetMachine.h.
|
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 53 of file AMDGPUTargetMachine.h.
|
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 52 of file AMDGPUTargetMachine.h.
|
inlinevirtual |
Reimplemented from llvm::TargetMachine.
Definition at line 56 of file AMDGPUTargetMachine.h.