MIR Serialization: Serialize the null register operands.
[oota-llvm.git] / lib / CodeGen / MIRParser / MILexer.h
index df8b6cb2026ef3bc5b5b8c3e0a9491c0efc8a247..f9cc97cb34e91d23eaaed41f36d6dbab7a903b6b 100644 (file)
@@ -34,6 +34,7 @@ struct MIToken {
     // Tokens with no info.
     comma,
     equal,
+    underscore,
 
     // Identifier tokens
     Identifier,
@@ -58,7 +59,9 @@ public:
 
   bool isError() const { return Kind == Error; }
 
-  bool isRegister() const { return Kind == NamedRegister; }
+  bool isRegister() const {
+    return Kind == NamedRegister || Kind == underscore;
+  }
 
   bool is(TokenKind K) const { return Kind == K; }