summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen/MIRParser/MILexer.h
diff options
context:
space:
mode:
Diffstat (limited to 'llvm/lib/CodeGen/MIRParser/MILexer.h')
-rw-r--r--llvm/lib/CodeGen/MIRParser/MILexer.h9
1 files changed, 8 insertions, 1 deletions
diff --git a/llvm/lib/CodeGen/MIRParser/MILexer.h b/llvm/lib/CodeGen/MIRParser/MILexer.h
index d6a5d1f4ec9..24cbf7d72f3 100644
--- a/llvm/lib/CodeGen/MIRParser/MILexer.h
+++ b/llvm/lib/CodeGen/MIRParser/MILexer.h
@@ -30,8 +30,13 @@ struct MIToken {
Eof,
Error,
+ // Tokens with no info.
+ comma,
+ equal,
+
// Identifier tokens
- Identifier
+ Identifier,
+ NamedRegister
};
private:
@@ -45,6 +50,8 @@ public:
bool isError() const { return Kind == Error; }
+ bool isRegister() const { return Kind == NamedRegister; }
+
bool is(TokenKind K) const { return Kind == K; }
bool isNot(TokenKind K) const { return Kind != K; }
OpenPOWER on IntegriCloud