[libc-commits] [libc] [llvm] [libc] Move libc server handlers to a shared header (PR #117908)
Joseph Huber via libc-commits
libc-commits at lists.llvm.org
Wed Nov 27 12:32:06 PST 2024
================
@@ -445,15 +443,19 @@ rpc::Status handle_port_impl(rpc::Server::Port &port) {
return rpc::SUCCESS;
}
-int libc_handle_rpc_port(void *port, uint32_t num_lanes) {
+namespace rpc {
+// The implementation of this function currently lives in the utility directory
+// at 'utils/gpu/server/rpc_server.cpp'.
+rpc::Status handle_libc_opcodes(rpc::Server::Port &port, uint32_t num_lanes) {
switch (num_lanes) {
case 1:
- return handle_port_impl<1>(*reinterpret_cast<rpc::Server::Port *>(port));
+ return handle_port_impl<1>(port);
----------------
jhuber6 wrote:
This is code that `libc` exports to handle the opcodes `offload` doesn't know how to handle.
https://github.com/llvm/llvm-project/pull/117908
More information about the libc-commits
mailing list