<table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Issue</th>
<td>
<a href=https://github.com/llvm/llvm-project/issues/150274>150274</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>
[HLSL][RootSignature] Add support for `rootsig-define` compiler flag
</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 the DXC `rootsig-define` compiler option.
The behaviour should follow the specification [here](https://github.com/llvm/wg-hlsl/blob/main/proposals/0029-root-signature-driver-options.md#option--rootsig-define).
AC:
- [ ] Implement the `rootsig-define` driver option in `clang-dxc`
- [ ] Implement `fdx-rootsignature-define` driver option in `clang` and `cc1`
- [ ] Update `ParseDeclCXX.cpp` to only parse the root signature denoted with `rootsig-define`
- [ ] Update `ParseDeclCXX.cpp` to only parse a root signature if it will be used
</pre>
<img width="1" height="1" alt="" src="http://email.email.llvm.org/o/eJycU09vmzAU_zSPi0XkGAzhwCFthDaph2ntpF6N_QBvBlu2SdpvP5kmm1R1qrQTMn7v90_-iRD0uCC2wO-AMb30aLQExoCfMrHGyfr2-jPrrXptnyYdiA5hRRK9kL8C0bMzOOMS9TKSOCE5Pd8TqKi3NgY95goHvSBUlEg7O23QE-uitssO6BHo8WlC0uMkztqunoTJrkaRwRpjLxtccCj1oKVIOwT43YQegZ-AHaYYXYDiCKwD1o06Tmu_k3YG1hlzTp_LmE8mGGBdb2wPrJuFXoB1zltngzABWEcpa_KkNk9ZiLh6zJXXZ_T5m9CwmxWw4u2Q5--MseZq5HifpNBjnkQS4Cfy9RbNZuTDTN6IrokQvaQpacQy5upFQkX_gQcVHdTLTcpN9Oeo6VIsajvL_Xv8H06JuAn9JnzAE0pz__y8k86lvWiJXcwrceluc5ToyR9-onCxERW56Dh96Pa_ycR7Kj0QHclFG0N6JGtAlam2UE3RiAzbfc0L1uwrWmRTWwqsq6Ksm0MxNPLAhapKpGw47HvOKllnumWUcVqzYl-zqix2yAdksqyHvpdUFQ2UFGehzS49qp31Y7YVoN1zyuoyM6JHE64N-vLw-HCtj2_TfN6vY4CSGh1i-IsQdTRb67YFfgJ-993a-HhzmBI6KkXC6pz1kQzWf1KqwYgxW71pP2_Fpst5-xNlBNZtblITrobOLfsdAAD__x3JVUY">