1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-10-18 18:42:46 +02:00

[TableGen] [docs] Improve BNF for the 'multiclass' statement [NFC]

This commit is contained in:
Paul C. Anagnostopoulos 2021-04-23 12:03:48 -04:00
parent 572869bea6
commit 3b840f40c3

View File

@ -887,9 +887,10 @@ template that expands into multiple records.
.. productionlist::
MultiClass: "multiclass" `TokIdentifier` [`TemplateArgList`]
: [":" `ParentMultiClassList`]
: "{" `Statement`+ "}"
: "{" `MultiClassStatement`+ "}"
ParentMultiClassList: `MultiClassID` ("," `MultiClassID`)*
MultiClassID: `TokIdentifier`
MultiClassStatement: `Assert` | `Def` | `Defm` | `Defvar` | `Foreach` | `If` | `Let`
As with regular classes, the multiclass has a name and can accept template
arguments. A multiclass can inherit from other multiclasses, which causes