mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-10-18 10:32:48 +02:00
[TableGen] [docs] Improve BNF for the 'multiclass' statement [NFC]
This commit is contained in:
parent
572869bea6
commit
3b840f40c3
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user