[llvm] 95144b1 - [NFC][DFAJT] Place `cl::opt`s in the llvm namespace (#162212)
via llvm-commits
llvm-commits at lists.llvm.org
Tue Oct 7 07:30:06 PDT 2025
Author: Mircea Trofin
Date: 2025-10-07T07:30:01-07:00
New Revision: 95144b176fd12c882d50dfe7330cbce667744930
URL: https://github.com/llvm/llvm-project/commit/95144b176fd12c882d50dfe7330cbce667744930
DIFF: https://github.com/llvm/llvm-project/commit/95144b176fd12c882d50dfe7330cbce667744930.diff
LOG: [NFC][DFAJT] Place `cl::opt`s in the llvm namespace (#162212)
Along the lines of [#161240](vscode-file://vscode-app/Applications/Visual%20Studio%20Code.app/Contents/Resources/app/out/vs/code/electron-browser/workbench/workbench.html "Open Issue or Pull Request #161240 on GitHub")
Added:
Modified:
llvm/lib/Transforms/Scalar/DFAJumpThreading.cpp
Removed:
################################################################################
diff --git a/llvm/lib/Transforms/Scalar/DFAJumpThreading.cpp b/llvm/lib/Transforms/Scalar/DFAJumpThreading.cpp
index 9f0bd37451820..04ffec998c56d 100644
--- a/llvm/lib/Transforms/Scalar/DFAJumpThreading.cpp
+++ b/llvm/lib/Transforms/Scalar/DFAJumpThreading.cpp
@@ -89,6 +89,7 @@ STATISTIC(NumTransforms, "Number of transformations done");
STATISTIC(NumCloned, "Number of blocks cloned");
STATISTIC(NumPaths, "Number of individual paths threaded");
+namespace llvm {
static cl::opt<bool>
ClViewCfgBefore("dfa-jump-view-cfg-before",
cl::desc("View the CFG before DFA Jump Threading"),
@@ -119,6 +120,7 @@ static cl::opt<unsigned>
CostThreshold("dfa-cost-threshold",
cl::desc("Maximum cost accepted for the transformation"),
cl::Hidden, cl::init(50));
+} // namespace llvm
static cl::opt<double> MaxClonedRate(
"dfa-max-cloned-rate",
More information about the llvm-commits
mailing list