[llvm-exegesis] Improve Register Setup (roll forward of D51856).
[llvm-core.git] / tools / opt / PassPrinters.h
blobe66f3f457b7ace49b1fe2de30d896ccc2948f3cc
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 /// Utilities to print analysis info for various kinds of passes.
12 ///
13 //===----------------------------------------------------------------------===//
15 #ifndef LLVM_TOOLS_OPT_PASSPRINTERS_H
16 #define LLVM_TOOLS_OPT_PASSPRINTERS_H
18 #include "llvm/IR/PassManager.h"
20 namespace llvm {
22 class BasicBlockPass;
23 class CallGraphSCCPass;
24 class FunctionPass;
25 class ModulePass;
26 class LoopPass;
27 class PassInfo;
28 class raw_ostream;
29 class RegionPass;
30 class Module;
32 FunctionPass *createFunctionPassPrinter(const PassInfo *PI, raw_ostream &out,
33 bool Quiet);
35 CallGraphSCCPass *createCallGraphPassPrinter(const PassInfo *PI,
36 raw_ostream &out, bool Quiet);
38 ModulePass *createModulePassPrinter(const PassInfo *PI, raw_ostream &out,
39 bool Quiet);
41 LoopPass *createLoopPassPrinter(const PassInfo *PI, raw_ostream &out,
42 bool Quiet);
44 RegionPass *createRegionPassPrinter(const PassInfo *PI, raw_ostream &out,
45 bool Quiet);
47 BasicBlockPass *createBasicBlockPassPrinter(const PassInfo *PI,
48 raw_ostream &out, bool Quiet);
50 } // end namespace llvm
52 #endif // LLVM_TOOLS_OPT_PASSPRINTERS_H