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

Method only_reg

cranelift/codegen/src/machinst/valueregs.rs:93–99  ·  view source on GitHub ↗

Return the single register used for this value, if any.

(self)

Source from the content-addressed store, hash-verified

91
92 /// Return the single register used for this value, if any.
93 pub fn only_reg(self) -> Option<R> {
94 if self.len() == 1 {
95 Some(self.parts[0])
96 } else {
97 None
98 }
99 }
100
101 /// Return a slice of the registers storing this value.
102 pub fn regs(&self) -> &[R] {

Callers 15

init_retval_areaMethod · 0.80
gen_copy_arg_to_regsMethod · 0.80
gen_call_argsMethod · 0.80
newMethod · 0.80
gen_returnMethod · 0.80
abi_prepare_argsMethod · 0.80
temp_writable_gprMethod · 0.80
temp_writable_xmmMethod · 0.80

Calls 1

lenMethod · 0.45

Tested by

no test coverage detected