Get the first result of an instruction. This function panics if the instruction doesn't have any result.
(&self, inst: Inst)
| 1074 | /// |
| 1075 | /// This function panics if the instruction doesn't have any result. |
| 1076 | pub fn first_result(&self, inst: Inst) -> Value { |
| 1077 | self.results[inst] |
| 1078 | .first(&self.value_lists) |
| 1079 | .unwrap_or_else(|| panic!("{inst} has no results")) |
| 1080 | } |
| 1081 | |
| 1082 | /// Test if `inst` has any result values currently. |
| 1083 | pub fn has_results(&self, inst: Inst) -> bool { |