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

    <tr>
        <th>Summary</th>
        <td>
            [DirectX] Update DXILCBufferAccess pass for explicitly padded types
        </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>
    Currently DXILCBufferAccess only handles `dx.Layout` types, but https://github.com/llvm/wg-hlsl/pull/311 is a move away from those to types with explicit padding. Handling for explicitly padded types should be vastly simpler than the current logic, and we should be able to remove the various cases of special handling for arrays.
</pre>
<img width="1" height="1" alt="" src="http://email.email.llvm.org/o/eJyEkkGPmzAQhX-NuYwWgcEhHDjsbhS10l4r7XWwB3DrYOSxk-XfV5BN20PVnkby-NnvzXzIbMeZqBPqRUjZ-3GmIKQU6pRhipMP3f0s671Zu9cUAs3RrXB6__r2-pKGgcKz1sQMfnYrTDgbRwziUJiP_A1Xn6I4FBDXhVjIV-hThCnGhUX1LORZyPNo45T6XPuLkGfnrlu5jU-TYyfkeUluK1VZgmVAuPgrAd5whSH4C8TJM0H09w_gZuME9LE4q22EBY2x85jDl82VnUcYfPjVdut-gcynliefnIGe4Iq8ddleFkcB4oQzxIlA39OD86PVWxicDdzoDyX2bncTaPe5ia4YrE8MGpkY_AC8kLbo7qN6mMIQcOU8M11l2qrFjLqyUWVbtLU6ZlN3LA-m1oOqVdseTNvUAxVSHrXSqjlQg5ntZCFV0RRN2VSFOub1oTYFUdn2fXms6Sjqgi5oXb6NOPdhzCxzoq6sm0qVmcOeHD8wQP2DZiOq55MNpOP7JxGh28RPfRpZ1IWzHPn3c9FGt3P00KgTfFsMRvoLLAsy_2sbWQqu-z8nu50l-O-ko5DnPRELef4Mde3kzwAAAP__2hz4EQ">