| 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 67 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 78 cl::desc("Override output filename"), | 78 cl::desc("Override output filename"), |
| 79 cl::init("-"), | 79 cl::init("-"), |
| 80 cl::value_desc("filename")); | 80 cl::value_desc("filename")); |
| 81 static cl::opt<std::string> LogFilename("log", cl::desc("Set log filename"), | 81 static cl::opt<std::string> LogFilename("log", cl::desc("Set log filename"), |
| 82 cl::init("-"), | 82 cl::init("-"), |
| 83 cl::value_desc("filename")); | 83 cl::value_desc("filename")); |
| 84 static cl::opt<std::string> | 84 static cl::opt<std::string> |
| 85 TestPrefix("prefix", cl::desc("Prepend a prefix to symbol names for testing"), | 85 TestPrefix("prefix", cl::desc("Prepend a prefix to symbol names for testing"), |
| 86 cl::init(""), cl::value_desc("prefix")); | 86 cl::init(""), cl::value_desc("prefix")); |
| 87 static cl::opt<bool> | 87 static cl::opt<bool> |
| 88 DisableInternal("external", | 88 DisableInternal("externalize", |
| 89 cl::desc("Disable 'internal' linkage type for testing")); | 89 cl::desc("Externalize all symbols")); |
| 90 static cl::opt<bool> | 90 static cl::opt<bool> |
| 91 DisableTranslation("notranslate", cl::desc("Disable Subzero translation")); | 91 DisableTranslation("notranslate", cl::desc("Disable Subzero translation")); |
| 92 | 92 |
| 93 static cl::opt<bool> SubzeroTimingEnabled( | 93 static cl::opt<bool> SubzeroTimingEnabled( |
| 94 "timing", cl::desc("Enable breakdown timing of Subzero translation")); | 94 "timing", cl::desc("Enable breakdown timing of Subzero translation")); |
| 95 | 95 |
| 96 static cl::opt<bool> | 96 static cl::opt<bool> |
| 97 DisableGlobals("disable-globals", | 97 DisableGlobals("disable-globals", |
| 98 cl::desc("Disable global initializer translation")); | 98 cl::desc("Disable global initializer translation")); |
| 99 | 99 |
| (...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 161 if (!Mod) { | 161 if (!Mod) { |
| 162 Err.print(argv[0], errs()); | 162 Err.print(argv[0], errs()); |
| 163 return 1; | 163 return 1; |
| 164 } | 164 } |
| 165 | 165 |
| 166 Ice::Converter Converter(Mod, &Ctx, Flags); | 166 Ice::Converter Converter(Mod, &Ctx, Flags); |
| 167 Converter.convertToIce(); | 167 Converter.convertToIce(); |
| 168 return Converter.getErrorStatus(); | 168 return Converter.getErrorStatus(); |
| 169 } | 169 } |
| 170 } | 170 } |
| OLD | NEW |