aboutsummaryrefslogtreecommitdiff
path: root/backend/include/rcc/CodeGen/LivePhysRegs.h
diff options
context:
space:
mode:
Diffstat (limited to 'backend/include/rcc/CodeGen/LivePhysRegs.h')
-rw-r--r--backend/include/rcc/CodeGen/LivePhysRegs.h23
1 files changed, 23 insertions, 0 deletions
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 <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