saulecabrera opened PR #8295 from saulecabrera:winch-addr-maps
to bytecodealliance:main
:
Closes https://github.com/bytecodealliance/wasmtime/issues/8095
This commit adds support for generating address maps for Winch.
Give that source code locations and machine code offsets are machine independent, one objective of this change is introduce minimal methods to the MacroAssesmbler and Asssembler implementations and tries to accomodate the bulk of the work in the ISA independent
CodeGen
module.Address maps also enable using the
wasmtime explore
command with Winch viawasmtime explore -C compiler=winch <module.wasm>
<img width="1488" alt="Screenshot 2024-04-03 at 10 11 02 AM" src="https://github.com/bytecodealliance/wasmtime/assets/1423601/a5f3c6fd-ed7e-400e-823b-cefd1719d145">
<!--
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
-->
saulecabrera requested abrown for a review on PR #8295.
saulecabrera requested wasmtime-compiler-reviewers for a review on PR #8295.
saulecabrera requested fitzgen for a review on PR #8295.
saulecabrera requested wasmtime-core-reviewers for a review on PR #8295.
saulecabrera requested elliottt for a review on PR #8295.
github-actions[bot] commented on PR #8295:
Subscribe to Label Action
cc @saulecabrera
<details>
This issue or pull request has been labeled: "cranelift", "cranelift:area:machinst", "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>
saulecabrera edited PR #8295:
Closes https://github.com/bytecodealliance/wasmtime/issues/8095
This commit adds support for generating address maps for Winch.
Given that source code locations and machine code offsets are machine independent, one objective of this change is introduce minimal methods to the MacroAssesmbler and Asssembler implementations and tries to accomodate the bulk of the work in the ISA independent
CodeGen
module.Address maps also enable using the
wasmtime explore
command with Winch viawasmtime explore -C compiler=winch <module.wasm>
<img width="1488" alt="Screenshot 2024-04-03 at 10 11 02 AM" src="https://github.com/bytecodealliance/wasmtime/assets/1423601/a5f3c6fd-ed7e-400e-823b-cefd1719d145">
<!--
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 submitted PR review:
Nice!
fitzgen submitted PR review:
Nice!
fitzgen created PR review comment:
Update this method's docs to say that this returns the new machine ocode offset and source location? (IIUC)
saulecabrera updated PR #8295.
saulecabrera submitted PR review.
saulecabrera created PR review comment:
Done, thanks!
saulecabrera has enabled auto merge for PR #8295.
saulecabrera merged PR #8295.
Last updated: Dec 23 2024 at 12:05 UTC