LLVM  16.0.0git
Public Types | Public Member Functions | Friends | List of all members
llvm::Target Class Reference

Target - Wrapper for Target specific information. More...

#include "llvm/MC/TargetRegistry.h"

Public Types

using ArchMatchFnTy = bool(*)(Triple::ArchType Arch)
 
using MCAsmInfoCtorFnTy = MCAsmInfo *(*)(const MCRegisterInfo &MRI, const Triple &TT, const MCTargetOptions &Options)
 
using MCObjectFileInfoCtorFnTy = MCObjectFileInfo *(*)(MCContext &Ctx, bool PIC, bool LargeCodeModel)
 
using MCInstrInfoCtorFnTy = MCInstrInfo *(*)()
 
using MCInstrAnalysisCtorFnTy = MCInstrAnalysis *(*)(const MCInstrInfo *Info)
 
using MCRegInfoCtorFnTy = MCRegisterInfo *(*)(const Triple &TT)
 
using MCSubtargetInfoCtorFnTy = MCSubtargetInfo *(*)(const Triple &TT, StringRef CPU, StringRef Features)
 
using TargetMachineCtorTy = TargetMachine *(*)(const Target &T, const Triple &TT, StringRef CPU, StringRef Features, const TargetOptions &Options, Optional< Reloc::Model > RM, Optional< CodeModel::Model > CM, CodeGenOpt::Level OL, bool JIT)
 
using AsmPrinterCtorTy = AsmPrinter *(*)(TargetMachine &TM, std::unique_ptr< MCStreamer > &&Streamer)
 
using MCAsmBackendCtorTy = MCAsmBackend *(*)(const Target &T, const MCSubtargetInfo &STI, const MCRegisterInfo &MRI, const MCTargetOptions &Options)
 
using MCAsmParserCtorTy = MCTargetAsmParser *(*)(const MCSubtargetInfo &STI, MCAsmParser &P, const MCInstrInfo &MII, const MCTargetOptions &Options)
 
using MCDisassemblerCtorTy = MCDisassembler *(*)(const Target &T, const MCSubtargetInfo &STI, MCContext &Ctx)
 
using MCInstPrinterCtorTy = MCInstPrinter *(*)(const Triple &T, unsigned SyntaxVariant, const MCAsmInfo &MAI, const MCInstrInfo &MII, const MCRegisterInfo &MRI)
 
using MCCodeEmitterCtorTy = MCCodeEmitter *(*)(const MCInstrInfo &II, MCContext &Ctx)
 
using ELFStreamerCtorTy = MCStreamer *(*)(const Triple &T, MCContext &Ctx, std::unique_ptr< MCAsmBackend > &&TAB, std::unique_ptr< MCObjectWriter > &&OW, std::unique_ptr< MCCodeEmitter > &&Emitter, bool RelaxAll)
 
using MachOStreamerCtorTy = MCStreamer *(*)(MCContext &Ctx, std::unique_ptr< MCAsmBackend > &&TAB, std::unique_ptr< MCObjectWriter > &&OW, std::unique_ptr< MCCodeEmitter > &&Emitter, bool RelaxAll, bool DWARFMustBeAtTheEnd)
 
using COFFStreamerCtorTy = MCStreamer *(*)(MCContext &Ctx, std::unique_ptr< MCAsmBackend > &&TAB, std::unique_ptr< MCObjectWriter > &&OW, std::unique_ptr< MCCodeEmitter > &&Emitter, bool RelaxAll, bool IncrementalLinkerCompatible)
 
using WasmStreamerCtorTy = MCStreamer *(*)(const Triple &T, MCContext &Ctx, std::unique_ptr< MCAsmBackend > &&TAB, std::unique_ptr< MCObjectWriter > &&OW, std::unique_ptr< MCCodeEmitter > &&Emitter, bool RelaxAll)
 
