[clang] [AMDGPU] Support the OpenCL generic addrspace feature by default (PR #137636)

Shilei Tian via cfe-commits cfe-commits at lists.llvm.org
Mon Apr 28 08:10:16 PDT 2025


================
@@ -146,3 +146,8 @@
 #pragma OPENCL EXTENSION cl_khr_subgroups: enable
 // expected-warning at -1{{unsupported OpenCL extension 'cl_khr_subgroups' - ignoring}}
 
+#ifdef __opencl_c_generic_address_space
+#error "Incorrect __opencl_c_generic_address_space define"
----------------
shiltian wrote:

I personally think the error message is confusing…

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


More information about the cfe-commits mailing list