|
LLVM
4.0.0
|
A token produced by the machine instruction lexer. More...
#include <MILexer.h>
Public Member Functions | |
| MIToken () | |
| 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 |
|
inline |
Definition at line 187 of file MILexer.h.
References ConstantPoolItem, FixedStackObject, IntegerLiteral, IRBlock, IRValue, JumpTableIndex, MachineBasicBlockLabel, StackObject, and VirtualRegister.
|
inline |
|
inline |
|
inline |
Definition at line 169 of file MILexer.h.
References kw_dereferenceable, kw_invariant, kw_non_temporal, and kw_volatile.
|
inline |
|
inline |
Definition at line 157 of file MILexer.h.
References NamedRegister, underscore, and VirtualRegister.
|
inline |
Definition at line 162 of file MILexer.h.
References kw_dead, kw_debug_use, kw_def, kw_early_clobber, kw_implicit, kw_implicit_define, kw_internal, kw_killed, and kw_undef.
|
inline |
Definition at line 178 of file MILexer.h.
References llvm::StringRef::begin().
Referenced by maybeLexExlaim().
Definition at line 62 of file MILexer.cpp.
Referenced by lexFloatingPointLiteral(), lexName(), lexVirtualRegister(), maybeLexEscapedIRValue(), maybeLexExlaim(), maybeLexGlobalValue(), maybeLexHexadecimalLiteral(), maybeLexIdentifier(), maybeLexIndex(), maybeLexIndexAndName(), maybeLexIntegerOrScalarType(), maybeLexMachineBasicBlock(), maybeLexNewline(), maybeLexNumericalLiteral(), maybeLexRegister(), and maybeLexSymbol().
Definition at line 79 of file MILexer.cpp.
Referenced by maybeLexNumericalLiteral().
| MIToken & MIToken::setOwnedStringValue | ( | std::string | StrVal | ) |
Definition at line 73 of file MILexer.cpp.
Referenced by lexName().
Definition at line 68 of file MILexer.cpp.
References llvm::tgtok::StrVal.
Referenced by maybeLexIdentifier().
|
inline |
1.8.6