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

    <tr>
        <th>Summary</th>
        <td>
            [HLSL] Type trait for layout compatibility
        </td>
    </tr>

    <tr>
      <th>Labels</th>
      <td>
            HLSL
      </td>
    </tr>

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

    <tr>
      <th>Reporter</th>
      <td>
          llvm-beanz
      </td>
    </tr>
</table>

<pre>
    We need to define a type trait for layout compatibility. HLSL allows explicit casting between types if they have the same member layouts. We should expose this as a type trait builtin so that we can use it from source as well.

Related: https://github.com/llvm/llvm-project/issues/75676
</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJyckrGO2zoQRb-GagYrUENJtAsWflgYr9gqCbA1KY0sBpRoaIZ2nK8PZOwiSBUgFVlwLg_uGc8cLyuRU91_qnutfJE5by6l2_ISyK8_q5DHh3snWIlGkAwjTXEl8CCPK4FsPgpMeYPkH7kIDHm5eokhpiiPGv5_-_oGPqV8Z6Af1xSHKDB4lrheIJDcidZnEkOcQGZ6wOxvtN-A_UKw0BLoM51reCfgOZc07nGZ95eRwfOfQKHEJHEFziCzF7gTDH6FwgQ77pYX4Fy2gfbJO6VUK31S-vSFkhcalTnBLHJlZU4KzwrPlyhzCfWQF4XnvZ2P4-W65e80iMJzZC7ECs-2621fjc6MR3P0FbnGYnM0WveHanY-dMPUNpPtR3Ow2AStTU8jHlsbBoOmig41ttpi19iuxUOt0XZH1MFMFg-dbVWrafEx1TtAnbdL9fzaNVr3TVslHyjxUyji3r9C3NV-Wi0XVq1OkYV_J0iU9FyC50D3Ct_-brcqW3L_XtMH7s3hrwAAAP__BCvV3g">