[flang-commits] [flang] [flang][openacc] Allow open acc routines from other modules. (PR #136012)

Andre Kuhlenschmidt via flang-commits flang-commits at lists.llvm.org
Mon Apr 28 10:04:25 PDT 2025


================
@@ -1387,6 +1394,7 @@ Scope *ModFileReader::Read(SourceName name, std::optional<bool> isIntrinsic,
   parser::Options options;
   options.isModuleFile = true;
   options.features.Enable(common::LanguageFeature::BackslashEscapes);
+  options.features.Enable(common::LanguageFeature::OpenACC);
----------------
akuhlens wrote:

The comment are inserted into the mod file by what command line options they are compiled with. Which I think is more appropriate than how the file is read, but I am not certain. I think if there is any incompatibility with using a module compiled with OpenACC from one compiled without it. Then we should create some version of these flags that error when we encounter an OpenACC construct, but ignoring OpenACC directives inside of the module file seems like a bad option.

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


More information about the flang-commits mailing list