MCPcopy Create free account
hub / github.com/chc4/lineiform / codegen

Method codegen

tangle/src/region.rs:743–754  ·  view source on GitHub ↗
(&mut self, token: &NodeOwner, ir: &mut IR, ops: &mut Assembler)

Source from the content-addressed store, hash-verified

741 }
742
743 pub fn codegen(&mut self, token: &NodeOwner, ir: &mut IR, ops: &mut Assembler) {
744 // TODO: emit all the constant values first?
745 //let mut nodes_graph = StableGraph::new();
746 //std::mem::swap(&mut self.nodes, &mut nodes_graph);
747 //let mut nodes: Vec<_> = nodes_graph.node_weights().collect();
748 //nodes.sort_by_key(|n| n.time );
749 // lol this is wrong. we actually want to thread a State edge through
750 // nodes, and just visit the State edge uses in order.
751 let mut patterns = self.patterns.take().unwrap();
752 patterns.codegen(token, self, ops);
753 //std::mem::swap(&mut self.nodes, &mut nodes_graph);
754 }
755}
756
757

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected