[backend]添加了一个Pass,将调用者、被调用者寄存器实现转移到其中

This commit is contained in:
Lixuanwang
2025-07-26 18:38:04 +08:00
parent 8ae7478ef3
commit 540742be0c
7 changed files with 142 additions and 57 deletions

View File

@@ -56,8 +56,6 @@ private:
// 存储vreg到IR Value*的反向映射
// 这个map将在run()函数开始时被填充并在rewriteFunction()中使用。
std::map<unsigned, Value*> vreg_to_value_map;
std::set<PhysicalReg> used_callee_saved_regs;
// 用于计算类型大小的辅助函数
unsigned getTypeSizeInBytes(Type* type);