Home
last modified time | relevance | path

Searched refs:MaxNumSGPRs (Results 1 – 4 of 4) sorted by relevance

/freebsd-14.2/contrib/llvm-project/llvm/lib/Target/AMDGPU/
H A DAMDGPUSubtarget.cpp733 unsigned MaxNumSGPRs = getMaxNumSGPRs(WavesPerEU.first, false); in getBaseMaxNumSGPRs() local
740 F.getFnAttributeAsParsedInteger("amdgpu-num-sgpr", MaxNumSGPRs); in getBaseMaxNumSGPRs()
766 MaxNumSGPRs = Requested; in getBaseMaxNumSGPRs()
770 MaxNumSGPRs = AMDGPU::IsaInfo::FIXED_NUM_SGPRS_FOR_INIT_BUG; in getBaseMaxNumSGPRs()
772 return std::min(MaxNumSGPRs - ReservedNumSGPRs, MaxAddressableNumSGPRs); in getBaseMaxNumSGPRs()
H A DSIRegisterInfo.cpp623 unsigned MaxNumSGPRs = ST.getMaxNumSGPRs(MF); in getReservedRegs() local
625 for (unsigned i = MaxNumSGPRs; i < TotalNumSGPRs; ++i) { in getReservedRegs()
H A DSIISelLowering.cpp15349 unsigned MaxNumSGPRs = ST.getMaxNumSGPRs(MF); in finalizeLowering() local
15351 ? AMDGPU::SGPR_32RegClass.getRegister(MaxNumSGPRs - 1) in finalizeLowering()
/freebsd-14.2/contrib/llvm-project/llvm/lib/Target/AMDGPU/Utils/
H A DAMDGPUBaseInfo.cpp992 unsigned MaxNumSGPRs = getTotalNumSGPRs(STI) / WavesPerEU; in getMaxNumSGPRs() local
994 MaxNumSGPRs -= std::min(MaxNumSGPRs, (unsigned)TRAP_NUM_SGPRS); in getMaxNumSGPRs()
995 MaxNumSGPRs = alignDown(MaxNumSGPRs, getSGPRAllocGranule(STI)); in getMaxNumSGPRs()
996 return std::min(MaxNumSGPRs, AddressableNumSGPRs); in getMaxNumSGPRs()