diff --git a/mlir/docs/LangRef.md b/mlir/docs/LangRef.md --- a/mlir/docs/LangRef.md +++ b/mlir/docs/LangRef.md @@ -207,7 +207,7 @@ value-id-list ::= value-id (`,` value-id)* // Uses of value, e.g. in an operand list to an operation. -value-use ::= value-id +value-use ::= value-id (`#` decimal-literal)? value-use-list ::= value-use (`,` value-use)* ``` @@ -294,13 +294,13 @@ `:` function-type custom-operation ::= bare-id custom-operation-format op-result-list ::= op-result (`,` op-result)* `=` -op-result ::= value-id (`:` integer-literal) +op-result ::= value-id (`:` integer-literal)? successor-list ::= `[` successor (`,` successor)* `]` successor ::= caret-id (`:` block-arg-list)? dictionary-propertes ::= `<` dictionary-attribute `>` region-list ::= `(` region (`,` region)* `)` dictionary-attribute ::= `{` (attribute-entry (`,` attribute-entry)*)? `}` -trailing-location ::= (`loc` `(` location `)`)? +trailing-location ::= `loc` `(` location `)` ``` MLIR introduces a uniform concept called *operations* to enable describing many