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

Function insert_block_after

cranelift/codegen/src/ir/layout.rs:972–984  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

970
971 #[test]
972 fn insert_block_after() {
973 let mut layout = Layout::new();
974 let e0 = Block::new(0);
975 let e1 = Block::new(1);
976 let e2 = Block::new(2);
977
978 layout.append_block(e1);
979 layout.insert_block_after(e2, e1);
980 verify(&mut layout, &[(e1, &[]), (e2, &[])]);
981
982 layout.insert_block_after(e0, e1);
983 verify(&mut layout, &[(e1, &[]), (e0, &[]), (e2, &[])]);
984 }
985
986 #[test]
987 fn append_inst() {

Callers

nothing calls this directly

Calls 4

append_blockMethod · 0.80
verifyFunction · 0.70
newFunction · 0.50
insert_block_afterMethod · 0.45

Tested by

no test coverage detected