Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Wasmtime: Allow compiling Wasm modules with Pulley #9240

Merged
merged 3 commits into from
Sep 13, 2024

Conversation

fitzgen
Copy link
Member

@fitzgen fitzgen commented Sep 13, 2024

This does not yet add support for running Wasm modules compiled with Pulley, but it does allow compiling them via wasmtime compile. This is a first step towards integrating Pulley into Wasmtime itself.

This is also enough to get basic tests/disas tests working with Pulley.

This does not yet add support for running Wasm modules compiled with
Pulley, but it does allow compiling them. This is a first step towards
integrating Pulley into Wasmtime itself.

This is also enough to get basic `tests/disas` tests working with Pulley.
@fitzgen fitzgen requested review from a team as code owners September 13, 2024 15:25
@fitzgen fitzgen requested review from pchickey and alexcrichton and removed request for a team and pchickey September 13, 2024 15:25
tests/disas.rs Outdated Show resolved Hide resolved
tests/disas.rs Outdated Show resolved Hide resolved
let mut ret = CompileInputs {
need_wasm_to_array_trampolines: !matches!(
triple.architecture,
target_lexicon::Architecture::Pulley32 | target_lexicon::Architecture::Pulley64
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do you think it's worth having for example an extension trait on TargetTriple for .is_pulley() to use here and in wasmtime-environ as well? Not that this set of architectures is going to change over time really

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good idea, will do in a follow up

@fitzgen fitzgen added this pull request to the merge queue Sep 13, 2024
Merged via the queue into bytecodealliance:main with commit 52f6c8b Sep 13, 2024
33 checks passed
@fitzgen fitzgen deleted the wasmtime-compile-pulley branch September 13, 2024 16:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants