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

Method value_is_real

cranelift/codegen/src/ir/dfg.rs:378–382  ·  view source on GitHub ↗

Check whether a value is valid and not an alias.

(&self, value: Value)

Source from the content-addressed store, hash-verified

376
377 /// Check whether a value is valid and not an alias.
378 pub fn value_is_real(&self, value: Value) -> bool {
379 // Deleted or unused values are also stored as aliases so this excludes
380 // those as well.
381 self.value_is_valid(value) && !matches!(self.values[value].into(), ValueData::Alias { .. })
382 }
383
384 /// Is the given value an alias?
385 pub fn value_is_alias(&self, v: Value) -> bool {

Callers

nothing calls this directly

Calls 1

value_is_validMethod · 0.80

Tested by

no test coverage detected