29 bool ShouldPreserveUseListOrder,
30 bool EmitSummaryIndex)
31 :
OS(
OS), Banner(Banner),
32 ShouldPreserveUseListOrder(ShouldPreserveUseListOrder),
33 EmitSummaryIndex(EmitSummaryIndex) {}
43 M.removeDebugIntrinsicDeclarations();
48 M.print(OS,
nullptr, ShouldPreserveUseListOrder);
50 bool BannerPrinted =
false;
51 for (
const auto &
F : M.functions()) {
53 if (!BannerPrinted && !Banner.empty()) {
66 if (Index->modulePaths().empty())
76 :
OS(
OS), Banner(Banner) {}
86 OS << Banner <<
" (function: " <<
F.getName() <<
")\n" << *
F.getParent();
88 OS << Banner << '\n' << static_cast<Value &>(
F);
cl::opt< bool > WriteNewDbgInfoFormat
This file defines passes to print out IR in various granularities.
Module.h This file contains the declarations for the Module class.
cl::opt< bool > WriteNewDbgInfoFormat
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.
PreservedAnalyses run(Function &F, AnalysisManager< Function > &)
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()
raw_ostream & dbgs()
dbgs() - This returns a reference to a raw_ostream for debugging messages.
bool isFunctionInPrintList(StringRef FunctionName)