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

    <tr>
        <th>Summary</th>
        <td>
            [HLSL][RootSignature] Add support for root signature as a target"
        </td>
    </tr>

    <tr>
      <th>Labels</th>
      <td>
            HLSL
      </td>
    </tr>

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

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

<pre>
    This issue tracks implementing DXC's ability to use a root signature versions as a target with a root signature as an entry point.

The behaviour should follow the specification [here](https://github.com/llvm/wg-hlsl/blob/main/proposals/0029-root-signature-driver-options.md#target-root-signature-version).

Current conflict to resolve in planning:

Currently root signature parsing is in the `Parse` library. So we will need to know which `RootSignature` to parse during parse logic, as this can't currently be invoked in `Sema`. To move forward we need to either: move rootsignatureparser to happen during sema, or, be able to determine the entry point at parse time.

AC:
- [ ] Update the `-T` and `-E` options in `clang-dxc`
- [ ] Update the `-T` and `-E` options in `clang` and `cc1`
- [ ] Still in planning
</pre>
<img width="1" height="1" alt="" src="http://email.email.llvm.org/o/eJykVEGPszYQ_TXmMiIyZiHhwCGbNOphD1WzlXo19gTcNTayh9D8-8osu91uK_XwXRIZPc-89-Z5ZIymd4gtq56ZEMZ1aI1iQrDqnMmZBh_a7WPWef1oXwcTwcQ4I1CQ6i2CGSeLIzoyrofz7ycm9hFkZ6yhB5CHOSJICN4TpF6S5oBwxxCNdxFkBAkkQ48Ei6Hh39CEcICOwgMmbxztGD8yfnwdEDoc5N34OUAc_Gw13Ly1fgEaEOKEytyMkmS8A1Y9DxiQVWcmDgPRFFl5ZOLCxKU3NMzdTvmRiYu19_S39Plgo2Xi0lnfMXEZpXFMXKbgJx-ljUxcOBdNnsjmn2RzHcwdQ-6n1DTuRs1E-a7uO3JzgIlm03OaQ0BHoLy7WaMoeRcwentHMA4mK50zrk-0v-Lt47thkwwxzSINyq1WsJr_IkNEVnOwpgsyPHZw9bAgLMZacIg6tXtzfoFlMGpIV371nq4fVdNV8mttBD2H1OD9YH2fEnNKg6KUDiUdE3sC9UmwSwru_g11YsRqfsVRsprv4NXD6O8INx8WGXRi9EEGDQ0YWHl8RySRnxrXziGhBjlN6D4YxVRXnMCH9NshyM5igmkkDKNxuPrxJUwgadNBZsRtFMfTu8t5ig2w6gy_TVoSfpiZvyY7pNPr4ad02Ca-6VNWuj7XfypW8x-u8wWjVPG94pXSBL8EJNNtqZuykRm2xb4qRVOVlciG9qlsGqxLVRbNjXd7hXovisOhKHRdyYJXmWkFFxXfi7I4iKYQO142Ra1ve1l05UEfkD1xHKWxu_RKdj702boJ2qLi4lBnVnZo47ZKfn65vmx7JLQJn3dzH9kTtyZS_LsCGbLr-lkvVGdWPf8zeNUZjlpDnKfJB0pJ-a8Nse0QJkQ2B9v-_wtfKU3B_4GKmLisQtKr3rTcW_FXAAAA__9Ura-Z">