[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:43:28 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:

I guess with that in mind, it seems most consistent with the current compiler logic to predicate the declarations read out of module files with the command line flags present when read too. Otherwise now that I think about it, I should probably be guarding the code generation based on semantic info by whether OpenACC compilation is enabled.

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


More information about the flang-commits mailing list