OSDN Git Service

Revert "[NewPM] Port Sancov"
[android-x86/external-llvm.git] / tools / opt / PassPrinters.h
1 //=- PassPrinters.h - Utilities to print analysis info for passes -*- C++ -*-=//
2 //
3 // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
4 // See https://llvm.org/LICENSE.txt for license information.
5 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
6 //
7 //===----------------------------------------------------------------------===//
8 ///
9 /// \file
10 /// Utilities to print analysis info for various kinds of passes.
11 ///
12 //===----------------------------------------------------------------------===//
13
14 #ifndef LLVM_TOOLS_OPT_PASSPRINTERS_H
15 #define LLVM_TOOLS_OPT_PASSPRINTERS_H
16
17 #include "llvm/IR/PassManager.h"
18
19 namespace llvm {
20
21 class BasicBlockPass;
22 class CallGraphSCCPass;
23 class FunctionPass;
24 class ModulePass;
25 class LoopPass;
26 class PassInfo;
27 class raw_ostream;
28 class RegionPass;
29 class Module;
30
31 FunctionPass *createFunctionPassPrinter(const PassInfo *PI, raw_ostream &out,
32                                         bool Quiet);
33
34 CallGraphSCCPass *createCallGraphPassPrinter(const PassInfo *PI,
35                                              raw_ostream &out, bool Quiet);
36
37 ModulePass *createModulePassPrinter(const PassInfo *PI, raw_ostream &out,
38                                     bool Quiet);
39
40 LoopPass *createLoopPassPrinter(const PassInfo *PI, raw_ostream &out,
41                                 bool Quiet);
42
43 RegionPass *createRegionPassPrinter(const PassInfo *PI, raw_ostream &out,
44                                     bool Quiet);
45
46 BasicBlockPass *createBasicBlockPassPrinter(const PassInfo *PI,
47                                             raw_ostream &out, bool Quiet);
48
49 } // end namespace llvm
50
51 #endif // LLVM_TOOLS_OPT_PASSPRINTERS_H