llvm::Target

Target - Wrapper for Target specific information.

Synopsis

Declared in <llvm/MC/TargetRegistry.h>

class Target;

Description

For registration purposes, this is a POD type so that targets can be registered without the use of static constructors.

Targets should implement a single global instance of this class (which will be zero initialized), and pass that instance to the TargetRegistry as part of their initialization.

Type Aliases

NameDescription
ArchMatchFnTy Function type that checks whether an architecture is supported.
AsmPrinterCtorTy Constructor function type for this target's AsmPrinter.
AsmStreamerCtorTy Constructor function type for this target's assembly MCStreamer.
AsmTargetStreamerCtorTy Constructor function type for this target's assembly MCTargetStreamer.
COFFStreamerCtorTy Constructor function type for this target's COFF MCStreamer.
CustomBehaviourCtorTy Constructor function type for this target's MCA CustomBehaviour.
ELFStreamerCtorTy Constructor function type for this target's ELF MCStreamer.
InstrPostProcessCtorTy Constructor function type for this target's MCA InstrPostProcess.
InstrumentManagerCtorTy Constructor function type for this target's MCA InstrumentManager.
MCAsmBackendCtorTy Constructor function type for this target's MCAsmBackend.
MCAsmInfoCtorFnTy Constructor function type for this target's MCAsmInfo.
MCAsmParserCtorTy Constructor function type for this target's MCTargetAsmParser.
MCCodeEmitterCtorTy Constructor function type for this target's MCCodeEmitter.
MCDisassemblerCtorTy Constructor function type for this target's MCDisassembler.
MCInstPrinterCtorTy Constructor function type for this target's MCInstPrinter.
MCInstrAnalysisCtorFnTy Constructor function type for this target's MCInstrAnalysis.
MCInstrInfoCtorFnTy Constructor function type for this target's MCInstrInfo.
MCLFIRewriterCtorTy Constructor function type for this target's MCLFIRewriter.
MCObjectFileInfoCtorFnTy Constructor function type for this target's MCObjectFileInfo.
MCRegInfoCtorFnTy Constructor function type for this target's MCRegisterInfo.
MCRelocationInfoCtorTy Constructor function type for this target's MCRelocationInfo.
MCSubtargetInfoCtorFnTy Constructor function type for this target's MCSubtargetInfo.
MCSymbolizerCtorTy Constructor function type for this target's MCSymbolizer.
MachOStreamerCtorTy Constructor function type for this target's Mach-O MCStreamer.
NullTargetStreamerCtorTy Constructor function type for this target's null MCTargetStreamer.
ObjectTargetStreamerCtorTy Constructor function type for this target's object MCTargetStreamer.
TargetMachineCtorTy Constructor function type for this target's TargetMachine.
XCOFFStreamerCtorTy Constructor function type for this target's XCOFF MCStreamer.

Member Functions

NameDescription
Target [constructor]Construct an empty, zero-initialized target entry.
createAsmPrinter createAsmPrinter - Create a target specific assembly printer pass. This takes ownership of the MCStreamer object.
createAsmStreamer Create a target-specific assembly streamer.
createAsmTargetStreamer Create a target-specific assembly TargetStreamer.
createCustomBehaviour createCustomBehaviour - Create a target specific CustomBehaviour. This class is used by llvm-mca and requires backend functionality.
createInstrPostProcess createInstrPostProcess - Create a target specific InstrPostProcess. This class is used by llvm-mca and requires backend functionality.
createInstrumentManager createInstrumentManager - Create a target specific InstrumentManager. This class is used by llvm-mca and requires backend functionality.
createMCAsmBackend createMCAsmBackend - Create a target specific assembly backend.
createMCAsmInfo Create a MCAsmInfo implementation for the specified target triple.
createMCAsmParser createMCAsmParser - Create a target specific assembly parser.
createMCCodeEmitter createMCCodeEmitter - Create a target specific code emitter.
createMCDisassembler Create a target-specific MCDisassembler.
createMCInstPrinter Create a target-specific MCInstPrinter.
createMCInstrAnalysis createMCInstrAnalysis - Create a MCInstrAnalysis implementation.
createMCInstrInfo createMCInstrInfo - Create a MCInstrInfo implementation.
createMCLFIRewriter Create a target-specific MCLFIRewriter.
createMCObjectFileInfo Create a MCObjectFileInfo implementation for the specified target triple.
createMCObjectStreamer Create a target specific MCStreamer.
createMCRegInfo Create a MCRegisterInfo implementation.
createMCRelocationInfo createMCRelocationInfo - Create a target specific MCRelocationInfo.
createMCSubtargetInfo createMCSubtargetInfo - Create a MCSubtargetInfo implementation.
createMCSymbolizer createMCSymbolizer - Create a target specific MCSymbolizer.
createNullStreamer Create a no-op streamer that discards all output.
createNullTargetStreamer Create a null TargetStreamer for S, if one is registered.
createTargetMachine createTargetMachine - Create a target specific machine implementation for the specified Triple.
getBackendName getBackendName - Get the backend name.
getName getName - Get the target name.
getNext Return the next registered target in the linked list.
getShortDescription getShortDescription - Get a short description of the target.
hasJIT hasJIT - Check if this targets supports the just-in-time compilation.
hasMCAsmBackend hasMCAsmBackend - Check if this target supports .o generation.
hasMCAsmParser hasMCAsmParser - Check if this target supports assembly parsing.
hasTargetMachine hasTargetMachine - Check if this target supports code generation.

Static Member Functions

NameDescription
isValidFeatureListFormat Check that FeaturesString has a valid feature-list format.

Friends

NameDescription
llvm::TargetRegistryTargetRegistry - Generic interface to target specific features.