MonoidMusician opened issue #10733:
The IR included in
exploreincludes function names with each section of IR, but this info doesn't end up in the similar files produced by--emit-clifwhich makes it hard to see what each function is (without cross-referencing with the explore output or something).
jameysharp commented on issue #10733:
As the person who asked you to open this issue, I want to add a couple details for whoever has time to poke at it:
wasmtime exploregets the function name here: https://github.com/bytecodealliance/wasmtime/blob/ede670dd937d73122ae36104fcea6a345c0890c1/crates/explorer/src/lib.rs#L222-L231The implementation of
--emit-clifis here: https://github.com/bytecodealliance/wasmtime/blob/a4700cb7eb86484ba4d5246cdb85bf07311a51a0/crates/cranelift/src/compiler.rs#L1000-L1004In addition to
explore,tests/disas.rsalso uses emit-clif internally and IIRC also wants function names, so maybe this can all be unified a bit.
alexcrichton added the wasmtime:debugging label to Issue #10733.
alexcrichton added the good first issue label to Issue #10733.
PhantomInTheWire commented on issue #10733:
hey @alexcrichton! This looks like a good first issue! I think I have a solution for this and plan to submit a PR shortly. LMK if you'd like me to consider anything specific.
PhantomInTheWire edited a comment on issue #10733:
hey @alexcrichton! This looks like a good first issue! I think I have a solution for this I'd like to work on this. Could you please assign it to me?
PhantomInTheWire edited a comment on issue #10733:
hey @alexcrichton! This looks like a good first issue! I think I have a solution for this. Could you please assign it to me?
alexcrichton commented on issue #10733:
Sure thing, and one thing to be aware of perhaps is that https://github.com/bytecodealliance/wasmtime/pull/10947 just landed which changed things slightly in this area, but I believe this is still applicable with respect to
wasmtime explore.
alexcrichton assigned PhantomInTheWire to issue #10733.
PhantomInTheWire commented on issue #10733:
Awesome, thanks for assigning it! I'll dig into this
fitzgen closed issue #10733:
The IR included in
exploreincludes function names with each section of IR, but this info doesn't end up in the similar files produced by--emit-clifwhich makes it hard to see what each function is (without cross-referencing with the explore output or something).
Last updated: Dec 06 2025 at 06:05 UTC