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 47 of file TGLexer.cpp.
References llvm::StringRef::begin(), llvm::MemoryBuffer::getBuffer(), llvm::SourceMgr::getMainFileID(), llvm::SourceMgr::getMemoryBuffer(), and llvm::StringSet< AllocatorTy >::insert().
|
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 62 of file TGLexer.cpp.
References llvm::SMLoc::getFromPointer().
Referenced by getLocRange(), and llvm::TGParser::TokError().
SMRange TGLexer::getLocRange | ( | ) | const |
Definition at line 66 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().