File tree Expand file tree Collapse file tree 6 files changed +9
-9
lines changed Expand file tree Collapse file tree 6 files changed +9
-9
lines changed Original file line number Diff line number Diff line change @@ -128,7 +128,7 @@ std::string getClangFullCPPVersion() {
128128llvm::SmallVector<std::pair<llvm::StringRef, llvm::StringRef>, 2 >
129129getSYCLVersionMacros (const LangOptions &LangOpts) {
130130 if (LangOpts.getSYCLVersion () == LangOptions::SYCL_2020)
131- return {{" SYCL_LANGUAGE_VERSION" , " 202001 " }};
131+ return {{" SYCL_LANGUAGE_VERSION" , " 202012 " }};
132132 llvm_unreachable (" SYCL standard should be set" );
133133}
134134} // end namespace clang
Original file line number Diff line number Diff line change @@ -17,7 +17,7 @@ int main() {
1717 sycl::kernel_single_task<class first_kernel >([]() {});
1818}
1919// CHECK: #ifndef SYCL_LANGUAGE_VERSION
20- // CHECK-NEXT: #define SYCL_LANGUAGE_VERSION 202001
20+ // CHECK-NEXT: #define SYCL_LANGUAGE_VERSION 202012L
2121// CHECK-NEXT: #endif //SYCL_LANGUAGE_VERSION
2222
2323// CHECK-RANGE: #ifndef __SYCL_DISABLE_PARALLEL_FOR_RANGE_ROUNDING__
Original file line number Diff line number Diff line change 1616// CHECK-NOT:#define SYCL_EXTERNAL
1717// CHECK-NOT:#define __SYCL_ID_QUERIES_FIT_IN_INT__ 1
1818
19- // CHECK-SYCL-STD:#define SYCL_LANGUAGE_VERSION 202001
19+ // CHECK-SYCL-STD:#define SYCL_LANGUAGE_VERSION 202012L
2020
2121// CHECK-SYCL-STD:#define __SYCL_ID_QUERIES_FIT_IN_INT__ 1
2222
23- // CHECK-SYCL-STD-2020:#define SYCL_LANGUAGE_VERSION 202001
23+ // CHECK-SYCL-STD-2020:#define SYCL_LANGUAGE_VERSION 202012L
2424// CHECK-SYCL-STD-2020:#define __SYCL_ID_QUERIES_FIT_IN_INT__ 1
2525
2626// CHECK-SYCL-STD-DEVICE:#define __SYCL_DEVICE_ONLY__ 1
Original file line number Diff line number Diff line change @@ -141,7 +141,7 @@ using cl_double = double;
141141} // namespace opencl
142142
143143// Vector aliases are different between SYCL 1.2.1 and SYCL 2020
144- #if SYCL_LANGUAGE_VERSION >= 202001
144+ #if SYCL_LANGUAGE_VERSION >= 202012L
145145__SYCL_2020_MAKE_VECTOR_ALIASES_FOR_VECTOR_LENGTH (2 )
146146__SYCL_2020_MAKE_VECTOR_ALIASES_FOR_VECTOR_LENGTH(3 )
147147__SYCL_2020_MAKE_VECTOR_ALIASES_FOR_VECTOR_LENGTH(4 )
Original file line number Diff line number Diff line change 5757#endif // __SYCL_DEPRECATED
5858
5959#ifndef __SYCL2020_DEPRECATED
60- #if SYCL_LANGUAGE_VERSION >= 202001 && \
60+ #if SYCL_LANGUAGE_VERSION >= 202012L && \
6161 !defined (SYCL2020_DISABLE_DEPRECATION_WARNINGS)
6262#define __SYCL2020_DEPRECATED (message ) __SYCL_DEPRECATED(message)
6363#else
Original file line number Diff line number Diff line change 6868// 3300+ lines of code
6969
7070// SYCL_LANGUAGE_VERSION is 4 digit year followed by 2 digit revision
71- #if !SYCL_LANGUAGE_VERSION || SYCL_LANGUAGE_VERSION < 202001
71+ #if !SYCL_LANGUAGE_VERSION || SYCL_LANGUAGE_VERSION < 202012L
7272#define __SYCL_NONCONST_FUNCTOR__
7373#endif
7474
@@ -1139,7 +1139,7 @@ class __SYCL_EXPORT handler {
11391139 // Range rounding is supported only for newer SYCL standards.
11401140#if !defined(__SYCL_DISABLE_PARALLEL_FOR_RANGE_ROUNDING__) && \
11411141 !defined (DPCPP_HOST_DEVICE_OPENMP) && \
1142- !defined (DPCPP_HOST_DEVICE_PERF_NATIVE) && SYCL_LANGUAGE_VERSION >= 202001
1142+ !defined (DPCPP_HOST_DEVICE_PERF_NATIVE) && SYCL_LANGUAGE_VERSION >= 202012L
11431143 auto [RoundedRange, HasRoundedRange] = getRoundedRange (UserRange);
11441144 if (HasRoundedRange) {
11451145 using NameWT = typename detail::get_kernel_wrapper_name_t <NameT>::name;
@@ -1170,7 +1170,7 @@ class __SYCL_EXPORT handler {
11701170 } else
11711171#endif // !__SYCL_DISABLE_PARALLEL_FOR_RANGE_ROUNDING__ &&
11721172 // !DPCPP_HOST_DEVICE_OPENMP && !DPCPP_HOST_DEVICE_PERF_NATIVE &&
1173- // SYCL_LANGUAGE_VERSION >= 202001
1173+ // SYCL_LANGUAGE_VERSION >= 202012L
11741174 {
11751175 (void )UserRange;
11761176 (void )Props;
You can’t perform that action at this time.
0 commit comments