[PATCH] D20168: [CodeGen] Handle structs directly in AMDGPUABIInfo

Vedran Miletić via cfe-commits cfe-commits at lists.llvm.org
Sun May 29 15:04:41 PDT 2016


rivanvx updated this revision to Diff 58920.
rivanvx added a comment.

Updated patch. Single element structs are coerced to its element, and there are tests for structs of different sizes, structs of arrays, structs containing structs. Arrays of structs are disallowed by clang in kernels.
Non-kernel functions are not specifically handled, should they be? How to decide?


http://reviews.llvm.org/D20168

Files:
  lib/CodeGen/TargetInfo.cpp
  test/CodeGenOpenCL/amdgpu-abi-struct-coerce.cl

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D20168.58920.patch
Type: text/x-patch
Size: 3567 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20160529/995e8710/attachment-0001.bin>


More information about the cfe-commits mailing list