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

Method num_insts

cranelift/codegen/src/ir/dfg.rs:220–222  ·  view source on GitHub ↗

Get the total number of instructions created in this function, whether they are currently inserted in the layout or not. This is intended for use with `SecondaryMap::with_capacity`.

(&self)

Source from the content-addressed store, hash-verified

218 ///
219 /// This is intended for use with `SecondaryMap::with_capacity`.
220 pub fn num_insts(&self) -> usize {
221 self.insts.0.len()
222 }
223
224 /// Returns `true` if the given instruction reference is valid.
225 pub fn inst_is_valid(&self, inst: Inst) -> bool {

Callers 2

make_instMethod · 0.45
elaborateMethod · 0.45

Calls 1

lenMethod · 0.45

Tested by

no test coverage detected