LLVM  8.0.1
Public Member Functions | List of all members
RegisterMCSubtargetInfo< MCSubtargetInfoImpl > Struct Template Reference

RegisterMCSubtargetInfo - Helper template for registering a target subtarget info implementation. More...

#include "llvm/Support/TargetRegistry.h"

Public Member Functions

 RegisterMCSubtargetInfo (Target &T)
 

Detailed Description

template<class MCSubtargetInfoImpl>
struct RegisterMCSubtargetInfo< MCSubtargetInfoImpl >

RegisterMCSubtargetInfo - Helper template for registering a target subtarget info implementation.

This invokes the static "Create" method on the class to actually do the construction. Usage:

extern "C" void LLVMInitializeFooTarget() { extern Target TheFooTarget; RegisterMCSubtargetInfo<FooMCSubtargetInfo> X(TheFooTarget); }

Definition at line 1068 of file TargetRegistry.h.

Constructor & Destructor Documentation

◆ RegisterMCSubtargetInfo()

template<class MCSubtargetInfoImpl >
RegisterMCSubtargetInfo< MCSubtargetInfoImpl >::RegisterMCSubtargetInfo ( Target &  T)
inline

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