cfallin opened PR #2718 from new-backend
to main
:
(Note 1: This PR depends on #2710 and includes its commits for CI purposes for now.)
(Note 2: I plan to write an RFC to more fully describe and get consensus on the process of switching over. This is mostly a PR for CI-experimentation and to get some data/confirmation on what's actually left to be done.)
This PR switches the default backend on x86, for both the
cranelift-codegen
crate and for Wasmtime, to the new
(MachInst
-style,VCode
-based) backend that has been under
development and testing for some time now.The old backend is still available by default in builds with the
old-x86-backend
feature, or by requestingBackendVariant::Legacy
from the appropriate APIs.As part of that switch, it adds some more runtime-configurable plumbing
to the testing infrastructure so that tests can be run using the
appropriate backend.clif-util test
is now capable of parsing a
backend selector option from filetests and instantiating the correct
backend.I has been updated so that the old x86 backend continues to run its
tests, just as we used to run the new x64 backend separately.At some point, we will remove the old x86 backend entirely, once we are
satisfied that the new backend has not caused any unforeseen issues and
we do not need to revert.
cfallin has marked PR #2718 as ready for review.
cfallin updated PR #2718 from new-backend
to main
.
cfallin updated PR #2718 from new-backend
to main
.
bjorn3 submitted PR Review.
bjorn3 created PR Review Comment:
bjorn3 submitted PR Review.
bjorn3 created PR Review Comment:
cfallin updated PR #2718 from new-backend
to main
.
cfallin updated PR #2718 from new-backend
to main
.
cfallin created PR Review Comment:
Done, thanks.
cfallin submitted PR Review.
cfallin created PR Review Comment:
Done.
cfallin submitted PR Review.
cfallin updated PR #2718 from new-backend
to main
.
cfallin updated PR #2718 from new-backend
to main
.
cfallin updated PR #2718 from new-backend
to main
.
cfallin updated PR #2718 from new-backend
to main
.
cfallin updated PR #2718 from new-backend
to main
.
cfallin updated PR #2718 from new-backend
to main
.
cfallin updated PR #2718 from new-backend
to main
.
cfallin updated PR #2718 from new-backend
to main
.
cfallin updated PR #2718 from new-backend
to main
.
cfallin updated PR #2718 from new-backend
to main
.
cfallin updated PR #2718 from new-backend
to main
.
cfallin updated PR #2718 from new-backend
to main
.
cfallin updated PR #2718 from new-backend
to main
.
cfallin updated PR #2718 from new-backend
to main
.
cfallin updated PR #2718 from new-backend
to main
.
cfallin updated PR #2718 from new-backend
to main
.
cfallin edited PR #2718 from new-backend
to main
:
This PR switches the default backend on x86, for both the
cranelift-codegen
crate and for Wasmtime, to the new
(MachInst
-style,VCode
-based) backend that has been under
development and testing for some time now.The old backend is still available by default in builds with the
old-x86-backend
feature, or by requestingBackendVariant::Legacy
from the appropriate APIs.As part of that switch, it adds some more runtime-configurable plumbing
to the testing infrastructure so that tests can be run using the
appropriate backend.clif-util test
is now capable of parsing a
backend selector option from filetests and instantiating the correct
backend.I has been updated so that the old x86 backend continues to run its
tests, just as we used to run the new x64 backend separately.At some point, we will remove the old x86 backend entirely, once we are
satisfied that the new backend has not caused any unforeseen issues and
we do not need to revert.This implements the switch described in bytecodealliance/rfcs#10; we should
not merge this until we reach consensus on the process described therein
and merge the RFC.
jlb6740 submitted PR Review.
jlb6740 created PR Review Comment:
What do the new file test targets (machinst and legacy) mean?
jlb6740 deleted PR Review Comment.
cfallin updated PR #2718 from new-backend
to main
.
cfallin updated PR #2718 from new-backend
to main
.
alexcrichton submitted PR Review.
alexcrichton submitted PR Review.
alexcrichton created PR Review Comment:
ditto to above
alexcrichton created PR Review Comment:
Is this still needed or was this a temporary addition?
alexcrichton created PR Review Comment:
or rather, if it's still needed, mind adding a comment as to why?
cfallin updated PR #2718 from new-backend
to main
.
cfallin submitted PR Review.
cfallin created PR Review Comment:
Ah, this appears to have been left over -- we seem to have fixed the warning subsequently. Removed!
cfallin submitted PR Review.
cfallin created PR Review Comment:
Removed!
cfallin updated PR #2718 from new-backend
to main
.
cfallin merged PR #2718.
Last updated: Nov 22 2024 at 17:03 UTC