[PATCH] D115283: [AMDGPU] Set "amdgpu_hostcall" module flag if an AMDGPU function has calls to device lib functions that use hostcalls.

Konstantin Pyzhov via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Wed Dec 8 14:06:17 PST 2021


kpyzhov added a comment.

In D115283#3180836 <https://reviews.llvm.org/D115283#3180836>, @yaxunl wrote:

> If we only need to check whether `__ockl_hostcall_internal` exists in the final module in LLVM codegen to determine whether we need the hostcall metadata, probably we don't even need a function attribute or even module flag.

Right, we used to do exactly that, but then it turned out that it does not work with -fgpu-rdc since IPO may rename the __ockl_hostcall_internal().


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D115283/new/

https://reviews.llvm.org/D115283



More information about the cfe-commits mailing list