LLVM API Documentation

llvm::RegisterTargetMachine< TargetMachineImpl > Struct Template Reference

#include <TargetRegistry.h>

List of all members.

Public Member Functions

 RegisterTargetMachine (Target &T)


Detailed Description

template<class TargetMachineImpl>
struct llvm::RegisterTargetMachine< TargetMachineImpl >

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 381 of file TargetRegistry.h.


Constructor & Destructor Documentation

template<class TargetMachineImpl>
llvm::RegisterTargetMachine< TargetMachineImpl >::RegisterTargetMachine ( Target &  T  )  [inline]

Definition at line 382 of file TargetRegistry.h.

References llvm::TargetRegistry::RegisterTargetMachine().


The documentation for this struct was generated from the following file: