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

Method to_backwards_insn_index

cranelift/codegen/src/machinst/vcode.rs:51–53  ·  view source on GitHub ↗
(&self, num_insts: usize)

Source from the content-addressed store, hash-verified

49
50impl ToBackwardsInsnIndex for InsnIndex {
51 fn to_backwards_insn_index(&self, num_insts: usize) -> BackwardsInsnIndex {
52 BackwardsInsnIndex::new(num_insts - self.index() - 1)
53 }
54}
55
56/// An index referring to an instruction in the VCode when it is backwards,

Callers 2

emitMethod · 0.80
get_user_stack_mapMethod · 0.80

Calls 2

newFunction · 0.50
indexMethod · 0.45

Tested by

no test coverage detected