|
LLVM 23.0.0git
|
#include "RISCV.h"#include "RISCVSubtarget.h"#include "RISCVVSETVLIInfoAnalysis.h"#include "llvm/ADT/PostOrderIterator.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" |
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< 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)) |
| #define DEBUG_TYPE "riscv-insert-vsetvli" |
Definition at line 40 of file RISCVInsertVSETVLI.cpp.
| #define RISCV_INSERT_VSETVLI_NAME "RISC-V Insert VSETVLI pass" |
Definition at line 41 of file RISCVInsertVSETVLI.cpp.
Referenced by INITIALIZE_PASS().
|
static |
Definition at line 296 of file RISCVInsertVSETVLI.cpp.
References llvm::RISCVVType::getSameRatioLMUL(), llvm::RISCV::VSETVLIInfo::getSEWLMULRatio(), Info, llvm::RISCV::VSETVLIInfo::isUnknown(), llvm::RISCV::VSETVLIInfo::isValid(), llvm::RISCV::DemandedFields::LMUL, llvm::RISCV::DemandedFields::LMULEqual, and llvm::RISCV::DemandedFields::SEWLMULRatio.
| INITIALIZE_PASS | ( | RISCVInsertVSETVLI | , |
| DEBUG_TYPE | , | ||
| RISCV_INSERT_VSETVLI_NAME | , | ||
| false | , | ||
| false | ) |
Definition at line 151 of file RISCVInsertVSETVLI.cpp.
References const, DEBUG_TYPE, DL, Info, MBB, and RISCV_INSERT_VSETVLI_NAME.
| STATISTIC | ( | NumCoalescedVSETVL | , |
| "Number of VSETVL inst coalesced" | ) |
| STATISTIC | ( | NumInsertedVSETVL | , |
| "Number of VSETVL inst inserted" | ) |
|
static |