LLVM 19.0.0git
Macros | Functions | Variables
RISCVInsertVSETVLI.cpp File Reference
#include "RISCV.h"
#include "RISCVSubtarget.h"
#include "llvm/ADT/Statistic.h"
#include "llvm/CodeGen/LiveDebugVariables.h"
#include "llvm/CodeGen/LiveIntervals.h"
#include "llvm/CodeGen/LiveStacks.h"
#include "llvm/CodeGen/MachineFunctionPass.h"
#include <queue>

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"
 
#define RISCV_COALESCE_VSETVLI_NAME   "RISC-V Coalesce 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) VSETVLIInfo RISCVInsertVSETVLI
 
static VSETVLIInfo adjustIncoming (VSETVLIInfo PrevInfo, VSETVLIInfo NewInfo, DemandedFields &Demanded)
 

Variables

static cl::opt< boolDisableInsertVSETVLPHIOpt ("riscv-disable-insert-vsetvl-phi-opt", cl::init(false), cl::Hidden, cl::desc("Disable looking through phis when inserting vsetvlis."))
 

Macro Definition Documentation

◆ DEBUG_TYPE

#define DEBUG_TYPE   "riscv-insert-vsetvli"

Definition at line 37 of file RISCVInsertVSETVLI.cpp.

◆ RISCV_COALESCE_VSETVLI_NAME

#define RISCV_COALESCE_VSETVLI_NAME   "RISC-V Coalesce VSETVLI pass"

Definition at line 39 of file RISCVInsertVSETVLI.cpp.

◆ RISCV_INSERT_VSETVLI_NAME

#define RISCV_INSERT_VSETVLI_NAME   "RISC-V Insert VSETVLI pass"

Definition at line 38 of file RISCVInsertVSETVLI.cpp.

Function Documentation

◆ adjustIncoming()

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

Definition at line 1179 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 917 of file RISCVInsertVSETVLI.cpp.

References assert(), and MI.

◆ STATISTIC() [1/2]

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

◆ STATISTIC() [2/2]

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

Variable Documentation

◆ DisableInsertVSETVLPHIOpt

cl::opt< bool > DisableInsertVSETVLPHIOpt("riscv-disable-insert-vsetvl-phi-opt", cl::init(false), cl::Hidden, cl::desc("Disable looking through phis when inserting vsetvlis.")) ( "riscv-disable-insert-vsetvl-phi-opt"  ,
cl::init(false)  ,
cl::Hidden  ,
cl::desc("Disable looking through phis when inserting vsetvlis.")   
)
static