[PATCH] D77487: [MLIR] Introduce applyOpPatternsAndFold for op local rewrites
Uday Bondhugula via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Sat Apr 4 22:23:01 PDT 2020
bondhugula created this revision.
bondhugula added reviewers: lattner, mehdi_amini, rriddle.
Herald added subscribers: llvm-commits, grosul1, Joonsoo, liufengdb, aartbik, lucyrfox, mgester, arpith-jacob, nicolasvasilache, antiagainst, shauheen, burmako, jpienaar.
Herald added 1 blocking reviewer(s): rriddle.
Herald added a project: LLVM.
Introduce mlir::applyOpPatternsAndFold which applies patterns as well as
any folding only on a specified op (in contrast to
applyPatternsAndFoldGreedily which applies patterns only on the regions
of an op isolated from above). The caller is made aware of the op being
folded away or erased.
Depends on D77486 <https://reviews.llvm.org/D77486>.
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D77487
Files:
mlir/include/mlir/IR/PatternMatch.h
mlir/lib/Transforms/Utils/GreedyPatternRewriteDriver.cpp
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D77487.255116.patch
Type: text/x-patch
Size: 4130 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20200405/4c422806/attachment.bin>
More information about the llvm-commits
mailing list