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