Eugene Zelenko | 046ca04 | 2017-08-31 21:56:16 +0000 | [diff] [blame] | 1 | //=- PassPrinters.h - Utilities to print analysis info for passes -*- C++ -*-=// |
Eli Bendersky | 8ed971b | 2014-02-10 23:34:23 +0000 | [diff] [blame] | 2 | // |
| 3 | // The LLVM Compiler Infrastructure |
| 4 | // |
| 5 | // This file is distributed under the University of Illinois Open Source |
| 6 | // License. See LICENSE.TXT for details. |
| 7 | // |
| 8 | //===----------------------------------------------------------------------===// |
| 9 | /// |
| 10 | /// \file |
Adrian Prantl | 26b584c | 2018-05-01 15:54:18 +0000 | [diff] [blame] | 11 | /// Utilities to print analysis info for various kinds of passes. |
Eli Bendersky | 8ed971b | 2014-02-10 23:34:23 +0000 | [diff] [blame] | 12 | /// |
| 13 | //===----------------------------------------------------------------------===// |
Eugene Zelenko | 046ca04 | 2017-08-31 21:56:16 +0000 | [diff] [blame] | 14 | |
Eli Bendersky | 8ed971b | 2014-02-10 23:34:23 +0000 | [diff] [blame] | 15 | #ifndef LLVM_TOOLS_OPT_PASSPRINTERS_H |
| 16 | #define LLVM_TOOLS_OPT_PASSPRINTERS_H |
| 17 | |
Vedant Kumar | b8c067b | 2018-02-15 21:14:36 +0000 | [diff] [blame] | 18 | #include "llvm/IR/PassManager.h" |
| 19 | |
Eli Bendersky | 8ed971b | 2014-02-10 23:34:23 +0000 | [diff] [blame] | 20 | namespace llvm { |
| 21 | |
| 22 | class BasicBlockPass; |
| 23 | class CallGraphSCCPass; |
| 24 | class FunctionPass; |
| 25 | class ModulePass; |
| 26 | class LoopPass; |
| 27 | class PassInfo; |
Eli Bendersky | 8ed971b | 2014-02-10 23:34:23 +0000 | [diff] [blame] | 28 | class raw_ostream; |
Eugene Zelenko | 046ca04 | 2017-08-31 21:56:16 +0000 | [diff] [blame] | 29 | class RegionPass; |
Vedant Kumar | b8c067b | 2018-02-15 21:14:36 +0000 | [diff] [blame] | 30 | class Module; |
Eli Bendersky | 8ed971b | 2014-02-10 23:34:23 +0000 | [diff] [blame] | 31 | |
| 32 | FunctionPass *createFunctionPassPrinter(const PassInfo *PI, raw_ostream &out, |
| 33 | bool Quiet); |
| 34 | |
| 35 | CallGraphSCCPass *createCallGraphPassPrinter(const PassInfo *PI, |
| 36 | raw_ostream &out, bool Quiet); |
| 37 | |
| 38 | ModulePass *createModulePassPrinter(const PassInfo *PI, raw_ostream &out, |
| 39 | bool Quiet); |
| 40 | |
| 41 | LoopPass *createLoopPassPrinter(const PassInfo *PI, raw_ostream &out, |
| 42 | bool Quiet); |
| 43 | |
| 44 | RegionPass *createRegionPassPrinter(const PassInfo *PI, raw_ostream &out, |
| 45 | bool Quiet); |
| 46 | |
| 47 | BasicBlockPass *createBasicBlockPassPrinter(const PassInfo *PI, |
| 48 | raw_ostream &out, bool Quiet); |
Eugene Zelenko | 046ca04 | 2017-08-31 21:56:16 +0000 | [diff] [blame] | 49 | |
| 50 | } // end namespace llvm |
Eli Bendersky | 8ed971b | 2014-02-10 23:34:23 +0000 | [diff] [blame] | 51 | |
Eli Bendersky | 8ed971b | 2014-02-10 23:34:23 +0000 | [diff] [blame] | 52 | #endif // LLVM_TOOLS_OPT_PASSPRINTERS_H |