| 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 118 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 129 /// Force optimization of memory intrinsics. | 129 /// Force optimization of memory intrinsics. |
| 130 cl::opt<bool> | 130 cl::opt<bool> |
| 131 ForceMemIntrinOpt("fmem-intrin-opt", | 131 ForceMemIntrinOpt("fmem-intrin-opt", |
| 132 cl::desc("Force optimization of memory intrinsics.")); | 132 cl::desc("Force optimization of memory intrinsics.")); |
| 133 | 133 |
| 134 /// Emit functions into separate sections. | 134 /// Emit functions into separate sections. |
| 135 cl::opt<bool> | 135 cl::opt<bool> |
| 136 FunctionSections("ffunction-sections", | 136 FunctionSections("ffunction-sections", |
| 137 cl::desc("Emit functions into separate sections")); | 137 cl::desc("Emit functions into separate sections")); |
| 138 | 138 |
| 139 /// Retain deleted instructions in the Cfg. Defaults to true in DUMP-enabled |
| 140 /// build, and false in a non-DUMP build, but is ignored in a MINIMAL build. |
| 141 /// This flag allows overriding the default primarily for debugging. |
| 142 cl::opt<bool> |
| 143 KeepDeletedInsts("keep-deleted-insts", |
| 144 cl::desc("Retain deleted instructions in the Cfg"), |
| 145 cl::init(Ice::BuildDefs::dump())); |
| 146 |
| 139 /// Mock bounds checking on loads/stores. | 147 /// Mock bounds checking on loads/stores. |
| 140 cl::opt<bool> MockBoundsCheck("mock-bounds-check", | 148 cl::opt<bool> MockBoundsCheck("mock-bounds-check", |
| 141 cl::desc("Mock bounds checking on loads/stores")); | 149 cl::desc("Mock bounds checking on loads/stores")); |
| 142 | 150 |
| 143 /// Number of translation threads (in addition to the parser thread and the | 151 /// Number of translation threads (in addition to the parser thread and the |
| 144 /// emitter thread). The special case of 0 means purely sequential, i.e. parser, | 152 /// emitter thread). The special case of 0 means purely sequential, i.e. parser, |
| 145 /// translator, and emitter all within the same single thread. (This may need a | 153 /// translator, and emitter all within the same single thread. (This may need a |
| 146 /// slight rework if we expand to multiple parser or emitter threads.) | 154 /// slight rework if we expand to multiple parser or emitter threads.) |
| 147 cl::opt<uint32_t> NumThreads( | 155 cl::opt<uint32_t> NumThreads( |
| 148 "threads", | 156 "threads", |
| (...skipping 319 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 468 OutFlags.DataSections = false; | 476 OutFlags.DataSections = false; |
| 469 OutFlags.DecorateAsm = false; | 477 OutFlags.DecorateAsm = false; |
| 470 OutFlags.DisableHybridAssembly = false; | 478 OutFlags.DisableHybridAssembly = false; |
| 471 OutFlags.DisableInternal = false; | 479 OutFlags.DisableInternal = false; |
| 472 OutFlags.DisableTranslation = false; | 480 OutFlags.DisableTranslation = false; |
| 473 OutFlags.DumpStats = false; | 481 OutFlags.DumpStats = false; |
| 474 OutFlags.EnableBlockProfile = false; | 482 OutFlags.EnableBlockProfile = false; |
| 475 OutFlags.ForceMemIntrinOpt = false; | 483 OutFlags.ForceMemIntrinOpt = false; |
| 476 OutFlags.FunctionSections = false; | 484 OutFlags.FunctionSections = false; |
| 477 OutFlags.GenerateUnitTestMessages = false; | 485 OutFlags.GenerateUnitTestMessages = false; |
| 486 OutFlags.KeepDeletedInsts = Ice::BuildDefs::dump(); |
| 478 OutFlags.MockBoundsCheck = false; | 487 OutFlags.MockBoundsCheck = false; |
| 479 OutFlags.PhiEdgeSplit = false; | 488 OutFlags.PhiEdgeSplit = false; |
| 480 OutFlags.RandomNopInsertion = false; | 489 OutFlags.RandomNopInsertion = false; |
| 481 OutFlags.RandomRegAlloc = false; | 490 OutFlags.RandomRegAlloc = false; |
| 482 OutFlags.RepeatRegAlloc = false; | 491 OutFlags.RepeatRegAlloc = false; |
| 483 OutFlags.ReorderBasicBlocks = false; | 492 OutFlags.ReorderBasicBlocks = false; |
| 484 OutFlags.ReorderFunctions = false; | 493 OutFlags.ReorderFunctions = false; |
| 485 OutFlags.ReorderGlobalVariables = false; | 494 OutFlags.ReorderGlobalVariables = false; |
| 486 OutFlags.ReorderPooledConstants = false; | 495 OutFlags.ReorderPooledConstants = false; |
| 487 OutFlags.SkipUnimplemented = false; | 496 OutFlags.SkipUnimplemented = false; |
| (...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 537 (::OutFileType != Ice::FT_Iasm)); | 546 (::OutFileType != Ice::FT_Iasm)); |
| 538 OutFlags.setDisableInternal(::DisableInternal); | 547 OutFlags.setDisableInternal(::DisableInternal); |
| 539 OutFlags.setDisableTranslation(::DisableTranslation); | 548 OutFlags.setDisableTranslation(::DisableTranslation); |
| 540 OutFlags.setDumpStats(::DumpStats); | 549 OutFlags.setDumpStats(::DumpStats); |
| 541 OutFlags.setEnableBlockProfile(::EnableBlockProfile); | 550 OutFlags.setEnableBlockProfile(::EnableBlockProfile); |
| 542 OutFlags.setExcludedRegisters(::ExcludedRegisters); | 551 OutFlags.setExcludedRegisters(::ExcludedRegisters); |
| 543 OutFlags.setForceMemIntrinOpt(::ForceMemIntrinOpt); | 552 OutFlags.setForceMemIntrinOpt(::ForceMemIntrinOpt); |
| 544 OutFlags.setFunctionSections(::FunctionSections); | 553 OutFlags.setFunctionSections(::FunctionSections); |
| 545 OutFlags.setNumTranslationThreads(::NumThreads); | 554 OutFlags.setNumTranslationThreads(::NumThreads); |
| 546 OutFlags.setOptLevel(::OLevel); | 555 OutFlags.setOptLevel(::OLevel); |
| 556 OutFlags.setKeepDeletedInsts(::KeepDeletedInsts); |
| 547 OutFlags.setMockBoundsCheck(::MockBoundsCheck); | 557 OutFlags.setMockBoundsCheck(::MockBoundsCheck); |
| 548 OutFlags.setPhiEdgeSplit(::EnablePhiEdgeSplit); | 558 OutFlags.setPhiEdgeSplit(::EnablePhiEdgeSplit); |
| 549 OutFlags.setRandomSeed(::RandomSeed); | 559 OutFlags.setRandomSeed(::RandomSeed); |
| 550 OutFlags.setRandomizeAndPoolImmediatesOption( | 560 OutFlags.setRandomizeAndPoolImmediatesOption( |
| 551 ::RandomizeAndPoolImmediatesOption); | 561 ::RandomizeAndPoolImmediatesOption); |
| 552 OutFlags.setRandomizeAndPoolImmediatesThreshold( | 562 OutFlags.setRandomizeAndPoolImmediatesThreshold( |
| 553 ::RandomizeAndPoolImmediatesThreshold); | 563 ::RandomizeAndPoolImmediatesThreshold); |
| 554 OutFlags.setReorderFunctionsWindowSize(::ReorderFunctionsWindowSize); | 564 OutFlags.setReorderFunctionsWindowSize(::ReorderFunctionsWindowSize); |
| 555 OutFlags.setShouldReorderBasicBlocks(::ReorderBasicBlocks); | 565 OutFlags.setShouldReorderBasicBlocks(::ReorderBasicBlocks); |
| 556 OutFlags.setShouldDoNopInsertion(::ShouldDoNopInsertion); | 566 OutFlags.setShouldDoNopInsertion(::ShouldDoNopInsertion); |
| (...skipping 29 matching lines...) Expand all Loading... |
| 586 OutFlagsExtra.setGenerateBuildAtts(GenerateBuildAtts); | 596 OutFlagsExtra.setGenerateBuildAtts(GenerateBuildAtts); |
| 587 OutFlagsExtra.setLLVMVerboseErrors(LLVMVerboseErrors); | 597 OutFlagsExtra.setLLVMVerboseErrors(LLVMVerboseErrors); |
| 588 OutFlagsExtra.setAppName(AppName); | 598 OutFlagsExtra.setAppName(AppName); |
| 589 OutFlagsExtra.setInputFileFormat(InputFileFormat); | 599 OutFlagsExtra.setInputFileFormat(InputFileFormat); |
| 590 OutFlagsExtra.setIRFilename(IRFilename); | 600 OutFlagsExtra.setIRFilename(IRFilename); |
| 591 OutFlagsExtra.setLogFilename(LogFilename); | 601 OutFlagsExtra.setLogFilename(LogFilename); |
| 592 OutFlagsExtra.setOutputFilename(OutputFilename); | 602 OutFlagsExtra.setOutputFilename(OutputFilename); |
| 593 } | 603 } |
| 594 | 604 |
| 595 } // end of namespace Ice | 605 } // end of namespace Ice |
| OLD | NEW |