diff options
author | erichkeane <ekeane@nvidia.com> | 2025-07-17 07:43:14 -0700 |
---|---|---|
committer | erichkeane <ekeane@nvidia.com> | 2025-07-17 09:12:36 -0700 |
commit | 011d38bdac95647a872a5faa339465e26535df35 (patch) | |
tree | d1672bf079660343769083ca93e3773422852e73 /clang/lib/Frontend/InitPreprocessor.cpp | |
parent | d97c224e8cbba9158ebda6f12f9a06b09534ae29 (diff) | |
download | llvm-011d38bdac95647a872a5faa339465e26535df35.zip llvm-011d38bdac95647a872a5faa339465e26535df35.tar.gz llvm-011d38bdac95647a872a5faa339465e26535df35.tar.bz2 |
[OpenACC] Update OpenACC macro, remove override macro
As we are now Sema-complete for OpenACC 3.4 (and thus have a conforming
implementation, in all modes), we can now set the _OPENACC macro
correctly.
Additionally, we remove the temporary 'override' functionality, which
was intended to allow people to experiment with this. We aren't having a
deprecation period as OpenACC support is still considered experimental.
Diffstat (limited to 'clang/lib/Frontend/InitPreprocessor.cpp')
-rw-r--r-- | clang/lib/Frontend/InitPreprocessor.cpp | 12 |
1 files changed, 2 insertions, 10 deletions
diff --git a/clang/lib/Frontend/InitPreprocessor.cpp b/clang/lib/Frontend/InitPreprocessor.cpp index 38b2e0c..382ccd6 100644 --- a/clang/lib/Frontend/InitPreprocessor.cpp +++ b/clang/lib/Frontend/InitPreprocessor.cpp @@ -639,16 +639,8 @@ static void InitializeStandardPredefinedMacros(const TargetInfo &TI, } } - if (LangOpts.OpenACC) { - // FIXME: When we have full support for OpenACC, we should set this to the - // version we support. Until then, set as '1' by default, but provide a - // temporary mechanism for users to override this so real-world examples can - // be tested against. - if (!LangOpts.OpenACCMacroOverride.empty()) - Builder.defineMacro("_OPENACC", LangOpts.OpenACCMacroOverride); - else - Builder.defineMacro("_OPENACC", "1"); - } + if (LangOpts.OpenACC) + Builder.defineMacro("_OPENACC", "202506"); } /// Initialize the predefined C++ language feature test macros defined in |