using XCOFFStreamerCtorTy = MCStreamer *(*)(const Triple &T, MCContext &Ctx, std::unique_ptr< MCAsmBackend > &&TAB, std::unique_ptr< MCObjectWriter > &&OW, std::unique_ptr< MCCodeEmitter > &&Emitter, bool RelaxAll)
 
using SPIRVStreamerCtorTy = MCStreamer *(*)(const Triple &T, MCContext &Ctx, std::unique_ptr< MCAsmBackend > &&TAB, std::unique_ptr< MCObjectWriter > &&OW, std::unique_ptr< MCCodeEmitter > &&Emitter, bool RelaxAll)
 
using DXContainerStreamerCtorTy = MCStreamer *(*)(const Triple &T, MCContext &Ctx, std::unique_ptr< MCAsmBackend > &&TAB, std::unique_ptr< MCObjectWriter > &&OW, std::unique_ptr< MCCodeEmitter > &&Emitter, bool RelaxAll)
 
using NullTargetStreamerCtorTy = MCTargetStreamer *(*)(MCStreamer &S)
 
using AsmTargetStreamerCtorTy = MCTargetStreamer *(*)(MCStreamer &S, formatted_raw_ostream &OS, MCInstPrinter *InstPrint, bool IsVerboseAsm)
 
using ObjectTargetStreamerCtorTy = MCTargetStreamer *(*)(MCStreamer &S, const MCSubtargetInfo &STI)
 
using MCRelocationInfoCtorTy = MCRelocationInfo *(*)(const Triple &TT, MCContext &Ctx)
 
using MCSymbolizerCtorTy = MCSymbolizer *(*)(const Triple &TT, LLVMOpInfoCallback GetOpInfo, LLVMSymbolLookupCallback SymbolLookUp, void *DisInfo, MCContext *Ctx, std::unique_ptr< MCRelocationInfo > &&RelInfo)
 
using CustomBehaviourCtorTy = mca::CustomBehaviour *(*)(const MCSubtargetInfo &STI, const mca::SourceMgr &SrcMgr, const MCInstrInfo &MCII)
 
using InstrPostProcessCtorTy = mca::InstrPostProcess *(*)(const MCSubtargetInfo &STI, const MCInstrInfo &MCII)
 

Public Member Functions

 Target ()=default
 
Target Information
const TargetgetNext () const
 
const char * getName () const
 getName - Get the target name. More...
 
const char * getShortDescription () const
 getShortDescription - Get a short description of the target. More...
 
const char * getBackendName () const
 getBackendName - Get the backend name. More...
 
Feature Predicates
bool hasJIT () const
 hasJIT - Check if this targets supports the just-in-time compilation. More...
 
bool hasTargetMachine () const
 hasTargetMachine - Check if this target supports code generation. More...
 
bool hasMCAsmBackend () const
 hasMCAsmBackend - Check if this target supports .o generation. More...
 
bool hasMCAsmParser () const
 hasMCAsmParser - Check if this target supports assembly parsing. More...
 
Feature Constructors
MCAsmInfocreateMCAsmInfo (const MCRegisterInfo &MRI, StringRef TheTriple, const MCTargetOptions &Options) const
 createMCAsmInfo - Create a MCAsmInfo implementation for the specified target triple. More...
 
MCObjectFileInfocreateMCObjectFileInfo (MCContext &Ctx, bool PIC, bool LargeCodeModel=false) const
 Create a MCObjectFileInfo implementation for the specified target triple. More...
 
MCInstrInfocreateMCInstrInfo () const
 createMCInstrInfo - Create a MCInstrInfo implementation. More...
 
MCInstrAnalysiscreateMCInstrAnalysis (const MCInstrInfo *Info) const
 createMCInstrAnalysis - Create a MCInstrAnalysis implementation. More...
 
MCRegisterInfocreateMCRegInfo (StringRef TT) const
 createMCRegInfo - Create a MCRegisterInfo implementation. More...
 
