avanhatt opened PR #12717 from avanhatt:ty-params-3-4 to bytecodealliance:main:
Discussed in issue https://github.com/bytecodealliance/wasmtime/issues/12716.
Right now in ISLE, most clif instructions have a type parameter in opt for the midend, but not in lowering (e.g.,
iadd ty x y)vs(iadd x y). From our previous discussions (@cfallin @fitzgen), this is mostly due to the order of implementation rather than a design decision. For our verification work, it's useful to also have the type parameters in the lowering terms, as well, if they produce values (e.g., excluding things likestore).This changes uses scripting to automatically change the many relevant rules, by programmatically adding
_. Over time, we can update rules to remove now-simplifiablehas_tyterms.This is based on an earlier commit/script from @mmcloughlin , with changes to merge into upstream after #10524.
avanhatt requested alexcrichton for a review on PR #12717.
avanhatt requested wasmtime-compiler-reviewers for a review on PR #12717.
avanhatt submitted PR review.
avanhatt created PR review comment:
CC @fitzgen this is not the cleanest, but I wasn't sure about adding another result to the match tuple creation you added above. The alternative is to add another
inst_data_valuevariant to the backend with a distinct signature. Thoughts?
avanhatt converted PR #12717 Cranelift: ISLE: add type parameters to most clif terms in lower to a draft.
avanhatt commented on PR #12717:
Oops, hadn't built the
pulley_sharedtarget locally, converting to draft.
avanhatt updated PR #12717.
avanhatt updated PR #12717.
avanhatt has marked PR #12717 as ready for review.
alexcrichton unassigned alexcrichton from PR #12717 Cranelift: ISLE: add type parameters to most clif terms in lower.
alexcrichton requested cfallin for a review on PR #12717.
fitzgen created PR review comment:
I think this needs a trailing space:
"_ "
fitzgen submitted PR review:
LGTM
avanhatt updated PR #12717.
github-actions[bot] added the label cranelift on PR #12717.
github-actions[bot] added the label cranelift:area:machinst on PR #12717.
github-actions[bot] added the label cranelift:area:aarch64 on PR #12717.
github-actions[bot] added the label cranelift:area:x64 on PR #12717.
github-actions[bot] added the label cranelift:meta on PR #12717.
cfallin submitted PR review:
Looks fine to me too -- let's go ahead and merge this and then we can iterate from there (e.g. for side-effecting operators and such). Thanks!
cfallin added PR #12717 Cranelift: ISLE: add type parameters to most clif terms in lower to the merge queue.
cfallin merged PR #12717.
cfallin removed PR #12717 Cranelift: ISLE: add type parameters to most clif terms in lower from the merge queue.
Last updated: Mar 23 2026 at 16:19 UTC