[llvm] [RFC][AMDGPU][Doc] Add documentation about ABI occupancy (PR #224103)

Siu Chi Chan via llvm-commits llvm-commits at lists.llvm.org
Sat Sep 26 09:03:43 PDT 2026


================
@@ -21963,6 +22006,7 @@ The following sub-directives may appear inside the block:
      ``.amdgpu_num_vgpr`` *value*           Architectural VGPRs used (u32)
      ``.amdgpu_num_agpr`` *value*           Accumulator VGPRs used (u32)
      ``.amdgpu_private_segment_size`` *n*   Private segment size in bytes (u32)
+     ``.amdgpu_occupancy`` *value*          Occupancy used to compile the function (u32)
----------------
scchan wrote:

Can we call it something like resource-bounded occupancy?  It might be more intuitive to think about it like: we need to guarantee this amount of resources and therefore, we have to enforce this occupancy...

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


More information about the llvm-commits mailing list