summaryrefslogtreecommitdiff
path: root/clang/lib/Frontend/InitPreprocessor.cpp
diff options
context:
space:
mode:
authordklochkov-intel <denis.klochkov@intel.com>2024-12-05 19:16:45 +0100
committerGitHub <noreply@github.com>2024-12-05 10:16:45 -0800
commit6b0785390d02193d81d8db7fb12279ffa4651afe (patch)
tree3b8b821b9671943f52168cef4416d1dfc52f1ae4 /clang/lib/Frontend/InitPreprocessor.cpp
parent8ab2730c0a09f16324dd7aa76e9792fe70df35c9 (diff)
[SYCL] Change SYCL version according to standard (#114790)
Version of SYCL was changed according to the latest agreement: The lower 2 digits are not formally specified, but we plan to use these to identify the month in which we submit the specification for ratification, which is similar to the C++ macro __cplusplus. Since the SYCL 2020 specification was submitted for ratification in December of 2020, the macro's value is now 202012 for SYCL 2020. see PR for details https://github.com/KhronosGroup/SYCL-Docs/pull/634
Diffstat (limited to 'clang/lib/Frontend/InitPreprocessor.cpp')
-rw-r--r--clang/lib/Frontend/InitPreprocessor.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/lib/Frontend/InitPreprocessor.cpp b/clang/lib/Frontend/InitPreprocessor.cpp
index 9b611bfcc9e6..e20feedb840b 100644
--- a/clang/lib/Frontend/InitPreprocessor.cpp
+++ b/clang/lib/Frontend/InitPreprocessor.cpp
@@ -587,7 +587,7 @@ static void InitializeStandardPredefinedMacros(const TargetInfo &TI,
if (LangOpts.getSYCLVersion() == LangOptions::SYCL_2017)
Builder.defineMacro("CL_SYCL_LANGUAGE_VERSION", "121");
else if (LangOpts.getSYCLVersion() == LangOptions::SYCL_2020)
- Builder.defineMacro("SYCL_LANGUAGE_VERSION", "202001");
+ Builder.defineMacro("SYCL_LANGUAGE_VERSION", "202012L");
}
// Not "standard" per se, but available even with the -undef flag.