[llvm] [LV][EVL] Support in-loop reduction using tail folding with EVL. (PR #90184)

Alexey Bataev via llvm-commits llvm-commits at lists.llvm.org
Thu May 2 06:25:16 PDT 2024


================
@@ -92,6 +98,15 @@ class VectorBuilder {
   Value *createVectorInstruction(unsigned Opcode, Type *ReturnTy,
                                  ArrayRef<Value *> VecOpArray,
                                  const Twine &Name = Twine());
+
+  // Emit a VP reduction intrinsic call for recurrence \p Kind.
+  // \p Kind        The kind of recurrence
+  // \p ValTy       The type of operand which the reduction operation is
+  //                performed.
+  // \p VecOpArray  The operand list.
----------------
alexey-bataev wrote:

```suggestion
  /// Emit a VP reduction intrinsic call for recurrence \p Kind.
  /// \param Kind        The kind of recurrence
  /// \param ValTy       The type of operand which the reduction operation is
  ///                performed.
  /// \param VecOpArray  The operand list.
```

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


More information about the llvm-commits mailing list