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

Method reg_def

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

Add a register def, 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

440 /// position). Use only when this def will be written after all
441 /// uses are read.
442 fn reg_def(&mut self, reg: &mut Writable<impl AsMut<Reg>>) {
443 self.reg_maybe_fixed(reg.reg.as_mut(), OperandKind::Def, OperandPos::Late);
444 }
445
446 /// Add a register "early def", which logically occurs at the
447 /// beginning of the instruction, alongside all uses. Use this

Callers 7

s390x_get_operandsFunction · 0.80
x64_get_operandsFunction · 0.80
write_gprMethod · 0.80
write_xmmMethod · 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

reg_maybe_fixedMethod · 0.80
as_mutMethod · 0.45

Tested by

no test coverage detected