fix(backend): Registers can alloc, ret var and asm format

This commit is contained in:
2026-05-12 14:42:20 +08:00
parent 6a45749113
commit de712d0bc5
3 changed files with 15 additions and 6 deletions
+1 -1
View File
@@ -43,7 +43,7 @@ pub const REGISTERS: &[Register] = &[
];
pub const REGISTERS_CAN_ALLOC: &[Register] = &[
REG_R0, REG_R1, REG_R2, REG_R3, REG_R4, REG_R5, REG_R6, REG_R7, REG_R8, REG_R9, REG_R10, REG_R11, REG_R12
REG_R0, REG_R1, REG_R2, REG_R3, REG_R4, REG_R5, REG_R6, REG_R7, REG_R8, REG_R9, REG_R10, REG_R12
];
pub struct RegisterAlloc {
allocator: Weak<RefCell<RegisterAllocatorInner>>,