LLVM  10.0.0
Public Member Functions | List of all members
llvm::TGParser Class Reference

#include "TableGen/TGParser.h"

Public Member Functions

 TGParser (SourceMgr &SM, ArrayRef< std::string > Macros, RecordKeeper &records)
 
bool ParseFile ()
 ParseFile - Main entrypoint for parsing a tblgen file. More...
 
bool Error (SMLoc L, const Twine &Msg) const
 
bool TokError (const Twine &Msg) const
 
const TGLexer::DependenciesSetTy & getDependencies () const
 
TGLocalVarScope * PushLocalScope ()
 
void PopLocalScope (TGLocalVarScope *ExpectedStackTop)
 

Detailed Description

Definition at line 131 of file TGParser.h.

Constructor & Destructor Documentation

◆ TGParser()

llvm::TGParser::TGParser ( SourceMgr &  SM,
ArrayRef< std::string >  Macros,
RecordKeeper &  records 
)
inline

Definition at line 165 of file TGParser.h.

Member Function Documentation

◆ Error()

bool llvm::TGParser::Error ( SMLoc  L,
const Twine &  Msg 
) const
inline

Definition at line 173 of file TGParser.h.

References llvm::PrintError().

◆ getDependencies()

const TGLexer::DependenciesSetTy& llvm::TGParser::getDependencies ( ) const
inline

Definition at line 180 of file TGParser.h.

References llvm::TGLexer::getDependencies().

Referenced by createDependencyFile().

◆ ParseFile()

bool llvm::TGParser::ParseFile ( )

ParseFile - Main entrypoint for parsing a tblgen file.

These parser routines return true on error, or false on success.

Referenced by llvm::TableGenMain().

◆ PopLocalScope()

void llvm::TGParser::PopLocalScope ( TGLocalVarScope *  ExpectedStackTop)
inline

◆ PushLocalScope()

TGLocalVarScope* llvm::TGParser::PushLocalScope ( )
inline

Definition at line 184 of file TGParser.h.

◆ TokError()

bool llvm::TGParser::TokError ( const Twine &  Msg) const
inline

Definition at line 177 of file TGParser.h.

References llvm::Error, and llvm::TGLexer::getLoc().


The documentation for this class was generated from the following files: