diff options
author | ReinUsesLisp <reinuseslisp@airmail.cc> | 2021-05-17 19:24:09 -0300 |
---|---|---|
committer | ameerj <52414509+ameerj@users.noreply.github.com> | 2021-07-22 21:51:31 -0400 |
commit | fb3ba62b3a47ad645b007d5031ed9f8aaa7cb5c0 (patch) | |
tree | a646ef0f5b2fde47b18f00231157282323c46bf0 /src/shader_recompiler/backend/glasm/reg_alloc.h | |
parent | f1b334b9f950fa58e2cb0e27574b06a0622a99f6 (diff) |
glasm: Fix aliased bitcasts ref counting
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 ede6edd1f3..41b7c92be3 100644 --- a/src/shader_recompiler/backend/glasm/reg_alloc.h +++ b/src/shader_recompiler/backend/glasm/reg_alloc.h @@ -126,6 +126,12 @@ public: return num_used_long_registers; } + /// Returns true if the instruction is expected to be aliased to another + static bool IsAliased(const IR::Inst& inst); + + /// Returns the underlying value out of an alias sequence + static IR::Inst& AliasInst(IR::Inst& inst); + private: static constexpr size_t NUM_REGS = 4096; static constexpr size_t NUM_ELEMENTS = 4; |