summaryrefslogtreecommitdiff
path: root/src/shader_recompiler/frontend/ir/opcodes.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/shader_recompiler/frontend/ir/opcodes.cpp')
-rw-r--r--src/shader_recompiler/frontend/ir/opcodes.cpp28
1 files changed, 27 insertions, 1 deletions
diff --git a/src/shader_recompiler/frontend/ir/opcodes.cpp b/src/shader_recompiler/frontend/ir/opcodes.cpp
index 8492a13d5..1cb9db6c9 100644
--- a/src/shader_recompiler/frontend/ir/opcodes.cpp
+++ b/src/shader_recompiler/frontend/ir/opcodes.cpp
@@ -17,7 +17,33 @@ struct OpcodeMeta {
17 std::array<Type, 5> arg_types; 17 std::array<Type, 5> arg_types;
18}; 18};
19 19
20using enum Type; 20// using enum Type;
21constexpr Type Void{Type::Void};
22constexpr Type Opaque{Type::Opaque};
23constexpr Type Label{Type::Label};
24constexpr Type Reg{Type::Reg};
25constexpr Type Pred{Type::Pred};
26constexpr Type Attribute{Type::Attribute};
27constexpr Type U1{Type::U1};
28constexpr Type U8{Type::U8};
29constexpr Type U16{Type::U16};
30constexpr Type U32{Type::U32};
31constexpr Type U64{Type::U64};
32constexpr Type F16{Type::F16};
33constexpr Type F32{Type::F32};
34constexpr Type F64{Type::F64};
35constexpr Type U32x2{Type::U32x2};
36constexpr Type U32x3{Type::U32x3};
37constexpr Type U32x4{Type::U32x4};
38constexpr Type F16x2{Type::F16x2};
39constexpr Type F16x3{Type::F16x3};
40constexpr Type F16x4{Type::F16x4};
41constexpr Type F32x2{Type::F32x2};
42constexpr Type F32x3{Type::F32x3};
43constexpr Type F32x4{Type::F32x4};
44constexpr Type F64x2{Type::F64x2};
45constexpr Type F64x3{Type::F64x3};
46constexpr Type F64x4{Type::F64x4};
21 47
22constexpr std::array META_TABLE{ 48constexpr std::array META_TABLE{
23#define OPCODE(name_token, type_token, ...) \ 49#define OPCODE(name_token, type_token, ...) \