This revision was landed with ongoing or failed builds.
This revision was automatically updated to reflect the committed changes.
Closed by commit rG81600160b3f9: [OpenCL] Change default standard version to
CL1.2 (authored by Anastasia).
Herald added a subscriber: ldrumm.
Herald added a project: c
Anastasia added inline comments.
Comment at: clang/test/Parser/opencl-atomics-cl20.cl:7
-#if defined(__OPENCL_CPP_VERSION__) || __OPENCL_C_VERSION__ >= CL_VERSION_1_2
+#if defined(__OPENCL_CPP_VERSION__) || __OPENCL_C_VERSION__ >= CL_VERSION_2_0
#define LANG_VER_OK
---
azabaznov added inline comments.
Comment at: clang/test/Parser/opencl-atomics-cl20.cl:7
-#if defined(__OPENCL_CPP_VERSION__) || __OPENCL_C_VERSION__ >= CL_VERSION_1_2
+#if defined(__OPENCL_CPP_VERSION__) || __OPENCL_C_VERSION__ >= CL_VERSION_2_0
#define LANG_VER_OK
---
svenvh accepted this revision.
svenvh added inline comments.
This revision is now accepted and ready to land.
Comment at: clang/test/CodeGenOpenCL/spir_version.cl:2
+// RUN: %clang_cc1 %s -triple "spir-unknown-unknown" -emit-llvm -o -
-cl-std=CL1.0 | FileCheck %s --check-prefix=
Anastasia added inline comments.
Comment at: clang/test/CodeGenOpenCL/spir_version.cl:2
+// RUN: %clang_cc1 %s -triple "spir-unknown-unknown" -emit-llvm -o -
-cl-std=CL1.0 | FileCheck %s --check-prefix=CHECK-SPIR-CL10
// RUN: %clang_cc1 %s -triple "spir-unknown-unknown" -emit-l
svenvh added a comment.
LGTM, just a small question.
Comment at: clang/test/CodeGenOpenCL/spir_version.cl:2
+// RUN: %clang_cc1 %s -triple "spir-unknown-unknown" -emit-llvm -o -
-cl-std=CL1.0 | FileCheck %s --check-prefix=CHECK-SPIR-CL10
// RUN: %clang_cc1 %s -triple "spir-un
Anastasia created this revision.
Anastasia added reviewers: svenvh, azabaznov.
Herald added subscribers: ebevhan, yaxunl.
Anastasia requested review of this revision.
As suggested in RFC:
https://lists.llvm.org/pipermail/cfe-dev/2021-June/068318.html set default
version OpenCL C to 1.2. This me