summaryrefslogtreecommitdiff
path: root/src/shader_recompiler/backend/glasm/reg_alloc.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/shader_recompiler/backend/glasm/reg_alloc.h')
-rw-r--r--src/shader_recompiler/backend/glasm/reg_alloc.h10
1 files changed, 9 insertions, 1 deletions
diff --git a/src/shader_recompiler/backend/glasm/reg_alloc.h b/src/shader_recompiler/backend/glasm/reg_alloc.h
index 8df73ca18..5742436cf 100644
--- a/src/shader_recompiler/backend/glasm/reg_alloc.h
+++ b/src/shader_recompiler/backend/glasm/reg_alloc.h
@@ -99,8 +99,12 @@ public:
99 99
100 Register LongDefine(IR::Inst& inst); 100 Register LongDefine(IR::Inst& inst);
101 101
102 [[nodiscard]] Value Peek(const IR::Value& value);
103
102 Value Consume(const IR::Value& value); 104 Value Consume(const IR::Value& value);
103 105
106 void Unref(IR::Inst& inst);
107
104 [[nodiscard]] Register AllocReg(); 108 [[nodiscard]] Register AllocReg();
105 109
106 [[nodiscard]] Register AllocLongReg(); 110 [[nodiscard]] Register AllocLongReg();
@@ -123,9 +127,13 @@ private:
123 static constexpr size_t NUM_REGS = 4096; 127 static constexpr size_t NUM_REGS = 4096;
124 static constexpr size_t NUM_ELEMENTS = 4; 128 static constexpr size_t NUM_ELEMENTS = 4;
125 129
130 Value MakeImm(const IR::Value& value);
131
126 Register Define(IR::Inst& inst, bool is_long); 132 Register Define(IR::Inst& inst, bool is_long);
127 133
128 Value Consume(IR::Inst& inst); 134 Value PeekInst(IR::Inst& inst);
135
136 Value ConsumeInst(IR::Inst& inst);
129 137
130 Id Alloc(bool is_long); 138 Id Alloc(bool is_long);
131 139