LLVM 24.0.0git
llvm::TGLexer Class Reference

TGLexer - TableGen Lexer class. More...

#include "TableGen/TGLexer.h"

Public Member Functions

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

Detailed Description

TGLexer - TableGen Lexer class.

Definition at line 193 of file TGLexer.h.

Constructor & Destructor Documentation

◆ TGLexer()

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

Definition at line 74 of file TGLexer.cpp.

References llvm::End, lexMacroName(), and llvm::PrintFatalError().

Member Function Documentation

◆ getCode()

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

Definition at line 214 of file TGLexer.h.

Referenced by preprocessInput().

◆ getCurBinaryIntVal()

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

Definition at line 225 of file TGLexer.h.

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

◆ getCurIntVal()

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

Definition at line 221 of file TGLexer.h.

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

◆ getCurStrVal()

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

Definition at line 216 of file TGLexer.h.

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

◆ getLoc()

SMLoc TGLexer::getLoc ( ) const

Definition at line 95 of file TGLexer.cpp.

References llvm::SMLoc::getFromPointer().

Referenced by getLocRange(), and preprocessInput().

◆ getLocRange()

SMRange TGLexer::getLocRange ( ) const

Definition at line 97 of file TGLexer.cpp.

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

Referenced by preprocessInput().

◆ Lex()

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

Definition at line 212 of file TGLexer.h.

Referenced by preprocessInput().


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