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