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

Method hash

cranelift/codegen/src/ir/layout.rs:618–624  ·  view source on GitHub ↗
(&self, state: &mut H)

Source from the content-addressed store, hash-verified

616
617impl core::hash::Hash for InstNode {
618 fn hash<H: core::hash::Hasher>(&self, state: &mut H) {
619 // Ignore the sequence number as it is an optimization used by pp_cmp and may be different
620 // even for equivalent layouts.
621 self.block.hash(state);
622 self.prev.hash(state);
623 self.next.hash(state);
624 }
625}
626
627/// Iterate over instructions in a block in layout order. See `Layout::block_insts()`.

Callers 2

ctx_hashMethod · 0.45
ctx_hashMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected