summaryrefslogtreecommitdiff
path: root/src/shader_recompiler/frontend/ir
diff options
context:
space:
mode:
authorGravatar ReinUsesLisp2021-05-08 16:28:52 -0300
committerGravatar ameerj2021-07-22 21:51:30 -0400
commit6fd190d1ae4275a06ed2e488401e1d63912954be (patch)
treeece4681d18c7b0b5bcb6b540ea4a21b32c19b363 /src/shader_recompiler/frontend/ir
parentglasm: Changes to GLASM register allocator and emit context (diff)
downloadyuzu-6fd190d1ae4275a06ed2e488401e1d63912954be.tar.gz
yuzu-6fd190d1ae4275a06ed2e488401e1d63912954be.tar.xz
yuzu-6fd190d1ae4275a06ed2e488401e1d63912954be.zip
glasm: Implement basic GLASM instructions
Diffstat (limited to 'src/shader_recompiler/frontend/ir')
-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 c73851d11..beaf149f3 100644
--- a/src/shader_recompiler/frontend/ir/value.h
+++ b/src/shader_recompiler/frontend/ir/value.h
@@ -224,6 +224,12 @@ public:
224 --use_count; 224 --use_count;
225 } 225 }
226 226
227 /// Destructively add usages to the instruction
228 /// Useful for register allocation
229 void DestructiveAddUsage(int count) {
230 use_count += count;
231 }
232
227private: 233private:
228 struct NonTriviallyDummy { 234 struct NonTriviallyDummy {
229 NonTriviallyDummy() noexcept {} 235 NonTriviallyDummy() noexcept {}