Lines Matching +full:- +full:- +full:quiet
1 //===- PassPrinters.cpp - Utilities to print analysis info for passes -----===//
8 //===----------------------------------------------------------------------===//
13 //===----------------------------------------------------------------------===//
33 FunctionPassPrinter(const PassInfo *PI, raw_ostream &out, bool Quiet) in FunctionPassPrinter()
34 : FunctionPass(ID), PassToPrint(PI), Out(out), QuietPass(Quiet) { in FunctionPassPrinter()
35 std::string PassToPrintName = PassToPrint->getPassName(); in FunctionPassPrinter()
41 Out << "Printing analysis '" << PassToPrint->getPassName() in runOnFunction()
45 getAnalysisID<Pass>(PassToPrint->getTypeInfo()).print(Out, F.getParent()); in runOnFunction()
52 AU.addRequiredID(PassToPrint->getTypeInfo()); in getAnalysisUsage()
66 CallGraphSCCPassPrinter(const PassInfo *PI, raw_ostream &out, bool Quiet) in CallGraphSCCPassPrinter()
67 : CallGraphSCCPass(ID), PassToPrint(PI), Out(out), QuietPass(Quiet) { in CallGraphSCCPassPrinter()
68 std::string PassToPrintName = PassToPrint->getPassName(); in CallGraphSCCPassPrinter()
74 Out << "Printing analysis '" << PassToPrint->getPassName() << "':\n"; in runOnSCC()
78 Function *F = (*I)->getFunction(); in runOnSCC()
80 getAnalysisID<Pass>(PassToPrint->getTypeInfo()) in runOnSCC()
81 .print(Out, F->getParent()); in runOnSCC()
89 AU.addRequiredID(PassToPrint->getTypeInfo()); in getAnalysisUsage()
103 ModulePassPrinter(const PassInfo *PI, raw_ostream &out, bool Quiet) in ModulePassPrinter()
104 : ModulePass(ID), PassToPrint(PI), Out(out), QuietPass(Quiet) { in ModulePassPrinter()
105 std::string PassToPrintName = PassToPrint->getPassName(); in ModulePassPrinter()
111 Out << "Printing analysis '" << PassToPrint->getPassName() << "':\n"; in runOnModule()
114 getAnalysisID<Pass>(PassToPrint->getTypeInfo()).print(Out, &M); in runOnModule()
121 AU.addRequiredID(PassToPrint->getTypeInfo()); in getAnalysisUsage()
135 LoopPassPrinter(const PassInfo *PI, raw_ostream &out, bool Quiet) in LoopPassPrinter()
136 : LoopPass(ID), PassToPrint(PI), Out(out), QuietPass(Quiet) { in LoopPassPrinter()
137 std::string PassToPrintName = PassToPrint->getPassName(); in LoopPassPrinter()
143 Out << "Printing analysis '" << PassToPrint->getPassName() << "':\n"; in runOnLoop()
146 getAnalysisID<Pass>(PassToPrint->getTypeInfo()) in runOnLoop()
147 .print(Out, L->getHeader()->getParent()->getParent()); in runOnLoop()
154 AU.addRequiredID(PassToPrint->getTypeInfo()); in getAnalysisUsage()
168 RegionPassPrinter(const PassInfo *PI, raw_ostream &out, bool Quiet) in RegionPassPrinter()
169 : RegionPass(ID), PassToPrint(PI), Out(out), QuietPass(Quiet) { in RegionPassPrinter()
170 std::string PassToPrintName = PassToPrint->getPassName(); in RegionPassPrinter()
176 Out << "Printing analysis '" << PassToPrint->getPassName() << "' for " in runOnRegion()
177 << "region: '" << R->getNameStr() << "' in function '" in runOnRegion()
178 << R->getEntry()->getParent()->getName() << "':\n"; in runOnRegion()
181 getAnalysisID<Pass>(PassToPrint->getTypeInfo()) in runOnRegion()
182 .print(Out, R->getEntry()->getParent()->getParent()); in runOnRegion()
189 AU.addRequiredID(PassToPrint->getTypeInfo()); in getAnalysisUsage()
203 BasicBlockPassPrinter(const PassInfo *PI, raw_ostream &out, bool Quiet) in BasicBlockPassPrinter()
204 : BasicBlockPass(ID), PassToPrint(PI), Out(out), QuietPass(Quiet) { in BasicBlockPassPrinter()
205 std::string PassToPrintName = PassToPrint->getPassName(); in BasicBlockPassPrinter()
212 << "': Pass " << PassToPrint->getPassName() << ":\n"; in runOnBasicBlock()
215 getAnalysisID<Pass>(PassToPrint->getTypeInfo()) in runOnBasicBlock()
216 .print(Out, BB.getParent()->getParent()); in runOnBasicBlock()
223 AU.addRequiredID(PassToPrint->getTypeInfo()); in getAnalysisUsage()
232 raw_ostream &OS, bool Quiet) { in createFunctionPassPrinter() argument
233 return new FunctionPassPrinter(PI, OS, Quiet); in createFunctionPassPrinter()
238 bool Quiet) { in createCallGraphPassPrinter() argument
239 return new CallGraphSCCPassPrinter(PI, OS, Quiet); in createCallGraphPassPrinter()
243 bool Quiet) { in createModulePassPrinter() argument
244 return new ModulePassPrinter(PI, OS, Quiet); in createModulePassPrinter()
248 bool Quiet) { in createLoopPassPrinter() argument
249 return new LoopPassPrinter(PI, OS, Quiet); in createLoopPassPrinter()
253 bool Quiet) { in createRegionPassPrinter() argument
254 return new RegionPassPrinter(PI, OS, Quiet); in createRegionPassPrinter()
258 raw_ostream &OS, bool Quiet) { in createBasicBlockPassPrinter() argument
259 return new BasicBlockPassPrinter(PI, OS, Quiet); in createBasicBlockPassPrinter()