[flang-commits] [flang] [flang] Add reduction semantics to fir.do_loop (PR #93934)

Valentin Clement バレンタイン クレメン via flang-commits flang-commits at lists.llvm.org
Mon Jun 3 13:59:40 PDT 2024


================
@@ -2138,9 +2138,11 @@ def fir_DoLoopOp : region_Op<"do_loop",
     Index:$lowerBound,
     Index:$upperBound,
     Index:$step,
+    Variadic<AnyType>:$reduceOperands,
     Variadic<AnyType>:$initArgs,
----------------
clementval wrote:

```suggestion
    Variadic<AnyType>:$initArgs,
    Variadic<AnyType>:$reduceOperands,
```

initArgs is more related to the control operands so maybe it's better to keep them together. 

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


More information about the flang-commits mailing list