[all-commits] [llvm/llvm-project] d12d05: [mlir][Linalg] Introduce a helper function for sta...
Nicolas Vasilache via All-commits
all-commits at lists.llvm.org
Mon May 11 13:48:59 PDT 2020
Branch: refs/heads/master
Home: https://github.com/llvm/llvm-project
Commit: d12d05a73142af287a698e5df62d7b7b1eefdf3e
https://github.com/llvm/llvm-project/commit/d12d05a73142af287a698e5df62d7b7b1eefdf3e
Author: Nicolas Vasilache <ntv at google.com>
Date: 2020-05-11 (Mon, 11 May 2020)
Changed paths:
M mlir/include/mlir/Dialect/Linalg/Transforms/Transforms.h
M mlir/include/mlir/IR/PatternMatch.h
M mlir/lib/Dialect/Linalg/Transforms/Transforms.cpp
A mlir/test/Dialect/Linalg/transform-patterns-matmul-to-vector.mlir
M mlir/test/lib/Transforms/TestLinalgTransforms.cpp
Log Message:
-----------
[mlir][Linalg] Introduce a helper function for staged pattern application
Summary:
This revision introduces a helper function to allow applying rewrite patterns, interleaved with more global transformations, in a staged fashion:
1. the first stage consists of an OwningRewritePatternList. The RewritePattern in this list are applied once and in order.
2. the second stage consists of a single OwningRewritePattern that is applied greedily until convergence.
3. the third stage consists of applying a lambda, generally used for non-local transformation effects.
This allows creating custom fused transformations where patterns can be ordered and applied at a finer granularity than a sequence of traditional compiler passes.
A test that exercises these behaviors is added.
Differential Revision: https://reviews.llvm.org/D79518
More information about the All-commits
mailing list