Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1065)

Side by Side Diff: tools/opt/opt.cpp

Issue 12792011: PNaCl: Add ExpandConstantExpr pass for converting ConstantExprs to Instructions (Closed) Base URL: http://git.chromium.org/native_client/pnacl-llvm.git@master
Patch Set: Test deeper nesting Created 7 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « test/Transforms/NaCl/expand-constantexpr.ll ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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 }
OLDNEW
« no previous file with comments | « test/Transforms/NaCl/expand-constantexpr.ll ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698