summaryrefslogtreecommitdiffstats
path: root/src/shader_recompiler/frontend/ir/value.cpp
diff options
context:
space:
mode:
authorReinUsesLisp <reinuseslisp@airmail.cc>2021-04-21 07:42:36 +0200
committerameerj <52414509+ameerj@users.noreply.github.com>2021-07-23 03:51:28 +0200
commitc84bbd9e44e34bba0e602c1a6736535aa531445c (patch)
tree6e1a97dd556fe51d70c5acc18b7258655430e131 /src/shader_recompiler/frontend/ir/value.cpp
parentshader: Move microinstruction header to the value header (diff)
downloadyuzu-c84bbd9e44e34bba0e602c1a6736535aa531445c.tar
yuzu-c84bbd9e44e34bba0e602c1a6736535aa531445c.tar.gz
yuzu-c84bbd9e44e34bba0e602c1a6736535aa531445c.tar.bz2
yuzu-c84bbd9e44e34bba0e602c1a6736535aa531445c.tar.lz
yuzu-c84bbd9e44e34bba0e602c1a6736535aa531445c.tar.xz
yuzu-c84bbd9e44e34bba0e602c1a6736535aa531445c.tar.zst
yuzu-c84bbd9e44e34bba0e602c1a6736535aa531445c.zip
Diffstat (limited to '')
-rw-r--r--src/shader_recompiler/frontend/ir/value.cpp19
1 files changed, 0 insertions, 19 deletions
diff --git a/src/shader_recompiler/frontend/ir/value.cpp b/src/shader_recompiler/frontend/ir/value.cpp
index a8a919e0e..c021d3fa9 100644
--- a/src/shader_recompiler/frontend/ir/value.cpp
+++ b/src/shader_recompiler/frontend/ir/value.cpp
@@ -33,25 +33,6 @@ Value::Value(u64 value) noexcept : type{Type::U64}, imm_u64{value} {}
Value::Value(f64 value) noexcept : type{Type::F64}, imm_f64{value} {}
-bool Value::IsIdentity() const noexcept {
- return type == Type::Opaque && inst->GetOpcode() == Opcode::Identity;
-}
-
-bool Value::IsPhi() const noexcept {
- return type == Type::Opaque && inst->GetOpcode() == Opcode::Phi;
-}
-
-bool Value::IsEmpty() const noexcept {
- return type == Type::Void;
-}
-
-bool Value::IsImmediate() const noexcept {
- if (IsIdentity()) {
- return inst->Arg(0).IsImmediate();
- }
- return type != Type::Opaque;
-}
-
bool Value::IsLabel() const noexcept {
return type == Type::Label;
}