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

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

Issue 12481021: PNaCl: Add ExpandVarArgs pass for expanding out variable-args function calls (Closed) Base URL: http://git.chromium.org/native_client/pnacl-llvm.git@master
Patch Set: Rebase 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-varargs.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 562 matching lines...) Expand 10 before | Expand all | Expand 10 after
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
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 }
OLDNEW
« no previous file with comments | « test/Transforms/NaCl/expand-varargs.ll ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698