diff options
author | Diana Picus <Diana-Magda.Picus@amd.com> | 2023-05-30 13:29:52 +0200 |
---|---|---|
committer | Diana Picus <Diana-Magda.Picus@amd.com> | 2023-08-21 11:16:17 +0200 |
commit | 26dc2844984204bb91245f6af6b9a685da47a9a5 (patch) | |
tree | 0a111b14c6fbc0715868b8979105322f0adb135a /clang/lib/ExtractAPI/Serialization/SymbolGraphSerializer.cpp | |
parent | 5f2a7fa67e9b6081a1a750ecea1216d53287eaa0 (diff) | |
download | llvm-26dc2844984204bb91245f6af6b9a685da47a9a5.zip llvm-26dc2844984204bb91245f6af6b9a685da47a9a5.tar.gz llvm-26dc2844984204bb91245f6af6b9a685da47a9a5.tar.bz2 |
[AMDGPU] ISel for amdgpu_cs_chain[_preserve] functions
Lower formal arguments and returns for functions with the
`amdgpu_cs_chain` and `amdgpu_cs_chain_preserve` calling conventions:
* Put `inreg` arguments into SGPRs, starting at s0, and other arguments
into VGPRs, starting at v8. No arguments should end up on the stack, if
we don't have enough registers we should error out.
* Lower the return (which is always void) as an S_ENDPGM.
* Set the ScratchRSrc register to s48:51, as described in the docs.
* Set the SP to s32, matching amdgpu_gfx. This might be revisited in a
future patch.
Differential Revision: https://reviews.llvm.org/D153517
Diffstat (limited to 'clang/lib/ExtractAPI/Serialization/SymbolGraphSerializer.cpp')
0 files changed, 0 insertions, 0 deletions