| OLD | NEW |
| 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 Loading... |
| 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 } |
| OLD | NEW |