[Mlir-commits] [mlir] d477df5 - [MLIR][NFC] fix memref type doc comment on dynamic shape

Uday Bondhugula llvmlistbot at llvm.org
Sat Mar 21 17:39:23 PDT 2020


Author: Uday Bondhugula
Date: 2020-03-22T06:08:38+05:30
New Revision: d477df59cf4c662dfadf269751bfe1eb6bd7ed87

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

LOG: [MLIR][NFC] fix memref type doc comment on dynamic shape

Fix memref type doc comment to state that -1 indicates a dynamically
shaped dimension and not any negative number.

Signed-off-by: Uday Bondhugula <uday at polymagelabs.com>

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

Added: 
    

Modified: 
    mlir/include/mlir/IR/StandardTypes.h

Removed: 
    


################################################################################
diff  --git a/mlir/include/mlir/IR/StandardTypes.h b/mlir/include/mlir/IR/StandardTypes.h
index fb1ec07ab5ff..1c18e21006dc 100644
--- a/mlir/include/mlir/IR/StandardTypes.h
+++ b/mlir/include/mlir/IR/StandardTypes.h
@@ -416,8 +416,8 @@ class BaseMemRefType : public ShapedType {
 
 /// MemRef types represent a region of memory that have a shape with a fixed
 /// number of dimensions. Each shape element can be a non-negative integer or
-/// unknown (represented by any negative integer). MemRef types also have an
-/// affine map composition, represented as an array AffineMap pointers.
+/// unknown (represented by -1). MemRef types also have an affine map
+/// composition, represented as an array AffineMap pointers.
 class MemRefType : public Type::TypeBase<MemRefType, BaseMemRefType,
                                          detail::MemRefTypeStorage> {
 public:


        


More information about the Mlir-commits mailing list