|
LLVM
3.7.0
|
A token produced by the machine instruction lexer. More...
#include <MILexer.h>
Public Types | |
| enum | TokenKind { Eof, Error, comma, equal, underscore, colon, kw_implicit, kw_implicit_define, kw_dead, kw_killed, kw_undef, Identifier, NamedRegister, MachineBasicBlock, NamedGlobalValue, GlobalValue, IntegerLiteral, VirtualRegister } |
Public Member Functions | |
| MIToken (TokenKind Kind, StringRef Range, unsigned StringOffset=0) | |
| MIToken (TokenKind Kind, StringRef Range, const APSInt &IntVal, unsigned StringOffset=0) | |
| TokenKind | kind () const |
| bool | isError () const |
| bool | isRegister () const |
| bool | isRegisterFlag () const |
| bool | is (TokenKind K) const |
| bool | isNot (TokenKind K) const |
| StringRef::iterator | location () const |
| StringRef | stringValue () const |
| const APSInt & | integerValue () const |
| bool | hasIntegerValue () const |
|
inline |
Definition at line 97 of file MILexer.h.
References IntegerLiteral, and VirtualRegister.
|
inline |
|
inline |
Definition at line 77 of file MILexer.h.
References NamedRegister, underscore, and VirtualRegister.
|
inline |
Definition at line 82 of file MILexer.h.
References kw_dead, kw_implicit, kw_implicit_define, kw_killed, and kw_undef.
|
inline |
Definition at line 91 of file MILexer.h.
References llvm::StringRef::begin().
|
inline |
Definition at line 93 of file MILexer.h.
References llvm::StringRef::drop_front().
1.8.6