diff options
author | Jon Chesterfield <jonathanchesterfield@gmail.com> | 2023-05-04 00:21:18 +0100 |
---|---|---|
committer | Jon Chesterfield <jonathanchesterfield@gmail.com> | 2023-05-04 00:21:19 +0100 |
commit | 218b50a606370b176ef776ff98cdb8b21b54277f (patch) | |
tree | fec96d468318519344b6f4439b2a8fbbffb85da8 /llvm/lib/CodeGen/AsmPrinter/CodeViewDebug.cpp | |
parent | abdb5e041ce2b2abee6d46865d91692e634a5648 (diff) | |
download | llvm-218b50a606370b176ef776ff98cdb8b21b54277f.zip llvm-218b50a606370b176ef776ff98cdb8b21b54277f.tar.gz llvm-218b50a606370b176ef776ff98cdb8b21b54277f.tar.bz2 |
[libc][rpc] Simplify mailbox state tracking
Removes the redundant Ack/Data bit manipulation.
Represents the inbox/outbox state with one bit instead of two. This will
be useful if we change to a packed representation and otherwise cuts the
runtime state space from 16 to 4.
Further simplification is possible, this patch is intentionally minimal.
- can_{send,recv}_data are now in == out
- {client,server}::try_open can be factored into Process:try_open
This implements the state machine of D148191, modulo differences in atomic
ordering and fences.
Reviewed By: jhuber6
Differential Revision: https://reviews.llvm.org/D149788
Diffstat (limited to 'llvm/lib/CodeGen/AsmPrinter/CodeViewDebug.cpp')
0 files changed, 0 insertions, 0 deletions