aboutsummaryrefslogtreecommitdiffstats
path: root/contrib/libs/llvm12/tools/opt/PassPrinters.h
blob: a4e1921399fc6c4326620c80f0babb6dcca0504b (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
//=- PassPrinters.h - Utilities to print analysis info for passes -*- C++ -*-=//
//
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
// See https://llvm.org/LICENSE.txt for license information.
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
//
//===----------------------------------------------------------------------===//
///
/// \file
/// Utilities to print analysis info for various kinds of passes.
///
//===----------------------------------------------------------------------===//

#ifndef LLVM_TOOLS_OPT_PASSPRINTERS_H
#define LLVM_TOOLS_OPT_PASSPRINTERS_H

namespace llvm {

class CallGraphSCCPass;
class FunctionPass;
class ModulePass;
class LoopPass;
class PassInfo;
class raw_ostream;
class RegionPass;

FunctionPass *createFunctionPassPrinter(const PassInfo *PI, raw_ostream &out);

CallGraphSCCPass *createCallGraphPassPrinter(const PassInfo *PI,
                                             raw_ostream &out);

ModulePass *createModulePassPrinter(const PassInfo *PI, raw_ostream &out);

LoopPass *createLoopPassPrinter(const PassInfo *PI, raw_ostream &out);

RegionPass *createRegionPassPrinter(const PassInfo *PI, raw_ostream &out);

} // end namespace llvm

#endif // LLVM_TOOLS_OPT_PASSPRINTERS_H