[libc][rpc] Allocate a single block of shared memory instead of three
authorJon Chesterfield <jonathanchesterfield@gmail.com>
Thu, 11 May 2023 02:04:55 +0000 (03:04 +0100)
committerJon Chesterfield <jonathanchesterfield@gmail.com>
Thu, 11 May 2023 02:04:56 +0000 (03:04 +0100)
commitbbeae142bfe2f2961816d51b45fb385821052b34
treeda951f84c4eff88c37983eef00d332db638bf59e
parent657dbb4c394daec626bccfcaddc5341b8b9fc14e
[libc][rpc] Allocate a single block of shared memory instead of three

Allows moving the pointer swap between server and client into reset.
Single allocation simplifies whatever allocates the client/server, currently
the libc loaders.

Reviewed By: jhuber6

Differential Revision: https://reviews.llvm.org/D150337
libc/src/__support/RPC/rpc.h
libc/startup/gpu/amdgpu/start.cpp
libc/startup/gpu/nvptx/start.cpp
libc/utils/gpu/loader/Loader.h
libc/utils/gpu/loader/amdgpu/Loader.cpp
libc/utils/gpu/loader/nvptx/Loader.cpp