[llvm] [VPlan] Implement VPExtendedReduction, VPMulAccumulateReductionRecipe and corresponding vplan transformations. (PR #137746)
Florian Hahn via llvm-commits
llvm-commits at lists.llvm.org
Wed May 7 13:44:54 PDT 2025
================
@@ -1231,11 +1252,22 @@ class VPWidenRecipe : public VPRecipeWithIRFlags, public VPIRMetadata {
: VPRecipeWithIRFlags(VPDefOpcode, Operands, I), VPIRMetadata(I),
Opcode(I.getOpcode()) {}
+ template <typename IterT>
+ VPWidenRecipe(unsigned VPDefOpcode, unsigned Opcode,
+ iterator_range<IterT> Operands, bool NUW, bool NSW, DebugLoc DL)
----------------
fhahn wrote:
```suggestion
VPWidenRecipe(unsigned VPDefOpcode, unsigned Opcode,
ArrayRef<VPValue *> Operands, bool NUW, bool NSW, DebugLoc DL)
```
on current main, using ArrayRef<> for operands should work.
https://github.com/llvm/llvm-project/pull/137746
More information about the llvm-commits
mailing list