[backend-IRC]初步构建新的寄存器分配器

This commit is contained in:
Lixuanwang
2025-07-31 23:02:53 +08:00
parent e8699d6d25
commit 03e88eee70
11 changed files with 1514 additions and 1028 deletions

View File

@@ -0,0 +1,20 @@
#ifndef ELIMINATE_FRAME_INDICES_H
#define ELIMINATE_FRAME_INDICES_H
#include "RISCv64LLIR.h"
namespace sysy {
class EliminateFrameIndicesPass {
public:
// Pass 的主入口函数
void runOnMachineFunction(MachineFunction* mfunc);
private:
// 帮助计算类型大小的辅助函数从原RegAlloc中移出
unsigned getTypeSizeInBytes(Type* type);
};
} // namespace sysy
#endif // ELIMINATE_FRAME_INDICES_H