]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/blob - contrib/llvm-project/llvm/tools/opt/PassPrinters.h
MFV 364468:
[FreeBSD/FreeBSD.git] / contrib / llvm-project / llvm / 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 namespace llvm {
18
19 class CallGraphSCCPass;
20 class FunctionPass;
21 class ModulePass;
22 class LoopPass;
23 class PassInfo;
24 class raw_ostream;
25 class RegionPass;
26
27 FunctionPass *createFunctionPassPrinter(const PassInfo *PI, raw_ostream &out);
28
29 CallGraphSCCPass *createCallGraphPassPrinter(const PassInfo *PI,
30                                              raw_ostream &out);
31
32 ModulePass *createModulePassPrinter(const PassInfo *PI, raw_ostream &out);
33
34 LoopPass *createLoopPassPrinter(const PassInfo *PI, raw_ostream &out);
35
36 RegionPass *createRegionPassPrinter(const PassInfo *PI, raw_ostream &out);
37
38 } // end namespace llvm
39
40 #endif // LLVM_TOOLS_OPT_PASSPRINTERS_H