[libc-commits] [libc] [llvm] [libc] Export a pointer to the RPC client directly (PR #117913)
Joseph Huber via libc-commits
libc-commits at lists.llvm.org
Wed Nov 27 12:35:17 PST 2024
================
@@ -29,7 +29,7 @@ static_assert(cpp::is_trivially_copyable<Client>::value &&
"The client is not trivially copyable from the server");
/// The libc client instance used to communicate with the server.
-extern Client client;
+[[gnu::visibility("protected")]] extern Client client asm("__llvm_rpc_client");
----------------
jhuber6 wrote:
Policy? It's standard ELF visibility rules that if you want something to be readable from the GPU runtime it can't have `hidden` visibility.
https://github.com/llvm/llvm-project/pull/117913
More information about the libc-commits
mailing list