HomePhabricator

[AMDGPU] Fix large return values with amdgpu_gfx

Authored by sebastian-ne on Apr 1 2021, 1:20 AM.

Description

[AMDGPU] Fix large return values with amdgpu_gfx

Returning in memory is not supported, so fall back to sret.
Also, extend i1 and i16 to i32. Otherwise, they would be passed through
memory.

Differential Revision: https://reviews.llvm.org/D100543

Details