[llvm] [HLSL] Adding support for root descriptors in root signature metadata representation (PR #139781)
Justin Bogner via llvm-commits
llvm-commits at lists.llvm.org
Tue Jun 3 09:35:51 PDT 2025
================
@@ -157,6 +222,16 @@ static bool verifyVersion(uint32_t Version) {
return (Version == 1 || Version == 2);
}
+static bool verifyRegisterValue(uint32_t RegisterValue) {
+ return !(RegisterValue == 0xFFFFFFFF);
----------------
bogner wrote:
Clearer to use `std::numeric_limits` or `~0U` here. Also `!(x == y)` is harder to understand than `x != y`
https://github.com/llvm/llvm-project/pull/139781
More information about the llvm-commits
mailing list