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

Side by Side Diff: src/IceCompiler.cpp

Issue 1257283004: Iasm and obj lowering for advanced switch lowering. (Closed) Base URL: https://chromium.googlesource.com/native_client/pnacl-subzero.git@master
Patch Set: Fix sandboxing and linking Created 5 years, 4 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 //===- subzero/src/IceCompiler.cpp - Driver for bitcode translation -------===// 1 //===- subzero/src/IceCompiler.cpp - Driver for bitcode translation -------===//
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 /// \file 10 /// \file
(...skipping 136 matching lines...) Expand 10 before | Expand all | Expand 10 after
147 return Ctx.getErrorStatus()->assign(EC_Args); 147 return Ctx.getErrorStatus()->assign(EC_Args);
148 } 148 }
149 149
150 Ctx.waitForWorkerThreads(); 150 Ctx.waitForWorkerThreads();
151 if (Translator->getErrorStatus()) { 151 if (Translator->getErrorStatus()) {
152 Ctx.getErrorStatus()->assign(Translator->getErrorStatus().value()); 152 Ctx.getErrorStatus()->assign(Translator->getErrorStatus().value());
153 } else { 153 } else {
154 Ctx.lowerGlobals("last"); 154 Ctx.lowerGlobals("last");
155 Ctx.lowerProfileData(); 155 Ctx.lowerProfileData();
156 Ctx.lowerConstants(); 156 Ctx.lowerConstants();
157 Ctx.lowerJumpTables();
157 158
158 if (Ctx.getFlags().getOutFileType() == FT_Elf) { 159 if (Ctx.getFlags().getOutFileType() == FT_Elf) {
159 TimerMarker T1(Ice::TimerStack::TT_emit, &Ctx); 160 TimerMarker T1(Ice::TimerStack::TT_emit, &Ctx);
160 Ctx.getObjectWriter()->setUndefinedSyms(Ctx.getConstantExternSyms()); 161 Ctx.getObjectWriter()->setUndefinedSyms(Ctx.getConstantExternSyms());
161 Ctx.getObjectWriter()->writeNonUserSections(); 162 Ctx.getObjectWriter()->writeNonUserSections();
162 } 163 }
163 } 164 }
164 165
165 if (Ctx.getFlags().getSubzeroTimingEnabled()) 166 if (Ctx.getFlags().getSubzeroTimingEnabled())
166 Ctx.dumpTimers(); 167 Ctx.dumpTimers();
167 168
168 if (Ctx.getFlags().getTimeEachFunction()) { 169 if (Ctx.getFlags().getTimeEachFunction()) {
169 const bool DumpCumulative = false; 170 const bool DumpCumulative = false;
170 Ctx.dumpTimers(GlobalContext::TSK_Funcs, DumpCumulative); 171 Ctx.dumpTimers(GlobalContext::TSK_Funcs, DumpCumulative);
171 } 172 }
172 constexpr bool FinalStats = true; 173 constexpr bool FinalStats = true;
173 Ctx.dumpStats("_FINAL_", FinalStats); 174 Ctx.dumpStats("_FINAL_", FinalStats);
174 } 175 }
175 176
176 } // end of namespace Ice 177 } // end of namespace Ice
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698