[llvm] [VPlan] Implement interleaving as VPlan-to-VPlan transform. (PR #95842)

via llvm-commits llvm-commits at lists.llvm.org
Wed Sep 18 13:11:15 PDT 2024


================
@@ -1307,6 +1313,9 @@ class VPInstruction : public VPRecipeWithIRFlags {
   bool isFPMathOp() const;
 #endif
 
+  /// Return the unroll part for this VPInstruction.
+  unsigned getUnrollPartOperand() const;
----------------
ayalz wrote:

Sorry for the confusion: where `unsigned` is returned the method should be `getUnrollPart()`.
In order to retrieve the unroll part **operand**, a `getUnrollPartOperand()` can be used, instead of having the caller provide the (last) operand index. This could also return null if unroll part is zero, analogous to returning null for optional mask (full by default).

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


More information about the llvm-commits mailing list