LLVM  16.0.0git
Macros | Functions
CSKYMCTargetDesc.cpp File Reference
#include "CSKYMCTargetDesc.h"
#include "CSKYAsmBackend.h"
#include "CSKYELFStreamer.h"
#include "CSKYInstPrinter.h"
#include "CSKYMCAsmInfo.h"
#include "CSKYMCCodeEmitter.h"
#include "CSKYTargetStreamer.h"
#include "TargetInfo/CSKYTargetInfo.h"
#include "llvm/MC/MCAssembler.h"
#include "llvm/MC/MCInstrAnalysis.h"
#include "llvm/MC/MCInstrInfo.h"
#include "llvm/MC/MCRegisterInfo.h"
#include "llvm/MC/MCSubtargetInfo.h"
#include "llvm/MC/TargetRegistry.h"
#include "CSKYGenInstrInfo.inc"
#include "CSKYGenRegisterInfo.inc"
#include "CSKYGenSubtargetInfo.inc"
Include dependency graph for CSKYMCTargetDesc.cpp:

Go to the source code of this file.

Macros

#define GET_INSTRINFO_MC_DESC
 This file provides CSKY specific target descriptions. More...
 
#define ENABLE_INSTR_PREDICATE_VERIFIER
 
#define GET_REGINFO_MC_DESC
 
#define GET_SUBTARGETINFO_MC_DESC
 

Functions

static MCAsmInfocreateCSKYMCAsmInfo (const MCRegisterInfo &MRI, const Triple &TT, const MCTargetOptions &Options)
 
static MCInstrInfocreateCSKYMCInstrInfo ()
 
static MCInstPrintercreateCSKYMCInstPrinter (const Triple &T, unsigned SyntaxVariant, const MCAsmInfo &MAI, const MCInstrInfo &MII, const MCRegisterInfo &MRI)
 
static MCRegisterInfocreateCSKYMCRegisterInfo (const Triple &TT)
 
static MCSubtargetInfocreateCSKYMCSubtargetInfo (const Triple &TT, StringRef CPU, StringRef FS)
 
static MCTargetStreamercreateCSKYObjectTargetStreamer (MCStreamer &S, const MCSubtargetInfo &STI)
 
static MCStreamercreateELFStreamer (const Triple &T, MCContext &Ctx, std::unique_ptr< MCAsmBackend > &&MAB, std::unique_ptr< MCObjectWriter > &&OW, std::unique_ptr< MCCodeEmitter > &&Emitter, bool RelaxAll)
 
static MCTargetStreamercreateCSKYAsmTargetStreamer (MCStreamer &S, formatted_raw_ostream &OS, MCInstPrinter *InstPrinter, bool isVerboseAsm)
 
static MCTargetStreamercreateCSKYNullTargetStreamer (MCStreamer &S)
 
static MCInstrAnalysiscreateCSKYInstrAnalysis (const MCInstrInfo *Info)
 
LLVM_EXTERNAL_VISIBILITY void LLVMInitializeCSKYTargetMC ()
 

Macro Definition Documentation

◆ ENABLE_INSTR_PREDICATE_VERIFIER

#define ENABLE_INSTR_PREDICATE_VERIFIER

Definition at line 29 of file CSKYMCTargetDesc.cpp.

◆ GET_INSTRINFO_MC_DESC

#define GET_INSTRINFO_MC_DESC

This file provides CSKY specific target descriptions.

Definition at line 28 of file CSKYMCTargetDesc.cpp.

◆ GET_REGINFO_MC_DESC

#define GET_REGINFO_MC_DESC

Definition at line 32 of file CSKYMCTargetDesc.cpp.

◆ GET_SUBTARGETINFO_MC_DESC

#define GET_SUBTARGETINFO_MC_DESC

Definition at line 35 of file CSKYMCTargetDesc.cpp.

Function Documentation

◆ createCSKYAsmTargetStreamer()

static MCTargetStreamer* createCSKYAsmTargetStreamer ( MCStreamer S,
formatted_raw_ostream OS,
MCInstPrinter InstPrinter,
bool  isVerboseAsm 
)
static

Definition at line 101 of file CSKYMCTargetDesc.cpp.

References S.

Referenced by LLVMInitializeCSKYTargetMC().

◆ createCSKYInstrAnalysis()

static MCInstrAnalysis* createCSKYInstrAnalysis ( const MCInstrInfo Info)
static

Definition at line 151 of file CSKYMCTargetDesc.cpp.

References Info.

Referenced by LLVMInitializeCSKYTargetMC().

◆ createCSKYMCAsmInfo()

static MCAsmInfo* createCSKYMCAsmInfo ( const MCRegisterInfo MRI,
const Triple TT,
const MCTargetOptions Options 
)
static

◆ createCSKYMCInstPrinter()

static MCInstPrinter* createCSKYMCInstPrinter ( const Triple T,
unsigned  SyntaxVariant,
const MCAsmInfo MAI,
const MCInstrInfo MII,
const MCRegisterInfo MRI 
)
static

Definition at line 58 of file CSKYMCTargetDesc.cpp.

References MRI.

Referenced by LLVMInitializeCSKYTargetMC().

◆ createCSKYMCInstrInfo()

static MCInstrInfo* createCSKYMCInstrInfo ( )
static

Definition at line 52 of file CSKYMCTargetDesc.cpp.

References Info.

Referenced by LLVMInitializeCSKYTargetMC().

◆ createCSKYMCRegisterInfo()

static MCRegisterInfo* createCSKYMCRegisterInfo ( const Triple TT)
static

Definition at line 66 of file CSKYMCTargetDesc.cpp.

References Info.

Referenced by LLVMInitializeCSKYTargetMC().

◆ createCSKYMCSubtargetInfo()

static MCSubtargetInfo* createCSKYMCSubtargetInfo ( const Triple TT,
StringRef  CPU,
StringRef  FS 
)
static

Definition at line 72 of file CSKYMCTargetDesc.cpp.

References llvm::X86AS::FS.

Referenced by LLVMInitializeCSKYTargetMC().

◆ createCSKYNullTargetStreamer()

static MCTargetStreamer* createCSKYNullTargetStreamer ( MCStreamer S)
static

Definition at line 108 of file CSKYMCTargetDesc.cpp.

References S.

Referenced by LLVMInitializeCSKYTargetMC().

◆ createCSKYObjectTargetStreamer()

static MCTargetStreamer* createCSKYObjectTargetStreamer ( MCStreamer S,
const MCSubtargetInfo STI 
)
static

Definition at line 81 of file CSKYMCTargetDesc.cpp.

References llvm::MCSubtargetInfo::getTargetTriple(), and S.

Referenced by LLVMInitializeCSKYTargetMC().

◆ createELFStreamer()

static MCStreamer* createELFStreamer ( const Triple T,
MCContext Ctx,
std::unique_ptr< MCAsmBackend > &&  MAB,
std::unique_ptr< MCObjectWriter > &&  OW,
std::unique_ptr< MCCodeEmitter > &&  Emitter,
bool  RelaxAll 
)
static

Definition at line 88 of file CSKYMCTargetDesc.cpp.

References Emitter, move, and S.

◆ LLVMInitializeCSKYTargetMC()

LLVM_EXTERNAL_VISIBILITY void LLVMInitializeCSKYTargetMC ( )