Go to the documentation of this file.
27 #define GET_INSTRINFO_MC_DESC
28 #include "LoongArchGenInstrInfo.inc"
30 #define GET_REGINFO_MC_DESC
31 #include "LoongArchGenRegisterInfo.inc"
33 #define GET_SUBTARGETINFO_MC_DESC
34 #include "LoongArchGenSubtargetInfo.inc"
40 InitLoongArchMCRegisterInfo(
X, LoongArch::R1);
46 InitLoongArchMCInstrInfo(
X);
53 CPU = TT.isArch64Bit() ?
"la464" :
"generic-la32";
54 return createLoongArchMCSubtargetInfoImpl(TT, CPU, CPU,
FS);
71 unsigned SyntaxVariant,
100 return new LoongArchMCInstrAnalysis(
Info);
This is an optimization pass for GlobalISel generic memory operations.
Target & getTheLoongArch32Target()
Target - Wrapper for Target specific information.
This class is intended to be used as a base class for asm properties and features specific to the tar...
static void RegisterMCInstrAnalysis(Target &T, Target::MCInstrAnalysisCtorFnTy Fn)
RegisterMCInstrAnalysis - Register a MCInstrAnalysis implementation for the given target.
Triple - Helper class for working with autoconf configuration names.
Instances of this class represent a single low-level machine instruction.
static void RegisterMCInstPrinter(Target &T, Target::MCInstPrinterCtorTy Fn)
RegisterMCInstPrinter - Register a MCInstPrinter implementation for the given target.
unsigned getNumOperands() const
LLVM_EXTERNAL_VISIBILITY void LLVMInitializeLoongArchTargetMC()
const char LLVMTargetMachineRef LLVMPassBuilderOptionsRef Options
Analysis containing CSE Info
MCAsmBackend * createLoongArchAsmBackend(const Target &T, const MCSubtargetInfo &STI, const MCRegisterInfo &MRI, const MCTargetOptions &Options)
static GCMetadataPrinterRegistry::Add< ErlangGCPrinter > X("erlang", "erlang-compatible garbage collector")
static MCInstrAnalysis * createLoongArchInstrAnalysis(const MCInstrInfo *Info)
static void RegisterMCAsmBackend(Target &T, Target::MCAsmBackendCtorTy Fn)
RegisterMCAsmBackend - Register a MCAsmBackend implementation for the given target.
constexpr LLVM_NODISCARD bool empty() const
empty - Check if the string is empty.
This is an instance of a target assembly language printer that converts an MCInst to valid target ass...
#define LLVM_EXTERNAL_VISIBILITY
static MCInstPrinter * createLoongArchMCInstPrinter(const Triple &T, unsigned SyntaxVariant, const MCAsmInfo &MAI, const MCInstrInfo &MII, const MCRegisterInfo &MRI)
static void RegisterMCAsmInfo(Target &T, Target::MCAsmInfoCtorFnTy Fn)
RegisterMCAsmInfo - Register a MCAsmInfo implementation for the given target.
static MCSubtargetInfo * createLoongArchMCSubtargetInfo(const Triple &TT, StringRef CPU, StringRef FS)
static MCRegisterInfo * createLoongArchMCRegisterInfo(const Triple &TT)
static MCAsmInfo * createLoongArchMCAsmInfo(const MCRegisterInfo &MRI, const Triple &TT, const MCTargetOptions &Options)
static MCCFIInstruction cfiDefCfa(MCSymbol *L, unsigned Register, int Offset)
.cfi_def_cfa defines a rule for computing CFA as: take address from Register and add Offset to it.
void addInitialFrameState(const MCCFIInstruction &Inst)
static bool isBranch(unsigned Opcode)
static void RegisterMCSubtargetInfo(Target &T, Target::MCSubtargetInfoCtorFnTy Fn)
RegisterMCSubtargetInfo - Register a MCSubtargetInfo implementation for the given target.
StringRef - Represent a constant reference to a string, i.e.
MCRegisterInfo base class - We assume that the target defines a static array of MCRegisterDesc object...
unsigned const MachineRegisterInfo * MRI
static void RegisterMCInstrInfo(Target &T, Target::MCInstrInfoCtorFnTy Fn)
RegisterMCInstrInfo - Register a MCInstrInfo implementation for the given target.
static void RegisterMCCodeEmitter(Target &T, Target::MCCodeEmitterCtorTy Fn)
RegisterMCCodeEmitter - Register a MCCodeEmitter implementation for the given target.
Interface to description of machine instruction set.
static void RegisterMCRegInfo(Target &T, Target::MCRegInfoCtorFnTy Fn)
RegisterMCRegInfo - Register a MCRegisterInfo implementation for the given target.
unsigned getOpcode() const
MCCodeEmitter * createLoongArchMCCodeEmitter(const MCInstrInfo &MCII, MCContext &Ctx)
const MCOperand & getOperand(unsigned i) const
Generic base class for all target subtargets.
static MCInstrInfo * createLoongArchMCInstrInfo()
Target & getTheLoongArch64Target()
Wrapper class representing physical registers. Should be passed by value.