diff --git a/clang/tools/clang-linker-wrapper/ClangLinkerWrapper.cpp b/clang/tools/clang-linker-wrapper/ClangLinkerWrapper.cpp index e7eec16e51150b..4e0b5ab2024ccf 100644 --- a/clang/tools/clang-linker-wrapper/ClangLinkerWrapper.cpp +++ b/clang/tools/clang-linker-wrapper/ClangLinkerWrapper.cpp @@ -109,7 +109,7 @@ static cl::list cl::cat(ClangLinkerWrapperCategory)); static cl::list - LinkerArgs("device-linker", cl::ZeroOrMore, + LinkerArgs("device-linker", cl::desc("Arguments to pass to the device linker invocation"), cl::value_desc(" or ="), cl::cat(ClangLinkerWrapperCategory)); diff --git a/clang/tools/clang-rename/ClangRename.cpp b/clang/tools/clang-rename/ClangRename.cpp index 12f20243a9633a..e7ceac7dbf3030 100644 --- a/clang/tools/clang-rename/ClangRename.cpp +++ b/clang/tools/clang-rename/ClangRename.cpp @@ -74,7 +74,7 @@ static cl::opt Inplace("i", cl::desc("Overwrite edited s."), static cl::list QualifiedNames("qualified-name", cl::desc("The fully qualified name of the symbol."), - cl::ZeroOrMore, cl::cat(ClangRenameOptions)); + cl::cat(ClangRenameOptions)); static cl::list 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 795c167c5271d0..291f14e1d7d7ae 100644 --- a/llvm/examples/OrcV2Examples/LLJITWithRemoteDebugging/LLJITWithRemoteDebugging.cpp +++ b/llvm/examples/OrcV2Examples/LLJITWithRemoteDebugging/LLJITWithRemoteDebugging.cpp @@ -105,7 +105,7 @@ static cl::list InputFiles(cl::Positional, cl::OneOrMore, // Command line arguments to pass to the JITed main function. static cl::list InputArgv("args", cl::Positional, cl::desc("..."), - cl::ZeroOrMore, cl::PositionalEatsArgs); + cl::PositionalEatsArgs); // Given paths must exist on the remote target. static cl::list diff --git a/llvm/lib/CodeGen/MachinePipeliner.cpp b/llvm/lib/CodeGen/MachinePipeliner.cpp index 51f4cc30c45bce..e6619e180758d4 100644 --- a/llvm/lib/CodeGen/MachinePipeliner.cpp +++ b/llvm/lib/CodeGen/MachinePipeliner.cpp @@ -146,8 +146,8 @@ static cl::opt SwpLoopLimit("pipeliner-max", cl::Hidden, cl::init(-1)); #endif static cl::opt SwpIgnoreRecMII("pipeliner-ignore-recmii", - cl::ReallyHidden, cl::init(false), - cl::ZeroOrMore, cl::desc("Ignore RecMII")); + cl::ReallyHidden, + cl::desc("Ignore RecMII")); static cl::opt SwpShowResMask("pipeliner-show-mask", cl::Hidden, cl::init(false)); diff --git a/llvm/lib/CodeGen/TargetPassConfig.cpp b/llvm/lib/CodeGen/TargetPassConfig.cpp index d659a44c183743..276911b790e2bd 100644 --- a/llvm/lib/CodeGen/TargetPassConfig.cpp +++ b/llvm/lib/CodeGen/TargetPassConfig.cpp @@ -115,20 +115,18 @@ static cl::opt PrintGCInfo("print-gc", cl::Hidden, cl::desc("Dump garbage collector data")); static cl::opt VerifyMachineCode("verify-machineinstrs", cl::Hidden, - cl::desc("Verify generated machine code"), - cl::ZeroOrMore); -static cl::opt 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 + 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 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 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 99a0b12413f123..8b5b585090f558 100644 --- a/llvm/lib/CodeGen/VLIWMachineScheduler.cpp +++ b/llvm/lib/CodeGen/VLIWMachineScheduler.cpp @@ -45,7 +45,7 @@ static cl::opt IgnoreBBRegPressure("ignore-bb-reg-pressure", cl::Hidden, cl::init(false)); static cl::opt UseNewerCandidate("use-newer-candidate", cl::Hidden, - cl::ZeroOrMore, cl::init(true)); + cl::init(true)); static cl::opt SchedDebugVerboseLevel("misched-verbose-level", cl::Hidden, cl::init(1)); diff --git a/llvm/lib/IR/DiagnosticHandler.cpp b/llvm/lib/IR/DiagnosticHandler.cpp index 7b40728a34e8c9..683eade502917d 100644 --- a/llvm/lib/IR/DiagnosticHandler.cpp +++ b/llvm/lib/IR/DiagnosticHandler.cpp @@ -47,8 +47,7 @@ static cl::opt> 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> 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> 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 f553463be8df22..bc2df37e773d42 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 a80fde83e3bc7a..8bed9b29cba554 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( - "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 c6ff426fca1de1..fab537625675db 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 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 + 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 6e091c0f4ff904..2fe2e032714a6f 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 OptSpeculate("commgep-speculate", cl::init(true), cl::Hidden); -static cl::opt OptEnableInv("commgep-inv", cl::init(true), cl::Hidden, - cl::ZeroOrMore); +static cl::opt OptEnableInv("commgep-inv", cl::init(true), cl::Hidden); static cl::opt 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 8893ffe7fb2ac7..56d471af8e2080 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 DisableDeallocRet("disable-hexagon-dealloc-ret", cl::Hidden, cl::desc("Disable Dealloc Return for Hexagon target")); -static cl::opt NumberScavengerSlots("number-scavenger-slots", - cl::Hidden, cl::desc("Set the number of scavenger slots"), cl::init(2), - cl::ZeroOrMore); +static cl::opt + NumberScavengerSlots("number-scavenger-slots", cl::Hidden, + cl::desc("Set the number of scavenger slots"), + cl::init(2)); static cl::opt SpillFuncThreshold("spill-func-threshold", cl::Hidden, diff --git a/llvm/lib/Target/Hexagon/HexagonGenInsert.cpp b/llvm/lib/Target/Hexagon/HexagonGenInsert.cpp index 4a801e5560e278..44f21dbacd3c2c 100644 --- a/llvm/lib/Target/Hexagon/HexagonGenInsert.cpp +++ b/llvm/lib/Target/Hexagon/HexagonGenInsert.cpp @@ -72,14 +72,11 @@ static cl::opt cl::desc("Enable detailed timing of insert " "generation")); -static cl::opt OptSelectAll0("insert-all0", cl::init(false), cl::Hidden, - cl::ZeroOrMore); -static cl::opt OptSelectHas0("insert-has0", cl::init(false), cl::Hidden, - cl::ZeroOrMore); +static cl::opt OptSelectAll0("insert-all0", cl::init(false), cl::Hidden); +static cl::opt 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 OptConst("insert-const", cl::init(false), cl::Hidden, - cl::ZeroOrMore); +static cl::opt 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 0153130428d5d6..1993c7bacdded0 100644 --- a/llvm/lib/Transforms/IPO/Attributor.cpp +++ b/llvm/lib/Transforms/IPO/Attributor.cpp @@ -129,7 +129,7 @@ static cl::list 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 diff --git a/llvm/lib/Transforms/Instrumentation/HWAddressSanitizer.cpp b/llvm/lib/Transforms/Instrumentation/HWAddressSanitizer.cpp index 1842f73e9549a1..34450ed5a46733 100644 --- a/llvm/lib/Transforms/Instrumentation/HWAddressSanitizer.cpp +++ b/llvm/lib/Transforms/Instrumentation/HWAddressSanitizer.cpp @@ -202,8 +202,7 @@ static cl::opt ClUseShortGranules( static cl::opt 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 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 3f71c69e55eff1..935ac0ecdf9169 100644 --- a/llvm/lib/Transforms/Instrumentation/InstrProfiling.cpp +++ b/llvm/lib/Transforms/Instrumentation/InstrProfiling.cpp @@ -118,7 +118,7 @@ cl::opt DoCounterPromotion("do-counter-promotion", cl::desc("Do counter register promotion"), cl::init(false)); cl::opt 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 35e46ad4aa6a5f..d94b767c7b63aa 100644 --- a/llvm/lib/Transforms/Scalar/LoopFuse.cpp +++ b/llvm/lib/Transforms/Scalar/LoopFuse.cpp @@ -117,7 +117,7 @@ static cl::opt 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 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 ff4f1ec3fc6520..2b06e8f3b3651d 100644 --- a/llvm/tools/bugpoint/ExecutionDriver.cpp +++ b/llvm/tools/bugpoint/ExecutionDriver.cpp @@ -119,7 +119,7 @@ cl::list ToolArgv("tool-args", cl::Positional, cl::list SafeToolArgv("safe-tool-args", cl::Positional, cl::desc("..."), - cl::ZeroOrMore, cl::PositionalEatsArgs); + cl::PositionalEatsArgs); cl::opt 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 db3f5e2c492819..e45088865bea13 100644 --- a/llvm/tools/lli/lli.cpp +++ b/llvm/tools/lli/lli.cpp @@ -144,8 +144,7 @@ namespace { "-extra-module arguments.")); cl::list - 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 61987962d77514..33874e3c0d86e1 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 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 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 12da7bb79422ff..3cc211b8a98643 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 InputFilenames(Positional, desc(""), - 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 4615554f40544f..ffd2a390d9c36e 100644 --- a/llvm/tools/llvm-extract/llvm-extract.cpp +++ b/llvm/tools/llvm-extract/llvm-extract.cpp @@ -88,8 +88,7 @@ static cl::list 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 diff --git a/llvm/tools/llvm-gsymutil/llvm-gsymutil.cpp b/llvm/tools/llvm-gsymutil/llvm-gsymutil.cpp index 4e3c06e1e5fd75..4eaab07e601196 100644 --- a/llvm/tools/llvm-gsymutil/llvm-gsymutil.cpp +++ b/llvm/tools/llvm-gsymutil/llvm-gsymutil.cpp @@ -65,7 +65,7 @@ static opt Verbose("verbose", cat(GeneralOptions)); static list InputFilenames(Positional, desc(""), - ZeroOrMore, cat(GeneralOptions)); + cat(GeneralOptions)); static opt ConvertFilename("convert", cl::init(""), diff --git a/llvm/tools/llvm-jitlink/llvm-jitlink.cpp b/llvm/tools/llvm-jitlink/llvm-jitlink.cpp index c310276579fe58..8146419ac341c8 100644 --- a/llvm/tools/llvm-jitlink/llvm-jitlink.cpp +++ b/llvm/tools/llvm-jitlink/llvm-jitlink.cpp @@ -122,7 +122,7 @@ static cl::list static cl::list InputArgv("args", cl::Positional, cl::desc("..."), - cl::ZeroOrMore, cl::PositionalEatsArgs, + cl::PositionalEatsArgs, cl::cat(JITLinkCategory)); static cl::opt @@ -142,7 +142,7 @@ static cl::list AbsoluteDefs( static cl::list Aliases("alias", cl::desc("Inject symbol aliases (syntax: =)"), - cl::ZeroOrMore, cl::cat(JITLinkCategory)); + cl::cat(JITLinkCategory)); static cl::list 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 9cc04576e2b696..08b371ecd3b57a 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 Libraries( "l 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 LibrarySearchDirs( "L", diff --git a/llvm/tools/llvm-lto/llvm-lto.cpp b/llvm/tools/llvm-lto/llvm-lto.cpp index 72388c72f10456..79dd17576d9b7a 100644 --- a/llvm/tools/llvm-lto/llvm-lto.cpp +++ b/llvm/tools/llvm-lto/llvm-lto.cpp @@ -215,7 +215,7 @@ static cl::list ExportedSymbols( static cl::list 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 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 091bb3a84994f6..b9abc4c4259c5e 100644 --- a/llvm/tools/llvm-lto2/llvm-lto2.cpp +++ b/llvm/tools/llvm-lto2/llvm-lto2.cpp @@ -90,8 +90,7 @@ static cl::list 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 OverrideTriple( "override-triple", diff --git a/llvm/tools/llvm-pdbutil/llvm-pdbutil.cpp b/llvm/tools/llvm-pdbutil/llvm-pdbutil.cpp index aa665ce42f4afe..63fe97130bb9f1 100644 --- a/llvm/tools/llvm-pdbutil/llvm-pdbutil.cpp +++ b/llvm/tools/llvm-pdbutil/llvm-pdbutil.cpp @@ -319,12 +319,14 @@ cl::list ExcludeTypes("exclude-types", cl::desc("Exclude types by regular expression"), cl::cat(FilterCategory), cl::sub(PrettySubcommand)); -cl::list ExcludeSymbols( - "exclude-symbols", cl::desc("Exclude symbols by regular expression"), - cl::ZeroOrMore, cl::cat(FilterCategory), cl::sub(PrettySubcommand)); -cl::list ExcludeCompilands( - "exclude-compilands", cl::desc("Exclude compilands by regular expression"), - cl::ZeroOrMore, cl::cat(FilterCategory), cl::sub(PrettySubcommand)); +cl::list + ExcludeSymbols("exclude-symbols", + cl::desc("Exclude symbols by regular expression"), + cl::cat(FilterCategory), cl::sub(PrettySubcommand)); +cl::list + ExcludeCompilands("exclude-compilands", + cl::desc("Exclude compilands by regular expression"), + cl::cat(FilterCategory), cl::sub(PrettySubcommand)); cl::list IncludeTypes( "include-types", @@ -333,7 +335,7 @@ cl::list IncludeTypes( cl::list 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 IncludeCompilands( "include-compilands", cl::desc("Include only compilands those which match a regular expression"), @@ -418,7 +420,7 @@ cl::list TypeIndex( cl::CommaSeparated, cl::sub(BytesSubcommand), cl::cat(TypeCategory)); cl::list 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 ModuleIndex( diff --git a/llvm/tools/llvm-rtdyld/llvm-rtdyld.cpp b/llvm/tools/llvm-rtdyld/llvm-rtdyld.cpp index 652740ab2772b5..df82fb04e8e680 100644 --- a/llvm/tools/llvm-rtdyld/llvm-rtdyld.cpp +++ b/llvm/tools/llvm-rtdyld/llvm-rtdyld.cpp @@ -83,7 +83,7 @@ static cl::list Dylibs("dylib", cl::desc("Add library."), static cl::list InputArgv("args", cl::Positional, cl::desc("..."), - cl::ZeroOrMore, cl::PositionalEatsArgs, + cl::PositionalEatsArgs, cl::cat(RTDyldCategory)); static cl::opt diff --git a/llvm/tools/llvm-strings/llvm-strings.cpp b/llvm/tools/llvm-strings/llvm-strings.cpp index 438eed33d283b7..71d1321ee0ba38 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 InputFileNames(cl::Positional, - cl::desc(""), - cl::ZeroOrMore); + cl::desc("")); static int MinLength = 4; static bool PrintFileName; diff --git a/llvm/tools/opt/opt.cpp b/llvm/tools/opt/opt.cpp index 2f7c3b4adec5e7..0e013ef3b9fdf2 100644 --- a/llvm/tools/opt/opt.cpp +++ b/llvm/tools/opt/opt.cpp @@ -192,10 +192,9 @@ static cl::opt DisableSimplifyLibCalls("disable-simplify-libcalls", cl::desc("Disable simplify-libcalls")); -static cl::list -DisableBuiltins("disable-builtin", - cl::desc("Disable specific target library builtin function"), - cl::ZeroOrMore); +static cl::list DisableBuiltins( + "disable-builtin", + cl::desc("Disable specific target library builtin function")); static cl::opt EnableDebugify( "enable-debugify", diff --git a/llvm/unittests/Support/CommandLineTest.cpp b/llvm/unittests/Support/CommandLineTest.cpp index d8539283a73845..ed0dc98415a67d 100644 --- a/llvm/unittests/Support/CommandLineTest.cpp +++ b/llvm/unittests/Support/CommandLineTest.cpp @@ -1157,7 +1157,7 @@ TEST(CommandLineTest, PositionalEatArgsError) { cl::PositionalEatsArgs); StackOption> 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 dc6ed169b5ed7c..f29355ffc51d7b 100644 --- a/polly/lib/Analysis/DependenceInfo.cpp +++ b/polly/lib/Analysis/DependenceInfo.cpp @@ -66,8 +66,7 @@ static cl::opt 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 OptAnalysisLevel( "polly-dependences-analysis-level", @@ -80,8 +79,7 @@ static cl::opt 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 f9c39c1625516d..9d7b4c44d4b884 100644 --- a/polly/lib/Analysis/ScopDetection.cpp +++ b/polly/lib/Analysis/ScopDetection.cpp @@ -117,7 +117,7 @@ static cl::list 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 IgnoredFunctions( "polly-ignore-func", @@ -125,7 +125,7 @@ static cl::list 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 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 VerifyScops("polly-detect-verify", diff --git a/polly/lib/Analysis/ScopInfo.cpp b/polly/lib/Analysis/ScopInfo.cpp index 0649908ea4b199..ca81d43703a906 100644 --- a/polly/lib/Analysis/ScopInfo.cpp +++ b/polly/lib/Analysis/ScopInfo.cpp @@ -155,8 +155,7 @@ bool polly::UseInstructionNames; static cl::opt 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 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 2f7d7a9785f805..a98cfa1c1f2588 100644 --- a/polly/lib/CodeGen/BlockGenerators.cpp +++ b/polly/lib/CodeGen/BlockGenerators.cpp @@ -39,8 +39,7 @@ bool PollyDebugPrinting; static cl::opt 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 TraceStmts( "polly-codegen-trace-stmts", diff --git a/polly/lib/CodeGen/CodeGeneration.cpp b/polly/lib/CodeGen/CodeGeneration.cpp index f3e80681a73e7a..b124525d3b5db7 100644 --- a/polly/lib/CodeGen/CodeGeneration.cpp +++ b/polly/lib/CodeGen/CodeGeneration.cpp @@ -58,8 +58,8 @@ bool polly::PerfMonitoring; static cl::opt 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 338be5b2f8768d..5041db931a19c3 100644 --- a/polly/lib/CodeGen/IslAst.cpp +++ b/polly/lib/CodeGen/IslAst.cpp @@ -72,7 +72,7 @@ static cl::opt 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 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 dab0ca1beec29f..12b724c8f7bf48 100644 --- a/polly/lib/CodeGen/IslExprBuilder.cpp +++ b/polly/lib/CodeGen/IslExprBuilder.cpp @@ -34,7 +34,7 @@ static cl::opt 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 a397692d0ac5fe..e0749174f52f6f 100644 --- a/polly/lib/CodeGen/ManagedMemoryRewrite.cpp +++ b/polly/lib/CodeGen/ManagedMemoryRewrite.cpp @@ -40,7 +40,7 @@ static cl::opt 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 5f3659ed247442..170f08e532ee89 100644 --- a/polly/lib/CodeGen/PPCGCodeGeneration.cpp +++ b/polly/lib/CodeGen/PPCGCodeGeneration.cpp @@ -87,7 +87,7 @@ static cl::opt " 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 FailOnVerifyModuleFailure("polly-acc-fail-on-verify-module-failure", @@ -112,14 +112,15 @@ static cl::opt cl::Hidden, cl::init(10 * 512 * 512)); GPURuntime polly::GPURuntimeChoice; -static cl::opt 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 + 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 @@ -131,8 +132,7 @@ static cl::opt 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 bd99bd180df711..2c81f946c742bb 100644 --- a/polly/lib/Support/RegisterPasses.cpp +++ b/polly/lib/Support/RegisterPasses.cpp @@ -88,8 +88,7 @@ static cl::opt 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 Optimizer("polly-optimizer", cl::desc("Select the scheduling optimizer"), @@ -104,7 +103,7 @@ static cl::opt 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 @@ -117,7 +116,7 @@ static cl::opt "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 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 ImportJScop( "polly-import", @@ -155,7 +154,7 @@ static cl::opt 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 PollyOnlyViewer( "polly-show-only", diff --git a/polly/lib/Transform/DeadCodeElimination.cpp b/polly/lib/Transform/DeadCodeElimination.cpp index 42b48f4106dd85..5cb89fec09fe83 100644 --- a/polly/lib/Transform/DeadCodeElimination.cpp +++ b/polly/lib/Transform/DeadCodeElimination.cpp @@ -49,7 +49,7 @@ cl::opt 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 84c7da65904437..4a40fac0d03be8 100644 --- a/polly/lib/Transform/MatmulOptimizer.cpp +++ b/polly/lib/Transform/MatmulOptimizer.cpp @@ -54,14 +54,14 @@ static cl::opt 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 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 FirstCacheLevelSize( "polly-target-1st-cache-level-size", diff --git a/polly/lib/Transform/ScheduleOptimizer.cpp b/polly/lib/Transform/ScheduleOptimizer.cpp index cc139c1af87abc..c0366514ec50ec 100644 --- a/polly/lib/Transform/ScheduleOptimizer.cpp +++ b/polly/lib/Transform/ScheduleOptimizer.cpp @@ -121,7 +121,7 @@ static cl::opt 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 FirstLevelTileSizes("polly-tile-sizes", @@ -155,7 +155,7 @@ static cl::opt 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 RegisterTileSizes("polly-register-tile-sizes", @@ -188,7 +188,7 @@ static cl::opt 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");