[all-commits] [llvm/llvm-project] 222f6a: [libc] Remove more libc dependencies from the RPC ...

Joseph Huber via All-commits all-commits at lists.llvm.org
Mon Nov 18 05:32:22 PST 2024


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 222f6aff3db1cfee0a1461482584dc374886da73
      https://github.com/llvm/llvm-project/commit/222f6aff3db1cfee0a1461482584dc374886da73
  Author: Joseph Huber <huberjn at outlook.com>
  Date:   2024-11-18 (Mon, 18 Nov 2024)

  Changed paths:
    M libc/src/__support/RPC/rpc.h
    M libc/src/__support/RPC/rpc_util.h

  Log Message:
  -----------
  [libc] Remove more libc dependencies from the RPC header (#116437)

Summary:
The end goal is to make `rpc.h` a standalone header so that other
projects can include it without leaking `libc` internals. I'm trying to
replace stuff slowly before pulling it out all at once to reduce the
size of the changes.

This patch removes the atomic and a few sparse dependencies. Now we
mostly rely on the GPU utils, the sleep function, optional, and the
type traits. I'll clean these up in future patches. This removed the old
stuff I had around the memcpy, but I think that it's not quite as bad as
it once was, as it removes a branch and only uses a few extra VGPRs
since I believe the builtin memcpy was improved for AMD.



To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications


More information about the All-commits mailing list