[PATCH] D61194: [HIP] Fix visibility of `__constant__` variables.

2019-04-26 Thread Michael Liao via Phabricator via cfe-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rC359344: [HIP] Fix visibility of `__constant__` variables. (authored by hliao, committed by ). Changed prior to commit: https://reviews.llvm.org/D61194?vs=196857=196902#toc Repository: rC Clang

[PATCH] D61194: [HIP] Fix visibility of `__constant__` variables.

2019-04-26 Thread Yaxun Liu via Phabricator via cfe-commits
yaxunl accepted this revision. yaxunl added a comment. This revision is now accepted and ready to land. LGTM. Thanks! Repository: rG LLVM Github Monorepo CHANGES SINCE LAST ACTION https://reviews.llvm.org/D61194/new/ https://reviews.llvm.org/D61194

[PATCH] D61194: [HIP] Fix visibility of `__constant__` variables.

2019-04-26 Thread Michael Liao via Phabricator via cfe-commits
hliao marked an inline comment as done. hliao added inline comments. Comment at: clang/test/CodeGenCUDA/amdgpu-visibility.cu:1 +// RUN: %clang_cc1 -triple amdgcn-amd-amdhsa -fcuda-is-device -fapply-global-visibility-to-externs -fvisibility default -emit-llvm -o - %s |

[PATCH] D61194: [HIP] Fix visibility of `__constant__` variables.

2019-04-26 Thread Michael Liao via Phabricator via cfe-commits
hliao marked an inline comment as done. hliao added inline comments. Comment at: clang/lib/CodeGen/TargetInfo.cpp:7851 + (isa(D) && + (D->hasAttr() || D->hasAttr())); } yaxunl wrote: > is format right? yeah, it's the format after clang-format.

[PATCH] D61194: [HIP] Fix visibility of `__constant__` variables.

2019-04-26 Thread Yaxun Liu via Phabricator via cfe-commits
yaxunl added inline comments. Comment at: clang/lib/CodeGen/TargetInfo.cpp:7851 + (isa(D) && + (D->hasAttr() || D->hasAttr())); } is format right? Comment at: clang/test/CodeGenCUDA/amdgpu-visibility.cu:1 +// RUN: %clang_cc1

[PATCH] D61194: [HIP] Fix visibility of `__constant__` variables.

2019-04-26 Thread Michael Liao via Phabricator via cfe-commits
hliao created this revision. hliao added a reviewer: yaxunl. Herald added subscribers: cfe-commits, nhaehnle, jvesely. Herald added a project: clang. - `__constant__` variables should not be `hidden` as the linker may turn them into `LOCAL` symbols. Repository: rG LLVM Github Monorepo