[flang-commits] [flang] [mlir] [flang][OpenMP] Lower target in_reduction for host fallback (PR #199967)

Sairudra More via flang-commits flang-commits at lists.llvm.org
Wed Jun 24 02:28:51 PDT 2026


================
@@ -369,10 +369,39 @@ static LogicalResult checkImplementationStatus(Operation &op) {
     if (op.getHint())
       op.emitWarning("hint clause discarded");
   };
+  // omp.target implements the non-byref in_reduction form for the
+  // host-fallback path. The byref form is not implemented yet, and declare
+  // reductions that use a cleanup region or a two-argument (alloc) initializer
+  // are also not implemented. (omp.task / omp.taskloop in_reduction are checked
+  // separately via checkInReductionByref.)
----------------
Saieiei wrote:

Done. Removed the comment, and `omp.task` / `omp.taskloop.context` now call `checkInReduction` as well.

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


More information about the flang-commits mailing list