(&self, f: &mut fmt::Formatter)
| 1618 | |
| 1619 | impl<I: VCodeInst> Debug for VRegAllocator<I> { |
| 1620 | fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result { |
| 1621 | writeln!(f, "VRegAllocator {{")?; |
| 1622 | |
| 1623 | let mut alias_keys = self.vreg_aliases.keys().cloned().collect::<Vec<_>>(); |
| 1624 | alias_keys.sort_unstable(); |
| 1625 | for key in alias_keys { |
| 1626 | let dest = self.vreg_aliases.get(&key).unwrap(); |
| 1627 | writeln!(f, " {:?} := {:?}", Reg::from(key), Reg::from(*dest))?; |
| 1628 | } |
| 1629 | |
| 1630 | writeln!(f, "}}") |
| 1631 | } |
| 1632 | } |
| 1633 | |
| 1634 | impl<I: VCodeInst> fmt::Debug for VCode<I> { |
nothing calls this directly
no test coverage detected