LLVM 20.0.0git
|
TGLexer - TableGen Lexer class. More...
#include "TableGen/TGLexer.h"
Public Types | |
typedef std::set< std::string > | DependenciesSetTy |
Public Member Functions | |
TGLexer (SourceMgr &SrcMgr, ArrayRef< std::string > Macros) | |
tgtok::TokKind | Lex () |
const DependenciesSetTy & | getDependencies () const |
tgtok::TokKind | getCode () const |
const std::string & | getCurStrVal () const |
int64_t | getCurIntVal () const |
std::pair< int64_t, unsigned > | getCurBinaryIntVal () const |
SMLoc | getLoc () const |
SMRange | getLocRange () const |
typedef std::set<std::string> llvm::TGLexer::DependenciesSetTy |
Definition at line 77 of file TGLexer.cpp.
References llvm::StringRef::begin(), End, llvm::MemoryBuffer::getBuffer(), llvm::SourceMgr::getMainFileID(), llvm::SourceMgr::getMemoryBuffer(), llvm::StringSet< AllocatorTy >::insert(), lexMacroName(), and llvm::PrintFatalError().
|
inline |
Definition at line 223 of file TGLexer.h.
Referenced by llvm::TGParser::ParseFile().
|
inline |
Definition at line 234 of file TGLexer.h.
References assert(), and llvm::tgtok::BinaryIntVal.
|
inline |
Definition at line 230 of file TGLexer.h.
References assert(), and llvm::tgtok::IntVal.
|
inline |
Definition at line 225 of file TGLexer.h.
References assert(), and llvm::tgtok::isStringValue().
|
inline |
Definition at line 219 of file TGLexer.h.
Referenced by llvm::TGParser::getDependencies().
SMLoc TGLexer::getLoc | ( | ) | const |
Definition at line 99 of file TGLexer.cpp.
References llvm::SMLoc::getFromPointer().
Referenced by getLocRange(), and llvm::TGParser::TokError().
SMRange TGLexer::getLocRange | ( | ) | const |
Definition at line 103 of file TGLexer.cpp.
References llvm::SMLoc::getFromPointer(), and getLoc().
|
inline |
Definition at line 215 of file TGLexer.h.
References llvm::StringRef::begin().
Referenced by llvm::TGParser::ParseFile().