[Openmp-commits] [PATCH] D129694: [OPENMP] Make declare target static global externally visible

Sunil Shrestha via Phabricator via Openmp-commits openmp-commits at lists.llvm.org
Thu Aug 11 21:21:57 PDT 2022


ssquare08 added a comment.

In D129694#3717208 <https://reviews.llvm.org/D129694#3717208>, @jhuber6 wrote:

> In D129694#3717166 <https://reviews.llvm.org/D129694#3717166>, @ssquare08 wrote:
>
>> The OpenMP kernel names you mentioned are also generated separately by the host and the device. Would you be okay generating declare target mangle names separately by host and device using the same utility function `getTargetEntryUniqueInfo`?
>>
>> If you still think it should only be generated only once by the host, what is a good way of doing this since we can't modify the name in VarDecl?
>
> I thought we already emitted the mangled name at least on the device side. I was suggesting that we just use the same name on the host so we don't need to worry about a host-side and device-side name difference and we can get rid of the extra argument to all the offload entry functions.

Yes, that is correct. My question is, is it okay to mangle the host and the device side independently using `getTargetEntryUniqueInfo`? The reason I am asking is because you had expressed some concerns regarding mangling them separately. Or, maybe there is a way to mangle the original name before the host and device compilation split?


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D129694



More information about the Openmp-commits mailing list