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/CodeGen/MachineFunctionPrinterPass.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/CodeGen/MachineFunctionPrinterPass.cpp')
-rw-r--r-- | llvm/lib/CodeGen/MachineFunctionPrinterPass.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/llvm/lib/CodeGen/MachineFunctionPrinterPass.cpp b/llvm/lib/CodeGen/MachineFunctionPrinterPass.cpp index 55d9defced3..9c3288e02db 100644 --- a/llvm/lib/CodeGen/MachineFunctionPrinterPass.cpp +++ b/llvm/lib/CodeGen/MachineFunctionPrinterPass.cpp @@ -15,6 +15,7 @@ #include "llvm/CodeGen/MachineFunctionPass.h" #include "llvm/CodeGen/Passes.h" #include "llvm/CodeGen/SlotIndexes.h" +#include "llvm/IR/IRPrintingPasses.h" #include "llvm/Support/Debug.h" #include "llvm/Support/raw_ostream.h" |