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

Method is_branch

cranelift/codegen/src/machinst/vcode.rs:1583–1588  ·  view source on GitHub ↗
(&self, insn: InsnIndex)

Source from the content-addressed store, hash-verified

1581 }
1582
1583 fn is_branch(&self, insn: InsnIndex) -> bool {
1584 match self.insts[insn.index()].is_term() {
1585 MachTerminator::Branch => true,
1586 _ => false,
1587 }
1588 }
1589
1590 fn inst_operands(&self, insn: InsnIndex) -> &[Operand] {
1591 let range = self.operand_ranges.get(insn.index());

Callers 5

newMethod · 0.80
lower_clif_blockMethod · 0.80
is_block_basicMethod · 0.80
elaborate_blockMethod · 0.80

Calls 2

is_termMethod · 0.45
indexMethod · 0.45

Tested by

no test coverage detected