Lines Matching refs:PM

161 static void addObjCARCAPElimPass(const PassManagerBuilder &Builder, PassManagerBase &PM) {  in addObjCARCAPElimPass()  argument
163 PM.add(createObjCARCAPElimPass()); in addObjCARCAPElimPass()
166 static void addObjCARCExpandPass(const PassManagerBuilder &Builder, PassManagerBase &PM) { in addObjCARCExpandPass() argument
168 PM.add(createObjCARCExpandPass()); in addObjCARCExpandPass()
171 static void addObjCARCOptPass(const PassManagerBuilder &Builder, PassManagerBase &PM) { in addObjCARCOptPass() argument
173 PM.add(createObjCARCOptPass()); in addObjCARCOptPass()
177 legacy::PassManagerBase &PM) { in addAddDiscriminatorsPass() argument
178 PM.add(createAddDiscriminatorsPass()); in addAddDiscriminatorsPass()
182 const PassManagerBuilder &Builder, legacy::PassManagerBase &PM) { in addCleanupPassesForSampleProfiler() argument
187 PM.add(createCFGSimplificationPass()); in addCleanupPassesForSampleProfiler()
188 PM.add(createSROAPass()); in addCleanupPassesForSampleProfiler()
189 PM.add(createInstructionCombiningPass()); in addCleanupPassesForSampleProfiler()
193 legacy::PassManagerBase &PM) { in addBoundsCheckingPass() argument
194 PM.add(createBoundsCheckingPass()); in addBoundsCheckingPass()
198 legacy::PassManagerBase &PM) { in addSanitizerCoveragePass() argument
210 PM.add(createSanitizerCoverageModulePass(Opts)); in addSanitizerCoveragePass()
214 legacy::PassManagerBase &PM) { in addAddressSanitizerPasses() argument
220 PM.add(createAddressSanitizerFunctionPass(/*CompileKernel*/ false, Recover, in addAddressSanitizerPasses()
222 PM.add(createAddressSanitizerModulePass(/*CompileKernel*/false, Recover)); in addAddressSanitizerPasses()
226 legacy::PassManagerBase &PM) { in addKernelAddressSanitizerPasses() argument
227 PM.add(createAddressSanitizerFunctionPass( in addKernelAddressSanitizerPasses()
230 PM.add(createAddressSanitizerModulePass(/*CompileKernel*/true, in addKernelAddressSanitizerPasses()
235 legacy::PassManagerBase &PM) { in addMemorySanitizerPass() argument
239 PM.add(createMemorySanitizerPass(CGOpts.SanitizeMemoryTrackOrigins)); in addMemorySanitizerPass()
245 PM.add(createEarlyCSEPass()); in addMemorySanitizerPass()
246 PM.add(createReassociatePass()); in addMemorySanitizerPass()
247 PM.add(createLICMPass()); in addMemorySanitizerPass()
248 PM.add(createGVNPass()); in addMemorySanitizerPass()
249 PM.add(createInstructionCombiningPass()); in addMemorySanitizerPass()
250 PM.add(createDeadStoreEliminationPass()); in addMemorySanitizerPass()
255 legacy::PassManagerBase &PM) { in addThreadSanitizerPass() argument
256 PM.add(createThreadSanitizerPass()); in addThreadSanitizerPass()
260 legacy::PassManagerBase &PM) { in addDataFlowSanitizerPass() argument
264 PM.add(createDataFlowSanitizerPass(LangOpts.SanitizerBlacklistFiles)); in addDataFlowSanitizerPass()
268 legacy::PassManagerBase &PM) { in addEfficiencySanitizerPass() argument
277 PM.add(createEfficiencySanitizerPass(Opts)); in addEfficiencySanitizerPass()
379 [&](const PassManagerBuilder &, legacy::PassManagerBase &PM) { in CreatePasses() argument
380 TM->addEarlyAsPossiblePasses(PM); in CreatePasses()
651 legacy::PassManager *PM = getCodeGenPasses(); in AddEmitPasses() local
657 PM->add(new TargetLibraryInfoWrapperPass(*TLII)); in AddEmitPasses()
673 PM->add(createObjCARCContractPass()); in AddEmitPasses()
675 if (TM->addPassesToEmitFile(*PM, OS, CGFT, in AddEmitPasses()