LLVM 23.0.0git
RISCVQCRelaxMarking.cpp File Reference

Go to the source code of this file.

Macros

#define DEBUG_TYPE   "riscv-qc-relax-marking"
#define RISCV_QC_RELAX_MARKING_NAME   "RISC-V QC Relaxation Marking"

Functions

 STATISTIC (NumMarked, "Number of Loads/Stores Marked")
 INITIALIZE_PASS (RISCVQCRelaxMarking, DEBUG_TYPE, RISCV_QC_RELAX_MARKING_NAME, false, false) FunctionPass *llvm
 Returns an instance of the Make Compressible Optimization pass.
static bool isUImm7LSB000 (const MachineOperand &MO)
static bool isUImm2LSB0 (const MachineOperand &MO)
static bool isUImm2 (const MachineOperand &MO)
static bool isGPRC (const MachineOperand &MO)
static unsigned getQCMarkedOpcode (const MachineInstr &MI, const RISCVSubtarget &STI)

Macro Definition Documentation

◆ DEBUG_TYPE

#define DEBUG_TYPE   "riscv-qc-relax-marking"

Definition at line 45 of file RISCVQCRelaxMarking.cpp.

◆ RISCV_QC_RELAX_MARKING_NAME

#define RISCV_QC_RELAX_MARKING_NAME   "RISC-V QC Relaxation Marking"

Definition at line 46 of file RISCVQCRelaxMarking.cpp.

Referenced by INITIALIZE_PASS().

Function Documentation

◆ getQCMarkedOpcode()

unsigned getQCMarkedOpcode ( const MachineInstr & MI,
const RISCVSubtarget & STI )
static

◆ INITIALIZE_PASS()

INITIALIZE_PASS ( RISCVQCRelaxMarking ,
DEBUG_TYPE ,
RISCV_QC_RELAX_MARKING_NAME ,
false ,
false  )

Returns an instance of the Make Compressible Optimization pass.

Definition at line 66 of file RISCVQCRelaxMarking.cpp.

References llvm::createRISCVQCRelaxMarkingPass(), DEBUG_TYPE, and RISCV_QC_RELAX_MARKING_NAME.

◆ isGPRC()

bool isGPRC ( const MachineOperand & MO)
static

Definition at line 86 of file RISCVQCRelaxMarking.cpp.

References llvm::MachineOperand::getReg().

Referenced by getQCMarkedOpcode().

◆ isUImm2()

bool isUImm2 ( const MachineOperand & MO)
static

◆ isUImm2LSB0()

bool isUImm2LSB0 ( const MachineOperand & MO)
static

◆ isUImm7LSB000()

bool isUImm7LSB000 ( const MachineOperand & MO)
static

◆ STATISTIC()

STATISTIC ( NumMarked ,
"Number of Loads/Stores Marked"  )