diff options
author | Matt Arsenault <Matthew.Arsenault@amd.com> | 2017-08-09 21:44:58 +0000 |
---|---|---|
committer | Matt Arsenault <Matthew.Arsenault@amd.com> | 2017-08-09 21:44:58 +0000 |
commit | 3fe7395fbce65a0b0fa54cb3bed8f5a332c3166c (patch) | |
tree | 85f865b330c02616e91f210af9bf804690a3684f /llvm/lib | |
parent | ae704a54729d0a6e2c72b7fd7e364c33a7989f57 (diff) | |
download | bcm5719-llvm-3fe7395fbce65a0b0fa54cb3bed8f5a332c3166c.tar.gz bcm5719-llvm-3fe7395fbce65a0b0fa54cb3bed8f5a332c3166c.zip |
AMDGPU: Use direct struct returns and arguments
This is an improvement over always using byval for
structs.
This will use registers until ~16 are used, and then
switch back to byval. This needs more work, since I'm
not sure it ever really makes sense to use byval. If
the register limit is exceeded, the arguments still
end up passed on the stack, but with a different ABI.
It also may make sense to base this on number of
registers used for non-struct arguments, rather than
just arguments that appear first in the argument list.
llvm-svn: 310527
Diffstat (limited to 'llvm/lib')
0 files changed, 0 insertions, 0 deletions