Assign to multiple SSA references; see `set`.
(&mut self, names: &[ValueRef], values: Vec<DataValue>)
| 74 | |
| 75 | /// Assign to multiple SSA references; see `set`. |
| 76 | pub fn set_all(&mut self, names: &[ValueRef], values: Vec<DataValue>) { |
| 77 | assert_eq!(names.len(), values.len()); |
| 78 | for (n, v) in names.iter().zip(values) { |
| 79 | self.set(*n, v); |
| 80 | } |
| 81 | } |
| 82 | |
| 83 | /// Rename all of the SSA references in `old_names` to those in `new_names`. This will remove |
| 84 | /// any old references that are not in `old_names`. TODO This performs an extra allocation that |
no test coverage detected