[llvm] [AMDGPU] Introduce ABI occupancy for object linking (PR #199475)
Shilei Tian via llvm-commits
llvm-commits at lists.llvm.org
Sat May 30 08:08:07 PDT 2026
================
@@ -2583,6 +2585,48 @@ unit's worst case (i.e, maxima) ``num_vgpr``, ``num_agpr``, and
symbolic expressions. These three symbols are ``amdgcn.max_num_vgpr``,
``amdgcn.max_num_agpr``, and ``amdgcn.max_num_sgpr``.
+.. _amdgpu-abi-occupancy:
+
+ABI Occupancy (Object Linking)
----------------
shiltian wrote:
Clang emits both of them but from IR's perspective, `reqd_work_group_size` doesn't really participate occupancy related control. If the IR is emitted by Clang, then they are directly related. I'm not sure what the semantics are when only `reqd_work_group_size` exists.
Do we want to enforce it?
https://github.com/llvm/llvm-project/pull/199475
More information about the llvm-commits
mailing list