[flang-commits] [flang] [llvm] [flang][MIF] Adding lowering for EVENT POST/WAIT statements (PR #210283)
Dan Bonachea via flang-commits
flang-commits at lists.llvm.org
Wed Oct 7 11:47:51 PDT 2026
================
@@ -571,6 +594,21 @@ fir::GlobalOp Fortran::lower::defineGlobal(
fir::HasValueOp::create(b, loc, box);
});
}
+ } else if (Fortran::evaluate::IsCoarray(sym)) {
+ if (oeDetails && oeDetails->init()) {
+ auto expr = *oeDetails->init();
+ createGlobalInitialization(builder, global, [&](fir::FirOpBuilder &b) {
+ mlir::Value box =
+ Fortran::lower::genInitialDataTarget(converter, loc, symTy, expr);
+ fir::HasValueOp::create(b, loc, box);
+ });
----------------
bonachea wrote:
Thanks for the additional info!
We don't yet support explicit initialization of coarrays, and I think that's out-of-scope for this PR. Ideally the case of an explicit coarray initializer in a module would also hit a TODO, but IMHO the details of how that fails should not be a blocker for this PR.
https://github.com/llvm/llvm-project/pull/210283
More information about the flang-commits
mailing list