[clang] [SPIR-V] Add hlsl_private address space for HLSL/SPIR-V (PR #122103)

Matt Arsenault via cfe-commits cfe-commits at lists.llvm.org
Wed Jan 8 06:58:09 PST 2025


================
@@ -83,6 +84,7 @@ const LangASMap AMDGPUTargetInfo::AMDGPUDefIsPrivMap = {
     llvm::AMDGPUAS::FLAT_ADDRESS, // ptr32_uptr
     llvm::AMDGPUAS::FLAT_ADDRESS, // ptr64
     llvm::AMDGPUAS::FLAT_ADDRESS, // hlsl_groupshared
+    llvm::AMDGPUAS::FLAT_ADDRESS, // hlsl_private
----------------
arsenm wrote:

Probably should use PRIVATE_ADDRESS. It will at least fail in a way that makes it somewhat obvious what the issue is 

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


More information about the cfe-commits mailing list