LLVM API Documentation
#include <TargetRegistry.h>
Public Member Functions | |
RegisterTarget (Target &T, const char *Name, const char *Desc) | |
Static Public Member Functions | |
static bool | getArchMatch (Triple::ArchType Arch) |
RegisterTarget - Helper template for registering a target, for use in the target's initialization function. Usage:
Target TheFooTarget; // The global target instance.
extern "C" void LLVMInitializeFooTargetInfo() { RegisterTarget<Triple::foo> X(TheFooTarget, "foo", "Foo description"); }
Definition at line 837 of file TargetRegistry.h.
llvm::RegisterTarget< TargetArchType, HasJIT >::RegisterTarget | ( | Target & | T, |
const char * | Name, | ||
const char * | Desc | ||
) | [inline] |
Definition at line 838 of file TargetRegistry.h.
References llvm::RegisterTarget< TargetArchType, HasJIT >::getArchMatch().
static bool llvm::RegisterTarget< TargetArchType, HasJIT >::getArchMatch | ( | Triple::ArchType | Arch | ) | [inline, static] |
Definition at line 842 of file TargetRegistry.h.
Referenced by llvm::RegisterTarget< TargetArchType, HasJIT >::RegisterTarget().