Skip to content

Commit

Permalink
[NFC][arcilator] Reenable instrumentation for ArcToLLVM passes. (llvm…
Browse files Browse the repository at this point in the history
…#6809)

Add VerbosePassInstrumentation to the second pass manager of the arcilator tool to include its statistics in the --verbose-pass-executions output.
  • Loading branch information
fzi-hielscher authored Mar 12, 2024
1 parent 9bf7c33 commit 466f6cc
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions tools/arcilator/arcilator.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -368,6 +368,10 @@ static LogicalResult processBuffer(
pmLlvm.enableTiming(ts);
if (failed(applyPassManagerCLOptions(pmLlvm)))
return failure();
if (verbosePassExecutions)
pmLlvm.addInstrumentation(
std::make_unique<VerbosePassInstrumentation<mlir::ModuleOp>>(
"arcilator"));
populateArcToLLVMPipeline(pmLlvm);

if (printDebugInfo && outputFormat == OutputLLVM)
Expand Down

0 comments on commit 466f6cc

Please sign in to comment.