Skip to main content

Module ccfg

Module ccfg 

Source
Expand description

The communicating control-flow graph (Ccfg), the IR every backend reads.

A System is the project’s graphs: per program with processes an system::Orchestration, one graph::Ccfg per bound Microkit entry point, its guards and labels tast’s nodes, and each buffered channel’s Ring and each typed Sync channel’s Message; [build] builds it from tast, and the backends read it.

Re-exports§

pub use build::build;
pub use message::Message;
pub use ring::Ring;
pub use system::System;

Modules§

build
tast → ccfg: each program’s entry points flattened into its graphs (flatten.rs), each buffered channel’s ring sized (ring.rs), and each typed Sync channel’s message (message.rs).
graph
A graph and its labels: the object fidus’s Ccfg.lean formalises,
message
Each typed Sync channel’s message (messages): its value, by copy, in the message registers of the protected procedure call. A lowering, like the rings, so it is sized here; a value that does not fit is an error.
ring
Each buffered channel’s ring (rings), sized as filib lays it out: HEADER, then as many payload-sized slots as fit. A lowering, not a type, so it is sized here; a region with no slot is an error.
system
The project’s graphs: one Orchestration per program, by the program’s id. Declarations are not copied here: a label or guard names them by tast’s ids, and a backend reads them from tast.