MCSubtargetInfocreateMCSubtargetInfo (StringRef TheTriple, StringRef CPU, StringRef Features) const
 createMCSubtargetInfo - Create a MCSubtargetInfo implementation. More...
 
TargetMachinecreateTargetMachine (StringRef TT, StringRef CPU, StringRef Features, const TargetOptions &Options, Optional< Reloc::Model > RM, Optional< CodeModel::Model > CM=None, CodeGenOpt::Level OL=CodeGenOpt::Default, bool JIT=false) const
 createTargetMachine - Create a target specific machine implementation for the specified Triple. More...
 
MCAsmBackendcreateMCAsmBackend (const MCSubtargetInfo &STI, const MCRegisterInfo &MRI, const MCTargetOptions &Options) const
 createMCAsmBackend - Create a target specific assembly parser. More...
 
MCTargetAsmParsercreateMCAsmParser (const MCSubtargetInfo &STI, MCAsmParser &Parser, const MCInstrInfo &MII, const MCTargetOptions &Options) const
 createMCAsmParser - Create a target specific assembly parser. More...
 
AsmPrintercreateAsmPrinter (TargetMachine &TM, std::unique_ptr< MCStreamer > &&Streamer) const
 createAsmPrinter - Create a target specific assembly printer pass. More...
 
MCDisassemblercreateMCDisassembler (const MCSubtargetInfo &STI, MCContext &Ctx) const
 
MCInstPrintercreateMCInstPrinter (const Triple &T, unsigned SyntaxVariant, const MCAsmInfo &MAI, const MCInstrInfo &MII, const MCRegisterInfo &MRI) const
 
MCCodeEmittercreateMCCodeEmitter (const MCInstrInfo &II, MCContext &Ctx) const
 createMCCodeEmitter - Create a target specific code emitter. More...
 
MCStreamercreateMCObjectStreamer (const Triple &T, MCContext &Ctx, std::unique_ptr< MCAsmBackend > &&TAB, std::unique_ptr< MCObjectWriter > &&OW, std::unique_ptr< MCCodeEmitter > &&Emitter, const MCSubtargetInfo &STI, bool RelaxAll, bool IncrementalLinkerCompatible, bool DWARFMustBeAtTheEnd) const
 Create a target specific MCStreamer. More...
 
MCStreamercreateAsmStreamer (MCContext &Ctx, std::unique_ptr< formatted_raw_ostream > OS, bool IsVerboseAsm, bool UseDwarfDirectory, MCInstPrinter *InstPrint, std::unique_ptr< MCCodeEmitter > &&CE, std::unique_ptr< MCAsmBackend > &&TAB, bool ShowInst) const
 
MCTargetStreamercreateAsmTargetStreamer (MCStreamer &S, formatted_raw_ostream &OS, MCInstPrinter *InstPrint, bool IsVerboseAsm) const
 
MCStreamercreateNullStreamer (MCContext &Ctx) const
 
MCTargetStreamercreateNullTargetStreamer (MCStreamer &S) const
 
MCRelocationInfocreateMCRelocationInfo (StringRef TT, MCContext &Ctx) const
 createMCRelocationInfo - Create a target specific MCRelocationInfo. More...
 
MCSymbolizercreateMCSymbolizer (StringRef TT, LLVMOpInfoCallback GetOpInfo, LLVMSymbolLookupCallback SymbolLookUp, void *DisInfo, MCContext *Ctx, std::unique_ptr< MCRelocationInfo > &&RelInfo) const
 createMCSymbolizer - Create a target specific MCSymbolizer. More...
 
mca::CustomBehaviourcreateCustomBehaviour (const MCSubtargetInfo &STI, const mca::SourceMgr &SrcMgr, const MCInstrInfo &MCII) const
 createCustomBehaviour - Create a target specific CustomBehaviour. More...
 
