Skip to content

Commit f04cf6b

Browse files
StevengreJeff Niu
authored and
Jeff Niu
committed
issue#62488: Correct some syntax errors. Leave location and custom-operation-format unchanged, because I'm not sure.
Reviewed By: Mogball Differential Revision: https://reviews.llvm.org/D149810
1 parent e6c401b commit f04cf6b

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

mlir/docs/Dialects/Affine.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,7 @@ Syntax:
142142

143143
```
144144
affine-map-inline
145-
::= dim-and-symbol-id-lists `->` multi-dim-affine-expr
145+
::= dim-and-symbol-value-lists `->` multi-dim-affine-expr
146146
```
147147

148148
The identifiers in the dimensions and symbols lists must be unique. These are
@@ -227,7 +227,7 @@ Syntax of semi-affine maps:
227227

228228
```
229229
semi-affine-map-inline
230-
::= dim-and-symbol-id-lists `->` multi-dim-semi-affine-expr
230+
::= dim-and-symbol-value-lists `->` multi-dim-semi-affine-expr
231231
```
232232

233233
Semi-affine maps may be defined inline at the point of use, or may be hoisted to
@@ -271,7 +271,7 @@ name.
271271
integer-set-id ::= `#` suffix-id
272272
273273
integer-set-inline
274-
::= dim-and-symbol-id-lists `:` '(' affine-constraint-conjunction? ')'
274+
::= dim-and-symbol-value-lists `:` '(' affine-constraint-conjunction? ')'
275275
276276
// Declarations of integer sets are at the top of the file.
277277
integer-set-decl ::= integer-set-id `=` integer-set-inline

mlir/docs/LangRef.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -207,7 +207,7 @@ symbol-ref-id ::= `@` (suffix-id | string-literal) (`::` symbol-ref-id)?
207207
value-id-list ::= value-id (`,` value-id)*
208208
209209
// Uses of value, e.g. in an operand list to an operation.
210-
value-use ::= value-id
210+
value-use ::= value-id (`#` decimal-literal)?
211211
value-use-list ::= value-use (`,` value-use)*
212212
```
213213

@@ -294,13 +294,13 @@ generic-operation ::= string-literal `(` value-use-list? `)` successor-list
294294
`:` function-type
295295
custom-operation ::= bare-id custom-operation-format
296296
op-result-list ::= op-result (`,` op-result)* `=`
297-
op-result ::= value-id (`:` integer-literal)
297+
op-result ::= value-id (`:` integer-literal)?
298298
successor-list ::= `[` successor (`,` successor)* `]`
299299
successor ::= caret-id (`:` block-arg-list)?
300300
dictionary-properties ::= `<` dictionary-attribute `>`
301301
region-list ::= `(` region (`,` region)* `)`
302302
dictionary-attribute ::= `{` (attribute-entry (`,` attribute-entry)*)? `}`
303-
trailing-location ::= (`loc` `(` location `)`)?
303+
trailing-location ::= `loc` `(` location `)`
304304
```
305305

306306
MLIR introduces a uniform concept called *operations* to enable describing many

0 commit comments

Comments
 (0)