summaryrefslogtreecommitdiffstats
path: root/src/shader_recompiler/frontend
diff options
context:
space:
mode:
authorReinUsesLisp <reinuseslisp@airmail.cc>2021-04-21 09:58:23 +0200
committerameerj <52414509+ameerj@users.noreply.github.com>2021-07-23 03:51:28 +0200
commit23182fa59c45a88b706022c1373e307ba4636cca (patch)
treed67509fa5ca2370bf4cf88aa69aaf36cdf58d660 /src/shader_recompiler/frontend
parentcmake: Link to common in shader_recompiler (diff)
downloadyuzu-23182fa59c45a88b706022c1373e307ba4636cca.tar
yuzu-23182fa59c45a88b706022c1373e307ba4636cca.tar.gz
yuzu-23182fa59c45a88b706022c1373e307ba4636cca.tar.bz2
yuzu-23182fa59c45a88b706022c1373e307ba4636cca.tar.lz
yuzu-23182fa59c45a88b706022c1373e307ba4636cca.tar.xz
yuzu-23182fa59c45a88b706022c1373e307ba4636cca.tar.zst
yuzu-23182fa59c45a88b706022c1373e307ba4636cca.zip
Diffstat (limited to 'src/shader_recompiler/frontend')
-rw-r--r--src/shader_recompiler/frontend/ir/basic_block.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/shader_recompiler/frontend/ir/basic_block.h b/src/shader_recompiler/frontend/ir/basic_block.h
index ab7ddb3d5..0b0c97af6 100644
--- a/src/shader_recompiler/frontend/ir/basic_block.h
+++ b/src/shader_recompiler/frontend/ir/basic_block.h
@@ -107,6 +107,13 @@ public:
return ssa_reg_values[RegIndex(reg)];
}
+ void SsaSeal() noexcept {
+ is_ssa_sealed = true;
+ }
+ [[nodiscard]] bool IsSsaSealed() const noexcept {
+ return is_ssa_sealed;
+ }
+
[[nodiscard]] bool empty() const {
return instructions.empty();
}
@@ -190,6 +197,8 @@ private:
/// Intrusively store the value of a register in the block.
std::array<Value, NUM_REGS> ssa_reg_values;
+ /// Intrusively store if the block is sealed in the SSA pass.
+ bool is_ssa_sealed{false};
/// Intrusively stored host definition of this block.
u32 definition{};