Skip to content

Commit 9ffaba8

Browse files
author
Stephan Herhut
committed
[mlir] Fix the example for std.rank
Summary: The assembly format for std.rank expects the operand type and not the result type after the colon. Differential Revision: https://reviews.llvm.org/D79857
1 parent 91063cf commit 9ffaba8

File tree

1 file changed

+1
-1
lines changed
  • mlir/include/mlir/Dialect/StandardOps/IR

1 file changed

+1
-1
lines changed

mlir/include/mlir/Dialect/StandardOps/IR/Ops.td

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1979,7 +1979,7 @@ def RankOp : Std_Op<"rank", [NoSideEffect]> {
19791979
Example:
19801980

19811981
```mlir
1982-
%1 = rank %0 : index
1982+
%1 = rank %0 : tensor<*xf32>
19831983
```
19841984
}];
19851985

0 commit comments

Comments
 (0)