LLVM  8.0.1
Public Member Functions | List of all members
RegisterTargetMachine< TargetMachineImpl > Struct Template Reference

RegisterTargetMachine - Helper template for registering a target machine implementation, for use in the target machine initialization function. More...

#include "llvm/Support/TargetRegistry.h"

Public Member Functions

 RegisterTargetMachine (Target &T)
 

Detailed Description

template<class TargetMachineImpl>
struct 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 1102 of file TargetRegistry.h.

Constructor & Destructor Documentation

◆ RegisterTargetMachine()

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

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