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

    <tr>
        <th>Summary</th>
        <td>
            [HLSL][SPIRV] Replace name mangling for resource types
        </td>
    </tr>

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

    <tr>
      <th>Assignees</th>
      <td>
            s-perron
      </td>
    </tr>

    <tr>
      <th>Reporter</th>
      <td>
          s-perron
      </td>
    </tr>
</table>

<pre>
    The SPIR-V currently relies on name mangling to be able to be able to get the correct resource for calls to `Intrinsic::spv_resource_handlefrombinding`. Our own name mangling was implemented including mangling the types of the resource being accessed. This is hard to maintain because the name for the mangled type has to be kept up-to-date.

It might be better to rely on something else. In particular, we should try to rely on the name of the resource; however that will no longer be available.
</pre>
<img width="1" height="1" alt="" src="http://email.email.llvm.org/o/eJxcUk1v6yoU_DV4cxTLwSF1F16kr4pepErvqa26rfg4NtyLwYLjRPn3V1hpb5WVDZxhZpiRObsxIPZMPDHO82bGlGJgnDPxXMmFbEz9126lorn27xbh7f_T6-YD9JISBvJXSOgdZogBgpwQJhlG78IIFEEhSOXx7ndEArIIOqaEmiBhjkvSCENMoKX3uUyxfXMKlFzITrP2wNpDns-fX7OfVgbjcUhxUi4YF0a2b2r4b0kQL_dKLjKDm2aPEwZCAy5ovxTMD7EWga5z8TGsi29RCsu51BpzRlPDu3UZXAYrkyk6J-kCSRdAoZZLxhW98hc7ZbGSoFnvByvz7Tl-40ywzBuKGyMJa9YcWHM4EUxutFQmFBJhKuMJ_bW8cI4Tki2C0Ges4RRglomcXrxMjP8DF4Rs4-INULr-RH6ruvPH2iew8YLnQmQlwcV5DyGCj2HEtOZ2ls6X8OrK9K15bB9lhf32YbffiVa0XWV7jThI5Br36mEQcrftRKf2OAzdIPbNdle5njdcNKIR21Z0oqsbs1fNtjNKd6Z9bDTbNThJ52vvz1Md01i5nBfst20n2rbyUqHPt6oGvMB6eutq6gtoo5Yxs13jXab89xpy5NeO__vy9sLEMxNPpcIfTDzDK85earyrS8ntO_61FNWSfG-J5lyayI-MH0dHdlG1jhPjx0J2-2zmFH-hJsaPq8TM-PHm4dzzPwEAAP__btUu9g">