[clang] [SYCL] change sycl version accrodnig to standard (PR #114790)

2024-11-19 Thread Greg Lueck via cfe-commits


@@ -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", "202012");

gmlueck wrote:

Thanks.  Seems like this is resolved now.

https://github.com/llvm/llvm-project/pull/114790
___
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits


[clang] [SYCL] Change SYCL version according to standard (PR #114790)

2024-11-26 Thread Greg Lueck via cfe-commits

https://github.com/gmlueck approved this pull request.


https://github.com/llvm/llvm-project/pull/114790
___
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits