LLVM  6.0.0svn
Public Types | Public Member Functions | List of all members
llvm::TGLexer Class Reference

TGLexer - TableGen Lexer class. More...

#include "TableGen/TGLexer.h"

Public Types

typedef std::map< std::string, SMLocDependenciesMapTy
 

Public Member Functions

 TGLexer (SourceMgr &SrcMgr)
 
tgtok::TokKind Lex ()
 
const DependenciesMapTygetDependencies () const
 
tgtok::TokKind getCode () const
 
const std::string & getCurStrVal () const
 
int64_t getCurIntVal () const
 
std::pair< int64_t, unsignedgetCurBinaryIntVal () const
 
SMLoc getLoc () const
 

Detailed Description

TGLexer - TableGen Lexer class.

Definition at line 66 of file TGLexer.h.

Member Typedef Documentation

◆ DependenciesMapTy

typedef std::map<std::string, SMLoc> llvm::TGLexer::DependenciesMapTy

Definition at line 83 of file TGLexer.h.

Constructor & Destructor Documentation

◆ TGLexer()

TGLexer::TGLexer ( SourceMgr SrcMgr)

Member Function Documentation

◆ getCode()

tgtok::TokKind llvm::TGLexer::getCode ( ) const
inline

Definition at line 99 of file TGLexer.h.

◆ getCurBinaryIntVal()

std::pair<int64_t, unsigned> llvm::TGLexer::getCurBinaryIntVal ( ) const
inline

Definition at line 111 of file TGLexer.h.

References assert(), and llvm::tgtok::BinaryIntVal.

◆ getCurIntVal()

int64_t llvm::TGLexer::getCurIntVal ( ) const
inline

Definition at line 107 of file TGLexer.h.

References assert(), and llvm::tgtok::IntVal.

◆ getCurStrVal()

const std::string& llvm::TGLexer::getCurStrVal ( ) const
inline

◆ getDependencies()

const DependenciesMapTy& llvm::TGLexer::getDependencies ( ) const
inline

Definition at line 95 of file TGLexer.h.

Referenced by llvm::TGParser::getDependencies().

◆ getLoc()

SMLoc TGLexer::getLoc ( ) const

Definition at line 38 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::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::tgtok::minus, llvm::tgtok::MultiClass, llvm::tgtok::paste, llvm::tgtok::period, llvm::tgtok::plus, llvm::PrintError(), 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, llvm::tgtok::VarName, llvm::tgtok::XADD, llvm::tgtok::XAND, llvm::tgtok::XCast, llvm::tgtok::XConcat, llvm::tgtok::XEmpty, llvm::tgtok::XEq, llvm::tgtok::XForEach, llvm::tgtok::XHead, llvm::tgtok::XIf, llvm::tgtok::XListConcat, llvm::tgtok::XOR, llvm::tgtok::XSHL, llvm::tgtok::XSRA, llvm::tgtok::XSRL, llvm::tgtok::XStrConcat, llvm::tgtok::XSubst, and llvm::tgtok::XTail.

Referenced by llvm::TGParser::TokError().

◆ Lex()

tgtok::TokKind llvm::TGLexer::Lex ( )
inline

Definition at line 91 of file TGLexer.h.

Referenced by getLoc().


The documentation for this class was generated from the following files: