[llvm] [RISCV] Initial codegen support for zvqdotq extension (PR #137039)

Philip Reames via llvm-commits llvm-commits at lists.llvm.org
Thu May 8 14:28:00 PDT 2025


================
@@ -6971,7 +6971,7 @@ static bool hasPassthruOp(unsigned Opcode) {
          Opcode <= RISCVISD::LAST_STRICTFP_OPCODE &&
          "not a RISC-V target specific op");
   static_assert(
-      RISCVISD::LAST_VL_VECTOR_OP - RISCVISD::FIRST_VL_VECTOR_OP == 134 &&
+      RISCVISD::LAST_VL_VECTOR_OP - RISCVISD::FIRST_VL_VECTOR_OP == 139 &&
       RISCVISD::LAST_STRICTFP_OPCODE - RISCVISD::FIRST_STRICTFP_OPCODE == 21 &&
       "adding target specific op should update this function");
   if (Opcode >= RISCVISD::ADD_VL && Opcode <= RISCVISD::VFMAX_VL)
----------------
preames wrote:

The routines hasPassthruOp and hasMaskOp are only used by lowerToScalableOp and lowerVPOp.  These new nodes don't go through either of those, and thus the result is a don't care.  Honestly, the code structure of these routines could use some cleanup, but it's not a problem with the patch.  

https://github.com/llvm/llvm-project/pull/137039


More information about the llvm-commits mailing list