diff --git a/mlir/include/mlir/IR/OpImplementation.h b/mlir/include/mlir/IR/OpImplementation.h --- a/mlir/include/mlir/IR/OpImplementation.h +++ b/mlir/include/mlir/IR/OpImplementation.h @@ -1213,8 +1213,9 @@ } /// Parse a dimension list of a tensor or memref type. This populates the - /// dimension list, using -1 for the `?` dimensions if `allowDynamic` is set - /// and errors out on `?` otherwise. Parsing the trailing `x` is configurable. + /// dimension list, using ShapedType::kDynamic for the `?` dimensions if + /// `allowDynamic` is set and errors out on `?` otherwise. Parsing the + /// trailing `x` is configurable. /// /// dimension-list ::= eps | dimension (`x` dimension)* /// dimension-list-with-trailing-x ::= (dimension `x`)* diff --git a/mlir/lib/AsmParser/TypeParser.cpp b/mlir/lib/AsmParser/TypeParser.cpp --- a/mlir/lib/AsmParser/TypeParser.cpp +++ b/mlir/lib/AsmParser/TypeParser.cpp @@ -495,8 +495,9 @@ } /// Parse a dimension list of a tensor or memref type. This populates the -/// dimension list, using -1 for the `?` dimensions if `allowDynamic` is set and -/// errors out on `?` otherwise. Parsing the trailing `x` is configurable. +/// dimension list, using ShapedType::kDynamic for the `?` dimensions if +/// `allowDynamic` is set and errors out on `?` otherwise. Parsing the trailing +/// `x` is configurable. /// /// dimension-list ::= eps | dimension (`x` dimension)* /// dimension-list-with-trailing-x ::= (dimension `x`)*