LLVM 20.0.0git
Classes | Public Types | Public Member Functions | List of all members
llvm::LLLexer Class Reference

#include "llvm/AsmParser/LLLexer.h"

Public Types

typedef SMLoc LocTy
 

Public Member Functions

 LLLexer (StringRef StartBuf, SourceMgr &SM, SMDiagnostic &, LLVMContext &C)
 
lltok::Kind Lex ()
 
LocTy getLoc () const
 
lltok::Kind getKind () const
 
const std::string & getStrVal () const
 
TypegetTyVal () const
 
unsigned getUIntVal () const
 
const APSIntgetAPSIntVal () const
 
const APFloatgetAPFloatVal () const
 
void setIgnoreColonInIdentifiers (bool val)
 
bool ParseError (LocTy ErrorLoc, const Twine &Msg)
 
bool ParseError (const Twine &Msg)
 
void Warning (LocTy WarningLoc, const Twine &Msg) const
 
void Warning (const Twine &Msg) const
 

Detailed Description

Definition at line 28 of file LLLexer.h.

Member Typedef Documentation

◆ LocTy

Definition at line 69 of file LLLexer.h.

Constructor & Destructor Documentation

◆ LLLexer()

LLLexer::LLLexer ( StringRef  StartBuf,
SourceMgr SM,
SMDiagnostic Err,
LLVMContext C 
)
explicit

Definition at line 171 of file LLLexer.cpp.

References llvm::StringRef::begin().

Member Function Documentation

◆ getAPFloatVal()

const APFloat & llvm::LLLexer::getAPFloatVal ( ) const
inline

Definition at line 76 of file LLLexer.h.

◆ getAPSIntVal()

const APSInt & llvm::LLLexer::getAPSIntVal ( ) const
inline

Definition at line 75 of file LLLexer.h.

Referenced by llvm::LLParser::parseMDField().

◆ getKind()

lltok::Kind llvm::LLLexer::getKind ( ) const
inline

◆ getLoc()

LocTy llvm::LLLexer::getLoc ( ) const
inline

◆ getStrVal()

const std::string & llvm::LLLexer::getStrVal ( ) const
inline

Definition at line 72 of file LLLexer.h.

Referenced by llvm::LLParser::parseMDField().

◆ getTyVal()

Type * llvm::LLLexer::getTyVal ( ) const
inline

Definition at line 73 of file LLLexer.h.

◆ getUIntVal()

unsigned llvm::LLLexer::getUIntVal ( ) const
inline

Definition at line 74 of file LLLexer.h.

◆ Lex()

lltok::Kind llvm::LLLexer::Lex ( )
inline

◆ ParseError() [1/2]

bool llvm::LLLexer::ParseError ( const Twine Msg)
inline

Definition at line 88 of file LLLexer.h.

References getLoc(), and ParseError().

Referenced by ParseError().

◆ ParseError() [2/2]

bool llvm::LLLexer::ParseError ( LocTy  ErrorLoc,
const Twine Msg 
)
inline

Definition at line 84 of file LLLexer.h.

◆ setIgnoreColonInIdentifiers()

void llvm::LLLexer::setIgnoreColonInIdentifiers ( bool  val)
inline

Definition at line 78 of file LLLexer.h.

◆ Warning() [1/2]

void llvm::LLLexer::Warning ( const Twine Msg) const
inline

Definition at line 91 of file LLLexer.h.

References getLoc(), and Warning().

Referenced by Warning().

◆ Warning() [2/2]

void LLLexer::Warning ( LocTy  WarningLoc,
const Twine Msg 
) const

Definition at line 45 of file LLLexer.cpp.

References llvm::SourceMgr::DK_Warning, and llvm::SourceMgr::PrintMessage().


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