Create a register from its encoding and class.
(class: RegClass, enc: usize)
| 26 | impl 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 { |
no test coverage detected