alexcrichton requested abrown for a review on PR #11008.
alexcrichton opened PR #11008 from alexcrichton:x64-xchg to bytecodealliance:main:
This required a custom visit function because printing operands has to happen in one order to match Capstone but allocating operations has to happen in another order to satisfy regalloc, so so one of the two has to be custom.
<!--
Please make sure you include the following information:
If this work has been discussed elsewhere, please include a link to that
conversation. If it was discussed in an issue, just mention "issue #...".Explain why this change is needed. If the details are in an issue already,
this can be brief.Our development process is documented in the Wasmtime book:
https://docs.wasmtime.dev/contributing-development-process.htmlPlease ensure all communication follows the code of conduct:
https://github.com/bytecodealliance/wasmtime/blob/main/CODE_OF_CONDUCT.md
-->
alexcrichton requested wasmtime-compiler-reviewers for a review on PR #11008.
abrown commented on PR #11008:
Should we just bite the bullet and migrate the custom display functions to have a signature like
pub fn inst<R: Registers>(f: &mut std::fmt::Formatter, inst: &inst::inst<R>) -> std::fmt::Result? It looks like the same thing @rahulchaphalkar is running into over in: https://github.com/bytecodealliance/wasmtime/pull/10836#discussion_r2138322890.
alexcrichton commented on PR #11008:
I figure this'll need a custom something, but I don't mind it being either a display or a visit. Seems reasonable to me to prefer a custom display so I'm happy to hold off until that merges
github-actions[bot] commented on PR #11008:
Subscribe to Label Action
cc @saulecabrera
<details>
This issue or pull request has been labeled: "cranelift", "cranelift:area:x64", "cranelift:meta", "winch"Thus the following users have been cc'd because of the following labels:
- saulecabrera: winch
To subscribe or unsubscribe from this label, edit the <code>.github/subscribe-to-label.json</code> configuration file.
Learn more.
</details>
abrown submitted PR review.
alexcrichton updated PR #11008.
alexcrichton has enabled auto merge for PR #11008.
alexcrichton updated PR #11008.
alexcrichton merged PR #11008.
Last updated: Dec 06 2025 at 06:05 UTC