| 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 562 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 573 initializeAnalysis(Registry); | 573 initializeAnalysis(Registry); |
| 574 initializeIPA(Registry); | 574 initializeIPA(Registry); |
| 575 initializeTransformUtils(Registry); | 575 initializeTransformUtils(Registry); |
| 576 initializeInstCombine(Registry); | 576 initializeInstCombine(Registry); |
| 577 initializeInstrumentation(Registry); | 577 initializeInstrumentation(Registry); |
| 578 initializeTarget(Registry); | 578 initializeTarget(Registry); |
| 579 initializeExpandConstantExprPass(Registry); | 579 initializeExpandConstantExprPass(Registry); |
| 580 initializeExpandCtorsPass(Registry); | 580 initializeExpandCtorsPass(Registry); |
| 581 initializeExpandTlsPass(Registry); | 581 initializeExpandTlsPass(Registry); |
| 582 initializeExpandTlsConstantExprPass(Registry); | 582 initializeExpandTlsConstantExprPass(Registry); |
| 583 initializeExpandVarArgsPass(Registry); |
| 583 | 584 |
| 584 cl::ParseCommandLineOptions(argc, argv, | 585 cl::ParseCommandLineOptions(argc, argv, |
| 585 "llvm .bc -> .bc modular optimizer and analysis printer\n"); | 586 "llvm .bc -> .bc modular optimizer and analysis printer\n"); |
| 586 | 587 |
| 587 if (AnalyzeOnly && NoOutput) { | 588 if (AnalyzeOnly && NoOutput) { |
| 588 errs() << argv[0] << ": analyze mode conflicts with no-output mode.\n"; | 589 errs() << argv[0] << ": analyze mode conflicts with no-output mode.\n"; |
| 589 return 1; | 590 return 1; |
| 590 } | 591 } |
| 591 | 592 |
| 592 SMDiagnostic Err; | 593 SMDiagnostic Err; |
| (...skipping 232 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 825 | 826 |
| 826 // Now that we have all of the passes ready, run them. | 827 // Now that we have all of the passes ready, run them. |
| 827 Passes.run(*M.get()); | 828 Passes.run(*M.get()); |
| 828 | 829 |
| 829 // Declare success. | 830 // Declare success. |
| 830 if (!NoOutput || PrintBreakpoints) | 831 if (!NoOutput || PrintBreakpoints) |
| 831 Out->keep(); | 832 Out->keep(); |
| 832 | 833 |
| 833 return 0; | 834 return 0; |
| 834 } | 835 } |
| OLD | NEW |