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

Method alloc_tmp

cranelift/codegen/src/machinst/lower.rs:1659–1661  ·  view source on GitHub ↗

Get a new temp.

(&mut self, ty: Type)

Source from the content-addressed store, hash-verified

1657impl<'func, I: VCodeInst> Lower<'func, I> {
1658 /// Get a new temp.
1659 pub fn alloc_tmp(&mut self, ty: Type) -> ValueRegs<Writable<Reg>> {
1660 writable_value_regs(self.vregs.alloc_with_deferred_error(ty))
1661 }
1662
1663 /// Emit a machine instruction.
1664 pub fn emit(&mut self, mach_inst: I) {

Calls 2

writable_value_regsFunction · 0.85

Tested by

no test coverage detected