LLVM
8.0.1
|
TGLexer - TableGen Lexer class. More...
#include "TableGen/TGLexer.h"
Public Types | |
typedef std::map< std::string, SMLoc > | DependenciesMapTy |
Public Member Functions | |
TGLexer (SourceMgr &SrcMgr, ArrayRef< std::string > Macros) | |
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 |
Definition at line 46 of file TGLexer.cpp.
References llvm::StringRef::begin(), llvm::ArrayRef< T >::begin(), llvm::ArrayRef< T >::end(), llvm::for_each(), llvm::MemoryBuffer::getBuffer(), llvm::SourceMgr::getMainFileID(), llvm::SourceMgr::getMemoryBuffer(), llvm::StringSet< AllocatorTy >::insert(), and llvm::make_unique().
|
inline |
|
inline |
Definition at line 119 of file TGLexer.h.
References assert(), llvm::tgtok::BinaryIntVal, and Kind.
|
inline |
Definition at line 115 of file TGLexer.h.
References assert(), and llvm::tgtok::IntVal.
|
inline |
Definition at line 109 of file TGLexer.h.
References assert(), llvm::tgtok::CodeFragment, llvm::tgtok::Id, llvm::tgtok::StrVal, and llvm::tgtok::VarName.
|
inline |
Definition at line 103 of file TGLexer.h.
Referenced by llvm::TGParser::getDependencies().
SMLoc TGLexer::getLoc | ( | ) | const |
Definition at line 63 of file TGLexer.cpp.
References llvm::SourceMgr::AddIncludeFile(), llvm::StringRef::begin(), llvm::tgtok::BinaryIntVal, llvm::tgtok::Bit, llvm::tgtok::Bits, llvm::StringSwitch< T, R >::Case(), llvm::tgtok::Class, llvm::tgtok::Code, llvm::tgtok::CodeFragment, llvm::tgtok::colon, llvm::tgtok::comma, llvm::tgtok::Dag, llvm::tgtok::Def, llvm::StringSwitch< T, R >::Default(), llvm::tgtok::Defm, llvm::tgtok::Defset, llvm::SourceMgr::DK_Note, llvm::StringRef::end(), llvm::tgtok::Eof, llvm::tgtok::equal, llvm::tgtok::Error, llvm::tgtok::Field, llvm::SourceMgr::FindBufferContainingLoc(), llvm::tgtok::Foreach, llvm::MemoryBuffer::getBuffer(), llvm::SMLoc::getFromPointer(), llvm::SourceMgr::getMemoryBuffer(), llvm::SourceMgr::getParentIncludeLoc(), llvm::SMLoc::getPointer(), llvm::tgtok::greater, llvm::tgtok::Id, llvm::tgtok::In, llvm::tgtok::Int, llvm::tgtok::IntVal, Kind, llvm::tgtok::l_brace, llvm::tgtok::l_paren, llvm::tgtok::l_square, llvm::tgtok::less, llvm::tgtok::Let, Lex(), llvm::tgtok::List, LLVM_FALLTHROUGH, llvm::make_unique(), llvm::tgtok::minus, llvm::tgtok::MultiClass, llvm::tgtok::paste, llvm::tgtok::period, llvm::tgtok::plus, llvm::PrintError(), llvm::PrintFatalError(), llvm::SourceMgr::PrintMessage(), llvm::tgtok::question, llvm::tgtok::r_brace, llvm::tgtok::r_paren, llvm::tgtok::r_square, llvm::tgtok::semi, llvm::tgtok::String, llvm::tgtok::StrVal, and llvm::tgtok::VarName.
Referenced by llvm::TGParser::TokError().
|
inline |
Definition at line 99 of file TGLexer.h.
References llvm::StringRef::begin().
Referenced by getLoc().