[OpenCL] Add support of __opencl_c_3d_image_writes feature macro
authorAnton Zabaznov <anton.zabaznov@intel.com>
Fri, 30 Jul 2021 01:19:17 +0000 (04:19 +0300)
committerAnton Zabaznov <anton.zabaznov@intel.com>
Fri, 30 Jul 2021 01:54:28 +0000 (04:54 +0300)
commitf16a4fcbe510d17b3f361d446eaf223208ded2bd
tree8e9720e678f77841555aa740c6873a5371223aca
parentac2ffdef9cc8d152801ca87d81736fb1dec9cb88
[OpenCL] Add support of __opencl_c_3d_image_writes feature macro

This feature requires support of __opencl_c_images, so diagnostics for that is provided as well.
Also, ensure that cl_khr_3d_image_writes feature macro is set to the same value.

Reviewed By: Anastasia

Differential Revision: https://reviews.llvm.org/D106260
clang/include/clang/Basic/DiagnosticSemaKinds.td
clang/lib/Basic/OpenCLOptions.cpp
clang/lib/Basic/Targets/AMDGPU.h
clang/lib/Sema/SemaType.cpp
clang/test/Misc/opencl-c-3.0.incorrect_options.cl
clang/test/SemaOpenCL/unsupported-image.cl