[llvm] [NFC][DFAJT] Place `cl::opt`s in the llvm namespace (PR #162212)

Mircea Trofin via llvm-commits llvm-commits at lists.llvm.org
Mon Oct 6 19:10:36 PDT 2025


https://github.com/mtrofin created https://github.com/llvm/llvm-project/pull/162212

None

>From 2289ae6eba53775f1540bbc63233ef7a121f3e85 Mon Sep 17 00:00:00 2001
From: Mircea Trofin <mtrofin at google.com>
Date: Mon, 6 Oct 2025 18:48:15 -0700
Subject: [PATCH] [NFC][DFAJT] Place `cl::opt`s in the llvm namespace

---
 llvm/lib/Transforms/Scalar/DFAJumpThreading.cpp | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/llvm/lib/Transforms/Scalar/DFAJumpThreading.cpp b/llvm/lib/Transforms/Scalar/DFAJumpThreading.cpp
index e9a3e983bc1e2..cb4d58dc8213b 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
 
 namespace {
 



More information about the llvm-commits mailing list