Pass the ISA-specific compilation flags to the ABI implementations

Copyright (c) 2021, Arm Limited.
This commit is contained in:
Anton Kirilov
2021-11-16 23:40:19 +00:00
parent df37074218
commit 89919f4b1f
6 changed files with 21 additions and 8 deletions

View File

@@ -49,7 +49,7 @@ impl X64Backend {
// This performs lowering to VCode, register-allocates the code, computes
// block layout and finalizes branches. The result is ready for binary emission.
let emit_info = EmitInfo::new(flags.clone(), self.x64_flags.clone());
let abi = Box::new(abi::X64ABICallee::new(&func, flags)?);
let abi = Box::new(abi::X64ABICallee::new(&func, flags, self.isa_flags())?);
compile::compile::<Self>(&func, self, abi, &self.reg_universe, emit_info)
}
}