[llvm] [VPlan] Add VPInst::getNumOperandsForOpcode, use to verify in ctor (NFC) (PR #142284)
via llvm-commits
llvm-commits at lists.llvm.org
Wed Jun 4 06:02:45 PDT 2025
================
@@ -967,6 +967,13 @@ class VPInstruction : public VPRecipeWithIRFlags,
/// value for lane \p Lane.
Value *generatePerLane(VPTransformState &State, const VPLane &Lane);
+#if !defined(NDEBUG)
+ /// Return the number of operands determined by the opcode of the
+ /// VPInstruction. Returns -1 if the number of operands cannot be determined
----------------
ayalz wrote:
```suggestion
/// VPInstruction. Returns -1u if the number of operands cannot be determined
```
https://github.com/llvm/llvm-project/pull/142284
More information about the llvm-commits
mailing list