[Mlir-commits] [mlir] 9ffaba8 - [mlir] Fix the example for std.rank

Stephan Herhut llvmlistbot at llvm.org
Thu May 14 01:46:03 PDT 2020


Author: Stephan Herhut
Date: 2020-05-14T10:45:07+02:00
New Revision: 9ffaba86e5b33b9f7e919bc5da8a36390bb816ee

URL: https://github.com/llvm/llvm-project/commit/9ffaba86e5b33b9f7e919bc5da8a36390bb816ee
DIFF: https://github.com/llvm/llvm-project/commit/9ffaba86e5b33b9f7e919bc5da8a36390bb816ee.diff

LOG: [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

Added: 
    

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

Removed: 
    


################################################################################
diff  --git a/mlir/include/mlir/Dialect/StandardOps/IR/Ops.td b/mlir/include/mlir/Dialect/StandardOps/IR/Ops.td
index e978323d0283..3348c13bb4ea 100644
--- a/mlir/include/mlir/Dialect/StandardOps/IR/Ops.td
+++ b/mlir/include/mlir/Dialect/StandardOps/IR/Ops.td
@@ -1979,7 +1979,7 @@ def RankOp : Std_Op<"rank", [NoSideEffect]> {
     Example:
 
     ```mlir
-    %1 = rank %0 : index
+    %1 = rank %0 : tensor<*xf32>
     ```
   }];
 


        


More information about the Mlir-commits mailing list