Expand description
DSL-side syscall helpers — record canonical NodeProtos into a
Graph. The runtime-side dispatch impls live in bb-ops; the
two sides agree on stable (domain, op_type) string constants
re-exported from bb_ir::syscall_ids.
Modules§
- ids
- Canonical
(domain, op_type)string constants the DSL helpers stamp onto recordedNodeProtos. The strings live inbb_ir::syscall_idsso the DSL + compiler + runtime cite one declaration; this module re-exports them under shorter local aliases for the helper bodies below.
Functions§
- address_
book_ insert_ many - Record an
AddressBook::InsertMany(peer, addresses)custom-op NodeProto into aGraph. New peer creates an entry withref_count = 1; known peer dedupe-appends every address without touchingref_count. Emptyaddressesvec surfaces as a dispatch-timeOpError. - address_
book_ lookup - Record an
AddressBook::Lookup(peer)custom-op NodeProto into aGraph. Output carries the full orderedTYPE_ADDRESS_VEC; callers that need a single address pick one downstream. Unknown or empty-address peer surfaces as a dispatch-timeOpError. - gate_
dispatch - Record a
GateDispatchsyscall NodeProto into aGraph- a multi-edge synchronization barrier. - pass_
through - Record a
PassThroughsyscall NodeProto into aGraph.