LLVM 22.0.0git
RISCVInsertVSETVLI.cpp File Reference

Go to the source code of this file.

Macros

#define DEBUG_TYPE   "riscv-insert-vsetvli"
#define RISCV_INSERT_VSETVLI_NAME   "RISC-V Insert VSETVLI pass"

Functions

 STATISTIC (NumInsertedVSETVL, "Number of VSETVL inst inserted")
 STATISTIC (NumCoalescedVSETVL, "Number of VSETVL inst coalesced")
 INITIALIZE_PASS (RISCVInsertVSETVLI, DEBUG_TYPE, RISCV_INSERT_VSETVLI_NAME, false, false) void RISCVInsertVSETVLI
static VSETVLIInfo adjustIncoming (const VSETVLIInfo &PrevInfo, const VSETVLIInfo &NewInfo, DemandedFields &Demanded)

Variables

static cl::opt< boolEnsureWholeVectorRegisterMoveValidVTYPE (DEBUG_TYPE "-whole-vector-register-move-valid-vtype", cl::Hidden, cl::desc("Insert vsetvlis before vmvNr.vs to ensure vtype is valid and " "vill is cleared"), cl::init(true))

Macro Definition Documentation

◆ DEBUG_TYPE

#define DEBUG_TYPE   "riscv-insert-vsetvli"

Definition at line 38 of file RISCVInsertVSETVLI.cpp.

◆ RISCV_INSERT_VSETVLI_NAME

#define RISCV_INSERT_VSETVLI_NAME   "RISC-V Insert VSETVLI pass"

Definition at line 39 of file RISCVInsertVSETVLI.cpp.

Referenced by INITIALIZE_PASS().

Function Documentation

◆ adjustIncoming()

VSETVLIInfo adjustIncoming ( const VSETVLIInfo & PrevInfo,
const VSETVLIInfo & NewInfo,
DemandedFields & Demanded )
static

Definition at line 1170 of file RISCVInsertVSETVLI.cpp.

References llvm::RISCVVType::getSameRatioLMUL(), and Info.

◆ INITIALIZE_PASS()

INITIALIZE_PASS ( RISCVInsertVSETVLI ,
DEBUG_TYPE ,
RISCV_INSERT_VSETVLI_NAME ,
false ,
false  )

Definition at line 914 of file RISCVInsertVSETVLI.cpp.

References DEBUG_TYPE, DefMI, if(), Info, and RISCV_INSERT_VSETVLI_NAME.

◆ STATISTIC() [1/2]

STATISTIC ( NumCoalescedVSETVL ,
"Number of VSETVL inst coalesced"  )

◆ STATISTIC() [2/2]

STATISTIC ( NumInsertedVSETVL ,
"Number of VSETVL inst inserted"  )

Variable Documentation

◆ EnsureWholeVectorRegisterMoveValidVTYPE

cl::opt< bool > EnsureWholeVectorRegisterMoveValidVTYPE(DEBUG_TYPE "-whole-vector-register-move-valid-vtype", cl::Hidden, cl::desc("Insert vsetvlis before vmvNr.vs to ensure vtype is valid and " "vill is cleared"), cl::init(true)) ( DEBUG_TYPE "-whole-vector-register-move-valid-vtype" ,
cl::Hidden ,
cl::desc("Insert vsetvlis before vmvNr.vs to ensure vtype is valid and " "vill is cleared") ,
cl::init(true)  )
static