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

Method inst_is_valid

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

Returns `true` if the given instruction reference is valid.

(&self, inst: Inst)

Source from the content-addressed store, hash-verified

223
224 /// Returns `true` if the given instruction reference is valid.
225 pub fn inst_is_valid(&self, inst: Inst) -> bool {
226 self.insts.0.is_valid(inst)
227 }
228
229 /// Get the total number of basic blocks created in this function, whether they are
230 /// currently inserted in the layout or not.

Callers 1

verify_inst_argMethod · 0.80

Calls 1

is_validMethod · 0.45

Tested by

no test coverage detected