vyre-libs 0.6.2

vyre Category A library ecosystem - pure-IR compositions over vyre-ops hardware primitives
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
use crate::region::wrap_child;
use vyre::ir::Node;
use vyre_foundation::ir::model::expr::GeneratorRef;

#[cfg_attr(
    not(any(feature = "c-parser", feature = "python-parser")),
    allow(dead_code)
)]
pub(crate) fn child_phase(parent_op_id: &str, phase_op_id: &str, body: Vec<Node>) -> Node {
    wrap_child(
        phase_op_id,
        GeneratorRef {
            name: parent_op_id.to_string(),
        },
        body,
    )
}