2003-09-30 18:37:50 +00:00
|
|
|
//===- llvm/Assembly/PrintModulePass.h - Printing Pass ----------*- C++ -*-===//
|
2005-04-21 20:19:05 +00:00
|
|
|
//
|
2003-10-20 20:19:47 +00:00
|
|
|
// The LLVM Compiler Infrastructure
|
|
|
|
//
|
2007-12-29 19:59:42 +00:00
|
|
|
// This file is distributed under the University of Illinois Open Source
|
|
|
|
// License. See LICENSE.TXT for details.
|
2005-04-21 20:19:05 +00:00
|
|
|
//
|
2003-10-20 20:19:47 +00:00
|
|
|
//===----------------------------------------------------------------------===//
|
2001-10-18 20:31:42 +00:00
|
|
|
//
|
2002-04-27 06:56:12 +00:00
|
|
|
// This file defines two passes to print out a module. The PrintModulePass pass
|
|
|
|
// simply prints out the entire module when it is executed. The
|
|
|
|
// PrintFunctionPass class is designed to be pipelined with other
|
2007-10-26 03:03:51 +00:00
|
|
|
// FunctionPass's, and prints out the functions of the module as they are
|
2002-04-27 06:56:12 +00:00
|
|
|
// processed.
|
2001-10-18 20:31:42 +00:00
|
|
|
//
|
|
|
|
//===----------------------------------------------------------------------===//
|
|
|
|
|
|
|
|
#ifndef LLVM_ASSEMBLY_PRINTMODULEPASS_H
|
|
|
|
#define LLVM_ASSEMBLY_PRINTMODULEPASS_H
|
|
|
|
|
2008-10-21 23:33:38 +00:00
|
|
|
#include <string>
|
2001-10-18 20:31:42 +00:00
|
|
|
|
2003-11-11 22:41:34 +00:00
|
|
|
namespace llvm {
|
2008-10-21 23:33:38 +00:00
|
|
|
class FunctionPass;
|
|
|
|
class ModulePass;
|
2013-02-08 23:37:41 +00:00
|
|
|
class BasicBlockPass;
|
2008-10-22 03:25:22 +00:00
|
|
|
class raw_ostream;
|
2008-10-21 23:33:38 +00:00
|
|
|
|
|
|
|
/// createPrintModulePass - Create and return a pass that writes the
|
2008-10-22 03:25:22 +00:00
|
|
|
/// module to the specified raw_ostream.
|
2010-04-02 23:17:14 +00:00
|
|
|
ModulePass *createPrintModulePass(raw_ostream *OS,
|
|
|
|
bool DeleteStream=false,
|
|
|
|
const std::string &Banner = "");
|
2008-10-21 23:33:38 +00:00
|
|
|
|
|
|
|
/// createPrintFunctionPass - Create and return a pass that prints
|
2008-10-22 03:25:22 +00:00
|
|
|
/// functions to the specified raw_ostream as they are processed.
|
2008-10-21 23:33:38 +00:00
|
|
|
FunctionPass *createPrintFunctionPass(const std::string &Banner,
|
2008-10-22 03:25:22 +00:00
|
|
|
raw_ostream *OS,
|
2008-10-21 23:33:38 +00:00
|
|
|
bool DeleteStream=false);
|
2001-10-18 20:31:42 +00:00
|
|
|
|
2013-02-08 23:37:41 +00:00
|
|
|
/// createPrintBasicBlockPass - Create and return a pass that writes the
|
|
|
|
/// BB to the specified raw_ostream.
|
|
|
|
BasicBlockPass *createPrintBasicBlockPass(raw_ostream *OS,
|
|
|
|
bool DeleteStream=false,
|
|
|
|
const std::string &Banner = "");
|
2003-11-11 22:41:34 +00:00
|
|
|
} // End llvm namespace
|
|
|
|
|
2001-10-18 20:31:42 +00:00
|
|
|
#endif
|