diff options
| author | Richard-Qin-X <richard.qin.001@gmail.com> | 2026-08-09 17:03:19 +0800 |
|---|---|---|
| committer | Richard-Qin-X <richard.qin.001@gmail.com> | 2026-08-09 17:03:19 +0800 |
| commit | 495c675771f43cfa12ab7a426a538be72fec1805 (patch) | |
| tree | 4107223d6c6ef2e74d56064aa21b196307502342 /backend/include/rcc/CodeGen/MachineLivenessRepair.h | |
| parent | da8bc76b4bf7d1a7b025d6c8ef5809551467dcc7 (diff) | |
| download | rcc-project-495c675771f43cfa12ab7a426a538be72fec1805.tar.gz rcc-project-495c675771f43cfa12ab7a426a538be72fec1805.tar.xz | |
[CodeGen] Implement machine optimization and scheduling
Diffstat (limited to 'backend/include/rcc/CodeGen/MachineLivenessRepair.h')
| -rw-r--r-- | backend/include/rcc/CodeGen/MachineLivenessRepair.h | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/backend/include/rcc/CodeGen/MachineLivenessRepair.h b/backend/include/rcc/CodeGen/MachineLivenessRepair.h new file mode 100644 index 0000000..049e166 --- /dev/null +++ b/backend/include/rcc/CodeGen/MachineLivenessRepair.h @@ -0,0 +1,23 @@ +// SPDX-License-Identifier: GPL-3.0-or-later + +#ifndef RCC_CODEGEN_MACHINELIVENESSREPAIR_H +#define RCC_CODEGEN_MACHINELIVENESSREPAIR_H + +#include "rcc/CodeGen/MachineLiveness.h" +#include "rcc/Support/Error.h" + +#include <span> + +namespace rcc { + +class MachineBasicBlock; +class TargetDescription; + +[[nodiscard]] Expected<bool> +repairPostRAMachineBlockLiveness(std::span<MachineBasicBlock *const> Blocks, + const TargetDescription &Target, + const LiveVariablesAnalysis::Result &Liveness); + +} // namespace rcc + +#endif // RCC_CODEGEN_MACHINELIVENESSREPAIR_H |
