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

Method reg_use

cranelift/codegen/src/machinst/reg.rs:430–432  ·  view source on GitHub ↗

Add a register use, at the start of the instruction (`Before` position).

(&mut self, reg: &mut impl AsMut<Reg>)

Source from the content-addressed store, hash-verified

428 /// Add a register use, at the start of the instruction (`Before`
429 /// position).
430 fn reg_use(&mut self, reg: &mut impl AsMut<Reg>) {
431 self.reg_maybe_fixed(reg.as_mut(), OperandKind::Use, OperandPos::Early);
432 }
433
434 /// Add a register use, at the end of the instruction (`After` position).
435 fn reg_late_use(&mut self, reg: &mut impl AsMut<Reg>) {

Callers 15

memarg_operandsFunction · 0.80
s390x_get_operandsFunction · 0.80
x64_get_operandsFunction · 0.80
get_operandsMethod · 0.80
read_gprMethod · 0.80
read_write_gprMethod · 0.80
read_xmmMethod · 0.80
read_write_xmmMethod · 0.80
riscv64_get_operandsFunction · 0.80
get_operandsMethod · 0.80
memarg_operandsFunction · 0.80
pairmemarg_operandsFunction · 0.80

Implementers 1

reg.rscranelift/codegen/src/machinst/reg.rs

Calls 2

reg_maybe_fixedMethod · 0.80
as_mutMethod · 0.45

Tested by

no test coverage detected