Home
last modified time | relevance | path

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

/llvm-project-15.0.7/llvm/lib/Target/AMDGPU/
H A DAMDGPUSubtarget.cpp681 unsigned MaxNumSGPRs = getMaxNumSGPRs(WavesPerEU.first, false); in getBaseMaxNumSGPRs() local
688 F, "amdgpu-num-sgpr", MaxNumSGPRs); in getBaseMaxNumSGPRs()
714 MaxNumSGPRs = Requested; in getBaseMaxNumSGPRs()
718 MaxNumSGPRs = AMDGPU::IsaInfo::FIXED_NUM_SGPRS_FOR_INIT_BUG; in getBaseMaxNumSGPRs()
720 return std::min(MaxNumSGPRs - ReservedNumSGPRs, MaxAddressableNumSGPRs); in getBaseMaxNumSGPRs()
H A DSIRegisterInfo.cpp605 unsigned MaxNumSGPRs = ST.getMaxNumSGPRs(MF); in getReservedRegs() local
607 for (unsigned i = MaxNumSGPRs; i < TotalNumSGPRs; ++i) { in getReservedRegs()
/llvm-project-15.0.7/llvm/lib/Target/AMDGPU/Utils/
H A DAMDGPUBaseInfo.cpp783 unsigned MaxNumSGPRs = getTotalNumSGPRs(STI) / WavesPerEU; in getMaxNumSGPRs() local
785 MaxNumSGPRs -= std::min(MaxNumSGPRs, (unsigned)TRAP_NUM_SGPRS); in getMaxNumSGPRs()
786 MaxNumSGPRs = alignDown(MaxNumSGPRs, getSGPRAllocGranule(STI)); in getMaxNumSGPRs()
787 return std::min(MaxNumSGPRs, AddressableNumSGPRs); in getMaxNumSGPRs()