Index: llvm/lib/Analysis/CFGPrinter.cpp =================================================================== --- llvm/lib/Analysis/CFGPrinter.cpp +++ llvm/lib/Analysis/CFGPrinter.cpp @@ -37,13 +37,13 @@ cl::desc("The prefix used for the CFG dot file names.")); static cl::opt HideUnreachablePaths("cfg-hide-unreachable-paths", - cl::init(false)); + cl::Hidden, cl::init(false)); static cl::opt HideDeoptimizePaths("cfg-hide-deoptimize-paths", - cl::init(false)); + cl::Hidden, cl::init(false)); static cl::opt HideColdPaths( - "cfg-hide-cold-paths", cl::init(0.0), + "cfg-hide-cold-paths", cl::Hidden, cl::init(0.0), cl::desc("Hide blocks with relative frequency below the given value")); static cl::opt ShowHeatColors("cfg-heat-colors", cl::init(true), Index: llvm/lib/Analysis/CGSCCPassManager.cpp =================================================================== --- llvm/lib/Analysis/CGSCCPassManager.cpp +++ llvm/lib/Analysis/CGSCCPassManager.cpp @@ -40,7 +40,7 @@ namespace llvm { static cl::opt AbortOnMaxDevirtIterationsReached( - "abort-on-max-devirt-iterations-reached", + "abort-on-max-devirt-iterations-reached", cl::Hidden, cl::desc("Abort when the max iterations for devirtualization CGSCC repeat " "pass is reached")); Index: llvm/lib/Analysis/CostModel.cpp =================================================================== --- llvm/lib/Analysis/CostModel.cpp +++ llvm/lib/Analysis/CostModel.cpp @@ -27,18 +27,17 @@ #include "llvm/Support/raw_ostream.h" using namespace llvm; -static cl::opt CostKind( - "cost-kind", cl::desc("Target cost kind"), - cl::init(TargetTransformInfo::TCK_RecipThroughput), - cl::values(clEnumValN(TargetTransformInfo::TCK_RecipThroughput, - "throughput", "Reciprocal throughput"), - clEnumValN(TargetTransformInfo::TCK_Latency, - "latency", "Instruction latency"), - clEnumValN(TargetTransformInfo::TCK_CodeSize, - "code-size", "Code size"), - clEnumValN(TargetTransformInfo::TCK_SizeAndLatency, - "size-latency", "Code size and latency"))); - +static cl::opt + CostKind("cost-kind", cl::desc("Target cost kind"), cl::Hidden, + cl::init(TargetTransformInfo::TCK_RecipThroughput), + cl::values(clEnumValN(TargetTransformInfo::TCK_RecipThroughput, + "throughput", "Reciprocal throughput"), + clEnumValN(TargetTransformInfo::TCK_Latency, "latency", + "Instruction latency"), + clEnumValN(TargetTransformInfo::TCK_CodeSize, + "code-size", "Code size"), + clEnumValN(TargetTransformInfo::TCK_SizeAndLatency, + "size-latency", "Code size and latency"))); #define CM_NAME "cost-model" #define DEBUG_TYPE CM_NAME Index: llvm/lib/Analysis/MemorySSA.cpp =================================================================== --- llvm/lib/Analysis/MemorySSA.cpp +++ llvm/lib/Analysis/MemorySSA.cpp @@ -61,10 +61,9 @@ #define DEBUG_TYPE "memoryssa" -static cl::opt - DotCFGMSSA("dot-cfg-mssa", - cl::value_desc("file name for generated dot file"), - cl::desc("file name for generated dot file"), cl::init("")); +static cl::opt DotCFGMSSA( + "dot-cfg-mssa", cl::value_desc("file name for generated dot file"), + cl::desc("file name for generated dot file"), cl::Hidden, cl::init("")); INITIALIZE_PASS_BEGIN(MemorySSAWrapperPass, "memoryssa", "Memory SSA", false, true) Index: llvm/lib/Analysis/RegionInfo.cpp =================================================================== --- llvm/lib/Analysis/RegionInfo.cpp +++ llvm/lib/Analysis/RegionInfo.cpp @@ -37,11 +37,10 @@ // Always verify if expensive checking is enabled. -static cl::opt -VerifyRegionInfoX( - "verify-region-info", - cl::location(RegionInfoBase>::VerifyRegionInfo), - cl::desc("Verify region info (time consuming)")); +static cl::opt VerifyRegionInfoX( + "verify-region-info", cl::Hidden, + cl::location(RegionInfoBase>::VerifyRegionInfo), + cl::desc("Verify region info (time consuming)")); static cl::opt printStyleX("print-region-style", cl::location(RegionInfo::printStyle), Index: llvm/lib/CodeGen/GlobalISel/IRTranslator.cpp =================================================================== --- llvm/lib/CodeGen/GlobalISel/IRTranslator.cpp +++ llvm/lib/CodeGen/GlobalISel/IRTranslator.cpp @@ -89,7 +89,7 @@ static cl::opt EnableCSEInIRTranslator("enable-cse-in-irtranslator", cl::desc("Should enable CSE in irtranslator"), - cl::Optional, cl::init(false)); + cl::Optional, cl::Hidden, cl::init(false)); char IRTranslator::ID = 0; INITIALIZE_PASS_BEGIN(IRTranslator, DEBUG_TYPE, "IRTranslator LLVM IR -> MI", Index: llvm/lib/CodeGen/GlobalISel/Legalizer.cpp =================================================================== --- llvm/lib/CodeGen/GlobalISel/Legalizer.cpp +++ llvm/lib/CodeGen/GlobalISel/Legalizer.cpp @@ -41,7 +41,7 @@ static cl::opt EnableCSEInLegalizer("enable-cse-in-legalizer", cl::desc("Should enable CSE in Legalizer"), - cl::Optional, cl::init(false)); + cl::Optional, cl::Hidden, cl::init(false)); enum class DebugLocVerifyLevel { None, @@ -50,7 +50,7 @@ }; #ifndef NDEBUG static cl::opt VerifyDebugLocs( - "verify-legalizer-debug-locs", + "verify-legalizer-debug-locs", cl::Hidden, cl::desc("Verify that debug locations are handled"), cl::values( clEnumValN(DebugLocVerifyLevel::None, "none", "No verification"), Index: llvm/lib/CodeGen/MachineStripDebug.cpp =================================================================== --- llvm/lib/CodeGen/MachineStripDebug.cpp +++ llvm/lib/CodeGen/MachineStripDebug.cpp @@ -27,7 +27,7 @@ OnlyDebugifiedDefault("mir-strip-debugify-only", cl::desc("Should mir-strip-debug only strip debug " "info from debugified modules by default"), - cl::init(true)); + cl::Hidden, cl::init(true)); struct StripDebugMachineModule : public ModulePass { bool runOnModule(Module &M) override { Index: llvm/lib/IR/SafepointIRVerifier.cpp =================================================================== --- llvm/lib/IR/SafepointIRVerifier.cpp +++ llvm/lib/IR/SafepointIRVerifier.cpp @@ -57,7 +57,7 @@ /// This option is used for writing test cases. Instead of crashing the program /// when verification fails, report a message to the console (for FileCheck /// usage) and continue execution as if nothing happened. -static cl::opt PrintOnly("safepoint-ir-verifier-print-only", +static cl::opt PrintOnly("safepoint-ir-verifier-print-only", cl::Hidden, cl::init(false)); namespace { Index: llvm/lib/LTO/LTOBackend.cpp =================================================================== --- llvm/lib/LTO/LTOBackend.cpp +++ llvm/lib/LTO/LTOBackend.cpp @@ -59,7 +59,7 @@ }; static cl::opt EmbedBitcode( - "lto-embed-bitcode", cl::init(LTOBitcodeEmbedding::DoNotEmbed), + "lto-embed-bitcode", cl::Hidden, cl::init(LTOBitcodeEmbedding::DoNotEmbed), cl::values(clEnumValN(LTOBitcodeEmbedding::DoNotEmbed, "none", "Do not embed"), clEnumValN(LTOBitcodeEmbedding::EmbedOptimized, "optimized", @@ -70,7 +70,7 @@ cl::desc("Embed LLVM bitcode in object files produced by LTO")); static cl::opt ThinLTOAssumeMerged( - "thinlto-assume-merged", cl::init(false), + "thinlto-assume-merged", cl::Hidden, cl::init(false), cl::desc("Assume the input has already undergone ThinLTO function " "importing and the other pre-optimization pipeline changes.")); Index: llvm/lib/LTO/LTOCodeGenerator.cpp =================================================================== --- llvm/lib/LTO/LTOCodeGenerator.cpp +++ llvm/lib/LTO/LTOCodeGenerator.cpp @@ -75,7 +75,7 @@ namespace llvm { cl::opt LTODiscardValueNames( - "lto-discard-value-names", + "lto-discard-value-names", cl::Hidden, cl::desc("Strip names from Value during LTO (other than GlobalValue)."), #ifdef NDEBUG cl::init(true), @@ -91,25 +91,25 @@ cl::opt, false, remarks::HotnessThresholdParser> RemarksHotnessThreshold( - "lto-pass-remarks-hotness-threshold", + "lto-pass-remarks-hotness-threshold", cl::Hidden, cl::desc("Minimum profile count required for an " "optimization remark to be output." " Use 'auto' to apply the threshold from profile summary."), cl::value_desc("uint or 'auto'"), cl::init(0), cl::Hidden); cl::opt - RemarksFilename("lto-pass-remarks-output", + RemarksFilename("lto-pass-remarks-output", cl::Hidden, cl::desc("Output filename for pass remarks"), cl::value_desc("filename")); cl::opt - RemarksPasses("lto-pass-remarks-filter", + RemarksPasses("lto-pass-remarks-filter", cl::Hidden, cl::desc("Only record optimization remarks from passes whose " "names match the given regular expression"), cl::value_desc("regex")); cl::opt RemarksFormat( - "lto-pass-remarks-format", + "lto-pass-remarks-format", cl::Hidden, cl::desc("The format used for serializing remarks (default: YAML)"), cl::value_desc("format"), cl::init("yaml")); Index: llvm/lib/LTO/ThinLTOCodeGenerator.cpp =================================================================== --- llvm/lib/LTO/ThinLTOCodeGenerator.cpp +++ llvm/lib/LTO/ThinLTOCodeGenerator.cpp @@ -89,7 +89,7 @@ // Default to using all available threads in the system, but using only one // thred per core, as indicated by the usage of // heavyweight_hardware_concurrency() below. -static cl::opt ThreadCount("threads", cl::init(0)); +static cl::opt ThreadCount("threads", cl::Hidden, cl::init(0)); // Simple helper to save temporary files for debug. static void saveTempBitcode(const Module &TheModule, StringRef TempDir, Index: llvm/lib/ProfileData/InstrProf.cpp =================================================================== --- llvm/lib/ProfileData/InstrProf.cpp +++ llvm/lib/ProfileData/InstrProf.cpp @@ -169,7 +169,8 @@ cl::opt DoInstrProfNameCompression( "enable-name-compression", - cl::desc("Enable name/filename string compression"), cl::init(true)); + cl::desc("Enable name/filename string compression"), cl::Hidden, + cl::init(true)); std::string getInstrProfSectionName(InstrProfSectKind IPSK, Triple::ObjectFormatType OF, Index: llvm/lib/Target/X86/MCTargetDesc/X86AsmBackend.cpp =================================================================== --- llvm/lib/Target/X86/MCTargetDesc/X86AsmBackend.cpp +++ llvm/lib/Target/X86/MCTargetDesc/X86AsmBackend.cpp @@ -76,7 +76,7 @@ X86AlignBranchKind X86AlignBranchKindLoc; cl::opt X86AlignBranchBoundary( - "x86-align-branch-boundary", cl::init(0), + "x86-align-branch-boundary", cl::Hidden, cl::init(0), cl::desc( "Control how the assembler should align branches with NOP. If the " "boundary's size is not 0, it should be a power of 2 and no less " @@ -85,19 +85,19 @@ "align branches.")); cl::opt> X86AlignBranch( - "x86-align-branch", + "x86-align-branch", cl::Hidden, cl::desc( "Specify types of branches to align (plus separated list of types):" - "\njcc indicates conditional jumps" - "\nfused indicates fused conditional jumps" - "\njmp indicates direct unconditional jumps" - "\ncall indicates direct and indirect calls" - "\nret indicates rets" - "\nindirect indicates indirect unconditional jumps"), + "\njcc indicates conditional jumps" + "\nfused indicates fused conditional jumps" + "\njmp indicates direct unconditional jumps" + "\ncall indicates direct and indirect calls" + "\nret indicates rets" + "\nindirect indicates indirect unconditional jumps"), cl::location(X86AlignBranchKindLoc)); cl::opt X86AlignBranchWithin32BBoundaries( - "x86-branches-within-32B-boundaries", cl::init(false), + "x86-branches-within-32B-boundaries", cl::Hidden, cl::init(false), cl::desc( "Align selected instructions to mitigate negative performance impact " "of Intel's micro code update for errata skx102. May break " @@ -105,15 +105,15 @@ "and should be used with caution.")); cl::opt X86PadMaxPrefixSize( - "x86-pad-max-prefix-size", cl::init(0), + "x86-pad-max-prefix-size", cl::Hidden, cl::init(0), cl::desc("Maximum number of prefixes to use for padding")); cl::opt X86PadForAlign( - "x86-pad-for-align", cl::init(false), cl::Hidden, + "x86-pad-for-align", cl::Hidden, cl::init(false), cl::Hidden, cl::desc("Pad previous instructions to implement align directives")); cl::opt X86PadForBranchAlign( - "x86-pad-for-branch-align", cl::init(true), cl::Hidden, + "x86-pad-for-branch-align", cl::Hidden, cl::init(true), cl::Hidden, cl::desc("Pad previous instructions to implement branch alignment")); class X86ELFObjectWriter : public MCELFObjectTargetWriter { Index: llvm/lib/Transforms/IPO/FunctionImport.cpp =================================================================== --- llvm/lib/Transforms/IPO/FunctionImport.cpp +++ llvm/lib/Transforms/IPO/FunctionImport.cpp @@ -134,13 +134,13 @@ /// Summary file to use for function importing when using -function-import from /// the command line. static cl::opt - SummaryFile("summary-file", + SummaryFile("summary-file", cl::Hidden, cl::desc("The summary file to use for function importing.")); /// Used when testing importing from distributed indexes via opt // -function-import. static cl::opt - ImportAllIndex("import-all-index", + ImportAllIndex("import-all-index", cl::Hidden, cl::desc("Import all external functions in index.")); // Load lazily a module from \p FileName in \p Context. Index: llvm/lib/Transforms/IPO/Internalize.cpp =================================================================== --- llvm/lib/Transforms/IPO/Internalize.cpp +++ llvm/lib/Transforms/IPO/Internalize.cpp @@ -46,12 +46,13 @@ // APIFile - A file which contains a list of symbols that should not be marked // external. static cl::opt - APIFile("internalize-public-api-file", cl::value_desc("filename"), + APIFile("internalize-public-api-file", cl::Hidden, + cl::value_desc("filename"), cl::desc("A file containing list of symbol names to preserve")); // APIList - A list of symbols that should not be marked internal. static cl::list - APIList("internalize-public-api-list", cl::value_desc("list"), + APIList("internalize-public-api-list", cl::Hidden, cl::value_desc("list"), cl::desc("A list of symbol names to preserve"), cl::CommaSeparated); namespace { Index: llvm/lib/Transforms/IPO/PassManagerBuilder.cpp =================================================================== --- llvm/lib/Transforms/IPO/PassManagerBuilder.cpp +++ llvm/lib/Transforms/IPO/PassManagerBuilder.cpp @@ -105,8 +105,9 @@ EnablePerformThinLTO("perform-thinlto", cl::init(false), cl::Hidden, cl::desc("Enable performing ThinLTO.")); -cl::opt EnableHotColdSplit("hot-cold-split", cl::init(false), - cl::ZeroOrMore, cl::desc("Enable hot-cold splitting pass")); +cl::opt EnableHotColdSplit("hot-cold-split", cl::Hidden, cl::init(false), + cl::ZeroOrMore, + cl::desc("Enable hot-cold splitting pass")); cl::opt EnableIROutliner("ir-outliner", cl::init(false), cl::Hidden, cl::desc("Enable ir outliner pass")); @@ -125,7 +126,8 @@ "(default = 75)")); cl::opt - EnableGVNHoist("enable-gvn-hoist", cl::init(false), cl::ZeroOrMore, + EnableGVNHoist("enable-gvn-hoist", cl::Hidden, cl::init(false), + cl::ZeroOrMore, cl::desc("Enable the GVN hoisting pass (default = off)")); static cl::opt @@ -139,7 +141,8 @@ "cleanup passes integrated into the loop pass manager pipeline.")); cl::opt - EnableGVNSink("enable-gvn-sink", cl::init(false), cl::ZeroOrMore, + EnableGVNSink("enable-gvn-sink", cl::Hidden, cl::init(false), + cl::ZeroOrMore, cl::desc("Enable the GVN sinking pass (default = off)")); // This option is used in simplifying testing SampleFDO optimizations for Index: llvm/lib/Transforms/InstCombine/InstCombineCalls.cpp =================================================================== --- llvm/lib/Transforms/InstCombine/InstCombineCalls.cpp +++ llvm/lib/Transforms/InstCombine/InstCombineCalls.cpp @@ -86,8 +86,7 @@ STATISTIC(NumSimplified, "Number of library calls simplified"); static cl::opt GuardWideningWindow( - "instcombine-guard-widening-window", - cl::init(3), + "instcombine-guard-widening-window", cl::Hidden, cl::init(3), cl::desc("How wide an instruction window to bypass looking for " "another guard")); Index: llvm/lib/Transforms/InstCombine/InstCombineNegator.cpp =================================================================== --- llvm/lib/Transforms/InstCombine/InstCombineNegator.cpp +++ llvm/lib/Transforms/InstCombine/InstCombineNegator.cpp @@ -91,11 +91,11 @@ "Controls Negator transformations in InstCombine pass"); static cl::opt - NegatorEnabled("instcombine-negator-enabled", cl::init(true), + NegatorEnabled("instcombine-negator-enabled", cl::Hidden, cl::init(true), cl::desc("Should we attempt to sink negations?")); static cl::opt - NegatorMaxDepth("instcombine-negator-max-depth", + NegatorMaxDepth("instcombine-negator-max-depth", cl::Hidden, cl::init(NegatorDefaultMaxDepth), cl::desc("What is the maximal lookup depth when trying to " "check for viability of negation sinking.")); Index: llvm/lib/Transforms/InstCombine/InstCombinePHI.cpp =================================================================== --- llvm/lib/Transforms/InstCombine/InstCombinePHI.cpp +++ llvm/lib/Transforms/InstCombine/InstCombinePHI.cpp @@ -26,9 +26,9 @@ #define DEBUG_TYPE "instcombine" -static cl::opt -MaxNumPhis("instcombine-max-num-phis", cl::init(512), - cl::desc("Maximum number phis to handle in intptr/ptrint folding")); +static cl::opt MaxNumPhis( + "instcombine-max-num-phis", cl::Hidden, cl::init(512), + cl::desc("Maximum number phis to handle in intptr/ptrint folding")); STATISTIC(NumPHIsOfInsertValues, "Number of phi-of-insertvalue turned into insertvalue-of-phis"); Index: llvm/lib/Transforms/InstCombine/InstructionCombining.cpp =================================================================== --- llvm/lib/Transforms/InstCombine/InstructionCombining.cpp +++ llvm/lib/Transforms/InstCombine/InstructionCombining.cpp @@ -135,24 +135,24 @@ static constexpr unsigned InstCombineDefaultInfiniteLoopThreshold = 1000; #endif -static cl::opt -EnableCodeSinking("instcombine-code-sinking", cl::desc("Enable code sinking"), - cl::init(true)); +static cl::opt EnableCodeSinking("instcombine-code-sinking", + cl::desc("Enable code sinking"), + cl::Hidden, cl::init(true)); static cl::opt LimitMaxIterations( - "instcombine-max-iterations", + "instcombine-max-iterations", cl::Hidden, cl::desc("Limit the maximum number of instruction combining iterations"), cl::init(InstCombineDefaultMaxIterations)); static cl::opt InfiniteLoopDetectionThreshold( - "instcombine-infinite-loop-threshold", + "instcombine-infinite-loop-threshold", cl::Hidden, cl::desc("Number of instruction combining iterations considered an " "infinite loop"), cl::init(InstCombineDefaultInfiniteLoopThreshold), cl::Hidden); -static cl::opt -MaxArraySize("instcombine-maxarray-size", cl::init(1024), - cl::desc("Maximum array size considered when doing a combine")); +static cl::opt MaxArraySize( + "instcombine-maxarray-size", cl::Hidden, cl::init(1024), + cl::desc("Maximum array size considered when doing a combine")); // FIXME: Remove this flag when it is no longer necessary to convert // llvm.dbg.declare to avoid inaccurate debug info. Setting this to false Index: llvm/lib/Transforms/Instrumentation/BoundsChecking.cpp =================================================================== --- llvm/lib/Transforms/Instrumentation/BoundsChecking.cpp +++ llvm/lib/Transforms/Instrumentation/BoundsChecking.cpp @@ -38,7 +38,7 @@ #define DEBUG_TYPE "bounds-checking" -static cl::opt SingleTrapBB("bounds-checking-single-trap", +static cl::opt SingleTrapBB("bounds-checking-single-trap", cl::Hidden, cl::desc("Use one trap block per function")); STATISTIC(ChecksAdded, "Bounds checks added"); Index: llvm/lib/Transforms/Instrumentation/InstrProfiling.cpp =================================================================== --- llvm/lib/Transforms/Instrumentation/InstrProfiling.cpp +++ llvm/lib/Transforms/Instrumentation/InstrProfiling.cpp @@ -62,16 +62,16 @@ cl::opt DoHashBasedCounterSplit( "hash-based-counter-split", cl::desc("Rename counter variable of a comdat function based on cfg hash"), - cl::init(true)); + cl::Hidden, cl::init(true)); -cl::opt RuntimeCounterRelocation( - "runtime-counter-relocation", - cl::desc("Enable relocating counters at runtime."), - cl::init(false)); +cl::opt + RuntimeCounterRelocation("runtime-counter-relocation", + cl::desc("Enable relocating counters at runtime."), + cl::Hidden, cl::init(false)); cl::opt ValueProfileStaticAlloc( "vp-static-alloc", - cl::desc("Do static counter allocation for value profiler"), + cl::desc("Do static counter allocation for value profiler"), cl::Hidden, cl::init(true)); cl::opt NumCountersPerValueSite( @@ -82,24 +82,24 @@ // a very small percentage of value sites have non-zero targets, e.g, 1/30. // For those sites with non-zero profile, the average number of targets // is usually smaller than 2. - cl::init(1.0)); + cl::Hidden, cl::init(1.0)); cl::opt AtomicCounterUpdateAll( "instrprof-atomic-counter-update-all", cl::ZeroOrMore, cl::desc("Make all profile counter updates atomic (for testing only)"), - cl::init(false)); + cl::Hidden, cl::init(false)); cl::opt AtomicCounterUpdatePromoted( "atomic-counter-update-promoted", cl::ZeroOrMore, cl::desc("Do counter update using atomic fetch add " " for promoted counters only"), - cl::init(false)); + cl::Hidden, cl::init(false)); cl::opt AtomicFirstCounter( "atomic-first-counter", cl::ZeroOrMore, cl::desc("Use atomic fetch add for first counter in a function (usually " "the entry counter)"), - cl::init(false)); + cl::Hidden, cl::init(false)); // If the option is not specified, the default behavior about whether // counter promotion is done depends on how instrumentaiton lowering @@ -108,35 +108,38 @@ // setting this option can override the default behavior. cl::opt DoCounterPromotion("do-counter-promotion", cl::ZeroOrMore, cl::desc("Do counter register promotion"), - cl::init(false)); + cl::Hidden, cl::init(false)); cl::opt MaxNumOfPromotionsPerLoop( - cl::ZeroOrMore, "max-counter-promotions-per-loop", cl::init(20), + cl::ZeroOrMore, "max-counter-promotions-per-loop", cl::Hidden, cl::init(20), cl::desc("Max number counter promotions per loop to avoid" " increasing register pressure too much")); // A debug option cl::opt - MaxNumOfPromotions(cl::ZeroOrMore, "max-counter-promotions", cl::init(-1), + MaxNumOfPromotions(cl::ZeroOrMore, "max-counter-promotions", cl::Hidden, + cl::init(-1), cl::desc("Max number of allowed counter promotions")); cl::opt SpeculativeCounterPromotionMaxExiting( - cl::ZeroOrMore, "speculative-counter-promotion-max-exiting", cl::init(3), + cl::ZeroOrMore, "speculative-counter-promotion-max-exiting", cl::Hidden, + cl::init(3), cl::desc("The max number of exiting blocks of a loop to allow " " speculative counter promotion")); cl::opt SpeculativeCounterPromotionToLoop( - cl::ZeroOrMore, "speculative-counter-promotion-to-loop", cl::init(false), + cl::ZeroOrMore, "speculative-counter-promotion-to-loop", cl::Hidden, + cl::init(false), cl::desc("When the option is false, if the target block is in a loop, " "the promotion will be disallowed unless the promoted counter " " update can be further/iteratively promoted into an acyclic " " region.")); cl::opt IterativeCounterPromotion( - cl::ZeroOrMore, "iterative-counter-promotion", cl::init(true), + cl::ZeroOrMore, "iterative-counter-promotion", cl::Hidden, cl::init(true), cl::desc("Allow counter promotion across the whole loop nest.")); cl::opt SkipRetExitBlock( - cl::ZeroOrMore, "skip-ret-exit-block", cl::init(true), + cl::ZeroOrMore, "skip-ret-exit-block", cl::Hidden, cl::init(true), cl::desc("Suppress counter promotion if exit blocks contain ret.")); class InstrProfilingLegacyPass : public ModulePass { Index: llvm/lib/Transforms/Instrumentation/PoisonChecking.cpp =================================================================== --- llvm/lib/Transforms/Instrumentation/PoisonChecking.cpp +++ llvm/lib/Transforms/Instrumentation/PoisonChecking.cpp @@ -75,10 +75,8 @@ #define DEBUG_TYPE "poison-checking" static cl::opt -LocalCheck("poison-checking-function-local", - cl::init(false), - cl::desc("Check that returns are non-poison (for testing)")); - + LocalCheck("poison-checking-function-local", cl::Hidden, cl::init(false), + cl::desc("Check that returns are non-poison (for testing)")); static bool isConstantFalse(Value* V) { assert(V->getType()->isIntegerTy(1)); Index: llvm/lib/Transforms/Scalar/GVN.cpp =================================================================== --- llvm/lib/Transforms/Scalar/GVN.cpp +++ llvm/lib/Transforms/Scalar/GVN.cpp @@ -108,13 +108,15 @@ "preventing further exploration"); static cl::opt GVNEnablePRE("enable-pre", cl::init(true), cl::Hidden); -static cl::opt GVNEnableLoadPRE("enable-load-pre", cl::init(true)); +static cl::opt GVNEnableLoadPRE("enable-load-pre", cl::init(true), + cl::Hidden); static cl::opt GVNEnableLoadInLoopPRE("enable-load-in-loop-pre", - cl::init(true)); + cl::init(true), cl::Hidden); static cl::opt -GVNEnableSplitBackedgeInLoadPRE("enable-split-backedge-in-load-pre", - cl::init(true)); -static cl::opt GVNEnableMemDep("enable-gvn-memdep", cl::init(true)); + GVNEnableSplitBackedgeInLoadPRE("enable-split-backedge-in-load-pre", + cl::init(true), cl::Hidden); +static cl::opt GVNEnableMemDep("enable-gvn-memdep", cl::init(true), + cl::Hidden); static cl::opt MaxNumDeps( "gvn-max-num-deps", cl::Hidden, cl::init(100), cl::ZeroOrMore, Index: llvm/lib/Transforms/Scalar/LoopSimplifyCFG.cpp =================================================================== --- llvm/lib/Transforms/Scalar/LoopSimplifyCFG.cpp +++ llvm/lib/Transforms/Scalar/LoopSimplifyCFG.cpp @@ -44,7 +44,7 @@ #define DEBUG_TYPE "loop-simplifycfg" static cl::opt EnableTermFolding("enable-loop-simplifycfg-term-folding", - cl::init(true)); + cl::Hidden, cl::init(true)); STATISTIC(NumTerminatorsFolded, "Number of terminators folded to unconditional branches"); Index: llvm/lib/Transforms/Scalar/LowerMatrixIntrinsics.cpp =================================================================== --- llvm/lib/Transforms/Scalar/LowerMatrixIntrinsics.cpp +++ llvm/lib/Transforms/Scalar/LowerMatrixIntrinsics.cpp @@ -52,28 +52,28 @@ #define DEBUG_TYPE "lower-matrix-intrinsics" static cl::opt - FuseMatrix("fuse-matrix", cl::init(true), cl::Hidden, + FuseMatrix("fuse-matrix", cl::Hidden, cl::init(true), cl::Hidden, cl::desc("Enable/disable fusing matrix instructions.")); // TODO: Allow and use non-square tiles. static cl::opt TileSize( - "fuse-matrix-tile-size", cl::init(4), cl::Hidden, + "fuse-matrix-tile-size", cl::Hidden, cl::init(4), cl::Hidden, cl::desc( "Tile size for matrix instruction fusion using square-shaped tiles.")); -static cl::opt TileUseLoops("fuse-matrix-use-loops", cl::init(false), - cl::Hidden, +static cl::opt TileUseLoops("fuse-matrix-use-loops", cl::Hidden, + cl::init(false), cl::Hidden, cl::desc("Generate loop nest for tiling.")); static cl::opt ForceFusion( - "force-fuse-matrix", cl::init(false), cl::Hidden, + "force-fuse-matrix", cl::Hidden, cl::init(false), cl::Hidden, cl::desc("Force matrix instruction fusion even if not profitable.")); static cl::opt AllowContractEnabled( - "matrix-allow-contract", cl::init(false), cl::Hidden, + "matrix-allow-contract", cl::Hidden, cl::init(false), cl::Hidden, cl::desc("Allow the use of FMAs if available and profitable. This may " "result in different results, due to less rounding error.")); enum class MatrixLayoutTy { ColumnMajor, RowMajor }; static cl::opt MatrixLayout( - "matrix-default-layout", cl::init(MatrixLayoutTy::ColumnMajor), + "matrix-default-layout", cl::Hidden, cl::init(MatrixLayoutTy::ColumnMajor), cl::desc("Sets the default matrix layout"), cl::values(clEnumValN(MatrixLayoutTy::ColumnMajor, "column-major", "Use column-major layout"), Index: llvm/lib/Transforms/Utils/AddDiscriminators.cpp =================================================================== --- llvm/lib/Transforms/Utils/AddDiscriminators.cpp +++ llvm/lib/Transforms/Utils/AddDiscriminators.cpp @@ -80,7 +80,7 @@ // presence of debug information. This is only needed when debugging // debug info generation issues. static cl::opt NoDiscriminators( - "no-discriminators", cl::init(false), + "no-discriminators", cl::Hidden, cl::init(false), cl::desc("Disable generation of discriminator information.")); namespace { Index: llvm/lib/Transforms/Utils/Debugify.cpp =================================================================== --- llvm/lib/Transforms/Utils/Debugify.cpp +++ llvm/lib/Transforms/Utils/Debugify.cpp @@ -34,7 +34,7 @@ namespace { -cl::opt Quiet("debugify-quiet", +cl::opt Quiet("debugify-quiet", cl::Hidden, cl::desc("Suppress verbose debugify output")); enum class Level { @@ -48,7 +48,7 @@ cl::values(clEnumValN(Level::Locations, "locations", "Locations only"), clEnumValN(Level::LocationsAndVariables, "location+variables", "Locations and Variables")), - cl::init(Level::LocationsAndVariables)); + cl::Hidden, cl::init(Level::LocationsAndVariables)); raw_ostream &dbg() { return Quiet ? nulls() : errs(); } Index: llvm/lib/Transforms/Utils/SampleProfileLoaderBaseUtil.cpp =================================================================== --- llvm/lib/Transforms/Utils/SampleProfileLoaderBaseUtil.cpp +++ llvm/lib/Transforms/Utils/SampleProfileLoaderBaseUtil.cpp @@ -15,22 +15,24 @@ namespace llvm { cl::opt SampleProfileMaxPropagateIterations( - "sample-profile-max-propagate-iterations", cl::init(100), + "sample-profile-max-propagate-iterations", cl::Hidden, cl::init(100), cl::desc("Maximum number of iterations to go through when propagating " "sample block/edge weights through the CFG.")); cl::opt SampleProfileRecordCoverage( - "sample-profile-check-record-coverage", cl::init(0), cl::value_desc("N"), + "sample-profile-check-record-coverage", cl::Hidden, cl::init(0), + cl::value_desc("N"), cl::desc("Emit a warning if less than N% of records in the input profile " "are matched to the IR.")); cl::opt SampleProfileSampleCoverage( - "sample-profile-check-sample-coverage", cl::init(0), cl::value_desc("N"), + "sample-profile-check-sample-coverage", cl::Hidden, cl::init(0), + cl::value_desc("N"), cl::desc("Emit a warning if less than N% of samples in the input profile " "are matched to the IR.")); cl::opt NoWarnSampleUnused( - "no-warn-sample-unused", cl::init(false), cl::Hidden, + "no-warn-sample-unused", cl::Hidden, cl::init(false), cl::Hidden, cl::desc("Use this option to turn off/on warnings about function with " "samples but without debug information to use those samples. "));