Chromium Code Reviews| 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 158 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 169 | 169 |
| 170 cl::opt<std::string> TimingFocusOn( | 170 cl::opt<std::string> TimingFocusOn( |
| 171 "timing-focus", | 171 "timing-focus", |
| 172 cl::desc("Break down timing for a specific function (use '*' for all)"), | 172 cl::desc("Break down timing for a specific function (use '*' for all)"), |
| 173 cl::init("")); | 173 cl::init("")); |
| 174 | 174 |
| 175 cl::opt<std::string> | 175 cl::opt<std::string> |
| 176 TranslateOnly("translate-only", | 176 TranslateOnly("translate-only", |
| 177 cl::desc("Translate only the given function"), cl::init("")); | 177 cl::desc("Translate only the given function"), cl::init("")); |
| 178 | 178 |
| 179 cl::opt<bool> | |
| 180 UseAdvancedSwitchLowering("adv-switch", | |
| 181 cl::desc("Use advanced switch lowering")); | |
| 182 | |
| 179 cl::opt<bool> UseSandboxing("sandbox", cl::desc("Use sandboxing")); | 183 cl::opt<bool> UseSandboxing("sandbox", cl::desc("Use sandboxing")); |
| 180 | 184 |
| 181 cl::opt<std::string> VerboseFocusOn( | 185 cl::opt<std::string> VerboseFocusOn( |
| 182 "verbose-focus", | 186 "verbose-focus", |
| 183 cl::desc("Temporarily enable full verbosity for a specific function"), | 187 cl::desc("Temporarily enable full verbosity for a specific function"), |
| 184 cl::init("")); | 188 cl::init("")); |
| 185 | 189 |
| 186 cl::opt<Ice::FileType> OutFileType( | 190 cl::opt<Ice::FileType> OutFileType( |
| 187 "filetype", cl::desc("Output file type"), cl::init(Ice::FT_Iasm), | 191 "filetype", cl::desc("Output file type"), cl::init(Ice::FT_Iasm), |
| 188 cl::values(clEnumValN(Ice::FT_Elf, "obj", "Native ELF object ('.o') file"), | 192 cl::values(clEnumValN(Ice::FT_Elf, "obj", "Native ELF object ('.o') file"), |
| (...skipping 145 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 334 OutFlags.GenerateUnitTestMessages = false; | 338 OutFlags.GenerateUnitTestMessages = false; |
| 335 OutFlags.PhiEdgeSplit = false; | 339 OutFlags.PhiEdgeSplit = false; |
| 336 OutFlags.RandomNopInsertion = false; | 340 OutFlags.RandomNopInsertion = false; |
| 337 OutFlags.RandomRegAlloc = false; | 341 OutFlags.RandomRegAlloc = false; |
| 338 OutFlags.ReorderFunctions = false; | 342 OutFlags.ReorderFunctions = false; |
| 339 OutFlags.ReorderGlobalVariables = false; | 343 OutFlags.ReorderGlobalVariables = false; |
| 340 OutFlags.ReorderPooledConstants = false; | 344 OutFlags.ReorderPooledConstants = false; |
| 341 OutFlags.SkipUnimplemented = false; | 345 OutFlags.SkipUnimplemented = false; |
| 342 OutFlags.SubzeroTimingEnabled = false; | 346 OutFlags.SubzeroTimingEnabled = false; |
| 343 OutFlags.TimeEachFunction = false; | 347 OutFlags.TimeEachFunction = false; |
| 348 OutFlags.UseAdvancedSwitchLowering = false; | |
| 344 OutFlags.UseSandboxing = false; | 349 OutFlags.UseSandboxing = false; |
| 345 // Enum and integer fields. | 350 // Enum and integer fields. |
| 346 OutFlags.Opt = Opt_m1; | 351 OutFlags.Opt = Opt_m1; |
| 347 OutFlags.OutFileType = FT_Iasm; | 352 OutFlags.OutFileType = FT_Iasm; |
| 348 OutFlags.RandomMaxNopsPerInstruction = 0; | 353 OutFlags.RandomMaxNopsPerInstruction = 0; |
| 349 OutFlags.RandomNopProbabilityAsPercentage = 0; | 354 OutFlags.RandomNopProbabilityAsPercentage = 0; |
| 350 OutFlags.RandomizeAndPoolImmediatesOption = RPI_None; | 355 OutFlags.RandomizeAndPoolImmediatesOption = RPI_None; |
| 351 OutFlags.RandomizeAndPoolImmediatesThreshold = 0xffff; | 356 OutFlags.RandomizeAndPoolImmediatesThreshold = 0xffff; |
| 352 OutFlags.ReorderFunctionsWindowSize = 8; | 357 OutFlags.ReorderFunctionsWindowSize = 8; |
| 353 OutFlags.TArch = TargetArch_NUM; | 358 OutFlags.TArch = TargetArch_NUM; |
| (...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 396 OutFlags.setShouldRandomizeRegAlloc(::RandomizeRegisterAllocation); | 401 OutFlags.setShouldRandomizeRegAlloc(::RandomizeRegisterAllocation); |
| 397 OutFlags.setSkipUnimplemented(::SkipUnimplemented); | 402 OutFlags.setSkipUnimplemented(::SkipUnimplemented); |
| 398 OutFlags.setSubzeroTimingEnabled(::SubzeroTimingEnabled); | 403 OutFlags.setSubzeroTimingEnabled(::SubzeroTimingEnabled); |
| 399 OutFlags.setTargetArch(::TargetArch); | 404 OutFlags.setTargetArch(::TargetArch); |
| 400 OutFlags.setTargetInstructionSet(::TargetInstructionSet); | 405 OutFlags.setTargetInstructionSet(::TargetInstructionSet); |
| 401 OutFlags.setTestPrefix(::TestPrefix); | 406 OutFlags.setTestPrefix(::TestPrefix); |
| 402 OutFlags.setTimeEachFunction(::TimeEachFunction); | 407 OutFlags.setTimeEachFunction(::TimeEachFunction); |
| 403 OutFlags.setTimingFocusOn(::TimingFocusOn); | 408 OutFlags.setTimingFocusOn(::TimingFocusOn); |
| 404 OutFlags.setTranslateOnly(::TranslateOnly); | 409 OutFlags.setTranslateOnly(::TranslateOnly); |
| 405 OutFlags.setUseSandboxing(::UseSandboxing); | 410 OutFlags.setUseSandboxing(::UseSandboxing); |
| 411 OutFlags.setUseAdvancedSwitchLowering(::UseAdvancedSwitchLowering); | |
|
jvoung (off chromium)
2015/07/16 22:27:49
could swap with UseSandboxing here too for alphabe
ascull
2015/07/16 22:55:43
Done.
| |
| 406 OutFlags.setVerboseFocusOn(::VerboseFocusOn); | 412 OutFlags.setVerboseFocusOn(::VerboseFocusOn); |
| 407 OutFlags.setOutFileType(::OutFileType); | 413 OutFlags.setOutFileType(::OutFileType); |
| 408 OutFlags.setMaxNopsPerInstruction(::MaxNopsPerInstruction); | 414 OutFlags.setMaxNopsPerInstruction(::MaxNopsPerInstruction); |
| 409 OutFlags.setNopProbabilityAsPercentage(::NopProbabilityAsPercentage); | 415 OutFlags.setNopProbabilityAsPercentage(::NopProbabilityAsPercentage); |
| 410 OutFlags.setVerbose(VMask); | 416 OutFlags.setVerbose(VMask); |
| 411 | 417 |
| 412 // Set for immediates randomization or pooling option. | 418 // Set for immediates randomization or pooling option. |
| 413 OutFlags.setRandomizeAndPoolImmediatesOption( | 419 OutFlags.setRandomizeAndPoolImmediatesOption( |
| 414 ::RandomizeAndPoolImmediatesOption); | 420 ::RandomizeAndPoolImmediatesOption); |
| 415 OutFlags.setRandomizeAndPoolImmediatesThreshold( | 421 OutFlags.setRandomizeAndPoolImmediatesThreshold( |
| (...skipping 16 matching lines...) Expand all Loading... | |
| 432 OutFlagsExtra.setGenerateBuildAtts(GenerateBuildAtts); | 438 OutFlagsExtra.setGenerateBuildAtts(GenerateBuildAtts); |
| 433 OutFlagsExtra.setLLVMVerboseErrors(LLVMVerboseErrors); | 439 OutFlagsExtra.setLLVMVerboseErrors(LLVMVerboseErrors); |
| 434 OutFlagsExtra.setAppName(AppName); | 440 OutFlagsExtra.setAppName(AppName); |
| 435 OutFlagsExtra.setInputFileFormat(InputFileFormat); | 441 OutFlagsExtra.setInputFileFormat(InputFileFormat); |
| 436 OutFlagsExtra.setIRFilename(IRFilename); | 442 OutFlagsExtra.setIRFilename(IRFilename); |
| 437 OutFlagsExtra.setLogFilename(LogFilename); | 443 OutFlagsExtra.setLogFilename(LogFilename); |
| 438 OutFlagsExtra.setOutputFilename(OutputFilename); | 444 OutFlagsExtra.setOutputFilename(OutputFilename); |
| 439 } | 445 } |
| 440 | 446 |
| 441 } // end of namespace Ice | 447 } // end of namespace Ice |
| OLD | NEW |