[clang] [openmp] [OpenMP 6.0 ]Codegen for Reduction over private variables with reduction clause (PR #134709)

Alexey Bataev via cfe-commits cfe-commits at lists.llvm.org
Fri May 23 04:09:51 PDT 2025


================
@@ -5748,7 +5752,8 @@ void CodeGenFunction::EmitOMPScanDirective(const OMPScanDirective &S) {
       }
       CGM.getOpenMPRuntime().emitReduction(
           *this, ParentDir.getEndLoc(), Privates, LHSs, RHSs, ReductionOps,
-          {/*WithNowait=*/true, /*SimpleReduction=*/true, OMPD_simd});
+          {/*WithNowait=*/true, /*SimpleReduction=*/true,
+           /*IsPrivateVarReduction*/ {false}, OMPD_simd});
----------------
alexey-bataev wrote:

```suggestion
           /*IsPrivateVarReduction=*/{}, OMPD_simd});
```


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


More information about the cfe-commits mailing list