MCPcopy Create free account
hub / github.com/bytecodealliance/wasmtime / add_edge

Method add_edge

cranelift/codegen/src/flowgraph.rs:150–157  ·  view source on GitHub ↗
(&mut self, from: Block, from_inst: Inst, to: Block)

Source from the content-addressed store, hash-verified

148 }
149
150 fn add_edge(&mut self, from: Block, from_inst: Inst, to: Block) {
151 self.data[from]
152 .successors
153 .insert(to, &mut self.succ_forest, &());
154 self.data[to]
155 .predecessors
156 .insert(from_inst, from, &mut self.pred_forest, &());
157 }
158
159 /// Get an iterator over the CFG predecessors to `block`.
160 pub fn pred_iter(&self, block: Block) -> PredIter<'_> {

Callers 1

compute_blockMethod · 0.80

Calls 1

insertMethod · 0.45

Tested by

no test coverage detected