diff --git a/mlir/docs/DeclarativeRewrites.md b/mlir/docs/DeclarativeRewrites.md --- a/mlir/docs/DeclarativeRewrites.md +++ b/mlir/docs/DeclarativeRewrites.md @@ -407,7 +407,7 @@ ``` In the above, `$_self` is substituted by the attribute bound by `$attr`, which -is `OnAttrOp`'s array attribute. +is `OneAttrOp`'s array attribute. Positional placeholders will be substituted by the `dag` object parameters at the `NativeCodeCall` use site. For example, if we define `SomeCall : @@ -469,7 +469,7 @@ ```tablegen def : Pattern<(AddIOp $lhs, $rhs), - [(StoreOp (AllocOp:$mem (ShapeOp %lhs)), (AddIOp $lhs, $rhs)), + [(StoreOp (AllocOp:$mem (ShapeOp $lhs)), (AddIOp $lhs, $rhs)), (LoadOp $mem)]; ```