Multi-value return support.

This commit is contained in:
Chris Fallin
2020-05-27 14:01:49 -07:00
parent 34eb170232
commit 615362068f
10 changed files with 269 additions and 56 deletions

View File

@@ -184,6 +184,12 @@ impl X64ABIBody {
impl ABIBody for X64ABIBody {
type I = Inst;
fn needed_tmps(&self) -> usize {
0
}
fn init_with_tmps(&mut self, _: &[Writable<Reg>]) {}
fn flags(&self) -> &settings::Flags {
&self.flags
}
@@ -233,6 +239,10 @@ impl ABIBody for X64ABIBody {
}
}
fn gen_retval_area_setup(&self) -> Vec<Inst> {
vec![]
}
fn gen_copy_reg_to_retval(
&self,
idx: usize,