OLD | NEW |
1 //===- opt.cpp - The LLVM Modular Optimizer -------------------------------===// | 1 //===- opt.cpp - The LLVM Modular Optimizer -------------------------------===// |
2 // | 2 // |
3 // The LLVM Compiler Infrastructure | 3 // The LLVM Compiler Infrastructure |
4 // | 4 // |
5 // This file is distributed under the University of Illinois Open Source | 5 // This file is distributed under the University of Illinois Open Source |
6 // License. See LICENSE.TXT for details. | 6 // License. See LICENSE.TXT for details. |
7 // | 7 // |
8 //===----------------------------------------------------------------------===// | 8 //===----------------------------------------------------------------------===// |
9 // | 9 // |
10 // Optimizations may be specified an arbitrary number of times on the command | 10 // Optimizations may be specified an arbitrary number of times on the command |
(...skipping 571 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
582 initializeExpandCtorsPass(Registry); | 582 initializeExpandCtorsPass(Registry); |
583 initializeExpandGetElementPtrPass(Registry); | 583 initializeExpandGetElementPtrPass(Registry); |
584 initializeExpandTlsPass(Registry); | 584 initializeExpandTlsPass(Registry); |
585 initializeExpandTlsConstantExprPass(Registry); | 585 initializeExpandTlsConstantExprPass(Registry); |
586 initializeExpandVarArgsPass(Registry); | 586 initializeExpandVarArgsPass(Registry); |
587 initializeFlattenGlobalsPass(Registry); | 587 initializeFlattenGlobalsPass(Registry); |
588 initializeGlobalCleanupPass(Registry); | 588 initializeGlobalCleanupPass(Registry); |
589 initializeInsertDivideCheckPass(Registry); | 589 initializeInsertDivideCheckPass(Registry); |
590 initializePNaClABIVerifyFunctionsPass(Registry); | 590 initializePNaClABIVerifyFunctionsPass(Registry); |
591 initializePNaClABIVerifyModulePass(Registry); | 591 initializePNaClABIVerifyModulePass(Registry); |
| 592 initializePromoteIntegersPass(Registry); |
592 initializeResolveAliasesPass(Registry); | 593 initializeResolveAliasesPass(Registry); |
593 initializeStripMetadataPass(Registry); | 594 initializeStripMetadataPass(Registry); |
594 // @LOCALMOD-END | 595 // @LOCALMOD-END |
595 | 596 |
596 cl::ParseCommandLineOptions(argc, argv, | 597 cl::ParseCommandLineOptions(argc, argv, |
597 "llvm .bc -> .bc modular optimizer and analysis printer\n"); | 598 "llvm .bc -> .bc modular optimizer and analysis printer\n"); |
598 | 599 |
599 if (AnalyzeOnly && NoOutput) { | 600 if (AnalyzeOnly && NoOutput) { |
600 errs() << argv[0] << ": analyze mode conflicts with no-output mode.\n"; | 601 errs() << argv[0] << ": analyze mode conflicts with no-output mode.\n"; |
601 return 1; | 602 return 1; |
(...skipping 235 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
837 | 838 |
838 // Now that we have all of the passes ready, run them. | 839 // Now that we have all of the passes ready, run them. |
839 Passes.run(*M.get()); | 840 Passes.run(*M.get()); |
840 | 841 |
841 // Declare success. | 842 // Declare success. |
842 if (!NoOutput || PrintBreakpoints) | 843 if (!NoOutput || PrintBreakpoints) |
843 Out->keep(); | 844 Out->keep(); |
844 | 845 |
845 return 0; | 846 return 0; |
846 } | 847 } |
OLD | NEW |