diff options
Diffstat (limited to 'llvm/lib/CodeGen/MIRParser/MILexer.h')
| -rw-r--r-- | llvm/lib/CodeGen/MIRParser/MILexer.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/llvm/lib/CodeGen/MIRParser/MILexer.h b/llvm/lib/CodeGen/MIRParser/MILexer.h index c28935f3890..c66b2006e35 100644 --- a/llvm/lib/CodeGen/MIRParser/MILexer.h +++ b/llvm/lib/CodeGen/MIRParser/MILexer.h @@ -36,6 +36,10 @@ struct MIToken { equal, underscore, + // Keywords + kw_implicit, + kw_implicit_define, + // Identifier tokens Identifier, NamedRegister, @@ -69,6 +73,10 @@ public: return Kind == NamedRegister || Kind == underscore; } + bool isRegisterFlag() const { + return Kind == kw_implicit || Kind == kw_implicit_define; + } + bool is(TokenKind K) const { return Kind == K; } bool isNot(TokenKind K) const { return Kind != K; } |

