Add an ISA argument to dfg.display_inst().

Include ISA-specific annotations in tracing and error messages.
This commit is contained in:
Jakob Stoklund Olesen
2017-07-12 10:12:20 -07:00
parent e4da2e1f22
commit 69f974ba5d
10 changed files with 42 additions and 33 deletions

View File

@@ -399,7 +399,7 @@ impl<'a> Context<'a> {
dbg!("Checking {}: {}: {}",
pred_val,
pred_ebb,
self.func.dfg.display_inst(pred_inst));
self.func.dfg.display_inst(pred_inst, self.isa));
// Never coalesce incoming function arguments on the stack. These arguments are
// pre-spilled, and the rest of the virtual register would be forced to spill to the
@@ -474,9 +474,9 @@ impl<'a> Context<'a> {
let ty = self.func.dfg.value_type(copy);
dbg!("Inserted {}, before {}: {}",
self.func.dfg.display_inst(inst),
self.func.dfg.display_inst(inst, self.isa),
pred_ebb,
self.func.dfg.display_inst(pred_inst));
self.func.dfg.display_inst(pred_inst, self.isa));
// Give it an encoding.
let encoding = self.isa
@@ -519,7 +519,7 @@ impl<'a> Context<'a> {
self.liveness.move_def_locally(succ_val, inst);
dbg!("Inserted {}, following {}({}: {})",
self.func.dfg.display_inst(inst),
self.func.dfg.display_inst(inst, self.isa),
ebb,
new_val,
ty);