[PATCH] D130096: [Clang][AMDGPU] Emit AMDGPU library control constants in clang
Matt Arsenault via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Tue Jul 19 11:57:38 PDT 2022
arsenm added a comment.
In D130096#3663398 <https://reviews.llvm.org/D130096#3663398>, @jhuber6 wrote:
> In D130096#3663295 <https://reviews.llvm.org/D130096#3663295>, @yaxunl wrote:
>
>> There is no constant propagation for globals with weak linage, right? Otherwise, it won't work. My concern is that there may be optimization passes which do not respect the weak linkage and uses the incorrect default value for OpenCL or HIP. Therefore I am not very confident to enable this for OpenCL or HIP unless these variables have the correct value based on the compilation options.
>
> Instead of `weak_odr` we could probably use add this to compiler used instead if that's an issue.
the libraries get internalized as-is. Why does this need to be weak_odr?
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D130096/new/
https://reviews.llvm.org/D130096
More information about the cfe-commits
mailing list