diff options
Diffstat (limited to 'src/shader_recompiler/backend/glasm/reg_alloc.h')
| -rw-r--r-- | src/shader_recompiler/backend/glasm/reg_alloc.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/shader_recompiler/backend/glasm/reg_alloc.h b/src/shader_recompiler/backend/glasm/reg_alloc.h index ede6edd1f..41b7c92be 100644 --- a/src/shader_recompiler/backend/glasm/reg_alloc.h +++ b/src/shader_recompiler/backend/glasm/reg_alloc.h | |||
| @@ -126,6 +126,12 @@ public: | |||
| 126 | return num_used_long_registers; | 126 | return num_used_long_registers; |
| 127 | } | 127 | } |
| 128 | 128 | ||
| 129 | /// Returns true if the instruction is expected to be aliased to another | ||
| 130 | static bool IsAliased(const IR::Inst& inst); | ||
| 131 | |||
| 132 | /// Returns the underlying value out of an alias sequence | ||
| 133 | static IR::Inst& AliasInst(IR::Inst& inst); | ||
| 134 | |||
| 129 | private: | 135 | private: |
| 130 | static constexpr size_t NUM_REGS = 4096; | 136 | static constexpr size_t NUM_REGS = 4096; |
| 131 | static constexpr size_t NUM_ELEMENTS = 4; | 137 | static constexpr size_t NUM_ELEMENTS = 4; |