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

Method fmt

cranelift/codegen/src/machinst/vcode.rs:1620–1631  ·  view source on GitHub ↗
(&self, f: &mut fmt::Formatter)

Source from the content-addressed store, hash-verified

1618
1619impl<I: VCodeInst> Debug for VRegAllocator<I> {
1620 fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
1621 writeln!(f, "VRegAllocator {{")?;
1622
1623 let mut alias_keys = self.vreg_aliases.keys().cloned().collect::<Vec<_>>();
1624 alias_keys.sort_unstable();
1625 for key in alias_keys {
1626 let dest = self.vreg_aliases.get(&key).unwrap();
1627 writeln!(f, " {:?} := {:?}", Reg::from(key), Reg::from(*dest))?;
1628 }
1629
1630 writeln!(f, "}}")
1631 }
1632}
1633
1634impl<I: VCodeInst> fmt::Debug for VCode<I> {

Callers

nothing calls this directly

Calls 11

OkFunction · 0.85
bindex_to_bbMethod · 0.80
block_succsMethod · 0.80
get_user_stack_mapMethod · 0.80
newFunction · 0.50
keysMethod · 0.45
unwrapMethod · 0.45
getMethod · 0.45
num_blocksMethod · 0.45
iterMethod · 0.45
indexMethod · 0.45

Tested by

no test coverage detected