Go to the documentation of this file.
14 #ifndef LLVM_LIB_CODEGEN_MIRPARSER_MILEXER_H
15 #define LLVM_LIB_CODEGEN_MIRPARSER_MILEXER_H
183 std::string StringValueStorage;
247 StringRef
Source, MIToken &Token,
252 #endif // LLVM_LIB_CODEGEN_MIRPARSER_MILEXER_H
This is an optimization pass for GlobalISel generic memory operations.
const APSInt & integerValue() const
@ kw_inlineasm_br_indirect_target
A token produced by the machine instruction lexer.
@ kw_cfi_def_cfa_register
StringRef stringValue() const
Return the token's string value.
@ kw_cfi_llvm_def_aspace_cfa
bool isRegisterFlag() const
An arbitrary precision integer that knows its signedness.
MIToken & setStringValue(StringRef StrVal)
bool hasIntegerValue() const
@ kw_cfi_adjust_cfa_offset
bool isMemoryOperandFlag() const
StringRef - Represent a constant reference to a string, i.e.
@ kw_ir_block_address_taken
@ kw_cfi_aarch64_negate_ra_sign_state
bool isNot(TokenKind K) const
@ kw_machine_block_address_taken
MIToken & setIntegerValue(APSInt IntVal)
bool isNewlineOrEOF() const
Lightweight error class with error context and mandatory checking.
bool is(TokenKind K) const
StringRef::iterator location() const
MIToken & reset(TokenKind Kind, StringRef Range)
MIToken & setOwnedStringValue(std::string StrVal)
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...
bool isErrorOrEOF() const