summaryrefslogtreecommitdiffstats
path: root/mlir/lib/Transforms/Utils
diff options
context:
space:
mode:
authorBenjamin Kramer <benny.kra@googlemail.com>2020-01-14 14:06:12 +0100
committerBenjamin Kramer <benny.kra@googlemail.com>2020-01-14 14:06:37 +0100
commitdf186507e1d07c3ddba091a076ba7a33dbdc5867 (patch)
tree1a036220e7fe46703e2bc0840172068ddeffadc7 /mlir/lib/Transforms/Utils
parentbff33bd5c83b947cccb4d6cf6ebca9dc021f716b (diff)
downloadbcm5719-llvm-df186507e1d07c3ddba091a076ba7a33dbdc5867.tar.gz
bcm5719-llvm-df186507e1d07c3ddba091a076ba7a33dbdc5867.zip
Make helper functions static or move them into anonymous namespaces. NFC.
Diffstat (limited to 'mlir/lib/Transforms/Utils')
-rw-r--r--mlir/lib/Transforms/Utils/LoopUtils.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/mlir/lib/Transforms/Utils/LoopUtils.cpp b/mlir/lib/Transforms/Utils/LoopUtils.cpp
index 9d7e7cddb05..441d95fa698 100644
--- a/mlir/lib/Transforms/Utils/LoopUtils.cpp
+++ b/mlir/lib/Transforms/Utils/LoopUtils.cpp
@@ -351,7 +351,7 @@ LogicalResult mlir::instBodySkew(AffineForOp forOp, ArrayRef<uint64_t> shifts,
// in the parent loop. Collect at most `maxLoops` loops and append them to
// `forOps`.
template <typename T>
-void getPerfectlyNestedLoopsImpl(
+static void getPerfectlyNestedLoopsImpl(
SmallVectorImpl<T> &forOps, T rootForOp,
unsigned maxLoops = std::numeric_limits<unsigned>::max()) {
for (unsigned i = 0; i < maxLoops; ++i) {
OpenPOWER on IntegriCloud