28 bool ShouldPreserveUseListOrder,
29 bool EmitSummaryIndex)
30 :
OS(
OS), Banner(Banner),
31 ShouldPreserveUseListOrder(ShouldPreserveUseListOrder),
32 EmitSummaryIndex(EmitSummaryIndex) {}
37 M.removeDebugIntrinsicDeclarations();
42 M.print(OS,
nullptr, ShouldPreserveUseListOrder);
44 bool BannerPrinted =
false;
45 for (
const auto &
F : M.functions()) {
47 if (!BannerPrinted && !Banner.empty()) {
60 if (Index->modulePaths().empty())
70 :
OS(
OS), Banner(Banner) {}
76 OS << Banner <<
" (function: " <<
F.getName() <<
")\n" << *
F.getParent();
78 OS << Banner << '\n' << static_cast<Value &>(
F);
This file defines passes to print out IR in various granularities.
Module.h This file contains the declarations for the Module class.
This is the interface to build a ModuleSummaryIndex for a module.
A container for analyses that lazily runs them and caches their results.
PassT::Result & getResult(IRUnitT &IR, ExtraArgTs... ExtraArgs)
Get the result of an analysis pass for a given IR unit.
Analysis pass to provide the ModuleSummaryIndex object.
Class to hold module path string table and global value map, and encapsulate methods for operating on...
A Module instance is used to store all the information related to an LLVM module.
A set of analyses that are preserved following a run of a transformation pass.
static PreservedAnalyses all()
Construct a special preserved set that preserves all passes.
LLVM_ABI PreservedAnalyses run(Function &F, AnalysisManager< Function > &)
LLVM_ABI PrintFunctionPass()
LLVM_ABI PrintModulePass()
LLVM_ABI PreservedAnalyses run(Module &M, AnalysisManager< Module > &)
This class implements an extremely fast bulk output stream that can only output to a stream.
This is an optimization pass for GlobalISel generic memory operations.
bool forcePrintModuleIR()
LLVM_ABI raw_ostream & dbgs()
dbgs() - This returns a reference to a raw_ostream for debugging messages.
bool isFunctionInPrintList(StringRef FunctionName)