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

Method add_argument

tangle/src/node.rs:115–122  ·  view source on GitHub ↗
(&mut self, ir: &mut IR)

Source from the content-addressed store, hash-verified

113 }
114
115 pub fn add_argument(&mut self, ir: &mut IR) -> PortIdx {
116 let port = ir.in_region(self.region, |mut r, ir| {
117 let port = r.add_source();
118 port
119 });
120 self.args += 1;
121 port
122 }
123
124 pub fn add_return(&mut self, ir: &mut IR) -> PortIdx {
125 let port = ir.in_region(self.region, |mut r, ir| {

Callers 15

function_incFunction · 0.80
function_inc_regallocFunction · 0.80
function_inc_codegenFunction · 0.80
function_add_codegenFunction · 0.80
function_inc_disjointFunction · 0.80
function_inc_then_addFunction · 0.80
function_inc_sharedFunction · 0.80
function_inc_a_lotFunction · 0.80
function_add_constantFunction · 0.80
function_bb_simpleFunction · 0.80
function_bb_if_always_0Function · 0.80
function_bb_if_always_1Function · 0.80

Calls 2

in_regionMethod · 0.80
add_sourceMethod · 0.80

Tested by 15

function_incFunction · 0.64
function_inc_regallocFunction · 0.64
function_inc_codegenFunction · 0.64
function_add_codegenFunction · 0.64
function_inc_disjointFunction · 0.64
function_inc_then_addFunction · 0.64
function_inc_sharedFunction · 0.64
function_inc_a_lotFunction · 0.64
function_add_constantFunction · 0.64
function_bb_simpleFunction · 0.64
function_bb_if_always_0Function · 0.64
function_bb_if_always_1Function · 0.64