[flang-commits] [flang] [flang][semantics][openacc] Allow collapse clauses on do concurrent (PR #192488)
Razvan Lupusoru via flang-commits
flang-commits at lists.llvm.org
Thu Apr 16 11:45:33 PDT 2026
================
@@ -1414,6 +1415,13 @@ static void privatizeIv(
builder.setInsertionPointToStart(builder.getAllocaBlock());
ivValue = builder.createTemporaryAlloc(loc, ivTy, toStringRef(sym.name()));
builder.restoreInsertionPoint(insPt);
+ // Register an hlfir.declare so that remapDataOperandSymbols can find this
+ // locally-scoped IV and remap it to the privatized copy inside the
+ // acc.loop region. Without this, the symbolMap lookup in
+ // remapDataOperandSymbols fails because the DO CONCURRENT body (which
+ // normally binds the IV) has not been lowered yet at this point.
+ Fortran::lower::genDeclareSymbol(converter, converter.getSymbolMap(), sym,
----------------
razvanlupusoru wrote:
What happens in the non-do-concurrent case after this call relative to the existing hlfir.declare symbol created?
https://github.com/llvm/llvm-project/pull/192488
More information about the flang-commits
mailing list