LLVM
8.0.1
|
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 217 of file MILexer.h.
References ConstantPoolItem, FixedStackObject, IntegerLiteral, IRBlock, IRValue, JumpTableIndex, llvm::lexMIToken(), MachineBasicBlockLabel, llvm::Sched::Source, StackObject, and VirtualRegister.
|
inline |
|
inline |
|
inline |
Definition at line 198 of file MILexer.h.
References kw_dereferenceable, kw_invariant, kw_non_temporal, kw_volatile, and StringConstant.
|
inline |
|
inline |
Definition at line 185 of file MILexer.h.
References NamedRegister, NamedVirtualRegister, underscore, and VirtualRegister.
|
inline |
Definition at line 190 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 208 of file MILexer.h.
References llvm::StringRef::begin().
Referenced by maybeLexExlaim().
Definition at line 68 of file MILexer.cpp.
References Kind.
Referenced by lexFloatingPointLiteral(), lexName(), lexNamedVirtualRegister(), lexVirtualRegister(), maybeLexEscapedIRValue(), maybeLexExlaim(), maybeLexGlobalValue(), maybeLexHexadecimalLiteral(), maybeLexIdentifier(), maybeLexIndex(), maybeLexIndexAndName(), maybeLexMachineBasicBlock(), maybeLexNewline(), maybeLexNumericalLiteral(), maybeLexRegister(), and maybeLexSymbol().
Definition at line 85 of file MILexer.cpp.
Referenced by maybeLexNumericalLiteral().
MIToken & MIToken::setOwnedStringValue | ( | std::string | StrVal | ) |
Definition at line 79 of file MILexer.cpp.
Referenced by lexName().
Definition at line 74 of file MILexer.cpp.
References llvm::tgtok::StrVal.
Referenced by maybeLexIdentifier().
|
inline |