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

Method use_srcloc

cranelift/codegen/src/cursor.rs:636–638  ·  view source on GitHub ↗

Use the source location of `inst` for future instructions.

(&mut self, inst: ir::Inst)

Source from the content-addressed store, hash-verified

634
635 /// Use the source location of `inst` for future instructions.
636 pub fn use_srcloc(&mut self, inst: ir::Inst) {
637 self.srcloc = self.func.srcloc(inst);
638 }
639
640 /// Create an instruction builder that inserts an instruction at the current position.
641 pub fn ins(&mut self) -> ir::InsertBuilder<'_, &mut FuncCursor<'f>> {

Callers 6

expand_stack_storeFunction · 0.80
expand_stack_loadFunction · 0.80
process_brifMethod · 0.80
load_addrFunction · 0.80

Calls 1

srclocMethod · 0.45

Tested by

no test coverage detected