Author: Fangrui Song Date: 2022-06-05T01:07:51-07:00 New Revision: 95a134254a403750ddfee7c056efdf2359a7dc8c
URL: https://github.com/llvm/llvm-project/commit/95a134254a403750ddfee7c056efdf2359a7dc8c DIFF: https://github.com/llvm/llvm-project/commit/95a134254a403750ddfee7c056efdf2359a7dc8c.diff LOG: Remove unneeded cl::ZeroOrMore for cl::opt/cl::list options Added: Modified: clang/tools/clang-linker-wrapper/ClangLinkerWrapper.cpp clang/tools/clang-rename/ClangRename.cpp llvm/examples/OrcV2Examples/LLJITWithRemoteDebugging/LLJITWithRemoteDebugging.cpp llvm/lib/CodeGen/MachinePipeliner.cpp llvm/lib/CodeGen/TargetPassConfig.cpp llvm/lib/CodeGen/VLIWMachineScheduler.cpp llvm/lib/IR/DiagnosticHandler.cpp llvm/lib/Support/DebugCounter.cpp llvm/lib/Support/TypeSize.cpp llvm/lib/Target/AMDGPU/Utils/AMDGPUBaseInfo.cpp llvm/lib/Target/Hexagon/HexagonCommonGEP.cpp llvm/lib/Target/Hexagon/HexagonFrameLowering.cpp llvm/lib/Target/Hexagon/HexagonGenInsert.cpp llvm/lib/Transforms/IPO/Attributor.cpp llvm/lib/Transforms/Instrumentation/HWAddressSanitizer.cpp llvm/lib/Transforms/Instrumentation/InstrProfiling.cpp llvm/lib/Transforms/Scalar/LoopFuse.cpp llvm/tools/bugpoint/ExecutionDriver.cpp llvm/tools/lli/lli.cpp llvm/tools/llvm-cov/CodeCoverage.cpp llvm/tools/llvm-dwarfdump/llvm-dwarfdump.cpp llvm/tools/llvm-extract/llvm-extract.cpp llvm/tools/llvm-gsymutil/llvm-gsymutil.cpp llvm/tools/llvm-jitlink/llvm-jitlink.cpp llvm/tools/llvm-libtool-darwin/llvm-libtool-darwin.cpp llvm/tools/llvm-lto/llvm-lto.cpp llvm/tools/llvm-lto2/llvm-lto2.cpp llvm/tools/llvm-pdbutil/llvm-pdbutil.cpp llvm/tools/llvm-rtdyld/llvm-rtdyld.cpp llvm/tools/llvm-strings/llvm-strings.cpp llvm/tools/opt/opt.cpp llvm/unittests/Support/CommandLineTest.cpp polly/lib/Analysis/DependenceInfo.cpp polly/lib/Analysis/ScopDetection.cpp polly/lib/Analysis/ScopInfo.cpp polly/lib/CodeGen/BlockGenerators.cpp polly/lib/CodeGen/CodeGeneration.cpp polly/lib/CodeGen/IslAst.cpp polly/lib/CodeGen/IslExprBuilder.cpp polly/lib/CodeGen/ManagedMemoryRewrite.cpp polly/lib/CodeGen/PPCGCodeGeneration.cpp polly/lib/Support/RegisterPasses.cpp polly/lib/Transform/DeadCodeElimination.cpp polly/lib/Transform/MatmulOptimizer.cpp polly/lib/Transform/ScheduleOptimizer.cpp Removed: ################################################################################ diff --git a/clang/tools/clang-linker-wrapper/ClangLinkerWrapper.cpp b/clang/tools/clang-linker-wrapper/ClangLinkerWrapper.cpp index e7eec16e51150..4e0b5ab2024cc 100644 --- a/clang/tools/clang-linker-wrapper/ClangLinkerWrapper.cpp +++ b/clang/tools/clang-linker-wrapper/ClangLinkerWrapper.cpp @@ -109,7 +109,7 @@ static cl::list<std::string> cl::cat(ClangLinkerWrapperCategory)); static cl::list<std::string> - LinkerArgs("device-linker", cl::ZeroOrMore, + LinkerArgs("device-linker", cl::desc("Arguments to pass to the device linker invocation"), cl::value_desc("<value> or <triple>=<value>"), cl::cat(ClangLinkerWrapperCategory)); diff --git a/clang/tools/clang-rename/ClangRename.cpp b/clang/tools/clang-rename/ClangRename.cpp index 12f20243a9633..e7ceac7dbf303 100644 --- a/clang/tools/clang-rename/ClangRename.cpp +++ b/clang/tools/clang-rename/ClangRename.cpp @@ -74,7 +74,7 @@ static cl::opt<bool> Inplace("i", cl::desc("Overwrite edited <file>s."), static cl::list<std::string> QualifiedNames("qualified-name", cl::desc("The fully qualified name of the symbol."), - cl::ZeroOrMore, cl::cat(ClangRenameOptions)); + cl::cat(ClangRenameOptions)); static cl::list<std::string> NewNames("new-name", cl::desc("The new name to change the symbol to."), diff --git a/llvm/examples/OrcV2Examples/LLJITWithRemoteDebugging/LLJITWithRemoteDebugging.cpp b/llvm/examples/OrcV2Examples/LLJITWithRemoteDebugging/LLJITWithRemoteDebugging.cpp index 795c167c5271d..291f14e1d7d7a 100644 --- a/llvm/examples/OrcV2Examples/LLJITWithRemoteDebugging/LLJITWithRemoteDebugging.cpp +++ b/llvm/examples/OrcV2Examples/LLJITWithRemoteDebugging/LLJITWithRemoteDebugging.cpp @@ -105,7 +105,7 @@ static cl::list<std::string> InputFiles(cl::Positional, cl::OneOrMore, // Command line arguments to pass to the JITed main function. static cl::list<std::string> InputArgv("args", cl::Positional, cl::desc("<program arguments>..."), - cl::ZeroOrMore, cl::PositionalEatsArgs); + cl::PositionalEatsArgs); // Given paths must exist on the remote target. static cl::list<std::string> diff --git a/llvm/lib/CodeGen/MachinePipeliner.cpp b/llvm/lib/CodeGen/MachinePipeliner.cpp index 51f4cc30c45bc..e6619e180758d 100644 --- a/llvm/lib/CodeGen/MachinePipeliner.cpp +++ b/llvm/lib/CodeGen/MachinePipeliner.cpp @@ -146,8 +146,8 @@ static cl::opt<int> SwpLoopLimit("pipeliner-max", cl::Hidden, cl::init(-1)); #endif static cl::opt<bool> SwpIgnoreRecMII("pipeliner-ignore-recmii", - cl::ReallyHidden, cl::init(false), - cl::ZeroOrMore, cl::desc("Ignore RecMII")); + cl::ReallyHidden, + cl::desc("Ignore RecMII")); static cl::opt<bool> SwpShowResMask("pipeliner-show-mask", cl::Hidden, cl::init(false)); diff --git a/llvm/lib/CodeGen/TargetPassConfig.cpp b/llvm/lib/CodeGen/TargetPassConfig.cpp index d659a44c18374..276911b790e2b 100644 --- a/llvm/lib/CodeGen/TargetPassConfig.cpp +++ b/llvm/lib/CodeGen/TargetPassConfig.cpp @@ -115,20 +115,18 @@ static cl::opt<bool> PrintGCInfo("print-gc", cl::Hidden, cl::desc("Dump garbage collector data")); static cl::opt<cl::boolOrDefault> VerifyMachineCode("verify-machineinstrs", cl::Hidden, - cl::desc("Verify generated machine code"), - cl::ZeroOrMore); -static cl::opt<cl::boolOrDefault> DebugifyAndStripAll( - "debugify-and-strip-all-safe", cl::Hidden, - cl::desc( - "Debugify MIR before and Strip debug after " - "each pass except those known to be unsafe when debug info is present"), - cl::ZeroOrMore); + cl::desc("Verify generated machine code")); +static cl::opt<cl::boolOrDefault> + DebugifyAndStripAll("debugify-and-strip-all-safe", cl::Hidden, + cl::desc("Debugify MIR before and Strip debug after " + "each pass except those known to be unsafe " + "when debug info is present")); static cl::opt<cl::boolOrDefault> DebugifyCheckAndStripAll( "debugify-check-and-strip-all-safe", cl::Hidden, cl::desc( "Debugify MIR before, by checking and stripping the debug info after, " - "each pass except those known to be unsafe when debug info is present"), - cl::ZeroOrMore); + "each pass except those known to be unsafe when debug info is " + "present")); // Enable or disable the MachineOutliner. static cl::opt<RunOutliner> EnableMachineOutliner( "enable-machine-outliner", cl::desc("Enable the machine outliner"), diff --git a/llvm/lib/CodeGen/VLIWMachineScheduler.cpp b/llvm/lib/CodeGen/VLIWMachineScheduler.cpp index 99a0b12413f12..8b5b585090f55 100644 --- a/llvm/lib/CodeGen/VLIWMachineScheduler.cpp +++ b/llvm/lib/CodeGen/VLIWMachineScheduler.cpp @@ -45,7 +45,7 @@ static cl::opt<bool> IgnoreBBRegPressure("ignore-bb-reg-pressure", cl::Hidden, cl::init(false)); static cl::opt<bool> UseNewerCandidate("use-newer-candidate", cl::Hidden, - cl::ZeroOrMore, cl::init(true)); + cl::init(true)); static cl::opt<unsigned> SchedDebugVerboseLevel("misched-verbose-level", cl::Hidden, cl::init(1)); diff --git a/llvm/lib/IR/DiagnosticHandler.cpp b/llvm/lib/IR/DiagnosticHandler.cpp index 7b40728a34e8c..683eade502917 100644 --- a/llvm/lib/IR/DiagnosticHandler.cpp +++ b/llvm/lib/IR/DiagnosticHandler.cpp @@ -47,8 +47,7 @@ static cl::opt<PassRemarksOpt, true, cl::parser<std::string>> PassRemarks( "pass-remarks", cl::value_desc("pattern"), cl::desc("Enable optimization remarks from passes whose name match " "the given regular expression"), - cl::Hidden, cl::location(PassRemarksPassedOptLoc), cl::ValueRequired, - cl::ZeroOrMore); + cl::Hidden, cl::location(PassRemarksPassedOptLoc), cl::ValueRequired); // -pass-remarks-missed // Command line flag to enable emitOptimizationRemarkMissed() @@ -56,8 +55,7 @@ static cl::opt<PassRemarksOpt, true, cl::parser<std::string>> PassRemarksMissed( "pass-remarks-missed", cl::value_desc("pattern"), cl::desc("Enable missed optimization remarks from passes whose name match " "the given regular expression"), - cl::Hidden, cl::location(PassRemarksMissedOptLoc), cl::ValueRequired, - cl::ZeroOrMore); + cl::Hidden, cl::location(PassRemarksMissedOptLoc), cl::ValueRequired); // -pass-remarks-analysis // Command line flag to enable emitOptimizationRemarkAnalysis() @@ -67,8 +65,7 @@ static cl::opt<PassRemarksOpt, true, cl::parser<std::string>> cl::desc( "Enable optimization analysis remarks from passes whose name match " "the given regular expression"), - cl::Hidden, cl::location(PassRemarksAnalysisOptLoc), cl::ValueRequired, - cl::ZeroOrMore); + cl::Hidden, cl::location(PassRemarksAnalysisOptLoc), cl::ValueRequired); } bool DiagnosticHandler::isAnalysisRemarkEnabled(StringRef PassName) const { diff --git a/llvm/lib/Support/DebugCounter.cpp b/llvm/lib/Support/DebugCounter.cpp index f553463be8df2..bc2df37e773d4 100644 --- a/llvm/lib/Support/DebugCounter.cpp +++ b/llvm/lib/Support/DebugCounter.cpp @@ -49,8 +49,7 @@ struct CreateDebugCounterOption { return new DebugCounterList( "debug-counter", cl::Hidden, cl::desc("Comma separated list of debug counter skip and count"), - cl::CommaSeparated, cl::ZeroOrMore, - cl::location(DebugCounter::instance())); + cl::CommaSeparated, cl::location(DebugCounter::instance())); } }; } // namespace diff --git a/llvm/lib/Support/TypeSize.cpp b/llvm/lib/Support/TypeSize.cpp index a80fde83e3bc7..8bed9b29cba55 100644 --- a/llvm/lib/Support/TypeSize.cpp +++ b/llvm/lib/Support/TypeSize.cpp @@ -21,11 +21,10 @@ struct CreateScalableErrorAsWarning { /// using the wrong interface on a scalable vector. static void *call() { return new cl::opt<bool>( - "treat-scalable-fixed-error-as-warning", cl::Hidden, cl::init(false), + "treat-scalable-fixed-error-as-warning", cl::Hidden, cl::desc( "Treat issues where a fixed-width property is requested from a " - "scalable type as a warning, instead of an error."), - cl::ZeroOrMore); + "scalable type as a warning, instead of an error")); } }; } // namespace diff --git a/llvm/lib/Target/AMDGPU/Utils/AMDGPUBaseInfo.cpp b/llvm/lib/Target/AMDGPU/Utils/AMDGPUBaseInfo.cpp index c6ff426fca1de..fab537625675d 100644 --- a/llvm/lib/Target/AMDGPU/Utils/AMDGPUBaseInfo.cpp +++ b/llvm/lib/Target/AMDGPU/Utils/AMDGPUBaseInfo.cpp @@ -28,10 +28,10 @@ #define GET_INSTRMAP_INFO #include "AMDGPUGenInstrInfo.inc" -static llvm::cl::opt<unsigned> AmdhsaCodeObjectVersion( - "amdhsa-code-object-version", llvm::cl::Hidden, - llvm::cl::desc("AMDHSA Code Object Version"), llvm::cl::init(4), - llvm::cl::ZeroOrMore); +static llvm::cl::opt<unsigned> + AmdhsaCodeObjectVersion("amdhsa-code-object-version", llvm::cl::Hidden, + llvm::cl::desc("AMDHSA Code Object Version"), + llvm::cl::init(4)); namespace { diff --git a/llvm/lib/Target/Hexagon/HexagonCommonGEP.cpp b/llvm/lib/Target/Hexagon/HexagonCommonGEP.cpp index 6e091c0f4ff90..2fe2e032714a6 100644 --- a/llvm/lib/Target/Hexagon/HexagonCommonGEP.cpp +++ b/llvm/lib/Target/Hexagon/HexagonCommonGEP.cpp @@ -54,8 +54,7 @@ using namespace llvm; static cl::opt<bool> OptSpeculate("commgep-speculate", cl::init(true), cl::Hidden); -static cl::opt<bool> OptEnableInv("commgep-inv", cl::init(true), cl::Hidden, - cl::ZeroOrMore); +static cl::opt<bool> OptEnableInv("commgep-inv", cl::init(true), cl::Hidden); static cl::opt<bool> OptEnableConst("commgep-const", cl::init(true), cl::Hidden); diff --git a/llvm/lib/Target/Hexagon/HexagonFrameLowering.cpp b/llvm/lib/Target/Hexagon/HexagonFrameLowering.cpp index 8893ffe7fb2ac..56d471af8e208 100644 --- a/llvm/lib/Target/Hexagon/HexagonFrameLowering.cpp +++ b/llvm/lib/Target/Hexagon/HexagonFrameLowering.cpp @@ -152,9 +152,10 @@ using namespace llvm; static cl::opt<bool> DisableDeallocRet("disable-hexagon-dealloc-ret", cl::Hidden, cl::desc("Disable Dealloc Return for Hexagon target")); -static cl::opt<unsigned> NumberScavengerSlots("number-scavenger-slots", - cl::Hidden, cl::desc("Set the number of scavenger slots"), cl::init(2), - cl::ZeroOrMore); +static cl::opt<unsigned> + NumberScavengerSlots("number-scavenger-slots", cl::Hidden, + cl::desc("Set the number of scavenger slots"), + cl::init(2)); static cl::opt<int> SpillFuncThreshold("spill-func-threshold", cl::Hidden, diff --git a/llvm/lib/Target/Hexagon/HexagonGenInsert.cpp b/llvm/lib/Target/Hexagon/HexagonGenInsert.cpp index 4a801e5560e27..44f21dbacd3c2 100644 --- a/llvm/lib/Target/Hexagon/HexagonGenInsert.cpp +++ b/llvm/lib/Target/Hexagon/HexagonGenInsert.cpp @@ -72,14 +72,11 @@ static cl::opt<bool> cl::desc("Enable detailed timing of insert " "generation")); -static cl::opt<bool> OptSelectAll0("insert-all0", cl::init(false), cl::Hidden, - cl::ZeroOrMore); -static cl::opt<bool> OptSelectHas0("insert-has0", cl::init(false), cl::Hidden, - cl::ZeroOrMore); +static cl::opt<bool> OptSelectAll0("insert-all0", cl::init(false), cl::Hidden); +static cl::opt<bool> OptSelectHas0("insert-has0", cl::init(false), cl::Hidden); // Whether to construct constant values via "insert". Could eliminate constant // extenders, but often not practical. -static cl::opt<bool> OptConst("insert-const", cl::init(false), cl::Hidden, - cl::ZeroOrMore); +static cl::opt<bool> OptConst("insert-const", cl::init(false), cl::Hidden); // The preprocessor gets confused when the DEBUG macro is passed larger // chunks of code. Use this function to detect debugging. diff --git a/llvm/lib/Transforms/IPO/Attributor.cpp b/llvm/lib/Transforms/IPO/Attributor.cpp index 0153130428d5d..1993c7bacdded 100644 --- a/llvm/lib/Transforms/IPO/Attributor.cpp +++ b/llvm/lib/Transforms/IPO/Attributor.cpp @@ -129,7 +129,7 @@ static cl::list<std::string> FunctionSeedAllowList( "attributor-function-seed-allow-list", cl::Hidden, cl::desc("Comma seperated list of function names that are " "allowed to be seeded."), - cl::ZeroOrMore, cl::CommaSeparated); + cl::CommaSeparated); #endif static cl::opt<bool> diff --git a/llvm/lib/Transforms/Instrumentation/HWAddressSanitizer.cpp b/llvm/lib/Transforms/Instrumentation/HWAddressSanitizer.cpp index 1842f73e9549a..34450ed5a4673 100644 --- a/llvm/lib/Transforms/Instrumentation/HWAddressSanitizer.cpp +++ b/llvm/lib/Transforms/Instrumentation/HWAddressSanitizer.cpp @@ -202,8 +202,7 @@ static cl::opt<bool> ClUseShortGranules( static cl::opt<bool> ClInstrumentPersonalityFunctions( "hwasan-instrument-personality-functions", - cl::desc("instrument personality functions"), cl::Hidden, cl::init(false), - cl::ZeroOrMore); + cl::desc("instrument personality functions"), cl::Hidden); static cl::opt<bool> ClInlineAllChecks("hwasan-inline-all-checks", cl::desc("inline all checks"), diff --git a/llvm/lib/Transforms/Instrumentation/InstrProfiling.cpp b/llvm/lib/Transforms/Instrumentation/InstrProfiling.cpp index 3f71c69e55eff..935ac0ecdf916 100644 --- a/llvm/lib/Transforms/Instrumentation/InstrProfiling.cpp +++ b/llvm/lib/Transforms/Instrumentation/InstrProfiling.cpp @@ -118,7 +118,7 @@ cl::opt<bool> DoCounterPromotion("do-counter-promotion", cl::desc("Do counter register promotion"), cl::init(false)); cl::opt<unsigned> MaxNumOfPromotionsPerLoop( - cl::ZeroOrMore, "max-counter-promotions-per-loop", cl::init(20), + "max-counter-promotions-per-loop", cl::init(20), cl::desc("Max number counter promotions per loop to avoid" " increasing register pressure too much")); diff --git a/llvm/lib/Transforms/Scalar/LoopFuse.cpp b/llvm/lib/Transforms/Scalar/LoopFuse.cpp index 35e46ad4aa6a5..d94b767c7b63a 100644 --- a/llvm/lib/Transforms/Scalar/LoopFuse.cpp +++ b/llvm/lib/Transforms/Scalar/LoopFuse.cpp @@ -117,7 +117,7 @@ static cl::opt<FusionDependenceAnalysisChoice> FusionDependenceAnalysis( "Use the dependence analysis interface"), clEnumValN(FUSION_DEPENDENCE_ANALYSIS_ALL, "all", "Use all available analyses")), - cl::Hidden, cl::init(FUSION_DEPENDENCE_ANALYSIS_ALL), cl::ZeroOrMore); + cl::Hidden, cl::init(FUSION_DEPENDENCE_ANALYSIS_ALL)); static cl::opt<unsigned> FusionPeelMaxCount( "loop-fusion-peel-max-count", cl::init(0), cl::Hidden, diff --git a/llvm/tools/bugpoint/ExecutionDriver.cpp b/llvm/tools/bugpoint/ExecutionDriver.cpp index ff4f1ec3fc652..2b06e8f3b3651 100644 --- a/llvm/tools/bugpoint/ExecutionDriver.cpp +++ b/llvm/tools/bugpoint/ExecutionDriver.cpp @@ -119,7 +119,7 @@ cl::list<std::string> ToolArgv("tool-args", cl::Positional, cl::list<std::string> SafeToolArgv("safe-tool-args", cl::Positional, cl::desc("<safe-tool arguments>..."), - cl::ZeroOrMore, cl::PositionalEatsArgs); + cl::PositionalEatsArgs); cl::opt<std::string> CCBinary("gcc", cl::init(""), cl::desc("The gcc binary to use.")); diff --git a/llvm/tools/lli/lli.cpp b/llvm/tools/lli/lli.cpp index db3f5e2c49281..e45088865bea1 100644 --- a/llvm/tools/lli/lli.cpp +++ b/llvm/tools/lli/lli.cpp @@ -144,8 +144,7 @@ namespace { "-extra-module arguments.")); cl::list<std::string> - Dylibs("dlopen", cl::desc("Dynamic libraries to load before linking"), - cl::ZeroOrMore); + Dylibs("dlopen", cl::desc("Dynamic libraries to load before linking")); // The MCJIT supports building for a target address space separate from // the JIT compilation process. Use a forked process and a copying diff --git a/llvm/tools/llvm-cov/CodeCoverage.cpp b/llvm/tools/llvm-cov/CodeCoverage.cpp index 61987962d7751..33874e3c0d86e 100644 --- a/llvm/tools/llvm-cov/CodeCoverage.cpp +++ b/llvm/tools/llvm-cov/CodeCoverage.cpp @@ -671,7 +671,7 @@ int CodeCoverageTool::run(Command Cmd, int argc, const char **argv) { "name-allowlist", cl::Optional, cl::desc("Show code coverage only for functions listed in the given " "file"), - cl::ZeroOrMore, cl::cat(FilteringCategory)); + cl::cat(FilteringCategory)); // Allow for accepting previous option name. cl::list<std::string> NameFilterFilesDeprecated( @@ -684,7 +684,7 @@ int CodeCoverageTool::run(Command Cmd, int argc, const char **argv) { "name-regex", cl::Optional, cl::desc("Show code coverage only for functions that match the given " "regular expression"), - cl::ZeroOrMore, cl::cat(FilteringCategory)); + cl::cat(FilteringCategory)); cl::list<std::string> IgnoreFilenameRegexFilters( "ignore-filename-regex", cl::Optional, diff --git a/llvm/tools/llvm-dwarfdump/llvm-dwarfdump.cpp b/llvm/tools/llvm-dwarfdump/llvm-dwarfdump.cpp index 12da7bb79422f..3cc211b8a9864 100644 --- a/llvm/tools/llvm-dwarfdump/llvm-dwarfdump.cpp +++ b/llvm/tools/llvm-dwarfdump/llvm-dwarfdump.cpp @@ -121,7 +121,7 @@ using namespace cl; OptionCategory DwarfDumpCategory("Specific Options"); static list<std::string> InputFilenames(Positional, desc("<input object files or .dSYM bundles>"), - ZeroOrMore, cat(DwarfDumpCategory)); + cat(DwarfDumpCategory)); cl::OptionCategory SectionCategory("Section-specific Dump Options", "These control which sections are dumped. " diff --git a/llvm/tools/llvm-extract/llvm-extract.cpp b/llvm/tools/llvm-extract/llvm-extract.cpp index 4615554f40544..ffd2a390d9c36 100644 --- a/llvm/tools/llvm-extract/llvm-extract.cpp +++ b/llvm/tools/llvm-extract/llvm-extract.cpp @@ -88,8 +88,7 @@ static cl::list<std::string> ExtractBlocks( " --bb=f:bb1;bb2 will extract one function with both bb1 and bb2;\n" " --bb=f:bb1 --bb=f:bb2 will extract two functions, one with bb1, one " "with bb2."), - cl::ZeroOrMore, cl::value_desc("function:bb1[;bb2...]"), - cl::cat(ExtractCat)); + cl::value_desc("function:bb1[;bb2...]"), cl::cat(ExtractCat)); // ExtractAlias - The alias to extract from the module. static cl::list<std::string> diff --git a/llvm/tools/llvm-gsymutil/llvm-gsymutil.cpp b/llvm/tools/llvm-gsymutil/llvm-gsymutil.cpp index 4e3c06e1e5fd7..4eaab07e60119 100644 --- a/llvm/tools/llvm-gsymutil/llvm-gsymutil.cpp +++ b/llvm/tools/llvm-gsymutil/llvm-gsymutil.cpp @@ -65,7 +65,7 @@ static opt<bool> Verbose("verbose", cat(GeneralOptions)); static list<std::string> InputFilenames(Positional, desc("<input GSYM files>"), - ZeroOrMore, cat(GeneralOptions)); + cat(GeneralOptions)); static opt<std::string> ConvertFilename("convert", cl::init(""), diff --git a/llvm/tools/llvm-jitlink/llvm-jitlink.cpp b/llvm/tools/llvm-jitlink/llvm-jitlink.cpp index c310276579fe5..8146419ac341c 100644 --- a/llvm/tools/llvm-jitlink/llvm-jitlink.cpp +++ b/llvm/tools/llvm-jitlink/llvm-jitlink.cpp @@ -122,7 +122,7 @@ static cl::list<std::string> static cl::list<std::string> InputArgv("args", cl::Positional, cl::desc("<program arguments>..."), - cl::ZeroOrMore, cl::PositionalEatsArgs, + cl::PositionalEatsArgs, cl::cat(JITLinkCategory)); static cl::opt<bool> @@ -142,7 +142,7 @@ static cl::list<std::string> AbsoluteDefs( static cl::list<std::string> Aliases("alias", cl::desc("Inject symbol aliases (syntax: <name>=<addr>)"), - cl::ZeroOrMore, cl::cat(JITLinkCategory)); + cl::cat(JITLinkCategory)); static cl::list<std::string> TestHarnesses("harness", cl::Positional, cl::desc("Test harness files"), diff --git a/llvm/tools/llvm-libtool-darwin/llvm-libtool-darwin.cpp b/llvm/tools/llvm-libtool-darwin/llvm-libtool-darwin.cpp index 9cc04576e2b69..08b371ecd3b57 100644 --- a/llvm/tools/llvm-libtool-darwin/llvm-libtool-darwin.cpp +++ b/llvm/tools/llvm-libtool-darwin/llvm-libtool-darwin.cpp @@ -78,7 +78,7 @@ static cl::list<std::string> Libraries( "l<x> searches for the library libx.a in the library search path. If" " the string 'x' ends with '.o', then the library 'x' is searched for" " without prepending 'lib' or appending '.a'"), - cl::ZeroOrMore, cl::Prefix, cl::cat(LibtoolCategory)); + cl::Prefix, cl::cat(LibtoolCategory)); static cl::list<std::string> LibrarySearchDirs( "L", diff --git a/llvm/tools/llvm-lto/llvm-lto.cpp b/llvm/tools/llvm-lto/llvm-lto.cpp index 72388c72f1045..79dd17576d9b7 100644 --- a/llvm/tools/llvm-lto/llvm-lto.cpp +++ b/llvm/tools/llvm-lto/llvm-lto.cpp @@ -215,7 +215,7 @@ static cl::list<std::string> ExportedSymbols( static cl::list<std::string> DSOSymbols("dso-symbol", cl::desc("Symbol to put in the symtab in the resulting dso"), - cl::ZeroOrMore, cl::cat(LTOCategory)); + cl::cat(LTOCategory)); static cl::opt<bool> ListSymbolsOnly( "list-symbols-only", cl::init(false), diff --git a/llvm/tools/llvm-lto2/llvm-lto2.cpp b/llvm/tools/llvm-lto2/llvm-lto2.cpp index 091bb3a84994f..b9abc4c4259c5 100644 --- a/llvm/tools/llvm-lto2/llvm-lto2.cpp +++ b/llvm/tools/llvm-lto2/llvm-lto2.cpp @@ -90,8 +90,7 @@ static cl::list<std::string> SymbolResolutions( " runtime and is known to be in this linkage unit\n" " x - externally visible: the definition of this symbol is\n" " visible outside of the LTO unit\n" - "A resolution for each symbol must be specified."), - cl::ZeroOrMore); + "A resolution for each symbol must be specified")); static cl::opt<std::string> OverrideTriple( "override-triple", diff --git a/llvm/tools/llvm-pdbutil/llvm-pdbutil.cpp b/llvm/tools/llvm-pdbutil/llvm-pdbutil.cpp index aa665ce42f4af..63fe97130bb9f 100644 --- a/llvm/tools/llvm-pdbutil/llvm-pdbutil.cpp +++ b/llvm/tools/llvm-pdbutil/llvm-pdbutil.cpp @@ -319,12 +319,14 @@ cl::list<std::string> ExcludeTypes("exclude-types", cl::desc("Exclude types by regular expression"), cl::cat(FilterCategory), cl::sub(PrettySubcommand)); -cl::list<std::string> ExcludeSymbols( - "exclude-symbols", cl::desc("Exclude symbols by regular expression"), - cl::ZeroOrMore, cl::cat(FilterCategory), cl::sub(PrettySubcommand)); -cl::list<std::string> ExcludeCompilands( - "exclude-compilands", cl::desc("Exclude compilands by regular expression"), - cl::ZeroOrMore, cl::cat(FilterCategory), cl::sub(PrettySubcommand)); +cl::list<std::string> + ExcludeSymbols("exclude-symbols", + cl::desc("Exclude symbols by regular expression"), + cl::cat(FilterCategory), cl::sub(PrettySubcommand)); +cl::list<std::string> + ExcludeCompilands("exclude-compilands", + cl::desc("Exclude compilands by regular expression"), + cl::cat(FilterCategory), cl::sub(PrettySubcommand)); cl::list<std::string> IncludeTypes( "include-types", @@ -333,7 +335,7 @@ cl::list<std::string> IncludeTypes( cl::list<std::string> IncludeSymbols( "include-symbols", cl::desc("Include only symbols which match a regular expression"), - cl::ZeroOrMore, cl::cat(FilterCategory), cl::sub(PrettySubcommand)); + cl::cat(FilterCategory), cl::sub(PrettySubcommand)); cl::list<std::string> IncludeCompilands( "include-compilands", cl::desc("Include only compilands those which match a regular expression"), @@ -418,7 +420,7 @@ cl::list<uint32_t> TypeIndex( cl::CommaSeparated, cl::sub(BytesSubcommand), cl::cat(TypeCategory)); cl::list<uint32_t> IdIndex("id", cl::desc("Dump the id record with the given type index"), - cl::ZeroOrMore, cl::CommaSeparated, cl::sub(BytesSubcommand), + cl::CommaSeparated, cl::sub(BytesSubcommand), cl::cat(TypeCategory)); cl::opt<uint32_t> ModuleIndex( diff --git a/llvm/tools/llvm-rtdyld/llvm-rtdyld.cpp b/llvm/tools/llvm-rtdyld/llvm-rtdyld.cpp index 652740ab2772b..df82fb04e8e68 100644 --- a/llvm/tools/llvm-rtdyld/llvm-rtdyld.cpp +++ b/llvm/tools/llvm-rtdyld/llvm-rtdyld.cpp @@ -83,7 +83,7 @@ static cl::list<std::string> Dylibs("dylib", cl::desc("Add library."), static cl::list<std::string> InputArgv("args", cl::Positional, cl::desc("<program arguments>..."), - cl::ZeroOrMore, cl::PositionalEatsArgs, + cl::PositionalEatsArgs, cl::cat(RTDyldCategory)); static cl::opt<std::string> diff --git a/llvm/tools/llvm-strings/llvm-strings.cpp b/llvm/tools/llvm-strings/llvm-strings.cpp index 438eed33d283b..71d1321ee0ba3 100644 --- a/llvm/tools/llvm-strings/llvm-strings.cpp +++ b/llvm/tools/llvm-strings/llvm-strings.cpp @@ -64,8 +64,7 @@ class StringsOptTable : public opt::OptTable { static StringRef ToolName; static cl::list<std::string> InputFileNames(cl::Positional, - cl::desc("<input object files>"), - cl::ZeroOrMore); + cl::desc("<input object files>")); static int MinLength = 4; static bool PrintFileName; diff --git a/llvm/tools/opt/opt.cpp b/llvm/tools/opt/opt.cpp index 2f7c3b4adec5e..0e013ef3b9fdf 100644 --- a/llvm/tools/opt/opt.cpp +++ b/llvm/tools/opt/opt.cpp @@ -192,10 +192,9 @@ static cl::opt<bool> DisableSimplifyLibCalls("disable-simplify-libcalls", cl::desc("Disable simplify-libcalls")); -static cl::list<std::string> -DisableBuiltins("disable-builtin", - cl::desc("Disable specific target library builtin function"), - cl::ZeroOrMore); +static cl::list<std::string> DisableBuiltins( + "disable-builtin", + cl::desc("Disable specific target library builtin function")); static cl::opt<bool> EnableDebugify( "enable-debugify", diff --git a/llvm/unittests/Support/CommandLineTest.cpp b/llvm/unittests/Support/CommandLineTest.cpp index d8539283a7384..ed0dc98415a67 100644 --- a/llvm/unittests/Support/CommandLineTest.cpp +++ b/llvm/unittests/Support/CommandLineTest.cpp @@ -1157,7 +1157,7 @@ TEST(CommandLineTest, PositionalEatArgsError) { cl::PositionalEatsArgs); StackOption<std::string, cl::list<std::string>> PosEatArgs2( "positional-eat-args2", cl::Positional, cl::desc("Some strings"), - cl::ZeroOrMore, cl::PositionalEatsArgs); + cl::PositionalEatsArgs); const char *args[] = {"prog", "-positional-eat-args=XXXX"}; const char *args2[] = {"prog", "-positional-eat-args=XXXX", "-foo"}; diff --git a/polly/lib/Analysis/DependenceInfo.cpp b/polly/lib/Analysis/DependenceInfo.cpp index dc6ed169b5ed7..f29355ffc51d7 100644 --- a/polly/lib/Analysis/DependenceInfo.cpp +++ b/polly/lib/Analysis/DependenceInfo.cpp @@ -66,8 +66,7 @@ static cl::opt<enum AnalysisType> OptAnalysisType( "Exact dependences without transitive dependences"), clEnumValN(MEMORY_BASED_ANALYSIS, "memory-based", "Overapproximation of dependences")), - cl::Hidden, cl::init(VALUE_BASED_ANALYSIS), cl::ZeroOrMore, - cl::cat(PollyCategory)); + cl::Hidden, cl::init(VALUE_BASED_ANALYSIS), cl::cat(PollyCategory)); static cl::opt<Dependences::AnalysisLevel> OptAnalysisLevel( "polly-dependences-analysis-level", @@ -80,8 +79,7 @@ static cl::opt<Dependences::AnalysisLevel> OptAnalysisLevel( clEnumValN(Dependences::AL_Access, "access-wise", "Memory reference level analysis that distinguish" " access instructions in the same statement")), - cl::Hidden, cl::init(Dependences::AL_Statement), cl::ZeroOrMore, - cl::cat(PollyCategory)); + cl::Hidden, cl::init(Dependences::AL_Statement), cl::cat(PollyCategory)); //===----------------------------------------------------------------------===// diff --git a/polly/lib/Analysis/ScopDetection.cpp b/polly/lib/Analysis/ScopDetection.cpp index f9c39c1625516..9d7b4c44d4b88 100644 --- a/polly/lib/Analysis/ScopDetection.cpp +++ b/polly/lib/Analysis/ScopDetection.cpp @@ -117,7 +117,7 @@ static cl::list<std::string> OnlyFunctions( "Multiple regexes can be comma separated. " "Scop detection will run on all functions that match " "ANY of the regexes provided."), - cl::ZeroOrMore, cl::CommaSeparated, cl::cat(PollyCategory)); + cl::CommaSeparated, cl::cat(PollyCategory)); static cl::list<std::string> IgnoredFunctions( "polly-ignore-func", @@ -125,7 +125,7 @@ static cl::list<std::string> IgnoredFunctions( "Multiple regexes can be comma separated. " "Scop detection will ignore all functions that match " "ANY of the regexes provided."), - cl::ZeroOrMore, cl::CommaSeparated, cl::cat(PollyCategory)); + cl::CommaSeparated, cl::cat(PollyCategory)); bool polly::PollyAllowFullFunction; @@ -207,7 +207,7 @@ static cl::opt<bool, true> PollyDelinearizeX("polly-delinearize", cl::desc("Delinearize array access functions"), cl::location(PollyDelinearize), cl::Hidden, - cl::ZeroOrMore, cl::init(true), cl::cat(PollyCategory)); + cl::init(true), cl::cat(PollyCategory)); static cl::opt<bool> VerifyScops("polly-detect-verify", diff --git a/polly/lib/Analysis/ScopInfo.cpp b/polly/lib/Analysis/ScopInfo.cpp index 0649908ea4b19..ca81d43703a90 100644 --- a/polly/lib/Analysis/ScopInfo.cpp +++ b/polly/lib/Analysis/ScopInfo.cpp @@ -155,8 +155,7 @@ bool polly::UseInstructionNames; static cl::opt<bool, true> XUseInstructionNames( "polly-use-llvm-names", cl::desc("Use LLVM-IR names when deriving statement names"), - cl::location(UseInstructionNames), cl::Hidden, cl::init(false), - cl::ZeroOrMore, cl::cat(PollyCategory)); + cl::location(UseInstructionNames), cl::Hidden, cl::cat(PollyCategory)); static cl::opt<bool> PollyPrintInstructions( "polly-print-instructions", cl::desc("Output instructions per ScopStmt"), diff --git a/polly/lib/CodeGen/BlockGenerators.cpp b/polly/lib/CodeGen/BlockGenerators.cpp index 2f7d7a9785f80..a98cfa1c1f258 100644 --- a/polly/lib/CodeGen/BlockGenerators.cpp +++ b/polly/lib/CodeGen/BlockGenerators.cpp @@ -39,8 +39,7 @@ bool PollyDebugPrinting; static cl::opt<bool, true> DebugPrintingX( "polly-codegen-add-debug-printing", cl::desc("Add printf calls that show the values loaded/stored."), - cl::location(PollyDebugPrinting), cl::Hidden, cl::init(false), - cl::ZeroOrMore, cl::cat(PollyCategory)); + cl::location(PollyDebugPrinting), cl::Hidden, cl::cat(PollyCategory)); static cl::opt<bool> TraceStmts( "polly-codegen-trace-stmts", diff --git a/polly/lib/CodeGen/CodeGeneration.cpp b/polly/lib/CodeGen/CodeGeneration.cpp index f3e80681a73e7..b124525d3b5db 100644 --- a/polly/lib/CodeGen/CodeGeneration.cpp +++ b/polly/lib/CodeGen/CodeGeneration.cpp @@ -58,8 +58,8 @@ bool polly::PerfMonitoring; static cl::opt<bool, true> XPerfMonitoring("polly-codegen-perf-monitoring", cl::desc("Add run-time performance monitoring"), cl::Hidden, - cl::location(polly::PerfMonitoring), cl::init(false), - cl::ZeroOrMore, cl::cat(PollyCategory)); + cl::location(polly::PerfMonitoring), + cl::cat(PollyCategory)); STATISTIC(ScopsProcessed, "Number of SCoP processed"); STATISTIC(CodegenedScops, "Number of successfully generated SCoPs"); diff --git a/polly/lib/CodeGen/IslAst.cpp b/polly/lib/CodeGen/IslAst.cpp index 338be5b2f8768..5041db931a19c 100644 --- a/polly/lib/CodeGen/IslAst.cpp +++ b/polly/lib/CodeGen/IslAst.cpp @@ -72,7 +72,7 @@ static cl::opt<bool> PollyParallelForce( "polly-parallel-force", cl::desc( "Force generation of thread parallel code ignoring any cost model"), - cl::init(false), cl::ZeroOrMore, cl::cat(PollyCategory)); + cl::cat(PollyCategory)); static cl::opt<bool> UseContext("polly-ast-use-context", cl::desc("Use context"), cl::Hidden, diff --git a/polly/lib/CodeGen/IslExprBuilder.cpp b/polly/lib/CodeGen/IslExprBuilder.cpp index dab0ca1beec29..12b724c8f7bf4 100644 --- a/polly/lib/CodeGen/IslExprBuilder.cpp +++ b/polly/lib/CodeGen/IslExprBuilder.cpp @@ -34,7 +34,7 @@ static cl::opt<OverflowTrackingChoice> OTMode( "Track the overflow bit if requested."), clEnumValN(OT_ALWAYS, "always", "Always track the overflow bit.")), - cl::Hidden, cl::init(OT_REQUEST), cl::ZeroOrMore, cl::cat(PollyCategory)); + cl::Hidden, cl::init(OT_REQUEST), cl::cat(PollyCategory)); IslExprBuilder::IslExprBuilder(Scop &S, PollyIRBuilder &Builder, IDToValueTy &IDToValue, ValueMapT &GlobalMap, diff --git a/polly/lib/CodeGen/ManagedMemoryRewrite.cpp b/polly/lib/CodeGen/ManagedMemoryRewrite.cpp index a397692d0ac5f..e0749174f52f6 100644 --- a/polly/lib/CodeGen/ManagedMemoryRewrite.cpp +++ b/polly/lib/CodeGen/ManagedMemoryRewrite.cpp @@ -40,7 +40,7 @@ static cl::opt<bool> IgnoreLinkageForGlobals( cl::desc( "By default, we only rewrite globals with internal linkage. This flag " "enables rewriting of globals regardless of linkage"), - cl::Hidden, cl::init(false), cl::ZeroOrMore, cl::cat(PollyCategory)); + cl::Hidden, cl::cat(PollyCategory)); #define DEBUG_TYPE "polly-acc-rewrite-managed-memory" namespace { diff --git a/polly/lib/CodeGen/PPCGCodeGeneration.cpp b/polly/lib/CodeGen/PPCGCodeGeneration.cpp index 5f3659ed24744..170f08e532ee8 100644 --- a/polly/lib/CodeGen/PPCGCodeGeneration.cpp +++ b/polly/lib/CodeGen/PPCGCodeGeneration.cpp @@ -87,7 +87,7 @@ static cl::opt<bool, true> " that all memory has been" " declared as managed memory"), cl::location(PollyManagedMemory), cl::Hidden, - cl::init(false), cl::ZeroOrMore, cl::cat(PollyCategory)); + cl::init(false), cl::cat(PollyCategory)); static cl::opt<bool> FailOnVerifyModuleFailure("polly-acc-fail-on-verify-module-failure", @@ -112,14 +112,15 @@ static cl::opt<int> cl::Hidden, cl::init(10 * 512 * 512)); GPURuntime polly::GPURuntimeChoice; -static cl::opt<GPURuntime, true> XGPURuntimeChoice( - "polly-gpu-runtime", cl::desc("The GPU Runtime API to target"), - cl::values(clEnumValN(GPURuntime::CUDA, "libcudart", - "use the CUDA Runtime API"), - clEnumValN(GPURuntime::OpenCL, "libopencl", - "use the OpenCL Runtime API")), - cl::location(polly::GPURuntimeChoice), cl::init(GPURuntime::CUDA), - cl::ZeroOrMore, cl::cat(PollyCategory)); +static cl::opt<GPURuntime, true> + XGPURuntimeChoice("polly-gpu-runtime", + cl::desc("The GPU Runtime API to target"), + cl::values(clEnumValN(GPURuntime::CUDA, "libcudart", + "use the CUDA Runtime API"), + clEnumValN(GPURuntime::OpenCL, "libopencl", + "use the OpenCL Runtime API")), + cl::location(polly::GPURuntimeChoice), + cl::init(GPURuntime::CUDA), cl::cat(PollyCategory)); GPUArch polly::GPUArchChoice; static cl::opt<GPUArch, true> @@ -131,8 +132,7 @@ static cl::opt<GPUArch, true> clEnumValN(GPUArch::SPIR64, "spir64", "target SPIR 64-bit architecture")), cl::location(polly::GPUArchChoice), - cl::init(GPUArch::NVPTX64), cl::ZeroOrMore, - cl::cat(PollyCategory)); + cl::init(GPUArch::NVPTX64), cl::cat(PollyCategory)); extern bool polly::PerfMonitoring; diff --git a/polly/lib/Support/RegisterPasses.cpp b/polly/lib/Support/RegisterPasses.cpp index bd99bd180df71..2c81f946c742b 100644 --- a/polly/lib/Support/RegisterPasses.cpp +++ b/polly/lib/Support/RegisterPasses.cpp @@ -88,8 +88,7 @@ static cl::opt<PassPositionChoice> PassPosition( "After the loop optimizer (but within the inline cycle)"), clEnumValN(POSITION_BEFORE_VECTORIZER, "before-vectorizer", "Right before the vectorizer")), - cl::Hidden, cl::init(POSITION_BEFORE_VECTORIZER), cl::ZeroOrMore, - cl::cat(PollyCategory)); + cl::Hidden, cl::init(POSITION_BEFORE_VECTORIZER), cl::cat(PollyCategory)); static cl::opt<OptimizerChoice> Optimizer("polly-optimizer", cl::desc("Select the scheduling optimizer"), @@ -104,7 +103,7 @@ static cl::opt<CodeGenChoice> CodeGeneration( cl::values(clEnumValN(CODEGEN_FULL, "full", "AST and IR generation"), clEnumValN(CODEGEN_AST, "ast", "Only AST generation"), clEnumValN(CODEGEN_NONE, "none", "No code generation")), - cl::Hidden, cl::init(CODEGEN_FULL), cl::ZeroOrMore, cl::cat(PollyCategory)); + cl::Hidden, cl::init(CODEGEN_FULL), cl::cat(PollyCategory)); enum TargetChoice { TARGET_CPU, TARGET_GPU, TARGET_HYBRID }; static cl::opt<TargetChoice> @@ -117,7 +116,7 @@ static cl::opt<TargetChoice> "generate GPU code (preferably) or CPU code") #endif ), - cl::init(TARGET_CPU), cl::ZeroOrMore, cl::cat(PollyCategory)); + cl::init(TARGET_CPU), cl::cat(PollyCategory)); VectorizerChoice PollyVectorizerChoice; @@ -130,7 +129,7 @@ static cl::opt<VectorizerChoice, true> Vectorizer( VECTORIZER_STRIPMINE, "stripmine", "Strip-mine outer loops for the loop-vectorizer to trigger")), cl::location(PollyVectorizerChoice), cl::init(VECTORIZER_NONE), - cl::ZeroOrMore, cl::cat(PollyCategory)); + cl::cat(PollyCategory)); static cl::opt<bool> ImportJScop( "polly-import", @@ -155,7 +154,7 @@ static cl::opt<bool> PollyViewer( "polly-show", cl::desc("Highlight the code regions that will be optimized in a " "(CFG BBs and LLVM-IR instructions)"), - cl::init(false), cl::ZeroOrMore, cl::cat(PollyCategory)); + cl::cat(PollyCategory)); static cl::opt<bool> PollyOnlyViewer( "polly-show-only", diff --git a/polly/lib/Transform/DeadCodeElimination.cpp b/polly/lib/Transform/DeadCodeElimination.cpp index 42b48f4106dd8..5cb89fec09fe8 100644 --- a/polly/lib/Transform/DeadCodeElimination.cpp +++ b/polly/lib/Transform/DeadCodeElimination.cpp @@ -49,7 +49,7 @@ cl::opt<int> DCEPreciseSteps( cl::desc("The number of precise steps between two approximating " "iterations. (A value of -1 schedules another approximation stage " "before the actual dead code elimination."), - cl::ZeroOrMore, cl::init(-1), cl::cat(PollyCategory)); + cl::init(-1), cl::cat(PollyCategory)); class DeadCodeElimWrapperPass final : public ScopPass { public: diff --git a/polly/lib/Transform/MatmulOptimizer.cpp b/polly/lib/Transform/MatmulOptimizer.cpp index 84c7da6590443..4a40fac0d03be 100644 --- a/polly/lib/Transform/MatmulOptimizer.cpp +++ b/polly/lib/Transform/MatmulOptimizer.cpp @@ -54,14 +54,14 @@ static cl::opt<int> LatencyVectorFma( cl::desc("The minimal number of cycles between issuing two " "dependent consecutive vector fused multiply-add " "instructions."), - cl::Hidden, cl::init(8), cl::ZeroOrMore, cl::cat(PollyCategory)); + cl::Hidden, cl::init(8), cl::cat(PollyCategory)); static cl::opt<int> ThroughputVectorFma( "polly-target-throughput-vector-fma", cl::desc("A throughput of the processor floating-point arithmetic units " "expressed in the number of vector fused multiply-add " "instructions per clock cycle."), - cl::Hidden, cl::init(1), cl::ZeroOrMore, cl::cat(PollyCategory)); + cl::Hidden, cl::init(1), cl::cat(PollyCategory)); static cl::opt<int> FirstCacheLevelSize( "polly-target-1st-cache-level-size", diff --git a/polly/lib/Transform/ScheduleOptimizer.cpp b/polly/lib/Transform/ScheduleOptimizer.cpp index cc139c1af87ab..c0366514ec50e 100644 --- a/polly/lib/Transform/ScheduleOptimizer.cpp +++ b/polly/lib/Transform/ScheduleOptimizer.cpp @@ -121,7 +121,7 @@ static cl::opt<int> FirstLevelDefaultTileSize( "polly-default-tile-size", cl::desc("The default tile size (if not enough were provided by" " --polly-tile-sizes)"), - cl::Hidden, cl::init(32), cl::ZeroOrMore, cl::cat(PollyCategory)); + cl::Hidden, cl::init(32), cl::cat(PollyCategory)); static cl::list<int> FirstLevelTileSizes("polly-tile-sizes", @@ -155,7 +155,7 @@ static cl::opt<int> RegisterDefaultTileSize( "polly-register-tiling-default-tile-size", cl::desc("The default register tile size (if not enough were provided by" " --polly-register-tile-sizes)"), - cl::Hidden, cl::init(2), cl::ZeroOrMore, cl::cat(PollyCategory)); + cl::Hidden, cl::init(2), cl::cat(PollyCategory)); static cl::list<int> RegisterTileSizes("polly-register-tile-sizes", @@ -188,7 +188,7 @@ static cl::opt<bool> OptimizedScops( cl::desc("Polly - Dump polyhedral description of Scops optimized with " "the isl scheduling optimizer and the set of post-scheduling " "transformations is applied on the schedule tree"), - cl::init(false), cl::ZeroOrMore, cl::cat(PollyCategory)); + cl::cat(PollyCategory)); STATISTIC(ScopsProcessed, "Number of scops processed"); STATISTIC(ScopsRescheduled, "Number of scops rescheduled"); _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits