[clang] [Clang][RISCV] Record the LMUL in RVV fixed-length data vector kinds (PR #237845)
Craig Topper via cfe-commits
cfe-commits at lists.llvm.org
Mon Nov 2 08:54:58 PST 2026
================
@@ -750,8 +750,18 @@ void JSONNodeDumper::VisitVectorType(const VectorType *VT) {
case VectorKind::SveFixedLengthPredicate:
JOS.attribute("vectorKind", "fixed-length sve predicate vector");
break;
- case VectorKind::RVVFixedLengthData:
- JOS.attribute("vectorKind", "fixed-length rvv data vector");
+ case VectorKind::RVVFixedLengthData_MF8:
+ case VectorKind::RVVFixedLengthData_MF4:
+ case VectorKind::RVVFixedLengthData_MF2:
+ case VectorKind::RVVFixedLengthData_M1:
+ case VectorKind::RVVFixedLengthData_M2:
+ case VectorKind::RVVFixedLengthData_M4:
+ case VectorKind::RVVFixedLengthData_M8:
+ JOS.attribute("vectorKind",
+ "fixed-length rvv data vector lmul " +
+ getRVVFixedLengthDataLMulString(VT->getVectorKind(),
+ /*MF=*/false)
----------------
topperc wrote:
Can we print mf8, mf4, etc. instead of 1/8, 1/4 etc. to remove the MF parameter?
https://github.com/llvm/llvm-project/pull/237845
More information about the cfe-commits
mailing list