Go to the documentation of this file.
33 #define GET_INSTRINFO_MC_DESC
34 #include "M68kGenInstrInfo.inc"
36 #define GET_SUBTARGETINFO_MC_DESC
37 #include "M68kGenSubtargetInfo.inc"
39 #define GET_REGINFO_MC_DESC
40 #include "M68kGenRegisterInfo.inc"
49 InitM68kMCInstrInfo(
X);
55 InitM68kMCRegisterInfo(
X, llvm::M68k::A0, 0, 0, llvm::M68k::PC);
63 if (!ArchFS.empty()) {
64 ArchFS = (ArchFS +
"," +
FS).str();
69 return createM68kMCSubtargetInfoImpl(TT, CPU, CPU, ArchFS);
84 nullptr,
MRI.getDwarfRegNum(llvm::M68k::SP,
true), -StackGrowth);
89 nullptr,
MRI.getDwarfRegNum(M68k::PC,
true), StackGrowth);
102 unsigned SyntaxVariant,
LLVM_EXTERNAL_VISIBILITY void LLVMInitializeM68kTargetMC()
static MCInstrInfo * createM68kMCInstrInfo()
This is an optimization pass for GlobalISel generic memory operations.
static MCRelocationInfo * createM68kMCRelocationInfo(const Triple &TheTriple, MCContext &Ctx)
Context object for machine code objects.
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...
Create MCExprs from relocations found in an object file.
Triple - Helper class for working with autoconf configuration names.
Target & getTheM68kTarget()
static void RegisterMCInstPrinter(Target &T, Target::MCInstPrinterCtorTy Fn)
RegisterMCInstPrinter - Register a MCInstPrinter implementation for the given target.
static MCAsmInfo * createM68kMCAsmInfo(const MCRegisterInfo &MRI, const Triple &TT, const MCTargetOptions &TO)
MCAsmBackend * createM68kAsmBackend(const Target &T, const MCSubtargetInfo &STI, const MCRegisterInfo &MRI, const MCTargetOptions &Options)
MCCodeEmitter * createM68kMCCodeEmitter(const MCInstrInfo &MCII, MCContext &Ctx)
static MCSubtargetInfo * createM68kMCSubtargetInfo(const Triple &TT, StringRef CPU, StringRef FS)
RegisterMCAsmInfoFn - Helper template for registering a target assembly info implementation.
static GCMetadataPrinterRegistry::Add< ErlangGCPrinter > X("erlang", "erlang-compatible garbage collector")
static std::string ParseM68kTriple(const Triple &TT, StringRef CPU)
static void RegisterMCAsmBackend(Target &T, Target::MCAsmBackendCtorTy Fn)
RegisterMCAsmBackend - Register a MCAsmBackend implementation for the given target.
This is an instance of a target assembly language printer that converts an MCInst to valid target ass...
#define LLVM_EXTERNAL_VISIBILITY
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 void RegisterMCSubtargetInfo(Target &T, Target::MCSubtargetInfoCtorFnTy Fn)
RegisterMCSubtargetInfo - Register a MCSubtargetInfo implementation for the given target.
MCRelocationInfo * createMCRelocationInfo(const Triple &TT, MCContext &Ctx)
StringRef - Represent a constant reference to a string, i.e.
static MCInstPrinter * createM68kMCInstPrinter(const Triple &T, unsigned SyntaxVariant, const MCAsmInfo &MAI, const MCInstrInfo &MII, const MCRegisterInfo &MRI)
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.
static MCCFIInstruction createOffset(MCSymbol *L, unsigned Register, int Offset)
.cfi_offset Previous value of Register is saved at offset Offset from CFA.
static MCRegisterInfo * createM68kMCRegisterInfo(const Triple &TT)
Generic base class for all target subtargets.
static void RegisterMCRelocationInfo(Target &T, Target::MCRelocationInfoCtorTy Fn)
RegisterMCRelocationInfo - Register an MCRelocationInfo implementation for the given target.