[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
Tue Jun 16 04:42:27 PDT 2026
================
@@ -0,0 +1,30 @@
+! RUN: bbc -emit-hlfir -fopenmp -fopenmp-version=50 -o - %s 2>&1 | FileCheck %s
+! RUN: %flang_fc1 -emit-hlfir -fopenmp -fopenmp-version=50 -o - %s 2>&1 | FileCheck %s
----------------
Saieiei wrote:
I added an end-to-end Flang → LLVM IR test for taskgroup task_reduction enclosing target in_reduction. This goes through %flang_fc1 -emit-llvm -fopenmp -fopenmp-version=50 and checks the full seam: __kmpc_taskred_init from the enclosing taskgroup, __kmpc_task_reduction_get_th_data(..., ptr null, ...) in the outlined target body, and the load/store through the returned private pointer.
https://github.com/llvm/llvm-project/pull/199967
More information about the llvm-branch-commits
mailing list