[clang] [OpenCL] Add missing OpenCL 3.0 features to OpenCLExtensions.def; revert header-only macros (PR #168016)

Sven van Haastregt via cfe-commits cfe-commits at lists.llvm.org
Tue Nov 18 00:46:36 PST 2025


================
@@ -78,10 +78,55 @@ OPENCL_EXTENSION(cl_khr_depth_images, true, 120)
 OPENCL_EXTENSION(cl_khr_gl_msaa_sharing,true, 120)
 
 // OpenCL 2.0.
+OPENCL_EXTENSION(cl_ext_float_atomics, true, 200)
+OPENCL_EXTENSION(cl_khr_extended_bit_ops, true, 200)
+OPENCL_EXTENSION(cl_khr_integer_dot_product, true, 200)
+OPENCL_EXTENSION(cl_khr_kernel_clock, true, 200)
 OPENCL_EXTENSION(cl_khr_mipmap_image, true, 200)
 OPENCL_EXTENSION(cl_khr_mipmap_image_writes, true, 200)
 OPENCL_EXTENSION(cl_khr_srgb_image_writes, true, 200)
+OPENCL_EXTENSION(cl_khr_subgroup_ballot, true, 200)
+OPENCL_EXTENSION(cl_khr_subgroup_clustered_reduce, true, 200)
+OPENCL_EXTENSION(cl_khr_subgroup_extended_types, true, 200)
+OPENCL_EXTENSION(cl_khr_subgroup_non_uniform_arithmetic, true, 200)
+OPENCL_EXTENSION(cl_khr_subgroup_non_uniform_vote, true, 200)
+OPENCL_EXTENSION(cl_khr_subgroup_rotate, true, 200)
+OPENCL_EXTENSION(cl_khr_subgroup_shuffle_relative, true, 200)
+OPENCL_EXTENSION(cl_khr_subgroup_shuffle, true, 200)
----------------
svenvh wrote:

These new additions should not have their "pragma" argument set to `true` I think; the pragma is only for backwards compatibility of (really) old extensions.

https://github.com/llvm/llvm-project/pull/168016


More information about the cfe-commits mailing list