From 6c7cecc81a4c7e06e26027e21edd2cfd95a37a0b Mon Sep 17 00:00:00 2001 From: Richard-Qin-X Date: Sun, 9 Aug 2026 00:27:27 +0800 Subject: [CodeGen] Implement machine liveness analysis --- backend/include/rcc/CodeGen/MachineBasicBlock.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'backend/include/rcc/CodeGen/MachineBasicBlock.h') diff --git a/backend/include/rcc/CodeGen/MachineBasicBlock.h b/backend/include/rcc/CodeGen/MachineBasicBlock.h index d82477a..da538db 100644 --- a/backend/include/rcc/CodeGen/MachineBasicBlock.h +++ b/backend/include/rcc/CodeGen/MachineBasicBlock.h @@ -113,6 +113,9 @@ public: [[nodiscard]] Expected addLiveIn(PhysicalRegister PhysReg, LaneMask Lanes = LaneMask::all()); [[nodiscard]] Expected removeLiveIn(PhysicalRegister PhysReg); + void clearLiveIns() noexcept { + LiveIns.clear(); + } [[nodiscard]] std::span liveIns() const noexcept { return LiveIns; } -- cgit v1.2.3