[LoopVectorize] Internalize some cl::opt
authorFangrui Song <i@maskray.me>
Thu, 24 Nov 2022 07:03:02 +0000 (23:03 -0800)
committerFangrui Song <i@maskray.me>
Thu, 24 Nov 2022 07:03:02 +0000 (23:03 -0800)
llvm/lib/Transforms/Vectorize/LoopVectorize.cpp

index 82cee7d..6490df4 100644 (file)
@@ -363,13 +363,14 @@ cl::opt<bool> llvm::EnableLoopVectorization(
     "vectorize-loops", cl::init(true), cl::Hidden,
     cl::desc("Run the Loop vectorization passes"));
 
-cl::opt<bool> PrintVPlansInDotFormat(
-    "vplan-print-in-dot-format", cl::init(false), cl::Hidden,
+static cl::opt<bool> PrintVPlansInDotFormat(
+    "vplan-print-in-dot-format", cl::Hidden,
     cl::desc("Use dot format instead of plain text when dumping VPlans"));
 
-cl::opt<cl::boolOrDefault> ForceSafeDivisor(
+static cl::opt<cl::boolOrDefault> ForceSafeDivisor(
     "force-widen-divrem-via-safe-divisor", cl::Hidden,
-    cl::desc("Override cost based safe divisor widening for div/rem instructions"));
+    cl::desc(
+        "Override cost based safe divisor widening for div/rem instructions"));
 
 /// A helper function that returns true if the given type is irregular. The
 /// type is irregular if its allocated size doesn't equal the store size of an