[PATCH] D50923: [New PM][PassInstrumentation] IR printing support for New Pass Manager

Fedor Sergeev via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Fri Aug 17 13:57:19 PDT 2018


fedor.sergeev created this revision.
fedor.sergeev added reviewers: chandlerc, philip.pfaffe.
Herald added subscribers: llvm-commits, mgorny, mehdi_amini.

Implementing -print-before-all/-print-after-all/-filter-print-func support
through PassInstrumentation callbacks.

- PrintIR routines implement printing callbacks
- PassBuilder manages PassInstrumentation object and registers PrintIR callbacks


Repository:
  rL LLVM

https://reviews.llvm.org/D50923

Files:
  include/llvm/Analysis/PrintIR.h
  include/llvm/IR/IRPrintingPasses.h
  include/llvm/Pass.h
  lib/Analysis/CMakeLists.txt
  lib/Analysis/CallGraphSCCPass.cpp
  lib/Analysis/LoopInfo.cpp
  lib/Analysis/PrintIR.cpp
  lib/CodeGen/MachineFunctionPrinterPass.cpp
  lib/IR/LegacyPassManager.cpp
  lib/Transforms/Scalar/LoopPassManager.cpp
  test/Other/loop-pass-printer.ll
  test/Other/print-module-scope.ll
  test/Other/printer.ll
  tools/opt/NewPMDriver.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D50923.161322.patch
Type: text/x-patch
Size: 18408 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20180817/80ade657/attachment.bin>


More information about the llvm-commits mailing list