Remove the old x86 backend

This commit is contained in:
bjorn3
2021-06-18 17:28:55 +02:00
parent e989caf337
commit 9e34df33b9
246 changed files with 76 additions and 28804 deletions

View File

@@ -47,8 +47,8 @@ impl SingleFunctionCompiler {
}
/// Build a [SingleFunctionCompiler] using the host machine's ISA and the passed flags.
pub fn with_host_isa(flags: settings::Flags, variant: BackendVariant) -> Self {
let builder = builder_with_options(variant, true)
pub fn with_host_isa(flags: settings::Flags) -> Self {
let builder = builder_with_options(true)
.expect("Unable to build a TargetIsa for the current host");
let isa = builder.finish(flags);
Self::new(isa)
@@ -58,7 +58,7 @@ impl SingleFunctionCompiler {
/// ISA.
pub fn with_default_host_isa() -> Self {
let flags = settings::Flags::new(settings::builder());
Self::with_host_isa(flags, BackendVariant::Any)
Self::with_host_isa(flags)
}
/// Compile the passed [Function] to a `CompiledFunction`. This function will:

View File

@@ -48,11 +48,10 @@ impl SubTest for TestRun {
);
return Ok(());
}
let variant = context.isa.unwrap().variant();
let test_env = RuntestEnvironment::parse(&context.details.comments[..])?;
let mut compiler = SingleFunctionCompiler::with_host_isa(context.flags.clone(), variant);
let mut compiler = SingleFunctionCompiler::with_host_isa(context.flags.clone());
for comment in context.details.comments.iter() {
if let Some(command) = parse_run_command(comment.text, &func.signature)? {
trace!("Parsed run command: {}", command);