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

[compiler] Make use of i31 literals #1208

Merged
merged 2 commits into from
Jun 30, 2024
Merged

[compiler] Make use of i31 literals #1208

merged 2 commits into from
Jun 30, 2024

Conversation

SamChou19815
Copy link
Owner

@SamChou19815 SamChou19815 commented Jun 30, 2024

[compiler] Make use of i31 literals

Make the optimized form of variant actually i31 without assuming the representation during generics specialization. Then we do the i * 2 + 1 conversion during LIR printing and wasm lowering. Eventually, the WASM one will be replaced by the actual WASM i31.


Stack created with Sapling. Best reviewed with ReviewStack.

This is intended to mirror the any type in the WASM GC spec.
Make the optimized form of variant actually i31 without assuming the representation during generics specialization. Then we do the `i * 2 + 1` conversion during LIR printing and wasm lowering. Eventually, the WASM one will be replaced by the actual WASM i31.
@SamChou19815 SamChou19815 merged commit 1888425 into main Jun 30, 2024
4 checks passed
@SamChou19815 SamChou19815 deleted the pr1208 branch June 30, 2024 17:42
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.

1 participant