| 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 65 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 76 DumpStats("szstats", | 76 DumpStats("szstats", |
| 77 cl::desc("Print statistics after translating each function")); | 77 cl::desc("Print statistics after translating each function")); |
| 78 | 78 |
| 79 cl::opt<bool> EnableBlockProfile( | 79 cl::opt<bool> EnableBlockProfile( |
| 80 "enable-block-profile", | 80 "enable-block-profile", |
| 81 cl::desc("If true, instrument basic blocks, and output profiling " | 81 cl::desc("If true, instrument basic blocks, and output profiling " |
| 82 "information to stdout at the end of program execution."), | 82 "information to stdout at the end of program execution."), |
| 83 cl::init(false)); | 83 cl::init(false)); |
| 84 | 84 |
| 85 cl::opt<bool> | 85 cl::opt<bool> |
| 86 ForceMemIntrinOpt("fmem-intrin-opt", |
| 87 cl::desc("Force optimization of memory intrinsics.")); |
| 88 |
| 89 cl::opt<bool> |
| 86 FunctionSections("ffunction-sections", | 90 FunctionSections("ffunction-sections", |
| 87 cl::desc("Emit functions into separate sections")); | 91 cl::desc("Emit functions into separate sections")); |
| 88 | 92 |
| 89 // Number of translation threads (in addition to the parser thread and | 93 // Number of translation threads (in addition to the parser thread and |
| 90 // the emitter thread). The special case of 0 means purely | 94 // the emitter thread). The special case of 0 means purely |
| 91 // sequential, i.e. parser, translator, and emitter all within the | 95 // sequential, i.e. parser, translator, and emitter all within the |
| 92 // same single thread. (This may need a slight rework if we expand to | 96 // same single thread. (This may need a slight rework if we expand to |
| 93 // multiple parser or emitter threads.) | 97 // multiple parser or emitter threads.) |
| 94 cl::opt<uint32_t> NumThreads( | 98 cl::opt<uint32_t> NumThreads( |
| 95 "threads", | 99 "threads", |
| (...skipping 253 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 349 OutFlags.AllowErrorRecovery = false; | 353 OutFlags.AllowErrorRecovery = false; |
| 350 OutFlags.AllowIacaMarks = false; | 354 OutFlags.AllowIacaMarks = false; |
| 351 OutFlags.AllowUninitializedGlobals = false; | 355 OutFlags.AllowUninitializedGlobals = false; |
| 352 OutFlags.DataSections = false; | 356 OutFlags.DataSections = false; |
| 353 OutFlags.DecorateAsm = false; | 357 OutFlags.DecorateAsm = false; |
| 354 OutFlags.DisableInternal = false; | 358 OutFlags.DisableInternal = false; |
| 355 OutFlags.DisableIRGeneration = false; | 359 OutFlags.DisableIRGeneration = false; |
| 356 OutFlags.DisableTranslation = false; | 360 OutFlags.DisableTranslation = false; |
| 357 OutFlags.DumpStats = false; | 361 OutFlags.DumpStats = false; |
| 358 OutFlags.EnableBlockProfile = false; | 362 OutFlags.EnableBlockProfile = false; |
| 363 OutFlags.ForceMemIntrinOpt = false; |
| 359 OutFlags.FunctionSections = false; | 364 OutFlags.FunctionSections = false; |
| 360 OutFlags.GenerateUnitTestMessages = false; | 365 OutFlags.GenerateUnitTestMessages = false; |
| 361 OutFlags.PhiEdgeSplit = false; | 366 OutFlags.PhiEdgeSplit = false; |
| 362 OutFlags.RandomNopInsertion = false; | 367 OutFlags.RandomNopInsertion = false; |
| 363 OutFlags.RandomRegAlloc = false; | 368 OutFlags.RandomRegAlloc = false; |
| 364 OutFlags.ReorderBasicBlocks = false; | 369 OutFlags.ReorderBasicBlocks = false; |
| 365 OutFlags.ReorderFunctions = false; | 370 OutFlags.ReorderFunctions = false; |
| 366 OutFlags.ReorderGlobalVariables = false; | 371 OutFlags.ReorderGlobalVariables = false; |
| 367 OutFlags.ReorderPooledConstants = false; | 372 OutFlags.ReorderPooledConstants = false; |
| 368 OutFlags.SkipUnimplemented = false; | 373 OutFlags.SkipUnimplemented = false; |
| (...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 409 OutFlags.setAllowUninitializedGlobals(::AllowUninitializedGlobals); | 414 OutFlags.setAllowUninitializedGlobals(::AllowUninitializedGlobals); |
| 410 OutFlags.setDataSections(::DataSections); | 415 OutFlags.setDataSections(::DataSections); |
| 411 OutFlags.setDecorateAsm(::DecorateAsm); | 416 OutFlags.setDecorateAsm(::DecorateAsm); |
| 412 OutFlags.setDefaultFunctionPrefix(::DefaultFunctionPrefix); | 417 OutFlags.setDefaultFunctionPrefix(::DefaultFunctionPrefix); |
| 413 OutFlags.setDefaultGlobalPrefix(::DefaultGlobalPrefix); | 418 OutFlags.setDefaultGlobalPrefix(::DefaultGlobalPrefix); |
| 414 OutFlags.setDisableInternal(::DisableInternal); | 419 OutFlags.setDisableInternal(::DisableInternal); |
| 415 OutFlags.setDisableIRGeneration(::DisableIRGeneration); | 420 OutFlags.setDisableIRGeneration(::DisableIRGeneration); |
| 416 OutFlags.setDisableTranslation(::DisableTranslation); | 421 OutFlags.setDisableTranslation(::DisableTranslation); |
| 417 OutFlags.setDumpStats(::DumpStats); | 422 OutFlags.setDumpStats(::DumpStats); |
| 418 OutFlags.setEnableBlockProfile(::EnableBlockProfile); | 423 OutFlags.setEnableBlockProfile(::EnableBlockProfile); |
| 424 OutFlags.setForceMemIntrinOpt(::ForceMemIntrinOpt); |
| 419 OutFlags.setFunctionSections(::FunctionSections); | 425 OutFlags.setFunctionSections(::FunctionSections); |
| 420 OutFlags.setNumTranslationThreads(::NumThreads); | 426 OutFlags.setNumTranslationThreads(::NumThreads); |
| 421 OutFlags.setOptLevel(::OLevel); | 427 OutFlags.setOptLevel(::OLevel); |
| 422 OutFlags.setPhiEdgeSplit(::EnablePhiEdgeSplit); | 428 OutFlags.setPhiEdgeSplit(::EnablePhiEdgeSplit); |
| 423 OutFlags.setRandomSeed(::RandomSeed); | 429 OutFlags.setRandomSeed(::RandomSeed); |
| 424 OutFlags.setRandomizeAndPoolImmediatesOption( | 430 OutFlags.setRandomizeAndPoolImmediatesOption( |
| 425 ::RandomizeAndPoolImmediatesOption); | 431 ::RandomizeAndPoolImmediatesOption); |
| 426 OutFlags.setRandomizeAndPoolImmediatesThreshold( | 432 OutFlags.setRandomizeAndPoolImmediatesThreshold( |
| 427 ::RandomizeAndPoolImmediatesThreshold); | 433 ::RandomizeAndPoolImmediatesThreshold); |
| 428 OutFlags.setReorderFunctionsWindowSize(::ReorderFunctionsWindowSize); | 434 OutFlags.setReorderFunctionsWindowSize(::ReorderFunctionsWindowSize); |
| (...skipping 27 matching lines...) Expand all Loading... |
| 456 OutFlagsExtra.setGenerateBuildAtts(GenerateBuildAtts); | 462 OutFlagsExtra.setGenerateBuildAtts(GenerateBuildAtts); |
| 457 OutFlagsExtra.setLLVMVerboseErrors(LLVMVerboseErrors); | 463 OutFlagsExtra.setLLVMVerboseErrors(LLVMVerboseErrors); |
| 458 OutFlagsExtra.setAppName(AppName); | 464 OutFlagsExtra.setAppName(AppName); |
| 459 OutFlagsExtra.setInputFileFormat(InputFileFormat); | 465 OutFlagsExtra.setInputFileFormat(InputFileFormat); |
| 460 OutFlagsExtra.setIRFilename(IRFilename); | 466 OutFlagsExtra.setIRFilename(IRFilename); |
| 461 OutFlagsExtra.setLogFilename(LogFilename); | 467 OutFlagsExtra.setLogFilename(LogFilename); |
| 462 OutFlagsExtra.setOutputFilename(OutputFilename); | 468 OutFlagsExtra.setOutputFilename(OutputFilename); |
| 463 } | 469 } |
| 464 | 470 |
| 465 } // end of namespace Ice | 471 } // end of namespace Ice |
| OLD | NEW |