[flang-commits] [flang] [flang][Lower] Add lowering to SYNC ALL, SYNC MEMORY and SYNC IMAGES to PRIF (PR #154166)
Katherine Rasmussen via flang-commits
flang-commits at lists.llvm.org
Thu Aug 21 11:52:08 PDT 2025
================
@@ -48,6 +49,50 @@ static void genUnreachable(fir::FirOpBuilder &builder, mlir::Location loc) {
builder.setInsertionPointToStart(newBlock);
}
+// Check support of Multi-image features if -fcoarray is provided
+void checkCoarrayEnabled(Fortran::lower::AbstractConverter &converter,
+ mlir::Location loc) {
+ if (!converter.getFoldingContext().languageFeatures().IsEnabled(
+ Fortran::common::LanguageFeature::Coarray))
+ fir::emitFatalError(loc, "Coarrays disabled, use '-fcoarray' to enable.",
----------------
ktras wrote:
```suggestion
fir::emitFatalError(loc, "Multi-image features are disabled, use '-fcoarray' to enable.",
```
https://github.com/llvm/llvm-project/pull/154166
More information about the flang-commits
mailing list