[llvm] [AMDGPU] Rework architected SGPRs implementation (PR #79001)
Matt Arsenault via llvm-commits
llvm-commits at lists.llvm.org
Mon Jan 22 09:06:10 PST 2024
================
@@ -169,6 +169,15 @@ SIMachineFunctionInfo::SIMachineFunctionInfo(const Function &F,
VGPRForAGPRCopy =
AMDGPU::VGPR_32RegClass.getRegister(ST.getMaxNumVGPRs(F) - 1);
}
+
+ if (STI->hasArchitectedSGPRs()) {
+ ArgInfo.ArchitectedWorkGroupIDX =
----------------
arsenm wrote:
I think it's OK for the lowering to directly consume the hardcoded register numbers
https://github.com/llvm/llvm-project/pull/79001
More information about the llvm-commits
mailing list