LLVM
15.0.0git
|
Primary interface to the complete machine description for the target machine. More...
#include "llvm/Target/TargetMachine.h"
Public Member Functions | |
TargetMachine (const TargetMachine &)=delete | |
void | operator= (const TargetMachine &)=delete |
virtual | ~TargetMachine () |
const Target & | getTarget () const |
const Triple & | getTargetTriple () const |
StringRef | getTargetCPU () const |
StringRef | getTargetFeatureString () const |
void | setTargetFeatureString (StringRef FS) |
virtual const TargetSubtargetInfo * | getSubtargetImpl (const Function &) const |
Virtual method implemented by subclasses that returns a reference to that target's TargetSubtargetInfo-derived member variable. More... | |
virtual TargetLoweringObjectFile * | getObjFileLowering () const |
virtual yaml::MachineFunctionInfo * | createDefaultFuncInfoYAML () const |
Allocate and return a default initialized instance of the YAML representation for the MachineFunctionInfo. More... | |
virtual yaml::MachineFunctionInfo * | convertFuncInfoToYAML (const MachineFunction &MF) const |
Allocate and initialize an instance of the YAML representation of the MachineFunctionInfo. More... | |
virtual bool | parseMachineFunctionInfo (const yaml::MachineFunctionInfo &, PerFunctionMIParsingState &PFS, SMDiagnostic &Error, SMRange &SourceRange) const |
Parse out the target's MachineFunctionInfo from the YAML reprsentation. More... | |
template<typename STC > | |
const STC & | getSubtarget (const Function &F) const |
This method returns a pointer to the specified type of TargetSubtargetInfo. More... | |
const DataLayout | createDataLayout () const |
Create a DataLayout. More... | |
bool | isCompatibleDataLayout (const DataLayout &Candidate) const |
Test if a DataLayout if compatible with the CodeGen for this target. More... | |
unsigned | getPointerSize (unsigned AS) const |
Get the pointer size for this target. More... | |
unsigned | getPointerSizeInBits (unsigned AS) const |
unsigned | getProgramPointerSize () const |
unsigned | getAllocaPointerSize () const |
void | resetTargetOptions (const Function &F) const |
Reset the target options based on the function's attributes. More... | |
const MCAsmInfo * | getMCAsmInfo () const |
Return target specific asm information. More... | |
const MCRegisterInfo * | getMCRegisterInfo () const |
const MCInstrInfo * | getMCInstrInfo () const |
const MCSubtargetInfo * | getMCSubtargetInfo () const |
virtual const TargetIntrinsicInfo * | getIntrinsicInfo () const |
If intrinsic information is available, return it. If not, return null. More... | |
bool | requiresStructuredCFG () const |
void | setRequiresStructuredCFG (bool Value) |
Reloc::Model | getRelocationModel () const |
Returns the code generation relocation model. More... | |
CodeModel::Model | getCodeModel () const |
Returns the code model. More... | |
bool | isPositionIndependent () const |
bool | shouldAssumeDSOLocal (const Module &M, const GlobalValue *GV) const |
bool | useEmulatedTLS () const |
Returns true if this target uses emulated TLS. More... | |
TLSModel::Model | getTLSModel (const GlobalValue *GV) const |
Returns the TLS model which should be used for the given global variable. More... | |
CodeGenOpt::Level | getOptLevel () const |
Returns the optimization level: None, Less, Default, or Aggressive. More... | |
void | setOptLevel (CodeGenOpt::Level Level) |
Overrides the optimization level. More... | |
void | setFastISel (bool Enable) |
bool | getO0WantsFastISel () |
void | setO0WantsFastISel (bool Enable) |
void | setGlobalISel (bool Enable) |
void | setGlobalISelAbort (GlobalISelAbortMode Mode) |
void | setMachineOutliner (bool Enable) |
void | setSupportsDefaultOutlining (bool Enable) |
void | setSupportsDebugEntryValues (bool Enable) |
void | setCFIFixup (bool Enable) |
bool | getAIXExtendedAltivecABI () const |
bool | getUniqueSectionNames () const |
bool | getUniqueBasicBlockSectionNames () const |
Return true if unique basic block section names must be generated. More... | |
bool | getDataSections () const |
Return true if data objects should be emitted into their own section, corresponds to -fdata-sections. More... | |
bool | getFunctionSections () const |
Return true if functions should be emitted into their own section, corresponding to -ffunction-sections. More... | |
bool | getIgnoreXCOFFVisibility () const |
Return true if visibility attribute should not be emitted in XCOFF, corresponding to -mignore-xcoff-visibility. More... | |
bool | getXCOFFTracebackTable () const |
Return true if XCOFF traceback table should be emitted, corresponding to -xcoff-traceback-table. More... | |
llvm::BasicBlockSection | getBBSectionsType () const |
If basic blocks should be emitted into their own section, corresponding to -fbasic-block-sections. More... | |
const MemoryBuffer * | getBBSectionsFuncListBuf () const |
Get the list of functions and basic block ids that need unique sections. More... | |
virtual bool | isNoopAddrSpaceCast (unsigned SrcAS, unsigned DestAS) const |
Returns true if a cast between SrcAS and DestAS is a noop. More... | |
void | setPGOOption (Optional< PGOOptions > PGOOpt) |
const Optional< PGOOptions > & | getPGOOption () const |
virtual unsigned | getAssumedAddrSpace (const Value *V) const |
If the specified generic pointer could be assumed as a pointer to a specific address space, return that address space. More... | |
virtual std::pair< const Value *, unsigned > | getPredicatedAddrSpace (const Value *V) const |
If the specified predicate checks whether a generic pointer falls within a specified address space, return that generic pointer and the address space being queried. More... | |
TargetIRAnalysis | getTargetIRAnalysis () const |
Get a TargetIRAnalysis appropriate for the target. More... | |
virtual TargetTransformInfo | getTargetTransformInfo (const Function &F) const |
Return a TargetTransformInfo for a given function. More... | |
virtual void | adjustPassManager (PassManagerBuilder &) |
Allow the target to modify the pass manager, e.g. More... | |
virtual void | registerPassBuilderCallbacks (PassBuilder &) |
Allow the target to modify the pass pipeline with New Pass Manager (similar to adjustPassManager for Legacy Pass manager). More... | |
virtual void | registerDefaultAliasAnalyses (AAManager &) |
Allow the target to register alias analyses with the AAManager for use with the new pass manager. More... | |
virtual bool | addPassesToEmitFile (PassManagerBase &, raw_pwrite_stream &, raw_pwrite_stream *, CodeGenFileType, bool=true, MachineModuleInfoWrapperPass *MMIWP=nullptr) |
Add passes to the specified pass manager to get the specified file emitted. More... | |
virtual bool | addPassesToEmitMC (PassManagerBase &, MCContext *&, raw_pwrite_stream &, bool=true) |
Add passes to the specified pass manager to get machine code emitted with the MCJIT. More... | |
virtual bool | targetSchedulesPostRAScheduling () const |
True if subtarget inserts the final scheduling pass on its own. More... | |
void | getNameWithPrefix (SmallVectorImpl< char > &Name, const GlobalValue *GV, Mangler &Mang, bool MayAlwaysUsePrivate=false) const |
MCSymbol * | getSymbol (const GlobalValue *GV) const |
virtual unsigned | getSjLjDataSize () const |
virtual unsigned | getAddressSpaceForPseudoSourceKind (unsigned Kind) const |
getAddressSpaceForPseudoSourceKind - Given the kind of memory (e.g. More... | |
Static Public Member Functions | |
static std::pair< int, int > | parseBinutilsVersion (StringRef Version) |
Public Attributes | |
const TargetOptions | DefaultOptions |
TargetOptions | Options |
Static Public Attributes | |
static constexpr unsigned | DefaultSjLjDataSize = 32 |
The integer bit size to use for SjLj based exception handling. More... | |
Protected Member Functions | |
TargetMachine (const Target &T, StringRef DataLayoutString, const Triple &TargetTriple, StringRef CPU, StringRef FS, const TargetOptions &Options) | |
Protected Attributes | |
const Target & | TheTarget |
The Target that this machine was created for. More... | |
const DataLayout | DL |
DataLayout for the target: keep ABI type size and alignment. More... | |
Triple | TargetTriple |
Triple string, CPU name, and target feature strings the TargetMachine instance is created with. More... | |
std::string | TargetCPU |
std::string | TargetFS |
Reloc::Model | RM = Reloc::Static |
CodeModel::Model | CMModel = CodeModel::Small |
CodeGenOpt::Level | OptLevel = CodeGenOpt::Default |
std::unique_ptr< const MCAsmInfo > | AsmInfo |
Contains target specific asm information. More... | |
std::unique_ptr< const MCRegisterInfo > | MRI |
std::unique_ptr< const MCInstrInfo > | MII |
std::unique_ptr< const MCSubtargetInfo > | STI |
unsigned | RequireStructuredCFG: 1 |
unsigned | O0WantsFastISel: 1 |
Optional< PGOOptions > | PGOOption = None |
Primary interface to the complete machine description for the target machine.
All target-specific information should be accessible through this interface.
Definition at line 77 of file TargetMachine.h.
|
protected |
Definition at line 31 of file TargetMachine.cpp.
|
delete |
|
virtualdefault |
|
inlinevirtual |
Add passes to the specified pass manager to get the specified file emitted.
Typically this will involve several steps of code generation. This method should return true if emission of this file type is not supported, or false on success. MMIWP
is an optional parameter that, if set to non-nullptr, will be used to set the MachineModuloInfo for this PM.
Reimplemented in llvm::LLVMTargetMachine, and llvm::DirectXTargetMachine.
Definition at line 366 of file TargetMachine.h.
|
inlinevirtual |
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 in llvm::LLVMTargetMachine, llvm::DirectXTargetMachine, and llvm::NVPTXTargetMachine.
Definition at line 378 of file TargetMachine.h.
Referenced by llvm::orc::SimpleCompiler::operator()().
|
inlinevirtual |
Allow the target to modify the pass manager, e.g.
by calling PassManagerBuilder::addExtension.
Reimplemented in llvm::HexagonTargetMachine, llvm::NVPTXTargetMachine, llvm::AMDGPUTargetMachine, and llvm::BPFTargetMachine.
Definition at line 349 of file TargetMachine.h.
|
inlinevirtual |
Allocate and initialize an instance of the YAML representation of the MachineFunctionInfo.
Reimplemented in llvm::GCNTargetMachine, llvm::WebAssemblyTargetMachine, llvm::AArch64TargetMachine, and llvm::RISCVTargetMachine.
Definition at line 149 of file TargetMachine.h.
|
inline |
|
inlinevirtual |
Allocate and return a default initialized instance of the YAML representation for the MachineFunctionInfo.
Reimplemented in llvm::GCNTargetMachine, llvm::WebAssemblyTargetMachine, llvm::AArch64TargetMachine, and llvm::RISCVTargetMachine.
Definition at line 142 of file TargetMachine.h.
|
inlinevirtual |
getAddressSpaceForPseudoSourceKind - Given the kind of memory (e.g.
stack) the target returns the corresponding address space.
Reimplemented in llvm::AMDGPUTargetMachine.
Definition at line 403 of file TargetMachine.h.
|
inline |
Definition at line 262 of file TargetMachine.h.
References llvm::TargetOptions::EnableAIXExtendedAltivecABI, and Options.
Referenced by llvm::PPCRegisterInfo::getCalleeSavedRegs(), llvm::PPCRegisterInfo::getCallPreservedMask(), llvm::PPCRegisterInfo::getRegPressureLimit(), and llvm::PPCRegisterInfo::getReservedRegs().
|
inline |
Definition at line 195 of file TargetMachine.h.
References DL, llvm::DataLayout::getAllocaAddrSpace(), and llvm::DataLayout::getPointerSize().
Referenced by llvm::TargetFrameLowering::getStackAlignmentSkew().
If the specified generic pointer could be assumed as a pointer to a specific address space, return that address space.
Under offloading programming, the offloading target may be passed with values only prepared on the host side and could assume certain properties.
Reimplemented in llvm::AMDGPUTargetMachine.
Definition at line 320 of file TargetMachine.h.
Referenced by llvm::BasicTTIImplBase< AMDGPUTTIImpl >::getAssumedAddrSpace().
|
inline |
Get the list of functions and basic block ids that need unique sections.
Definition at line 302 of file TargetMachine.h.
References llvm::TargetOptions::BBSectionsFuncListBuf, and Options.
Referenced by llvm::TargetPassConfig::addMachinePasses().
|
inline |
If basic blocks should be emitted into their own section, corresponding to -fbasic-block-sections.
Definition at line 297 of file TargetMachine.h.
References llvm::TargetOptions::BBSections, and Options.
Referenced by llvm::TargetPassConfig::addMachinePasses(), and llvm::MIRParserImpl::initializeMachineFunction().
CodeModel::Model TargetMachine::getCodeModel | ( | ) | const |
Returns the code model.
The choices are small, kernel, medium, large, and target default.
Definition at line 72 of file TargetMachine.cpp.
References CMModel.
Referenced by llvm::AArch64TargetMachine::AArch64TargetMachine(), llvm::X86FrameLowering::adjustForSegmentedStacks(), llvm::M68kSubtarget::classifyGlobalReference(), llvm::X86Subtarget::classifyGlobalReference(), llvm::M68kSubtarget::classifyLocalReference(), llvm::X86Subtarget::classifyLocalReference(), llvm::X86AsmPrinter::emitEndOfAsmFile(), llvm::X86InstrInfo::foldMemoryOperandImpl(), llvm::X86InstrInfo::getGlobalBaseReg(), llvm::M68kSubtarget::getJumpTableEncoding(), llvm::TargetLoweringObjectFileELF::Initialize(), llvm::TargetLoweringObjectFile::Initialize(), llvm::PPCTargetLowering::isAccessedAsGotIndirect(), llvm::LanaiTargetObjectFile::isGlobalInSmallSection(), llvm::PPCSubtarget::isGVIndirectSymbol(), llvm::X86TargetLowering::isLegalAddressingMode(), IsSmallObject(), llvm::PPCSubtarget::isUsingPCRelativeCalls(), llvm::LanaiTargetLowering::LowerConstantPool(), llvm::XCoreTargetObjectFile::SelectSectionForGlobal(), llvm::PPCInstrInfo::shouldReduceRegisterPressure(), and llvm::AArch64Subtarget::useSmallAddressing().
|
inline |
Return true if data objects should be emitted into their own section, corresponds to -fdata-sections.
Definition at line 275 of file TargetMachine.h.
References llvm::TargetOptions::DataSections, and Options.
|
inline |
Return true if functions should be emitted into their own section, corresponding to -ffunction-sections.
Definition at line 281 of file TargetMachine.h.
References llvm::TargetOptions::FunctionSections, and Options.
|
inline |
Return true if visibility attribute should not be emitted in XCOFF, corresponding to -mignore-xcoff-visibility.
Definition at line 287 of file TargetMachine.h.
References llvm::TargetOptions::IgnoreXCOFFVisibility, and Options.
|
inlinevirtual |
If intrinsic information is available, return it. If not, return null.
Definition at line 212 of file TargetMachine.h.
Return target specific asm information.
Definition at line 205 of file TargetMachine.h.
References AsmInfo.
Referenced by llvm::AArch64TargetMachine::AArch64TargetMachine(), llvm::TargetPassConfig::addPassesToHandleExceptions(), llvm::ARMFrameLowering::adjustForSegmentedStacks(), llvm::X86FrameLowering::canUseLEAForSPInEpilogue(), llvm::LLVMTargetMachine::createMCStreamer(), llvm::X86FrameLowering::eliminateCallFramePseudoInstr(), llvm::X86FrameLowering::emitEpilogue(), llvm::TargetFrameLowering::enableCFIFixup(), ExpandMOVImmSExti8(), llvm::X86FrameLowering::getFrameIndexReference(), llvm::AArch64InstrInfo::getInstSizeInBytes(), llvm::ARCInstrInfo::getInstSizeInBytes(), llvm::MSP430InstrInfo::getInstSizeInBytes(), llvm::CSKYInstrInfo::getInstSizeInBytes(), llvm::MipsInstrInfo::getInstSizeInBytes(), llvm::ARMBaseInstrInfo::getInstSizeInBytes(), llvm::SystemZInstrInfo::getInstSizeInBytes(), llvm::PPCInstrInfo::getInstSizeInBytes(), llvm::SIInstrInfo::getInstSizeInBytes(), llvm::HexagonInstrInfo::getSize(), llvm::AArch64InstrInfo::isFunctionSafeToOutlineFrom(), llvm::AArch64FunctionInfo::needsDwarfUnwindInfo(), llvm::WebAssemblyFrameLowering::needsPrologForEH(), needsWinCFI(), llvm::X86FrameLowering::processFunctionBeforeFrameFinalized(), and llvm::ARMSubtarget::splitFramePointerPush().
|
inline |
Definition at line 208 of file TargetMachine.h.
References MII.
Referenced by llvm::LLVMTargetMachine::addPassesToEmitMC(), and llvm::LLVMTargetMachine::createMCStreamer().
|
inline |
Definition at line 207 of file TargetMachine.h.
References MRI.
Referenced by llvm::DwarfCompileUnit::addLocationAttribute(), llvm::LLVMTargetMachine::addPassesToEmitMC(), llvm::LLVMTargetMachine::createMCStreamer(), and llvm::SystemZAsmPrinter::PrintAsmOperand().
|
inline |
Definition at line 209 of file TargetMachine.h.
References STI.
Referenced by llvm::LLVMTargetMachine::addPassesToEmitMC(), llvm::AMDGPUTargetMachine::AMDGPUTargetMachine(), llvm::LLVMTargetMachine::createMCStreamer(), llvm::AsmPrinter::doInitialization(), llvm::AsmPrinter::emitAlignment(), llvm::AMDGPUAsmPrinter::getGlobalSTI(), llvm::ARMElfTargetObjectFile::Initialize(), and llvm::CSKYAsmPrinter::runOnMachineFunction().
void TargetMachine::getNameWithPrefix | ( | SmallVectorImpl< char > & | Name, |
const GlobalValue * | GV, | ||
Mangler & | Mang, | ||
bool | MayAlwaysUsePrivate = false |
||
) | const |
Definition at line 195 of file TargetMachine.cpp.
References llvm::Mangler::getNameWithPrefix(), llvm::TargetLoweringObjectFile::getNameWithPrefix(), getObjFileLowering(), and llvm::GlobalValue::hasPrivateLinkage().
Referenced by llvm::AArch64MCInstLower::GetGlobalAddressSymbol(), llvm::AsmPrinter::getNameWithPrefix(), getSymbol(), and llvm::TargetLoweringObjectFile::getSymbolWithGlobalValueBase().
|
inline |
Definition at line 244 of file TargetMachine.h.
References O0WantsFastISel.
Referenced by llvm::TargetPassConfig::addCoreISelPasses(), and llvm::OptLevelChanger::OptLevelChanger().
|
inlinevirtual |
Reimplemented in llvm::MipsTargetMachine, llvm::NVPTXTargetMachine, llvm::ARMBaseTargetMachine, llvm::PPCTargetMachine, llvm::X86TargetMachine, llvm::M68kTargetMachine, llvm::AMDGPUTargetMachine, llvm::SystemZTargetMachine, llvm::XCoreTargetMachine, llvm::AArch64TargetMachine, llvm::LanaiTargetMachine, llvm::VETargetMachine, llvm::WebAssemblyTargetMachine, llvm::HexagonTargetMachine, llvm::ARCTargetMachine, llvm::DirectXTargetMachine, llvm::MSP430TargetMachine, llvm::RISCVTargetMachine, llvm::SPIRVTargetMachine, llvm::CSKYTargetMachine, llvm::BPFTargetMachine, llvm::LoongArchTargetMachine, llvm::SparcTargetMachine, and llvm::AVRTargetMachine.
Definition at line 136 of file TargetMachine.h.
Referenced by getNameWithPrefix(), llvm::AsmPrinter::getObjFileLowering(), getSymbol(), llvm::LanaiTargetLowering::LowerConstantPool(), and llvm::LanaiTargetLowering::LowerGlobalAddress().
CodeGenOpt::Level TargetMachine::getOptLevel | ( | ) | const |
Returns the optimization level: None, Less, Default, or Aggressive.
Definition at line 186 of file TargetMachine.cpp.
References OptLevel.
Referenced by llvm::AArch64TargetMachine::AArch64TargetMachine(), llvm::TargetPassConfig::addCoreISelPasses(), llvm::AMDGPUPassConfig::addIRPasses(), llvm::AMDGPUPassConfig::addPreISel(), llvm::AMDGPUTargetMachine::adjustPassManager(), AlignBlocks(), llvm::CodeViewDebug::beginFunctionImpl(), llvm::AMDGPUPassConfig::getCSEConfig(), llvm::HexagonFrameLowering::getFrameIndexReference(), llvm::PPCInstrInfo::getMachineCombinerPatterns(), llvm::TargetPassConfig::getOptLevel(), llvm::CodeGenPassBuilder< DerivedT >::getOptLevel(), llvm::PPCTargetMachine::getSubtargetImpl(), llvm::HexagonFrameLowering::hasFP(), isOptNone(), llvm::AMDGPUPassConfig::isPassEnabled(), llvm::InstructionSelect::runOnMachineFunction(), and llvm::ARMAsmPrinter::runOnMachineFunction().
|
inline |
Definition at line 312 of file TargetMachine.h.
References PGOOption.
|
inline |
Get the pointer size for this target.
This is the only time the DataLayout in the TargetMachine is used.
Definition at line 183 of file TargetMachine.h.
References DL, and llvm::DataLayout::getPointerSize().
Referenced by llvm::AsmPrinter::getPointerSize(), and llvm::X86TargetMachine::isNoopAddrSpaceCast().
|
inline |
Definition at line 187 of file TargetMachine.h.
References DL, and llvm::DataLayout::getPointerSizeInBits().
|
inlinevirtual |
If the specified predicate checks whether a generic pointer falls within a specified address space, return that generic pointer and the address space being queried.
Such predicates could be specified in @llvm.assume intrinsics for the optimizer to assume that the given generic pointer always falls within the address space based on that predicate.
Reimplemented in llvm::NVPTXTargetMachine, and llvm::AMDGPUTargetMachine.
Definition at line 330 of file TargetMachine.h.
Referenced by llvm::BasicTTIImplBase< AMDGPUTTIImpl >::getPredicatedAddrSpace().
|
inline |
Definition at line 191 of file TargetMachine.h.
References DL, llvm::DataLayout::getPointerSize(), and llvm::DataLayout::getProgramAddressSpace().
Referenced by llvm::AsmPrinter::emitStackSizeSection().
Reloc::Model TargetMachine::getRelocationModel | ( | ) | const |
Returns the code generation relocation model.
The choices are static, PIC, and dynamic-no-pic, and target default.
The choices are static, PIC, and dynamic-no-pic.
Definition at line 68 of file TargetMachine.cpp.
References RM.
Referenced by llvm::DwarfCompileUnit::addLocationAttribute(), llvm::X86Subtarget::classifyGlobalFunctionReference(), llvm::X86Subtarget::classifyGlobalReference(), llvm::TargetLoweringObjectFile::getKindForGlobal(), llvm::MipsSubtarget::getRelocationModel(), llvm::AsmPrinter::getSymbolPreferLocal(), getTLSModel(), llvm::TargetLoweringBase::insertSSPDeclarations(), llvm::X86Subtarget::isLegalToCallImmediateAddr(), llvm::HexagonTargetLowering::isOffsetFoldingLegal(), isPositionIndependent(), llvm::ARMSubtarget::isROPI(), llvm::ARMSubtarget::isRWPI(), llvm::HexagonTargetLowering::LowerBlockAddress(), llvm::HexagonTargetLowering::LowerGLOBALADDRESS(), shouldAssumeDSOLocal(), and transformCallee().
|
inlinevirtual |
Reimplemented in llvm::VETargetMachine.
Definition at line 397 of file TargetMachine.h.
References DefaultSjLjDataSize.
|
inline |
This method returns a pointer to the specified type of TargetSubtargetInfo.
In debug builds, it verifies that the object being returned is of the correct type.
Definition at line 164 of file TargetMachine.h.
References F, and getSubtargetImpl().
Referenced by llvm::PhysicalRegisterUsageInfo::print().
|
inlinevirtual |
Virtual method implemented by subclasses that returns a reference to that target's TargetSubtargetInfo-derived member variable.
Reimplemented in llvm::LanaiTargetMachine, llvm::MipsTargetMachine, llvm::ARMBaseTargetMachine, llvm::M68kTargetMachine, llvm::PPCTargetMachine, llvm::X86TargetMachine, llvm::WebAssemblyTargetMachine, llvm::MSP430TargetMachine, llvm::AArch64TargetMachine, llvm::HexagonTargetMachine, llvm::CSKYTargetMachine, llvm::LoongArchTargetMachine, llvm::RISCVTargetMachine, llvm::AMDGPUTargetMachine, llvm::GCNTargetMachine, llvm::NVPTXTargetMachine, llvm::R600TargetMachine, llvm::DirectXTargetMachine, llvm::SystemZTargetMachine, llvm::XCoreTargetMachine, llvm::VETargetMachine, llvm::AVRTargetMachine, llvm::ARCTargetMachine, llvm::SparcTargetMachine, llvm::SPIRVTargetMachine, and llvm::BPFTargetMachine.
Definition at line 133 of file TargetMachine.h.
Referenced by llvm::AVRAsmPrinter::emitStartOfAsmFile(), llvm::MachineModuleInfo::getOrCreateMachineFunction(), getSubtarget(), and llvm::StackProtector::runOnFunction().
MCSymbol * TargetMachine::getSymbol | ( | const GlobalValue * | GV | ) | const |
Definition at line 208 of file TargetMachine.cpp.
References llvm::MCObjectFileInfo::getContext(), llvm::TargetLoweringObjectFile::getMangler(), getNameWithPrefix(), getObjFileLowering(), llvm::MCContext::getOrCreateSymbol(), and llvm::TargetLoweringObjectFile::getTargetSymbol().
Referenced by llvm::TargetLoweringObjectFile::emitCGProfileMetadata(), llvm::AIXException::endFunction(), llvm::TargetLoweringObjectFile::getCFIPersonalitySymbol(), llvm::AsmPrinter::getSymbol(), llvm::AsmPrinter::getSymbolPreferLocal(), llvm::SparcELFTargetObjectFile::getTTypeGlobalReference(), and llvm::TargetLoweringObjectFile::getTTypeGlobalReference().
Definition at line 124 of file TargetMachine.h.
References TheTarget.
Referenced by llvm::LLVMTargetMachine::addPassesToEmitMC(), llvm::LLVMTargetMachine::createMCStreamer(), and llvm::X86AsmPrinter::runOnMachineFunction().
|
inline |
Definition at line 127 of file TargetMachine.h.
References TargetCPU.
Referenced by llvm::MipsAsmPrinter::emitStartOfAsmFile(), llvm::AMDGPUTargetMachine::getGPUName(), llvm::WebAssemblyTargetMachine::getSubtargetImpl(), and llvm::LLVMTargetMachine::initAsmInfo().
|
inline |
Definition at line 128 of file TargetMachine.h.
References TargetFS.
Referenced by llvm::MipsAsmPrinter::emitStartOfAsmFile(), llvm::AMDGPUTargetMachine::getFeatureString(), llvm::WebAssemblyTargetMachine::getSubtargetImpl(), and llvm::LLVMTargetMachine::initAsmInfo().
TargetIRAnalysis TargetMachine::getTargetIRAnalysis | ( | ) | const |
Get a TargetIRAnalysis
appropriate for the target.
This is used to construct the new pass manager's target IR analysis pass, set up appropriately for this target machine. Even the old pass manager uses this to answer queries about the IR.
Definition at line 219 of file TargetMachine.cpp.
References F, and getTargetTransformInfo().
Referenced by llvm::TargetPassConfig::addISelPasses().
|
virtual |
Return a TargetTransformInfo for a given function.
The returned TargetTransformInfo is specialized to the subtarget corresponding to F
.
Reimplemented in llvm::LLVMTargetMachine, llvm::GCNTargetMachine, llvm::NVPTXTargetMachine, llvm::ARMBaseTargetMachine, llvm::PPCTargetMachine, llvm::VETargetMachine, llvm::WebAssemblyTargetMachine, llvm::DirectXTargetMachine, llvm::SystemZTargetMachine, llvm::X86TargetMachine, llvm::MipsTargetMachine, llvm::RISCVTargetMachine, llvm::XCoreTargetMachine, llvm::AArch64TargetMachine, llvm::ARCTargetMachine, llvm::HexagonTargetMachine, llvm::R600TargetMachine, llvm::LanaiTargetMachine, llvm::BPFTargetMachine, and llvm::SPIRVTargetMachine.
Definition at line 191 of file TargetMachine.cpp.
References F.
Referenced by getTargetIRAnalysis().
Definition at line 126 of file TargetMachine.h.
References TargetTriple.
Referenced by llvm::AMDGPUPassConfig::addCodeGenPrepare(), llvm::AMDGPUPassConfig::addIRPasses(), llvm::TargetPassConfig::addIRPasses(), llvm::DwarfCompileUnit::addLocationAttribute(), llvm::LLVMTargetMachine::addPassesToEmitMC(), llvm::AMDGPUAsmPrinter::AMDGPUAsmPrinter(), llvm::LLVMTargetMachine::createMCStreamer(), createPPCAsmPrinterPass(), llvm::AsmPrinter::doFinalization(), llvm::AsmPrinter::doInitialization(), llvm::DwarfDebug::DwarfDebug(), llvm::CSKYAsmPrinter::emitEndOfAsmFile(), llvm::ARMAsmPrinter::emitEndOfAsmFile(), llvm::AMDGPUAsmPrinter::emitEndOfAsmFile(), llvm::X86AsmPrinter::emitEndOfAsmFile(), llvm::X86FrameLowering::emitEpilogue(), llvm::AsmPrinter::emitFunctionBody(), llvm::SystemZAsmPrinter::emitFunctionBodyEnd(), llvm::AMDGPUAsmPrinter::emitFunctionBodyEnd(), llvm::AMDGPUAsmPrinter::emitFunctionEntryLabel(), llvm::AsmPrinter::emitFunctionEntryLabel(), llvm::AMDGPUAsmPrinter::emitGlobalVariable(), llvm::AsmPrinter::emitPatchableFunctionEntries(), llvm::CSKYAsmPrinter::emitStartOfAsmFile(), llvm::ARMAsmPrinter::emitStartOfAsmFile(), llvm::X86AsmPrinter::emitStartOfAsmFile(), llvm::MipsAsmPrinter::emitStartOfAsmFile(), llvm::AsmPrinter::emitXRayTable(), llvm::AMDGPUSubtarget::get(), llvm::AArch64MCInstLower::GetGlobalAddressSymbol(), llvm::TargetLoweringBase::getSafeStackPointerLocation(), llvm::PPCTargetMachine::getSubtargetImpl(), llvm::M68kMCInstLower::GetSymbolFromOperand(), llvm::AsmPrinter::getSymbolPreferLocal(), llvm::LLVMTargetMachine::initAsmInfo(), llvm::TargetLoweringObjectFileELF::Initialize(), llvm::TargetLoweringObjectFileXCOFF::Initialize(), llvm::TargetLoweringBase::insertSSPDeclarations(), llvm::AArch64CallLowering::isEligibleForTailCallOptimization(), llvm::PPCTargetMachine::isPPC64(), llvm::AArch64MCInstLower::LowerSymbolOperand(), llvm::AsmPrinter::preprocessXXStructorList(), llvm::StackProtector::runOnFunction(), llvm::SelectionDAGISel::runOnMachineFunction(), llvm::AMDGPUTargetObjectFile::SelectSectionForGlobal(), llvm::AsmPrinter::SetupMachineFunction(), shouldAssumeDSOLocal(), llvm::SITargetLowering::shouldEmitFixup(), shouldLowerMemFuncForSize(), llvm::SITargetLowering::shouldUseLDSConstAddress(), llvm::TargetLoweringBase::TargetLoweringBase(), useEmulatedTLS(), llvm::SelectionDAGBuilder::visitSPDescriptorFailure(), and llvm::WinException::WinException().
TLSModel::Model TargetMachine::getTLSModel | ( | const GlobalValue * | GV | ) | const |
Returns the TLS model which should be used for the given global variable.
Definition at line 158 of file TargetMachine.cpp.
References llvm::PIELevel::Default, llvm::TLSModel::GeneralDynamic, llvm::GlobalValue::getParent(), llvm::Module::getPIELevel(), getRelocationModel(), getSelectedTLSModel(), llvm::TLSModel::InitialExec, llvm::TLSModel::LocalDynamic, llvm::TLSModel::LocalExec, llvm::Reloc::PIC_, RM, and shouldAssumeDSOLocal().
Referenced by llvm::SparcTargetLowering::LowerGlobalTLSAddress(), llvm::HexagonTargetLowering::LowerGlobalTLSAddress(), and llvm::AArch64MCInstLower::lowerSymbolOperandELF().
|
inline |
Return true if unique basic block section names must be generated.
Definition at line 269 of file TargetMachine.h.
References Options, and llvm::TargetOptions::UniqueBasicBlockSectionNames.
|
inline |
Definition at line 266 of file TargetMachine.h.
References Options, and llvm::TargetOptions::UniqueSectionNames.
|
inline |
Return true if XCOFF traceback table should be emitted, corresponding to -xcoff-traceback-table.
Definition at line 293 of file TargetMachine.h.
References Options, and llvm::TargetOptions::XCOFFTracebackTable.
|
inline |
Test if a DataLayout if compatible with the CodeGen for this target.
The LLVM Module owns a DataLayout that is used for the target independent optimizations and code generation. This hook provides a target specific check on the validity of this DataLayout.
Definition at line 176 of file TargetMachine.h.
References DL.
|
inlinevirtual |
Returns true if a cast between SrcAS and DestAS is a noop.
Reimplemented in llvm::RISCVTargetMachine, llvm::ARMBaseTargetMachine, llvm::MipsTargetMachine, llvm::PPCTargetMachine, llvm::AMDGPUTargetMachine, llvm::AArch64TargetMachine, and llvm::X86TargetMachine.
Definition at line 307 of file TargetMachine.h.
Referenced by checkAddrSpaceIsValidForLibcall(), llvm::TargetLoweringBase::isFreeAddrSpaceCast(), llvm::BasicTTIImplBase< AMDGPUTTIImpl >::isNoopAddrSpaceCast(), and llvm::AsmPrinter::lowerConstant().
bool TargetMachine::isPositionIndependent | ( | ) | const |
Definition at line 41 of file TargetMachine.cpp.
References getRelocationModel(), and llvm::Reloc::PIC_.
Referenced by computeBasePointerSaveOffset(), llvm::X86InstrInfo::foldMemoryOperandImpl(), llvm::PPCRegisterInfo::getBaseRegister(), llvm::PPCRegisterInfo::getReservedRegs(), llvm::MipsFunctionInfo::initGlobalBaseReg(), llvm::TargetLoweringObjectFile::Initialize(), llvm::ARMSubtarget::isGVIndirectSymbol(), llvm::ARMSubtarget::isGVInGOT(), llvm::MipsTargetLowering::isJumpTableRelative(), llvm::TargetLoweringBase::isJumpTableRelative(), llvm::M68kSubtarget::isPositionIndependent(), llvm::MipsSubtarget::isPositionIndependent(), llvm::AsmPrinter::isPositionIndependent(), llvm::X86Subtarget::isPositionIndependent(), llvm::TargetLowering::isPositionIndependent(), llvm::HexagonTargetObjectFile::isSmallDataEnabled(), and llvm::M68kCallLowering::lowerCall().
|
delete |
Definition at line 226 of file TargetMachine.cpp.
References llvm::MipsISD::Ret, and llvm::IndexedInstrProf::Version.
|
inlinevirtual |
Parse out the target's MachineFunctionInfo from the YAML reprsentation.
Reimplemented in llvm::GCNTargetMachine, llvm::WebAssemblyTargetMachine, llvm::AArch64TargetMachine, and llvm::RISCVTargetMachine.
Definition at line 154 of file TargetMachine.h.
|
inlinevirtual |
Allow the target to register alias analyses with the AAManager for use with the new pass manager.
Only affects the "default" AAManager.
Reimplemented in llvm::AMDGPUTargetMachine.
Definition at line 357 of file TargetMachine.h.
Referenced by llvm::PassBuilder::buildDefaultAAPipeline().
|
inlinevirtual |
Allow the target to modify the pass pipeline with New Pass Manager (similar to adjustPassManager for Legacy Pass manager).
Reimplemented in llvm::NVPTXTargetMachine, llvm::AMDGPUTargetMachine, llvm::BPFTargetMachine, and llvm::HexagonTargetMachine.
Definition at line 353 of file TargetMachine.h.
|
inline |
Definition at line 216 of file TargetMachine.h.
References RequireStructuredCFG.
Referenced by llvm::TargetPassConfig::addMachineLateOptimization(), and llvm::MachineBasicBlock::canSplitCriticalEdge().
Reset the target options based on the function's attributes.
setFunctionAttributes should have made the raw attribute value consistent with the command line flag if used.
Definition at line 53 of file TargetMachine.cpp.
References RESET_OPTION.
Referenced by llvm::LoongArchTargetMachine::getSubtargetImpl(), llvm::RISCVTargetMachine::getSubtargetImpl(), llvm::CSKYTargetMachine::getSubtargetImpl(), llvm::AArch64TargetMachine::getSubtargetImpl(), llvm::SparcTargetMachine::getSubtargetImpl(), llvm::HexagonTargetMachine::getSubtargetImpl(), llvm::R600TargetMachine::getSubtargetImpl(), llvm::SystemZTargetMachine::getSubtargetImpl(), llvm::WebAssemblyTargetMachine::getSubtargetImpl(), llvm::X86TargetMachine::getSubtargetImpl(), llvm::M68kTargetMachine::getSubtargetImpl(), llvm::PPCTargetMachine::getSubtargetImpl(), llvm::ARMBaseTargetMachine::getSubtargetImpl(), llvm::MipsTargetMachine::getSubtargetImpl(), llvm::GCNTargetMachine::getSubtargetImpl(), and llvm::SelectionDAGISel::runOnMachineFunction().
|
inline |
Definition at line 260 of file TargetMachine.h.
References Enable, llvm::TargetOptions::EnableCFIFixup, and Options.
Referenced by llvm::AArch64TargetMachine::AArch64TargetMachine().
|
inline |
Definition at line 243 of file TargetMachine.h.
References Enable, llvm::TargetOptions::EnableFastISel, and Options.
Referenced by llvm::TargetPassConfig::addCoreISelPasses(), llvm::OptLevelChanger::OptLevelChanger(), llvm::SPIRVTargetMachine::SPIRVTargetMachine(), and llvm::OptLevelChanger::~OptLevelChanger().
|
inline |
Definition at line 246 of file TargetMachine.h.
References Enable, llvm::TargetOptions::EnableGlobalISel, and Options.
Referenced by llvm::AArch64TargetMachine::AArch64TargetMachine(), llvm::TargetPassConfig::addCoreISelPasses(), and llvm::SPIRVTargetMachine::SPIRVTargetMachine().
|
inline |
Definition at line 247 of file TargetMachine.h.
References llvm::TargetOptions::GlobalISelAbort, Mode, and Options.
Referenced by llvm::AArch64TargetMachine::AArch64TargetMachine().
|
inline |
Definition at line 250 of file TargetMachine.h.
References Enable, llvm::TargetOptions::EnableMachineOutliner, and Options.
Referenced by llvm::AArch64TargetMachine::AArch64TargetMachine(), llvm::ARMBaseTargetMachine::ARMBaseTargetMachine(), llvm::RISCVTargetMachine::RISCVTargetMachine(), and llvm::X86TargetMachine::X86TargetMachine().
|
inline |
Definition at line 245 of file TargetMachine.h.
References Enable, and O0WantsFastISel.
Referenced by llvm::TargetPassConfig::addCoreISelPasses(), and llvm::SPIRVTargetMachine::SPIRVTargetMachine().
void TargetMachine::setOptLevel | ( | CodeGenOpt::Level | Level | ) |
Overrides the optimization level.
Definition at line 188 of file TargetMachine.cpp.
References OptLevel.
Referenced by llvm::OptLevelChanger::OptLevelChanger(), and llvm::OptLevelChanger::~OptLevelChanger().
|
inline |
Definition at line 311 of file TargetMachine.h.
References PGOOption.
|
inline |
Definition at line 217 of file TargetMachine.h.
References RequireStructuredCFG.
Referenced by llvm::NVPTXTargetMachine::NVPTXTargetMachine(), llvm::R600TargetMachine::R600TargetMachine(), and llvm::SPIRVTargetMachine::SPIRVTargetMachine().
|
inline |
Definition at line 256 of file TargetMachine.h.
References Enable, Options, and llvm::TargetOptions::SupportsDebugEntryValues.
Referenced by llvm::AArch64TargetMachine::AArch64TargetMachine(), llvm::ARMBaseTargetMachine::ARMBaseTargetMachine(), llvm::MipsTargetMachine::MipsTargetMachine(), and llvm::X86TargetMachine::X86TargetMachine().
|
inline |
Definition at line 253 of file TargetMachine.h.
References Enable, Options, and llvm::TargetOptions::SupportsDefaultOutlining.
Referenced by llvm::AArch64TargetMachine::AArch64TargetMachine(), llvm::ARMBaseTargetMachine::ARMBaseTargetMachine(), and llvm::RISCVTargetMachine::RISCVTargetMachine().
|
inline |
Definition at line 129 of file TargetMachine.h.
References llvm::X86AS::FS, and TargetFS.
bool TargetMachine::shouldAssumeDSOLocal | ( | const Module & | M, |
const GlobalValue * | GV | ||
) | const |
Definition at line 92 of file TargetMachine.cpp.
References assert(), getRelocationModel(), getTargetTriple(), llvm::GlobalValue::hasDLLImportStorageClass(), llvm::GlobalValue::hasExternalWeakLinkage(), llvm::GlobalValue::isDeclarationForLinker(), llvm::GlobalValue::isDSOLocal(), llvm::GlobalValue::isStrongDefinitionForLinker(), RM, and llvm::Reloc::Static.
Referenced by llvm::M68kSubtarget::classifyExternalReference(), llvm::M68kSubtarget::classifyGlobalFunctionReference(), llvm::X86Subtarget::classifyGlobalFunctionReference(), llvm::M68kSubtarget::classifyGlobalReference(), llvm::X86Subtarget::classifyGlobalReference(), getTLSModel(), llvm::PPCSubtarget::isGVIndirectSymbol(), llvm::ARMSubtarget::isGVIndirectSymbol(), llvm::ARMSubtarget::isGVInGOT(), llvm::SystemZSubtarget::isPC32DBLSymbol(), llvm::HexagonTargetLowering::LowerGLOBALADDRESS(), llvm::SITargetLowering::shouldEmitGOTReloc(), and transformCallee().
|
inlinevirtual |
True if subtarget inserts the final scheduling pass on its own.
Branch relaxation, which must happen after block placement, can on some targets (e.g. SystemZ) expose additional post-RA scheduling opportunities.
Reimplemented in llvm::ARMBaseTargetMachine, and llvm::SystemZTargetMachine.
Definition at line 389 of file TargetMachine.h.
Referenced by llvm::TargetPassConfig::addMachinePasses().
bool TargetMachine::useEmulatedTLS | ( | ) | const |
Returns true if this target uses emulated TLS.
Definition at line 150 of file TargetMachine.cpp.
References llvm::TargetOptions::EmulatedTLS, llvm::TargetOptions::ExplicitEmulatedTLS, getTargetTriple(), llvm::Triple::hasDefaultEmulatedTLS(), and Options.
Referenced by llvm::TargetPassConfig::addISelPasses(), llvm::DwarfCompileUnit::addLocationAttribute(), llvm::AsmPrinter::emitGlobalVariable(), and llvm::SparcTargetLowering::LowerGlobalTLSAddress().
Contains target specific asm information.
Definition at line 105 of file TargetMachine.h.
Referenced by llvm::BPFTargetMachine::BPFTargetMachine(), getMCAsmInfo(), and llvm::LLVMTargetMachine::initAsmInfo().
|
protected |
Definition at line 101 of file TargetMachine.h.
Referenced by getCodeModel(), and llvm::LLVMTargetMachine::LLVMTargetMachine().
const TargetOptions llvm::TargetMachine::DefaultOptions |
Definition at line 117 of file TargetMachine.h.
|
staticconstexpr |
The integer bit size to use for SjLj based exception handling.
Definition at line 396 of file TargetMachine.h.
Referenced by getSjLjDataSize().
|
protected |
DataLayout for the target: keep ABI type size and alignment.
The DataLayout is created based on the string representation provided during construction. It is kept here only to avoid reparsing the string but should not really be used during compilation, because it has an internal cache that is context specific.
Definition at line 92 of file TargetMachine.h.
Referenced by createDataLayout(), getAllocaPointerSize(), getPointerSize(), getPointerSizeInBits(), getProgramPointerSize(), and isCompatibleDataLayout().
|
protected |
Definition at line 107 of file TargetMachine.h.
Referenced by llvm::LLVMTargetMachine::createMCStreamer(), getMCInstrInfo(), and llvm::LLVMTargetMachine::initAsmInfo().
|
protected |
Definition at line 106 of file TargetMachine.h.
Referenced by llvm::LLVMTargetMachine::addPassesToEmitMC(), llvm::AMDGPUTargetMachine::AMDGPUTargetMachine(), llvm::LLVMTargetMachine::createMCStreamer(), getMCRegisterInfo(), and llvm::LLVMTargetMachine::initAsmInfo().
|
protected |
Definition at line 111 of file TargetMachine.h.
Referenced by getO0WantsFastISel(), and setO0WantsFastISel().
|
mutable |
Definition at line 118 of file TargetMachine.h.
Referenced by llvm::DwarfUnit::addAttribute(), llvm::TargetPassConfig::addCoreISelPasses(), llvm::TargetPassConfig::addIRPasses(), llvm::TargetPassConfig::addMachinePasses(), llvm::LLVMTargetMachine::addPassesToEmitMC(), llvm::NVPTXTargetLowering::allowFMA(), llvm::NVPTXTargetLowering::allowUnsafeFPMath(), llvm::ARMBaseTargetMachine::ARMBaseTargetMachine(), llvm::DwarfCFIException::beginFragment(), llvm::AArch64RegisterInfo::cannotEliminateFrame(), llvm::ARMBaseRegisterInfo::cannotEliminateFrame(), llvm::CodeGenPassBuilder< DerivedT >::CodeGenPassBuilder(), combineFaddCFmul(), combineFMinFMax(), combineFMinNumFMaxNum(), combineSelect(), llvm::DwarfUnit::constructTypeDIE(), llvm::LLVMTargetMachine::createMCStreamer(), llvm::ARMFrameLowering::determineCalleeSaves(), llvm::PPCFrameLowering::determineCalleeSaves(), llvm::TargetFrameLowering::determineCalleeSaves(), llvm::AsmPrinter::doFinalization(), llvm::AsmPrinter::doInitialization(), llvm::DwarfDebug::DwarfDebug(), llvm::PPCFrameLowering::eliminateCallFramePseudoInstr(), llvm::SelectionDAGBuilder::EmitBranchForMergedCondition(), llvm::AArch64FrameLowering::emitEpilogue(), llvm::PPCFrameLowering::emitEpilogue(), llvm::X86AsmPrinter::emitInstruction(), llvm::AArch64FrameLowering::emitPrologue(), llvm::X86FrameLowering::emitPrologue(), llvm::AsmPrinter::emitStackSizeSection(), llvm::AsmPrinter::emitStackUsage(), llvm::AsmPrinter::emitXRayTable(), llvm::AsmPrinter::emitXXStructorList(), foldFPToIntToFP(), getAIXExtendedAltivecABI(), llvm::GCNTTIImpl::getArithmeticInstrCost(), getBBSectionsFuncListBuf(), getBBSectionsType(), getDataSections(), llvm::AsmPrinter::getFunctionCFISectionType(), getFunctionSections(), getIgnoreXCOFFVisibility(), llvm::TargetLoweringObjectFile::getKindForGlobal(), llvm::PPCTargetLowering::getNegatedExpression(), llvm::TargetLowering::getNegatedExpression(), llvm::TargetLoweringBase::getPrefLoopAlignment(), llvm::LoongArchTargetMachine::getSubtargetImpl(), llvm::RISCVTargetMachine::getSubtargetImpl(), getUniqueBasicBlockSectionNames(), getUniqueSectionNames(), getXCOFFTracebackTable(), llvm::MipsFrameLowering::hasFP(), llvm::LoongArchFrameLowering::hasFP(), llvm::SparcFrameLowering::hasFP(), llvm::VEFrameLowering::hasFP(), llvm::RISCVFrameLowering::hasFP(), llvm::MSP430FrameLowering::hasFP(), llvm::ARMFrameLowering::hasFP(), llvm::XCoreFrameLowering::hasFP(), llvm::ARCFrameLowering::hasFP(), llvm::CSKYFrameLowering::hasFP(), llvm::AArch64FrameLowering::hasFP(), llvm::SIFrameLowering::hasFP(), llvm::SystemZELFFrameLowering::hasFP(), llvm::X86FrameLowering::hasFP(), llvm::M68kFrameLowering::hasFP(), llvm::LLVMTargetMachine::initAsmInfo(), llvm::TargetLoweringObjectFileELF::Initialize(), llvm::AArch64InstrInfo::isAssociativeAndCommutative(), isCombineInstrCandidateFP(), llvm::AArch64CallLowering::isEligibleForTailCallOptimization(), llvm::AMDGPUCallLowering::isEligibleForTailCallOptimization(), llvm::SITargetLowering::isEligibleForTailCallOptimization(), isFMAddSubOrFMSubAdd(), llvm::CodeGenPassBuilder< DerivedT >::isGlobalISelAbortEnabled(), llvm::TargetPassConfig::isGlobalISelAbortEnabled(), isLegalToCombineMinNumMaxNum(), llvm::AArch64TargetLowering::isProfitableToHoist(), llvm::PPCTargetLowering::isProfitableToHoist(), llvm::AMDGPULegalizerInfo::legalizeFastUnsafeFDIV(), llvm::AMDGPULegalizerInfo::legalizeFastUnsafeFDIV64(), llvm::AArch64CallLowering::lowerCall(), llvm::SITargetLowering::LowerCall(), llvm::SelectionDAGBuilder::LowerDeoptimizingReturn(), llvm::AArch64CallLowering::lowerFormalArguments(), llvm::AMDGPUCallLowering::lowerTailCall(), llvm::PPCFrameLowering::needsFP(), llvm::MachineFunction::needsFrameMoves(), llvm::OptLevelChanger::OptLevelChanger(), llvm::PPCFrameLowering::processFunctionBeforeFrameFinalized(), promoteToConstantPool(), llvm::CodeGenPassBuilder< DerivedT >::reportDiagnosticWhenGlobalISelFallback(), llvm::TargetPassConfig::reportDiagnosticWhenGlobalISelFallback(), llvm::SelectionDAGISel::runOnMachineFunction(), setCFIFixup(), setFastISel(), setGlobalISel(), setGlobalISelAbort(), setMachineOutliner(), setSupportsDebugEntryValues(), setSupportsDefaultOutlining(), llvm::AsmPrinter::SetupMachineFunction(), llvm::ARMSubtarget::splitFramePushPop(), llvm::TargetPassConfig::TargetPassConfig(), llvm::DwarfCompileUnit::updateSubprogramScopeDIE(), useEmulatedTLS(), llvm::ARMSubtarget::useFastISel(), llvm::CSKYSubtarget::useHardFloatABI(), and llvm::NVPTXTargetLowering::usePrecSqrtF32().
|
protected |
Definition at line 102 of file TargetMachine.h.
Referenced by getOptLevel(), llvm::LLVMTargetMachine::LLVMTargetMachine(), and setOptLevel().
|
protected |
Definition at line 114 of file TargetMachine.h.
Referenced by getPGOOption(), and setPGOOption().
|
protected |
Definition at line 110 of file TargetMachine.h.
Referenced by requiresStructuredCFG(), and setRequiresStructuredCFG().
|
protected |
Definition at line 100 of file TargetMachine.h.
Referenced by getRelocationModel(), getTLSModel(), llvm::LLVMTargetMachine::LLVMTargetMachine(), and shouldAssumeDSOLocal().
|
protected |
Definition at line 108 of file TargetMachine.h.
Referenced by llvm::LLVMTargetMachine::addPassesToEmitMC(), llvm::LLVMTargetMachine::createMCStreamer(), getMCSubtargetInfo(), and llvm::LLVMTargetMachine::initAsmInfo().
|
protected |
Definition at line 97 of file TargetMachine.h.
Referenced by llvm::LoongArchTargetMachine::getSubtargetImpl(), llvm::RISCVTargetMachine::getSubtargetImpl(), llvm::CSKYTargetMachine::getSubtargetImpl(), llvm::AArch64TargetMachine::getSubtargetImpl(), llvm::HexagonTargetMachine::getSubtargetImpl(), llvm::SparcTargetMachine::getSubtargetImpl(), llvm::SystemZTargetMachine::getSubtargetImpl(), llvm::WebAssemblyTargetMachine::getSubtargetImpl(), llvm::X86TargetMachine::getSubtargetImpl(), llvm::PPCTargetMachine::getSubtargetImpl(), llvm::M68kTargetMachine::getSubtargetImpl(), llvm::ARMBaseTargetMachine::getSubtargetImpl(), llvm::MipsTargetMachine::getSubtargetImpl(), and getTargetCPU().
|
protected |
Definition at line 98 of file TargetMachine.h.
Referenced by llvm::LoongArchTargetMachine::getSubtargetImpl(), llvm::RISCVTargetMachine::getSubtargetImpl(), llvm::CSKYTargetMachine::getSubtargetImpl(), llvm::AArch64TargetMachine::getSubtargetImpl(), llvm::SparcTargetMachine::getSubtargetImpl(), llvm::HexagonTargetMachine::getSubtargetImpl(), llvm::SystemZTargetMachine::getSubtargetImpl(), llvm::WebAssemblyTargetMachine::getSubtargetImpl(), llvm::X86TargetMachine::getSubtargetImpl(), llvm::M68kTargetMachine::getSubtargetImpl(), llvm::PPCTargetMachine::getSubtargetImpl(), llvm::ARMBaseTargetMachine::getSubtargetImpl(), llvm::MipsTargetMachine::getSubtargetImpl(), getTargetFeatureString(), and setTargetFeatureString().
|
protected |
Triple string, CPU name, and target feature strings the TargetMachine instance is created with.
Definition at line 96 of file TargetMachine.h.
Referenced by llvm::ARMBaseTargetMachine::ARMBaseTargetMachine(), llvm::LoongArchTargetMachine::getSubtargetImpl(), llvm::RISCVTargetMachine::getSubtargetImpl(), llvm::CSKYTargetMachine::getSubtargetImpl(), llvm::AArch64TargetMachine::getSubtargetImpl(), llvm::HexagonTargetMachine::getSubtargetImpl(), llvm::SparcTargetMachine::getSubtargetImpl(), llvm::WebAssemblyTargetMachine::getSubtargetImpl(), llvm::R600TargetMachine::getSubtargetImpl(), llvm::SystemZTargetMachine::getSubtargetImpl(), llvm::X86TargetMachine::getSubtargetImpl(), llvm::PPCTargetMachine::getSubtargetImpl(), llvm::M68kTargetMachine::getSubtargetImpl(), llvm::ARMBaseTargetMachine::getSubtargetImpl(), llvm::MipsTargetMachine::getSubtargetImpl(), llvm::GCNTargetMachine::getSubtargetImpl(), getTargetTriple(), and llvm::ARMBaseTargetMachine::isTargetHardFloat().
The Target that this machine was created for.
Definition at line 84 of file TargetMachine.h.
Referenced by getTarget(), and llvm::LLVMTargetMachine::initAsmInfo().