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)
| 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>( |
nothing calls this directly
no test coverage detected