aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/Transforms/Utils/SimplifyIndVar.cpp
diff options
context:
space:
mode:
authorBenjamin Kramer <benny.kra@googlemail.com>2021-11-07 15:18:30 +0100
committerBenjamin Kramer <benny.kra@googlemail.com>2021-11-07 15:18:30 +0100
commit9b8b16457c23c52b1eeef600cb65a2d160041433 (patch)
tree8cfaa7c4710034dc89562697aa50cad53f041f99 /llvm/lib/Transforms/Utils/SimplifyIndVar.cpp
parent8adb6d6de29b67dd0df1016083392a1b2eb1d49a (diff)
downloadllvm-9b8b16457c23c52b1eeef600cb65a2d160041433.zip
llvm-9b8b16457c23c52b1eeef600cb65a2d160041433.tar.gz
llvm-9b8b16457c23c52b1eeef600cb65a2d160041433.tar.bz2
Put implementation details into anonymous namespaces. NFCI.
Diffstat (limited to 'llvm/lib/Transforms/Utils/SimplifyIndVar.cpp')
-rw-r--r--llvm/lib/Transforms/Utils/SimplifyIndVar.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/llvm/lib/Transforms/Utils/SimplifyIndVar.cpp b/llvm/lib/Transforms/Utils/SimplifyIndVar.cpp
index bd30be0..5b7fd43 100644
--- a/llvm/lib/Transforms/Utils/SimplifyIndVar.cpp
+++ b/llvm/lib/Transforms/Utils/SimplifyIndVar.cpp
@@ -942,6 +942,7 @@ bool simplifyLoopIVs(Loop *L, ScalarEvolution *SE, DominatorTree *DT,
} // namespace llvm
+namespace {
//===----------------------------------------------------------------------===//
// Widen Induction Variables - Extend the width of an IV to cover its
// widest uses.
@@ -1072,7 +1073,7 @@ protected:
private:
SmallVector<NarrowIVDefUse, 8> NarrowIVUsers;
};
-
+} // namespace
/// Determine the insertion point for this user. By default, insert immediately
/// before the user. SCEVExpander or LICM will hoist loop invariants out of the