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

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

Issue 14262011: PNaCl: Add ReplacePtrsWithInts pass for stripping out pointer types (Closed) Base URL: http://git.chromium.org/native_client/pnacl-llvm.git@master
Patch Set: Fix alloca alignment Created 7 years, 7 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 572 matching lines...) Expand 10 before | Expand all | Expand 10 after
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); 589 initializeInsertDivideCheckPass(Registry);
590 initializePNaClABIVerifyFunctionsPass(Registry); 590 initializePNaClABIVerifyFunctionsPass(Registry);
591 initializePNaClABIVerifyModulePass(Registry); 591 initializePNaClABIVerifyModulePass(Registry);
592 initializePromoteIntegersPass(Registry); 592 initializePromoteIntegersPass(Registry);
593 initializeReplacePtrsWithIntsPass(Registry);
593 initializeResolveAliasesPass(Registry); 594 initializeResolveAliasesPass(Registry);
594 initializeRewritePNaClLibraryCallsPass(Registry); 595 initializeRewritePNaClLibraryCallsPass(Registry);
595 initializeStripMetadataPass(Registry); 596 initializeStripMetadataPass(Registry);
596 // @LOCALMOD-END 597 // @LOCALMOD-END
597 598
598 cl::ParseCommandLineOptions(argc, argv, 599 cl::ParseCommandLineOptions(argc, argv,
599 "llvm .bc -> .bc modular optimizer and analysis printer\n"); 600 "llvm .bc -> .bc modular optimizer and analysis printer\n");
600 601
601 if (AnalyzeOnly && NoOutput) { 602 if (AnalyzeOnly && NoOutput) {
602 errs() << argv[0] << ": analyze mode conflicts with no-output mode.\n"; 603 errs() << argv[0] << ": analyze mode conflicts with no-output mode.\n";
(...skipping 236 matching lines...) Expand 10 before | Expand all | Expand 10 after
839 840
840 // Now that we have all of the passes ready, run them. 841 // Now that we have all of the passes ready, run them.
841 Passes.run(*M.get()); 842 Passes.run(*M.get());
842 843
843 // Declare success. 844 // Declare success.
844 if (!NoOutput || PrintBreakpoints) 845 if (!NoOutput || PrintBreakpoints)
845 Out->keep(); 846 Out->keep();
846 847
847 return 0; 848 return 0;
848 } 849 }
OLDNEW
« lib/Transforms/NaCl/ReplacePtrsWithInts.cpp ('K') | « test/Transforms/NaCl/replace-ptrs-with-ints.ll ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698