summaryrefslogtreecommitdiffstats
path: root/mlir/lib/Transforms/LoopTiling.cpp
diff options
context:
space:
mode:
authorRiver Riddle <riverriddle@google.com>2019-03-25 11:53:03 -0700
committerjpienaar <jpienaar@google.com>2019-03-29 17:39:35 -0700
commit5de726f493fd591e92809884ffb71a4b48a4f880 (patch)
tree529022c473f089d1b6676e63858e2c4fb7ee4deb /mlir/lib/Transforms/LoopTiling.cpp
parentaf1abcc80b6eb6de2049b6cc79bbeac92f134e58 (diff)
downloadbcm5719-llvm-5de726f493fd591e92809884ffb71a4b48a4f880.tar.gz
bcm5719-llvm-5de726f493fd591e92809884ffb71a4b48a4f880.zip
Refactor the Pattern framework to allow for combined match/rewrite patterns. This is done by adding a new 'matchAndRewrite' function to RewritePattern that performs the match and rewrite in one step. The default behavior simply calls into the existing 'match' and 'rewrite' functions. The 'PatternMatcher' class has now been specialized for RewritePatterns and has been rewritten to make use of the new matchAndRewrite functionality.
This combined match/rewrite functionality allows simplifying the majority of existing RewritePatterns, as they do not benefit from separate match and rewrite functions. Some of the existing canonicalization patterns in StandardOps have been modified to take advantage of this functionality. PiperOrigin-RevId: 240187856
Diffstat (limited to 'mlir/lib/Transforms/LoopTiling.cpp')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud