]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/blob - contrib/llvm/tools/opt/PassPrinters.h
MFV r329776: 8477 Assertion failed in vdev_state_dirty(): spa_writeable(spa)
[FreeBSD/FreeBSD.git] / contrib / llvm / tools / opt / PassPrinters.h
1 //=- PassPrinters.h - Utilities to print analysis info for passes -*- C++ -*-=//
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
11 /// \brief Utilities to print analysis info for various kinds of passes.
12 ///
13 //===----------------------------------------------------------------------===//
14
15 #ifndef LLVM_TOOLS_OPT_PASSPRINTERS_H
16 #define LLVM_TOOLS_OPT_PASSPRINTERS_H
17
18 namespace llvm {
19
20 class BasicBlockPass;
21 class CallGraphSCCPass;
22 class FunctionPass;
23 class ModulePass;
24 class LoopPass;
25 class PassInfo;
26 class raw_ostream;
27 class RegionPass;
28
29 FunctionPass *createFunctionPassPrinter(const PassInfo *PI, raw_ostream &out,
30                                         bool Quiet);
31
32 CallGraphSCCPass *createCallGraphPassPrinter(const PassInfo *PI,
33                                              raw_ostream &out, bool Quiet);
34
35 ModulePass *createModulePassPrinter(const PassInfo *PI, raw_ostream &out,
36                                     bool Quiet);
37
38 LoopPass *createLoopPassPrinter(const PassInfo *PI, raw_ostream &out,
39                                 bool Quiet);
40
41 RegionPass *createRegionPassPrinter(const PassInfo *PI, raw_ostream &out,
42                                     bool Quiet);
43
44 BasicBlockPass *createBasicBlockPassPrinter(const PassInfo *PI,
45                                             raw_ostream &out, bool Quiet);
46
47 } // end namespace llvm
48
49 #endif // LLVM_TOOLS_OPT_PASSPRINTERS_H