llvm.org GIT mirror llvm / 1a4f1d7
[GlobalISel] More fix for the size vs. type typo. NFC. I missed those in my previous commit (r290378). git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@290387 91177308-0d34-0410-b5e6-96231b3b80d8 Quentin Colombet 3 years ago
4 changed file(s) with 6 addition(s) and 6 deletion(s). Raw diff Collapse all Expand all
10411041
10421042 MRI.setType(Reg, Ty);
10431043 } else if (TargetRegisterInfo::isVirtualRegister(Reg)) {
1044 // Generic virtual registers must have a size.
1045 // If we end up here this means the size hasn't been specified and
1044 // Generic virtual registers must have a type.
1045 // If we end up here this means the type hasn't been specified and
10461046 // this is bad!
10471047 if (RegInfo->Kind == VRegInfo::GENERIC ||
10481048 RegInfo->Kind == VRegInfo::REGBANK)
1049 return error("generic virtual registers must have a size");
1049 return error("generic virtual registers must have a type");
10501050 }
10511051 Dest = MachineOperand::CreateReg(
10521052 Reg, Flags & RegState::Define, Flags & RegState::Implicit,
10221022 return;
10231023 }
10241024
1025 // The gvreg must have a size and it must not have a SubIdx.
1025 // The gvreg must have a type and it must not have a SubIdx.
10261026 LLT Ty = MRI->getType(Reg);
10271027 if (!Ty.isValid()) {
10281028 report("Generic virtual register must have a valid type", MO,
1414 body: |
1515 bb.0:
1616 liveins: %w0
17 ; ERR: generic virtual registers must have a size
17 ; ERR: generic virtual registers must have a type
1818 ; ERR-NEXT: %0
1919 ; ERR: Unable to initialize machine function
2020 %0 = G_ADD i32 %w0, %w0
1515 body: |
1616 bb.0:
1717 liveins: %w0
18 ; ERR: generic virtual registers must have a size
18 ; ERR: generic virtual registers must have a type
1919 ; ERR-NEXT: %0
2020 ; ERR: Unable to initialize machine function
2121 %0 = G_ADD i32 %w0, %w0