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

Method ctx_hash

cranelift/codegen/src/egraph/mod.rs:1117–1120  ·  view source on GitHub ↗
(&self, state: &mut H, (ty, inst): &(Type, InstructionData))

Source from the content-addressed store, hash-verified

1115
1116impl<'a> CtxHash<(Type, InstructionData)> for GVNContext<'a> {
1117 fn ctx_hash<H: Hasher>(&self, state: &mut H, (ty, inst): &(Type, InstructionData)) {
1118 core::hash::Hash::hash(&ty, state);
1119 inst.hash(state, self.value_lists);
1120 }
1121}
1122
1123/// Statistics collected during egraph-based processing.

Callers

nothing calls this directly

Calls 2

hashFunction · 0.50
hashMethod · 0.45

Tested by

no test coverage detected