llvm::TargetRegistry::RegisterMCSubtargetInfo

RegisterMCSubtargetInfo - Register a MCSubtargetInfo implementation for the given target.

Synopsis

Declared in <llvm/MC/TargetRegistry.h>

static
void
RegisterMCSubtargetInfo(
    Target& T,
    Target::MCSubtargetInfoCtorFnTy Fn);

Description

Clients are responsible for ensuring that registration doesn't occur while another thread is attempting to access the registry. Typically this is done by initializing all targets at program startup.

Parameters

NameDescription
T- The target being registered.
Fn- A function to construct a MCSubtargetInfo for the target.