[Mlir-commits] [mlir] 67dc667 - [mlir][tensor] Fix a typo in the example code for UnrankedTensorType

Peiming Liu llvmlistbot at llvm.org
Tue Sep 6 15:31:56 PDT 2022


Author: Peiming Liu
Date: 2022-09-06T22:31:47Z
New Revision: 67dc6674c1dd1a64854ed301f32fa14e5d9948d4

URL: https://github.com/llvm/llvm-project/commit/67dc6674c1dd1a64854ed301f32fa14e5d9948d4
DIFF: https://github.com/llvm/llvm-project/commit/67dc6674c1dd1a64854ed301f32fa14e5d9948d4.diff

LOG: [mlir][tensor] Fix a typo in the example code for UnrankedTensorType

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

Added: 
    

Modified: 
    mlir/include/mlir/IR/BuiltinTypes.td

Removed: 
    


################################################################################
diff  --git a/mlir/include/mlir/IR/BuiltinTypes.td b/mlir/include/mlir/IR/BuiltinTypes.td
index 55dc24134b45..aaadc1f6b9a7 100644
--- a/mlir/include/mlir/IR/BuiltinTypes.td
+++ b/mlir/include/mlir/IR/BuiltinTypes.td
@@ -875,7 +875,7 @@ def Builtin_UnrankedTensor : Builtin_Type<"UnrankedTensor", [
     Examples:
 
     ```mlir
-    tensor<*f32>
+    tensor<*xf32>
     ```
   }];
   let parameters = (ins "Type":$elementType);


        


More information about the Mlir-commits mailing list