aboutsummaryrefslogtreecommitdiff
path: root/backend/include/rcc/CodeGen/MachineLivenessRepair.h
blob: 049e16680a9ddec24d1b39ca9150be32e188c660 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
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