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

CHANDRA GHALE via cfe-commits cfe-commits at lists.llvm.org
Fri May 23 09:12:28 PDT 2025


================
@@ -3943,7 +3946,8 @@ static void emitScanBasedDirective(
       PrivScope.Privatize();
       CGF.CGM.getOpenMPRuntime().emitReduction(
           CGF, S.getEndLoc(), Privates, LHSs, RHSs, ReductionOps,
-          {/*WithNowait=*/true, /*SimpleReduction=*/true, OMPD_unknown});
+          {/*WithNowait=*/true, /*SimpleReduction=*/true,
+           /*IsPrivateVarReduction*/ {false}, OMPD_unknown});
----------------
chandraghale wrote:

Done !!

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


More information about the cfe-commits mailing list