[llvm] 9d609ad - [TableGen] Correct some comments in the TableGen parser [NFC]
Paul C. Anagnostopoulos via llvm-commits
llvm-commits at lists.llvm.org
Fri Apr 23 06:54:06 PDT 2021
Author: Paul C. Anagnostopoulos
Date: 2021-04-23T09:53:31-04:00
New Revision: 9d609adcb0b595972e3384c2172bb205677b02fc
URL: https://github.com/llvm/llvm-project/commit/9d609adcb0b595972e3384c2172bb205677b02fc
DIFF: https://github.com/llvm/llvm-project/commit/9d609adcb0b595972e3384c2172bb205677b02fc.diff
LOG: [TableGen] Correct some comments in the TableGen parser [NFC]
Differential Revision: https://reviews.llvm.org/D101088
Added:
Modified:
llvm/lib/TableGen/TGParser.cpp
Removed:
################################################################################
diff --git a/llvm/lib/TableGen/TGParser.cpp b/llvm/lib/TableGen/TGParser.cpp
index c0bf4b705cbd3..a285f6023e083 100644
--- a/llvm/lib/TableGen/TGParser.cpp
+++ b/llvm/lib/TableGen/TGParser.cpp
@@ -2729,8 +2729,8 @@ VarInit *TGParser::ParseForeachDeclaration(Init *&ForeachListValue) {
/// ParseTemplateArgList - Read a template argument list, which is a non-empty
/// sequence of template-declarations in <>'s. If CurRec is non-null, these are
-/// template args for a class, which may or may not be in a multiclass. If null,
-/// these are the template args for a multiclass.
+/// template args for a class. If null, these are the template args for a
+/// multiclass.
///
/// TemplateArgList ::= '<' Declaration (',' Declaration)* '>'
///
@@ -2772,6 +2772,7 @@ bool TGParser::ParseTemplateArgList(Record *CurRec) {
/// BodyItem ::= LET ID OptionalBitList '=' Value ';'
/// BodyItem ::= Defvar
/// BodyItem ::= Assert
+///
bool TGParser::ParseBodyItem(Record *CurRec) {
if (Lex.getCode() == tgtok::Assert)
return ParseAssert(nullptr, CurRec);
@@ -3361,15 +3362,14 @@ bool TGParser::ParseTopLevelLet(MultiClass *CurMultiClass) {
///
/// MultiClassInst ::= MULTICLASS ID TemplateArgList?
/// ':' BaseMultiClassList '{' MultiClassObject+ '}'
+/// MultiClassObject ::= Assert
/// MultiClassObject ::= DefInst
-/// MultiClassObject ::= MultiClassInst
/// MultiClassObject ::= DefMInst
/// MultiClassObject ::= Defvar
/// MultiClassObject ::= Foreach
/// MultiClassObject ::= If
/// MultiClassObject ::= LETCommand '{' ObjectList '}'
/// MultiClassObject ::= LETCommand Object
-/// MultiClassObject ::= Assert
///
bool TGParser::ParseMultiClass() {
assert(Lex.getCode() == tgtok::MultiClass && "Unexpected token");
More information about the llvm-commits
mailing list