Chromium Code Reviews| 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 568 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 579 // @LOCALMOD-BEGIN | 579 // @LOCALMOD-BEGIN |
| 580 initializeExpandByValPass(Registry); | 580 initializeExpandByValPass(Registry); |
| 581 initializeExpandConstantExprPass(Registry); | 581 initializeExpandConstantExprPass(Registry); |
| 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); | |
|
Derek Schuff
2013/05/06 16:18:49
we want to add an initialization for this pass in
sehr
2013/05/07 23:53:17
As we chatted about -- I am inserting a call to cr
| |
| 589 initializePNaClABIVerifyFunctionsPass(Registry); | 590 initializePNaClABIVerifyFunctionsPass(Registry); |
| 590 initializePNaClABIVerifyModulePass(Registry); | 591 initializePNaClABIVerifyModulePass(Registry); |
| 591 initializeResolveAliasesPass(Registry); | 592 initializeResolveAliasesPass(Registry); |
| 592 initializeStripMetadataPass(Registry); | 593 initializeStripMetadataPass(Registry); |
| 593 // @LOCALMOD-END | 594 // @LOCALMOD-END |
| 594 | 595 |
| 595 cl::ParseCommandLineOptions(argc, argv, | 596 cl::ParseCommandLineOptions(argc, argv, |
| 596 "llvm .bc -> .bc modular optimizer and analysis printer\n"); | 597 "llvm .bc -> .bc modular optimizer and analysis printer\n"); |
| 597 | 598 |
| 598 if (AnalyzeOnly && NoOutput) { | 599 if (AnalyzeOnly && NoOutput) { |
| (...skipping 237 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 836 | 837 |
| 837 // Now that we have all of the passes ready, run them. | 838 // Now that we have all of the passes ready, run them. |
| 838 Passes.run(*M.get()); | 839 Passes.run(*M.get()); |
| 839 | 840 |
| 840 // Declare success. | 841 // Declare success. |
| 841 if (!NoOutput || PrintBreakpoints) | 842 if (!NoOutput || PrintBreakpoints) |
| 842 Out->keep(); | 843 Out->keep(); |
| 843 | 844 |
| 844 return 0; | 845 return 0; |
| 845 } | 846 } |
| OLD | NEW |