[clang] [clang][HIP] Make some math not not work with AMDGCN SPIR-V (PR #128360)

Matt Arsenault via cfe-commits cfe-commits at lists.llvm.org
Sat Feb 22 08:27:57 PST 2025


================
@@ -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:

Never use numbered address spaces. Unconditionally use __attribute__((opencl_private))

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


More information about the cfe-commits mailing list