[llvm-branch-commits] [clang] [HLSL] Introduce address space `hlsl_constant(2)` for constant buffer declarations (PR #123411)
Helena Kotas via llvm-branch-commits
llvm-branch-commits at lists.llvm.org
Tue Jan 21 11:03:04 PST 2025
================
@@ -83,6 +83,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_constant
----------------
hekota wrote:
Interesting. Sounds like it is useful to use `static const unsigned[]` then instead of `LangASMap` since it gives you a compile error when the dimension does not match.
https://github.com/llvm/llvm-project/pull/123411
More information about the llvm-branch-commits
mailing list