summaryrefslogtreecommitdiffstats
path: root/mlir/lib/AffineOps/AffineOps.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'mlir/lib/AffineOps/AffineOps.cpp')
-rw-r--r--mlir/lib/AffineOps/AffineOps.cpp27
1 files changed, 0 insertions, 27 deletions
diff --git a/mlir/lib/AffineOps/AffineOps.cpp b/mlir/lib/AffineOps/AffineOps.cpp
index 39345d7fc7a..c3adf5fb7c3 100644
--- a/mlir/lib/AffineOps/AffineOps.cpp
+++ b/mlir/lib/AffineOps/AffineOps.cpp
@@ -19,7 +19,6 @@
#include "mlir/IR/Block.h"
#include "mlir/IR/Builders.h"
#include "mlir/IR/BuiltinOps.h"
-#include "mlir/IR/InstVisitor.h"
#include "mlir/IR/IntegerSet.h"
#include "mlir/IR/OpImplementation.h"
#include "mlir/IR/PatternMatch.h"
@@ -646,32 +645,6 @@ bool AffineForOp::matchingBoundOperandList() const {
return true;
}
-void AffineForOp::walk(std::function<void(Instruction *)> callback) {
- struct Walker : public InstWalker<Walker> {
- std::function<void(Instruction *)> const &callback;
- Walker(std::function<void(Instruction *)> const &callback)
- : callback(callback) {}
-
- void visitInstruction(Instruction *opInst) { callback(opInst); }
- };
-
- Walker w(callback);
- w.walk(getInstruction());
-}
-
-void AffineForOp::walkPostOrder(std::function<void(Instruction *)> callback) {
- struct Walker : public InstWalker<Walker> {
- std::function<void(Instruction *)> const &callback;
- Walker(std::function<void(Instruction *)> const &callback)
- : callback(callback) {}
-
- void visitInstruction(Instruction *opInst) { callback(opInst); }
- };
-
- Walker v(callback);
- v.walkPostOrder(getInstruction());
-}
-
/// Returns the induction variable for this loop.
Value *AffineForOp::getInductionVar() { return getBody()->getArgument(0); }
OpenPOWER on IntegriCloud