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

Function valid_valuedata

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

Check for non-values.

(data: ValueDataPacked)

Source from the content-addressed store, hash-verified

314
315/// Check for non-values.
316fn valid_valuedata(data: ValueDataPacked) -> bool {
317 let data = ValueData::from(data);
318 if let ValueData::Alias {
319 ty: types::INVALID,
320 original,
321 } = data
322 {
323 if original == Value::reserved_value() {
324 return false;
325 }
326 }
327 true
328}
329
330impl<'a> Iterator for Values<'a> {
331 type Item = Value;

Callers 1

nextMethod · 0.85

Calls 1

fromFunction · 0.85

Tested by

no test coverage detected