LLVM 20.0.0git
|
#include "TableGen/TGParser.h"
Public Member Functions | |
TGParser (SourceMgr &SM, ArrayRef< std::string > Macros, RecordKeeper &records, const bool NoWarnOnUnusedTemplateArgs=false, const bool TrackReferenceLocs=false) | |
bool | ParseFile () |
ParseFile - Main entrypoint for parsing a tblgen file. | |
bool | Error (SMLoc L, const Twine &Msg) const |
bool | TokError (const Twine &Msg) const |
const TGLexer::DependenciesSetTy & | getDependencies () const |
TGVarScope * | PushScope () |
TGVarScope * | PushScope (Record *Rec) |
TGVarScope * | PushScope (ForeachLoop *Loop) |
TGVarScope * | PushScope (MultiClass *Multiclass) |
void | PopScope (TGVarScope *ExpectedStackTop) |
Definition at line 142 of file TGParser.h.
|
inline |
Definition at line 179 of file TGParser.h.
Definition at line 190 of file TGParser.h.
References llvm::PrintError().
|
inline |
Definition at line 197 of file TGParser.h.
References llvm::TGLexer::getDependencies().
Referenced by createDependencyFile().
bool TGParser::ParseFile | ( | ) |
ParseFile - Main entrypoint for parsing a tblgen file.
These parser routines return true on error, or false on success.
Definition at line 4401 of file TGParser.cpp.
References llvm::tgtok::Eof, llvm::TGLexer::getCode(), llvm::TGLexer::Lex(), PopScope(), PushScope(), and TokError().
Referenced by llvm::TableGenMain().
|
inline |
|
inline |
Definition at line 201 of file TGParser.h.
Referenced by ParseFile().
|
inline |
Definition at line 212 of file TGParser.h.
|
inline |
Definition at line 216 of file TGParser.h.
|
inline |
Definition at line 208 of file TGParser.h.
Definition at line 194 of file TGParser.h.
References llvm::TGLexer::getLoc().
Referenced by ParseFile().