Skip to content

Commit

Permalink
print pass name when using the dump-ir options
Browse files Browse the repository at this point in the history
  • Loading branch information
KelvinChung2000 committed Jan 13, 2025
1 parent 4105d0a commit bd565e6
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion calyx-opt/src/pass_manager.rs
Original file line number Diff line number Diff line change
Expand Up @@ -288,10 +288,11 @@ impl PassManager {
let start = Instant::now();
pass(ctx)?;
if dump_ir {
eprint!("\nAfter pass: {}\n", name);
ir::Printer::write_context(
ctx,
true,
&mut std::io::stdout(),
&mut std::io::stderr(),
)?;
}
let elapsed = start.elapsed();
Expand Down

0 comments on commit bd565e6

Please sign in to comment.