HomePhabricator

[AMDGPU] Set implicit arg attributes for indirect calls

Authored by madhur13490 on Mar 25 2021, 12:25 AM.

Description

[AMDGPU] Set implicit arg attributes for indirect calls

This patch adds attributes corresponding to
implicits to functions/kernels if

  1. it has an indirect call OR
  2. it's address is taken.

Once such attributes are set, rest of the codegen would work
out-of-box for indirect calls. This patch eliminates
the potential overhead -fixed-abi imposes even though indirect functions
calls are not used.

Reviewed By: arsenm

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

Details

Committed
madhur13490Apr 13 2021, 6:15 AM
Reviewer
arsenm
Differential Revision
D99347: [AMDGPU] Set implicit arg attributes for indirect calls
Parents
rG0f42675c86fe: [gn build] Port be54341cd2ff
Branches
Unknown
Tags
Unknown