[flang-commits] [flang] [flang] Add reductions for CUF Kernels: Lowering (PR #95184)
Valentin Clement バレンタイン クレメン via flang-commits
flang-commits at lists.llvm.org
Tue Jun 11 21:22:01 PDT 2024
================
@@ -260,9 +263,28 @@ def cuf_KernelOp : cuf_Op<"kernel", [AttrSizedOperandSegments,
( `,` `stream` `=` $stream^ )? `>` `>` `>`
custom<CUFKernelLoopControl>($region, $lowerbound, type($lowerbound),
$upperbound, type($upperbound), $step, type($step))
+ ( `reduce` `(` $reduceOperands^ `:` type($reduceOperands) `)` )?
+ ( `reduce_attrs` `(` $reduceAttrs^ `)` )?
----------------
clementval wrote:
Can we move this before the region? We don't have any operation that have operands printed after the region so it would feel a bit werid.
https://github.com/llvm/llvm-project/pull/95184
More information about the flang-commits
mailing list