LLVM 22.0.0git
RISCVAsmParser.cpp File Reference

Go to the source code of this file.

Namespaces

namespace  llvm
 This is an optimization pass for GlobalISel generic memory operations.

Macros

#define DEBUG_TYPE   "riscv-asm-parser"
#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 convertFPR64ToFPR128 (MCRegister Reg)
static MCRegister convertVRToVRMx (const MCRegisterInfo &RI, MCRegister Reg, unsigned Kind)
bool isValidInsnFormat (StringRef Format, const MCSubtargetInfo &STI)
LLVM_ABI LLVM_EXTERNAL_VISIBILITY void LLVMInitializeRISCVAsmParser ()

Variables

static cl::opt< boolAddBuildAttributes ("riscv-add-build-attributes", cl::init(false))
const SubtargetFeatureKV llvm::RISCVFeatureKV [RISCV::NumSubtargetFeatures]

Macro Definition Documentation

◆ DEBUG_TYPE

#define DEBUG_TYPE   "riscv-asm-parser"

Definition at line 49 of file RISCVAsmParser.cpp.

◆ GET_ASSEMBLER_HEADER

#define GET_ASSEMBLER_HEADER

Definition at line 193 of file RISCVAsmParser.cpp.

◆ GET_MATCHER_IMPLEMENTATION

#define GET_MATCHER_IMPLEMENTATION

Definition at line 1290 of file RISCVAsmParser.cpp.

◆ GET_MNEMONIC_SPELL_CHECKER

#define GET_MNEMONIC_SPELL_CHECKER

Definition at line 1291 of file RISCVAsmParser.cpp.

◆ GET_OPERAND_DIAGNOSTIC_TYPES

#define GET_OPERAND_DIAGNOSTIC_TYPES

Definition at line 292 of file RISCVAsmParser.cpp.

◆ GET_REGISTER_MATCHER

#define GET_REGISTER_MATCHER

Definition at line 1288 of file RISCVAsmParser.cpp.

◆ GET_SUBTARGET_FEATURE_NAME

#define GET_SUBTARGET_FEATURE_NAME

Definition at line 1289 of file RISCVAsmParser.cpp.

Function Documentation

◆ convertFPR64ToFPR128()

MCRegister convertFPR64ToFPR128 ( MCRegister Reg)
static

Definition at line 1304 of file RISCVAsmParser.cpp.

References assert(), and Reg.

◆ convertFPR64ToFPR16()

MCRegister convertFPR64ToFPR16 ( MCRegister Reg)
static

Definition at line 1294 of file RISCVAsmParser.cpp.

References assert(), and Reg.

◆ convertFPR64ToFPR32()

MCRegister convertFPR64ToFPR32 ( MCRegister Reg)
static

Definition at line 1299 of file RISCVAsmParser.cpp.

References assert(), and Reg.

◆ convertVRToVRMx()

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

Definition at line 1309 of file RISCVAsmParser.cpp.

References llvm::MCRegisterInfo::getMatchingSuperReg(), and Reg.

◆ isValidInsnFormat()

◆ LLVMInitializeRISCVAsmParser()

◆ STATISTIC()

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

Variable Documentation

◆ AddBuildAttributes

cl::opt< bool > AddBuildAttributes("riscv-add-build-attributes", cl::init(false)) ( "riscv-add-build-attributes" ,
cl::init(false)  )
static