diff options
author | River Riddle <riddleriver@gmail.com> | 2020-10-26 17:24:17 -0700 |
---|---|---|
committer | River Riddle <riddleriver@gmail.com> | 2020-10-26 18:01:06 -0700 |
commit | b6eb26fd0e316b36e3750f7cba7ebdb10219790c (patch) | |
tree | a792a7436723a96e7f0a04e97841aaef0650a232 /mlir/lib/Transforms/Utils/LoopUtils.cpp | |
parent | b99bd771626fbbf8b9b29ce312d4151968796826 (diff) | |
download | llvm-b6eb26fd0e316b36e3750f7cba7ebdb10219790c.zip llvm-b6eb26fd0e316b36e3750f7cba7ebdb10219790c.tar.gz llvm-b6eb26fd0e316b36e3750f7cba7ebdb10219790c.tar.bz2 |
[mlir][NFC] Move around the code related to PatternRewriting to improve layering
There are several pieces of pattern rewriting infra in IR/ that really shouldn't be there. This revision moves those pieces to a better location such that they are easier to evolve in the future(e.g. with PDL). More concretely this revision does the following:
* Create a Transforms/GreedyPatternRewriteDriver.h and move the apply*andFold methods there.
The definitions for these methods are already in Transforms/ so it doesn't make sense for the declarations to be in IR.
* Create a new lib/Rewrite library and move PatternApplicator there.
This new library will be focused on applying rewrites, and will also include compiling rewrites with PDL.
Differential Revision: https://reviews.llvm.org/D89103
Diffstat (limited to 'mlir/lib/Transforms/Utils/LoopUtils.cpp')
-rw-r--r-- | mlir/lib/Transforms/Utils/LoopUtils.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/mlir/lib/Transforms/Utils/LoopUtils.cpp b/mlir/lib/Transforms/Utils/LoopUtils.cpp index 8f4b0f8..201ba22 100644 --- a/mlir/lib/Transforms/Utils/LoopUtils.cpp +++ b/mlir/lib/Transforms/Utils/LoopUtils.cpp @@ -23,8 +23,8 @@ #include "mlir/IR/BlockAndValueMapping.h" #include "mlir/IR/Function.h" #include "mlir/IR/IntegerSet.h" -#include "mlir/IR/PatternMatch.h" #include "mlir/Support/MathExtras.h" +#include "mlir/Transforms/GreedyPatternRewriteDriver.h" #include "mlir/Transforms/RegionUtils.h" #include "mlir/Transforms/Utils.h" #include "llvm/ADT/DenseMap.h" |