mirror of
https://github.com/RPCSX/llvm.git
synced 2024-11-30 15:10:33 +00:00
AMDGPU: Use SGPR_64 for argument lowerings
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@288190 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
81e1a9d383
commit
c562d96ea6
@ -817,31 +817,31 @@ SDValue SITargetLowering::LowerFormalArguments(
|
||||
|
||||
if (Info->hasDispatchPtr()) {
|
||||
unsigned DispatchPtrReg = Info->addDispatchPtr(*TRI);
|
||||
MF.addLiveIn(DispatchPtrReg, &AMDGPU::SReg_64RegClass);
|
||||
MF.addLiveIn(DispatchPtrReg, &AMDGPU::SGPR_64RegClass);
|
||||
CCInfo.AllocateReg(DispatchPtrReg);
|
||||
}
|
||||
|
||||
if (Info->hasQueuePtr()) {
|
||||
unsigned QueuePtrReg = Info->addQueuePtr(*TRI);
|
||||
MF.addLiveIn(QueuePtrReg, &AMDGPU::SReg_64RegClass);
|
||||
MF.addLiveIn(QueuePtrReg, &AMDGPU::SGPR_64RegClass);
|
||||
CCInfo.AllocateReg(QueuePtrReg);
|
||||
}
|
||||
|
||||
if (Info->hasKernargSegmentPtr()) {
|
||||
unsigned InputPtrReg = Info->addKernargSegmentPtr(*TRI);
|
||||
MF.addLiveIn(InputPtrReg, &AMDGPU::SReg_64RegClass);
|
||||
MF.addLiveIn(InputPtrReg, &AMDGPU::SGPR_64RegClass);
|
||||
CCInfo.AllocateReg(InputPtrReg);
|
||||
}
|
||||
|
||||
if (Info->hasDispatchID()) {
|
||||
unsigned DispatchIDReg = Info->addDispatchID(*TRI);
|
||||
MF.addLiveIn(DispatchIDReg, &AMDGPU::SReg_64RegClass);
|
||||
MF.addLiveIn(DispatchIDReg, &AMDGPU::SGPR_64RegClass);
|
||||
CCInfo.AllocateReg(DispatchIDReg);
|
||||
}
|
||||
|
||||
if (Info->hasFlatScratchInit()) {
|
||||
unsigned FlatScratchInitReg = Info->addFlatScratchInit(*TRI);
|
||||
MF.addLiveIn(FlatScratchInitReg, &AMDGPU::SReg_64RegClass);
|
||||
MF.addLiveIn(FlatScratchInitReg, &AMDGPU::SGPR_64RegClass);
|
||||
CCInfo.AllocateReg(FlatScratchInitReg);
|
||||
}
|
||||
|
||||
@ -896,8 +896,8 @@ SDValue SITargetLowering::LowerFormalArguments(
|
||||
if (VT == MVT::i64) {
|
||||
// For now assume it is a pointer
|
||||
Reg = TRI->getMatchingSuperReg(Reg, AMDGPU::sub0,
|
||||
&AMDGPU::SReg_64RegClass);
|
||||
Reg = MF.addLiveIn(Reg, &AMDGPU::SReg_64RegClass);
|
||||
&AMDGPU::SGPR_64RegClass);
|
||||
Reg = MF.addLiveIn(Reg, &AMDGPU::SGPR_64RegClass);
|
||||
SDValue Copy = DAG.getCopyFromReg(Chain, DL, Reg, VT);
|
||||
InVals.push_back(Copy);
|
||||
continue;
|
||||
|
Loading…
Reference in New Issue
Block a user