|
LLVM
5.0.0
|
Target - Wrapper for Target specific information. More...
#include "llvm/Support/TargetRegistry.h"
Friends | |
| struct | TargetRegistry |
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 96 of file TargetRegistry.h.
| using llvm::Target::ArchMatchFnTy = bool (*)(Triple::ArchType Arch) |
Definition at line 100 of file TargetRegistry.h.
| using llvm::Target::AsmPrinterCtorTy = AsmPrinter *(*)( TargetMachine &TM, std::unique_ptr<MCStreamer> &&Streamer) |
Definition at line 121 of file TargetRegistry.h.
| using llvm::Target::AsmTargetStreamerCtorTy = MCTargetStreamer *(*)( MCStreamer &S, formatted_raw_ostream &OS, MCInstPrinter *InstPrint, bool IsVerboseAsm) |
Definition at line 163 of file TargetRegistry.h.
| using llvm::Target::COFFStreamerCtorTy = MCStreamer *(*)(MCContext &Ctx, MCAsmBackend &TAB, raw_pwrite_stream &OS, MCCodeEmitter *Emitter, bool RelaxAll, bool IncrementalLinkerCompatible) |
Definition at line 154 of file TargetRegistry.h.
| using llvm::Target::ELFStreamerCtorTy = MCStreamer *(*)(const Triple &T, MCContext &Ctx, MCAsmBackend &TAB, raw_pwrite_stream &OS, MCCodeEmitter *Emitter, bool RelaxAll) |
Definition at line 144 of file TargetRegistry.h.
| using llvm::Target::MachOStreamerCtorTy = MCStreamer *(*)(MCContext &Ctx, MCAsmBackend &TAB, raw_pwrite_stream &OS, MCCodeEmitter *Emitter, bool RelaxAll, bool DWARFMustBeAtTheEnd) |
Definition at line 149 of file TargetRegistry.h.
| using llvm::Target::MCAdjustCodeGenOptsFnTy = void (*)(const Triple &TT, Reloc::Model RM, CodeModel::Model &CM) |
Definition at line 105 of file TargetRegistry.h.
| using llvm::Target::MCAsmBackendCtorTy = MCAsmBackend *(*)(const Target &T, const MCRegisterInfo &MRI, const Triple &TT, StringRef CPU, const MCTargetOptions &Options) |
Definition at line 125 of file TargetRegistry.h.
| using llvm::Target::MCAsmInfoCtorFnTy = MCAsmInfo *(*)(const MCRegisterInfo &MRI, const Triple &TT) |
Definition at line 103 of file TargetRegistry.h.
| using llvm::Target::MCAsmParserCtorTy = MCTargetAsmParser *(*)( const MCSubtargetInfo &STI, MCAsmParser &P, const MCInstrInfo &MII, const MCTargetOptions &Options) |
Definition at line 128 of file TargetRegistry.h.
| using llvm::Target::MCCodeEmitterCtorTy = MCCodeEmitter *(*)(const MCInstrInfo &II, const MCRegisterInfo &MRI, MCContext &Ctx) |
Definition at line 139 of file TargetRegistry.h.
| using llvm::Target::MCDisassemblerCtorTy = MCDisassembler *(*)(const Target &T, const MCSubtargetInfo &STI, MCContext &Ctx) |
Definition at line 131 of file TargetRegistry.h.
| using llvm::Target::MCInstPrinterCtorTy = MCInstPrinter *(*)(const Triple &T, unsigned SyntaxVariant, const MCAsmInfo &MAI, const MCInstrInfo &MII, const MCRegisterInfo &MRI) |
Definition at line 136 of file TargetRegistry.h.
| using llvm::Target::MCInstrAnalysisCtorFnTy = MCInstrAnalysis *(*)(const MCInstrInfo *Info) |
Definition at line 108 of file TargetRegistry.h.
| using llvm::Target::MCInstrInfoCtorFnTy = MCInstrInfo *(*)( |
Definition at line 107 of file TargetRegistry.h.
| using llvm::Target::MCRegInfoCtorFnTy = MCRegisterInfo *(*)(const Triple &TT) |
Definition at line 109 of file TargetRegistry.h.
| using llvm::Target::MCRelocationInfoCtorTy = MCRelocationInfo *(*)(const Triple &TT, MCContext &Ctx) |
Definition at line 167 of file TargetRegistry.h.
| using llvm::Target::MCSubtargetInfoCtorFnTy = MCSubtargetInfo *(*)(const Triple &TT, StringRef CPU, StringRef Features) |
Definition at line 112 of file TargetRegistry.h.
| using llvm::Target::MCSymbolizerCtorTy = MCSymbolizer *(*)( const Triple &TT, LLVMOpInfoCallback GetOpInfo, LLVMSymbolLookupCallback SymbolLookUp, void *DisInfo, MCContext *Ctx, std::unique_ptr<MCRelocationInfo> &&RelInfo) |
Definition at line 171 of file TargetRegistry.h.
| using llvm::Target::NullTargetStreamerCtorTy = MCTargetStreamer *(*)(MCStreamer &S) |
Definition at line 160 of file TargetRegistry.h.
| using llvm::Target::ObjectTargetStreamerCtorTy = MCTargetStreamer *(*)( MCStreamer &S, const MCSubtargetInfo &STI) |
Definition at line 165 of file TargetRegistry.h.
| using llvm::Target::TargetMachineCtorTy = TargetMachine *(*)( const Target &T, const Triple &TT, StringRef CPU, StringRef Features, const TargetOptions &Options, Optional<Reloc::Model> RM, CodeModel::Model CM, CodeGenOpt::Level OL) |
Definition at line 116 of file TargetRegistry.h.
| using llvm::Target::WasmStreamerCtorTy = MCStreamer *(*)(const Triple &T, MCContext &Ctx, MCAsmBackend &TAB, raw_pwrite_stream &OS, MCCodeEmitter *Emitter, bool RelaxAll) |
Definition at line 159 of file TargetRegistry.h.
|
default |
|
inline |
Definition at line 315 of file TargetRegistry.h.
Referenced by llvm::LLVMTargetMachine::LLVMTargetMachine().
|
inline |
createAsmPrinter - Create a target specific assembly printer pass.
This takes ownership of the MCStreamer object.
Definition at line 406 of file TargetRegistry.h.
Referenced by llvm::LLVMTargetMachine::addAsmPrinter(), and llvm::LLVMTargetMachine::addPassesToEmitMC().
|
inline |
Definition at line 487 of file TargetRegistry.h.
References llvm::createAsmStreamer(), and createAsmTargetStreamer().
Referenced by llvm::LLVMTargetMachine::addAsmPrinter().
|
inline |
Definition at line 500 of file TargetRegistry.h.
Referenced by createAsmStreamer().
|
inline |
createMCAsmBackend - Create a target specific assembly parser.
| TheTriple | The target triple string. |
Definition at line 382 of file TargetRegistry.h.
Referenced by llvm::LLVMTargetMachine::addAsmPrinter(), and llvm::LLVMTargetMachine::addPassesToEmitMC().
|
inline |
createMCAsmInfo - Create a MCAsmInfo implementation for the specified target triple.
| TheTriple | This 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 308 of file TargetRegistry.h.
Referenced by llvm::LLVMTargetMachine::initAsmInfo(), and LLVMCreateDisasmCPUFeatures().
|
inline |
createMCAsmParser - Create a target specific assembly parser.
| Parser | The target independent parser implementation to use for parsing and lexing. |
Definition at line 395 of file TargetRegistry.h.
|
inline |
createMCCodeEmitter - Create a target specific code emitter.
Definition at line 430 of file TargetRegistry.h.
Referenced by llvm::LLVMTargetMachine::addAsmPrinter(), llvm::LLVMTargetMachine::addPassesToEmitMC(), and llvm::X86AsmPrinter::runOnMachineFunction().
|
inline |
Definition at line 413 of file TargetRegistry.h.
Referenced by LLVMCreateDisasmCPUFeatures().
|
inline |
Definition at line 420 of file TargetRegistry.h.
Referenced by llvm::LLVMTargetMachine::addAsmPrinter(), LLVMCreateDisasmCPUFeatures(), and LLVMSetDisasmOptions().
|
inline |
createMCInstrAnalysis - Create a MCInstrAnalysis implementation.
Definition at line 331 of file TargetRegistry.h.
|
inline |
createMCInstrInfo - Create a MCInstrInfo implementation.
Definition at line 323 of file TargetRegistry.h.
Referenced by createHexagonDisassembler(), createWebAssemblyDisassembler(), createX86Disassembler(), llvm::LLVMTargetMachine::initAsmInfo(), and LLVMCreateDisasmCPUFeatures().
|
inline |
Create a target specific MCStreamer.
| T | The target triple. |
| Ctx | The target context. |
| TAB | The target assembler backend object. Takes ownership. |
| OS | The stream object. |
| Emitter | The target independent assembler object.Takes ownership. |
| RelaxAll | Relax all fixups? |
Definition at line 446 of file TargetRegistry.h.
References assert(), llvm::Triple::COFF, llvm::createELFStreamer(), llvm::createMachOStreamer(), llvm::createWasmStreamer(), llvm::Triple::ELF, llvm::Triple::getObjectFormat(), llvm::Triple::isOSWindows(), llvm_unreachable(), llvm::Triple::MachO, and llvm::Triple::Wasm.
|
inline |
createMCRegInfo - Create a MCRegisterInfo implementation.
Definition at line 339 of file TargetRegistry.h.
Referenced by llvm::LLVMTargetMachine::initAsmInfo(), and LLVMCreateDisasmCPUFeatures().
|
inline |
createMCRelocationInfo - Create a target specific MCRelocationInfo.
| TT | The target triple. |
| Ctx | The target context. |
Definition at line 525 of file TargetRegistry.h.
References llvm::createMCRelocationInfo().
Referenced by LLVMCreateDisasmCPUFeatures().
|
inline |
createMCSubtargetInfo - Create a MCSubtargetInfo implementation.
| TheTriple | This 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. |
| CPU | This specifies the name of the target CPU. |
| Features | This specifies the string representation of the additional target features. |
Definition at line 354 of file TargetRegistry.h.
Referenced by llvm::AsmPrinter::doInitialization(), llvm::LLVMTargetMachine::initAsmInfo(), and LLVMCreateDisasmCPUFeatures().
|
inline |
createMCSymbolizer - Create a target specific MCSymbolizer.
| TT | The target triple. |
| GetOpInfo | The function to get the symbolic information for operands. |
| SymbolLookUp | The function to lookup a symbol name. |
| DisInfo | The pointer to the block of symbolic information for above call back. |
| Ctx | The target context. |
| RelInfo | The relocation information for this target. Takes ownership. |
Definition at line 545 of file TargetRegistry.h.
References llvm::createMCSymbolizer().
Referenced by LLVMCreateDisasmCPUFeatures().
|
inline |
Definition at line 509 of file TargetRegistry.h.
References llvm::createNullStreamer(), and createNullTargetStreamer().
|
inline |
Definition at line 515 of file TargetRegistry.h.
Referenced by createNullStreamer().
|
inline |
createTargetMachine - Create a target specific machine implementation for the specified Triple.
| TT | This 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 369 of file TargetRegistry.h.
Referenced by llvm::TargetMachineBuilder::create(), and llvm::EngineBuilder::selectTarget().
getName - Get the target name.
Definition at line 276 of file TargetRegistry.h.
References Name.
Referenced by LLVMGetTargetFromName(), llvm::TargetRegistry::lookupTarget(), and llvm::EngineBuilder::selectTarget().
Definition at line 273 of file TargetRegistry.h.
Referenced by llvm::TargetRegistry::iterator::operator++().
getShortDescription - Get a short description of the target.
Definition at line 279 of file TargetRegistry.h.
|
inline |
hasJIT - Check if this targets supports the just-in-time compilation.
Definition at line 286 of file TargetRegistry.h.
Referenced by llvm::EngineBuilder::create().
|
inline |
hasMCAsmBackend - Check if this target supports .o generation.
Definition at line 292 of file TargetRegistry.h.
|
inline |
hasMCAsmParser - Check if this target supports assembly parsing.
Definition at line 295 of file TargetRegistry.h.
|
inline |
hasTargetMachine - Check if this target supports code generation.
Definition at line 289 of file TargetRegistry.h.
|
friend |
Definition at line 98 of file TargetRegistry.h.
1.8.6