-
Notifications
You must be signed in to change notification settings - Fork 15.1k
[libc] Make RPC server handling header only #131205
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,22 @@ | ||
| //===-- Shared RPC server interface -----------------------------*- C++ -*-===// | ||
| // | ||
| // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. | ||
| // See https://llvm.org/LICENSE.txt for license information. | ||
| // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception | ||
| // | ||
| //===----------------------------------------------------------------------===// | ||
|
|
||
| #ifndef LLVM_LIBC_SHARED_RPC_SERVER_H | ||
| #define LLVM_LIBC_SHARED_RPC_SERVER_H | ||
|
|
||
| #include "src/__support/RPC/rpc_server.h" | ||
|
|
||
| namespace LIBC_NAMESPACE_DECL { | ||
| namespace shared { | ||
|
|
||
| using LIBC_NAMESPACE::rpc::handle_libc_opcodes; | ||
|
|
||
| } // namespace shared | ||
| } // namespace LIBC_NAMESPACE_DECL | ||
|
|
||
| #endif // LLVM_LIBC_SHARED_RPC_SERVER_H |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,2 +1 @@ | ||
| add_subdirectory(server) | ||
| add_subdirectory(loader) |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -13,6 +13,7 @@ | |
|
|
||
| #include "shared/rpc.h" | ||
| #include "shared/rpc_opcodes.h" | ||
| #include "shared/rpc_server.h" | ||
|
Comment on lines
14
to
+16
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. the libc code isn't intended to include from There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. It's going to be really tough making that work but I'll try. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Okay I think this works, PTAL. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. now that you've moved There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. But we want to use the shared interface since this is exported from libc right There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I.e. we need to use the shared interface since it's the one that defines the There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. the shared interface is for external callers, but internally libc should use its own interface. Also I forgot about the previous discussion on placement of the other There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. But this isn't internal, this will be moved outside of There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. ah, if this is getting moved outside of |
||
|
|
||
| #include <cstddef> | ||
| #include <cstdint> | ||
|
|
@@ -181,7 +182,7 @@ inline uint32_t handle_server(rpc::Server &server, uint32_t index, | |
| break; | ||
| } | ||
| default: | ||
| status = handle_libc_opcodes(*port, num_lanes); | ||
| status = LIBC_NAMESPACE::shared::handle_libc_opcodes(*port, num_lanes); | ||
| break; | ||
| } | ||
|
|
||
|
|
||
This file was deleted.
Uh oh!
There was an error while loading. Please reload this page.