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

    <tr>
        <th>Summary</th>
        <td>
            [DirectX] Implement Shader Flags Analysis for Max64UAVs
        </td>
    </tr>

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

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

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

<pre>
    Implement analysis to set the module-level flag `Max64UAVs`.  This flag is named `m_b64UAVs` in `dxc`

Set if number of UAVs used is > 8 - see [here](https://github.com/microsoft/DirectXShaderCompiler/blob/a023a95f73618e8ca1791147d3722a3e1ea7608f/lib/DXIL/DxilModule.cpp#L328).

This flag is set in the resulting DML Shader compilation.

AC:
Add tests to verify the flag is set.
</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJx8kktvnDAQxz-NuYwW-cHzwGETihQpOaWtcqtsPIAjg1e22WS_fQW7zePSC0b2zH9m_vOTIZhxQWxIfkfyNpFrnJxv1CS91G_y9ZIopy_Nw3yyOOMSQS7SXoIJEB0EjBAnhNnp1eLB4hktDFaOQAr6JN-L7NfxdyAFTQF-TiZc30yARc6ot6D5j_oIArNsV_q9JwUltCX0eP0-YwQzwLLOCj24AbYEWAPqTYuIH1DBAQIikPxuQo8kbwmvphhPgYgj4R3h3WjitKq0dzPh3Wx674IbIuFdazz28eV5khr9vZtPxqInvFPWKcI7SbmQdT6UomAVVr1kZc1YVmpRci4FMpRlQauB8M6aLaF9eXjcjndjn3Zf0v50Ilw8Cl4RXqdfJ_tmyuamWXZDPYbVRrOM0D49wrU16PfeZDRu-SZyvN-GvP5qDRFD3LdzRm-Gy673pUSa6EboWtQywYaVgmZlXpd5MjWiFFJzyhCrShZlXzLEvEbFaZWVtOaJaTjlGWOUsTwrWJb2TEhd1kpJqjTPKckoztLY1NrznDo_JiaEFRvGsjwXiZUKbdhJ43zBN9hfCecbeL7Zkg5qHQPJqDUhhk-ZaKLdEb0ti-QtfCJ586ezcgxw_Mfn4Dx8MJis3jb_AWKrdDsOJ-9esd_Q2PsLhHe3Ac4N_xsAAP__OUr_fw">