19 #ifndef LLVM_IR_IRPRINTINGPASSES_H 20 #define LLVM_IR_IRPRINTINGPASSES_H 32 class PreservedAnalyses;
34 template <
typename IRUnitT,
typename... ExtraArgTs>
class AnalysisManager;
39 const std::string &Banner =
"",
40 bool ShouldPreserveUseListOrder =
false);
45 const std::string &Banner =
"");
50 const std::string &Banner =
"");
84 bool ShouldPreserveUseListOrder;
89 bool ShouldPreserveUseListOrder =
false);
bool shouldPrintAfterPass()
bool forcePrintModuleIR()
forcePrintModuleIR - returns true if IR printing passes should
This class represents lattice values for constants.
A Module instance is used to store all the information related to an LLVM module. ...
Pass for printing a Module as LLVM's text IR assembly.
bool shouldPrintBeforePass()
This is a helper to determine whether to print IR before or after a pass.
FunctionPass * 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...
amdgpu Simplify well known AMD library false Value Value const Twine & Name
bool isIRPrintingPass(Pass *P)
Return true if a pass is for IR printing.
A set of analyses that are preserved following a run of a transformation pass.
print lazy value Lazy Value Info Printer Pass
void printLLVMNameWithoutPrefix(raw_ostream &OS, StringRef Name)
Print out a name of an LLVM value without any prefixes.
BasicBlockPass * createPrintBasicBlockPass(raw_ostream &OS, const std::string &Banner="")
Create and return a pass that writes the BB to the specified raw_ostream.
bool isFunctionInPrintList(StringRef FunctionName)
isFunctionInPrintList - returns true if a function should be printed via
PreservedAnalyses run(Module &M, AnalysisManager< Module > &)
ModulePass * 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.
This class implements an extremely fast bulk output stream that can only output to a stream...
StringRef - Represent a constant reference to a string, i.e.
A container for analyses that lazily runs them and caches their results.
Pass for printing a Function as LLVM's text IR assembly.