[flang-commits] [flang] [flang][Lower] Add lowering to SYNC ALL, SYNC MEMORY and SYNC IMAGES to PRIF (PR #154166)

Jean-Didier PAILLEUX via flang-commits flang-commits at lists.llvm.org
Tue Sep 9 01:17:43 PDT 2025


================
@@ -1119,6 +1119,15 @@ class FirConverter : public Fortran::lower::AbstractConverter {
     return currentFunctionUnit;
   }
 
+  void checkCoarrayEnabled() override final {
+    if (!getFoldingContext().languageFeatures().IsEnabled(
+            Fortran::common::LanguageFeature::Coarray))
+      fir::emitFatalError(
+          getCurrentLocation(),
+          "Multi-image features are disabled, use '-fcoarray' to enable.",
----------------
JDPailleux wrote:

Why not for this change. Just one question: does the sentence suggest that in the future (when everything is managed) lowering to PRIF will always be enabled even without `-fcoarray`?

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


More information about the flang-commits mailing list