31#define GET_INSTRINFO_MC_DESC
32#define ENABLE_INSTR_PREDICATE_VERIFIER
33#include "XCoreGenInstrInfo.inc"
35#define GET_SUBTARGETINFO_MC_DESC
36#include "XCoreGenSubtargetInfo.inc"
38#define GET_REGINFO_MC_DESC
39#include "XCoreGenRegisterInfo.inc"
43 InitXCoreMCInstrInfo(
X);
49 InitXCoreMCRegisterInfo(
X, XCore::LR);
55 return createXCoreMCSubtargetInfoImpl(TT, CPU, CPU, FS);
71 unsigned SyntaxVariant,
98XCoreTargetAsmStreamer::XCoreTargetAsmStreamer(
MCStreamer &S,
103 OS <<
"\t.cc_top " <<
Name <<
".data," <<
Name <<
'\n';
106void XCoreTargetAsmStreamer::emitCCTopFunction(
StringRef Name) {
107 OS <<
"\t.cc_top " <<
Name <<
".function," <<
Name <<
'\n';
110void XCoreTargetAsmStreamer::emitCCBottomData(
StringRef Name) {
111 OS <<
"\t.cc_bottom " <<
Name <<
".data\n";
114void XCoreTargetAsmStreamer::emitCCBottomFunction(
StringRef Name) {
115 OS <<
"\t.cc_bottom " <<
Name <<
".function\n";
121 return new XCoreTargetAsmStreamer(S,
OS);
unsigned const MachineRegisterInfo * MRI
static MCTargetStreamer * createTargetAsmStreamer(MCStreamer &S, formatted_raw_ostream &OS, MCInstPrinter *InstPrint)
#define LLVM_EXTERNAL_VISIBILITY
static GCMetadataPrinterRegistry::Add< ErlangGCPrinter > X("erlang", "erlang-compatible garbage collector")
static MCTargetStreamer * createNullTargetStreamer(MCStreamer &S)
This file contains the declaration of the XCoreInstPrinter class, which is used to print XCore MCInst...
LLVM_EXTERNAL_VISIBILITY void LLVMInitializeXCoreTargetMC()
static MCSubtargetInfo * createXCoreMCSubtargetInfo(const Triple &TT, StringRef CPU, StringRef FS)
static MCAsmInfo * createXCoreMCAsmInfo(const MCRegisterInfo &MRI, const Triple &TT, const MCTargetOptions &Options)
static MCInstrInfo * createXCoreMCInstrInfo()
static MCRegisterInfo * createXCoreMCRegisterInfo(const Triple &TT)
static MCInstPrinter * createXCoreMCInstPrinter(const Triple &T, unsigned SyntaxVariant, const MCAsmInfo &MAI, const MCInstrInfo &MII, const MCRegisterInfo &MRI)
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.
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...
Streaming machine code generation interface.
Generic base class for all target subtargets.
Target specific streamer interface.
StringRef - Represent a constant reference to a string, i.e.
Triple - Helper class for working with autoconf configuration names.
XCoreTargetStreamer(MCStreamer &S)
~XCoreTargetStreamer() override
This is an optimization pass for GlobalISel generic memory operations.
Target & getTheXCoreTarget()
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 RegisterMCSubtargetInfo(Target &T, Target::MCSubtargetInfoCtorFnTy Fn)
RegisterMCSubtargetInfo - Register a MCSubtargetInfo implementation for the given target.
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)