4 Commits

Author SHA1 Message Date
Jakub Kuderski
0f8a6b7d03
[mlir] Add fast walk-based pattern rewrite driver (#113825)
This is intended as a fast pattern rewrite driver for the cases when a
simple walk gets the job done but we would still want to implement it in
terms of rewrite patterns (that can be used with the greedy pattern
rewrite driver downstream).

The new driver is inspired by the discussion in
https://github.com/llvm/llvm-project/pull/112454 and the LLVM Dev
presentation from @matthias-springer earlier this week.

This limitation comes with some limitations:
* It does not repeat until a fixpoint or revisit ops modified in place
or newly created ops. In general, it only walks forward (in the
post-order).
* `matchAndRewrite` can only erase the matched op or its descendants.
  This is verified under expensive checks.
* It does not perform folding / DCE.
 
We could probably relax some of these in the future without sacrificing
too much performance.
2024-10-31 11:10:09 -04:00
Mehdi Amini
d6c5804344 [MLIR][doc] Fix the [TOC] tag in two doc
Somehow it was escaped in these documents.
2023-04-25 00:10:26 -07:00
Mehdi Amini
e464b549a9 [MLIR][doc] Minor fixes the Action documentation
Fix some reviews comments missed when pushing the initial version of the doc.
2023-04-24 14:38:58 -07:00
Mehdi Amini
b0528a53ea Add user doc on the website for the Action framework
The old DebugAction documentation is deleted: the code in-tree does not
match it anymore.

Differential Revision: https://reviews.llvm.org/D149037
2023-04-24 14:34:15 -07:00