AMDGPU/GlobalISel: Improve handling of illegal return types
authorMatt Arsenault <Matthew.Arsenault@amd.com>
Sat, 22 Feb 2020 15:00:38 +0000 (10:00 -0500)
committerMatt Arsenault <Matthew.Arsenault@amd.com>
Mon, 9 Mar 2020 20:11:30 +0000 (13:11 -0700)
commiteb41627799b30667fe7fe06d485d5501c8923f50
tree49acdaee5a4b0e294a403c91e15807c27c7f24d2
parent3d9a0445cce368b55dc3a573bc91fe902bbb977f
AMDGPU/GlobalISel: Improve handling of illegal return types

Most importantly, this fixes ret i8. Also make sure to handle
signext/zeroext for odd types > i32. Some of the corresponding
argument passing fixes also need to be handled.
llvm/lib/Target/AMDGPU/AMDGPUCallLowering.cpp
llvm/lib/Target/AMDGPU/AMDGPUCallLowering.h
llvm/test/CodeGen/AMDGPU/GlobalISel/function-returns.ll