[flang-commits] [flang] [flang][openacc] Allow open acc routines from other modules. (PR #136012)
Peter Klausler via flang-commits
flang-commits at lists.llvm.org
Mon Apr 28 10:14:07 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);
----------------
klausler wrote:
An important characteristic of directive-based language extensions (OpenACC, OpenMP) is that the source code remains valid when the directives are just treated as the comments that they are from Fortran's perspective. I don't see how a module compiled with OpenACC enabled would be invalid to a later non-OpenAcc compilation.
https://github.com/llvm/llvm-project/pull/136012
More information about the flang-commits
mailing list