llvm.org GIT mirror llvm / 6ac98f4
[MIRParser] Fix a typo in comment and error message. 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 Quentin Colombet 3 years ago
3 changed file(s) with 15 addition(s) and 15 deletion(s). Raw diff Collapse all Expand all
10251025 }
10261026 }
10271027 } else if (consumeIfPresent(MIToken::lparen)) {
1028 // Virtual registers may have a size with GlobalISel.
1028 // Virtual registers may have a tpe with GlobalISel.
10291029 if (!TargetRegisterInfo::isVirtualRegister(Reg))
1030 return error("unexpected size on physical register");
1030 return error("unexpected type on physical register");
10311031
10321032 LLT Ty;
10331033 if (parseLowLevelType(Token.location(), Ty))
+0
-13
test/CodeGen/MIR/X86/unexpected-size-non-generic-register-phys.mir less more
None # RUN: not llc -march=x86-64 -run-pass none -o /dev/null %s 2>&1 | FileCheck %s
1 # This test ensures that an error is reported when a register operand is sized
2 # but isn't generic, like a physical register.
3
4 ---
5 name: test_size_physreg
6 registers:
7 body: |
8 bb.0.entry:
9 liveins: %edi
10 ; CHECK: [[@LINE+1]]:10: unexpected size on physical register
11 %edi(32) = G_ADD i32 %edi, %edi
12 ...
0 # RUN: not llc -march=x86-64 -run-pass none -o /dev/null %s 2>&1 | FileCheck %s
1 # This test ensures that an error is reported when a register operand is sized
2 # but isn't generic, like a physical register.
3
4 ---
5 name: test_size_physreg
6 registers:
7 body: |
8 bb.0.entry:
9 liveins: %edi
10 ; CHECK: [[@LINE+1]]:10: unexpected type on physical register
11 %edi(s32) = G_ADD i32 %edi, %edi
12 ...