[llvm] r365780 - GlobalISel: Use Register
Matt Arsenault via llvm-commits
llvm-commits at lists.llvm.org
Thu Jul 11 07:18:19 PDT 2019
Author: arsenm
Date: Thu Jul 11 07:18:19 2019
New Revision: 365780
URL: http://llvm.org/viewvc/llvm-project?rev=365780&view=rev
Log:
GlobalISel: Use Register
Modified:
llvm/trunk/lib/CodeGen/GlobalISel/CallLowering.cpp
Modified: llvm/trunk/lib/CodeGen/GlobalISel/CallLowering.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/CodeGen/GlobalISel/CallLowering.cpp?rev=365780&r1=365779&r2=365780&view=diff
==============================================================================
--- llvm/trunk/lib/CodeGen/GlobalISel/CallLowering.cpp (original)
+++ llvm/trunk/lib/CodeGen/GlobalISel/CallLowering.cpp Thu Jul 11 07:18:19 2019
@@ -197,7 +197,7 @@ bool CallLowering::handleAssignments(Mac
"Can't handle multiple virtual regs yet");
// FIXME: Pack registers if we have more than one.
- unsigned ArgReg = Args[i].Regs[0];
+ Register ArgReg = Args[i].Regs[0];
if (VA.isRegLoc()) {
MVT OrigVT = MVT::getVT(Args[i].Ty);
@@ -206,7 +206,7 @@ bool CallLowering::handleAssignments(Mac
if (VAVT.getSizeInBits() < OrigVT.getSizeInBits())
return false; // Can't handle this type of arg yet.
const LLT VATy(VAVT);
- unsigned NewReg =
+ Register NewReg =
MIRBuilder.getMRI()->createGenericVirtualRegister(VATy);
Handler.assignValueToReg(NewReg, VA.getLocReg(), VA);
// If it's a vector type, we either need to truncate the elements
@@ -234,7 +234,7 @@ bool CallLowering::handleAssignments(Mac
: alignTo(VT.getSizeInBits(), 8) / 8;
unsigned Offset = VA.getLocMemOffset();
MachinePointerInfo MPO;
- unsigned StackAddr = Handler.getStackAddress(Size, Offset, MPO);
+ Register StackAddr = Handler.getStackAddress(Size, Offset, MPO);
Handler.assignValueToAddress(ArgReg, StackAddr, Size, MPO, VA);
} else {
// FIXME: Support byvals and other weirdness
@@ -261,12 +261,12 @@ Register CallLowering::ValueHandler::ext
return MIB->getOperand(0).getReg();
}
case CCValAssign::SExt: {
- unsigned NewReg = MRI.createGenericVirtualRegister(LocTy);
+ Register NewReg = MRI.createGenericVirtualRegister(LocTy);
MIRBuilder.buildSExt(NewReg, ValReg);
return NewReg;
}
case CCValAssign::ZExt: {
- unsigned NewReg = MRI.createGenericVirtualRegister(LocTy);
+ Register NewReg = MRI.createGenericVirtualRegister(LocTy);
MIRBuilder.buildZExt(NewReg, ValReg);
return NewReg;
}
More information about the llvm-commits
mailing list