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

Side by Side Diff: src/llvm2ice.cpp

Issue 688543003: Add timing of bitcode parser to Subzero. (Closed) Base URL: https://chromium.googlesource.com/native_client/pnacl-subzero.git@master
Patch Set: Fix formatting. 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/PNaClTranslator.cpp ('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 //===- subzero/src/llvm2ice.cpp - Driver for testing ----------------------===// 1 //===- subzero/src/llvm2ice.cpp - Driver for testing ----------------------===//
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 a driver that uses LLVM capabilities to parse a 10 // This file defines a driver that uses LLVM capabilities to parse a
(...skipping 277 matching lines...) Expand 10 before | Expand all | Expand 10 after
288 } 288 }
289 289
290 Ice::Converter Converter(Mod, &Ctx, Flags); 290 Ice::Converter Converter(Mod, &Ctx, Flags);
291 Converter.convertToIce(); 291 Converter.convertToIce();
292 ErrorStatus = Converter.getErrorStatus(); 292 ErrorStatus = Converter.getErrorStatus();
293 } else { 293 } else {
294 *Ls << "Error: Build doesn't allow LLVM IR, " 294 *Ls << "Error: Build doesn't allow LLVM IR, "
295 << "--build-on-read=0 not allowed\n"; 295 << "--build-on-read=0 not allowed\n";
296 return GetReturnValue(1); 296 return GetReturnValue(1);
297 } 297 }
298 if (SubzeroTimingEnabled)
299 Ctx.dumpTimers();
298 if (TimeEachFunction) { 300 if (TimeEachFunction) {
299 const bool DumpCumulative = false; 301 const bool DumpCumulative = false;
300 Ctx.dumpTimers(Ice::GlobalContext::TSK_Funcs, DumpCumulative); 302 Ctx.dumpTimers(Ice::GlobalContext::TSK_Funcs, DumpCumulative);
301 } 303 }
302 if (SubzeroTimingEnabled)
303 Ctx.dumpTimers();
304 const bool FinalStats = true; 304 const bool FinalStats = true;
305 Ctx.dumpStats("_FINAL_", FinalStats); 305 Ctx.dumpStats("_FINAL_", FinalStats);
306 return GetReturnValue(ErrorStatus); 306 return GetReturnValue(ErrorStatus);
307 } 307 }
OLDNEW
« no previous file with comments | « src/PNaClTranslator.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698