Lines Matching refs:Passes
51 // The OptimizationList is automatically populated with registered Passes by the
95 cl::desc("Do not run any optimization passes"));
159 // ---------- Define Printers for module and function passes ------------
418 /// AddOptimizationPasses - This routine adds optimization passes
462 // -std-compile-opts adds the same module passes as -O3.
566 // Initialize passes
630 // Create a PassManager to hold and optimize the collection of passes we are
633 PassManager Passes;
641 Passes.add(TLI);
652 Passes.add(TD);
660 // Add internal analysis passes from the target machine.
662 TM->addAnalysisPasses(Passes);
685 Passes.add(new BreakpointPrinter(Out->os()));
692 addPass(Passes, createStripSymbolsPass(true));
700 AddStandardCompilePasses(Passes);
706 AddStandardLinkPasses(Passes);
711 AddOptimizationPasses(Passes, *FPasses, 1, 0);
716 AddOptimizationPasses(Passes, *FPasses, 2, 0);
721 AddOptimizationPasses(Passes, *FPasses, 2, 1);
726 AddOptimizationPasses(Passes, *FPasses, 2, 2);
731 AddOptimizationPasses(Passes, *FPasses, 3, 0);
744 addPass(Passes, P);
749 Passes.add(new BasicBlockPassPrinter(PassInf, Out->os()));
752 Passes.add(new RegionPassPrinter(PassInf, Out->os()));
755 Passes.add(new LoopPassPrinter(PassInf, Out->os()));
758 Passes.add(new FunctionPassPrinter(PassInf, Out->os()));
761 Passes.add(new CallGraphSCCPassPrinter(PassInf, Out->os()));
764 Passes.add(new ModulePassPrinter(PassInf, Out->os()));
771 Passes.add(createPrintModulePass(&errs()));
776 AddStandardCompilePasses(Passes);
781 AddStandardLinkPasses(Passes);
786 AddOptimizationPasses(Passes, *FPasses, 1, 0);
789 AddOptimizationPasses(Passes, *FPasses, 2, 0);
792 AddOptimizationPasses(Passes, *FPasses, 2, 1);
795 AddOptimizationPasses(Passes, *FPasses, 2, 2);
798 AddOptimizationPasses(Passes, *FPasses, 3, 0);
809 Passes.add(createVerifierPass());
814 Passes.add(createPrintModulePass(&Out->os()));
816 Passes.add(createBitcodeWriterPass(Out->os()));
819 // Before executing passes, print the final values of the LLVM options.
822 // Now that we have all of the passes ready, run them.
823 Passes.run(*M.get());