27 #define GET_INSTRINFO_MC_DESC
28 #include "XCoreGenInstrInfo.inc"
30 #define GET_SUBTARGETINFO_MC_DESC
31 #include "XCoreGenSubtargetInfo.inc"
33 #define GET_REGINFO_MC_DESC
34 #include "XCoreGenRegisterInfo.inc"
38 InitXCoreMCInstrInfo(X);
44 InitXCoreMCRegisterInfo(X, XCore::LR);
50 return createXCoreMCSubtargetInfoImpl(TT, CPU, FS);
74 unsigned SyntaxVariant,
96 XCoreTargetAsmStreamer::XCoreTargetAsmStreamer(
MCStreamer &S,
101 OS <<
"\t.cc_top " << Name <<
".data," << Name <<
'\n';
104 void XCoreTargetAsmStreamer::emitCCTopFunction(
StringRef Name) {
105 OS <<
"\t.cc_top " << Name <<
".function," << Name <<
'\n';
108 void XCoreTargetAsmStreamer::emitCCBottomData(
StringRef Name) {
109 OS <<
"\t.cc_bottom " << Name <<
".data\n";
112 void XCoreTargetAsmStreamer::emitCCBottomFunction(
StringRef Name) {
113 OS <<
"\t.cc_bottom " << Name <<
".function\n";
121 return new XCoreTargetAsmStreamer(S, OS);
~XCoreTargetStreamer() override
static MCSubtargetInfo * createXCoreMCSubtargetInfo(const Triple &TT, StringRef CPU, StringRef FS)
LLVM_ATTRIBUTE_NORETURN void report_fatal_error(Error Err, bool gen_crash_diag=true)
Report a serious error, calling any installed error handler.
Target specific streamer interface.
void LLVMInitializeXCoreTargetMC()
static void RegisterMCInstPrinter(Target &T, Target::MCInstPrinterCtorTy Fn)
RegisterMCInstPrinter - Register a MCInstPrinter implementation for the given target.
static void RegisterAsmTargetStreamer(Target &T, Target::AsmTargetStreamerCtorTy Fn)
static MCInstPrinter * createXCoreMCInstPrinter(const Triple &T, unsigned SyntaxVariant, const MCAsmInfo &MAI, const MCInstrInfo &MII, const MCRegisterInfo &MRI)
static MCInstrInfo * createXCoreMCInstrInfo()
void addInitialFrameState(const MCCFIInstruction &Inst)
MCRegisterInfo base class - We assume that the target defines a static array of MCRegisterDesc object...
This class is intended to be used as a base class for asm properties and features specific to the tar...
Streaming machine code generation interface.
unsigned const MachineRegisterInfo * MRI
static MCCFIInstruction createDefCfa(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...
Interface to description of machine instruction set.
static MCRegisterInfo * createXCoreMCRegisterInfo(const Triple &TT)
static GCMetadataPrinterRegistry::Add< ErlangGCPrinter > X("erlang","erlang-compatible garbage collector")
static void registerMCAdjustCodeGenOpts(Target &T, Target::MCAdjustCodeGenOptsFnTy Fn)
static MCAsmInfo * createXCoreMCAsmInfo(const MCRegisterInfo &MRI, const Triple &TT)
static void RegisterMCSubtargetInfo(Target &T, Target::MCSubtargetInfoCtorFnTy Fn)
RegisterMCSubtargetInfo - Register a MCSubtargetInfo implementation for the given target...
Triple - Helper class for working with autoconf configuration names.
Target & getTheXCoreTarget()
static MCTargetStreamer * createTargetAsmStreamer(MCStreamer &S, formatted_raw_ostream &OS, MCInstPrinter *InstPrint, bool isVerboseAsm)
static void RegisterMCRegInfo(Target &T, Target::MCRegInfoCtorFnTy Fn)
RegisterMCRegInfo - Register a MCRegisterInfo implementation for the given target.
RegisterMCAsmInfoFn - Helper template for registering a target assembly info implementation.
XCoreTargetStreamer(MCStreamer &S)
This is an instance of a target assembly language printer that converts an MCInst to valid target ass...
static void adjustCodeGenOpts(const Triple &TT, Reloc::Model RM, CodeModel::Model &CM)
static void RegisterMCInstrInfo(Target &T, Target::MCInstrInfoCtorFnTy Fn)
RegisterMCInstrInfo - Register a MCInstrInfo implementation for the given target. ...
MCSubtargetInfo - Generic base class for all target subtargets.
This file contains the declaration of the XCoreInstPrinter class, which is used to print XCore MCInst...
StringRef - Represent a constant reference to a string, i.e.