<table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Issue</th>
<td>
<a href=https://github.com/llvm/llvm-project/issues/84824>84824</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>
[HLSL] Teach clang codegen to generate TargetExtType instead of metadata for HLSL resource information
</td>
</tr>
<tr>
<th>Labels</th>
<td>
HLSL
</td>
</tr>
<tr>
<th>Assignees</th>
<td>
bogner
</td>
</tr>
<tr>
<th>Reporter</th>
<td>
bogner
</td>
</tr>
</table>
<pre>
Per the plan I'm developing as part of https://github.com/llvm/llvm-project/issues/68006 for how to handle HLSL resources in clang and LLVM, we're converging on wanting to use TargetExtType instead of arbitrary metadata pointing at a global for these kinds of resources.
This task is to update clang's codegen to generate the appropriate target types instead of the metadata as it does currently. Some of the details of what this looks like are pending on me publishing my plan for resources - I'll update this task with more concrete details once that's published.
AC:
- RWBuffer in HLSL is lowered to LLVM IR using TargetExtType
</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJyck81u2zoQhZ-G2gxiyJQcywstnOQaN4ALFInRrkfkSGJNkQI5iuu3Lyg7TgO0m65o80fzzTlnMEbTOaJarB6ElI3vHAUhpVg9ZThx70N92csar8_1VwrAPcFo0cGzkOsBNL2R9aNxHWCEEQODb6FnHqMotkLuhNx1hvupWSg_CLmz9u19uRuD_0GKhdyZGCeKQu7uqzy_h9YH6P0J2EOPTluC__evewgU_RQURTAOlMVU1GnY7799EfIRTiTkOhAo794odInJOzih4_STPUyR4IChI_7vJx_OI4FxkQl1YsbQGA4YzjAQo0ZGGL25vEUGhM76Bu3Mxj1FgqNxOqanN66FyLci3x56E4ExHiGtHqZRI9OFWMh1BOU1deTSWUeOQjpNwuI4Bj8GM_-fQYHP49zvjTPduxFiBMOgPUVQUwjk2J4X8OoHer-qidHYGfPUIwMnNuv9MYI1RwIMBCM5fVVrIBinxprYp43hfPE69fwh_t3svbXvffGt3ZPhHgZ_8UAF4t_qO5VuIs8CXGuQviq2fUxpybd38PL9YWpbCsni2fQZ90SBdJIreQ3PLzDFxPfJzEzXhd4UG8yoXq6X-bLa5DLP-lpXTamxvG9QrTetVOValWu5RFU1qtJFkZla5rLMi-VS5kW-rBYbaqtVg3mBqsViU4oypwGNXaTYLnzosjmwdVVWsswsNmTjdYYS83WCQj2nvJm6KMrcmsjx4wNs2M5zNz9YPcGBUPXXVP8pH38N7i0MyaVPcwLGtT4MyMa7bAq2_ve5nDv9FQAA__8nMm8N">