]> granicus.if.org Git - llvm/commitdiff
[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.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@290378 91177308-0d34-0410-b5e6-96231b3b80d8

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

index db5137033323daf9b8fa492091452261f5842611..35dab438738ed46bd1c3c873b279172508f0d87f 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))
similarity index 75%
rename from test/CodeGen/MIR/X86/unexpected-size-non-generic-register-phys.mir
rename to test/CodeGen/MIR/X86/unexpected-type-phys.mir
index 9e156e72064a4f917b446164c08f38dd80885fdd..df0f849bc182a57deceea269d830e7aee3b8f018 100644 (file)
@@ -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
 ...