LLVM API Documentation
#include <NVPTXTargetMachine.h>
Public Member Functions | |
NVPTXTargetMachine (const Target &T, StringRef TT, StringRef CPU, StringRef FS, const TargetOptions &Options, Reloc::Model RM, CodeModel::Model CM, CodeGenOpt::Level OP, bool is64bit) | |
virtual const TargetFrameLowering * | getFrameLowering () const |
virtual const NVPTXInstrInfo * | getInstrInfo () const |
virtual const DataLayout * | getDataLayout () const |
virtual const NVPTXSubtarget * | getSubtargetImpl () const |
virtual const NVPTXRegisterInfo * | getRegisterInfo () const |
virtual NVPTXTargetLowering * | getTargetLowering () const |
virtual const TargetSelectionDAGInfo * | getSelectionDAGInfo () const |
ManagedStringPool * | getManagedStrPool () const |
virtual TargetPassConfig * | createPassConfig (PassManagerBase &PM) |
virtual bool | addPassesToEmitMachineCode (PassManagerBase &, JITCodeEmitter &, bool=true) |
virtual bool | addPassesToEmitMC (PassManagerBase &, MCContext *&, raw_ostream &, bool=true) |
![]() | |
virtual void | addAnalysisPasses (PassManagerBase &PM) |
Register analysis passes for this target 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 | 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... | |
const MCAsmInfo * | getMCAsmInfo () const |
template<typename STC > | |
const STC & | getSubtarget () const |
virtual const TargetIntrinsicInfo * | getIntrinsicInfo () const |
virtual TargetJITInfo * | getJITInfo () |
virtual const InstrItineraryData * | getInstrItineraryData () 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 |
Definition at line 32 of file NVPTXTargetMachine.h.
NVPTXTargetMachine::NVPTXTargetMachine | ( | const Target & | T, |
StringRef | TT, | ||
StringRef | CPU, | ||
StringRef | FS, | ||
const TargetOptions & | Options, | ||
Reloc::Model | RM, | ||
CodeModel::Model | CM, | ||
CodeGenOpt::Level | OP, | ||
bool | is64bit | ||
) |
Definition at line 66 of file NVPTXTargetMachine.cpp.
References llvm::LLVMTargetMachine::initAsmInfo().
|
inlinevirtual |
addPassesToEmitMachineCode - Add passes to the specified pass manager to get machine code emitted. This uses a JITCodeEmitter object to handle actually outputting the machine code and resolving things like the address of functions. This method returns true if machine code emission is not supported.
addPassesToEmitMachineCode - Add passes to the specified pass manager to get machine code emitted. This uses a JITCodeEmitter object to handle actually outputting the machine code and resolving things like the address of functions. This method should return true if machine code emission is not supported.
Reimplemented from llvm::LLVMTargetMachine.
Definition at line 85 of file NVPTXTargetMachine.h.
|
inlinevirtual |
addPassesToEmitMC - Add passes to the specified pass manager to get machine code emitted with the MCJIT. This method returns true if machine code is not supported. It fills the MCContext Ctx pointer which can be used to build custom MCStreamer.
Reimplemented from llvm::LLVMTargetMachine.
Definition at line 91 of file NVPTXTargetMachine.h.
|
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 115 of file NVPTXTargetMachine.cpp.
|
inlinevirtual |
Reimplemented from llvm::TargetMachine.
Definition at line 58 of file NVPTXTargetMachine.h.
|
inlinevirtual |
Reimplemented from llvm::TargetMachine.
Definition at line 54 of file NVPTXTargetMachine.h.
|
inlinevirtual |
Reimplemented from llvm::TargetMachine.
Definition at line 57 of file NVPTXTargetMachine.h.
Referenced by llvm::NVPTXFrameLowering::emitPrologue().
|
inline |
Definition at line 78 of file NVPTXTargetMachine.h.
Referenced by llvm::NVPTXTargetLowering::LowerCall().
|
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 61 of file NVPTXTargetMachine.h.
References llvm::NVPTXInstrInfo::getRegisterInfo().
|
inlinevirtual |
Reimplemented from llvm::TargetMachine.
Definition at line 69 of file NVPTXTargetMachine.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 59 of file NVPTXTargetMachine.h.
|
inlinevirtual |
Reimplemented from llvm::TargetMachine.
Definition at line 65 of file NVPTXTargetMachine.h.
Referenced by llvm::NVPTXTargetLowering::LowerCall(), and llvm::NVPTXTargetLowering::LowerFormalArguments().