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

    <tr>
        <th>Summary</th>
        <td>
            [DXIL] [Clang] Set DXIL version in target triple when translating target profile
        </td>
    </tr>

    <tr>
      <th>Labels</th>
      <td>
            clang
      </td>
    </tr>

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

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

<pre>
    DXIL version is decoupled from that of Shader Model version. Make changes in Clang to utilize this change by 
a) translating target profile (specified via `-T` option) to distinct DXIL and Shader Model versions and
b) mapping Shader Model version as DXIL SubArch (e.g., 6.6 -> 1.6), if the DXIL SubArch is not set, in the non-DXC-mode driver, 

See [here](https://github.com/llvm/llvm-project/pull/89125#issuecomment-2064917698) for additional context.
</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJyUksFunDwUhZ_GbK4GGYMZWLBIMv9Iv9SspotsDb6AU2Mj-zJp-vSVmUyrSlGlbgDhc-xzjz8Vo5kcYsfkI5OnTG00-9D1swpKv6nX96z3-r07vfz_Ba4YovEOTASNg99WixrG4BegWRH4ES6z0hjg2Wu0d3kOz-obwjArN2EE4-DJKjcBedjIWPMDgWYTPwTQvwPjJ8YfFBMtUFAuWkUmGVSYkGANfjQWgYkmrjiY0aCGq1HAan74ymoOfiXj3W73oE0k4waCfQTl9KchY1q5ndsn46LWNZ35mRZUvG122fqHMMwpCeZTzsQT1HkNB1b-B0VeM9GmX2YEmvFPh4ngPEFE2hVuVzjvDqeXp8PiNYIO5oohrd5S3Z4XRGDyccaATJ6YaGaiNbLygYkzE-fJ0Lz1-eAXJs7WXu-vwxr8Kw7ExHndrGXi3LSFkEyUJsYNB78s6OggeF21xbFum1TB6AMorU3qUlkYvCP8Tnmmu1K3Zasy7IpjUVZHKasqmzuptBBDW5VyRM05PyopymMh5Vg1rWrLzHSCi4pXRSMKIasq7wUv-oojjuMRh6ZmFcdFGZunzLkPU7bH65q2LOrMqh5t3DkVYkgIMSESsqHbZ-y3KbKKWxMp_t6BDNkd7tQ_k6dU385f-r7gBxa_yHZ3yiiY1SK8zej-AmG2Bdv98x3sU8X9Fsqi_hkAAP__UKMhrA">