LLVM 17.0.0git
|
A token produced by the machine instruction lexer. More...
#include "CodeGen/MIRParser/MILexer.h"
Public Member Functions | |
MIToken ()=default | |
MIToken & | reset (TokenKind Kind, StringRef Range) |
MIToken & | setStringValue (StringRef StrVal) |
MIToken & | setOwnedStringValue (std::string StrVal) |
MIToken & | setIntegerValue (APSInt IntVal) |
TokenKind | kind () const |
bool | isError () const |
bool | isNewlineOrEOF () const |
bool | isErrorOrEOF () const |
bool | isRegister () const |
bool | isRegisterFlag () const |
bool | isMemoryOperandFlag () const |
bool | is (TokenKind K) const |
bool | isNot (TokenKind K) const |
StringRef::iterator | location () const |
StringRef | range () const |
StringRef | stringValue () const |
Return the token's string value. | |
const APSInt & | integerValue () const |
bool | hasIntegerValue () const |
|
default |
|
inline |
Definition at line 235 of file MILexer.h.
References ConstantPoolItem, FixedStackObject, IRBlock, IRValue, JumpTableIndex, MachineBasicBlockLabel, StackObject, and VirtualRegister.
Referenced by getUnsigned().
Definition at line 233 of file MILexer.h.
Referenced by getUnsigned().
Definition at line 222 of file MILexer.h.
Referenced by getHexUint(), and getUnsigned().
|
inline |
|
inline |
|
inline |
Definition at line 216 of file MILexer.h.
References kw_dereferenceable, kw_invariant, kw_non_temporal, kw_volatile, and StringConstant.
|
inline |
|
inline |
Definition at line 203 of file MILexer.h.
References NamedRegister, NamedVirtualRegister, underscore, and VirtualRegister.
|
inline |
Definition at line 208 of file MILexer.h.
References kw_dead, kw_debug_use, kw_def, kw_early_clobber, kw_implicit, kw_implicit_define, kw_internal, kw_killed, kw_renamable, and kw_undef.
|
inline |
Definition at line 195 of file MILexer.h.
Referenced by parseGlobalValue(), and parseIRValue().
|
inline |
Definition at line 226 of file MILexer.h.
Referenced by getUnsigned(), maybeLexExclaim(), parseGlobalValue(), and parseIRValue().
|
inline |
Definition at line 228 of file MILexer.h.
Referenced by getHexUint(), parseGlobalValue(), and parseIRValue().
Definition at line 62 of file MILexer.cpp.
Referenced by lexFloatingPointLiteral(), lexName(), lexNamedVirtualRegister(), lexVirtualRegister(), maybeLexEscapedIRValue(), maybeLexExclaim(), maybeLexGlobalValue(), maybeLexHexadecimalLiteral(), maybeLexIdentifier(), maybeLexIndex(), maybeLexIndexAndName(), maybeLexMachineBasicBlock(), maybeLexMCSymbol(), maybeLexNewline(), maybeLexNumericalLiteral(), maybeLexRegister(), and maybeLexSymbol().
Definition at line 79 of file MILexer.cpp.
Referenced by lexVirtualRegister(), maybeLexGlobalValue(), maybeLexIndex(), maybeLexIndexAndName(), maybeLexMachineBasicBlock(), and maybeLexNumericalLiteral().
MIToken & MIToken::setOwnedStringValue | ( | std::string | StrVal | ) |
Definition at line 73 of file MILexer.cpp.
Referenced by lexName(), and maybeLexMCSymbol().
Definition at line 68 of file MILexer.cpp.
Referenced by lexName(), lexNamedVirtualRegister(), maybeLexEscapedIRValue(), maybeLexIdentifier(), maybeLexIndexAndName(), maybeLexMachineBasicBlock(), maybeLexMCSymbol(), and maybeLexRegister().
|
inline |
Return the token's string value.
Definition at line 231 of file MILexer.h.
Referenced by parseGlobalValue(), and parseIRValue().