cranelift: bump regalloc.rs to 0.0.24 and adapt to latest API changes;

This commit is contained in:
Benjamin Bouvier
2020-05-20 13:31:02 +02:00
parent 5c39b74eb8
commit 1f620e1b46
6 changed files with 21 additions and 21 deletions

View File

@@ -138,7 +138,7 @@ pub trait MachInst: Clone + Debug {
/// Map virtual registers to physical registers using the given virt->phys
/// maps corresponding to the program points prior to, and after, this instruction.
fn map_regs(&mut self, maps: &RegUsageMapper);
fn map_regs<RUM: RegUsageMapper>(&mut self, maps: &RUM);
/// If this is a simple move, return the (source, destination) tuple of registers.
fn is_move(&self) -> Option<(Writable<Reg>, Reg)>;