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

Sairudra More via llvm-branch-commits llvm-branch-commits at lists.llvm.org
Mon Jun 8 09:31:55 PDT 2026


================
@@ -490,7 +490,11 @@ static LogicalResult checkImplementationStatus(Operation &op) {
       .Case([&](omp::TargetOp op) {
         checkAllocate(op, result);
         checkBare(op, result);
-        checkInReduction(op, result);
+        // in_reduction(byref(...)) on target is not implemented yet. Other
+        // unsupported in_reduction shapes (cleanup region, two-argument
+        // initializer, missing combiner) and the device-side / offload-entry
+        // cases are diagnosed inline in convertOmpTarget.
+        checkInReductionByref(op, result);
----------------
Saieiei wrote:

Done!
`checkInReductionByref` folded into `checkInReduction`

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


More information about the llvm-branch-commits mailing list