aboutsummaryrefslogtreecommitdiff
path: root/backend/include/rcc/CodeGen/MachineRegisterInfo.h
diff options
context:
space:
mode:
authorRichard-Qin-X <richard.qin.001@gmail.com>2026-08-09 04:40:17 +0800
committerRichard-Qin-X <richard.qin.001@gmail.com>2026-08-09 04:40:17 +0800
commite5fdceb9b869f010a2a75638fd38aaf1867f3008 (patch)
tree023d3e18960956f5ce369739c68aaa2a3e8400e7 /backend/include/rcc/CodeGen/MachineRegisterInfo.h
parent6c7cecc81a4c7e06e26027e21edd2cfd95a37a0b (diff)
downloadrcc-project-e5fdceb9b869f010a2a75638fd38aaf1867f3008.tar.gz
rcc-project-e5fdceb9b869f010a2a75638fd38aaf1867f3008.tar.xz
[CodeGen] Complete register allocation infrastructure
Diffstat (limited to 'backend/include/rcc/CodeGen/MachineRegisterInfo.h')
-rw-r--r--backend/include/rcc/CodeGen/MachineRegisterInfo.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/backend/include/rcc/CodeGen/MachineRegisterInfo.h b/backend/include/rcc/CodeGen/MachineRegisterInfo.h
index b6485e3..14e50a3 100644
--- a/backend/include/rcc/CodeGen/MachineRegisterInfo.h
+++ b/backend/include/rcc/CodeGen/MachineRegisterInfo.h
@@ -134,6 +134,7 @@ public:
[[nodiscard]] std::span<const PhysicalRegisterLiveIn> liveIns() const noexcept {
return LiveIns;
}
+ void clearLiveInVirtualRegisters() noexcept;
[[nodiscard]] Expected<void> reservePhysicalRegister(PhysicalRegister PhysReg);
[[nodiscard]] bool isReserved(PhysicalRegister PhysReg) const noexcept;