Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[DirectX] Pointer Type Analysis shouldn't use i8* for unknown #110516

Open
llvm-beanz opened this issue Sep 30, 2024 · 0 comments
Open

[DirectX] Pointer Type Analysis shouldn't use i8* for unknown #110516

llvm-beanz opened this issue Sep 30, 2024 · 0 comments

Comments

@llvm-beanz
Copy link
Collaborator

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: No status
Development

No branches or pull requests

2 participants