LLVM API Documentation
Go to the source code of this file.
Classes | |
class | llvm::PrintModulePass |
Pass for printing a Module as LLVM's text IR assembly. More... | |
class | llvm::PrintFunctionPass |
Pass for printing a Function as LLVM's text IR assembly. More... | |
Namespaces | |
namespace | llvm |
List of target independent CodeGen pass IDs. | |
Functions | |
ModulePass * | llvm::createPrintModulePass (raw_ostream &OS, const std::string &Banner="") |
Create and return a pass that writes the module to the specified raw_ostream . | |
FunctionPass * | llvm::createPrintFunctionPass (raw_ostream &OS, const std::string &Banner="") |
Create and return a pass that prints functions to the specified raw_ostream as they are processed. | |
BasicBlockPass * | llvm::createPrintBasicBlockPass (raw_ostream &OS, const std::string &Banner="") |
Create and return a pass that writes the BB to the specified raw_ostream . |
This file defines passes to print out IR in various granularities. The PrintModulePass pass simply prints out the entire module when it is executed. The PrintFunctionPass class is designed to be pipelined with other FunctionPass's, and prints out the functions of the module as they are processed.
Definition in file IRPrintingPasses.h.