[backend]强化了线性扫描逻辑

This commit is contained in:
Lixuanwang
2025-08-04 19:28:15 +08:00
parent b5f14d9385
commit 881c2a9723
3 changed files with 206 additions and 123 deletions

View File

@@ -41,6 +41,8 @@ enum class PhysicalReg {
// 假设 vreg_counter 不会达到这么大的值
PHYS_REG_START_ID = 1000000,
PHYS_REG_END_ID = PHYS_REG_START_ID + 320, // 预留足够的空间
INVALID, ///< 无效寄存器标记
};
// RISC-V 指令操作码枚举