diff options
author | Fedor Sergeev <fedor.sergeev@azul.com> | 2018-09-24 16:08:15 +0000 |
---|---|---|
committer | Fedor Sergeev <fedor.sergeev@azul.com> | 2018-09-24 16:08:15 +0000 |
commit | 662e5686fe1c55cb5a46a960b9b00807c0c37b64 (patch) | |
tree | bfa394d8cadad1bf232c8840ca9122d1746cfef3 /llvm/lib/Analysis/CallGraphSCCPass.cpp | |
parent | 8284b19c76a7bafdf4e53b3deb6cd35fcd370e92 (diff) | |
download | bcm5719-llvm-662e5686fe1c55cb5a46a960b9b00807c0c37b64.tar.gz bcm5719-llvm-662e5686fe1c55cb5a46a960b9b00807c0c37b64.zip |
[New PM][PassInstrumentation] IR printing support for New Pass Manager
Implementing -print-before-all/-print-after-all/-filter-print-func support
through PassInstrumentation callbacks.
- PrintIR routines implement printing callbacks.
- StandardInstrumentations class provides a central place to manage all
the "standard" in-tree pass instrumentations. Currently it registers
PrintIR callbacks.
Reviewers: chandlerc, paquette, philip.pfaffe
Differential Revision: https://reviews.llvm.org/D50923
llvm-svn: 342896
Diffstat (limited to 'llvm/lib/Analysis/CallGraphSCCPass.cpp')
-rw-r--r-- | llvm/lib/Analysis/CallGraphSCCPass.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/llvm/lib/Analysis/CallGraphSCCPass.cpp b/llvm/lib/Analysis/CallGraphSCCPass.cpp index 3e9226f91de..80d0427529a 100644 --- a/llvm/lib/Analysis/CallGraphSCCPass.cpp +++ b/llvm/lib/Analysis/CallGraphSCCPass.cpp @@ -22,6 +22,7 @@ #include "llvm/Analysis/CallGraph.h" #include "llvm/IR/CallSite.h" #include "llvm/IR/Function.h" +#include "llvm/IR/IRPrintingPasses.h" #include "llvm/IR/Intrinsics.h" #include "llvm/IR/LLVMContext.h" #include "llvm/IR/LegacyPassManagers.h" |