Home
last modified time | relevance | path

Searched refs:ScratchWaveOffsetReg (Results 1 – 10 of 10) sorted by relevance

/external/llvm/lib/Target/AMDGPU/
DSIFrameLowering.cpp72 unsigned ScratchWaveOffsetReg = MFI->getScratchWaveOffsetReg(); in emitPrologue() local
73 assert(ScratchWaveOffsetReg != AMDGPU::NoRegister); in emitPrologue()
116 .addReg(ScratchWaveOffsetReg); in emitPrologue()
128 assert(ScratchWaveOffsetReg == PreloadedScratchWaveOffsetReg && in emitPrologue()
174 if (ScratchWaveOffsetReg == TRI->reservedPrivateSegmentWaveByteOffsetReg(MF)) { in emitPrologue()
199 MRI.replaceRegWith(ScratchWaveOffsetReg, Reg); in emitPrologue()
200 ScratchWaveOffsetReg = Reg; in emitPrologue()
201 MFI->setScratchWaveOffsetReg(ScratchWaveOffsetReg); in emitPrologue()
209 assert(!TRI->isSubRegister(ScratchRsrcReg, ScratchWaveOffsetReg)); in emitPrologue()
214 if (PreloadedScratchWaveOffsetReg != ScratchWaveOffsetReg) { in emitPrologue()
[all …]
DSIMachineFunctionInfo.h38 unsigned ScratchWaveOffsetReg; variable
275 return ScratchWaveOffsetReg; in getScratchWaveOffsetReg()
280 ScratchWaveOffsetReg = Reg; in setScratchWaveOffsetReg()
DSIRegisterInfo.cpp182 unsigned ScratchWaveOffsetReg = MFI->getScratchWaveOffsetReg(); in getReservedRegs() local
183 if (ScratchWaveOffsetReg != AMDGPU::NoRegister) { in getReservedRegs()
185 reserveRegisterTuples(Reserved, ScratchWaveOffsetReg); in getReservedRegs()
194 assert(!isSubRegister(ScratchRSrcReg, ScratchWaveOffsetReg)); in getReservedRegs()
DSIMachineFunctionInfo.cpp36 ScratchWaveOffsetReg(AMDGPU::NoRegister), in SIMachineFunctionInfo()
DSIISelLowering.cpp903 unsigned ScratchWaveOffsetReg = TRI->getPreloadedValue( in LowerFormalArguments() local
905 Info->setScratchWaveOffsetReg(ScratchWaveOffsetReg); in LowerFormalArguments()
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Target/AMDGPU/
DSIFrameLowering.cpp70 unsigned ScratchWaveOffsetReg = MFI->getScratchWaveOffsetReg(); in emitFlatScratchInit() local
76 .addReg(ScratchWaveOffsetReg); in emitFlatScratchInit()
92 .addReg(ScratchWaveOffsetReg); in emitFlatScratchInit()
158 unsigned ScratchWaveOffsetReg = MFI->getScratchWaveOffsetReg(); in getReservedPrivateSegmentWaveByteOffsetReg() local
161 if (ScratchWaveOffsetReg == AMDGPU::NoRegister || in getReservedPrivateSegmentWaveByteOffsetReg()
162 !MRI.isPhysRegUsed(ScratchWaveOffsetReg)) { in getReservedPrivateSegmentWaveByteOffsetReg()
169 return std::make_pair(ScratchWaveOffsetReg, SPReg); in getReservedPrivateSegmentWaveByteOffsetReg()
175 return std::make_pair(ScratchWaveOffsetReg, SPReg); in getReservedPrivateSegmentWaveByteOffsetReg()
196 return std::make_pair(ScratchWaveOffsetReg, SPReg); in getReservedPrivateSegmentWaveByteOffsetReg()
199 ScratchWaveOffsetReg != TRI->reservedPrivateSegmentWaveByteOffsetReg(MF); in getReservedPrivateSegmentWaveByteOffsetReg()
[all …]
DSIMachineFunctionInfo.h90 unsigned ScratchWaveOffsetReg = AMDGPU::SCRATCH_WAVE_OFFSET_REG; variable
425 return ScratchWaveOffsetReg; in getScratchWaveOffsetReg()
447 ScratchWaveOffsetReg = Reg; in setScratchWaveOffsetReg()
449 FrameOffsetReg = ScratchWaveOffsetReg; in setScratchWaveOffsetReg()
DSIMachineFunctionInfo.cpp72 ScratchWaveOffsetReg = AMDGPU::SGPR4; in SIMachineFunctionInfo()
79 ArgDescriptor::createRegister(ScratchWaveOffsetReg); in SIMachineFunctionInfo()
DSIRegisterInfo.cpp194 unsigned ScratchWaveOffsetReg = MFI->getScratchWaveOffsetReg(); in getReservedRegs() local
195 if (ScratchWaveOffsetReg != AMDGPU::NoRegister) { in getReservedRegs()
197 reserveRegisterTuples(Reserved, ScratchWaveOffsetReg); in getReservedRegs()
206 assert(!isSubRegister(ScratchRSrcReg, ScratchWaveOffsetReg)); in getReservedRegs()
DSIISelLowering.cpp1695 unsigned ScratchWaveOffsetReg = Info.getPreloadedReg( in reservePrivateMemoryRegs() local
1697 Info.setScratchWaveOffsetReg(ScratchWaveOffsetReg); in reservePrivateMemoryRegs()
2520 SDValue ScratchWaveOffsetReg in LowerCall() local
2522 RegsToPass.emplace_back(AMDGPU::SGPR4, ScratchWaveOffsetReg); in LowerCall()