[llvm] [HLSL] Add descriptor table metadata parsing (PR #142492)

Finn Plummer via llvm-commits llvm-commits at lists.llvm.org
Thu Jun 5 15:17:19 PDT 2025


================
@@ -236,11 +323,84 @@ static bool verifyRegisterValue(uint32_t RegisterValue) {
 // This Range is reserverved, therefore invalid, according to the spec
 // https://github.com/llvm/wg-hlsl/blob/main/proposals/0002-root-signature-in-clang.md#all-the-values-should-be-legal
 static bool verifyRegisterSpace(uint32_t RegisterSpace) {
-  return !(RegisterSpace >= 0xFFFFFFF0 && RegisterSpace <= 0xFFFFFFFF);
+  return !(RegisterSpace >= 0xFFFFFFF0 && RegisterSpace < 0xFFFFFFFF);
----------------
inbelic wrote:

I am not aware of when space can be -1? Can you elaborate.

I thought it was only the offset parameter (append) or the numDescriptors parameter (unbounded)

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


More information about the llvm-commits mailing list