NFC: Update in-code documentation. Make the two grammar definitions of static-dimension-list consistent.

PiperOrigin-RevId: 265084348
This commit is contained in:
MLIR Team 2019-08-23 10:34:04 -07:00 committed by A. Unique TensorFlower
parent 21b77fc11f
commit 00177962ed
1 changed files with 5 additions and 3 deletions

View File

@ -836,8 +836,10 @@ Type Parser::parseTupleType() {
/// Parse a vector type.
///
/// vector-type ::= `vector` `<` static-dimension-list type `>`
/// static-dimension-list ::= (decimal-literal `x`)+
/// vector-type ::= `vector` `<` non-empty-static-dimension-list type `>`
/// non-empty-static-dimension-list ::= decimal-literal `x`
/// static-dimension-list
/// static-dimension-list ::= (decimal-literal `x`)*
///
VectorType Parser::parseVectorType() {
consumeToken(Token::kw_vector);
@ -868,7 +870,7 @@ VectorType Parser::parseVectorType() {
/// dimension-list-ranked ::= (dimension `x`)*
/// dimension ::= `?` | decimal-literal
///
/// When `allowDynamic` is not set, this can be also used to parse
/// When `allowDynamic` is not set, this is used to parse:
///
/// static-dimension-list ::= (decimal-literal `x`)*
ParseResult