[flang-commits] [clang] [flang] [llvm] [mlir] [OpenMP][flang] Add initial support for by-ref reductions on the GPU (PR #165714)

Kareem Ergawy via flang-commits flang-commits at lists.llvm.org
Wed Nov 5 05:20:34 PST 2025


================
@@ -3641,15 +3719,21 @@ OpenMPIRBuilder::InsertPointOrErrorTy OpenMPIRBuilder::createReductionsGPU(
     Value *ElemPtr = Builder.CreateInBoundsGEP(
         RedArrayTy, ReductionList,
         {ConstantInt::get(IndexTy, 0), ConstantInt::get(IndexTy, En.index())});
+
+    auto *PrviateVar = RI.PrivateVariable;
----------------
ergawy wrote:

Done.

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


More information about the flang-commits mailing list