[PATCH] D121951: [AMDGPU] Only warn when mixing printf and hostcall

Sameer Sahasrabuddhe via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Fri Mar 18 21:34:40 PDT 2022


sameerds added a comment.

In D121951#3392470 <https://reviews.llvm.org/D121951#3392470>, @scott.linder wrote:

> In D121951#3391472 <https://reviews.llvm.org/D121951#3391472>, @sameerds wrote:
>
>> The check for "__ockl_hostcall_internal" is not longer relevant with the new hostcall attribute. Can we simply remove this check? What is the situation where the warning is still useful?
>
> I wasn't aware of the new attribute, I'm happy to just delete it.

Yeah, it happened in D119216 <https://reviews.llvm.org/D119216>.

But I am still curious about the check itself. Do we need to worry about a situation where it is important to check whether OpenCL printf (non-hostcall) and some other hostcall service are active in the same application?


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D121951



More information about the cfe-commits mailing list