2017-09-01 05:56:16 +08:00
|
|
|
//=- PassPrinters.h - Utilities to print analysis info for passes -*- C++ -*-=//
|
2014-02-11 07:34:23 +08:00
|
|
|
//
|
|
|
|
// The LLVM Compiler Infrastructure
|
|
|
|
//
|
|
|
|
// This file is distributed under the University of Illinois Open Source
|
|
|
|
// License. See LICENSE.TXT for details.
|
|
|
|
//
|
|
|
|
//===----------------------------------------------------------------------===//
|
|
|
|
///
|
|
|
|
/// \file
|
2018-05-01 23:54:18 +08:00
|
|
|
/// Utilities to print analysis info for various kinds of passes.
|
2014-02-11 07:34:23 +08:00
|
|
|
///
|
|
|
|
//===----------------------------------------------------------------------===//
|
2017-09-01 05:56:16 +08:00
|
|
|
|
2014-02-11 07:34:23 +08:00
|
|
|
#ifndef LLVM_TOOLS_OPT_PASSPRINTERS_H
|
|
|
|
#define LLVM_TOOLS_OPT_PASSPRINTERS_H
|
|
|
|
|
2018-02-16 05:14:36 +08:00
|
|
|
#include "llvm/IR/PassManager.h"
|
|
|
|
|
2014-02-11 07:34:23 +08:00
|
|
|
namespace llvm {
|
|
|
|
|
|
|
|
class BasicBlockPass;
|
|
|
|
class CallGraphSCCPass;
|
|
|
|
class FunctionPass;
|
|
|
|
class ModulePass;
|
|
|
|
class LoopPass;
|
|
|
|
class PassInfo;
|
|
|
|
class raw_ostream;
|
2017-09-01 05:56:16 +08:00
|
|
|
class RegionPass;
|
2018-02-16 05:14:36 +08:00
|
|
|
class Module;
|
2014-02-11 07:34:23 +08:00
|
|
|
|
|
|
|
FunctionPass *createFunctionPassPrinter(const PassInfo *PI, raw_ostream &out,
|
|
|
|
bool Quiet);
|
|
|
|
|
|
|
|
CallGraphSCCPass *createCallGraphPassPrinter(const PassInfo *PI,
|
|
|
|
raw_ostream &out, bool Quiet);
|
|
|
|
|
|
|
|
ModulePass *createModulePassPrinter(const PassInfo *PI, raw_ostream &out,
|
|
|
|
bool Quiet);
|
|
|
|
|
|
|
|
LoopPass *createLoopPassPrinter(const PassInfo *PI, raw_ostream &out,
|
|
|
|
bool Quiet);
|
|
|
|
|
|
|
|
RegionPass *createRegionPassPrinter(const PassInfo *PI, raw_ostream &out,
|
|
|
|
bool Quiet);
|
|
|
|
|
|
|
|
BasicBlockPass *createBasicBlockPassPrinter(const PassInfo *PI,
|
|
|
|
raw_ostream &out, bool Quiet);
|
2017-09-01 05:56:16 +08:00
|
|
|
|
|
|
|
} // end namespace llvm
|
2014-02-11 07:34:23 +08:00
|
|
|
|
|
|
|
#endif // LLVM_TOOLS_OPT_PASSPRINTERS_H
|