summaryrefslogtreecommitdiff
path: root/src/shader_recompiler/frontend/ir/value.h
diff options
context:
space:
mode:
authorGravatar ReinUsesLisp2021-05-05 02:19:08 -0300
committerGravatar ameerj2021-07-22 21:51:30 -0400
commitb10cf64c486d8730fcfeb53a333814915b3b5fbe (patch)
tree59cb4f62ac806071e0f0a341589c164017520f3a /src/shader_recompiler/frontend/ir/value.h
parentshader: ISET.X implementation (diff)
downloadyuzu-b10cf64c486d8730fcfeb53a333814915b3b5fbe.tar.gz
yuzu-b10cf64c486d8730fcfeb53a333814915b3b5fbe.tar.xz
yuzu-b10cf64c486d8730fcfeb53a333814915b3b5fbe.zip
glasm: Add GLASM backend infrastructure
Diffstat (limited to 'src/shader_recompiler/frontend/ir/value.h')
-rw-r--r--src/shader_recompiler/frontend/ir/value.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/shader_recompiler/frontend/ir/value.h b/src/shader_recompiler/frontend/ir/value.h
index bb7d19001..c73851d11 100644
--- a/src/shader_recompiler/frontend/ir/value.h
+++ b/src/shader_recompiler/frontend/ir/value.h
@@ -218,6 +218,12 @@ public:
218 return Common::BitCast<DefinitionType>(definition); 218 return Common::BitCast<DefinitionType>(definition);
219 } 219 }
220 220
221 /// Destructively remove one reference count from the instruction
222 /// Useful for register allocation
223 void DestructiveRemoveUsage() {
224 --use_count;
225 }
226
221private: 227private:
222 struct NonTriviallyDummy { 228 struct NonTriviallyDummy {
223 NonTriviallyDummy() noexcept {} 229 NonTriviallyDummy() noexcept {}