Merge pull request #2345 from uweigand/abi-stackalign

machinst ABI: Allow back-end to define stack alignment
This commit is contained in:
Chris Fallin
2020-11-03 09:02:41 -08:00
committed by GitHub
4 changed files with 19 additions and 1 deletions

View File

@@ -90,6 +90,11 @@ impl ABIMachineSpec for X64ABIMachineSpec {
64
}
/// Return required stack alignment in bytes.
fn stack_align(_call_conv: isa::CallConv) -> u32 {
16
}
fn compute_arg_locs(
call_conv: isa::CallConv,
params: &[ir::AbiParam],