[PATCH] D79857: [mlir] Fix the example for std.rank
Stephan Herhut via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Wed May 13 07:00:12 PDT 2020
herhut created this revision.
herhut added a reviewer: ftynse.
Herald added subscribers: llvm-commits, Kayjukh, frgossen, grosul1, Joonsoo, stephenneuendorffer, liufengdb, lucyrfox, mgester, arpith-jacob, nicolasvasilache, antiagainst, shauheen, jpienaar, rriddle, mehdi_amini.
Herald added a project: LLVM.
The assembly format for std.rank expects the operand type and not the
result type after the colon.
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D79857
Files:
mlir/include/mlir/Dialect/StandardOps/IR/Ops.td
Index: mlir/include/mlir/Dialect/StandardOps/IR/Ops.td
===================================================================
--- mlir/include/mlir/Dialect/StandardOps/IR/Ops.td
+++ mlir/include/mlir/Dialect/StandardOps/IR/Ops.td
@@ -1979,7 +1979,7 @@
Example:
```mlir
- %1 = rank %0 : index
+ %1 = rank %0 : tensor<*xf32>
```
}];
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D79857.263694.patch
Type: text/x-patch
Size: 356 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20200513/595bf34a/attachment.bin>
More information about the llvm-commits
mailing list