struct RegisterTarget
Declaration
template <Triple::ArchType TargetArchType = Triple::UnknownArch,
bool HasJIT = false>
struct RegisterTarget { /* full declaration omitted */ };
Description
RegisterTarget - Helper template for registering a target, for use in the target's initialization function. Usage: Target &getTheFooTarget () { // The global target instance. static Target TheFooTarget; return TheFooTarget; } extern "C" void LLVMInitializeFooTargetInfo() { RegisterTarget <Triple ::foo> X(getTheFooTarget(), "foo", "Foo description", "Foo" /* Backend Name */); }
Declared at: llvm/include/llvm/MC/TargetRegistry.h:1100
Templates
- Triple::ArchType TargetArchType = Triple::UnknownArch
- bool HasJIT = false
Method Overview
- public RegisterTarget<TargetArchType, HasJIT>(llvm::Target & T, const char * Name, const char * Desc, const char * BackendName)
- public static bool getArchMatch(Triple::ArchType Arch)
Methods
¶RegisterTarget<TargetArchType, HasJIT>(
llvm::Target& T,
const char* Name,
const char* Desc,
const char* BackendName)
RegisterTarget<TargetArchType, HasJIT>(
llvm::Target& T,
const char* Name,
const char* Desc,
const char* BackendName)
Declared at: llvm/include/llvm/MC/TargetRegistry.h:1101
Parameters
- llvm::Target& T
- const char* Name
- const char* Desc
- const char* BackendName
¶static bool getArchMatch(Triple::ArchType Arch)
static bool getArchMatch(Triple::ArchType Arch)
Declared at: llvm/include/llvm/MC/TargetRegistry.h:1107
Parameters
- Triple::ArchType Arch