#ifndef __SCC_X86_REG_ALLOC_H__ #define __SCC_X86_REG_ALLOC_H__ #include "../core_pass/scc_reg_alloc.h" /* 默认位掩码策略:R8/R9 被排除(ABI 参数寄存器),剩余 6 个通用寄存器 */ void scc_reg_alloc_fill_arch_x86(scc_reg_alloc_op_t *ops); /* * 顺序分配策略:光标递增,永不回收。 * 池中包含 R8-R15(共 8 个寄存器),每分配一个光标前进一格。 * release_reg 为空操作;寄存器耗尽后 acquire_reg 返回 -1, * 由分配器回退为纯栈操作。 */ void scc_reg_alloc_fill_seq_x86(scc_reg_alloc_op_t *ops); #endif /* __SCC_X86_REG_ALLOC_H__ */