From 495c675771f43cfa12ab7a426a538be72fec1805 Mon Sep 17 00:00:00 2001 From: Richard-Qin-X Date: Sun, 9 Aug 2026 17:03:19 +0800 Subject: [CodeGen] Implement machine optimization and scheduling --- backend/include/rcc/CodeGen/MachineFunctionRecords.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'backend/include/rcc/CodeGen/MachineFunctionRecords.h') diff --git a/backend/include/rcc/CodeGen/MachineFunctionRecords.h b/backend/include/rcc/CodeGen/MachineFunctionRecords.h index b792494..645d514 100644 --- a/backend/include/rcc/CodeGen/MachineFunctionRecords.h +++ b/backend/include/rcc/CodeGen/MachineFunctionRecords.h @@ -117,6 +117,9 @@ public: [[nodiscard]] Expected addCalledGlobal(MachineCalledGlobal CalledGlobal); + [[nodiscard]] Expected replaceInstructionReference(MachineInstrStableID OldInstruction, + MachineInstrStableID NewInstruction); + [[nodiscard]] std::span prefetchTargets() const noexcept { return PrefetchTargets; } -- cgit v1.2.3