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

Method any_gpr

winch/codegen/src/codegen/context.rs:184–186  ·  view source on GitHub ↗

Convenience wrapper around `CodeGenContext::reg_for_class`, to request the next available general purpose register.

(&mut self, masm: &mut M)

Source from the content-addressed store, hash-verified

182 /// Convenience wrapper around `CodeGenContext::reg_for_class`, to
183 /// request the next available general purpose register.
184 pub fn any_gpr<M: MacroAssembler>(&mut self, masm: &mut M) -> Result<Reg> {
185 self.reg_for_class(RegClass::Int, masm)
186 }
187
188 /// Convenience wrapper around `CodeGenContext::reg_for_class`, to
189 /// request the next available floating point register.

Callers 15

visit_br_tableMethod · 0.80
visit_v128_any_trueMethod · 0.80
mul_wideMethod · 0.80
load_dynamic_heap_boundsFunction · 0.80
load_heap_addr_checkedFunction · 0.80
emit_get_global_addrMethod · 0.80
emit_table_getMethod · 0.80
emit_table_setMethod · 0.80
emit_table_growMethod · 0.80
emit_table_fillMethod · 0.80

Calls 1

reg_for_classMethod · 0.45

Tested by

no test coverage detected