[flang] [llvm] [Flang] Adding lowering for the allocation and deallocation of coarrays (PR #182110)

Jean-Didier PAILLEUX via llvm-commits llvm-commits at lists.llvm.org
Wed Mar 4 06:55:57 PST 2026


================
@@ -1132,6 +1134,22 @@ static void instantiateLocal(Fortran::lower::AbstractConverter &converter,
       });
     }
   }
+  if (Fortran::evaluate::IsCoarray(var.getSymbol()) &&
+      !Fortran::semantics::IsAllocatableOrPointer(var.getSymbol()) &&
----------------
JDPailleux wrote:

I can add a function that calls mif::DeallocCoarrayOp at the end of a scope, as mentioned by Jean Perrier, yes.

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


More information about the llvm-commits mailing list