LLVM API Documentation
TargetRegistry - Generic interface to target specific features. More...
#include <TargetRegistry.h>
Classes | |
class | iterator |
TargetRegistry - Generic interface to target specific features.
Definition at line 487 of file TargetRegistry.h.
|
static |
Definition at line 22 of file TargetRegistry.cpp.
References FirstTarget.
Referenced by LLVMGetFirstTarget(), LLVMGetTargetFromName(), lookupTarget(), printRegisteredTargetsForVersion(), and llvm::EngineBuilder::selectTarget().
|
inlinestatic |
Definition at line 534 of file TargetRegistry.h.
Referenced by LLVMGetFirstTarget(), LLVMGetTargetFromName(), lookupTarget(), printRegisteredTargetsForVersion(), and llvm::EngineBuilder::selectTarget().
|
static |
getClosestTargetForJIT - Pick the best target that is compatible with the current host. If no close target can be found, this returns null and sets the Error string to a reason.
Maintained for compatibility through 2.6.
Definition at line 127 of file TargetRegistry.cpp.
References llvm::sys::getDefaultTargetTriple(), llvm::Target::hasJIT(), and lookupTarget().
|
static |
lookupTarget - Lookup a target based on a target triple.
Triple | - The triple to use for finding a target. |
Error | - On failure, an error string describing why no target was found. |
Definition at line 67 of file TargetRegistry.cpp.
References begin(), and end().
Referenced by getClosestTargetForJIT(), LLVMCreateDisasmCPU(), LLVMGetTargetFromTriple(), lookupTarget(), and llvm::EngineBuilder::selectTarget().
|
static |
lookupTarget - Lookup a target based on an architecture name and a target triple. If the architecture name is non-empty, then the lookup is done by architecture. Otherwise, the target triple is used.
ArchName | - The architecture to use for finding a target. |
TheTriple | - The triple to use for finding a target. The triple is updated with canonical architecture name if a lookup by architecture is done. |
Error | - On failure, an error string describing why no target was found. |
Definition at line 26 of file TargetRegistry.cpp.
References begin(), end(), llvm::Triple::getArchTypeForLLVMName(), llvm::Triple::getTriple(), lookupTarget(), llvm::Triple::setArch(), and llvm::Triple::UnknownArch.
|
static |
printRegisteredTargetsForVersion - Print the registered targets appropriately for inclusion in a tool's version output.
Definition at line 143 of file TargetRegistry.cpp.
References llvm::array_pod_sort(), begin(), end(), I, llvm::outs(), and TargetArraySortFn().
|
inlinestatic |
RegisterAsmPrinter - Register an AsmPrinter implementation for the given target.
Clients are responsible for ensuring that registration doesn't occur while another thread is attempting to access the registry. Typically this is done by initializing all targets at program startup.
T | - The target being registered. |
Fn | - A function to construct an AsmPrinter for the target. |
Definition at line 714 of file TargetRegistry.h.
Referenced by LLVMInitializePowerPCAsmPrinter(), LLVMInitializeR600AsmPrinter(), and llvm::RegisterAsmPrinter< AsmPrinterImpl >::RegisterAsmPrinter().
|
inlinestatic |
RegisterAsmStreamer - Register an assembly MCStreamer implementation for the given target.
Clients are responsible for ensuring that registration doesn't occur while another thread is attempting to access the registry. Typically this is done by initializing all targets at program startup.
T | - The target being registered. |
Fn | - A function to construct an MCStreamer for the target. |
Definition at line 783 of file TargetRegistry.h.
Referenced by LLVMInitializeARMTargetMC(), LLVMInitializeMipsTargetMC(), and LLVMInitializePowerPCTargetMC().
|
inlinestatic |
RegisterMCAsmBackend - Register a MCAsmBackend implementation for the given target.
Clients are responsible for ensuring that registration doesn't occur while another thread is attempting to access the registry. Typically this is done by initializing all targets at program startup.
T | - The target being registered. |
Fn | - A function to construct an AsmBackend for the target. |
Definition at line 688 of file TargetRegistry.h.
Referenced by LLVMInitializeAArch64TargetMC(), LLVMInitializeARMTargetMC(), LLVMInitializeMipsTargetMC(), LLVMInitializePowerPCTargetMC(), LLVMInitializeR600TargetMC(), LLVMInitializeSystemZTargetMC(), LLVMInitializeX86TargetMC(), and llvm::RegisterMCAsmBackend< MCAsmBackendImpl >::RegisterMCAsmBackend().
|
inlinestatic |
RegisterMCAsmInfo - Register a MCAsmInfo implementation for the given target.
Clients are responsible for ensuring that registration doesn't occur while another thread is attempting to access the registry. Typically this is done by initializing all targets at program startup.
Definition at line 600 of file TargetRegistry.h.
Referenced by LLVMInitializeSystemZTargetMC(), llvm::RegisterMCAsmInfo< MCAsmInfoImpl >::RegisterMCAsmInfo(), and llvm::RegisterMCAsmInfoFn::RegisterMCAsmInfoFn().
|
inlinestatic |
RegisterMCAsmParser - Register a MCTargetAsmParser implementation for the given target.
Clients are responsible for ensuring that registration doesn't occur while another thread is attempting to access the registry. Typically this is done by initializing all targets at program startup.
T | - The target being registered. |
Fn | - A function to construct an MCTargetAsmParser for the target. |
Definition at line 701 of file TargetRegistry.h.
Referenced by llvm::RegisterMCAsmParser< MCAsmParserImpl >::RegisterMCAsmParser().
|
inlinestatic |
RegisterMCCodeEmitter - Register a MCCodeEmitter implementation for the given target.
Clients are responsible for ensuring that registration doesn't occur while another thread is attempting to access the registry. Typically this is done by initializing all targets at program startup.
T | - The target being registered. |
Fn | - A function to construct an MCCodeEmitter for the target. |
Definition at line 755 of file TargetRegistry.h.
Referenced by LLVMInitializeAArch64TargetMC(), LLVMInitializeARMTargetMC(), LLVMInitializeMipsTargetMC(), LLVMInitializePowerPCTargetMC(), LLVMInitializeR600TargetMC(), LLVMInitializeSystemZTargetMC(), LLVMInitializeX86TargetMC(), and llvm::RegisterMCCodeEmitter< MCCodeEmitterImpl >::RegisterMCCodeEmitter().
|
inlinestatic |
RegisterMCCodeGenInfo - Register a MCCodeGenInfo implementation for the given target.
Clients are responsible for ensuring that registration doesn't occur while another thread is attempting to access the registry. Typically this is done by initializing all targets at program startup.
T | - The target being registered. |
Fn | - A function to construct a MCCodeGenInfo for the target. |
Definition at line 613 of file TargetRegistry.h.
Referenced by LLVMInitializeAArch64TargetMC(), LLVMInitializeARMTargetMC(), LLVMInitializeHexagonTargetMC(), LLVMInitializeMipsTargetMC(), LLVMInitializeMSP430TargetMC(), LLVMInitializeNVPTXTargetMC(), LLVMInitializePowerPCTargetMC(), LLVMInitializeR600TargetMC(), LLVMInitializeSparcTargetMC(), LLVMInitializeSystemZTargetMC(), LLVMInitializeXCoreTargetMC(), llvm::RegisterMCCodeGenInfo< MCCodeGenInfoImpl >::RegisterMCCodeGenInfo(), and llvm::RegisterMCCodeGenInfoFn::RegisterMCCodeGenInfoFn().
|
inlinestatic |
RegisterMCDisassembler - Register a MCDisassembler implementation for the given target.
Clients are responsible for ensuring that registration doesn't occur while another thread is attempting to access the registry. Typically this is done by initializing all targets at program startup.
T | - The target being registered. |
Fn | - A function to construct an MCDisassembler for the target. |
Definition at line 727 of file TargetRegistry.h.
Referenced by LLVMInitializeAArch64Disassembler(), LLVMInitializeARMDisassembler(), LLVMInitializeMipsDisassembler(), LLVMInitializeSystemZDisassembler(), LLVMInitializeX86Disassembler(), and LLVMInitializeXCoreDisassembler().
|
inlinestatic |
RegisterMCInstPrinter - Register a MCInstPrinter implementation for the given target.
Clients are responsible for ensuring that registration doesn't occur while another thread is attempting to access the registry. Typically this is done by initializing all targets at program startup.
T | - The target being registered. |
Fn | - A function to construct an MCInstPrinter for the target. |
Definition at line 741 of file TargetRegistry.h.
Referenced by LLVMInitializeAArch64TargetMC(), LLVMInitializeARMTargetMC(), LLVMInitializeHexagonAsmPrinter(), LLVMInitializeMipsTargetMC(), LLVMInitializeMSP430TargetMC(), LLVMInitializeNVPTXTargetMC(), LLVMInitializePowerPCTargetMC(), LLVMInitializeR600TargetMC(), LLVMInitializeSystemZTargetMC(), LLVMInitializeX86TargetMC(), and LLVMInitializeXCoreTargetMC().
|
inlinestatic |
RegisterMCInstrAnalysis - Register a MCInstrAnalysis implementation for the given target.
Definition at line 633 of file TargetRegistry.h.
Referenced by LLVMInitializeAArch64TargetMC(), LLVMInitializeARMTargetMC(), LLVMInitializeX86TargetMC(), llvm::RegisterMCInstrAnalysis< MCInstrAnalysisImpl >::RegisterMCInstrAnalysis(), and llvm::RegisterMCInstrAnalysisFn::RegisterMCInstrAnalysisFn().
|
inlinestatic |
RegisterMCInstrInfo - Register a MCInstrInfo implementation for the given target.
Clients are responsible for ensuring that registration doesn't occur while another thread is attempting to access the registry. Typically this is done by initializing all targets at program startup.
T | - The target being registered. |
Fn | - A function to construct a MCInstrInfo for the target. |
Definition at line 627 of file TargetRegistry.h.
Referenced by LLVMInitializeAArch64TargetMC(), LLVMInitializeARMTargetMC(), LLVMInitializeHexagonTargetMC(), LLVMInitializeMipsTargetMC(), LLVMInitializeMSP430TargetMC(), LLVMInitializeNVPTXTargetMC(), LLVMInitializePowerPCTargetMC(), LLVMInitializeR600TargetMC(), LLVMInitializeSparcTargetMC(), LLVMInitializeSystemZTargetMC(), LLVMInitializeX86TargetMC(), LLVMInitializeXCoreTargetMC(), llvm::RegisterMCInstrInfo< MCInstrInfoImpl >::RegisterMCInstrInfo(), and llvm::RegisterMCInstrInfoFn::RegisterMCInstrInfoFn().
|
inlinestatic |
RegisterMCObjectStreamer - Register a object code MCStreamer implementation for the given target.
Clients are responsible for ensuring that registration doesn't occur while another thread is attempting to access the registry. Typically this is done by initializing all targets at program startup.
T | - The target being registered. |
Fn | - A function to construct an MCStreamer for the target. |
Definition at line 769 of file TargetRegistry.h.
Referenced by LLVMInitializeAArch64TargetMC(), LLVMInitializeARMTargetMC(), LLVMInitializeMipsTargetMC(), LLVMInitializePowerPCTargetMC(), LLVMInitializeR600TargetMC(), LLVMInitializeSystemZTargetMC(), and LLVMInitializeX86TargetMC().
|
inlinestatic |
RegisterMCRegInfo - Register a MCRegisterInfo implementation for the given target.
Clients are responsible for ensuring that registration doesn't occur while another thread is attempting to access the registry. Typically this is done by initializing all targets at program startup.
T | - The target being registered. |
Fn | - A function to construct a MCRegisterInfo for the target. |
Definition at line 647 of file TargetRegistry.h.
Referenced by LLVMInitializeAArch64TargetMC(), LLVMInitializeARMTargetMC(), LLVMInitializeHexagonTargetMC(), LLVMInitializeMipsTargetMC(), LLVMInitializeMSP430TargetMC(), LLVMInitializeNVPTXTargetMC(), LLVMInitializePowerPCTargetMC(), LLVMInitializeR600TargetMC(), LLVMInitializeSparcTargetMC(), LLVMInitializeSystemZTargetMC(), LLVMInitializeX86TargetMC(), LLVMInitializeXCoreTargetMC(), llvm::RegisterMCRegInfo< MCRegisterInfoImpl >::RegisterMCRegInfo(), and llvm::RegisterMCRegInfoFn::RegisterMCRegInfoFn().
|
inlinestatic |
RegisterMCRelocationInfo - Register an MCRelocationInfo implementation for the given target.
Clients are responsible for ensuring that registration doesn't occur while another thread is attempting to access the registry. Typically this is done by initializing all targets at program startup.
T | - The target being registered. |
Fn | - A function to construct an MCRelocationInfo for the target. |
Definition at line 796 of file TargetRegistry.h.
Referenced by LLVMInitializeARMTargetMC(), and LLVMInitializeX86TargetMC().
|
inlinestatic |
RegisterMCSubtargetInfo - Register a MCSubtargetInfo implementation for the given target.
Clients are responsible for ensuring that registration doesn't occur while another thread is attempting to access the registry. Typically this is done by initializing all targets at program startup.
T | - The target being registered. |
Fn | - A function to construct a MCSubtargetInfo for the target. |
Definition at line 660 of file TargetRegistry.h.
Referenced by LLVMInitializeAArch64TargetMC(), LLVMInitializeARMTargetMC(), LLVMInitializeHexagonTargetMC(), LLVMInitializeMipsTargetMC(), LLVMInitializeMSP430TargetMC(), LLVMInitializeNVPTXTargetMC(), LLVMInitializePowerPCTargetMC(), LLVMInitializeR600TargetMC(), LLVMInitializeSparcTargetMC(), LLVMInitializeSystemZTargetMC(), LLVMInitializeX86TargetMC(), LLVMInitializeXCoreTargetMC(), llvm::RegisterMCSubtargetInfo< MCSubtargetInfoImpl >::RegisterMCSubtargetInfo(), and llvm::RegisterMCSubtargetInfoFn::RegisterMCSubtargetInfoFn().
|
inlinestatic |
RegisterMCSymbolizer - Register an MCSymbolizer implementation for the given target.
Clients are responsible for ensuring that registration doesn't occur while another thread is attempting to access the registry. Typically this is done by initializing all targets at program startup.
T | - The target being registered. |
Fn | - A function to construct an MCSymbolizer for the target. |
Definition at line 810 of file TargetRegistry.h.
|
static |
RegisterTarget - Register the given target. Attempts to register a target which has already been registered will be ignored.
Clients are responsible for ensuring that registration doesn't occur while another thread is attempting to access the registry. Typically this is done by initializing all targets at program startup.
T | - The target being registered. |
Name | - The target name. This should be a static string. |
ShortDesc | - A short target description. This should be a static string. |
TQualityFn | - The triple match quality computation function for this target. |
HasJIT | - Whether the target supports JIT code generation. |
Definition at line 104 of file TargetRegistry.cpp.
References FirstTarget, and T.
Referenced by LLVMInitializeCppBackendTargetInfo(), and llvm::RegisterTarget< TargetArchType, HasJIT >::RegisterTarget().
|
inlinestatic |
RegisterTargetMachine - Register a TargetMachine implementation for the given target.
Clients are responsible for ensuring that registration doesn't occur while another thread is attempting to access the registry. Typically this is done by initializing all targets at program startup.
T | - The target being registered. |
Fn | - A function to construct a TargetMachine for the target. |
Definition at line 674 of file TargetRegistry.h.
Referenced by llvm::RegisterTargetMachine< TargetMachineImpl >::RegisterTargetMachine().