LLVM 20.0.0git
Public Member Functions | List of all members
llvm::RegisterMCSubtargetInfoFn Struct Reference

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

#include "llvm/MC/TargetRegistry.h"

Public Member Functions

 RegisterMCSubtargetInfoFn (Target &T, Target::MCSubtargetInfoCtorFnTy Fn)
 

Detailed Description

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

This invokes the specified function to do the construction. Usage:

extern "C" void LLVMInitializeFooTarget() { extern Target TheFooTarget; RegisterMCSubtargetInfoFn X(TheFooTarget, TheFunction); }

Definition at line 1234 of file TargetRegistry.h.

Constructor & Destructor Documentation

◆ RegisterMCSubtargetInfoFn()

llvm::RegisterMCSubtargetInfoFn::RegisterMCSubtargetInfoFn ( Target T,
Target::MCSubtargetInfoCtorFnTy  Fn 
)
inline

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