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

Fraser Cormack via cfe-commits cfe-commits at lists.llvm.org
Mon Apr 28 09:16:38 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"
----------------
frasercrmck wrote:

Yeah I do too, but I was trying to go with the style of the other checks in this test. Or is it particularly this generic address space one, and the others are okay?

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


More information about the cfe-commits mailing list