<table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Issue</th>
<td>
<a href=https://github.com/llvm/llvm-project/issues/110516>110516</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>
[DirectX] Pointer Type Analysis shouldn't use `i8*` for unknown
</td>
</tr>
<tr>
<th>Labels</th>
<td>
backend:DirectX
</td>
</tr>
<tr>
<th>Assignees</th>
<td>
</td>
</tr>
<tr>
<th>Reporter</th>
<td>
llvm-beanz
</td>
</tr>
</table>
<pre>
This was an oversight on my part that I just realized. There are cases where the pointer type analysis may not be able to identify the type of a pointer. In those cases today the pointer type analysis emits an `i8` and we insert no-op bitcasts in DXILPrepare so that we can emit casts in the final bitcode.
We should probably be using `i32` instead of `i8` since DXIL doesn't actually have 8-bit types.
</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJx8kkFvozAQhX-NuYyCHEMgHDhkFUWqtIceKm2vA54Et46NPEMi-utX0KR72xNC8sx735uHzO4SiFq1-6V2xwwnGWJqvb9dNx1h-Mq6aOf2bXAMd2TAAPFGid1lEIgBrjOMmARkQIEX-JhYIBF690U2h7eBEgEmgh6ZGO7rvwwEY3RBKIHMIwEG9DM7hivOEKJAR4CdJ5AIzlIQd57XqfV1PAM-53N4CSBD5KeCRIvzfxTo6mSlUJV2e1VpwGDhTuACUxIIcRNH6Jz0yMLgAhzfX36_JhoXCo7foPdFLqzL4OfhInp2Af06Hi3lSh-UPvwh4CFO3sKYYoednxe-iV24rC4Ks9hwgYXQLnQ_1tiFnlYDYCNxUKYWwF4m9H6GAW8E-03nZGXkPLNtYZuiwYzabW3qWtf1vsqGtt8WtjdFtSPdkD3XGs2uqcr9Xp-N7k2RudZoU-qm0NuybMpdTqbTzbavzlVZV43eq1LTFZ3Pl2LkMV0yxzxRu93q3bbKPHbkee2QMR32nxSsKg5Hl6iXd2XMUq1nq6YLq1J7x8L_1okTv5bwObM7wuvjgm_LBQ_PC35n-Z3FxPRIyxyWwM4xwRQ-Q7yHbEq-HURGVsVBmZMyp4uTYeryPl6VOS3Kj89mTPGDelHmtFKxMqcH2K01fwMAAP__5b4LMg">