[PATCH] D155986: [clang][AMDGPU]: Don't use byval for struct arguments in function ABI

Changpeng Fang via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Jul 24 14:46:19 PDT 2023


cfang updated this revision to Diff 543703.
cfang added a comment.

1. Move getIndirectAliased under isAggregateTypeForABI(Ty)
2. update LIT addr-space-struct-arg.cl to check corresponding alloca and memcpy to the struct.


CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D155986/new/

https://reviews.llvm.org/D155986

Files:
  clang/lib/CodeGen/CGCall.cpp
  clang/lib/CodeGen/Targets/AMDGPU.cpp
  clang/test/CodeGenCXX/amdgcn-func-arg.cpp
  clang/test/CodeGenOpenCL/addr-space-struct-arg-temp.cl
  clang/test/CodeGenOpenCL/addr-space-struct-arg.cl
  clang/test/CodeGenOpenCL/amdgpu-abi-struct-coerce.cl
  clang/test/CodeGenOpenCL/byval.cl

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D155986.543703.patch
Type: text/x-patch
Size: 34951 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20230724/8beba947/attachment-0001.bin>


More information about the llvm-commits mailing list