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

Method push

cranelift/codegen/src/machinst/vcode.rs:364–368  ·  view source on GitHub ↗

Push an instruction for the current BB and current IR inst within the BB.

(&mut self, insn: I, loc: RelSourceLoc)

Source from the content-addressed store, hash-verified

362 /// Push an instruction for the current BB and current IR inst
363 /// within the BB.
364 pub fn push(&mut self, insn: I, loc: RelSourceLoc) {
365 assert!(!insn.is_low_level_branch()); // These are not meant to be in VCode.
366 self.vcode.insts.push(insn);
367 self.vcode.srclocs.push(loc);
368 }
369
370 /// Add a successor block with branch args.
371 pub fn add_succ(&mut self, block: BlockIndex, args: &[Reg]) {

Callers 9

add_block_paramMethod · 0.45
add_succMethod · 0.45
add_value_labelMethod · 0.45
reverse_and_finalizeMethod · 0.45
emitMethod · 0.45
allocMethod · 0.45
insertMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected