#include "MCTargetDesc/XCoreMCTargetDesc.h"
#include "MCTargetDesc/XCoreInstPrinter.h"
#include "MCTargetDesc/XCoreMCAsmInfo.h"
#include "TargetInfo/XCoreTargetInfo.h"
#include "XCoreTargetStreamer.h"
#include "llvm/ADT/StringRef.h"
#include "llvm/MC/MCDwarf.h"
#include "llvm/MC/MCInstrInfo.h"
#include "llvm/MC/MCRegisterInfo.h"
#include "llvm/MC/MCSubtargetInfo.h"
#include "llvm/MC/TargetRegistry.h"
#include "llvm/Support/CodeGen.h"
#include "llvm/Support/ErrorHandling.h"
#include "llvm/Support/FormattedStream.h"
#include "llvm/Support/raw_ostream.h"
usingnamespacellvm;
#define GET_INSTRINFO_MC_DESC
#define ENABLE_INSTR_PREDICATE_VERIFIER
#include "XCoreGenInstrInfo.inc"
#define GET_SUBTARGETINFO_MC_DESC
#include "XCoreGenSubtargetInfo.inc"
#define GET_REGINFO_MC_DESC
#include "XCoreGenRegisterInfo.inc"
static MCInstrInfo *createXCoreMCInstrInfo() { … }
static MCRegisterInfo *createXCoreMCRegisterInfo(const Triple &TT) { … }
static MCSubtargetInfo *
createXCoreMCSubtargetInfo(const Triple &TT, StringRef CPU, StringRef FS) { … }
static MCAsmInfo *createXCoreMCAsmInfo(const MCRegisterInfo &MRI,
const Triple &TT,
const MCTargetOptions &Options) { … }
static MCInstPrinter *createXCoreMCInstPrinter(const Triple &T,
unsigned SyntaxVariant,
const MCAsmInfo &MAI,
const MCInstrInfo &MII,
const MCRegisterInfo &MRI) { … }
XCoreTargetStreamer::XCoreTargetStreamer(MCStreamer &S) : … { … }
XCoreTargetStreamer::~XCoreTargetStreamer() = default;
namespace {
class XCoreTargetAsmStreamer : public XCoreTargetStreamer { … };
}
XCoreTargetAsmStreamer::XCoreTargetAsmStreamer(MCStreamer &S,
formatted_raw_ostream &OS)
: … { … }
void XCoreTargetAsmStreamer::emitCCTopData(StringRef Name) { … }
void XCoreTargetAsmStreamer::emitCCTopFunction(StringRef Name) { … }
void XCoreTargetAsmStreamer::emitCCBottomData(StringRef Name) { … }
void XCoreTargetAsmStreamer::emitCCBottomFunction(StringRef Name) { … }
static MCTargetStreamer *createTargetAsmStreamer(MCStreamer &S,
formatted_raw_ostream &OS,
MCInstPrinter *InstPrint) { … }
static MCTargetStreamer *createNullTargetStreamer(MCStreamer &S) { … }
extern "C" LLVM_EXTERNAL_VISIBILITY void LLVMInitializeXCoreTargetMC() { … }