|
LLVM
4.0.0
|
TGLexer - TableGen Lexer class. More...
#include <TGLexer.h>
Public Types | |
| typedef std::map< std::string, SMLoc > | DependenciesMapTy |
Public Member Functions | |
| TGLexer (SourceMgr &SrcMgr) | |
| tgtok::TokKind | Lex () |
| const DependenciesMapTy & | 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 |
| typedef std::map<std::string, SMLoc> llvm::TGLexer::DependenciesMapTy |
| TGLexer::TGLexer | ( | SourceMgr & | SrcMgr | ) |
Definition at line 31 of file TGLexer.cpp.
References llvm::StringRef::begin(), llvm::MemoryBuffer::getBuffer(), llvm::SourceMgr::getMainFileID(), and llvm::SourceMgr::getMemoryBuffer().
|
inline |
|
inline |
Definition at line 111 of file TGLexer.h.
References assert(), and llvm::tgtok::BinaryIntVal.
|
inline |
Definition at line 107 of file TGLexer.h.
References assert(), and llvm::tgtok::IntVal.
|
inline |
Definition at line 101 of file TGLexer.h.
References assert(), llvm::tgtok::CodeFragment, llvm::tgtok::Id, llvm::tgtok::StrVal, and llvm::tgtok::VarName.
|
inline |
Definition at line 95 of file TGLexer.h.
Referenced by llvm::TGParser::getDependencies().
| SMLoc TGLexer::getLoc | ( | ) | const |
Definition at line 38 of file TGLexer.cpp.
References llvm::SMLoc::getFromPointer().
Referenced by llvm::TGParser::TokError().
|
inline |
1.8.6