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

Method get_code_bb_layout

cranelift/codegen/src/machinst/mod.rs:734–742  ·  view source on GitHub ↗

If available, return information about the code layout in the final machine code: the offsets (in bytes) of each basic-block start, and all basic-block edges.

(&self)

Source from the content-addressed store, hash-verified

732 /// final machine code: the offsets (in bytes) of each basic-block
733 /// start, and all basic-block edges.
734 pub fn get_code_bb_layout(&self) -> (Vec<usize>, Vec<(usize, usize)>) {
735 (
736 self.bb_starts.iter().map(|&off| off as usize).collect(),
737 self.bb_edges
738 .iter()
739 .map(|&(from, to)| (from as usize, to as usize))
740 .collect(),
741 )
742 }
743
744 /// Creates unwind information for the function.
745 ///

Callers

nothing calls this directly

Calls 3

collectMethod · 0.80
mapMethod · 0.45
iterMethod · 0.45

Tested by

no test coverage detected