Go to the documentation of this file.
11 #include <unordered_set>
34 cl::desc(
"When printing IR for print-[before|after]{-all} "
35 "always print a module IR"),
40 cl::desc(
"Only print IR for functions whose name "
41 "match this for all print-[before|after][-all] "
84 static std::unordered_set<std::string> PrintFuncNames(
PrintFuncsList.begin(),
86 return PrintFuncNames.empty() ||
87 PrintFuncNames.count(std::string(FunctionName));
This is an optimization pass for GlobalISel generic memory operations.
static cl::list< std::string > PrintAfter("print-after", llvm::cl::desc("Print IR after specified passes"), cl::CommaSeparated, cl::Hidden)
bool shouldPrintBeforeAll()
bool shouldPrintAfterSomePass()
static cl::list< std::string > PrintBefore("print-before", llvm::cl::desc("Print IR before specified passes"), cl::CommaSeparated, 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)
bool shouldPrintBeforeSomePass()
This is a helper to determine whether to print IR before or after a pass.
bool shouldPrintAfterAll()
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)
initializer< Ty > init(const Ty &Val)
bool is_contained(R &&Range, const E &Element)
Wrapper function around std::find to detect if an element exists in a container.
bool isFunctionInPrintList(StringRef FunctionName)
std::vector< std::string > printBeforePasses()
std::vector< std::string > printAfterPasses()
StringRef - Represent a constant reference to a string, i.e.
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)
bool shouldPrintAfterPass(StringRef PassID)
bool shouldPrintBeforePass(StringRef PassID)
static bool shouldPrintBeforeOrAfterPass(StringRef PassID, ArrayRef< std::string > PassesToPrint)
bool forcePrintModuleIR()