|
LLVM 24.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 |
References MIToken().
Referenced by MIToken(), reset(), setIntegerValue(), setOwnedStringValue(), and setStringValue().
|
inline |
Definition at line 257 of file MILexer.h.
References ConstantPoolItem, FixedStackObject, GlobalValue, IntegerLiteral, IRBlock, IRValue, JumpTableIndex, MachineBasicBlock, MachineBasicBlockLabel, StackObject, and VirtualRegister.
Referenced by getUnsigned().
Definition at line 255 of file MILexer.h.
Referenced by getUnsigned().
Definition at line 244 of file MILexer.h.
Referenced by getHexUint(), and getUnsigned().
|
inline |
|
inline |
|
inline |
Definition at line 238 of file MILexer.h.
References kw_dereferenceable, kw_invariant, kw_non_temporal, kw_volatile, and StringConstant.
|
inline |
|
inline |
Definition at line 225 of file MILexer.h.
References NamedRegister, NamedVirtualRegister, underscore, and VirtualRegister.
|
inline |
Definition at line 230 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 217 of file MILexer.h.
Referenced by parseGlobalValue(), and parseIRValue().
|
inline |
Definition at line 248 of file MILexer.h.
Referenced by getUnsigned(), maybeLexExclaim(), parseGlobalValue(), and parseIRValue().
|
inline |
Definition at line 250 of file MILexer.h.
Referenced by getHexUint(), parseGlobalValue(), and parseIRValue().
Definition at line 62 of file MILexer.cpp.
References MIToken().
Referenced by lexFloatingPointLiteral(), lexName(), lexNamedVirtualRegister(), lexVirtualRegister(), maybeLexEscapedIRValue(), maybeLexExclaim(), maybeLexFloatHexBits(), maybeLexGlobalValue(), maybeLexHexadecimalLiteral(), maybeLexIdentifier(), maybeLexIndex(), maybeLexIndexAndName(), maybeLexMachineBasicBlock(), maybeLexMCSymbol(), maybeLexNewline(), maybeLexNumericalLiteral(), maybeLexRegister(), and maybeLexSymbol().
Definition at line 79 of file MILexer.cpp.
References MIToken().
Referenced by lexVirtualRegister(), maybeLexGlobalValue(), maybeLexIndex(), maybeLexIndexAndName(), maybeLexMachineBasicBlock(), and maybeLexNumericalLiteral().
| MIToken & MIToken::setOwnedStringValue | ( | std::string | StrVal | ) |
Definition at line 73 of file MILexer.cpp.
References MIToken().
Referenced by lexName(), maybeLexMachineBasicBlock(), and maybeLexMCSymbol().
Definition at line 68 of file MILexer.cpp.
References MIToken().
Referenced by lexName(), lexNamedVirtualRegister(), maybeLexEscapedIRValue(), maybeLexIdentifier(), maybeLexIndexAndName(), maybeLexMachineBasicBlock(), maybeLexMCSymbol(), and maybeLexRegister().
|
inline |
Return the token's string value.
Definition at line 253 of file MILexer.h.
Referenced by parseGlobalValue(), and parseIRValue().