[Mlir-commits] [mlir] [mlir][OpenMP] Translate reductions on taskloop (PR #199670)

Sairudra More llvmlistbot at llvm.org
Thu May 28 08:46:07 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 =
----------------
Saieiei wrote:

Done, added a small helper for taskloop `reduction/in_reduction` declaration lookup and validation. It is used by both paths and keeps the existing diagnostics unchanged.

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


More information about the Mlir-commits mailing list