<table border="1" cellspacing="0" cellpadding="8">
    <tr>
        <th>Issue</th>
        <td>
            <a href=https://github.com/llvm/llvm-project/issues/119019>119019</a>
        </td>
    </tr>

    <tr>
        <th>Summary</th>
        <td>
            [HLSL] Semantic analysis of `HLSLRootSignature`
        </td>
    </tr>

    <tr>
      <th>Labels</th>
      <td>
            new issue
      </td>
    </tr>

    <tr>
      <th>Assignees</th>
      <td>
      </td>
    </tr>

    <tr>
      <th>Reporter</th>
      <td>
          inbelic
      </td>
    </tr>
</table>

<pre>
    This issue handles the semantic analysis of the parsed `HLSLRootSignature` attribute. This includes generating applicable diagnostics.

Semantic validation will follow the defined [semantic validation](https://github.com/llvm/wg-hlsl/blob/main/proposals/0002-root-signature-in-clang.md#validations-in-sema) and the additional specified validations [here](https://github.com/llvm/wg-hlsl/blob/main/proposals/0002-root-signature-in-clang.md#validations-in-sema).

AC:
- [ ] Update `handleHLSLRootSignature` to implement semantic validation of `HLSLRootSignature` in `SemaHLSL.cpp`
- [ ] Test correct diagnostics in `SemaHLSL/Semantics/RootSignatures.hlsl`
</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJzMk0FvpDgQhX-NuViNjGlI94FDZ1toDzltZ39AYVdDjYyNXCat_PuRSaIkM4nmOicOD7s-13sPmGn0iJ1o7kVzLmBNU4gd-QEdmWII9rl7nIglMa8oJ_DWIcs0oWScwScyEjy4ZyaW4boJC0RGK0Wr_n24PPwXQrrQ6CGtEUWrJKQUaVgTlvLlZm_capHliB4jJPKjhGVxZGBwKC3B6AMnMlwKdRLqdHkb_ASOLCQKXt7IOXkNzoXbxmDxSj5DNPf8---iOQt9mFJaWNQnoXuh-5HStA6lCbPQvXNP-XMbd5NjJ3Q_uDAI3c9AXuh-iWEJDI6F7pVSehdDSDt-e-WO_M448GM5W6Hr97mclcwj9FGCtxsqWEtZBCd5QUNXQvuBlfMbJoz4N0C_OnD6JxOo0y6zSdGc5f-LhYTZ85eIfOl8CpLmxeGMPskvbMkB-i415LOUrc9yaZZFtOoTwiNykibEiCZ9TM0vR4Xu3wKUN_FpEJfb5lpV2K62x_oIBXbVXV031f6g2mLqdNVclamgtao5qLo5Vqap6ruDag7XxmgoqNNK7yut2urY1Loth1bVA14PtdJ7AH0n9gpnIFdmu8oQx2KrVldVR1UdCwcDOt7qqLXH20vxhNa5nbHLh3bDOrLYK0ec-P2aRMltPd5e2Zzl5auCfrPfYo2u-3O2tvFLDD_QJKH7jS1v8RX-qdM_AwAA___xfG5m">