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

Method value_is_valid_for_parser

cranelift/codegen/src/ir/dfg.rs:1587–1596  ·  view source on GitHub ↗
(&self, v: Value)

Source from the content-addressed store, hash-verified

1585 /// may be unresolved while parsing.
1586 #[cold]
1587 pub fn value_is_valid_for_parser(&self, v: Value) -> bool {
1588 if !self.value_is_valid(v) {
1589 return false;
1590 }
1591 if let ValueData::Alias { ty, .. } = ValueData::from(self.values[v]) {
1592 ty != types::INVALID
1593 } else {
1594 true
1595 }
1596 }
1597}
1598
1599#[cfg(test)]

Callers 1

infer_typevarMethod · 0.80

Calls 2

fromFunction · 0.85
value_is_validMethod · 0.80

Tested by

no test coverage detected