[llvm-branch-commits] [clang] [llvm] [HLSL][RootSignature] Implement validation of resource ranges for `RootDescriptors` (PR #140962)
Finn Plummer via llvm-branch-commits
llvm-branch-commits at lists.llvm.org
Fri Jun 6 11:14:32 PDT 2025
================
@@ -973,6 +1076,8 @@ void SemaHLSL::handleRootSignatureAttr(Decl *D, const ParsedAttr &AL) {
if (auto *SignatureDecl =
dyn_cast<HLSLRootSignatureDecl>(R.getFoundDecl())) {
// Perform validation of constructs here
+ if (handleRootSignatureDecl(SignatureDecl, AL.getLoc()))
+ return;
----------------
inbelic wrote:
In light of moving the semantic work from parsing here: https://github.com/llvm/llvm-project/issues/142834.
It seems we could hook the validation to actually occur there once per decl?
https://github.com/llvm/llvm-project/pull/140962
More information about the llvm-branch-commits
mailing list