Lines Matching defs:SEW
51 const llvm::StringRef RISCVSEWInstrument::DESC_NAME = "RISCV-SEW";
54 // Return true if not one of the valid SEW strings
63 assert(isDataValid(getData()) && "Cannot get SEW because invalid Data value");
142 unsigned SEW = RISCVVType::getSEW(VTypeI);
144 switch (SEW) {
158 llvm_unreachable("Cannot create instrument for SEW");
169 getEEWAndEMUL(unsigned Opcode, RISCVII::VLMUL LMUL, uint8_t SEW) {
202 auto EMUL = RISCVVType::getSameRatioLMUL(SEW, LMUL, EEW);
204 llvm_unreachable("Invalid SEW or LMUL for new ratio");
236 // Need LMUL or LMUL, SEW in order to override opcode. If no LMUL is provided,
245 // getBaseInfo works with (Opcode, LMUL, 0) if no SEW instrument,
246 // or (Opcode, LMUL, SEW) if SEW instrument is active, and depends on LMUL
247 // and SEW, or (Opcode, LMUL, 0) if does not depend on SEW.
248 uint8_t SEW = SI ? SI->getSEW() : 0;
253 auto [EEW, EMUL] = getEEWAndEMUL(Opcode, VLMUL, SEW);
256 // Check if it depends on LMUL and SEW
257 RVV = RISCVVInversePseudosTable::getBaseInfo(Opcode, LMUL, SEW);
269 << ", SEW=" << (SI ? SI->getData() : "Unspecified")
278 << ", SEW=" << (SI ? SI->getData() : "Unspecified")