| 69 | #[expect(non_camel_case_types, reason = "matching in-asm register names")] |
| 70 | #[rustfmt::skip] |
| 71 | pub enum XReg { |
| 72 | x0, x1, x2, x3, x4, x5, x6, x7, x8, x9, |
| 73 | x10, x11, x12, x13, x14, x15, x16, x17, x18, x19, |
| 74 | x20, x21, x22, x23, x24, x25, x26, x27, x28, x29, |
| 75 | |
| 76 | /// The special `sp` stack pointer register. |
| 77 | sp, |
| 78 | |
| 79 | /// The special `spilltmp0` scratch register. |
| 80 | spilltmp0, |
| 81 | |
| 82 | } |
| 83 | |
| 84 | impl XReg { |
| 85 | /// Index of the first "special" register. |