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

Method any_def

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

Add a def that can be allocated to either a register or a spillslot, at the end of the instruction (`After` position). Use only when this def will be written after all uses are read.

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

Source from the content-addressed store, hash-verified

514 /// position). Use only when this def will be written after all
515 /// uses are read.
516 fn any_def(&mut self, reg: &mut Writable<impl AsMut<Reg>>) {
517 self.add_operand(
518 reg.reg.as_mut(),
519 OperandConstraint::Any,
520 OperandKind::Def,
521 OperandPos::Late,
522 );
523 }
524
525 /// Add a use that can be allocated to either a register or a
526 /// spillslot, at the end of the instruction (`After` position).

Callers 5

s390x_get_operandsFunction · 0.80
x64_get_operandsFunction · 0.80
riscv64_get_operandsFunction · 0.80
aarch64_get_operandsFunction · 0.80
pulley_get_operandsFunction · 0.80

Implementers 1

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

Calls 2

add_operandMethod · 0.45
as_mutMethod · 0.45

Tested by

no test coverage detected