Skip to content

Commit ee42234

Browse files
committed
[mlir] Remove unused includes in CyclicReplacerCache.h, NFC
1 parent e0d66c2 commit ee42234

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

mlir/include/mlir/Support/CyclicReplacerCache.h

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,9 @@
1515
#ifndef MLIR_SUPPORT_CYCLICREPLACERCACHE_H
1616
#define MLIR_SUPPORT_CYCLICREPLACERCACHE_H
1717

18-
#include "mlir/IR/Visitors.h"
18+
#include "llvm/ADT/DenseMap.h"
1919
#include "llvm/ADT/DenseSet.h"
20-
#include "llvm/ADT/MapVector.h"
20+
#include <optional>
2121
#include <set>
2222

2323
namespace mlir {
@@ -116,30 +116,30 @@ class CyclicReplacerCache {
116116
void finalizeReplacement(InT element, OutT result);
117117

118118
CycleBreakerFn cycleBreaker;
119-
DenseMap<InT, OutT> standaloneCache;
119+
llvm::DenseMap<InT, OutT> standaloneCache;
120120

121121
struct DependentReplacement {
122122
OutT replacement;
123123
/// The highest replacement frame index that this cache entry is dependent
124124
/// on.
125125
size_t highestDependentFrame;
126126
};
127-
DenseMap<InT, DependentReplacement> dependentCache;
127+
llvm::DenseMap<InT, DependentReplacement> dependentCache;
128128

129129
struct ReplacementFrame {
130130
/// The set of elements that is only legal while under this current frame.
131131
/// They need to be removed from the cache when this frame is popped off the
132132
/// replacement stack.
133-
DenseSet<InT> dependingReplacements;
133+
llvm::DenseSet<InT> dependingReplacements;
134134
/// The set of frame indices that this current frame's replacement is
135135
/// dependent on, ordered from highest to lowest.
136136
std::set<size_t, std::greater<size_t>> dependentFrames;
137137
};
138138
/// Every element currently in the progress of being replaced pushes a frame
139139
/// onto this stack.
140-
SmallVector<ReplacementFrame> replacementStack;
140+
llvm::SmallVector<ReplacementFrame> replacementStack;
141141
/// Maps from each input element to its indices on the replacement stack.
142-
DenseMap<InT, SmallVector<size_t, 2>> cyclicElementFrame;
142+
llvm::DenseMap<InT, llvm::SmallVector<size_t, 2>> cyclicElementFrame;
143143
/// If set to true, we are currently asking an element to break a cycle. No
144144
/// more recursive invocations is allowed while this is true (the replacement
145145
/// stack can no longer grow).

0 commit comments

Comments
 (0)