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

Method from

cranelift/codegen/src/machinst/reg.rs:272–274  ·  view source on GitHub ↗
(vreg: regalloc2::VReg)

Source from the content-addressed store, hash-verified

270
271impl core::convert::From<regalloc2::VReg> for Reg {
272 fn from(vreg: regalloc2::VReg) -> Reg {
273 Reg(vreg.bits() as u32)
274 }
275}
276
277impl core::convert::From<regalloc2::VReg> for VirtualReg {

Callers

nothing calls this directly

Calls 8

VirtualRegClass · 0.85
RealRegClass · 0.85
fromFunction · 0.85
RegClass · 0.70
newFunction · 0.50
bitsMethod · 0.45
indexMethod · 0.45
classMethod · 0.45

Tested by

no test coverage detected