Skip to content

Commit 71eb8c0

Browse files
committed
[AMDGPU] Update amdgpu_cs_chain_preserve docs. NFC
We no longer allow calls to functions with the `amdgpu_gfx` calling convention from functions with the `amdgpu_cs_chain_preserve` calling convention. See D153517. Also mention that we can't have a chain call from amdgpu_cs_chain_preserve using more VGPRs than it has received. Differential Revision: https://reviews.llvm.org/D156408
1 parent 547bce3 commit 71eb8c0

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

llvm/docs/AMDGPUUsage.rst

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1196,6 +1196,8 @@ The AMDGPU backend supports the following calling conventions:
11961196
uniform control flow.
11971197

11981198
``amdgpu_cs_chain_preserve`` Same as ``amdgpu_cs_chain``, but active lanes for VGPRs starting at v8 are preserved.
1199+
Calls to ``amdgpu_gfx`` functions are not allowed, and any calls to ``llvm.amdgcn.cs.chain``
1200+
must not pass more VGPR arguments than the caller's VGPR function parameters.
11991201

12001202
``amdgpu_es`` Used for AMDPAL shader stage before geometry shader if geometry is in
12011203
use. So either the domain (= tessellation evaluation) shader if

0 commit comments

Comments
 (0)