15 #ifndef LLVM_LIB_CODEGEN_MIRPARSER_MILEXER_H
16 #define LLVM_LIB_CODEGEN_MIRPARSER_MILEXER_H
137 std::string StringValueStorage;
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)
StringRef::iterator location() const
bool isNot(TokenKind K) const
bool isErrorOrEOF() const
bool isRegisterFlag() const
bool hasIntegerValue() const
MIToken & setOwnedStringValue(std::string StrVal)
StringRef stringValue() const
Return the token's string value.
bool isNewlineOrEOF() const
MIToken & setStringValue(StringRef StrVal)
bool is(TokenKind K) const
const APSInt & integerValue() const
bool isMemoryOperandFlag() 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)