Skip to content
Unverified Commit 54470176 authored by Jun Wang's avatar Jun Wang Committed by GitHub
Browse files

[AMDGPU] Add inreg support for SGPR arguments (#67182)



Function parameters marked with inreg are supposed to be allocated to
SGPRs. However, for compute functions, this is ignored and function
parameters are allocated to VGPRs. This fix modifies CC_AMDGPU_Func in
AMDGPUCallingConv.td to use SGPRs if input arg is marked inreg.
---------

Co-authored-by: default avatarJun Wang <jun.wang7@amd.com>
parent c99951d4
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment