LLVM 20.0.0git
|
std::pair< unsigned, bool > llvm::RISCVVType::decodeVLMUL | ( | RISCVII::VLMUL | VLMUL | ) |
Definition at line 182 of file RISCVTargetParser.cpp.
References llvm_unreachable, llvm::RISCVII::LMUL_1, llvm::RISCVII::LMUL_2, llvm::RISCVII::LMUL_4, llvm::RISCVII::LMUL_8, llvm::RISCVII::LMUL_F2, llvm::RISCVII::LMUL_F4, and llvm::RISCVII::LMUL_F8.
Referenced by llvm::RISCVTargetLowering::computeKnownBitsForTargetNode(), llvm::RISCVInstrInfo::copyPhysRegVector(), getEMULEqualsEEWDivSEWTimesLMUL(), llvm::RISCVTargetLowering::getLMULCost(), getSEWLMULRatio(), llvm::RISCVTargetLowering::isLegalInterleavedAccessType(), printVType(), llvm::RISCVDAGToDAGISel::selectVLXSEG(), and llvm::RISCVDAGToDAGISel::selectVSXSEG().
Definition at line 115 of file RISCVTargetParser.h.
References assert().
Referenced by llvm::RISCVTargetLowering::computeKnownBitsForTargetNode(), computeKnownBitsFromOperator(), getSEW(), and llvm::RISCVDAGToDAGISel::selectVSETVLI().
|
inlinestatic |
Definition at line 109 of file RISCVTargetParser.h.
References assert(), isValidLMUL(), and llvm::Log2_32().
Referenced by getSameRatioLMUL(), and lowerGetVectorLength().
Definition at line 120 of file RISCVTargetParser.h.
References assert(), isValidSEW(), and llvm::Log2_32().
Referenced by encodeVTYPE(), lowerGetVectorLength(), and lowerVectorIntrinsicScalars().
unsigned llvm::RISCVVType::encodeVTYPE | ( | RISCVII::VLMUL | VLMUL, |
unsigned | SEW, | ||
bool | TailAgnostic, | ||
bool | MaskAgnostic | ||
) |
Definition at line 168 of file RISCVTargetParser.cpp.
References assert(), encodeSEW(), and isValidSEW().
Referenced by llvm::RISCVDAGToDAGISel::selectVSETVLI().
|
static |
Return EMUL = (EEW / SEW) * LMUL where EEW comes from Log2EEW and LMUL and SEW are from the TSFlags of MI.
Definition at line 157 of file RISCVVLOptimizer.cpp.
References decodeVLMUL(), llvm::RISCVII::getLMul(), llvm::RISCVII::getSEWOpNum(), and MI.
Referenced by getIntegerExtensionOperandInfo(), and getOperandInfo().
std::optional< RISCVII::VLMUL > llvm::RISCVVType::getSameRatioLMUL | ( | unsigned | SEW, |
RISCVII::VLMUL | VLMUL, | ||
unsigned | EEW | ||
) |
Definition at line 236 of file RISCVTargetParser.cpp.
References encodeLMUL(), getSEWLMULRatio(), and isValidLMUL().
Referenced by adjustIncoming(), and llvm::mca::getEEWAndEMUL().
Definition at line 125 of file RISCVTargetParser.h.
References decodeVSEW().
Referenced by llvm::mca::RISCVInstrumentManager::createInstruments(), isConvertibleToVMV_V_V(), printVType(), and llvm::RISCVInstPrinter::printVTypeI().
unsigned llvm::RISCVVType::getSEWLMULRatio | ( | unsigned | SEW, |
RISCVII::VLMUL | VLMul | ||
) |
Definition at line 223 of file RISCVTargetParser.cpp.
References assert(), and decodeVLMUL().
Referenced by computeKnownBitsFromOperator(), getSameRatioLMUL(), and llvm::RISCVDAGToDAGISel::selectVSETVLI().
|
inlinestatic |
Definition at line 101 of file RISCVTargetParser.h.
Referenced by llvm::mca::RISCVInstrumentManager::createInstruments(), isConvertibleToVMV_V_V(), printVType(), and llvm::RISCVInstPrinter::printVTypeI().
Definition at line 132 of file RISCVTargetParser.h.
Referenced by printVType().
Definition at line 130 of file RISCVTargetParser.h.
Referenced by isConvertibleToVMV_V_V(), and printVType().
Definition at line 94 of file RISCVTargetParser.h.
References llvm::isPowerOf2_32().
Referenced by encodeLMUL(), and getSameRatioLMUL().
Definition at line 89 of file RISCVTargetParser.h.
References llvm::isPowerOf2_32().
Referenced by llvm::RISCVInstrInfo::createMIROperandComment(), encodeSEW(), encodeVTYPE(), and llvm::RISCVInstrInfo::verifyInstruction().
void llvm::RISCVVType::printVType | ( | unsigned | VType, |
raw_ostream & | OS | ||
) |
Definition at line 198 of file RISCVTargetParser.cpp.
References decodeVLMUL(), getSEW(), getVLMUL(), isMaskAgnostic(), isTailAgnostic(), and OS.
Referenced by llvm::RISCVInstrInfo::createMIROperandComment(), and llvm::RISCVInstPrinter::printVTypeI().
|
static |
Return the RISCVII::VLMUL that is two times VLMul.
Precondition: VLMul is not LMUL_RESERVED or LMUL_8.
Definition at line 134 of file RISCVVLOptimizer.cpp.
References llvm_unreachable, llvm::RISCVII::LMUL_1, llvm::RISCVII::LMUL_2, llvm::RISCVII::LMUL_4, llvm::RISCVII::LMUL_8, llvm::RISCVII::LMUL_F2, llvm::RISCVII::LMUL_F4, and llvm::RISCVII::LMUL_F8.
Referenced by getOperandInfo().