Skip to content

asm: improve DSL's understanding of prefixes #10475

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

Merged
merged 2 commits into from
Mar 27, 2025

Conversation

abrown
Copy link
Contributor

@abrown abrown commented Mar 26, 2025

Previously, Cranelift's x64 backend only understood a subset of the available prefixes that can be encoded and the documentation for these was quite sparse. This change upgrades the assembler to understand all kinds of prefixes, even those as yet unused, and drastically increases the amount of documentation around these prefixes. This, along with some new Group-based typing, should prevent accidental misuse but also increase confidence that this implementation is correctly covering the possible cases.

Previously, Cranelift's x64 backend only understood a subset of the
available prefixes that can be encoded and the documentation for these
was quite sparse. This change upgrades the assembler to understand all
kinds of prefixes, even those as yet unused, and drastically increases
the amount of documentation around these prefixes. This, along with some
new `Group`-based typing, should prevent accidental misuse but also
increase confidence that this implementation is correctly covering the
possible cases.
@abrown abrown requested a review from a team as a code owner March 26, 2025 22:11
@abrown abrown requested review from cfallin and removed request for a team March 26, 2025 22:11
Copy link
Member

@cfallin cfallin left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good!

@abrown abrown enabled auto-merge March 26, 2025 23:48
@abrown abrown added this pull request to the merge queue Mar 27, 2025
Merged via the queue into bytecodealliance:main with commit 7e5a7e5 Mar 27, 2025
41 checks passed
@abrown abrown deleted the asm-prefixes branch March 27, 2025 00:24
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