mca::InstrPostProcesscreateInstrPostProcess (const MCSubtargetInfo &STI, const MCInstrInfo &MCII) const
 createInstrPostProcess - Create a target specific InstrPostProcess. More...
 

Friends

struct TargetRegistry
 

Detailed Description

Target - Wrapper for Target specific information.

For registration purposes, this is a POD type so that targets can be registered without the use of static constructors.

Targets should implement a single global instance of this class (which will be zero initialized), and pass that instance to the TargetRegistry as part of their initialization.

Definition at line 145 of file TargetRegistry.h.

Member Typedef Documentation

◆ ArchMatchFnTy

Definition at line 149 of file TargetRegistry.h.

◆ AsmPrinterCtorTy

using llvm::Target::AsmPrinterCtorTy = AsmPrinter *(*)( TargetMachine &TM, std::unique_ptr<MCStreamer> &&Streamer)

Definition at line 171 of file TargetRegistry.h.

◆ AsmTargetStreamerCtorTy

Definition at line 229 of file TargetRegistry.h.

◆ COFFStreamerCtorTy

using llvm::Target::COFFStreamerCtorTy = MCStreamer *(*)(MCContext &Ctx, std::unique_ptr<MCAsmBackend> &&TAB, std::unique_ptr<MCObjectWriter> &&OW, std::unique_ptr<MCCodeEmitter> &&Emitter, bool RelaxAll, bool IncrementalLinkerCompatible)

Definition at line 203 of file TargetRegistry.h.

◆ CustomBehaviourCtorTy

Definition at line 242 of file TargetRegistry.h.

◆ DXContainerStreamerCtorTy

using llvm::Target::DXContainerStreamerCtorTy = MCStreamer *(*)(const Triple &T, MCContext &Ctx, std::unique_ptr<MCAsmBackend> &&TAB, std::unique_ptr<MCObjectWriter> &&OW, std::unique_ptr<MCCodeEmitter> &&Emitter, bool RelaxAll)

Definition at line 224 of file TargetRegistry.h.

◆ ELFStreamerCtorTy

using llvm::Target::ELFStreamerCtorTy = MCStreamer *(*)(const Triple &T, MCContext &Ctx, std::unique_ptr<MCAsmBackend> &&TAB, std::unique_ptr<MCObjectWriter> &&OW, std::unique_ptr<MCCodeEmitter> &&Emitter, bool RelaxAll)

Definition at line 193 of file TargetRegistry.h.

◆ InstrPostProcessCtorTy

Definition at line 246 of file TargetRegistry.h.

◆ MachOStreamerCtorTy

using llvm::Target::MachOStreamerCtorTy = MCStreamer *(*)(MCContext &Ctx, std::unique_ptr<MCAsmBackend> &&TAB, std::unique_ptr<MCObjectWriter> &&OW, std::unique_ptr<MCCodeEmitter> &&Emitter, bool RelaxAll, bool DWARFMustBeAtTheEnd)

Definition at line 198 of file TargetRegistry.h.

◆ MCAsmBackendCtorTy

Definition at line 175 of file TargetRegistry.h.

◆ MCAsmInfoCtorFnTy

Definition at line 153 of file TargetRegistry.h.

◆ MCAsmParserCtorTy

Definition at line 178 of file TargetRegistry.h.

◆ MCCodeEmitterCtorTy

Definition at line 188 of file TargetRegistry.h.

◆ MCDisassemblerCtorTy

Definition at line 181 of file TargetRegistry.h.

◆ MCInstPrinterCtorTy

Definition at line 186 of file TargetRegistry.h.

◆ MCInstrAnalysisCtorFnTy

Definition at line 158 of file TargetRegistry.h.

◆ MCInstrInfoCtorFnTy

Definition at line 157 of file TargetRegistry.h.

◆ MCObjectFileInfoCtorFnTy

using llvm::Target::MCObjectFileInfoCtorFnTy = MCObjectFileInfo *(*)(MCContext &Ctx, bool PIC, bool LargeCodeModel)

