Lines Matching defs:Passes
47 // The OptimizationList is automatically populated with registered Passes by the
91 cl::desc("Do not run any optimization passes"));
155 // ---------- Define Printers for module and function passes ------------
414 /// AddOptimizationPasses - This routine adds optimization passes
458 // -std-compile-opts adds the same module passes as -O3.
495 // Initialize passes
558 // Create a PassManager to hold and optimize the collection of passes we are
561 PassManager Passes;
569 Passes.add(TLI);
580 Passes.add(TD);
603 Passes.add(new BreakpointPrinter(Out->os()));
610 addPass(Passes, createStripSymbolsPass(true));
618 AddStandardCompilePasses(Passes);
624 AddStandardLinkPasses(Passes);
629 AddOptimizationPasses(Passes, *FPasses, 1, 0);
634 AddOptimizationPasses(Passes, *FPasses, 2, 0);
639 AddOptimizationPasses(Passes, *FPasses, 2, 1);
644 AddOptimizationPasses(Passes, *FPasses, 2, 2);
649 AddOptimizationPasses(Passes, *FPasses, 3, 0);
662 addPass(Passes, P);
667 Passes.add(new BasicBlockPassPrinter(PassInf, Out->os()));
670 Passes.add(new RegionPassPrinter(PassInf, Out->os()));
673 Passes.add(new LoopPassPrinter(PassInf, Out->os()));
676 Passes.add(new FunctionPassPrinter(PassInf, Out->os()));
679 Passes.add(new CallGraphSCCPassPrinter(PassInf, Out->os()));
682 Passes.add(new ModulePassPrinter(PassInf, Out->os()));
689 Passes.add(createPrintModulePass(&errs()));
694 AddStandardCompilePasses(Passes);
699 AddStandardLinkPasses(Passes);
704 AddOptimizationPasses(Passes, *FPasses, 1, 0);
707 AddOptimizationPasses(Passes, *FPasses, 2, 0);
710 AddOptimizationPasses(Passes, *FPasses, 2, 1);
713 AddOptimizationPasses(Passes, *FPasses, 2, 2);
716 AddOptimizationPasses(Passes, *FPasses, 3, 0);
727 Passes.add(createVerifierPass());
732 Passes.add(createPrintModulePass(&Out->os()));
734 Passes.add(createBitcodeWriterPass(Out->os()));
737 // Before executing passes, print the final values of the LLVM options.
740 // Now that we have all of the passes ready, run them.
741 Passes.run(*M.get());