LLVM 19.0.0git
Classes | 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::set< std::string > DependenciesSetTy
 

Public Member Functions

 TGLexer (SourceMgr &SrcMgr, ArrayRef< std::string > Macros)
 
tgtok::TokKind Lex ()
 
const DependenciesSetTygetDependencies () const
 
tgtok::TokKind getCode () const
 
const std::string & getCurStrVal () const
 
int64_t getCurIntVal () const
 
std::pair< int64_t, unsignedgetCurBinaryIntVal () const
 
SMLoc getLoc () const
 
SMRange getLocRange () const
 

Detailed Description

TGLexer - TableGen Lexer class.

Definition at line 189 of file TGLexer.h.

Member Typedef Documentation

◆ DependenciesSetTy

typedef std::set<std::string> llvm::TGLexer::DependenciesSetTy

Definition at line 206 of file TGLexer.h.

Constructor & Destructor Documentation

◆ TGLexer()

TGLexer::TGLexer ( SourceMgr SrcMgr,
ArrayRef< std::string >  Macros 
)

Member Function Documentation

◆ getCode()

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

Definition at line 223 of file TGLexer.h.

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

◆ getCurBinaryIntVal()

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

Definition at line 234 of file TGLexer.h.

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

◆ getCurIntVal()

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

Definition at line 230 of file TGLexer.h.

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

◆ getCurStrVal()

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

Definition at line 225 of file TGLexer.h.

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

◆ getDependencies()

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

Definition at line 219 of file TGLexer.h.

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

◆ getLoc()

SMLoc TGLexer::getLoc ( ) const

Definition at line 62 of file TGLexer.cpp.

References llvm::SMLoc::getFromPointer().

Referenced by getLocRange(), and llvm::TGParser::TokError().

◆ getLocRange()

SMRange TGLexer::getLocRange ( ) const

Definition at line 66 of file TGLexer.cpp.

References llvm::SMLoc::getFromPointer(), and getLoc().

◆ Lex()

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

Definition at line 215 of file TGLexer.h.

References llvm::StringRef::begin().

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


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