From f5d9ddc085055d28d6f9fb3730c3566097f43fb2 Mon Sep 17 00:00:00 2001 From: Richard-Qin-X Date: Tue, 25 Aug 2026 03:11:23 +0800 Subject: [CodeGen] Implement the greedy register allocator pipeline --- backend/include/rcc/CodeGen/RegAllocCommon.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'backend/include/rcc/CodeGen/RegAllocCommon.h') diff --git a/backend/include/rcc/CodeGen/RegAllocCommon.h b/backend/include/rcc/CodeGen/RegAllocCommon.h index ac3aa56..5994d64 100644 --- a/backend/include/rcc/CodeGen/RegAllocCommon.h +++ b/backend/include/rcc/CodeGen/RegAllocCommon.h @@ -19,6 +19,9 @@ struct RegisterAllocationOptions final { [[nodiscard]] std::unique_ptr createBasicAllocatorPass(const TargetRegisterAllocationInfo &Info, RegisterAllocationOptions Options = {}); +[[nodiscard]] std::unique_ptr +createGreedyAllocatorPass(const TargetRegisterAllocationInfo &Info, + RegisterAllocationOptions Options = {}); } // namespace rcc -- cgit v1.2.3