cranelift: bump regalloc.rs to 0.0.24 and adapt to latest API changes;
This commit is contained in:
@@ -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)>;
|
||||
|
||||
@@ -457,7 +457,7 @@ impl<I: VCodeInst> RegallocFunction for VCode<I> {
|
||||
insn.get_regs(collector)
|
||||
}
|
||||
|
||||
fn map_regs(insn: &mut I, mapper: &RegUsageMapper) {
|
||||
fn map_regs<RUM: RegUsageMapper>(insn: &mut I, mapper: &RUM) {
|
||||
insn.map_regs(mapper);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user