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

Method inlined_block

cranelift/codegen/src/inline.rs:1293–1298  ·  view source on GitHub ↗
(&self, callee_block: ir::Block)

Source from the content-addressed store, hash-verified

1291
1292impl EntityMap {
1293 fn inlined_block(&self, callee_block: ir::Block) -> ir::Block {
1294 let offset = self
1295 .block_offset
1296 .expect("must create inlined `ir::Block`s before calling `EntityMap::inlined_block`");
1297 ir::Block::from_u32(offset + callee_block.as_u32())
1298 }
1299
1300 fn iter_inlined_blocks(&self, func: &ir::Function) -> impl Iterator<Item = ir::Block> + use<> {
1301 let start = self.block_offset.expect(

Callers 5

inline_oneFunction · 0.80
map_block_callMethod · 0.80
map_blockMethod · 0.80
inline_block_layoutFunction · 0.80
replace_call_with_jumpFunction · 0.80

Calls 2

expectMethod · 0.45
as_u32Method · 0.45

Tested by

no test coverage detected