Skip to content

[AMDGPU] Clarify amdgpu.cs.chain + init whole wave. NFC #115452

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Nov 14, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion llvm/docs/AMDGPUUsage.rst
Original file line number Diff line number Diff line change
Expand Up @@ -1701,7 +1701,10 @@ The AMDGPU backend supports the following calling conventions:

Values in scalar registers as well as v0-v7 are not preserved. Values in
VGPRs starting at v8 are not preserved for the active lanes, but must be
saved by the callee for inactive lanes when using WWM.
saved by the callee for inactive lanes when using WWM (a notable exception is
when the llvm.amdgcn.init.whole.wave intrinsic is used in the function - in this
case the backend assumes that there are no inactive lanes upon entry; any inactive
lanes that need to be preserved must be explicitly present in the IR).

Wave scratch is "empty" at function boundaries. There is no stack pointer input
or output value, but functions are free to use scratch starting from an initial
Expand Down
Loading