================
@@ -14,6 +14,12 @@
 #include "hip/hip_version.h"
 #endif // __has_include("hip/hip_version.h")
 
+#ifdef __SPIRV__
+#define __PRIVATE_AS __attribute__((address_space(0)))
----------------
arsenm wrote:

Using opencl_private is the simpler fix. You are calling code declared and 
defined in OpenCL, with the private address. Without a specific example of why 
this does not work out of the box, I insist you just go straight to using it 

https://github.com/llvm/llvm-project/pull/128360
_______________________________________________
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to