LLVM 20.0.0git
|
RegisterTargetMachine - Helper template for registering a target machine implementation, for use in the target machine initialization function. More...
#include "llvm/MC/TargetRegistry.h"
Public Member Functions | |
RegisterTargetMachine (Target &T) | |
RegisterTargetMachine - Helper template for registering a target machine implementation, for use in the target machine initialization function.
Usage:
extern "C" void LLVMInitializeFooTarget() { extern Target TheFooTarget; RegisterTargetMachine<FooTargetMachine> X(TheFooTarget); }
Definition at line 1248 of file TargetRegistry.h.
|
inline |
Definition at line 1249 of file TargetRegistry.h.
References Allocator, and llvm::TargetRegistry::RegisterTargetMachine().