[mlir][tensor] Fix a typo in the example code for UnrankedTensorType
authorPeiming Liu <peiming@google.com>
Tue, 6 Sep 2022 22:25:41 +0000 (22:25 +0000)
committerPeiming Liu <peiming@google.com>
Tue, 6 Sep 2022 22:31:47 +0000 (22:31 +0000)
The syntax for unrank tensor type is defined as  tensor-type ::= `tensor` `<` `*` `x` type `>`, the example code missed the `x` in between.

Reviewed By: aartbik

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

mlir/include/mlir/IR/BuiltinTypes.td

index 55dc241..aaadc1f 100644 (file)
@@ -875,7 +875,7 @@ def Builtin_UnrankedTensor : Builtin_Type<"UnrankedTensor", [
     Examples:
 
     ```mlir
-    tensor<*f32>
+    tensor<*xf32>
     ```
   }];
   let parameters = (ins "Type":$elementType);