[Libomptarget] Change visibility to hidden for device RTL
authorJoseph Huber <jhuber6@vols.utk.edu>
Thu, 20 Jan 2022 18:06:22 +0000 (13:06 -0500)
committerJoseph Huber <jhuber6@vols.utk.edu>
Fri, 21 Jan 2022 02:06:28 +0000 (21:06 -0500)
commit26feef084616a18e9b61acb9c78dfca40f4c6f97
treecb9ad562ca0ab419fd76fb452b9979ee14f1716e
parent0dfe953294ba1c0fc43fb710518b9b5a608b223a
[Libomptarget] Change visibility to hidden for device RTL

This patch changes the visibility for all construct in the new device
RTL to be hidden by default. This is done after the changes introduced
in D117806 changed the visibility from being hidden by default for all
device compilations. This asserts that the visibility for the device
runtime library will be hidden except for the internal environment
variable. This is done to aid optimization and linking of the device
library.

Reviewed By: JonChesterfield

Differential Revision: https://reviews.llvm.org/D117807
openmp/libomptarget/DeviceRTL/CMakeLists.txt
openmp/libomptarget/DeviceRTL/include/Types.h
openmp/libomptarget/DeviceRTL/src/Configuration.cpp
openmp/libomptarget/deviceRTLs/amdgcn/CMakeLists.txt
openmp/libomptarget/deviceRTLs/amdgcn/src/target_impl.h
openmp/libomptarget/deviceRTLs/nvptx/CMakeLists.txt