Definition at line 156 of file TargetRegistry.h.

◆ MCRegInfoCtorFnTy

Definition at line 159 of file TargetRegistry.h.

◆ MCRelocationInfoCtorTy

Definition at line 233 of file TargetRegistry.h.

◆ MCSubtargetInfoCtorFnTy

Definition at line 162 of file TargetRegistry.h.

◆ MCSymbolizerCtorTy

using llvm::Target::MCSymbolizerCtorTy = MCSymbolizer *(*)( const Triple &TT, LLVMOpInfoCallback GetOpInfo, LLVMSymbolLookupCallback SymbolLookUp, void *DisInfo, MCContext *Ctx, std::unique_ptr<MCRelocationInfo> &&RelInfo)

Definition at line 237 of file TargetRegistry.h.

◆ NullTargetStreamerCtorTy

Definition at line 226 of file TargetRegistry.h.

◆ ObjectTargetStreamerCtorTy

Definition at line 231 of file TargetRegistry.h.

◆ SPIRVStreamerCtorTy

using llvm::Target::SPIRVStreamerCtorTy = MCStreamer *(*)(const Triple &T, MCContext &Ctx, std::unique_ptr<MCAsmBackend> &&TAB, std::unique_ptr<MCObjectWriter> &&OW, std::unique_ptr<MCCodeEmitter> &&Emitter, bool RelaxAll)

Definition at line 218 of file TargetRegistry.h.

◆ TargetMachineCtorTy

Definition at line 166 of file TargetRegistry.h.

◆ WasmStreamerCtorTy

using llvm::Target::WasmStreamerCtorTy = MCStreamer *(*)(const Triple &T, MCContext &Ctx, std::unique_ptr<MCAsmBackend> &&TAB, std::unique_ptr<MCObjectWriter> &&OW, std::unique_ptr<MCCodeEmitter> &&Emitter, bool RelaxAll)

Definition at line 208 of file TargetRegistry.h.

◆ XCOFFStreamerCtorTy

using llvm::Target::XCOFFStreamerCtorTy = MCStreamer *(*)(const Triple &T, MCContext &Ctx, std::unique_ptr<MCAsmBackend> &&TAB, std::unique_ptr<MCObjectWriter> &&OW, std::unique_ptr<MCCodeEmitter> &&Emitter, bool RelaxAll)

Definition at line 213 of file TargetRegistry.h.

Constructor & Destructor Documentation

◆ Target()

llvm::Target::Target ( )
default

Member Function Documentation

◆ createAsmPrinter()

AsmPrinter* llvm::Target::createAsmPrinter ( TargetMachine TM,
std::unique_ptr< MCStreamer > &&  Streamer 
) const
inline

createAsmPrinter - Create a target specific assembly printer pass.

This takes ownership of the MCStreamer object.

Definition at line 506 of file TargetRegistry.h.

References move, and TM.

Referenced by llvm::LLVMTargetMachine::addPassesToEmitMC(), and llvm::DwarfStreamer::init().

◆ createAsmStreamer()

MCStreamer* llvm::Target::createAsmStreamer ( MCContext Ctx,
std::unique_ptr< formatted_raw_ostream OS,
bool  IsVerboseAsm,
bool  UseDwarfDirectory,
MCInstPrinter InstPrint,
std::unique_ptr< MCCodeEmitter > &&  CE,
std::unique_ptr< MCAsmBackend > &&  TAB,
bool  ShowInst 
) const
inline

◆ createAsmTargetStreamer()

MCTargetStreamer* llvm::Target::createAsmTargetStreamer ( MCStreamer S,
formatted_raw_ostream OS,
MCInstPrinter InstPrint,
bool  IsVerboseAsm 
) const
inline

Definition at line 635 of file TargetRegistry.h.

References S.

Referenced by createAsmStreamer().

◆ createCustomBehaviour()

mca::CustomBehaviour* llvm::Target::createCustomBehaviour ( const MCSubtargetInfo STI,
const mca::SourceMgr SrcMgr,
const MCInstrInfo MCII 
) const
inline

createCustomBehaviour - Create a target specific CustomBehaviour.

This class is used by llvm-mca and requires backend functionality.

Definition at line 692 of file TargetRegistry.h.

References llvm::SrcMgr.

◆ createInstrPostProcess()

mca::InstrPostProcess* llvm::Target::createInstrPostProcess ( const MCSubtargetInfo STI,
const MCInstrInfo MCII 
) const
inline

createInstrPostProcess - Create a target specific InstrPostProcess.

This class is used by llvm-mca and requires backend functionality.

Definition at line 702 of file TargetRegistry.h.

◆ createMCAsmBackend()

MCAsmBackend* llvm::Target::createMCAsmBackend ( const MCSubtargetInfo STI,
const MCRegisterInfo MRI,
const MCTargetOptions Options 
) const
inline

createMCAsmBackend - Create a target specific assembly parser.

Definition at line 483 of file TargetRegistry.h.

References MRI, and Options.

Referenced by llvm::LLVMTargetMachine::addPassesToEmitMC(), llvm::LLVMTargetMachine::createMCStreamer(), and llvm::DwarfStreamer::init().

◆ createMCAsmInfo()

MCAsmInfo* llvm::Target::createMCAsmInfo ( const MCRegisterInfo MRI,
StringRef  TheTriple,
const MCTargetOptions Options 
) const
inline

createMCAsmInfo - Create a MCAsmInfo implementation for the specified target triple.

Parameters
TheTripleThis argument is used to determine the target machine feature set; it should always be provided. Generally this should be either the target triple from the module, or the target triple of the host if that does not exist.

Definition at line 402 of file TargetRegistry.h.

References MRI, and Options.

Referenced by llvm::DwarfStreamer::init(), llvm::LLVMTargetMachine::initAsmInfo(), and LLVMCreateDisasmCPUFeatures().

◆ createMCAsmParser()

MCTargetAsmParser* llvm::Target::createMCAsmParser ( const MCSubtargetInfo STI,
MCAsmParser Parser,
const MCInstrInfo MII,
const MCTargetOptions Options 
) const
inline

createMCAsmParser - Create a target specific assembly parser.

Parameters
ParserThe target independent parser implementation to use for parsing and lexing.

Definition at line 495 of file TargetRegistry.h.

References Options.

◆ createMCCodeEmitter()

MCCodeEmitter* llvm::Target::createMCCodeEmitter ( const MCInstrInfo II,
MCContext Ctx 
) const
inline

createMCCodeEmitter - Create a target specific code emitter.

Definition at line 530 of file TargetRegistry.h.

Referenced by llvm::LLVMTargetMachine::addPassesToEmitMC(), llvm::LLVMTargetMachine::createMCStreamer(), llvm::DwarfStreamer::init(), and llvm::X86AsmPrinter::runOnMachineFunction().

◆ createMCDisassembler()

MCDisassembler* llvm::Target::createMCDisassembler ( const MCSubtargetInfo STI,
MCContext Ctx 
) const
inline

Definition at line 513 of file TargetRegistry.h.

Referenced by LLVMCreateDisasmCPUFeatures().

◆ createMCInstPrinter()

MCInstPrinter* llvm::Target::createMCInstPrinter ( const Triple T,
unsigned  SyntaxVariant,
const MCAsmInfo MAI,
const MCInstrInfo MII,
const MCRegisterInfo MRI 
) const
inline

◆ createMCInstrAnalysis()

MCInstrAnalysis* llvm::Target::createMCInstrAnalysis ( const MCInstrInfo Info) const
inline

createMCInstrAnalysis - Create a MCInstrAnalysis implementation.

Definition at line 432 of file TargetRegistry.h.

