================
@@ -17,6 +17,13 @@
 #endif //cl_khr_depth_images
 #endif //defined(__opencl_c_images)
 
+#if defined(cl_khr_depth_images) || defined(__OPENCL_CPP_VERSION__) ||         
\
+    (__OPENCL_C_VERSION__ >= CL_VERSION_2_0)
+// Internal feature macro to provide depth image builtins.
+#define __opencl_depth_image_builtins 1
+#endif // defined(cl_khr_depth_images) || defined(__OPENCL_CPP_VERSION__) ||
+       // (__OPENCL_C_VERSION__ >= CL_VERSION_2_0)
+
----------------
svenvh wrote:

I wonder if we should move this to `clang/lib/Headers/opencl-c-base.h` and 
whether any guards in `clang/lib/Sema/OpenCLBuiltins.td` will need updating?  
To avoid `opencl-c.h` and `OpenCLBuiltins.td` going out of sync.

https://github.com/llvm/llvm-project/pull/175120
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to