diff options
| author | Chris Lattner <clattner@google.com> | 2018-10-25 16:44:04 -0700 |
|---|---|---|
| committer | jpienaar <jpienaar@google.com> | 2019-03-29 13:39:49 -0700 |
| commit | 7de0da9594e5411aa555ee1a09e6c7f7bace0012 (patch) | |
| tree | b3b867d2ea7b4456dc0cab7d2cf600d996c90e42 /mlir/lib/Transforms/Utils/GreedyPatternRewriteDriver.cpp | |
| parent | 13f6cc01876c39b106f249159e2993d81d6b04cb (diff) | |
| download | bcm5719-llvm-7de0da9594e5411aa555ee1a09e6c7f7bace0012.tar.gz bcm5719-llvm-7de0da9594e5411aa555ee1a09e6c7f7bace0012.zip | |
Refactor all of the canonicalization patterns out of the Canonicalize pass, and
make operations provide a list of canonicalizations that can be applied to
them. This allows canonicalization to be general to any IR definition.
As part of this, sink PatternMatch.h/cpp down to the IR library to fix a
layering problem.
PiperOrigin-RevId: 218773981
Diffstat (limited to 'mlir/lib/Transforms/Utils/GreedyPatternRewriteDriver.cpp')
| -rw-r--r-- | mlir/lib/Transforms/Utils/GreedyPatternRewriteDriver.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/mlir/lib/Transforms/Utils/GreedyPatternRewriteDriver.cpp b/mlir/lib/Transforms/Utils/GreedyPatternRewriteDriver.cpp index 44b211f1af9..ebad9e20316 100644 --- a/mlir/lib/Transforms/Utils/GreedyPatternRewriteDriver.cpp +++ b/mlir/lib/Transforms/Utils/GreedyPatternRewriteDriver.cpp @@ -21,8 +21,7 @@ #include "mlir/IR/Builders.h" #include "mlir/IR/BuiltinOps.h" -#include "mlir/StandardOps/StandardOps.h" -#include "mlir/Transforms/PatternMatch.h" +#include "mlir/IR/PatternMatch.h" #include "llvm/ADT/DenseMap.h" using namespace mlir; |

