Returns the Cranelift IR value corresponding to the utilization at the current program position of a previously defined user variable.
(&mut self, var: Variable)
| 478 | /// Returns the Cranelift IR value corresponding to the utilization at the current program |
| 479 | /// position of a previously defined user variable. |
| 480 | pub fn use_var(&mut self, var: Variable) -> Value { |
| 481 | self.try_use_var(var).unwrap_or_else(|_| { |
| 482 | panic!("variable {var:?} is used but its type has not been declared") |
| 483 | }) |
| 484 | } |
| 485 | |
| 486 | /// Registers a new definition of a user variable. This function will return |
| 487 | /// an error if the value supplied does not match the type the variable was |