[llvm] fa36d72 - [LoopVectorize] Internalize some cl::opt

Fangrui Song via llvm-commits llvm-commits at lists.llvm.org
Wed Nov 23 23:03:07 PST 2022


Author: Fangrui Song
Date: 2022-11-23T23:03:02-08:00
New Revision: fa36d7230519420c6b834fec6cc2c43ce3721070

URL: https://github.com/llvm/llvm-project/commit/fa36d7230519420c6b834fec6cc2c43ce3721070
DIFF: https://github.com/llvm/llvm-project/commit/fa36d7230519420c6b834fec6cc2c43ce3721070.diff

LOG: [LoopVectorize] Internalize some cl::opt

Added: 
    

Modified: 
    llvm/lib/Transforms/Vectorize/LoopVectorize.cpp

Removed: 
    


################################################################################
diff  --git a/llvm/lib/Transforms/Vectorize/LoopVectorize.cpp b/llvm/lib/Transforms/Vectorize/LoopVectorize.cpp
index 82cee7d1cd1b1..6490df46ac79f 100644
--- a/llvm/lib/Transforms/Vectorize/LoopVectorize.cpp
+++ b/llvm/lib/Transforms/Vectorize/LoopVectorize.cpp
@@ -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


        


More information about the llvm-commits mailing list