[PATCH] D51434: [HIP] Add -fvisibility hidden option to clang

2018-08-30 Thread Yaxun Liu via Phabricator via cfe-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rL341077: [HIP] Add -fvisibility hidden option to clang (authored by yaxunl, committed by ). Herald added a subscriber: llvm-commits. Changed prior to commit: https://reviews.llvm.org/D51434?vs=163196&id=

[PATCH] D51434: [HIP] Add -fvisibility hidden option to clang

2018-08-30 Thread Yaxun Liu via Phabricator via cfe-commits
yaxunl added inline comments. Comment at: lib/Driver/ToolChains/HIP.cpp:256 +CC1Args.append({"-fvisibility", "hidden"}); } arsenm wrote: > arsenm wrote: > > yaxunl wrote: > > > arsenm wrote: > > > > We should probably start subclassing the HIP toolchain fr

[PATCH] D51434: [HIP] Add -fvisibility hidden option to clang

2018-08-30 Thread Matt Arsenault via Phabricator via cfe-commits
arsenm added inline comments. Comment at: lib/Driver/ToolChains/HIP.cpp:256 +CC1Args.append({"-fvisibility", "hidden"}); } arsenm wrote: > yaxunl wrote: > > arsenm wrote: > > > We should probably start subclassing the HIP toolchain from AMDGPU and > > > s

[PATCH] D51434: [HIP] Add -fvisibility hidden option to clang

2018-08-30 Thread Matt Arsenault via Phabricator via cfe-commits
arsenm accepted this revision. arsenm added inline comments. This revision is now accepted and ready to land. Comment at: lib/Driver/ToolChains/HIP.cpp:256 +CC1Args.append({"-fvisibility", "hidden"}); } yaxunl wrote: > arsenm wrote: > > We should probably

[PATCH] D51434: [HIP] Add -fvisibility hidden option to clang

2018-08-30 Thread Yaxun Liu via Phabricator via cfe-commits
yaxunl added inline comments. Comment at: lib/Driver/ToolChains/HIP.cpp:256 +CC1Args.append({"-fvisibility", "hidden"}); } arsenm wrote: > We should probably start subclassing the HIP toolchain from AMDGPU and share > more of this I'd like to defer the re

[PATCH] D51434: [HIP] Add -fvisibility hidden option to clang

2018-08-29 Thread Matt Arsenault via Phabricator via cfe-commits
arsenm added inline comments. Comment at: lib/Driver/ToolChains/HIP.cpp:256 +CC1Args.append({"-fvisibility", "hidden"}); } We should probably start subclassing the HIP toolchain from AMDGPU and share more of this https://reviews.llvm.org/D51434 _

[PATCH] D51434: [HIP] Add -fvisibility hidden option to clang

2018-08-29 Thread Yaxun Liu via Phabricator via cfe-commits
yaxunl updated this revision to Diff 163196. yaxunl added a comment. Revised by Artem's comments. https://reviews.llvm.org/D51434 Files: lib/Driver/ToolChains/HIP.cpp test/Driver/hip-toolchain.hip Index: test/Driver/hip-toolchain.hip ===

[PATCH] D51434: [HIP] Add -fvisibility hidden option to clang

2018-08-29 Thread Artem Belevich via Phabricator via cfe-commits
tra added inline comments. Comment at: lib/Driver/ToolChains/HIP.cpp:255 + options::OPT_fvisibility_ms_compat)) { +CC1Args.push_back("-fvisibility"); +CC1Args.push_back("hidden"); Nit: You could collapse multiple `push_back` calls

[PATCH] D51434: [HIP] Add -fvisibility hidden option to clang

2018-08-29 Thread Yaxun Liu via Phabricator via cfe-commits
yaxunl updated this revision to Diff 163186. yaxunl retitled this revision from "[HIP] Add -amdgpu-internalize-symbols option to opt" to "[HIP] Add -fvisibility hidden option to clang". yaxunl edited the summary of this revision. yaxunl added a comment. Use -fvisibility hidden. https://reviews.