[PATCH] D45818: Fix BNF nits in TableGen language reference.
Phabricator via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Mon Apr 23 02:19:05 PDT 2018
This revision was automatically updated to reflect the committed changes.
Closed by commit rL330570: Fix BNF nits in TableGen language reference. (authored by statham, committed by ).
Repository:
rL LLVM
https://reviews.llvm.org/D45818
Files:
llvm/trunk/docs/TableGen/LangRef.rst
Index: llvm/trunk/docs/TableGen/LangRef.rst
===================================================================
--- llvm/trunk/docs/TableGen/LangRef.rst
+++ llvm/trunk/docs/TableGen/LangRef.rst
@@ -294,7 +294,7 @@
leave it out.
.. productionlist::
- SimpleValue: "(" `DagArg` `DagArgList` ")"
+ SimpleValue: "(" `DagArg` [`DagArgList`] ")"
DagArgList: `DagArg` ("," `DagArg`)*
DagArg: `Value` [":" `TokVarName`] | `TokVarName`
@@ -325,7 +325,7 @@
Body: ";" | "{" BodyList "}"
BodyList: BodyItem*
BodyItem: `Declaration` ";"
- :| "let" `TokIdentifier` [`RangeList`] "=" `Value` ";"
+ :| "let" `TokIdentifier` [ "{" `RangeList` "}" ] "=" `Value` ";"
The ``let`` form allows overriding the value of an inherited field.
@@ -353,7 +353,7 @@
--------
.. productionlist::
- Defm: "defm" `TokIdentifier` ":" `BaseClassListNE` ";"
+ Defm: "defm" [`TokIdentifier`] ":" `BaseClassListNE` ";"
Note that in the :token:`BaseClassList`, all of the ``multiclass``'s must
precede any ``class``'s that appear.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D45818.143509.patch
Type: text/x-patch
Size: 1062 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20180423/1737f086/attachment.bin>
More information about the llvm-commits
mailing list