[llvm-branch-commits] [clang] [HLSL] Introduce address space `hlsl_constant(2)` for constant buffer declarations (PR #123411)
Tex Riddell via llvm-branch-commits
llvm-branch-commits at lists.llvm.org
Fri Jan 17 16:14:05 PST 2025
================
@@ -42,6 +42,7 @@ static const unsigned DirectXAddrSpaceMap[] = {
0, // ptr32_uptr
0, // ptr64
3, // hlsl_groupshared
+ 2, // hlsl_constant
----------------
tex3d wrote:
I'm surprised we neither use the `LangASMap` type for this array, nor static_assert that the size is the same, to prevent these from getting out-of-sync. Does the assignment of this array pointer to `LangASMap *` cause a compilation failure which can be used to enforce map updates when address spaces are added?
https://github.com/llvm/llvm-project/pull/123411
More information about the llvm-branch-commits
mailing list