summaryrefslogtreecommitdiff
path: root/src/shader_recompiler/backend/glasm/emit_glasm_select.cpp
diff options
context:
space:
mode:
authorGravatar ReinUsesLisp2021-05-09 03:11:34 -0300
committerGravatar ameerj2021-07-22 21:51:30 -0400
commit1c9307969c4e3f6206947f1360acae33f95a4a86 (patch)
tree86ccd9c88333327d7659a396f66301955a088f45 /src/shader_recompiler/backend/glasm/emit_glasm_select.cpp
parentglasm: Use CMP.S for Select32 (diff)
downloadyuzu-1c9307969c4e3f6206947f1360acae33f95a4a86.tar.gz
yuzu-1c9307969c4e3f6206947f1360acae33f95a4a86.tar.xz
yuzu-1c9307969c4e3f6206947f1360acae33f95a4a86.zip
glasm: Make GLASM aware of types
Diffstat (limited to 'src/shader_recompiler/backend/glasm/emit_glasm_select.cpp')
-rw-r--r--src/shader_recompiler/backend/glasm/emit_glasm_select.cpp46
1 files changed, 0 insertions, 46 deletions
diff --git a/src/shader_recompiler/backend/glasm/emit_glasm_select.cpp b/src/shader_recompiler/backend/glasm/emit_glasm_select.cpp
index 16f6c33f3..e69de29bb 100644
--- a/src/shader_recompiler/backend/glasm/emit_glasm_select.cpp
+++ b/src/shader_recompiler/backend/glasm/emit_glasm_select.cpp
@@ -1,46 +0,0 @@
1// Copyright 2021 yuzu Emulator Project
2// Licensed under GPLv2 or any later version
3// Refer to the license.txt file included.
4
5#include <string_view>
6
7#include "shader_recompiler/backend/glasm/emit_context.h"
8#include "shader_recompiler/backend/glasm/emit_glasm_instructions.h"
9#include "shader_recompiler/frontend/ir/value.h"
10
11namespace Shader::Backend::GLASM {
12
13void EmitSelectU1(EmitContext&, std::string_view, std::string_view, std::string_view) {
14 throw NotImplementedException("GLASM instruction");
15}
16
17void EmitSelectU8(EmitContext&, std::string_view, std::string_view, std::string_view) {
18 throw NotImplementedException("GLASM instruction");
19}
20
21void EmitSelectU16(EmitContext&, std::string_view, std::string_view, std::string_view) {
22 throw NotImplementedException("GLASM instruction");
23}
24
25void EmitSelectU32(EmitContext& ctx, IR::Inst& inst, std::string_view cond,
26 std::string_view true_value, std::string_view false_value) {
27 ctx.Add("CMP.S {},{},{},{};", inst, cond, true_value, false_value);
28}
29
30void EmitSelectU64(EmitContext&, std::string_view, std::string_view, std::string_view) {
31 throw NotImplementedException("GLASM instruction");
32}
33
34void EmitSelectF16(EmitContext&, std::string_view, std::string_view, std::string_view) {
35 throw NotImplementedException("GLASM instruction");
36}
37
38void EmitSelectF32(EmitContext& ctx, IR::Inst& inst, std::string_view cond,
39 std::string_view true_value, std::string_view false_value) {
40 ctx.Add("CMP.S {},{},{},{};", inst, cond, true_value, false_value);
41}
42
43void EmitSelectF64(EmitContext&, std::string_view, std::string_view, std::string_view) {
44 throw NotImplementedException("GLASM instruction");
45}
46} // namespace Shader::Backend::GLASM