diff options
author | Paul C. Anagnostopoulos <paul@windfall.com> | 2021-04-22 13:26:19 -0400 |
---|---|---|
committer | Paul C. Anagnostopoulos <paul@windfall.com> | 2021-04-23 09:53:31 -0400 |
commit | 9d609adcb0b595972e3384c2172bb205677b02fc (patch) | |
tree | 132db4c760ec4e3d21146ccf09e274f99771be38 /llvm/lib/TableGen/TGParser.cpp | |
parent | c2da0cdff5683550b0ceb8739c862dc0e4e9b204 (diff) | |
download | llvm-9d609adcb0b595972e3384c2172bb205677b02fc.zip llvm-9d609adcb0b595972e3384c2172bb205677b02fc.tar.gz llvm-9d609adcb0b595972e3384c2172bb205677b02fc.tar.bz2 |
[TableGen] Correct some comments in the TableGen parser [NFC]
Differential Revision: https://reviews.llvm.org/D101088
Diffstat (limited to 'llvm/lib/TableGen/TGParser.cpp')
-rw-r--r-- | llvm/lib/TableGen/TGParser.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/llvm/lib/TableGen/TGParser.cpp b/llvm/lib/TableGen/TGParser.cpp index c0bf4b7..a285f60 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"); |