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

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: Handle invokes (retry upload) 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
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 561 matching lines...) Expand 10 before | Expand all | Expand 10 after
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
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 }
OLDNEW
« test/Transforms/NaCl/expand-varargs.ll ('K') | « test/Transforms/NaCl/expand-varargs.ll ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698