Use a more compact display of AllocatableSet.

Since only Intel uses named registers, we can use a one-char shorthand
for the registers.
This commit is contained in:
Jakob Stoklund Olesen
2017-10-06 19:17:37 -07:00
parent ecd537ecd6
commit 4a2bf6d9a6
3 changed files with 41 additions and 6 deletions

View File

@@ -962,7 +962,10 @@ impl Solver {
impl fmt::Display for Solver {
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
let reginfo = self.vars.first().map(|v| v.constraint.info);
writeln!(f, "Solver {{ inputs_done: {},", self.inputs_done)?;
writeln!(f, " in: {}", self.regs_in.display(reginfo))?;
writeln!(f, " out: {}", self.regs_out.display(reginfo))?;
writeln!(
f,
" assignments: {}",