Skip to content

Commit 65c7031

Browse files
committed
[mlir] Fix typos in DeclarativeRewrites.md
Differential Revision: https://reviews.llvm.org/D77040
1 parent 064ab22 commit 65c7031

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

mlir/docs/DeclarativeRewrites.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -407,7 +407,7 @@ def : Pat<(OneAttrOp $attr),
407407
```
408408

409409
In the above, `$_self` is substituted by the attribute bound by `$attr`, which
410-
is `OnAttrOp`'s array attribute.
410+
is `OneAttrOp`'s array attribute.
411411

412412
Positional placeholders will be substituted by the `dag` object parameters at
413413
the `NativeCodeCall` use site. For example, if we define `SomeCall :
@@ -469,7 +469,7 @@ value. Instead we can use multiple result patterns:
469469

470470
```tablegen
471471
def : Pattern<(AddIOp $lhs, $rhs),
472-
[(StoreOp (AllocOp:$mem (ShapeOp %lhs)), (AddIOp $lhs, $rhs)),
472+
[(StoreOp (AllocOp:$mem (ShapeOp $lhs)), (AddIOp $lhs, $rhs)),
473473
(LoadOp $mem)];
474474
```
475475

0 commit comments

Comments
 (0)