[llvm] d9187f5 - [TableGen] [docs] Improve BNF for the 'multiclass' statement [NFC]
Paul C. Anagnostopoulos via llvm-commits
llvm-commits at lists.llvm.org
Fri Apr 23 09:06:07 PDT 2021
Author: Paul C. Anagnostopoulos
Date: 2021-04-23T12:05:52-04:00
New Revision: d9187f50b98f14df55a1d9a675b39e7367ac3b43
URL: https://github.com/llvm/llvm-project/commit/d9187f50b98f14df55a1d9a675b39e7367ac3b43
DIFF: https://github.com/llvm/llvm-project/commit/d9187f50b98f14df55a1d9a675b39e7367ac3b43.diff
LOG: [TableGen] [docs] Improve BNF for the 'multiclass' statement [NFC]
Added:
Modified:
llvm/docs/TableGen/ProgRef.rst
Removed:
################################################################################
diff --git a/llvm/docs/TableGen/ProgRef.rst b/llvm/docs/TableGen/ProgRef.rst
index 852aab9264b7..8a9842f5b288 100644
--- a/llvm/docs/TableGen/ProgRef.rst
+++ b/llvm/docs/TableGen/ProgRef.rst
@@ -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
More information about the llvm-commits
mailing list