LLVM  8.0.1
Classes | Namespaces | Functions
IRPrintingPasses.h File Reference

This file defines passes to print out IR in various granularities. More...

#include "llvm/ADT/StringRef.h"
#include <string>
Include dependency graph for IRPrintingPasses.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  llvm::AnalysisManager< IRUnitT, ExtraArgTs >
 A container for analyses that lazily runs them and caches their results. More...
 
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

 llvm
 This class represents lattice values for constants.
 

Functions

ModulePass * llvm::createPrintModulePass (raw_ostream &OS, const std::string &Banner="", bool ShouldPreserveUseListOrder=false)
 Create and return a pass that writes the module to the specified raw_ostream. More...
 
FunctionPassllvm::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. More...
 
BasicBlockPassllvm::createPrintBasicBlockPass (raw_ostream &OS, const std::string &Banner="")
 Create and return a pass that writes the BB to the specified raw_ostream. More...
 
void llvm::printLLVMNameWithoutPrefix (raw_ostream &OS, StringRef Name)
 Print out a name of an LLVM value without any prefixes. More...
 
bool llvm::isIRPrintingPass (Pass *P)
 Return true if a pass is for IR printing. More...
 
bool llvm::isFunctionInPrintList (StringRef FunctionName)
 isFunctionInPrintList - returns true if a function should be printed via More...
 
bool llvm::forcePrintModuleIR ()
 forcePrintModuleIR - returns true if IR printing passes should More...
 
bool llvm::shouldPrintBeforePass ()
 This is a helper to determine whether to print IR before or after a pass. More...
 
bool llvm::shouldPrintBeforePass (StringRef)
 
bool llvm::shouldPrintAfterPass ()
 
bool llvm::shouldPrintAfterPass (StringRef)
 

Detailed Description

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.