| 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 128 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 139 | 139 |
| 140 cl::opt<bool> ShouldDoNopInsertion("nop-insertion", | 140 cl::opt<bool> ShouldDoNopInsertion("nop-insertion", |
| 141 cl::desc("Randomly insert NOPs"), | 141 cl::desc("Randomly insert NOPs"), |
| 142 cl::init(false)); | 142 cl::init(false)); |
| 143 | 143 |
| 144 cl::opt<bool> | 144 cl::opt<bool> |
| 145 RandomizeRegisterAllocation("randomize-regalloc", | 145 RandomizeRegisterAllocation("randomize-regalloc", |
| 146 cl::desc("Randomize register allocation"), | 146 cl::desc("Randomize register allocation"), |
| 147 cl::init(false)); | 147 cl::init(false)); |
| 148 | 148 |
| 149 cl::opt<bool> |
| 150 RepeatRegAlloc("regalloc-repeat", |
| 151 cl::desc("Repeat register allocation until convergence"), |
| 152 cl::init(true)); |
| 153 |
| 149 cl::opt<bool> SkipUnimplemented( | 154 cl::opt<bool> SkipUnimplemented( |
| 150 "skip-unimplemented", | 155 "skip-unimplemented", |
| 151 cl::desc("Skip through unimplemented lowering code instead of aborting."), | 156 cl::desc("Skip through unimplemented lowering code instead of aborting."), |
| 152 cl::init(false)); | 157 cl::init(false)); |
| 153 | 158 |
| 154 cl::opt<bool> SubzeroTimingEnabled( | 159 cl::opt<bool> SubzeroTimingEnabled( |
| 155 "timing", cl::desc("Enable breakdown timing of Subzero translation")); | 160 "timing", cl::desc("Enable breakdown timing of Subzero translation")); |
| 156 | 161 |
| 157 cl::opt<Ice::TargetArch> TargetArch( | 162 cl::opt<Ice::TargetArch> TargetArch( |
| 158 "target", cl::desc("Target architecture:"), cl::init(Ice::Target_X8632), | 163 "target", cl::desc("Target architecture:"), cl::init(Ice::Target_X8632), |
| (...skipping 217 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 376 OutFlags.DisableTranslation = false; | 381 OutFlags.DisableTranslation = false; |
| 377 OutFlags.DumpStats = false; | 382 OutFlags.DumpStats = false; |
| 378 OutFlags.EnableBlockProfile = false; | 383 OutFlags.EnableBlockProfile = false; |
| 379 OutFlags.ForceMemIntrinOpt = false; | 384 OutFlags.ForceMemIntrinOpt = false; |
| 380 OutFlags.FunctionSections = false; | 385 OutFlags.FunctionSections = false; |
| 381 OutFlags.GenerateUnitTestMessages = false; | 386 OutFlags.GenerateUnitTestMessages = false; |
| 382 OutFlags.MockBoundsCheck = false; | 387 OutFlags.MockBoundsCheck = false; |
| 383 OutFlags.PhiEdgeSplit = false; | 388 OutFlags.PhiEdgeSplit = false; |
| 384 OutFlags.RandomNopInsertion = false; | 389 OutFlags.RandomNopInsertion = false; |
| 385 OutFlags.RandomRegAlloc = false; | 390 OutFlags.RandomRegAlloc = false; |
| 391 OutFlags.RepeatRegAlloc = false; |
| 386 OutFlags.ReorderBasicBlocks = false; | 392 OutFlags.ReorderBasicBlocks = false; |
| 387 OutFlags.ReorderFunctions = false; | 393 OutFlags.ReorderFunctions = false; |
| 388 OutFlags.ReorderGlobalVariables = false; | 394 OutFlags.ReorderGlobalVariables = false; |
| 389 OutFlags.ReorderPooledConstants = false; | 395 OutFlags.ReorderPooledConstants = false; |
| 390 OutFlags.SkipUnimplemented = false; | 396 OutFlags.SkipUnimplemented = false; |
| 391 OutFlags.SubzeroTimingEnabled = false; | 397 OutFlags.SubzeroTimingEnabled = false; |
| 392 OutFlags.TimeEachFunction = false; | 398 OutFlags.TimeEachFunction = false; |
| 393 OutFlags.UseSandboxing = false; | 399 OutFlags.UseSandboxing = false; |
| 394 // Enum and integer fields. | 400 // Enum and integer fields. |
| 395 OutFlags.Opt = Opt_m1; | 401 OutFlags.Opt = Opt_m1; |
| (...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 448 OutFlags.setPhiEdgeSplit(::EnablePhiEdgeSplit); | 454 OutFlags.setPhiEdgeSplit(::EnablePhiEdgeSplit); |
| 449 OutFlags.setRandomSeed(::RandomSeed); | 455 OutFlags.setRandomSeed(::RandomSeed); |
| 450 OutFlags.setRandomizeAndPoolImmediatesOption( | 456 OutFlags.setRandomizeAndPoolImmediatesOption( |
| 451 ::RandomizeAndPoolImmediatesOption); | 457 ::RandomizeAndPoolImmediatesOption); |
| 452 OutFlags.setRandomizeAndPoolImmediatesThreshold( | 458 OutFlags.setRandomizeAndPoolImmediatesThreshold( |
| 453 ::RandomizeAndPoolImmediatesThreshold); | 459 ::RandomizeAndPoolImmediatesThreshold); |
| 454 OutFlags.setReorderFunctionsWindowSize(::ReorderFunctionsWindowSize); | 460 OutFlags.setReorderFunctionsWindowSize(::ReorderFunctionsWindowSize); |
| 455 OutFlags.setShouldReorderBasicBlocks(::ReorderBasicBlocks); | 461 OutFlags.setShouldReorderBasicBlocks(::ReorderBasicBlocks); |
| 456 OutFlags.setShouldDoNopInsertion(::ShouldDoNopInsertion); | 462 OutFlags.setShouldDoNopInsertion(::ShouldDoNopInsertion); |
| 457 OutFlags.setShouldRandomizeRegAlloc(::RandomizeRegisterAllocation); | 463 OutFlags.setShouldRandomizeRegAlloc(::RandomizeRegisterAllocation); |
| 464 OutFlags.setShouldRepeatRegAlloc(::RepeatRegAlloc); |
| 458 OutFlags.setShouldReorderFunctions(::ReorderFunctions); | 465 OutFlags.setShouldReorderFunctions(::ReorderFunctions); |
| 459 OutFlags.setShouldReorderGlobalVariables(::ReorderGlobalVariables); | 466 OutFlags.setShouldReorderGlobalVariables(::ReorderGlobalVariables); |
| 460 OutFlags.setShouldReorderPooledConstants(::ReorderPooledConstants); | 467 OutFlags.setShouldReorderPooledConstants(::ReorderPooledConstants); |
| 461 OutFlags.setSkipUnimplemented(::SkipUnimplemented); | 468 OutFlags.setSkipUnimplemented(::SkipUnimplemented); |
| 462 OutFlags.setSubzeroTimingEnabled(::SubzeroTimingEnabled); | 469 OutFlags.setSubzeroTimingEnabled(::SubzeroTimingEnabled); |
| 463 OutFlags.setTargetArch(::TargetArch); | 470 OutFlags.setTargetArch(::TargetArch); |
| 464 OutFlags.setTargetInstructionSet(::TargetInstructionSet); | 471 OutFlags.setTargetInstructionSet(::TargetInstructionSet); |
| 465 OutFlags.setTestPrefix(::TestPrefix); | 472 OutFlags.setTestPrefix(::TestPrefix); |
| 466 OutFlags.setTestStackExtra(::TestStackExtra); | 473 OutFlags.setTestStackExtra(::TestStackExtra); |
| 467 OutFlags.setTimeEachFunction(::TimeEachFunction); | 474 OutFlags.setTimeEachFunction(::TimeEachFunction); |
| (...skipping 14 matching lines...) Expand all Loading... |
| 482 OutFlagsExtra.setGenerateBuildAtts(GenerateBuildAtts); | 489 OutFlagsExtra.setGenerateBuildAtts(GenerateBuildAtts); |
| 483 OutFlagsExtra.setLLVMVerboseErrors(LLVMVerboseErrors); | 490 OutFlagsExtra.setLLVMVerboseErrors(LLVMVerboseErrors); |
| 484 OutFlagsExtra.setAppName(AppName); | 491 OutFlagsExtra.setAppName(AppName); |
| 485 OutFlagsExtra.setInputFileFormat(InputFileFormat); | 492 OutFlagsExtra.setInputFileFormat(InputFileFormat); |
| 486 OutFlagsExtra.setIRFilename(IRFilename); | 493 OutFlagsExtra.setIRFilename(IRFilename); |
| 487 OutFlagsExtra.setLogFilename(LogFilename); | 494 OutFlagsExtra.setLogFilename(LogFilename); |
| 488 OutFlagsExtra.setOutputFilename(OutputFilename); | 495 OutFlagsExtra.setOutputFilename(OutputFilename); |
| 489 } | 496 } |
| 490 | 497 |
| 491 } // end of namespace Ice | 498 } // end of namespace Ice |
| OLD | NEW |