15 #ifndef LLVM_LIB_CODEGEN_MIRPARSER_MILEXER_H 16 #define LLVM_LIB_CODEGEN_MIRPARSER_MILEXER_H 165 std::string StringValueStorage;
234 #endif // LLVM_LIB_CODEGEN_MIRPARSER_MILEXER_H
StringRef stringValue() const
Return the token's string value.
bool is(TokenKind K) const
This class represents lattice values for constants.
An efficient, type-erasing, non-owning reference to a callable.
bool isMemoryOperandFlag() const
StringRef lexMIToken(StringRef Source, MIToken &Token, function_ref< void(StringRef::iterator, const Twine &)> ErrorCallback)
Consume a single machine instruction token in the given source and return the remaining source string...
MIToken & reset(TokenKind Kind, StringRef Range)
Twine - A lightweight data structure for efficiently representing the concatenation of temporary valu...
bool isNot(TokenKind K) const
bool isNewlineOrEOF() const
const APSInt & integerValue() const
MIToken & setOwnedStringValue(std::string StrVal)
bool isErrorOrEOF() const
bool hasIntegerValue() const
MIToken & setStringValue(StringRef StrVal)
StringRef::iterator location() const
bool isRegisterFlag() const
A token produced by the machine instruction lexer.
Lightweight error class with error context and mandatory checking.
StringRef - Represent a constant reference to a string, i.e.
MIToken & setIntegerValue(APSInt IntVal)