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

Method ctx_eq

cranelift/codegen/src/egraph/mod.rs:1107–1113  ·  view source on GitHub ↗
(
        &self,
        (a_ty, a_inst): &(Type, InstructionData),
        (b_ty, b_inst): &(Type, InstructionData),
    )

Source from the content-addressed store, hash-verified

1105
1106impl<'a> CtxEq<(Type, InstructionData), (Type, InstructionData)> for GVNContext<'a> {
1107 fn ctx_eq(
1108 &self,
1109 (a_ty, a_inst): &(Type, InstructionData),
1110 (b_ty, b_inst): &(Type, InstructionData),
1111 ) -> bool {
1112 a_ty == b_ty && a_inst.eq(b_inst, self.value_lists)
1113 }
1114}
1115
1116impl<'a> CtxHash<(Type, InstructionData)> for GVNContext<'a> {

Callers

nothing calls this directly

Calls 1

eqMethod · 0.45

Tested by

no test coverage detected