Home
last modified time | relevance | path

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

/openbsd/gnu/llvm/llvm/lib/Target/AMDGPU/
H A DAMDGPUSubtarget.cpp701 unsigned MaxNumSGPRs = getMaxNumSGPRs(WavesPerEU.first, false); in getBaseMaxNumSGPRs() local
708 F.getFnAttributeAsParsedInteger("amdgpu-num-sgpr", MaxNumSGPRs); in getBaseMaxNumSGPRs()
734 MaxNumSGPRs = Requested; in getBaseMaxNumSGPRs()
738 MaxNumSGPRs = AMDGPU::IsaInfo::FIXED_NUM_SGPRS_FOR_INIT_BUG; in getBaseMaxNumSGPRs()
740 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()
/openbsd/gnu/llvm/llvm/lib/Target/AMDGPU/Utils/
H A DAMDGPUBaseInfo.cpp976 unsigned MaxNumSGPRs = getTotalNumSGPRs(STI) / WavesPerEU; in getMaxNumSGPRs() local
978 MaxNumSGPRs -= std::min(MaxNumSGPRs, (unsigned)TRAP_NUM_SGPRS); in getMaxNumSGPRs()
979 MaxNumSGPRs = alignDown(MaxNumSGPRs, getSGPRAllocGranule(STI)); in getMaxNumSGPRs()
980 return std::min(MaxNumSGPRs, AddressableNumSGPRs); in getMaxNumSGPRs()