[clang] [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
Tue May 6 08:50:37 PDT 2025


================
@@ -4899,6 +4899,238 @@ void CGOpenMPRuntime::emitSingleReductionCombiner(CodeGenFunction &CGF,
   }
 }
 
+void CGOpenMPRuntime::emitPrivateReduction(
----------------
alexey-bataev wrote:

1. Add the comments, describing the logic of the function.
2. How does it differ from the regular reductions codegen? Can you try to unify the logic to reduce the maintenance cost?

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


More information about the cfe-commits mailing list