From a2f8d7c5e22b510965327383410bd576f7cf28e7 Mon Sep 17 00:00:00 2001 From: Richard-Qin-X Date: Thu, 13 Aug 2026 04:17:52 +0800 Subject: [CodeGen] Split machine liveness components --- backend/include/rcc/CodeGen/LivePhysRegs.h | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 backend/include/rcc/CodeGen/LivePhysRegs.h (limited to 'backend/include/rcc/CodeGen/LivePhysRegs.h') diff --git a/backend/include/rcc/CodeGen/LivePhysRegs.h b/backend/include/rcc/CodeGen/LivePhysRegs.h new file mode 100644 index 0000000..3d4b7ef --- /dev/null +++ b/backend/include/rcc/CodeGen/LivePhysRegs.h @@ -0,0 +1,23 @@ +// SPDX-License-Identifier: GPL-3.0-or-later + +#ifndef RCC_CODEGEN_LIVEPHYSREGS_H +#define RCC_CODEGEN_LIVEPHYSREGS_H + +#include "rcc/CodeGen/LiveVariables.h" +#include "rcc/Support/Error.h" + +#include + +namespace rcc { + +class MachineBasicBlock; +class TargetDescription; + +[[nodiscard]] Expected +repairPostRAMachineBlockLiveness(std::span Blocks, + const TargetDescription &Target, + const LiveVariablesAnalysis::Result &Liveness); + +} // namespace rcc + +#endif // RCC_CODEGEN_LIVEPHYSREGS_H -- cgit v1.2.3