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

Method from_block

cranelift/codegen/src/machinst/buffer.rs:461–463  ·  view source on GitHub ↗

Get a label for a block. (The first N MachLabels are always reserved for the N blocks in the vcode.)

(bindex: BlockIndex)

Source from the content-addressed store, hash-verified

459 /// Get a label for a block. (The first N MachLabels are always reserved for
460 /// the N blocks in the vcode.)
461 pub fn from_block(bindex: BlockIndex) -> MachLabel {
462 MachLabel(bindex.index() as u32)
463 }
464
465 /// Creates a string representing this label, for convenience.
466 pub fn to_string(&self) -> String {

Callers

nothing calls this directly

Calls 2

MachLabelClass · 0.85
indexMethod · 0.45

Tested by

no test coverage detected