[clang] [llvm] [DirectX] Validate registers are bound to root signature (PR #146785)
Finn Plummer via cfe-commits
cfe-commits at lists.llvm.org
Thu Jul 17 11:05:12 PDT 2025
================
@@ -84,8 +128,150 @@ static void reportOverlappingBinding(Module &M, DXILResourceMap &DRM) {
}
}
+static void reportRegNotBound(Module &M,
+ llvm::hlsl::rootsig::RangeInfo Unbound) {
+ SmallString<128> Message;
+ raw_svector_ostream OS(Message);
+ OS << "register " << ResourceClassToString(Unbound.Class)
+ << " (space=" << Unbound.Space << ", register=" << Unbound.LowerBound
+ << ")"
+ << " is not defined in Root Signature";
----------------
inbelic wrote:
```suggestion
<< " does not have a binding in the Root Signature";
```
https://github.com/llvm/llvm-project/pull/146785
More information about the cfe-commits
mailing list