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

Method new

cranelift/src/bugpoint.rs:112–119  ·  view source on GitHub ↗
(func: &Function)

Source from the content-addressed store, hash-verified

110
111impl RemoveInst {
112 fn new(func: &Function) -> Self {
113 let first_block = func.layout.entry_block().unwrap();
114 let first_inst = func.layout.first_inst(first_block).unwrap();
115 Self {
116 block: first_block,
117 inst: first_inst,
118 }
119 }
120}
121
122impl Mutator for RemoveInst {

Callers

nothing calls this directly

Calls 5

first_instMethod · 0.80
num_block_paramsMethod · 0.80
newFunction · 0.50
unwrapMethod · 0.45
entry_blockMethod · 0.45

Tested by

no test coverage detected