LLVM  13.0.0git
Macros | Functions
RISCVAsmParser.cpp File Reference
#include "MCTargetDesc/RISCVAsmBackend.h"
#include "MCTargetDesc/RISCVBaseInfo.h"
#include "MCTargetDesc/RISCVInstPrinter.h"
#include "MCTargetDesc/RISCVMCExpr.h"
#include "MCTargetDesc/RISCVMCTargetDesc.h"
#include "MCTargetDesc/RISCVMatInt.h"
#include "MCTargetDesc/RISCVTargetStreamer.h"
#include "TargetInfo/RISCVTargetInfo.h"
#include "llvm/ADT/STLExtras.h"
#include "llvm/ADT/SmallBitVector.h"
#include "llvm/ADT/SmallString.h"
#include "llvm/ADT/SmallVector.h"
#include "llvm/ADT/Statistic.h"
#include "llvm/MC/MCAssembler.h"
#include "llvm/MC/MCContext.h"
#include "llvm/MC/MCExpr.h"
#include "llvm/MC/MCInst.h"
#include "llvm/MC/MCInstBuilder.h"
#include "llvm/MC/MCObjectFileInfo.h"
#include "llvm/MC/MCParser/MCAsmLexer.h"
#include "llvm/MC/MCParser/MCParsedAsmOperand.h"
#include "llvm/MC/MCParser/MCTargetAsmParser.h"
#include "llvm/MC/MCRegisterInfo.h"
#include "llvm/MC/MCStreamer.h"
#include "llvm/MC/MCSubtargetInfo.h"
#include "llvm/MC/MCValue.h"
#include "llvm/Support/Casting.h"
#include "llvm/Support/MathExtras.h"
#include "llvm/Support/RISCVAttributes.h"
#include "llvm/Support/TargetRegistry.h"
#include <limits>
#include "RISCVGenCompressInstEmitter.inc"
#include "RISCVGenAsmMatcher.inc"
Include dependency graph for RISCVAsmParser.cpp:

Go to the source code of this file.

Macros

#define DEBUG_TYPE   "riscv-asm-parser"
 
#define GEN_COMPRESS_INSTR
 
#define GET_ASSEMBLER_HEADER
 
#define GET_OPERAND_DIAGNOSTIC_TYPES
 
#define GET_REGISTER_MATCHER
 
#define GET_SUBTARGET_FEATURE_NAME
 
#define GET_MATCHER_IMPLEMENTATION
 
#define GET_MNEMONIC_SPELL_CHECKER
 

Functions

 STATISTIC (RISCVNumInstrsCompressed, "Number of RISC-V Compressed instructions emitted")
 
static MCRegister convertFPR64ToFPR16 (MCRegister Reg)
 
static MCRegister convertFPR64ToFPR32 (MCRegister Reg)
 
static MCRegister convertVRToVRMx (const MCRegisterInfo &RI, MCRegister Reg, unsigned Kind)
 
static std::string RISCVMnemonicSpellCheck (StringRef S, const FeatureBitset &FBS, unsigned VariantID=0)
 
static bool matchRegisterNameHelper (bool IsRV32E, MCRegister &RegNo, StringRef Name)
 
LLVM_EXTERNAL_VISIBILITY void LLVMInitializeRISCVAsmParser ()
 

Macro Definition Documentation

◆ DEBUG_TYPE

#define DEBUG_TYPE   "riscv-asm-parser"

Definition at line 44 of file RISCVAsmParser.cpp.

◆ GEN_COMPRESS_INSTR

#define GEN_COMPRESS_INSTR

Definition at line 47 of file RISCVAsmParser.cpp.

◆ GET_ASSEMBLER_HEADER

#define GET_ASSEMBLER_HEADER

Definition at line 151 of file RISCVAsmParser.cpp.

◆ GET_MATCHER_IMPLEMENTATION

#define GET_MATCHER_IMPLEMENTATION

Definition at line 890 of file RISCVAsmParser.cpp.

◆ GET_MNEMONIC_SPELL_CHECKER

#define GET_MNEMONIC_SPELL_CHECKER

Definition at line 891 of file RISCVAsmParser.cpp.

◆ GET_OPERAND_DIAGNOSTIC_TYPES

#define GET_OPERAND_DIAGNOSTIC_TYPES

Definition at line 220 of file RISCVAsmParser.cpp.

◆ GET_REGISTER_MATCHER

#define GET_REGISTER_MATCHER

Definition at line 888 of file RISCVAsmParser.cpp.

◆ GET_SUBTARGET_FEATURE_NAME

#define GET_SUBTARGET_FEATURE_NAME

Definition at line 889 of file RISCVAsmParser.cpp.

Function Documentation

◆ convertFPR64ToFPR16()

static MCRegister convertFPR64ToFPR16 ( MCRegister  Reg)
static

Definition at line 894 of file RISCVAsmParser.cpp.

◆ convertFPR64ToFPR32()

static MCRegister convertFPR64ToFPR32 ( MCRegister  Reg)
static

Definition at line 899 of file RISCVAsmParser.cpp.

◆ convertVRToVRMx()

static MCRegister convertVRToVRMx ( const MCRegisterInfo RI,
MCRegister  Reg,
unsigned  Kind 
)
static

Definition at line 904 of file RISCVAsmParser.cpp.

◆ LLVMInitializeRISCVAsmParser()

LLVM_EXTERNAL_VISIBILITY void LLVMInitializeRISCVAsmParser ( )

Definition at line 2699 of file RISCVAsmParser.cpp.

◆ matchRegisterNameHelper()

static bool matchRegisterNameHelper ( bool  IsRV32E,
MCRegister RegNo,
StringRef  Name 
)
static

Definition at line 1183 of file RISCVAsmParser.cpp.

◆ RISCVMnemonicSpellCheck()

static std::string RISCVMnemonicSpellCheck ( StringRef  S,
const FeatureBitset FBS,
unsigned  VariantID = 0 
)
static

◆ STATISTIC()

STATISTIC ( RISCVNumInstrsCompressed  ,
"Number of RISC-V Compressed instructions emitted"   
)