[Mlir-commits] [mlir] 65c7031 - [mlir] Fix typos in DeclarativeRewrites.md

Hanhan Wang llvmlistbot at llvm.org
Mon Mar 30 01:21:46 PDT 2020


Author: Hanhan Wang
Date: 2020-03-30T01:20:41-07:00
New Revision: 65c703137094a5cbc94880012f1d5a1aef9284c2

URL: https://github.com/llvm/llvm-project/commit/65c703137094a5cbc94880012f1d5a1aef9284c2
DIFF: https://github.com/llvm/llvm-project/commit/65c703137094a5cbc94880012f1d5a1aef9284c2.diff

LOG: [mlir] Fix typos in DeclarativeRewrites.md

Differential Revision: https://reviews.llvm.org/D77040

Added: 
    

Modified: 
    mlir/docs/DeclarativeRewrites.md

Removed: 
    


################################################################################
diff  --git a/mlir/docs/DeclarativeRewrites.md b/mlir/docs/DeclarativeRewrites.md
index 0faae5a726f8..82b97e04a8c0 100644
--- a/mlir/docs/DeclarativeRewrites.md
+++ b/mlir/docs/DeclarativeRewrites.md
@@ -407,7 +407,7 @@ def : Pat<(OneAttrOp $attr),
 ```
 
 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 @@ value. Instead we can use multiple result patterns:
 
 ```tablegen
 def : Pattern<(AddIOp $lhs, $rhs),
-              [(StoreOp (AllocOp:$mem (ShapeOp %lhs)), (AddIOp $lhs, $rhs)),
+              [(StoreOp (AllocOp:$mem (ShapeOp $lhs)), (AddIOp $lhs, $rhs)),
                (LoadOp $mem)];
 ```
 


        


More information about the Mlir-commits mailing list