[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 17:48:39 PDT 2024
================
@@ -227,7 +227,9 @@ mlir::LogicalResult cuf::KernelOp::verify() {
getLowerbound().size() != getStep().size())
return emitOpError(
"expect same number of values in lowerbound, upperbound and step");
-
+ if (getReduceOperands().size() != getReduceAttrs()->size())
+ return emitOpError("expect same number of values in reduce operands and "
+ "reduce attributes");
----------------
clementval wrote:
Can we add a verification that the attribute in the arrays are `ReduceAttr`
https://github.com/llvm/llvm-project/pull/95184
More information about the flang-commits
mailing list