Skip to main content

Module graph_slot

Module graph_slot 

Source
Expand description

GraphSlot - per-FunctionProto compiled data per docs/ENGINE.md §3.

Under the runtime-linker model each entry in Node.model.functions[] becomes one GraphSlot in Engine.graphs, keyed by the function’s (domain, name, overload). The map IS the symbol table - a call NodeProto whose (domain, op_type, overload) matches a key resolves to the target installed graph.

Each NodeProto’s dispatch kind is pre-stamped at install time into op_dispatch[i] (parallel to function.node[i]). Runtime invoke is one indexed probe; no HashMap lookups on hot path.

Structs§

GraphSlot
Per-FunctionProto compiled data installed on the Engine. Keyed in Engine.graphs by (domain, name, overload) - the canonical symbol-table key the linker dedupes on. The map key IS the name, so GraphSlot carries no separate name field.