[llvm] [AMDGPU] Add intrinsic exposing s_alloc_vgpr (PR #163951)

Jannik Silvanus via llvm-commits llvm-commits at lists.llvm.org
Mon Oct 20 01:44:48 PDT 2025


================
@@ -391,6 +391,17 @@ def int_amdgcn_s_wait_loadcnt        : AMDGPUWaitIntrinsic;
 def int_amdgcn_s_wait_samplecnt      : AMDGPUWaitIntrinsic;
 def int_amdgcn_s_wait_storecnt       : AMDGPUWaitIntrinsic;
 
+// Force the VGPR allocation of the current wave to (at least) the given value.
----------------
jasilvanus wrote:

We should guarantee to not allocate above the requested value, except for the rounding part. Maybe instead say:

Request the hardware to allocate exactly the given number of VGPRs, rounded up to match hardware block boundaries.

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


More information about the llvm-commits mailing list