summaryrefslogtreecommitdiffstats
path: root/src/shader_recompiler/frontend/ir/value.h
diff options
context:
space:
mode:
authorFernando S <fsahmkow27@gmail.com>2022-03-25 03:21:27 +0100
committerGitHub <noreply@github.com>2022-03-25 03:21:27 +0100
commitd108c2873d8a7ef223ca1bd9244038823484ed37 (patch)
treee980f9291919199b51152f48d30dc67d38febfe1 /src/shader_recompiler/frontend/ir/value.h
parentMerge pull request #8074 from liamwhite/cached-words (diff)
parentdead_code_elimination_pass: Remove unreachable Phi arguments (diff)
downloadyuzu-d108c2873d8a7ef223ca1bd9244038823484ed37.tar
yuzu-d108c2873d8a7ef223ca1bd9244038823484ed37.tar.gz
yuzu-d108c2873d8a7ef223ca1bd9244038823484ed37.tar.bz2
yuzu-d108c2873d8a7ef223ca1bd9244038823484ed37.tar.lz
yuzu-d108c2873d8a7ef223ca1bd9244038823484ed37.tar.xz
yuzu-d108c2873d8a7ef223ca1bd9244038823484ed37.tar.zst
yuzu-d108c2873d8a7ef223ca1bd9244038823484ed37.zip
Diffstat (limited to '')
-rw-r--r--src/shader_recompiler/frontend/ir/value.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/shader_recompiler/frontend/ir/value.h b/src/shader_recompiler/frontend/ir/value.h
index 947579852..14f6e55bc 100644
--- a/src/shader_recompiler/frontend/ir/value.h
+++ b/src/shader_recompiler/frontend/ir/value.h
@@ -179,9 +179,13 @@ public:
/// Get a pointer to the block of a phi argument.
[[nodiscard]] Block* PhiBlock(size_t index) const;
+
/// Add phi operand to a phi instruction.
void AddPhiOperand(Block* predecessor, const Value& value);
+ // Erase the phi operand at the given index.
+ void ErasePhiOperand(size_t index);
+
/// Orders the Phi arguments from farthest away to nearest.
void OrderPhiArgs();