This is an archive of the discontinued LLVM Phabricator instance.

[libc] Factor specifics of packet type out of process
ClosedPublic

Authored by JonChesterfield on Jun 22 2023, 7:06 PM.

Details

Summary

NFC. Simplifies process slightly, gives more options for testing it.

Diff Detail

Event Timeline

Herald added projects: Restricted Project, Restricted Project. · View Herald TranscriptJun 22 2023, 7:06 PM
JonChesterfield requested review of this revision.Jun 22 2023, 7:06 PM
libc/src/__support/RPC/rpc.h
255

diff hasn't gone well here - moving the methods into free functions changes where they are in the file. The indexing functions changed insofar as Packet<lane_size> is now Packet

  • avoid moving functions in file to decrease diff size
  • now compiles, moved invoke back to free functions
jhuber6 accepted this revision.Jun 22 2023, 7:39 PM

LG, thanks

libc/src/__support/RPC/rpc.h
253

LLVM style, static over anonymous namespace. ditto below.

This revision is now accepted and ready to land.Jun 22 2023, 7:39 PM
  • namespace => static
jhuber6 accepted this revision.Jun 22 2023, 7:45 PM
This revision was landed with ongoing or failed builds.Jun 22 2023, 7:45 PM
This revision was automatically updated to reflect the committed changes.