Stream: git-wasmtime

Topic: wasmtime / PR #11176 Cranelift: Generate an `InstructionD...


view this post on Zulip Wasmtime GitHub notifications bot (Jul 03 2025 at 18:11):

fitzgen opened PR #11176 from fitzgen:instruction-data-map to bytecodealliance:main:

This allows you to map some functions, described by the given InstructionMapper, over each of the entitities in an instruction, producing a new InstructionData.

I intend to use this as part of an inliner API for Cranelift that I am developing as part of prototyping Wasmtime's compile-time builtins.

<!--
Please make sure you include the following information:

Our development process is documented in the Wasmtime book:
https://docs.wasmtime.dev/contributing-development-process.html

Please ensure all communication follows the code of conduct:
https://github.com/bytecodealliance/wasmtime/blob/main/CODE_OF_CONDUCT.md
-->

view this post on Zulip Wasmtime GitHub notifications bot (Jul 03 2025 at 18:11):

fitzgen requested wasmtime-compiler-reviewers for a review on PR #11176.

view this post on Zulip Wasmtime GitHub notifications bot (Jul 03 2025 at 18:11):

fitzgen requested abrown for a review on PR #11176.

view this post on Zulip Wasmtime GitHub notifications bot (Jul 03 2025 at 18:11):

fitzgen requested wasmtime-default-reviewers for a review on PR #11176.

view this post on Zulip Wasmtime GitHub notifications bot (Jul 03 2025 at 19:58):

abrown commented on PR #11176:

I'll take an in-depth look at this after the weekend?

view this post on Zulip Wasmtime GitHub notifications bot (Jul 07 2025 at 17:27):

abrown created PR review comment:

It's weird that this missing space didn't trigger a formatting error during CI prior to this; is it possible this crate isn't being checked?

view this post on Zulip Wasmtime GitHub notifications bot (Jul 07 2025 at 17:27):

abrown submitted PR review:

Makes sense!

view this post on Zulip Wasmtime GitHub notifications bot (Jul 09 2025 at 00:14):

fitzgen submitted PR review.

view this post on Zulip Wasmtime GitHub notifications bot (Jul 09 2025 at 00:14):

fitzgen created PR review comment:

I think the whole crate disabled rustfmt or something, but I haven't looked into it yet.

view this post on Zulip Wasmtime GitHub notifications bot (Jul 09 2025 at 01:49):

fitzgen updated PR #11176.

view this post on Zulip Wasmtime GitHub notifications bot (Jul 09 2025 at 01:49):

fitzgen has enabled auto merge for PR #11176.

view this post on Zulip Wasmtime GitHub notifications bot (Jul 09 2025 at 02:26):

fitzgen merged PR #11176.

view this post on Zulip Wasmtime GitHub notifications bot (Jul 09 2025 at 08:37):

bjorn3 submitted PR review.

view this post on Zulip Wasmtime GitHub notifications bot (Jul 09 2025 at 08:37):

bjorn3 created PR review comment:

Was it necessary to pull in a new dependency for a single function?

view this post on Zulip Wasmtime GitHub notifications bot (Jul 09 2025 at 15:25):

fitzgen submitted PR review.

view this post on Zulip Wasmtime GitHub notifications bot (Jul 09 2025 at 15:25):

fitzgen created PR review comment:

It's already in the workspace and vetted, so it didn't seem like a big deal.

view this post on Zulip Wasmtime GitHub notifications bot (Jul 10 2025 at 13:20):

bjorn3 submitted PR review.

view this post on Zulip Wasmtime GitHub notifications bot (Jul 10 2025 at 13:20):

bjorn3 created PR review comment:

It was previously not a Cranelift dependency. Cranelift is slowly getting more and more dependencies.

view this post on Zulip Wasmtime GitHub notifications bot (Jul 10 2025 at 16:30):

fitzgen submitted PR review.

view this post on Zulip Wasmtime GitHub notifications bot (Jul 10 2025 at 16:30):

fitzgen created PR review comment:

Sharing common code via dependencies is not bad in and of itself IMO, and is actually generally good, especially when it is already vetted and relied upon in sibling projects.

Of course, there is the potential downside of from-scratch compile times getting a little worse. I'm happy to review a PR replacing the dependency with the hand-rolled equivalent function if you measure a from-scratch compile time regression and want to send such a PR, but I don't personally have the cycles to investigate all that myself at the moment.


Last updated: Dec 06 2025 at 06:05 UTC