[clang] [Clang][OpenCL] Wrap image functions with the macro (PR #129177)

2025-02-27 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Victor Mustya (vmustya) Changes According to the OpenCL C spec, the image functions are optional. For OpenCL C 1.2, the image functions are guarded by the `__IMAGE_SUPPORT__` macro. For the OpenCL C 3.0 and later, the `__opencl_c_images` ma

[clang] [Clang][OpenCL] Wrap image functions with the macro (PR #129177)

2025-02-27 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-backend-x86 Author: Victor Mustya (vmustya) Changes According to the OpenCL C spec, the image functions are optional. For OpenCL C 1.2, the image functions are guarded by the `__IMAGE_SUPPORT__` macro. For the OpenCL C 3.0 and later, the `__opencl_c_imag

[clang] [Clang][OpenCL] Wrap image functions with the macro (PR #129177)

2025-02-27 Thread Victor Mustya via cfe-commits
https://github.com/vmustya created https://github.com/llvm/llvm-project/pull/129177 According to the OpenCL C spec, the image functions are optional. For OpenCL C 1.2, the image functions are guarded by the `__IMAGE_SUPPORT__` macro. For the OpenCL C 3.0 and later, the `__opencl_c_images` macro