summaryrefslogtreecommitdiffstats
path: root/llvm
diff options
context:
space:
mode:
authorQuentin Colombet <qcolombet@apple.com>2016-12-22 21:56:35 +0000
committerQuentin Colombet <qcolombet@apple.com>2016-12-22 21:56:35 +0000
commite08cc599b8af381e485d5514406e622d576e4f4c (patch)
tree31c006670316a4df37dc7d212e109ff9269c7312 /llvm
parentf38015e5fef7298f7f38ae5440442b16c33e8e92 (diff)
downloadbcm5719-llvm-e08cc599b8af381e485d5514406e622d576e4f4c.tar.gz
bcm5719-llvm-e08cc599b8af381e485d5514406e622d576e4f4c.zip
[MIRParser] Fix a typo in comment and error message.
We have long switched from size to type. llvm-svn: 290378
Diffstat (limited to 'llvm')
-rw-r--r--llvm/lib/CodeGen/MIRParser/MIParser.cpp4
-rw-r--r--llvm/test/CodeGen/MIR/X86/unexpected-type-phys.mir (renamed from llvm/test/CodeGen/MIR/X86/unexpected-size-non-generic-register-phys.mir)4
2 files changed, 4 insertions, 4 deletions
diff --git a/llvm/lib/CodeGen/MIRParser/MIParser.cpp b/llvm/lib/CodeGen/MIRParser/MIParser.cpp
index db513703332..35dab438738 100644
--- a/llvm/lib/CodeGen/MIRParser/MIParser.cpp
+++ b/llvm/lib/CodeGen/MIRParser/MIParser.cpp
@@ -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))
diff --git a/llvm/test/CodeGen/MIR/X86/unexpected-size-non-generic-register-phys.mir b/llvm/test/CodeGen/MIR/X86/unexpected-type-phys.mir
index 9e156e72064..df0f849bc18 100644
--- a/llvm/test/CodeGen/MIR/X86/unexpected-size-non-generic-register-phys.mir
+++ b/llvm/test/CodeGen/MIR/X86/unexpected-type-phys.mir
@@ -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
...
OpenPOWER on IntegriCloud