[PATCH] D65002: AMDGPU/GlobalISel: Handle most function return types

Matt Arsenault via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Fri Jul 19 09:45:39 PDT 2019


arsenm created this revision.
arsenm added reviewers: tstellar, nhaehnle.
Herald added subscribers: Petar.Avramovic, t-tye, tpr, dstuttard, rovka, yaxunl, wdng, jvesely, kzhuravl.

handleAssignments gives up pretty easily on structs, and i8 values for
some reason. The other case that doesn't work is when an implicit
sret needs to be inserted if the return size exceeds the number of
 return registers.


https://reviews.llvm.org/D65002

Files:
  lib/Target/AMDGPU/AMDGPUCallLowering.cpp
  lib/Target/AMDGPU/AMDGPUCallLowering.h
  test/CodeGen/AMDGPU/GlobalISel/function-returns.ll
  test/CodeGen/AMDGPU/GlobalISel/irtranslator-amdgpu_vs.ll
  test/CodeGen/AMDGPU/GlobalISel/irtranslator-function-args.ll
  test/CodeGen/AMDGPU/GlobalISel/ret.ll
  test/CodeGen/AMDGPU/ret.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D65002.210858.patch
Type: text/x-patch
Size: 178265 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20190719/8fcd0789/attachment-0001.bin>


More information about the llvm-commits mailing list