Spill values live across calls.
Calls clobber many registers, so spill everything that is live across a call for now. In the future, we may add support for callee-saved registers.
This commit is contained in:
@@ -64,6 +64,14 @@ impl Affinity {
|
||||
}
|
||||
}
|
||||
|
||||
/// Is this the `Reg` affinity?
|
||||
pub fn is_reg(self) -> bool {
|
||||
match self {
|
||||
Affinity::Reg(_) => true,
|
||||
_ => false,
|
||||
}
|
||||
}
|
||||
|
||||
/// Is this the `Stack` affinity?
|
||||
pub fn is_stack(self) -> bool {
|
||||
match self {
|
||||
|
||||
Reference in New Issue
Block a user