|
LLVM
10.0.0
|
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. More... | |
| const APSInt & | integerValue () const |
| bool | hasIntegerValue () const |
|
default |
|
inline |
Definition at line 221 of file MILexer.h.
References ConstantPoolItem, FixedStackObject, IRBlock, IRValue, JumpTableIndex, llvm::lexMIToken(), MachineBasicBlockLabel, llvm::Sched::Source, StackObject, and VirtualRegister.
Referenced by getUnsigned().
Definition at line 219 of file MILexer.h.
Referenced by getUnsigned().
Definition at line 208 of file MILexer.h.
Referenced by getHexUint(), and getUnsigned().
|
inline |
|
inline |
|
inline |
Definition at line 202 of file MILexer.h.
References kw_dereferenceable, kw_invariant, kw_non_temporal, kw_volatile, and StringConstant.
|
inline |
|
inline |
Definition at line 189 of file MILexer.h.
References NamedRegister, NamedVirtualRegister, underscore, and VirtualRegister.
|
inline |
Definition at line 194 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 181 of file MILexer.h.
Referenced by parseGlobalValue(), and parseIRValue().
|
inline |
Definition at line 212 of file MILexer.h.
References llvm::StringRef::begin().
Referenced by getUnsigned(), maybeLexExclaim(), parseGlobalValue(), and parseIRValue().
|
inline |
Definition at line 214 of file MILexer.h.
Referenced by getHexUint(), parseGlobalValue(), and parseIRValue().
Definition at line 67 of file MILexer.cpp.
Referenced by lexFloatingPointLiteral(), lexName(), lexNamedVirtualRegister(), lexVirtualRegister(), maybeLexEscapedIRValue(), maybeLexExclaim(), maybeLexGlobalValue(), maybeLexHexadecimalLiteral(), maybeLexIdentifier(), maybeLexIndex(), maybeLexIndexAndName(), maybeLexMachineBasicBlock(), maybeLexNewline(), maybeLexNumericalLiteral(), maybeLexRegister(), and maybeLexSymbol().
Definition at line 84 of file MILexer.cpp.
Referenced by maybeLexNumericalLiteral().
| MIToken & MIToken::setOwnedStringValue | ( | std::string | StrVal | ) |
Definition at line 78 of file MILexer.cpp.
Referenced by lexName().
Definition at line 73 of file MILexer.cpp.
References llvm::tgtok::StrVal.
Referenced by maybeLexIdentifier().
|
inline |
Return the token's string value.
Definition at line 217 of file MILexer.h.
Referenced by parseGlobalValue(), and parseIRValue().
1.8.13