Implement the basics of the x86-64 ABI.

This is just a rough sketch to get us started. There are bound to be
some issues.

This also legalizes signatures for x86-32, but probably not correctly.
It's basically implementing the x86-64 ABI for 32-bit.
This commit is contained in:
Jakob Stoklund Olesen
2017-06-30 10:37:42 -07:00
parent 983048cdd1
commit 7bc2e82b16
3 changed files with 128 additions and 8 deletions

View File

@@ -88,7 +88,7 @@ impl TargetIsa for Isa {
}
fn allocatable_registers(&self, func: &ir::Function) -> regalloc::AllocatableSet {
abi::allocatable_registers(func)
abi::allocatable_registers(func, &self.shared_flags)
}
fn emit_inst(&self, func: &ir::Function, inst: ir::Inst, sink: &mut CodeSink) {