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

    <tr>
        <th>Summary</th>
        <td>
            [DirectX] Don't emit `%dxilOpaquePtrReservedName` for resource globals
        </td>
    </tr>

    <tr>
      <th>Labels</th>
      <td>
            backend:DirectX
      </td>
    </tr>

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

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

<pre>
    When trying to run the basic shader, we're seeing issues loading it and `dxv` claims our binary is invalid. This appears to be because we're emitting `%dxilOpaquePtrReservedName` for the `undef` "pointer to a symbol" part of the resource metadata, rather than a pointer type.
</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJyMkk-P1DAMxT9NerG2StN_00MPC6M5AkJIcHUSTxtIk5K4w863R-3uDldOVa383rOfjTm7KRCNov0glNJxCpSEUqI9F7jxHNP4Wit0tPfx-0wBON1dmIAjpC0AzwQaszOQZ7Q7_BH-kFB9IshE-0uX80YZfER7_DJgsCA6aV9uopNgPLolQ9wSaBcw3cFlcOGG3tkSvs0uA64rYcq7qSbQZHDL9PChxTHv0qKTQrX2xfnPK_7e6Aunr5Qp3ch-woV2s2tMR8-ik1uwdN1rQqk1usCUdgOEfF909EIpWDExxOtBJMpxS4ZgIUaLjPuoCXnesRkDIDxU7iuVhR1rO9QDFjRWfa1kfaoHWcxj0_V6aI0d7CCV6Vvq9WCkHfoTkWn6U-FGJVVTVdVQ9U1Xy_LaWVSdpKrpOnOtG9FIWtD50vvbUsY0FUfGY1V1p2YoPGry-X2naH5RsKJ-PrtEhn-8rTeNO_yktymLRnqXOf-TY8f-OIp3pj3DOQahej7S_t-kH5lNPmr0udiSH2fmNYv6WaiLUJfJ8bzp0sRFqMvewNvnaU3xJxkW6vJ6QEJd3ua7jepvAAAA__9CH-Xw">