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

Method from

winch/codegen/src/isa/reg.rs:28–30  ·  view source on GitHub ↗

Create a register from its encoding and class.

(class: RegClass, enc: usize)

Source from the content-addressed store, hash-verified

26impl Reg {
27 /// Create a register from its encoding and class.
28 pub fn from(class: RegClass, enc: usize) -> Self {
29 Self::new(PReg::new(enc, class))
30 }
31
32 /// Create a new register from a physical register.
33 pub const fn new(raw: PReg) -> Self {

Callers 1

Calls 2

newFunction · 0.50
innerMethod · 0.45

Tested by

no test coverage detected