[llvm-branch-commits] [flang] [flang][fir] Basic PFT to MLIR lowering for do concurrent locality specifiers (PR #138534)

Kareem Ergawy via llvm-branch-commits llvm-branch-commits at lists.llvm.org
Fri May 9 03:43:24 PDT 2025


================
@@ -2029,9 +2031,30 @@ class FirConverter : public Fortran::lower::AbstractConverter {
   void handleLocalitySpecs(const IncrementLoopInfo &info) {
     Fortran::semantics::SemanticsContext &semanticsContext =
         bridge.getSemanticsContext();
-    for (const Fortran::semantics::Symbol *sym : info.localSymList)
+    Fortran::lower::omp::DataSharingProcessor dsp(
+        *this, semanticsContext, getEval(),
+        /*useDelayedPrivatization=*/true, localSymbols);
+    fir::LocalitySpecifierOperands privateClauseOps;
+    auto doConcurrentLoopOp =
+        mlir::dyn_cast_if_present<fir::DoConcurrentLoopOp>(info.loopOp);
+    bool useDelayedPriv =
----------------
ergawy wrote:

Just to make sure I understand. Under what condition would the todo trigger? My plan to use the non-staging flag very soon (probably after merging this PR stack).

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


More information about the llvm-branch-commits mailing list