LLVM  14.0.0git
Functions | Variables
PrintPasses.cpp File Reference
#include "llvm/IR/PrintPasses.h"
#include "llvm/Support/CommandLine.h"
#include <unordered_set>
Include dependency graph for PrintPasses.cpp:

Go to the source code of this file.

Functions

static bool shouldPrintBeforeOrAfterPass (StringRef PassID, ArrayRef< std::string > PassesToPrint)
 

Variables

static cl::list< std::string > PrintBefore ("print-before", llvm::cl::desc("Print IR before specified passes"), cl::CommaSeparated, cl::Hidden)
 
static cl::list< std::string > PrintAfter ("print-after", llvm::cl::desc("Print IR after specified passes"), cl::CommaSeparated, cl::Hidden)
 
static cl::opt< bool > PrintBeforeAll ("print-before-all", llvm::cl::desc("Print IR before each pass"), cl::init(false), cl::Hidden)
 
static cl::opt< bool > PrintAfterAll ("print-after-all", llvm::cl::desc("Print IR after each pass"), cl::init(false), cl::Hidden)
 
static cl::opt< bool > PrintModuleScope ("print-module-scope", cl::desc("When printing IR for print-[before|after]{-all} " "always print a module IR"), cl::init(false), cl::Hidden)
 
static cl::list< std::string > PrintFuncsList ("filter-print-funcs", cl::value_desc("function names"), cl::desc("Only print IR for functions whose name " "match this for all print-[before|after][-all] " "options"), cl::CommaSeparated, cl::Hidden)
 

Function Documentation

◆ shouldPrintBeforeOrAfterPass()

static bool shouldPrintBeforeOrAfterPass ( StringRef  PassID,
ArrayRef< std::string >  PassesToPrint 
)
static

Definition at line 56 of file PrintPasses.cpp.

References llvm::is_contained().

Referenced by llvm::shouldPrintAfterPass(), and llvm::shouldPrintBeforePass().

Variable Documentation

◆ PrintAfter

cl::list<std::string> PrintAfter("print-after", llvm::cl::desc("Print IR after specified passes"), cl::CommaSeparated, cl::Hidden)
static

◆ PrintAfterAll

cl::opt<bool> PrintAfterAll("print-after-all", llvm::cl::desc("Print IR after each pass"), cl::init(false), cl::Hidden)
static

◆ PrintBefore

cl::list<std::string> PrintBefore("print-before", llvm::cl::desc("Print IR before specified passes"), cl::CommaSeparated, cl::Hidden)
static

◆ PrintBeforeAll

cl::opt<bool> PrintBeforeAll("print-before-all", llvm::cl::desc("Print IR before each pass"), cl::init(false), cl::Hidden)
static

◆ PrintFuncsList

cl::list<std::string> PrintFuncsList("filter-print-funcs", cl::value_desc("function names"), cl::desc("Only print IR for functions whose name " "match this for all print-[before|after][-all] " "options"), cl::CommaSeparated, cl::Hidden)
static

◆ PrintModuleScope

cl::opt<bool> PrintModuleScope("print-module-scope", cl::desc("When printing IR for print-[before|after]{-all} " "always print a module IR"), cl::init(false), cl::Hidden)
static