[flang-commits] [flang] [llvm] [flang][MIF] Adding lowering for EVENT POST/WAIT statements (PR #210283)
via flang-commits
flang-commits at lists.llvm.org
Sat Oct 10 23:35:41 PDT 2026
================
@@ -553,6 +553,13 @@ void Fortran::lower::genEventPostStatement(
if (auto coref{evaluate::ExtractCoarrayRef(eventExpr)}) {
cosubscripts =
Fortran::lower::getCosubscripts(converter, loc, coref.value());
+ if (coref->stat().has_value())
+ TODO(loc, "event post: event variable with STAT= specifier.");
+ if (coref->team().has_value())
+ TODO(loc,
+ "event post: event variable with TEAM= and TEAM_NUMBER= specifier.");
+ if (coref->notify().has_value())
+ TODO(loc, "event post: event variable with NOTIFY= specifier.");
----------------
MattPD wrote:
FWIW, the suggested `mlir::emitError` reports its error but doesn't stop lowering. With `fold.cpp` changed locally to keep NOTIFY=, compiling the program from #230633 prints this error. Compilation still succeeds, and the generated EVENT POST ignores NOTIFY=. `fir::emitFatalError` would stop lowering.
https://github.com/llvm/llvm-project/pull/210283
More information about the flang-commits
mailing list