Switch default to new x86_64 backend.
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 requesting `BackendVariant::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. CI 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 commit is contained in:
@@ -141,7 +141,7 @@ check: exited with status
|
||||
// Ignore test on new backend. The value this is looking for is
|
||||
// not available at the point that the breakpoint is set when
|
||||
// compiled by the new backend.
|
||||
not(feature = "experimental_x64"),
|
||||
feature = "old-x86-backend",
|
||||
))]
|
||||
pub fn test_debug_dwarf_ptr() -> Result<()> {
|
||||
let output = lldb_with_script(
|
||||
|
||||
@@ -118,7 +118,7 @@ check: DW_AT_decl_line (10)
|
||||
// Ignore test on new backend. This is a specific test with hardcoded
|
||||
// offsets and the new backend compiles the return basic-block at a different
|
||||
// offset, causing mismatches.
|
||||
not(feature = "experimental_x64"),
|
||||
feature = "old-x86-backend",
|
||||
))]
|
||||
fn test_debug_dwarf5_translate_lines() -> Result<()> {
|
||||
check_line_program(
|
||||
|
||||
Reference in New Issue
Block a user