| 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 29 matching lines...) Expand all Loading... |
| 40 clEnumValN(Ice::IceV_InstNumbers, "instnum", | 40 clEnumValN(Ice::IceV_InstNumbers, "instnum", |
| 41 "Print instruction numbers"), | 41 "Print instruction numbers"), |
| 42 clEnumValN(Ice::IceV_Preds, "pred", "Show predecessors"), | 42 clEnumValN(Ice::IceV_Preds, "pred", "Show predecessors"), |
| 43 clEnumValN(Ice::IceV_Succs, "succ", "Show successors"), | 43 clEnumValN(Ice::IceV_Succs, "succ", "Show successors"), |
| 44 clEnumValN(Ice::IceV_Liveness, "live", "Liveness information"), | 44 clEnumValN(Ice::IceV_Liveness, "live", "Liveness information"), |
| 45 clEnumValN(Ice::IceV_RegManager, "rmgr", "Register manager status"), | 45 clEnumValN(Ice::IceV_RegManager, "rmgr", "Register manager status"), |
| 46 clEnumValN(Ice::IceV_RegOrigins, "orig", "Physical register origins"), | 46 clEnumValN(Ice::IceV_RegOrigins, "orig", "Physical register origins"), |
| 47 clEnumValN(Ice::IceV_LinearScan, "regalloc", "Linear scan details"), | 47 clEnumValN(Ice::IceV_LinearScan, "regalloc", "Linear scan details"), |
| 48 clEnumValN(Ice::IceV_Frame, "frame", "Stack frame layout details"), | 48 clEnumValN(Ice::IceV_Frame, "frame", "Stack frame layout details"), |
| 49 clEnumValN(Ice::IceV_AddrOpt, "addropt", "Address mode optimization"), | 49 clEnumValN(Ice::IceV_AddrOpt, "addropt", "Address mode optimization"), |
| 50 clEnumValN(Ice::IceV_Random, "random", "Randomization details"), |
| 50 clEnumValN(Ice::IceV_All, "all", "Use all verbose options"), | 51 clEnumValN(Ice::IceV_All, "all", "Use all verbose options"), |
| 51 clEnumValN(Ice::IceV_Most, "most", | 52 clEnumValN(Ice::IceV_Most, "most", |
| 52 "Use all verbose options except 'regalloc' and 'time'"), | 53 "Use all verbose options except 'regalloc' and 'time'"), |
| 53 clEnumValN(Ice::IceV_None, "none", "No verbosity"), clEnumValEnd)); | 54 clEnumValN(Ice::IceV_None, "none", "No verbosity"), clEnumValEnd)); |
| 54 static cl::opt<Ice::TargetArch> TargetArch( | 55 static cl::opt<Ice::TargetArch> TargetArch( |
| 55 "target", cl::desc("Target architecture:"), cl::init(Ice::Target_X8632), | 56 "target", cl::desc("Target architecture:"), cl::init(Ice::Target_X8632), |
| 56 cl::values( | 57 cl::values( |
| 57 clEnumValN(Ice::Target_X8632, "x8632", "x86-32"), | 58 clEnumValN(Ice::Target_X8632, "x8632", "x86-32"), |
| 58 clEnumValN(Ice::Target_X8632, "x86-32", "x86-32 (same as x8632)"), | 59 clEnumValN(Ice::Target_X8632, "x86-32", "x86-32 (same as x8632)"), |
| 59 clEnumValN(Ice::Target_X8632, "x86_32", "x86-32 (same as x8632)"), | 60 clEnumValN(Ice::Target_X8632, "x86_32", "x86-32 (same as x8632)"), |
| (...skipping 316 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 376 if (SubzeroTimingEnabled) | 377 if (SubzeroTimingEnabled) |
| 377 Ctx.dumpTimers(); | 378 Ctx.dumpTimers(); |
| 378 if (TimeEachFunction) { | 379 if (TimeEachFunction) { |
| 379 const bool DumpCumulative = false; | 380 const bool DumpCumulative = false; |
| 380 Ctx.dumpTimers(Ice::GlobalContext::TSK_Funcs, DumpCumulative); | 381 Ctx.dumpTimers(Ice::GlobalContext::TSK_Funcs, DumpCumulative); |
| 381 } | 382 } |
| 382 const bool FinalStats = true; | 383 const bool FinalStats = true; |
| 383 Ctx.dumpStats("_FINAL_", FinalStats); | 384 Ctx.dumpStats("_FINAL_", FinalStats); |
| 384 return GetReturnValue(ErrorStatus); | 385 return GetReturnValue(ErrorStatus); |
| 385 } | 386 } |
| OLD | NEW |