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

Method use_var

cranelift/frontend/src/frontend.rs:480–484  ·  view source on GitHub ↗

Returns the Cranelift IR value corresponding to the utilization at the current program position of a previously defined user variable.

(&mut self, var: Variable)

Source from the content-addressed store, hash-verified

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

Callers 11

try_use_varMethod · 0.45
sample_functionFunction · 0.45
memcpyFunction · 0.45
small_memcpyFunction · 0.45
not_so_small_memcpyFunction · 0.45
small_memsetFunction · 0.45
not_so_small_memsetFunction · 0.45
memcmpFunction · 0.45
small_memcmp_helperFunction · 0.45
undef_vector_varsFunction · 0.45
try_callFunction · 0.45

Calls 1

try_use_varMethod · 0.80

Tested by 8

memcpyFunction · 0.36
small_memcpyFunction · 0.36
not_so_small_memcpyFunction · 0.36
small_memsetFunction · 0.36
not_so_small_memsetFunction · 0.36
memcmpFunction · 0.36
undef_vector_varsFunction · 0.36
try_callFunction · 0.36