| 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 111 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 122 static cl::opt<bool> | 122 static cl::opt<bool> |
| 123 EnablePhiEdgeSplit("phi-edge-split", | 123 EnablePhiEdgeSplit("phi-edge-split", |
| 124 cl::desc("Enable edge splitting for Phi lowering"), | 124 cl::desc("Enable edge splitting for Phi lowering"), |
| 125 cl::init(true)); | 125 cl::init(true)); |
| 126 | 126 |
| 127 static cl::opt<bool> DecorateAsm( | 127 static cl::opt<bool> DecorateAsm( |
| 128 "asm-verbose", | 128 "asm-verbose", |
| 129 cl::desc("Decorate textual asm output with register liveness info")); | 129 cl::desc("Decorate textual asm output with register liveness info")); |
| 130 | 130 |
| 131 static cl::opt<bool> | 131 static cl::opt<bool> |
| 132 DumpStats("stats", | 132 DumpStats("szstats", |
| 133 cl::desc("Print statistics after translating each function")); | 133 cl::desc("Print statistics after translating each function")); |
| 134 | 134 |
| 135 // This is currently needed by crosstest.py. | 135 // This is currently needed by crosstest.py. |
| 136 static cl::opt<bool> AllowUninitializedGlobals( | 136 static cl::opt<bool> AllowUninitializedGlobals( |
| 137 "allow-uninitialized-globals", | 137 "allow-uninitialized-globals", |
| 138 cl::desc("Allow global variables to be uninitialized")); | 138 cl::desc("Allow global variables to be uninitialized")); |
| 139 | 139 |
| 140 static cl::opt<NaClFileFormat> InputFileFormat( | 140 static cl::opt<NaClFileFormat> InputFileFormat( |
| 141 "bitcode-format", cl::desc("Define format of input file:"), | 141 "bitcode-format", cl::desc("Define format of input file:"), |
| 142 cl::values(clEnumValN(LLVMFormat, "llvm", "LLVM file (default)"), | 142 cl::values(clEnumValN(LLVMFormat, "llvm", "LLVM file (default)"), |
| (...skipping 184 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 327 if (SubzeroTimingEnabled) | 327 if (SubzeroTimingEnabled) |
| 328 Ctx.dumpTimers(); | 328 Ctx.dumpTimers(); |
| 329 if (TimeEachFunction) { | 329 if (TimeEachFunction) { |
| 330 const bool DumpCumulative = false; | 330 const bool DumpCumulative = false; |
| 331 Ctx.dumpTimers(Ice::GlobalContext::TSK_Funcs, DumpCumulative); | 331 Ctx.dumpTimers(Ice::GlobalContext::TSK_Funcs, DumpCumulative); |
| 332 } | 332 } |
| 333 const bool FinalStats = true; | 333 const bool FinalStats = true; |
| 334 Ctx.dumpStats("_FINAL_", FinalStats); | 334 Ctx.dumpStats("_FINAL_", FinalStats); |
| 335 return GetReturnValue(ErrorStatus); | 335 return GetReturnValue(ErrorStatus); |
| 336 } | 336 } |
| OLD | NEW |