LLVM API Documentation
TGLexer - TableGen Lexer class. More...
#include <TGLexer.h>
Public Types | |
| typedef std::map< std::string, SMLoc > | DependenciesMapTy |
Public Member Functions | |
| TGLexer (SourceMgr &SrcMgr) | |
| ~TGLexer () | |
| 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 29 of file TGLexer.cpp.
References llvm::StringRef::begin(), llvm::MemoryBuffer::getBuffer(), llvm::SourceMgr::getMainFileID(), and llvm::SourceMgr::getMemoryBuffer().
| llvm::TGLexer::~TGLexer | ( | ) | [inline] |
| tgtok::TokKind llvm::TGLexer::getCode | ( | ) | const [inline] |
| std::pair<int64_t, unsigned> llvm::TGLexer::getCurBinaryIntVal | ( | ) | const [inline] |
Definition at line 112 of file TGLexer.h.
References llvm::tgtok::BinaryIntVal.
| int64_t llvm::TGLexer::getCurIntVal | ( | ) | const [inline] |
Definition at line 108 of file TGLexer.h.
References llvm::tgtok::IntVal.
| const std::string& llvm::TGLexer::getCurStrVal | ( | ) | const [inline] |
Definition at line 102 of file TGLexer.h.
References llvm::tgtok::CodeFragment, llvm::tgtok::Id, llvm::tgtok::StrVal, and llvm::tgtok::VarName.
| const DependenciesMapTy& llvm::TGLexer::getDependencies | ( | ) | const [inline] |
Definition at line 96 of file TGLexer.h.
Referenced by llvm::TGParser::getDependencies().
| SMLoc TGLexer::getLoc | ( | ) | const |
Definition at line 36 of file TGLexer.cpp.
References llvm::SMLoc::getFromPointer().
Referenced by llvm::TGParser::TokError().
| tgtok::TokKind llvm::TGLexer::Lex | ( | ) | [inline] |