| 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 // This file defines commandline flags parsing. | 10 // This file defines commandline flags parsing. |
| (...skipping 124 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 135 clEnumValN(Ice::Target_X8664, "x86-64", "x86-64 (same as x8664)"), | 135 clEnumValN(Ice::Target_X8664, "x86-64", "x86-64 (same as x8664)"), |
| 136 clEnumValN(Ice::Target_X8664, "x86_64", "x86-64 (same as x8664)"), | 136 clEnumValN(Ice::Target_X8664, "x86_64", "x86-64 (same as x8664)"), |
| 137 clEnumValN(Ice::Target_ARM32, "arm", "arm32"), | 137 clEnumValN(Ice::Target_ARM32, "arm", "arm32"), |
| 138 clEnumValN(Ice::Target_ARM32, "arm32", "arm32 (same as arm)"), | 138 clEnumValN(Ice::Target_ARM32, "arm32", "arm32 (same as arm)"), |
| 139 clEnumValN(Ice::Target_ARM64, "arm64", "arm64"), | 139 clEnumValN(Ice::Target_ARM64, "arm64", "arm64"), |
| 140 clEnumValN(Ice::Target_MIPS32, "mips", "mips32"), | 140 clEnumValN(Ice::Target_MIPS32, "mips", "mips32"), |
| 141 clEnumValN(Ice::Target_MIPS32, "mips32", "mips32 (same as mips)"), | 141 clEnumValN(Ice::Target_MIPS32, "mips32", "mips32 (same as mips)"), |
| 142 clEnumValEnd)); | 142 clEnumValEnd)); |
| 143 cl::opt<Ice::TargetInstructionSet> TargetInstructionSet( | 143 cl::opt<Ice::TargetInstructionSet> TargetInstructionSet( |
| 144 "mattr", cl::desc("Target architecture attributes"), | 144 "mattr", cl::desc("Target architecture attributes"), |
| 145 cl::init(Ice::X86InstructionSet_SSE2), | 145 cl::init(Ice::BaseInstructionSet), |
| 146 cl::values(clEnumValN(Ice::X86InstructionSet_SSE2, "sse2", | 146 cl::values(clEnumValN(Ice::BaseInstructionSet, "base", |
| 147 "Enable SSE2 instructions (default)"), | 147 "Target chooses baseline instruction set (default)"), |
| 148 clEnumValN(Ice::X86InstructionSet_SSE2, "sse2", |
| 149 "Enable X86 SSE2 instructions"), |
| 148 clEnumValN(Ice::X86InstructionSet_SSE4_1, "sse4.1", | 150 clEnumValN(Ice::X86InstructionSet_SSE4_1, "sse4.1", |
| 149 "Enable SSE 4.1 instructions"), | 151 "Enable X86 SSE 4.1 instructions"), |
| 152 clEnumValN(Ice::ARM32InstructionSet_Neon, "neon", |
| 153 "Enable ARM Neon instructions"), |
| 154 clEnumValN(Ice::ARM32InstructionSet_HWDivArm, "hwdiv-arm", |
| 155 "Enable ARM integer divide instructions in ARM mode"), |
| 150 clEnumValEnd)); | 156 clEnumValEnd)); |
| 151 cl::opt<std::string> | 157 cl::opt<std::string> |
| 152 TestPrefix("prefix", | 158 TestPrefix("prefix", |
| 153 cl::desc("Prepend a prefix to symbol names for testing"), | 159 cl::desc("Prepend a prefix to symbol names for testing"), |
| 154 cl::init(""), cl::value_desc("prefix")); | 160 cl::init(""), cl::value_desc("prefix")); |
| 155 | 161 |
| 156 cl::opt<bool> TimeEachFunction( | 162 cl::opt<bool> TimeEachFunction( |
| 157 "timing-funcs", cl::desc("Print total translation time for each function")); | 163 "timing-funcs", cl::desc("Print total translation time for each function")); |
| 158 | 164 |
| 159 cl::opt<std::string> TimingFocusOn( | 165 cl::opt<std::string> TimingFocusOn( |
| (...skipping 191 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 351 OutFlagsExtra.setGenerateBuildAtts(GenerateBuildAtts); | 357 OutFlagsExtra.setGenerateBuildAtts(GenerateBuildAtts); |
| 352 OutFlagsExtra.setLLVMVerboseErrors(LLVMVerboseErrors); | 358 OutFlagsExtra.setLLVMVerboseErrors(LLVMVerboseErrors); |
| 353 OutFlagsExtra.setAppName(AppName); | 359 OutFlagsExtra.setAppName(AppName); |
| 354 OutFlagsExtra.setInputFileFormat(InputFileFormat); | 360 OutFlagsExtra.setInputFileFormat(InputFileFormat); |
| 355 OutFlagsExtra.setIRFilename(IRFilename); | 361 OutFlagsExtra.setIRFilename(IRFilename); |
| 356 OutFlagsExtra.setLogFilename(LogFilename); | 362 OutFlagsExtra.setLogFilename(LogFilename); |
| 357 OutFlagsExtra.setOutputFilename(OutputFilename); | 363 OutFlagsExtra.setOutputFilename(OutputFilename); |
| 358 } | 364 } |
| 359 | 365 |
| 360 } // end of namespace Ice | 366 } // end of namespace Ice |
| OLD | NEW |