Maetveis wrote: > I'd rather just fix clang. This is a workaround that shouldn't be necessary, > and seems to spread the knowledge of the dodgy > !__opencl_c_generic_address_space address space handling case to a new place
By fixing clang you mean the cast `(void [[clang::address_space(0)]] *)((void [[clang::opencl_generic]] *)ptr)` should compile in all language modes? Or change the `__builtin_amdgcn_is_(private|shared)` instrinsic to accept pointers in the default (language) address space instead of the target address space 0? https://github.com/llvm/llvm-project/pull/152314 _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits