[PATCH] D149345: [Utils] Added the ability to print the pass number and IR after it is triggered

Artur Pilipenko via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue May 2 20:03:55 PDT 2023


apilipenko added a comment.

We would like to have a way to take a snapshot of the IR at a specific point in the pipeline. Currently, you can either print the IR before/after a given pass (-print-before=<passname>) or print before/after all (-print-before-all). print-before will print the IR before all occurrences of the given pass. print-before-all will, well, print before all passes. While print-before-all can be used to achieve the same functionality of printing the pipeline and looking at the IR at a specific point in the pipeline, it's not very practical. For large compilations, print-before-all might take minutes to produce gigabytes of output.

More specifically, we are building a UI tool to inspect the optimization pipeline and would like to use the new command line options for this automation.


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D149345/new/

https://reviews.llvm.org/D149345



More information about the llvm-commits mailing list