[flang-commits] [flang] [flang][MIF] Adding common features related to coarray (PR #215576)

Jean-Didier PAILLEUX via flang-commits flang-commits at lists.llvm.org
Wed Aug 12 00:53:32 PDT 2026


================
@@ -402,11 +402,117 @@ class HlfirDesignatorBuilder {
 
   fir::FortranVariableOpInterface
   gen(const Fortran::evaluate::CoarrayRef &coarrayRef) {
-    TODO(getLoc(), "coarray: lowering a reference to a coarray object");
+    PartInfo partInfo;
+    mlir::Type resultType = visit(coarrayRef, partInfo);
+    return genDesignate(resultType, partInfo, coarrayRef);
----------------
JDPailleux wrote:

Yes, I understand, but in that case, restoring the TODO won't solve the issue of this code being shared between GET/PUT and Event PRs.
However, I can try to place the TODOs in the relevant locations for the GET and assignment.


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


More information about the flang-commits mailing list