LLVM: lib/Target/M68k/MCTargetDesc/M68kMCTargetDesc.cpp Source File (original) (raw)
1
2
3
4
5
6
7
8
9
10
11
12
13
18
30
31using namespace llvm;
32
33#define GET_INSTRINFO_MC_DESC
34#define ENABLE_INSTR_PREDICATE_VERIFIER
35#include "M68kGenInstrInfo.inc"
36
37#define GET_SUBTARGETINFO_MC_DESC
38#include "M68kGenSubtargetInfo.inc"
39
40#define GET_REGINFO_MC_DESC
41#include "M68kGenRegisterInfo.inc"
42
43
47
50 InitM68kMCInstrInfo(X);
51 return X;
52}
53
56 InitM68kMCRegisterInfo(X, llvm::M68k::A0, 0, 0, llvm::M68k::PC);
57 return X;
58}
59
63 if (!FS.empty()) {
64 if (!ArchFS.empty()) {
65 ArchFS = (ArchFS + "," + FS).str();
66 } else {
67 ArchFS = FS.str();
68 }
69 }
70 return createM68kMCSubtargetInfoImpl(TT, CPU, CPU, ArchFS);
71}
72
77
78
79
80 int StackGrowth = -4;
81
82
83
85 nullptr, MRI.getDwarfRegNum(llvm::M68k::SP, true), -StackGrowth);
87
88
90 nullptr, MRI.getDwarfRegNum(M68k::PC, true), StackGrowth);
92
93 return MAI;
94}
95
101
103 unsigned SyntaxVariant,
108}
109
112
113
115
116
118
119
121
122
124
125
127
128
130
131
133
134
136}
unsigned const MachineRegisterInfo * MRI
#define LLVM_EXTERNAL_VISIBILITY
This file contains declarations for an M68k MCInst printer.
This file contains the declarations of the M68k MCAsmInfo properties.
static MCInstrInfo * createM68kMCInstrInfo()
Definition M68kMCTargetDesc.cpp:48
static MCInstPrinter * createM68kMCInstPrinter(const Triple &T, unsigned SyntaxVariant, const MCAsmInfo &MAI, const MCInstrInfo &MII, const MCRegisterInfo &MRI)
Definition M68kMCTargetDesc.cpp:102
static MCAsmInfo * createM68kMCAsmInfo(const MCRegisterInfo &MRI, const Triple &TT, const MCTargetOptions &TO)
Definition M68kMCTargetDesc.cpp:73
LLVM_EXTERNAL_VISIBILITY void LLVMInitializeM68kTargetMC()
Definition M68kMCTargetDesc.cpp:110
static std::string ParseM68kTriple(const Triple &TT, StringRef CPU)
Definition M68kMCTargetDesc.cpp:44
static MCRegisterInfo * createM68kMCRegisterInfo(const Triple &TT)
Definition M68kMCTargetDesc.cpp:54
static MCRelocationInfo * createM68kMCRelocationInfo(const Triple &TheTriple, MCContext &Ctx)
Definition M68kMCTargetDesc.cpp:96
static MCSubtargetInfo * createM68kMCSubtargetInfo(const Triple &TT, StringRef CPU, StringRef FS)
Definition M68kMCTargetDesc.cpp:60
This file provides M68k specific target descriptions.
static TableGen::Emitter::OptClass< SkeletonEmitter > X("gen-skeleton-class", "Generate example skeleton class")
This class is intended to be used as a base class for asm properties and features specific to the tar...
void addInitialFrameState(const MCCFIInstruction &Inst)
static MCCFIInstruction cfiDefCfa(MCSymbol *L, unsigned Register, int64_t Offset, SMLoc Loc={})
.cfi_def_cfa defines a rule for computing CFA as: take address from Register and add Offset to it.
static MCCFIInstruction createOffset(MCSymbol *L, unsigned Register, int64_t Offset, SMLoc Loc={})
.cfi_offset Previous value of Register is saved at offset Offset from CFA.
Context object for machine code objects.
This is an instance of a target assembly language printer that converts an MCInst to valid target ass...
Interface to description of machine instruction set.
MCRegisterInfo base class - We assume that the target defines a static array of MCRegisterDesc object...
Create MCExprs from relocations found in an object file.
Generic base class for all target subtargets.
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.
This is an optimization pass for GlobalISel generic memory operations.
LLVM_ABI MCRelocationInfo * createMCRelocationInfo(const Triple &TT, MCContext &Ctx)
MCAsmBackend * createM68kAsmBackend(const Target &T, const MCSubtargetInfo &STI, const MCRegisterInfo &MRI, const MCTargetOptions &Options)
Target & getTheM68kTarget()
MCCodeEmitter * createM68kMCCodeEmitter(const MCInstrInfo &MCII, MCContext &Ctx)
RegisterMCAsmInfoFn - 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 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 RegisterMCRelocationInfo(Target &T, Target::MCRelocationInfoCtorTy Fn)
RegisterMCRelocationInfo - Register an MCRelocationInfo implementation for the given target.