diff options
Diffstat (limited to '')
| -rw-r--r-- | src/shader_recompiler/frontend/ir/value.cpp | 19 |
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} {} | |||
| 33 | 33 | ||
| 34 | Value::Value(f64 value) noexcept : type{Type::F64}, imm_f64{value} {} | 34 | Value::Value(f64 value) noexcept : type{Type::F64}, imm_f64{value} {} |
| 35 | 35 | ||
| 36 | bool Value::IsIdentity() const noexcept { | ||
| 37 | return type == Type::Opaque && inst->GetOpcode() == Opcode::Identity; | ||
| 38 | } | ||
| 39 | |||
| 40 | bool Value::IsPhi() const noexcept { | ||
| 41 | return type == Type::Opaque && inst->GetOpcode() == Opcode::Phi; | ||
| 42 | } | ||
| 43 | |||
| 44 | bool Value::IsEmpty() const noexcept { | ||
| 45 | return type == Type::Void; | ||
| 46 | } | ||
| 47 | |||
| 48 | bool Value::IsImmediate() const noexcept { | ||
| 49 | if (IsIdentity()) { | ||
| 50 | return inst->Arg(0).IsImmediate(); | ||
| 51 | } | ||
| 52 | return type != Type::Opaque; | ||
| 53 | } | ||
| 54 | |||
| 55 | bool Value::IsLabel() const noexcept { | 36 | bool Value::IsLabel() const noexcept { |
| 56 | return type == Type::Label; | 37 | return type == Type::Label; |
| 57 | } | 38 | } |