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

asm: prepare docs for publishing #10178

Merged
merged 1 commit into from
Feb 4, 2025

Conversation

abrown
Copy link
Contributor

@abrown abrown commented Feb 4, 2025

This change is motivated by staring at the output of cargo doc for the cranelift-assembler-x64 crate. In order to write a sensible top-level example, I felt it was best to refactor how we construct the instructions: this removes the build module and adds conventional <inst_name>::new functions to each instruction. Also, a generated From implementation makes it easier to convert to an Inst.

This change has other doc-related refactorings and tweaks, but should not change any functionality.

This change is motivated by staring at the output of `cargo doc` for the
`cranelift-assembler-x64` crate. In order to write a sensible top-level
example, I felt it was best to refactor how we construct the
instructions: this removes the `build` module and adds conventional
`<inst_name>::new` functions to each instruction. Also, a generated
`From` implementation makes it easier to convert to an `Inst`.

This change has other doc-related refactorings and tweaks, but should
not change any functionality.
@abrown abrown requested a review from a team as a code owner February 4, 2025 03:46
@abrown abrown requested review from fitzgen and removed request for a team February 4, 2025 03:46
@github-actions github-actions bot added the cranelift Issues related to the Cranelift code generator label Feb 4, 2025
Copy link
Member

@fitzgen fitzgen left a comment

Choose a reason for hiding this comment

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

nice, thanks!

@fitzgen fitzgen added this pull request to the merge queue Feb 4, 2025
Merged via the queue into bytecodealliance:main with commit 99622ab Feb 4, 2025
39 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cranelift Issues related to the Cranelift code generator
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants