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

Sameer Sahasrabuddhe via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Mon Jan 31 20:20:35 PST 2022


sameerds added inline comments.


================
Comment at: clang/lib/CodeGen/TargetInfo.cpp:9434
+  if (Callee &&
+      (Callee->getName() == "__ockl_call_host_function" ||
+       Callee->getName() == "__ockl_fprintf_stderr_begin")) {
----------------
Just to confirm what others have probably disovered, the only function whose presence should be checked is ``__ockl_hostcall_internal``. All others are wrappers that are free to disappear during optimization.


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