37#define GET_INSTRINFO_MC_DESC
38#define ENABLE_INSTR_PREDICATE_VERIFIER
39#include "AMDGPUGenInstrInfo.inc"
41#define GET_SUBTARGETINFO_MC_DESC
42#include "AMDGPUGenSubtargetInfo.inc"
44#define NoSchedModel NoSchedModelR600
45#define GET_SUBTARGETINFO_MC_DESC
46#include "R600GenSubtargetInfo.inc"
47#undef NoSchedModelR600
49#define GET_REGINFO_MC_DESC
50#include "AMDGPUGenRegisterInfo.inc"
52#define GET_REGINFO_MC_DESC
53#include "R600GenRegisterInfo.inc"
57 InitAMDGPUMCInstrInfo(
X);
64 InitR600MCRegisterInfo(
X, 0);
66 InitAMDGPUMCRegisterInfo(
X, AMDGPU::PC_REG);
72 InitAMDGPUMCRegisterInfo(
X, AMDGPU::PC_REG, DwarfFlavour, DwarfFlavour);
79 return createR600MCSubtargetInfoImpl(TT, CPU, CPU, FS);
82 createAMDGPUMCSubtargetInfoImpl(TT, CPU, CPU, FS);
85 if (!STI->
hasFeature(AMDGPU::FeatureWavefrontSize64) &&
86 !STI->
hasFeature(AMDGPU::FeatureWavefrontSize32)) {
91 ? AMDGPU::FeatureWavefrontSize32
92 : AMDGPU::FeatureWavefrontSize64);
99 unsigned SyntaxVariant,
125 std::unique_ptr<MCAsmBackend> &&MAB,
126 std::unique_ptr<MCObjectWriter> &&OW,
127 std::unique_ptr<MCCodeEmitter> &&
Emitter) {
136 explicit AMDGPUMCInstrAnalysis(
const MCInstrInfo *Info)
156 return new AMDGPUMCInstrAnalysis(
Info);
unsigned const MachineRegisterInfo * MRI
static MCInstrInfo * createAMDGPUMCInstrInfo()
static MCTargetStreamer * createAMDGPUAsmTargetStreamer(MCStreamer &S, formatted_raw_ostream &OS, MCInstPrinter *InstPrint)
static MCStreamer * createMCStreamer(const Triple &T, MCContext &Context, std::unique_ptr< MCAsmBackend > &&MAB, std::unique_ptr< MCObjectWriter > &&OW, std::unique_ptr< MCCodeEmitter > &&Emitter)
static MCSubtargetInfo * createAMDGPUMCSubtargetInfo(const Triple &TT, StringRef CPU, StringRef FS)
static MCInstrAnalysis * createAMDGPUMCInstrAnalysis(const MCInstrInfo *Info)
static MCTargetStreamer * createAMDGPUNullTargetStreamer(MCStreamer &S)
static MCTargetStreamer * createAMDGPUObjectTargetStreamer(MCStreamer &S, const MCSubtargetInfo &STI)
static MCInstPrinter * createAMDGPUMCInstPrinter(const Triple &T, unsigned SyntaxVariant, const MCAsmInfo &MAI, const MCInstrInfo &MII, const MCRegisterInfo &MRI)
static MCRegisterInfo * createAMDGPUMCRegisterInfo(const Triple &TT)
LLVM_EXTERNAL_VISIBILITY void LLVMInitializeAMDGPUTargetMC()
Provides AMDGPU specific target descriptions.
Analysis containing CSE Info
#define LLVM_EXTERNAL_VISIBILITY
dxil DXContainer Global Emitter
static GCMetadataPrinterRegistry::Add< ErlangGCPrinter > X("erlang", "erlang-compatible garbage collector")
Provides R600 specific target descriptions.
This class is intended to be used as a base class for asm properties and features specific to the tar...
Context object for machine code objects.
This is an instance of a target assembly language printer that converts an MCInst to valid target ass...
Instances of this class represent a single low-level machine instruction.
unsigned getNumOperands() const
unsigned getOpcode() const
const MCOperand & getOperand(unsigned i) const
virtual bool evaluateBranch(const MCInst &Inst, uint64_t Addr, uint64_t Size, uint64_t &Target) const
Given a branch instruction try to get the address the branch targets.
Interface to description of machine instruction set.
MCRegisterInfo base class - We assume that the target defines a static array of MCRegisterDesc object...
Streaming machine code generation interface.
Generic base class for all target subtargets.
bool hasFeature(unsigned Feature) const
FeatureBitset ToggleFeature(uint64_t FB)
Toggle a feature and return the re-computed feature bits.
Target specific streamer interface.
StringRef - Represent a constant reference to a string, i.e.
Target - Wrapper for Target specific information.
Triple - Helper class for working with autoconf configuration names.
bool isGFX10Plus(const MCSubtargetInfo &STI)
This is an optimization pass for GlobalISel generic memory operations.
MCAsmBackend * createAMDGPUAsmBackend(const Target &T, const MCSubtargetInfo &STI, const MCRegisterInfo &MRI, const MCTargetOptions &Options)
Target & getTheR600Target()
The target for R600 GPUs.
MCCodeEmitter * createR600MCCodeEmitter(const MCInstrInfo &MCII, MCContext &Ctx)
MCELFStreamer * createAMDGPUELFStreamer(const Triple &T, MCContext &Context, std::unique_ptr< MCAsmBackend > MAB, std::unique_ptr< MCObjectWriter > OW, std::unique_ptr< MCCodeEmitter > Emitter)
Target & getTheGCNTarget()
The target for GCN GPUs.
MCRegisterInfo * createGCNMCRegisterInfo(AMDGPUDwarfFlavour DwarfFlavour)
MCInstrInfo * createR600MCInstrInfo()
MCCodeEmitter * createAMDGPUMCCodeEmitter(const MCInstrInfo &MCII, MCContext &Ctx)
RegisterMCAsmInfo - Helper template for registering a target assembly info implementation.
static void RegisterMCRegInfo(Target &T, Target::MCRegInfoCtorFnTy Fn)
RegisterMCRegInfo - Register a MCRegisterInfo implementation for the given target.
static void RegisterMCAsmBackend(Target &T, Target::MCAsmBackendCtorTy Fn)
RegisterMCAsmBackend - Register a MCAsmBackend implementation for the given target.
static void RegisterMCCodeEmitter(Target &T, Target::MCCodeEmitterCtorTy Fn)
RegisterMCCodeEmitter - Register a MCCodeEmitter implementation for the given target.
static void RegisterMCSubtargetInfo(Target &T, Target::MCSubtargetInfoCtorFnTy Fn)
RegisterMCSubtargetInfo - Register a MCSubtargetInfo implementation for the given target.
static void RegisterObjectTargetStreamer(Target &T, Target::ObjectTargetStreamerCtorTy Fn)
static void RegisterMCInstrAnalysis(Target &T, Target::MCInstrAnalysisCtorFnTy Fn)
RegisterMCInstrAnalysis - Register a MCInstrAnalysis implementation for the given target.
static void RegisterELFStreamer(Target &T, Target::ELFStreamerCtorTy Fn)
static void RegisterNullTargetStreamer(Target &T, Target::NullTargetStreamerCtorTy Fn)
static void RegisterMCInstPrinter(Target &T, Target::MCInstPrinterCtorTy Fn)
RegisterMCInstPrinter - Register a MCInstPrinter implementation for the given target.
static void RegisterMCInstrInfo(Target &T, Target::MCInstrInfoCtorFnTy Fn)
RegisterMCInstrInfo - Register a MCInstrInfo implementation for the given target.
static void RegisterAsmTargetStreamer(Target &T, Target::AsmTargetStreamerCtorTy Fn)