[llvm] [AMDGPU] Rework architected SGPRs implementation (PR #79001)

Jay Foad via llvm-commits llvm-commits at lists.llvm.org
Mon Jan 22 09:10:05 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 =
----------------
jayfoad wrote:

You mean not go via these `ArgDescriptor`s? I'm only using them because they handle the shifting and masking.

https://github.com/llvm/llvm-project/pull/79001


More information about the llvm-commits mailing list