class LLLexer
Declaration
class LLLexer { /* full declaration omitted */ };
Declared at: llvm/include/llvm/AsmParser/LLLexer.h:28
Member Variables
- private const char* CurPtr
- private llvm::StringRef CurBuf
- private llvm::SMDiagnostic& ErrorInfo
- private llvm::SourceMgr& SM
- private llvm::LLVMContext& Context
- private const char* TokStart
- private lltok::Kind CurKind
- private std::string StrVal
- private unsigned int UIntVal
- private llvm::Type* TyVal = nullptr
- private llvm::APFloat APFloatVal
- private llvm::APSInt APSIntVal
- private bool IgnoreColonInIdentifiers
Method Overview
- public bool Error(const llvm::Twine & Msg) const
- public bool Error(llvm::LLLexer::LocTy ErrorLoc, const llvm::Twine & Msg) const
- private void FP80HexToIntPair(const char * Buffer, const char * End, uint64_t * Pair)
- private uint64_t HexIntToVal(const char * Buffer, const char * End)
- private void HexToIntPair(const char * Buffer, const char * End, uint64_t * Pair)
- public LLLexer(llvm::StringRef StartBuf, llvm::SourceMgr & SM, llvm::SMDiagnostic &, llvm::LLVMContext & C)
- public lltok::Kind Lex()
- private lltok::Kind Lex0x()
- private lltok::Kind LexAt()
- private lltok::Kind LexCaret()
- private lltok::Kind LexDigitOrNegative()
- private lltok::Kind LexDollar()
- private lltok::Kind LexExclaim()
- private lltok::Kind LexHash()
- private lltok::Kind LexIdentifier()
- private lltok::Kind LexPercent()
- private lltok::Kind LexPositive()
- private lltok::Kind LexQuote()
- private lltok::Kind LexToken()
- private lltok::Kind LexUIntID(lltok::Kind Token)
- private lltok::Kind LexVar(lltok::Kind Var, lltok::Kind VarID)
- private lltok::Kind ReadString(lltok::Kind kind)
- private bool ReadVarName()
- private void SkipLineComment()
- public void Warning(const llvm::Twine & Msg) const
- public void Warning(llvm::LLLexer::LocTy WarningLoc, const llvm::Twine & Msg) const
- private uint64_t atoull(const char * Buffer, const char * End)
- public const llvm::APFloat & getAPFloatVal() const
- public const llvm::APSInt & getAPSIntVal() const
- public lltok::Kind getKind() const
- public llvm::LLLexer::LocTy getLoc() const
- private int getNextChar()
- public const std::string & getStrVal() const
- public llvm::Type * getTyVal() const
- public unsigned int getUIntVal() const
- public void setIgnoreColonInIdentifiers(bool val)
Methods
¶bool Error(const llvm::Twine& Msg) const
bool Error(const llvm::Twine& Msg) const
Declared at: llvm/include/llvm/AsmParser/LLLexer.h:70
Parameters
- const llvm::Twine& Msg
¶bool Error(llvm::LLLexer::LocTy ErrorLoc,
const llvm::Twine& Msg) const
bool Error(llvm::LLLexer::LocTy ErrorLoc,
const llvm::Twine& Msg) const
Declared at: llvm/include/llvm/AsmParser/LLLexer.h:69
Parameters
- llvm::LLLexer::LocTy ErrorLoc
- const llvm::Twine& Msg
¶void FP80HexToIntPair(const char* Buffer,
const char* End,
uint64_t* Pair)
void FP80HexToIntPair(const char* Buffer,
const char* End,
uint64_t* Pair)
Declared at: llvm/include/llvm/AsmParser/LLLexer.h:100
Parameters
- const char* Buffer
- const char* End
- uint64_t* Pair
¶uint64_t HexIntToVal(const char* Buffer,
const char* End)
uint64_t HexIntToVal(const char* Buffer,
const char* End)
Declared at: llvm/include/llvm/AsmParser/LLLexer.h:98
Parameters
- const char* Buffer
- const char* End
¶void HexToIntPair(const char* Buffer,
const char* End,
uint64_t* Pair)
void HexToIntPair(const char* Buffer,
const char* End,
uint64_t* Pair)
Declared at: llvm/include/llvm/AsmParser/LLLexer.h:99
Parameters
- const char* Buffer
- const char* End
- uint64_t* Pair
¶LLLexer(llvm::StringRef StartBuf,
llvm::SourceMgr& SM,
llvm::SMDiagnostic&,
llvm::LLVMContext& C)
LLLexer(llvm::StringRef StartBuf,
llvm::SourceMgr& SM,
llvm::SMDiagnostic&,
llvm::LLVMContext& C)
Declared at: llvm/include/llvm/AsmParser/LLLexer.h:49
Parameters
- llvm::StringRef StartBuf
- llvm::SourceMgr& SM
- llvm::SMDiagnostic&
- llvm::LLVMContext& C
¶lltok::Kind Lex()
lltok::Kind Lex()
Declared at: llvm/include/llvm/AsmParser/LLLexer.h:52
¶lltok::Kind Lex0x()
lltok::Kind Lex0x()
Declared at: llvm/include/llvm/AsmParser/LLLexer.h:93
¶lltok::Kind LexAt()
lltok::Kind LexAt()
Declared at: llvm/include/llvm/AsmParser/LLLexer.h:86
¶lltok::Kind LexCaret()
lltok::Kind LexCaret()
Declared at: llvm/include/llvm/AsmParser/LLLexer.h:95
¶lltok::Kind LexDigitOrNegative()
lltok::Kind LexDigitOrNegative()
Declared at: llvm/include/llvm/AsmParser/LLLexer.h:84
¶lltok::Kind LexDollar()
lltok::Kind LexDollar()
Declared at: llvm/include/llvm/AsmParser/LLLexer.h:87
¶lltok::Kind LexExclaim()
lltok::Kind LexExclaim()
Declared at: llvm/include/llvm/AsmParser/LLLexer.h:88
¶lltok::Kind LexHash()
lltok::Kind LexHash()
Declared at: llvm/include/llvm/AsmParser/LLLexer.h:94
¶lltok::Kind LexIdentifier()
lltok::Kind LexIdentifier()
Declared at: llvm/include/llvm/AsmParser/LLLexer.h:83
¶lltok::Kind LexPercent()
lltok::Kind LexPercent()
Declared at: llvm/include/llvm/AsmParser/LLLexer.h:89
¶lltok::Kind LexPositive()
lltok::Kind LexPositive()
Declared at: llvm/include/llvm/AsmParser/LLLexer.h:85
¶lltok::Kind LexQuote()
lltok::Kind LexQuote()
Declared at: llvm/include/llvm/AsmParser/LLLexer.h:92
¶lltok::Kind LexToken()
lltok::Kind LexToken()
Declared at: llvm/include/llvm/AsmParser/LLLexer.h:76
¶lltok::Kind LexUIntID(lltok::Kind Token)
lltok::Kind LexUIntID(lltok::Kind Token)
Declared at: llvm/include/llvm/AsmParser/LLLexer.h:90
Parameters
- lltok::Kind Token
¶lltok::Kind LexVar(lltok::Kind Var,
lltok::Kind VarID)
lltok::Kind LexVar(lltok::Kind Var,
lltok::Kind VarID)
Declared at: llvm/include/llvm/AsmParser/LLLexer.h:91
Parameters
- lltok::Kind Var
- lltok::Kind VarID
¶lltok::Kind ReadString(lltok::Kind kind)
lltok::Kind ReadString(lltok::Kind kind)
Declared at: llvm/include/llvm/AsmParser/LLLexer.h:80
Parameters
- lltok::Kind kind
¶bool ReadVarName()
bool ReadVarName()
Declared at: llvm/include/llvm/AsmParser/LLLexer.h:81
¶void SkipLineComment()
void SkipLineComment()
Declared at: llvm/include/llvm/AsmParser/LLLexer.h:79
¶void Warning(const llvm::Twine& Msg) const
void Warning(const llvm::Twine& Msg) const
Declared at: llvm/include/llvm/AsmParser/LLLexer.h:73
Parameters
- const llvm::Twine& Msg
¶void Warning(llvm::LLLexer::LocTy WarningLoc,
const llvm::Twine& Msg) const
void Warning(llvm::LLLexer::LocTy WarningLoc,
const llvm::Twine& Msg) const
Declared at: llvm/include/llvm/AsmParser/LLLexer.h:72
Parameters
- llvm::LLLexer::LocTy WarningLoc
- const llvm::Twine& Msg
¶uint64_t atoull(const char* Buffer,
const char* End)
uint64_t atoull(const char* Buffer,
const char* End)
Declared at: llvm/include/llvm/AsmParser/LLLexer.h:97
Parameters
- const char* Buffer
- const char* End
¶const llvm::APFloat& getAPFloatVal() const
const llvm::APFloat& getAPFloatVal() const
Declared at: llvm/include/llvm/AsmParser/LLLexer.h:63
¶const llvm::APSInt& getAPSIntVal() const
const llvm::APSInt& getAPSIntVal() const
Declared at: llvm/include/llvm/AsmParser/LLLexer.h:62
¶lltok::Kind getKind() const
lltok::Kind getKind() const
Declared at: llvm/include/llvm/AsmParser/LLLexer.h:58
¶llvm::LLLexer::LocTy getLoc() const
llvm::LLLexer::LocTy getLoc() const
Declared at: llvm/include/llvm/AsmParser/LLLexer.h:57
¶int getNextChar()
int getNextChar()
Declared at: llvm/include/llvm/AsmParser/LLLexer.h:78
¶const std::string& getStrVal() const
const std::string& getStrVal() const
Declared at: llvm/include/llvm/AsmParser/LLLexer.h:59
¶llvm::Type* getTyVal() const
llvm::Type* getTyVal() const
Declared at: llvm/include/llvm/AsmParser/LLLexer.h:60
¶unsigned int getUIntVal() const
unsigned int getUIntVal() const
Declared at: llvm/include/llvm/AsmParser/LLLexer.h:61
¶void setIgnoreColonInIdentifiers(bool val)
void setIgnoreColonInIdentifiers(bool val)
Declared at: llvm/include/llvm/AsmParser/LLLexer.h:65
Parameters
- bool val