Lines Matching refs:PB
139 bool tryParsePipelineText(PassBuilder &PB, in tryParsePipelineText() argument
146 if (auto Err = PB.parsePassPipeline(PM, PipelineOpt)) { in tryParsePipelineText()
157 static void registerEPCallbacks(PassBuilder &PB) { in registerEPCallbacks() argument
158 if (tryParsePipelineText<FunctionPassManager>(PB, PeepholeEPPipeline)) in registerEPCallbacks()
159 PB.registerPeepholeEPCallback( in registerEPCallbacks()
160 [&PB](FunctionPassManager &PM, PassBuilder::OptimizationLevel Level) { in registerEPCallbacks()
162 Err(PB.parsePassPipeline(PM, PeepholeEPPipeline)); in registerEPCallbacks()
164 if (tryParsePipelineText<LoopPassManager>(PB, in registerEPCallbacks()
166 PB.registerLateLoopOptimizationsEPCallback( in registerEPCallbacks()
167 [&PB](LoopPassManager &PM, PassBuilder::OptimizationLevel Level) { in registerEPCallbacks()
169 Err(PB.parsePassPipeline(PM, LateLoopOptimizationsEPPipeline)); in registerEPCallbacks()
171 if (tryParsePipelineText<LoopPassManager>(PB, LoopOptimizerEndEPPipeline)) in registerEPCallbacks()
172 PB.registerLoopOptimizerEndEPCallback( in registerEPCallbacks()
173 [&PB](LoopPassManager &PM, PassBuilder::OptimizationLevel Level) { in registerEPCallbacks()
175 Err(PB.parsePassPipeline(PM, LoopOptimizerEndEPPipeline)); in registerEPCallbacks()
177 if (tryParsePipelineText<FunctionPassManager>(PB, in registerEPCallbacks()
179 PB.registerScalarOptimizerLateEPCallback( in registerEPCallbacks()
180 [&PB](FunctionPassManager &PM, PassBuilder::OptimizationLevel Level) { in registerEPCallbacks()
182 Err(PB.parsePassPipeline(PM, ScalarOptimizerLateEPPipeline)); in registerEPCallbacks()
184 if (tryParsePipelineText<CGSCCPassManager>(PB, CGSCCOptimizerLateEPPipeline)) in registerEPCallbacks()
185 PB.registerCGSCCOptimizerLateEPCallback( in registerEPCallbacks()
186 [&PB](CGSCCPassManager &PM, PassBuilder::OptimizationLevel Level) { in registerEPCallbacks()
188 Err(PB.parsePassPipeline(PM, CGSCCOptimizerLateEPPipeline)); in registerEPCallbacks()
190 if (tryParsePipelineText<FunctionPassManager>(PB, VectorizerStartEPPipeline)) in registerEPCallbacks()
191 PB.registerVectorizerStartEPCallback( in registerEPCallbacks()
192 [&PB](FunctionPassManager &PM, PassBuilder::OptimizationLevel Level) { in registerEPCallbacks()
194 Err(PB.parsePassPipeline(PM, VectorizerStartEPPipeline)); in registerEPCallbacks()
196 if (tryParsePipelineText<ModulePassManager>(PB, PipelineStartEPPipeline)) in registerEPCallbacks()
197 PB.registerPipelineStartEPCallback( in registerEPCallbacks()
198 [&PB](ModulePassManager &PM, PassBuilder::OptimizationLevel) { in registerEPCallbacks()
200 Err(PB.parsePassPipeline(PM, PipelineStartEPPipeline)); in registerEPCallbacks()
203 PB, PipelineEarlySimplificationEPPipeline)) in registerEPCallbacks()
204 PB.registerPipelineEarlySimplificationEPCallback( in registerEPCallbacks()
205 [&PB](ModulePassManager &PM, PassBuilder::OptimizationLevel) { in registerEPCallbacks()
207 Err(PB.parsePassPipeline(PM, PipelineEarlySimplificationEPPipeline)); in registerEPCallbacks()
209 if (tryParsePipelineText<FunctionPassManager>(PB, OptimizerLastEPPipeline)) in registerEPCallbacks()
210 PB.registerOptimizerLastEPCallback( in registerEPCallbacks()
211 [&PB](ModulePassManager &PM, PassBuilder::OptimizationLevel) { in registerEPCallbacks()
213 Err(PB.parsePassPipeline(PM, OptimizerLastEPPipeline)); in registerEPCallbacks()
284 PassBuilder PB(DebugPM, TM, PTO, P, &PIC); in runPassPipeline() local
285 registerEPCallbacks(PB); in runPassPipeline()
296 PassPlugin->registerPassBuilderCallbacks(PB); in runPassPipeline()
300 PB.registerPipelineParsingCallback( in runPassPipeline()
312 PB.registerPipelineParsingCallback( in runPassPipeline()
333 get##Ext##PluginInfo().RegisterPassBuilderCallbacks(PB); in runPassPipeline()
342 if (auto Err = PB.parseAAPipeline(AA, AAPipeline)) { in runPassPipeline()
354 if (auto Err = PB.parseAAPipeline(AA, "basic-aa")) { in runPassPipeline()
363 if (PB.isAAPassName(PassName)) { in runPassPipeline()
364 if (auto Err = PB.parseAAPipeline(AA, PassName)) { in runPassPipeline()
382 PB.registerModuleAnalyses(MAM); in runPassPipeline()
383 PB.registerCGSCCAnalyses(CGAM); in runPassPipeline()
384 PB.registerFunctionAnalyses(FAM); in runPassPipeline()
385 PB.registerLoopAnalyses(LAM); in runPassPipeline()
386 PB.crossRegisterProxies(LAM, FAM, CGAM, MAM); in runPassPipeline()
397 if (auto Err = PB.parsePassPipeline(MPM, PassPipeline)) { in runPassPipeline()
404 if (PB.isAnalysisPassName(PassName)) in runPassPipeline()
406 if (auto Err = PB.parsePassPipeline(MPM, ModifiedPassName)) { in runPassPipeline()