Skip to content

Commit 9d295d8

Browse files
committed
Clarify docs
1 parent d70b289 commit 9d295d8

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

mlir/docs/PatternRewriter.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -327,9 +327,12 @@ that locally have the most benefit. The benefit of a pattern is decided solely
327327
by the benefit specified on the pattern, and the relative order of the pattern
328328
within the pattern list (when two patterns have the same local benefit).
329329

330+
The driver performs a post-order traversal. Note that it walks regions of the
331+
given op but does not visit the op.
332+
330333
This driver does not (re)visit modified or newly replaced ops, and does not
331334
allow for progressive rewrites of the same op. Op erasure is only supported for
332-
the currently matched op. If your pattern-set requires these, consider using the
335+
the currently matched op. If your pattern set requires these, consider using the
333336
Greedy Pattern Rewrite Driver instead, at the expense of extra overhead.
334337

335338
This driver is exposed using the `walkAndApplyPatterns` function.

0 commit comments

Comments
 (0)