abrown opened PR #10348 from abrown:assembler-deduplicate-srcgen
to bytecodealliance:main
:
When building the new
cranelift-assembler-x64
crate, I duplicated someFormatter
functionality that we were using incranelift-codegen-meta
to generate both Rust and ISLE code. This change splits out that functionality into a separate crate that bothcranelift-assembler-x64
andcranelift-codegen-meta
can depend on without depending on each other.While doing this, I rationalized the divergence that had happened between both copies of
Formatter
; more details are noted in the commit messages. As a part of all of this, I will highlight that theFormatter
now knows which language it is emitting (Rust or ISLE) and how to emit Rust brace-delimited blocks, a wide-ranging change.All of this is to support the same goal as https://github.com/bytecodealliance/wasmtime/pull/10334. To avoid
OUT_DIR
issues, I believe we should move the ISLE generation fromcranelift-assembler-x64
tocranelift-codegen-meta
(with the rest of the ISLE wrangling). This PR is a first step in that direction by sorting out the crate dependencies.
abrown requested cfallin for a review on PR #10348.
abrown requested wasmtime-compiler-reviewers for a review on PR #10348.
abrown requested wasmtime-default-reviewers for a review on PR #10348.
abrown submitted PR review.
abrown created PR review comment:
It felt to me that this kind of crate isn't the same as the other Cranelift crates in terms of versioning, but I suspect we will have to give it a
0.119.0
version just to get it to pass thepublish.rs
script? I noticed that some fuzzing infrastructure crate had a0.0.0
version but perhaps that isn't published?
abrown submitted PR review.
abrown created PR review comment:
Oh, and vets... we'll probably need vets for this.
abrown updated PR #10348.
cfallin submitted PR review:
This is really nice; thanks for the cleanups/refactors!
cfallin created PR review comment:
Yep, I think the version-bumping automation will fall down otherwise. Also there's this list of crates to publish that will need an update.
abrown updated PR #10348.
abrown has enabled auto merge for PR #10348.
abrown updated PR #10348.
abrown has enabled auto merge for PR #10348.
abrown merged PR #10348.
Last updated: Apr 17 2025 at 04:04 UTC