| OLD | NEW |
| 1 //===- subzero/src/IceClFlags.cpp - Command line flags and parsing --------===// | 1 //===- subzero/src/IceClFlags.cpp - Command line flags and parsing --------===// |
| 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 /// \file | 10 /// \file |
| (...skipping 22 matching lines...) Expand all Loading... |
| 33 "allow-pnacl-reader-error-recovery", | 33 "allow-pnacl-reader-error-recovery", |
| 34 cl::desc("Allow error recovery when reading PNaCl bitcode."), | 34 cl::desc("Allow error recovery when reading PNaCl bitcode."), |
| 35 cl::init(false)); | 35 cl::init(false)); |
| 36 | 36 |
| 37 cl::opt<bool> AllowExternDefinedSymbols( | 37 cl::opt<bool> AllowExternDefinedSymbols( |
| 38 "allow-externally-defined-symbols", | 38 "allow-externally-defined-symbols", |
| 39 cl::desc("Allow global symbols to be externally defined (other than _start " | 39 cl::desc("Allow global symbols to be externally defined (other than _start " |
| 40 "and __pnacl_pso_root)."), | 40 "and __pnacl_pso_root)."), |
| 41 cl::init(false)); | 41 cl::init(false)); |
| 42 | 42 |
| 43 cl::alias AllowExternDefinedSymbolsA( |
| 44 "allow-extern", cl::desc("Alias for --allow-externally-defined-symbols"), |
| 45 cl::NotHidden, cl::aliasopt(AllowExternDefinedSymbols)); |
| 46 |
| 43 cl::opt<bool> AllowIacaMarks( | 47 cl::opt<bool> AllowIacaMarks( |
| 44 "allow-iaca-marks", | 48 "allow-iaca-marks", |
| 45 cl::desc("Allow IACA (Intel Architecture Code Analyzer) marks to be " | 49 cl::desc("Allow IACA (Intel Architecture Code Analyzer) marks to be " |
| 46 "inserted. These binaries are not executable."), | 50 "inserted. These binaries are not executable."), |
| 47 cl::init(false)); | 51 cl::init(false)); |
| 48 | 52 |
| 49 // This is currently needed by crosstest.py. | 53 // This is currently needed by crosstest.py. |
| 50 cl::opt<bool> AllowUninitializedGlobals( | 54 cl::opt<bool> AllowUninitializedGlobals( |
| 51 "allow-uninitialized-globals", | 55 "allow-uninitialized-globals", |
| 52 cl::desc("Allow global variables to be uninitialized")); | 56 cl::desc("Allow global variables to be uninitialized")); |
| (...skipping 156 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 209 cl::init("")); | 213 cl::init("")); |
| 210 | 214 |
| 211 cl::opt<std::string> | 215 cl::opt<std::string> |
| 212 TranslateOnly("translate-only", | 216 TranslateOnly("translate-only", |
| 213 cl::desc("Translate only the given function"), cl::init("")); | 217 cl::desc("Translate only the given function"), cl::init("")); |
| 214 | 218 |
| 215 cl::opt<bool> UseSandboxing("sandbox", cl::desc("Use sandboxing")); | 219 cl::opt<bool> UseSandboxing("sandbox", cl::desc("Use sandboxing")); |
| 216 | 220 |
| 217 cl::opt<std::string> VerboseFocusOn( | 221 cl::opt<std::string> VerboseFocusOn( |
| 218 "verbose-focus", | 222 "verbose-focus", |
| 219 cl::desc("Temporarily enable full verbosity for a specific function"), | 223 cl::desc("Override with -verbose=none except for the specified function"), |
| 220 cl::init("")); | 224 cl::init("")); |
| 221 | 225 |
| 222 cl::opt<Ice::FileType> OutFileType( | 226 cl::opt<Ice::FileType> OutFileType( |
| 223 "filetype", cl::desc("Output file type"), cl::init(Ice::FT_Iasm), | 227 "filetype", cl::desc("Output file type"), cl::init(Ice::FT_Iasm), |
| 224 cl::values(clEnumValN(Ice::FT_Elf, "obj", "Native ELF object ('.o') file"), | 228 cl::values(clEnumValN(Ice::FT_Elf, "obj", "Native ELF object ('.o') file"), |
| 225 clEnumValN(Ice::FT_Asm, "asm", "Assembly ('.s') file"), | 229 clEnumValN(Ice::FT_Asm, "asm", "Assembly ('.s') file"), |
| 226 clEnumValN(Ice::FT_Iasm, "iasm", | 230 clEnumValN(Ice::FT_Iasm, "iasm", |
| 227 "Low-level integrated assembly ('.s') file"), | 231 "Low-level integrated assembly ('.s') file"), |
| 228 clEnumValEnd)); | 232 clEnumValEnd)); |
| 229 | 233 |
| (...skipping 259 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 489 OutFlagsExtra.setGenerateBuildAtts(GenerateBuildAtts); | 493 OutFlagsExtra.setGenerateBuildAtts(GenerateBuildAtts); |
| 490 OutFlagsExtra.setLLVMVerboseErrors(LLVMVerboseErrors); | 494 OutFlagsExtra.setLLVMVerboseErrors(LLVMVerboseErrors); |
| 491 OutFlagsExtra.setAppName(AppName); | 495 OutFlagsExtra.setAppName(AppName); |
| 492 OutFlagsExtra.setInputFileFormat(InputFileFormat); | 496 OutFlagsExtra.setInputFileFormat(InputFileFormat); |
| 493 OutFlagsExtra.setIRFilename(IRFilename); | 497 OutFlagsExtra.setIRFilename(IRFilename); |
| 494 OutFlagsExtra.setLogFilename(LogFilename); | 498 OutFlagsExtra.setLogFilename(LogFilename); |
| 495 OutFlagsExtra.setOutputFilename(OutputFilename); | 499 OutFlagsExtra.setOutputFilename(OutputFilename); |
| 496 } | 500 } |
| 497 | 501 |
| 498 } // end of namespace Ice | 502 } // end of namespace Ice |
| OLD | NEW |