llvm::LLLexer

Lexer for LLVM IR textual assembly (.ll files).

Synopsis

Declared in <llvm/AsmParser/LLLexer.h>

class LLLexer;

Type Aliases

NameDescription
LocTy Source location type used for lexer and parser diagnostics.

Member Functions

NameDescription
LLLexer [constructor]Construct a lexer over assembly buffer StartBuf.
Lex Advance to the next token and return its kind.
ParseError ParseError overloads
Warning Warning overloads
getAPFloatVal Return the floating-point value associated with the current token.
getAPSIntVal Return the arbitrary-precision integer value of the current token.
getKind Return the kind of the current token.
getLoc Return the source location of the start of the current token.
getPrevTokEndLineColumnPos Get the line, column position of the end of the previous token, zero-indexed exclusive.
getStrVal Return the string value associated with the current token.
getTokLineColumnPos Get the line, column position of the start of the current token, zero-indexed.
getTyVal Return the type value associated with the current token.
getUIntVal Return the unsigned integer value associated with the current token.
setIgnoreColonInIdentifiers Control whether a trailing ':' is part of an identifier or a label.