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

Side by Side Diff: src/IceTranslator.cpp

Issue 733643005: Subzero: Use the linear-scan register allocator for Om1 as well. (Closed) Base URL: https://chromium.googlesource.com/native_client/pnacl-subzero.git@master
Patch Set: Update/fix some comments Created 6 years, 1 month 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 | « src/IceTargetLoweringX8632.cpp ('k') | tests_lit/llvm2ice_tests/ebp_args.ll » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 //===- subzero/src/IceTranslator.cpp - ICE to machine code ------*- C++ -*-===// 1 //===- subzero/src/IceTranslator.cpp - ICE to machine code ------*- C++ -*-===//
2 // 2 //
3 // The Subzero Code Generator 3 // The Subzero Code Generator
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 // This file defines the general driver class for translating ICE to 10 // This file defines the general driver class for translating ICE to
(...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after
76 !matchSymbolName(Func->getFunctionName(), 76 !matchSymbolName(Func->getFunctionName(),
77 Ctx->getFlags().TranslateOnly)) { 77 Ctx->getFlags().TranslateOnly)) {
78 Func->dump(); 78 Func->dump();
79 } else { 79 } else {
80 Func->translate(); 80 Func->translate();
81 if (Func->hasError()) { 81 if (Func->hasError()) {
82 std::cerr << "ICE translation error: " << Func->getError() << "\n"; 82 std::cerr << "ICE translation error: " << Func->getError() << "\n";
83 ErrorStatus = true; 83 ErrorStatus = true;
84 } 84 }
85 85
86 if (Ctx->getFlags().UseIntegratedAssembler) { 86 if (!ErrorStatus) {
87 Func->emitIAS(); 87 if (Ctx->getFlags().UseIntegratedAssembler) {
88 } else { 88 Func->emitIAS();
89 Func->emit(); 89 } else {
90 Func->emit();
91 }
90 } 92 }
91 Ctx->dumpStats(Func->getFunctionName()); 93 Ctx->dumpStats(Func->getFunctionName());
92 } 94 }
93 95
94 Ctx->setVerbose(OldVerboseMask); 96 Ctx->setVerbose(OldVerboseMask);
95 } 97 }
96 98
97 void Translator::emitConstants() { 99 void Translator::emitConstants() {
98 if (!Ctx->getFlags().DisableTranslation && Func) 100 if (!Ctx->getFlags().DisableTranslation && Func)
99 Func->getTarget()->emitConstants(); 101 Func->getTarget()->emitConstants();
(...skipping 10 matching lines...) Expand all
110 const IceString &TranslateOnly = Ctx->getFlags().TranslateOnly; 112 const IceString &TranslateOnly = Ctx->getFlags().TranslateOnly;
111 for (const Ice::VariableDeclaration *Global : VariableDeclarations) { 113 for (const Ice::VariableDeclaration *Global : VariableDeclarations) {
112 if (DumpGlobalVariables) 114 if (DumpGlobalVariables)
113 Global->dump(getContext(), Stream); 115 Global->dump(getContext(), Stream);
114 if (!DisableTranslation && 116 if (!DisableTranslation &&
115 matchSymbolName(Global->getName(), TranslateOnly)) 117 matchSymbolName(Global->getName(), TranslateOnly))
116 GlobalLowering->lower(*Global); 118 GlobalLowering->lower(*Global);
117 } 119 }
118 GlobalLowering.reset(); 120 GlobalLowering.reset();
119 } 121 }
OLDNEW
« no previous file with comments | « src/IceTargetLoweringX8632.cpp ('k') | tests_lit/llvm2ice_tests/ebp_args.ll » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698