[Mlir-commits] [mlir] [mlir][OpenMP] Translate reductions on taskloop (PR #199670)
Tom Eccles
llvmlistbot at llvm.org
Thu May 28 03:10:39 PDT 2026
================
@@ -3417,6 +3443,90 @@ convertOmpTaskloopContextOp(omp::TaskloopContextOp contextOp,
// Set up inserttion point for call to createTaskloop()
builder.SetInsertPoint(taskloopStartBlock);
+ // Resolve and validate reduction / in_reduction declarations. Only the
+ // non-byref, single-init-arg, no-cleanup form is supported in this first
+ // cut; richer shapes have been rejected by checkImplementationStatus
+ // (byref) or are rejected here.
+ auto resolveRedDecls =
----------------
tblah wrote:
it would be nice to have shared helpers for this. For normal reductions there is `collectReductionDecls`. Maybe we need a similar helper for `in_reduction`.
https://github.com/llvm/llvm-project/pull/199670
More information about the Mlir-commits
mailing list