[llvm] [AMDGPU] Add backward compatibility layer for kernarg preloading (PR #119167)

Matt Arsenault via llvm-commits llvm-commits at lists.llvm.org
Thu Dec 12 19:57:56 PST 2024


================
@@ -161,6 +162,8 @@ struct AMDGPUFunctionArgInfo {
 
   // Map the index of preloaded kernel arguments to its descriptor.
   SmallDenseMap<int, KernArgPreloadDescriptor> PreloadKernArgs{};
+  // The first user SGPR allocated for kernarg preloading.
+  Register FirstKernArgPreloadReg = AMDGPU::NoRegister;
----------------
arsenm wrote:

```suggestion
  Register FirstKernArgPreloadReg;
```

This is already the default and we're trying to get rid of the unsigned -> Register conversion 

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


More information about the llvm-commits mailing list