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

Relax cg_zeroextend to allow zeroextends into pointer types. #1409

Merged
merged 1 commit into from
Oct 2, 2024

Conversation

vext01
Copy link
Contributor

@vext01 vext01 commented Oct 2, 2024

Companion to ykjit/ykllvm#208

This is required for non-truncating LLVM inttoptr instructions that get lowered to Yk zeroextend instructions.

(This routine has already been relaxed the opposing ptrtoint case)

@vext01
Copy link
Contributor Author

vext01 commented Oct 2, 2024

(Will need ykllvm syncing)

@ltratt
Copy link
Contributor

ltratt commented Oct 2, 2024

Can we rename the test to something like unintptr_t_to_ptr to make clear that it's not the int type?

@vext01
Copy link
Contributor Author

vext01 commented Oct 2, 2024

Fixed in b392304

@ltratt
Copy link
Contributor

ltratt commented Oct 2, 2024

If/when the ykllvm PR merges, please squash this one and sync against ykllvm.

This is required for non-truncating LLVM `inttoptr` instructions that
get lowered to Yk zeroextend instructions.

(This routine has already been relaxed the opposing `ptrtoint` case)
@vext01
Copy link
Contributor Author

vext01 commented Oct 2, 2024

squashed and synced.

@ltratt ltratt added this pull request to the merge queue Oct 2, 2024
Merged via the queue into ykjit:master with commit 92b60a5 Oct 2, 2024
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants