aboutsummaryrefslogtreecommitdiff
path: root/backend/include/rcc/CodeGen/LivePhysRegs.h
blob: 3d4b7efe7056ad55f9ac0326ce37e1e43fc706bd (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_LIVEPHYSREGS_H
#define RCC_CODEGEN_LIVEPHYSREGS_H

#include "rcc/CodeGen/LiveVariables.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_LIVEPHYSREGS_H