LLVM  12.0.0git
Macros | Functions
RISCVMCTargetDesc.cpp File Reference
#include "RISCVMCTargetDesc.h"
#include "RISCVELFStreamer.h"
#include "RISCVInstPrinter.h"
#include "RISCVMCAsmInfo.h"
#include "RISCVTargetStreamer.h"
#include "TargetInfo/RISCVTargetInfo.h"
#include "Utils/RISCVBaseInfo.h"
#include "llvm/ADT/STLExtras.h"
#include "llvm/CodeGen/Register.h"
#include "llvm/MC/MCAsmInfo.h"
#include "llvm/MC/MCInstrAnalysis.h"
#include "llvm/MC/MCInstrInfo.h"
#include "llvm/MC/MCRegisterInfo.h"
#include "llvm/MC/MCStreamer.h"
#include "llvm/MC/MCSubtargetInfo.h"
#include "llvm/Support/ErrorHandling.h"
#include "llvm/Support/TargetRegistry.h"
#include "RISCVGenInstrInfo.inc"
#include "RISCVGenRegisterInfo.inc"
#include "RISCVGenSubtargetInfo.inc"
Include dependency graph for RISCVMCTargetDesc.cpp:

Go to the source code of this file.

Macros

#define GET_INSTRINFO_MC_DESC
 This file provides RISCV-specific target descriptions. More...
 
#define GET_REGINFO_MC_DESC
 
#define GET_SUBTARGETINFO_MC_DESC
 

Functions

static MCInstrInfocreateRISCVMCInstrInfo ()
 
static MCRegisterInfocreateRISCVMCRegisterInfo (const Triple &TT)
 
static MCAsmInfocreateRISCVMCAsmInfo (const MCRegisterInfo &MRI, const Triple &TT, const MCTargetOptions &Options)
 
static MCSubtargetInfocreateRISCVMCSubtargetInfo (const Triple &TT, StringRef CPU, StringRef FS)
 
static MCInstPrintercreateRISCVMCInstPrinter (const Triple &T, unsigned SyntaxVariant, const MCAsmInfo &MAI, const MCInstrInfo &MII, const MCRegisterInfo &MRI)
 
static MCTargetStreamercreateRISCVObjectTargetStreamer (MCStreamer &S, const MCSubtargetInfo &STI)
 
static MCTargetStreamercreateRISCVAsmTargetStreamer (MCStreamer &S, formatted_raw_ostream &OS, MCInstPrinter *InstPrint, bool isVerboseAsm)
 
static MCTargetStreamercreateRISCVNullTargetStreamer (MCStreamer &S)
 
static MCInstrAnalysiscreateRISCVInstrAnalysis (const MCInstrInfo *Info)
 
LLVM_EXTERNAL_VISIBILITY void LLVMInitializeRISCVTargetMC ()
 

Macro Definition Documentation

◆ GET_INSTRINFO_MC_DESC

#define GET_INSTRINFO_MC_DESC

This file provides RISCV-specific target descriptions.

Definition at line 31 of file RISCVMCTargetDesc.cpp.

◆ GET_REGINFO_MC_DESC

#define GET_REGINFO_MC_DESC

Definition at line 34 of file RISCVMCTargetDesc.cpp.

◆ GET_SUBTARGETINFO_MC_DESC

#define GET_SUBTARGETINFO_MC_DESC

Definition at line 37 of file RISCVMCTargetDesc.cpp.

Function Documentation

◆ createRISCVAsmTargetStreamer()

static MCTargetStreamer* createRISCVAsmTargetStreamer ( MCStreamer S,
formatted_raw_ostream OS,
MCInstPrinter InstPrint,
bool  isVerboseAsm 
)
static

Definition at line 90 of file RISCVMCTargetDesc.cpp.

Referenced by LLVMInitializeRISCVTargetMC().

◆ createRISCVInstrAnalysis()

static MCInstrAnalysis* createRISCVInstrAnalysis ( const MCInstrInfo Info)
static

Definition at line 136 of file RISCVMCTargetDesc.cpp.

Referenced by LLVMInitializeRISCVTargetMC().

◆ createRISCVMCAsmInfo()

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

◆ createRISCVMCInstPrinter()

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

Definition at line 74 of file RISCVMCTargetDesc.cpp.

Referenced by LLVMInitializeRISCVTargetMC().

◆ createRISCVMCInstrInfo()

static MCInstrInfo* createRISCVMCInstrInfo ( )
static

Definition at line 42 of file RISCVMCTargetDesc.cpp.

References X.

Referenced by LLVMInitializeRISCVTargetMC().

◆ createRISCVMCRegisterInfo()

static MCRegisterInfo* createRISCVMCRegisterInfo ( const Triple TT)
static

Definition at line 48 of file RISCVMCTargetDesc.cpp.

References X.

Referenced by LLVMInitializeRISCVTargetMC().

◆ createRISCVMCSubtargetInfo()

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

Definition at line 66 of file RISCVMCTargetDesc.cpp.

References llvm::Triple::isArch64Bit().

Referenced by LLVMInitializeRISCVTargetMC().

◆ createRISCVNullTargetStreamer()

static MCTargetStreamer* createRISCVNullTargetStreamer ( MCStreamer S)
static

◆ createRISCVObjectTargetStreamer()

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

◆ LLVMInitializeRISCVTargetMC()

LLVM_EXTERNAL_VISIBILITY void LLVMInitializeRISCVTargetMC ( )