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

Method get_inst_key

cranelift/codegen/src/egraph/mod.rs:170–178  ·  view source on GitHub ↗
(&'a self, dfg: &'a DataFlowGraph)

Source from the content-addressed store, hash-verified

168
169impl NewOrExistingInst {
170 fn get_inst_key<'a>(&'a self, dfg: &'a DataFlowGraph) -> (Type, InstructionData) {
171 match self {
172 NewOrExistingInst::New(data, ty) => (*ty, *data),
173 NewOrExistingInst::Existing(inst) => {
174 let ty = dfg.ctrl_typevar(*inst);
175 (ty, dfg.insts[*inst])
176 }
177 }
178 }
179}
180
181impl<'opt, 'analysis> OptimizeCtx<'opt, 'analysis>

Callers 1

insert_pure_enodeMethod · 0.80

Calls 1

ctrl_typevarMethod · 0.80

Tested by

no test coverage detected