Issue 146393
Summary [NFC][HLSL] Move resource range logic from `SemaHLSL` to `RootSignatureValidations`
Labels HLSL
Assignees inbelic
Reporter inbelic
    This issue tracks the work to abstract out the logic of detecting resource range overlap from `SemaHLSL` into the `RootSignatureValidations` library.

This logic includes the detection of if the `ResourceClass`, `space` and `visibility` are overlapping and thus the underlying ranges overlap contained in the `handleHLSLRootSignatureDecl` function [here](https://github.com/llvm/llvm-project/blob/de7c2f29405ff08a91a34bc0f152cfa1cd0d9801/clang/lib/Sema/SemaHLSL.cpp#L1080).

This is a non-functional change, but it will require a slight change to the `RangeInfo` structure such that each `RangeInfo` can be mapped back to its `RootElement`. The proposed solution is to use an `Index` on each `RangeInfo` that will retain this.

AC:
- [ ] Update `RangeInfo` to have an `Index` field that can be used to map back to its relevant diagnostic information
- [ ] Move the validation logic from `SemaHLSL` to `RootSignatureValidations`
- [ ] Update `SemaHLSL` to use the new interface for the validations
_______________________________________________
llvm-bugs mailing list
llvm-bugs@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs

Reply via email to