[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 05:12:02 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:

If it acts like thread local storage, we don't have an implementation of that right now. So it would be none of these. PRIVATE_ADDRESS globals will just fail and nothing else has thread-local like behavior 

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


More information about the cfe-commits mailing list