[llvm] [AMDGPU] Fix hidden kernarg preload count inconsistency (PR #116759)

Matt Arsenault via llvm-commits llvm-commits at lists.llvm.org
Tue Dec 3 13:56:04 PST 2024


================
@@ -1676,11 +1676,13 @@ class GCNUserSGPRUsageInfo {
 
   bool hasPrivateSegmentSize() const { return PrivateSegmentSize; }
 
+  bool hasLDSKernelId() const { return LDSKernelId; }
+
   unsigned getNumKernargPreloadSGPRs() const { return NumKernargPreloadSGPRs; }
 
   unsigned getNumUsedUserSGPRs() const { return NumUsedUserSGPRs; }
 
-  unsigned getNumFreeUserSGPRs();
+  unsigned getNumFreeKernargPreloadSGPRs();
----------------
arsenm wrote:

Document

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


More information about the llvm-commits mailing list