[MIRParser] Fix a typo in comment and error message.
authorQuentin Colombet <qcolombet@apple.com>
Thu, 22 Dec 2016 21:56:35 +0000 (21:56 +0000)
committerQuentin Colombet <qcolombet@apple.com>
Thu, 22 Dec 2016 21:56:35 +0000 (21:56 +0000)
We have long switched from size to type.

llvm-svn: 290378

llvm/lib/CodeGen/MIRParser/MIParser.cpp
llvm/test/CodeGen/MIR/X86/unexpected-type-phys.mir [moved from llvm/test/CodeGen/MIR/X86/unexpected-size-non-generic-register-phys.mir with 75% similarity]

index db51370..35dab43 100644 (file)
@@ -1026,9 +1026,9 @@ bool MIParser::parseRegisterOperand(MachineOperand &Dest,
       }
     }
   } else if (consumeIfPresent(MIToken::lparen)) {
-    // Virtual registers may have a size with GlobalISel.
+    // Virtual registers may have a tpe with GlobalISel.
     if (!TargetRegisterInfo::isVirtualRegister(Reg))
-      return error("unexpected size on physical register");
+      return error("unexpected type on physical register");
 
     LLT Ty;
     if (parseLowLevelType(Token.location(), Ty))
@@ -8,6 +8,6 @@ registers:
 body: |
   bb.0.entry:
     liveins: %edi
-    ; CHECK: [[@LINE+1]]:10: unexpected size on physical register
-    %edi(32) = G_ADD i32 %edi, %edi
+    ; CHECK: [[@LINE+1]]:10: unexpected type on physical register
+    %edi(s32) = G_ADD i32 %edi, %edi
 ...