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

Method display_value_inst

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

Returns an object that displays the given `value`'s defining instruction. Panics if the value is not defined by an instruction (i.e. it is a basic block argument).

(&self, value: Value)

Source from the content-addressed store, hash-verified

851 /// Panics if the value is not defined by an instruction (i.e. it is a basic
852 /// block argument).
853 pub fn display_value_inst(&self, value: Value) -> DisplayInst<'_> {
854 match self.value_def(value) {
855 ir::ValueDef::Result(inst, _) => self.display_inst(inst),
856 ir::ValueDef::Param(_, _) => panic!("value is not defined by an instruction"),
857 ir::ValueDef::Union(_, _) => panic!("value is a union of two other values"),
858 }
859 }
860
861 /// Construct a read-only visitor context for the values of this instruction.
862 pub fn inst_values<'dfg>(

Callers

nothing calls this directly

Calls 2

value_defMethod · 0.80
display_instMethod · 0.80

Tested by

no test coverage detected