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

Yaxun Liu via llvm-commits llvm-commits at lists.llvm.org
Sat Oct 3 08:05:32 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)
----------------
yxsamliu wrote:

I’m fine with “ABI occupancy” as the name, as long as the document clearly says it is a floor, not the occupancy the function necessarily achieves. If `.amdgpu_occupancy` stays in this PR, its description should say the same.

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


More information about the llvm-commits mailing list