fitzgen opened PR #13527 from fitzgen:remove-icmp-imm to bytecodealliance:main:
Instead of
icmp_immwe just use a normaliconstand normalicmp.Adds a
.inst_builder_imm_method(true)method to the instruction builder in the meta crate. When set, this makes the meta crate generate an<inst>_immmethod onInstructionBuilder. This convenience method means that CLIF producers using existing theInstructionBuilder::icmp_immmethod will keep working. This infrastructure will be used more in upcoming commits.<!--
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
-->
fitzgen requested cfallin for a review on PR #13527.
fitzgen requested wasmtime-compiler-reviewers for a review on PR #13527.
fitzgen requested wasmtime-core-reviewers for a review on PR #13527.
:thumbs_up: cfallin submitted PR review:
Looks reasonable enough, thanks! Some thoughts below.
:speech_balloon: cfallin created PR review comment:
Now that we're generating these helpers automatically, I wonder if it would make sense to have
_imm_uand_imm_svariants? And maybe newtype the immediates (so we haveSImm128/UImm128etc)? I guess my overall thought is that "historical semantics" carry some weight as far as back-compat goes but not too much, and as long as we're cleaning up we may as well clean up the interface too...
:memo: fitzgen submitted PR review.
:speech_balloon: fitzgen created PR review comment:
I think this makes sense medium/long term, but my immediate term goals are to remove the instructions without breaking embedders as much as possible. I can spin this off into a new follow up issue if that's alright with you.
:memo: cfallin submitted PR review.
:speech_balloon: cfallin created PR review comment:
Sounds good!
:memo: fitzgen submitted PR review.
:speech_balloon: fitzgen created PR review comment:
Filed https://github.com/bytecodealliance/wasmtime/issues/13529
fitzgen updated PR #13527.
fitzgen has enabled auto merge for PR #13527.
fitzgen updated PR #13527.
fitzgen added PR #13527 Cranelift: Remove the icmp_imm instruction to the merge queue.
github-merge-queue[bot] removed PR #13527 Cranelift: Remove the icmp_imm instruction from the merge queue.
alexcrichton added PR #13527 Cranelift: Remove the icmp_imm instruction to the merge queue.
:check: alexcrichton merged PR #13527.
alexcrichton removed PR #13527 Cranelift: Remove the icmp_imm instruction from the merge queue.
Last updated: Jul 29 2026 at 05:03 UTC