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

Method add_function

tangle/src/ir.rs:111–118  ·  view source on GitHub ↗
(&mut self, f: NodeVariant::Function<A, O>)

Source from the content-addressed store, hash-verified

109 }
110
111 pub fn add_function<const A: usize, const O: usize>(&mut self, f: NodeVariant::Function<A, O>) {
112 let mut owner = self.owner.take().unwrap();
113 self.in_region(self.master_region, |r, ir| {
114 r.add_node(&mut owner, f, |n, r| {
115 });
116 });
117 self.owner = Some(owner);
118 }
119
120 pub fn set_body<const A: usize, const O: usize>(&mut self, f: NodeVariant::Function<A, O>) {
121 println!("setting IR body");

Callers 1

set_bodyMethod · 0.80

Calls 2

in_regionMethod · 0.80
add_nodeMethod · 0.80

Tested by

no test coverage detected