References Info.

◆ createMCInstrInfo()

MCInstrInfo* llvm::Target::createMCInstrInfo ( ) const
inline

createMCInstrInfo - Create a MCInstrInfo implementation.

Definition at line 424 of file TargetRegistry.h.

Referenced by llvm::DwarfStreamer::init(), llvm::LLVMTargetMachine::initAsmInfo(), and LLVMCreateDisasmCPUFeatures().

◆ createMCObjectFileInfo()

MCObjectFileInfo* llvm::Target::createMCObjectFileInfo ( MCContext Ctx,
bool  PIC,
bool  LargeCodeModel = false 
) const
inline

Create a MCObjectFileInfo implementation for the specified target triple.

Definition at line 412 of file TargetRegistry.h.

References llvm::MCObjectFileInfo::initMCObjectFileInfo(), and PIC.

Referenced by llvm::DwarfStreamer::init().

◆ createMCObjectStreamer()

MCStreamer* llvm::Target::createMCObjectStreamer ( const Triple T,
MCContext Ctx,
std::unique_ptr< MCAsmBackend > &&  TAB,
std::unique_ptr< MCObjectWriter > &&  OW,
std::unique_ptr< MCCodeEmitter > &&  Emitter,
const MCSubtargetInfo STI,
bool  RelaxAll,
bool  IncrementalLinkerCompatible,
bool  DWARFMustBeAtTheEnd 
) const
inline

Create a target specific MCStreamer.

Parameters
TThe target triple.
CtxThe target context.
TABThe target assembler backend object. Takes ownership.
OWThe stream object.
EmitterThe target independent assembler object.Takes ownership.
RelaxAllRelax all fixups?

Definition at line 545 of file TargetRegistry.h.

References assert(), llvm::Triple::COFF, llvm::createDXContainerStreamer(), llvm::createELFStreamer(), llvm::createMachOStreamer(), llvm::createSPIRVStreamer(), llvm::createWasmStreamer(), llvm::createXCOFFStreamer(), llvm::Triple::DXContainer, llvm::Triple::ELF, llvm::Triple::GOFF, llvm_unreachable, llvm::Triple::MachO, move, llvm::report_fatal_error(), S, llvm::Triple::SPIRV, T, llvm::Triple::UnknownObjectFormat, llvm::Triple::Wasm, and llvm::Triple::XCOFF.

Referenced by llvm::DwarfStreamer::init().

◆ createMCRegInfo()

MCRegisterInfo* llvm::Target::createMCRegInfo ( StringRef  TT) const
inline

◆ createMCRelocationInfo()

MCRelocationInfo* llvm::Target::createMCRelocationInfo ( StringRef  TT,
MCContext Ctx 
) const
inline

createMCRelocationInfo - Create a target specific MCRelocationInfo.

Parameters
TTThe target triple.
CtxThe target context.

Definition at line 660 of file TargetRegistry.h.

References llvm::createMCRelocationInfo().

Referenced by LLVMCreateDisasmCPUFeatures().

◆ createMCSubtargetInfo()

MCSubtargetInfo* llvm::Target::createMCSubtargetInfo ( StringRef  TheTriple,
StringRef  CPU,
StringRef  Features 
) const
inline

createMCSubtargetInfo - Create a MCSubtargetInfo implementation.

Parameters
TheTripleThis argument is used to determine the target machine feature set; it should always be provided. Generally this should be either the target triple from the module, or the target triple of the host if that does not exist.
CPUThis specifies the name of the target CPU.
FeaturesThis specifies the string representation of the additional target features.

Definition at line 455 of file TargetRegistry.h.

Referenced by llvm::DwarfStreamer::init(), llvm::LLVMTargetMachine::initAsmInfo(), and LLVMCreateDisasmCPUFeatures().

◆ createMCSymbolizer()

MCSymbolizer* llvm::Target::createMCSymbolizer ( StringRef  TT,
LLVMOpInfoCallback  GetOpInfo,
LLVMSymbolLookupCallback  SymbolLookUp,
void *  DisInfo,
MCContext Ctx,
std::unique_ptr< MCRelocationInfo > &&  RelInfo 
) const
inline

createMCSymbolizer - Create a target specific MCSymbolizer.

Parameters
TTThe target triple.
GetOpInfoThe function to get the symbolic information for operands.
SymbolLookUpThe function to lookup a symbol name.
DisInfoThe pointer to the block of symbolic information for above call back.
CtxThe target context.
RelInfoThe relocation information for this target. Takes ownership.

Definition at line 680 of file TargetRegistry.h.

References llvm::createMCSymbolizer(), and move.

Referenced by LLVMCreateDisasmCPUFeatures().

◆ createNullStreamer()

MCStreamer* llvm::Target::createNullStreamer ( MCContext Ctx) const
inline

Definition at line 644 of file TargetRegistry.h.

References llvm::createNullStreamer(), createNullTargetStreamer(), and S.

◆ createNullTargetStreamer()

MCTargetStreamer* llvm::Target::createNullTargetStreamer ( MCStreamer S) const
inline

Definition at line 650 of file TargetRegistry.h.

References S.

Referenced by createNullStreamer().

◆ createTargetMachine()

TargetMachine* llvm::Target::createTargetMachine ( StringRef  TT,
StringRef  CPU,
StringRef  Features,
const TargetOptions Options,
Optional< Reloc::Model RM,
Optional< CodeModel::Model CM = None,
CodeGenOpt::Level  OL = CodeGenOpt::Default,
bool  JIT = false 
) const
inline

createTargetMachine - Create a target specific machine implementation for the specified Triple.

Parameters
TTThis argument is used to determine the target machine feature set; it should always be provided. Generally this should be either the target triple from the module, or the target triple of the host if that does not exist.

Definition at line 469 of file TargetRegistry.h.

References llvm::EngineKind::JIT, Options, and llvm::AArch64::RM.

Referenced by llvm::TargetMachineBuilder::create(), createTargetMachine(), llvm::DwarfStreamer::init(), and llvm::EngineBuilder::selectTarget().

◆ getBackendName()

const char* llvm::Target::getBackendName ( ) const
inline

getBackendName - Get the backend name.

Definition at line 373 of file TargetRegistry.h.

◆ getName()

const char* llvm::Target::getName ( ) const
inline

◆ getNext()

const Target* llvm::Target::getNext ( ) const
inline

Definition at line 364 of file TargetRegistry.h.

Referenced by llvm::TargetRegistry::iterator::operator++().

◆ getShortDescription()

const char* llvm::Target::getShortDescription ( ) const
inline

getShortDescription - Get a short description of the target.

Definition at line 370 of file TargetRegistry.h.

Referenced by llvm::TargetRegistry::printRegisteredTargetsForVersion().

◆ hasJIT()

bool llvm::Target::hasJIT ( ) const
inline

hasJIT - Check if this targets supports the just-in-time compilation.

Definition at line 380 of file TargetRegistry.h.

◆ hasMCAsmBackend()

bool llvm::Target::hasMCAsmBackend ( ) const
inline

hasMCAsmBackend - Check if this target supports .o generation.

Definition at line 386 of file TargetRegistry.h.

◆ hasMCAsmParser()

bool llvm::Target::hasMCAsmParser ( ) const
inline

hasMCAsmParser - Check if this target supports assembly parsing.

Definition at line 389 of file TargetRegistry.h.

◆ hasTargetMachine()

bool llvm::Target::hasTargetMachine ( ) const
inline

hasTargetMachine - Check if this target supports code generation.

Definition at line 383 of file TargetRegistry.h.

Friends And Related Function Documentation

◆ TargetRegistry

friend struct TargetRegistry
friend

Definition at line 147 of file TargetRegistry.h.


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