diff options
| author | 2021-05-19 21:58:32 -0400 | |
|---|---|---|
| committer | 2021-07-22 21:51:35 -0400 | |
| commit | eaff1030de07f3739794207403ea833ee91c0034 (patch) | |
| tree | c2e6650ba13f55854b5cba9a79d9afc01528eb96 /src/shader_recompiler/backend | |
| parent | spirv: Reduce log severity of mismatching denorm rules (diff) | |
| download | yuzu-eaff1030de07f3739794207403ea833ee91c0034.tar.gz yuzu-eaff1030de07f3739794207403ea833ee91c0034.tar.xz yuzu-eaff1030de07f3739794207403ea833ee91c0034.zip | |
glsl: Initial backend
Diffstat (limited to 'src/shader_recompiler/backend')
26 files changed, 3266 insertions, 0 deletions
diff --git a/src/shader_recompiler/backend/glsl/emit_context.cpp b/src/shader_recompiler/backend/glsl/emit_context.cpp new file mode 100644 index 000000000..e2a9885f0 --- /dev/null +++ b/src/shader_recompiler/backend/glsl/emit_context.cpp | |||
| @@ -0,0 +1,30 @@ | |||
| 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 "shader_recompiler/backend/bindings.h" | ||
| 6 | #include "shader_recompiler/backend/glsl/emit_context.h" | ||
| 7 | #include "shader_recompiler/frontend/ir/program.h" | ||
| 8 | |||
| 9 | namespace Shader::Backend::GLSL { | ||
| 10 | |||
| 11 | EmitContext::EmitContext(IR::Program& program, [[maybe_unused]] Bindings& bindings, | ||
| 12 | const Profile& profile_) | ||
| 13 | : info{program.info}, profile{profile_} { | ||
| 14 | std::string header = "#version 450 core\n"; | ||
| 15 | header += "layout(local_size_x=1, local_size_y=1, local_size_z=1) in;"; | ||
| 16 | code += header; | ||
| 17 | DefineConstantBuffers(); | ||
| 18 | code += "void main(){"; | ||
| 19 | } | ||
| 20 | |||
| 21 | void EmitContext::DefineConstantBuffers() { | ||
| 22 | if (info.constant_buffer_descriptors.empty()) { | ||
| 23 | return; | ||
| 24 | } | ||
| 25 | for (const auto& desc : info.constant_buffer_descriptors) { | ||
| 26 | Add("uniform uint c{}[{}];", desc.index, desc.count); | ||
| 27 | } | ||
| 28 | } | ||
| 29 | |||
| 30 | } // namespace Shader::Backend::GLSL | ||
diff --git a/src/shader_recompiler/backend/glsl/emit_context.h b/src/shader_recompiler/backend/glsl/emit_context.h new file mode 100644 index 000000000..ffc97007d --- /dev/null +++ b/src/shader_recompiler/backend/glsl/emit_context.h | |||
| @@ -0,0 +1,62 @@ | |||
| 1 | // Copyright 2021 yuzu Emulator Project | ||
| 2 | // Licensed under GPLv2 or any later version | ||
| 3 | // Refer to the license.txt file included. | ||
| 4 | |||
| 5 | #pragma once | ||
| 6 | |||
| 7 | #include <string> | ||
| 8 | #include <utility> | ||
| 9 | #include <fmt/format.h> | ||
| 10 | |||
| 11 | #include "shader_recompiler/backend/glsl/reg_alloc.h" | ||
| 12 | #include "shader_recompiler/stage.h" | ||
| 13 | |||
| 14 | namespace Shader { | ||
| 15 | struct Info; | ||
| 16 | struct Profile; | ||
| 17 | } // namespace Shader | ||
| 18 | |||
| 19 | namespace Shader::Backend { | ||
| 20 | struct Bindings; | ||
| 21 | } | ||
| 22 | |||
| 23 | namespace Shader::IR { | ||
| 24 | class Inst; | ||
| 25 | struct Program; | ||
| 26 | } // namespace Shader::IR | ||
| 27 | |||
| 28 | namespace Shader::Backend::GLSL { | ||
| 29 | |||
| 30 | class EmitContext { | ||
| 31 | public: | ||
| 32 | explicit EmitContext(IR::Program& program, Bindings& bindings, const Profile& profile_); | ||
| 33 | |||
| 34 | template <typename... Args> | ||
| 35 | void Add(const char* format_str, IR::Inst& inst, Args&&... args) { | ||
| 36 | code += fmt::format(format_str, reg_alloc.Define(inst), std::forward<Args>(args)...); | ||
| 37 | // TODO: Remove this | ||
| 38 | code += '\n'; | ||
| 39 | } | ||
| 40 | |||
| 41 | template <typename... Args> | ||
| 42 | void Add(const char* format_str, Args&&... args) { | ||
| 43 | code += fmt::format(format_str, std::forward<Args>(args)...); | ||
| 44 | // TODO: Remove this | ||
| 45 | code += '\n'; | ||
| 46 | } | ||
| 47 | |||
| 48 | std::string AllocVar() { | ||
| 49 | return fmt::format("var_{}", var_num++); | ||
| 50 | } | ||
| 51 | |||
| 52 | std::string code; | ||
| 53 | RegAlloc reg_alloc; | ||
| 54 | const Info& info; | ||
| 55 | const Profile& profile; | ||
| 56 | u64 var_num{}; | ||
| 57 | |||
| 58 | private: | ||
| 59 | void DefineConstantBuffers(); | ||
| 60 | }; | ||
| 61 | |||
| 62 | } // namespace Shader::Backend::GLSL | ||
diff --git a/src/shader_recompiler/backend/glsl/emit_glsl.cpp b/src/shader_recompiler/backend/glsl/emit_glsl.cpp new file mode 100644 index 000000000..bb1d8b272 --- /dev/null +++ b/src/shader_recompiler/backend/glsl/emit_glsl.cpp | |||
| @@ -0,0 +1,156 @@ | |||
| 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> | ||
| 6 | #include <tuple> | ||
| 7 | |||
| 8 | #include "shader_recompiler/backend/bindings.h" | ||
| 9 | #include "shader_recompiler/backend/glsl/emit_context.h" | ||
| 10 | #include "shader_recompiler/backend/glsl/emit_glsl.h" | ||
| 11 | #include "shader_recompiler/backend/glsl/emit_glsl_instructions.h" | ||
| 12 | #include "shader_recompiler/frontend/ir/program.h" | ||
| 13 | #include "shader_recompiler/profile.h" | ||
| 14 | |||
| 15 | #pragma optimize("", off) | ||
| 16 | namespace Shader::Backend::GLSL { | ||
| 17 | namespace { | ||
| 18 | template <class Func> | ||
| 19 | struct FuncTraits {}; | ||
| 20 | |||
| 21 | template <class ReturnType_, class... Args> | ||
| 22 | struct FuncTraits<ReturnType_ (*)(Args...)> { | ||
| 23 | using ReturnType = ReturnType_; | ||
| 24 | |||
| 25 | static constexpr size_t NUM_ARGS = sizeof...(Args); | ||
| 26 | |||
| 27 | template <size_t I> | ||
| 28 | using ArgType = std::tuple_element_t<I, std::tuple<Args...>>; | ||
| 29 | }; | ||
| 30 | |||
| 31 | template <auto func, typename... Args> | ||
| 32 | void SetDefinition(EmitContext& ctx, IR::Inst* inst, Args... args) { | ||
| 33 | inst->SetDefinition<Id>(func(ctx, std::forward<Args>(args)...)); | ||
| 34 | } | ||
| 35 | |||
| 36 | template <typename ArgType> | ||
| 37 | ArgType Arg(EmitContext& ctx, const IR::Value& arg) { | ||
| 38 | if constexpr (std::is_same_v<ArgType, std::string_view>) { | ||
| 39 | return ctx.reg_alloc.Consume(arg); | ||
| 40 | } else if constexpr (std::is_same_v<ArgType, IR::Inst&>) { | ||
| 41 | return *arg.Inst(); | ||
| 42 | } else if constexpr (std::is_same_v<ArgType, const IR::Value&>) { | ||
| 43 | return arg; | ||
| 44 | } else if constexpr (std::is_same_v<ArgType, u32>) { | ||
| 45 | return arg.U32(); | ||
| 46 | } else if constexpr (std::is_same_v<ArgType, IR::Attribute>) { | ||
| 47 | return arg.Attribute(); | ||
| 48 | } else if constexpr (std::is_same_v<ArgType, IR::Patch>) { | ||
| 49 | return arg.Patch(); | ||
| 50 | } else if constexpr (std::is_same_v<ArgType, IR::Reg>) { | ||
| 51 | return arg.Reg(); | ||
| 52 | } | ||
| 53 | } | ||
| 54 | |||
| 55 | template <auto func, bool is_first_arg_inst, size_t... I> | ||
| 56 | void Invoke(EmitContext& ctx, IR::Inst* inst, std::index_sequence<I...>) { | ||
| 57 | using Traits = FuncTraits<decltype(func)>; | ||
| 58 | if constexpr (std::is_same_v<typename Traits::ReturnType, Id>) { | ||
| 59 | if constexpr (is_first_arg_inst) { | ||
| 60 | SetDefinition<func>( | ||
| 61 | ctx, inst, inst, | ||
| 62 | Arg<typename Traits::template ArgType<I + 2>>(ctx, inst->Arg(I))...); | ||
| 63 | } else { | ||
| 64 | SetDefinition<func>( | ||
| 65 | ctx, inst, Arg<typename Traits::template ArgType<I + 1>>(ctx, inst->Arg(I))...); | ||
| 66 | } | ||
| 67 | } else { | ||
| 68 | if constexpr (is_first_arg_inst) { | ||
| 69 | func(ctx, inst, Arg<typename Traits::template ArgType<I + 2>>(ctx, inst->Arg(I))...); | ||
| 70 | } else { | ||
| 71 | func(ctx, Arg<typename Traits::template ArgType<I + 1>>(ctx, inst->Arg(I))...); | ||
| 72 | } | ||
| 73 | } | ||
| 74 | } | ||
| 75 | |||
| 76 | template <auto func> | ||
| 77 | void Invoke(EmitContext& ctx, IR::Inst* inst) { | ||
| 78 | using Traits = FuncTraits<decltype(func)>; | ||
| 79 | static_assert(Traits::NUM_ARGS >= 1, "Insufficient arguments"); | ||
| 80 | if constexpr (Traits::NUM_ARGS == 1) { | ||
| 81 | Invoke<func, false>(ctx, inst, std::make_index_sequence<0>{}); | ||
| 82 | } else { | ||
| 83 | using FirstArgType = typename Traits::template ArgType<1>; | ||
| 84 | static constexpr bool is_first_arg_inst = std::is_same_v<FirstArgType, IR::Inst*>; | ||
| 85 | using Indices = std::make_index_sequence<Traits::NUM_ARGS - (is_first_arg_inst ? 2 : 1)>; | ||
| 86 | Invoke<func, is_first_arg_inst>(ctx, inst, Indices{}); | ||
| 87 | } | ||
| 88 | } | ||
| 89 | |||
| 90 | void EmitInst(EmitContext& ctx, IR::Inst* inst) { | ||
| 91 | switch (inst->GetOpcode()) { | ||
| 92 | #define OPCODE(name, result_type, ...) \ | ||
| 93 | case IR::Opcode::name: \ | ||
| 94 | return Invoke<&Emit##name>(ctx, inst); | ||
| 95 | #include "shader_recompiler/frontend/ir/opcodes.inc" | ||
| 96 | #undef OPCODE | ||
| 97 | } | ||
| 98 | throw LogicError("Invalid opcode {}", inst->GetOpcode()); | ||
| 99 | } | ||
| 100 | |||
| 101 | void EmitCode(EmitContext& ctx, const IR::Program& program) { | ||
| 102 | for (const IR::AbstractSyntaxNode& node : program.syntax_list) { | ||
| 103 | switch (node.type) { | ||
| 104 | case IR::AbstractSyntaxNode::Type::Block: | ||
| 105 | for (IR::Inst& inst : node.data.block->Instructions()) { | ||
| 106 | EmitInst(ctx, &inst); | ||
| 107 | } | ||
| 108 | break; | ||
| 109 | case IR::AbstractSyntaxNode::Type::If: | ||
| 110 | ctx.Add("if ("); | ||
| 111 | break; | ||
| 112 | case IR::AbstractSyntaxNode::Type::EndIf: | ||
| 113 | ctx.Add("){{"); | ||
| 114 | break; | ||
| 115 | case IR::AbstractSyntaxNode::Type::Loop: | ||
| 116 | ctx.Add("while ("); | ||
| 117 | break; | ||
| 118 | case IR::AbstractSyntaxNode::Type::Repeat: | ||
| 119 | if (node.data.repeat.cond.IsImmediate()) { | ||
| 120 | if (node.data.repeat.cond.U1()) { | ||
| 121 | ctx.Add("ENDREP;"); | ||
| 122 | } else { | ||
| 123 | ctx.Add("BRK;" | ||
| 124 | "ENDREP;"); | ||
| 125 | } | ||
| 126 | } | ||
| 127 | break; | ||
| 128 | case IR::AbstractSyntaxNode::Type::Break: | ||
| 129 | if (node.data.break_node.cond.IsImmediate()) { | ||
| 130 | if (node.data.break_node.cond.U1()) { | ||
| 131 | ctx.Add("break;"); | ||
| 132 | } | ||
| 133 | } | ||
| 134 | break; | ||
| 135 | case IR::AbstractSyntaxNode::Type::Return: | ||
| 136 | case IR::AbstractSyntaxNode::Type::Unreachable: | ||
| 137 | ctx.Add("return;"); | ||
| 138 | break; | ||
| 139 | default: | ||
| 140 | ctx.Add("UNAHNDLED {}", node.type); | ||
| 141 | break; | ||
| 142 | } | ||
| 143 | } | ||
| 144 | } | ||
| 145 | |||
| 146 | } // Anonymous namespace | ||
| 147 | |||
| 148 | std::string EmitGLSL(const Profile& profile, IR::Program& program, Bindings& bindings) { | ||
| 149 | EmitContext ctx{program, bindings, profile}; | ||
| 150 | // ctx.SetupBuffers(); | ||
| 151 | EmitCode(ctx, program); | ||
| 152 | ctx.code += "}"; | ||
| 153 | return ctx.code; | ||
| 154 | } | ||
| 155 | |||
| 156 | } // namespace Shader::Backend::GLSL | ||
diff --git a/src/shader_recompiler/backend/glsl/emit_glsl.h b/src/shader_recompiler/backend/glsl/emit_glsl.h new file mode 100644 index 000000000..a7c666107 --- /dev/null +++ b/src/shader_recompiler/backend/glsl/emit_glsl.h | |||
| @@ -0,0 +1,23 @@ | |||
| 1 | // Copyright 2021 yuzu Emulator Project | ||
| 2 | // Licensed under GPLv2 or any later version | ||
| 3 | // Refer to the license.txt file included. | ||
| 4 | |||
| 5 | #pragma once | ||
| 6 | |||
| 7 | #include <string> | ||
| 8 | |||
| 9 | #include "shader_recompiler/backend/bindings.h" | ||
| 10 | #include "shader_recompiler/frontend/ir/program.h" | ||
| 11 | #include "shader_recompiler/profile.h" | ||
| 12 | |||
| 13 | namespace Shader::Backend::GLSL { | ||
| 14 | |||
| 15 | [[nodiscard]] std::string EmitGLSL(const Profile& profile, IR::Program& program, | ||
| 16 | Bindings& binding); | ||
| 17 | |||
| 18 | [[nodiscard]] inline std::string EmitGLSL(const Profile& profile, IR::Program& program) { | ||
| 19 | Bindings binding; | ||
| 20 | return EmitGLSL(profile, program, binding); | ||
| 21 | } | ||
| 22 | |||
| 23 | } // namespace Shader::Backend::GLSL | ||
diff --git a/src/shader_recompiler/backend/glsl/emit_glsl_atomic.cpp b/src/shader_recompiler/backend/glsl/emit_glsl_atomic.cpp new file mode 100644 index 000000000..e69de29bb --- /dev/null +++ b/src/shader_recompiler/backend/glsl/emit_glsl_atomic.cpp | |||
diff --git a/src/shader_recompiler/backend/glsl/emit_glsl_barriers.cpp b/src/shader_recompiler/backend/glsl/emit_glsl_barriers.cpp new file mode 100644 index 000000000..e69de29bb --- /dev/null +++ b/src/shader_recompiler/backend/glsl/emit_glsl_barriers.cpp | |||
diff --git a/src/shader_recompiler/backend/glsl/emit_glsl_bitwise_conversion.cpp b/src/shader_recompiler/backend/glsl/emit_glsl_bitwise_conversion.cpp new file mode 100644 index 000000000..e69de29bb --- /dev/null +++ b/src/shader_recompiler/backend/glsl/emit_glsl_bitwise_conversion.cpp | |||
diff --git a/src/shader_recompiler/backend/glsl/emit_glsl_composite.cpp b/src/shader_recompiler/backend/glsl/emit_glsl_composite.cpp new file mode 100644 index 000000000..e69de29bb --- /dev/null +++ b/src/shader_recompiler/backend/glsl/emit_glsl_composite.cpp | |||
diff --git a/src/shader_recompiler/backend/glsl/emit_glsl_context_get_set.cpp b/src/shader_recompiler/backend/glsl/emit_glsl_context_get_set.cpp new file mode 100644 index 000000000..7b2ed358e --- /dev/null +++ b/src/shader_recompiler/backend/glsl/emit_glsl_context_get_set.cpp | |||
| @@ -0,0 +1,48 @@ | |||
| 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/glsl/emit_context.h" | ||
| 8 | #include "shader_recompiler/backend/glsl/emit_glsl_instructions.h" | ||
| 9 | #include "shader_recompiler/frontend/ir/value.h" | ||
| 10 | #include "shader_recompiler/profile.h" | ||
| 11 | |||
| 12 | namespace Shader::Backend::GLSL { | ||
| 13 | void EmitGetCbufU8([[maybe_unused]] EmitContext& ctx, [[maybe_unused]] const IR::Value& binding, | ||
| 14 | [[maybe_unused]] const IR::Value& offset) { | ||
| 15 | throw NotImplementedException("GLSL"); | ||
| 16 | } | ||
| 17 | |||
| 18 | void EmitGetCbufS8([[maybe_unused]] EmitContext& ctx, [[maybe_unused]] const IR::Value& binding, | ||
| 19 | [[maybe_unused]] const IR::Value& offset) { | ||
| 20 | throw NotImplementedException("GLSL"); | ||
| 21 | } | ||
| 22 | |||
| 23 | void EmitGetCbufU16([[maybe_unused]] EmitContext& ctx, [[maybe_unused]] const IR::Value& binding, | ||
| 24 | [[maybe_unused]] const IR::Value& offset) { | ||
| 25 | throw NotImplementedException("GLSL"); | ||
| 26 | } | ||
| 27 | |||
| 28 | void EmitGetCbufS16([[maybe_unused]] EmitContext& ctx, [[maybe_unused]] const IR::Value& binding, | ||
| 29 | [[maybe_unused]] const IR::Value& offset) { | ||
| 30 | throw NotImplementedException("GLSL"); | ||
| 31 | } | ||
| 32 | |||
| 33 | void EmitGetCbufU32([[maybe_unused]] EmitContext& ctx, [[maybe_unused]] const IR::Value& binding, | ||
| 34 | [[maybe_unused]] const IR::Value& offset) { | ||
| 35 | const auto var{ctx.AllocVar()}; | ||
| 36 | ctx.Add("uint {} = c{}[{}];", var, binding.U32(), offset.U32()); | ||
| 37 | } | ||
| 38 | |||
| 39 | void EmitGetCbufF32([[maybe_unused]] EmitContext& ctx, [[maybe_unused]] const IR::Value& binding, | ||
| 40 | [[maybe_unused]] const IR::Value& offset) { | ||
| 41 | throw NotImplementedException("GLSL"); | ||
| 42 | } | ||
| 43 | |||
| 44 | void EmitGetCbufU32x2([[maybe_unused]] EmitContext& ctx, [[maybe_unused]] const IR::Value& binding, | ||
| 45 | [[maybe_unused]] const IR::Value& offset) { | ||
| 46 | throw NotImplementedException("GLSL"); | ||
| 47 | } | ||
| 48 | } // namespace Shader::Backend::GLSL | ||
diff --git a/src/shader_recompiler/backend/glsl/emit_glsl_control_flow.cpp b/src/shader_recompiler/backend/glsl/emit_glsl_control_flow.cpp new file mode 100644 index 000000000..e69de29bb --- /dev/null +++ b/src/shader_recompiler/backend/glsl/emit_glsl_control_flow.cpp | |||
diff --git a/src/shader_recompiler/backend/glsl/emit_glsl_convert.cpp b/src/shader_recompiler/backend/glsl/emit_glsl_convert.cpp new file mode 100644 index 000000000..e69de29bb --- /dev/null +++ b/src/shader_recompiler/backend/glsl/emit_glsl_convert.cpp | |||
diff --git a/src/shader_recompiler/backend/glsl/emit_glsl_floating_point.cpp b/src/shader_recompiler/backend/glsl/emit_glsl_floating_point.cpp new file mode 100644 index 000000000..e69de29bb --- /dev/null +++ b/src/shader_recompiler/backend/glsl/emit_glsl_floating_point.cpp | |||
diff --git a/src/shader_recompiler/backend/glsl/emit_glsl_image.cpp b/src/shader_recompiler/backend/glsl/emit_glsl_image.cpp new file mode 100644 index 000000000..e69de29bb --- /dev/null +++ b/src/shader_recompiler/backend/glsl/emit_glsl_image.cpp | |||
diff --git a/src/shader_recompiler/backend/glsl/emit_glsl_image_atomic.cpp b/src/shader_recompiler/backend/glsl/emit_glsl_image_atomic.cpp new file mode 100644 index 000000000..e69de29bb --- /dev/null +++ b/src/shader_recompiler/backend/glsl/emit_glsl_image_atomic.cpp | |||
diff --git a/src/shader_recompiler/backend/glsl/emit_glsl_instructions.h b/src/shader_recompiler/backend/glsl/emit_glsl_instructions.h new file mode 100644 index 000000000..1d86820dc --- /dev/null +++ b/src/shader_recompiler/backend/glsl/emit_glsl_instructions.h | |||
| @@ -0,0 +1,656 @@ | |||
| 1 | // Copyright 2021 yuzu Emulator Project | ||
| 2 | // Licensed under GPLv2 or any later version | ||
| 3 | // Refer to the license.txt file included. | ||
| 4 | |||
| 5 | #pragma once | ||
| 6 | |||
| 7 | #include <string_view> | ||
| 8 | |||
| 9 | #include "common/common_types.h" | ||
| 10 | |||
| 11 | namespace Shader::IR { | ||
| 12 | enum class Attribute : u64; | ||
| 13 | enum class Patch : u64; | ||
| 14 | class Inst; | ||
| 15 | class Value; | ||
| 16 | } // namespace Shader::IR | ||
| 17 | |||
| 18 | namespace Shader::Backend::GLSL { | ||
| 19 | |||
| 20 | class EmitContext; | ||
| 21 | |||
| 22 | inline void EmitSetLoopSafetyVariable(EmitContext&) {} | ||
| 23 | inline void EmitGetLoopSafetyVariable(EmitContext&) {} | ||
| 24 | |||
| 25 | // Microinstruction emitters | ||
| 26 | void EmitPhi(EmitContext& ctx, IR::Inst* inst); | ||
| 27 | void EmitVoid(EmitContext& ctx); | ||
| 28 | void EmitIdentity(EmitContext& ctx, const IR::Value& value); | ||
| 29 | void EmitConditionRef(EmitContext& ctx, IR::Inst& inst, const IR::Value& value); | ||
| 30 | void EmitReference(EmitContext&); | ||
| 31 | void EmitPhiMove(EmitContext& ctx, const IR::Value& phi, const IR::Value& value); | ||
| 32 | void EmitBranch(EmitContext& ctx, std::string_view label); | ||
| 33 | void EmitBranchConditional(EmitContext& ctx, std::string_view condition, | ||
| 34 | std::string_view true_label, std::string_view false_label); | ||
| 35 | void EmitLoopMerge(EmitContext& ctx, std::string_view merge_label, std::string_view continue_label); | ||
| 36 | void EmitSelectionMerge(EmitContext& ctx, std::string_view merge_label); | ||
| 37 | void EmitReturn(EmitContext& ctx); | ||
| 38 | void EmitJoin(EmitContext& ctx); | ||
| 39 | void EmitUnreachable(EmitContext& ctx); | ||
| 40 | void EmitDemoteToHelperInvocation(EmitContext& ctx, std::string_view continue_label); | ||
| 41 | void EmitBarrier(EmitContext& ctx); | ||
| 42 | void EmitWorkgroupMemoryBarrier(EmitContext& ctx); | ||
| 43 | void EmitDeviceMemoryBarrier(EmitContext& ctx); | ||
| 44 | void EmitPrologue(EmitContext& ctx); | ||
| 45 | void EmitEpilogue(EmitContext& ctx); | ||
| 46 | void EmitEmitVertex(EmitContext& ctx, const IR::Value& stream); | ||
| 47 | void EmitEndPrimitive(EmitContext& ctx, const IR::Value& stream); | ||
| 48 | void EmitGetRegister(EmitContext& ctx); | ||
| 49 | void EmitSetRegister(EmitContext& ctx); | ||
| 50 | void EmitGetPred(EmitContext& ctx); | ||
| 51 | void EmitSetPred(EmitContext& ctx); | ||
| 52 | void EmitSetGotoVariable(EmitContext& ctx); | ||
| 53 | void EmitGetGotoVariable(EmitContext& ctx); | ||
| 54 | void EmitSetIndirectBranchVariable(EmitContext& ctx); | ||
| 55 | void EmitGetIndirectBranchVariable(EmitContext& ctx); | ||
| 56 | void EmitGetCbufU8(EmitContext& ctx, const IR::Value& binding, const IR::Value& offset); | ||
| 57 | void EmitGetCbufS8(EmitContext& ctx, const IR::Value& binding, const IR::Value& offset); | ||
| 58 | void EmitGetCbufU16(EmitContext& ctx, const IR::Value& binding, const IR::Value& offset); | ||
| 59 | void EmitGetCbufS16(EmitContext& ctx, const IR::Value& binding, const IR::Value& offset); | ||
| 60 | void EmitGetCbufU32(EmitContext& ctx, const IR::Value& binding, const IR::Value& offset); | ||
| 61 | void EmitGetCbufF32(EmitContext& ctx, const IR::Value& binding, const IR::Value& offset); | ||
| 62 | void EmitGetCbufU32x2(EmitContext& ctx, const IR::Value& binding, const IR::Value& offset); | ||
| 63 | void EmitGetAttribute(EmitContext& ctx, IR::Attribute attr, std::string_view vertex); | ||
| 64 | void EmitSetAttribute(EmitContext& ctx, IR::Attribute attr, std::string_view value, | ||
| 65 | std::string_view vertex); | ||
| 66 | void EmitGetAttributeIndexed(EmitContext& ctx, std::string_view offset, std::string_view vertex); | ||
| 67 | void EmitSetAttributeIndexed(EmitContext& ctx, std::string_view offset, std::string_view value, | ||
| 68 | std::string_view vertex); | ||
| 69 | void EmitGetPatch(EmitContext& ctx, IR::Patch patch); | ||
| 70 | void EmitSetPatch(EmitContext& ctx, IR::Patch patch, std::string_view value); | ||
| 71 | void EmitSetFragColor(EmitContext& ctx, u32 index, u32 component, std::string_view value); | ||
| 72 | void EmitSetSampleMask(EmitContext& ctx, std::string_view value); | ||
| 73 | void EmitSetFragDepth(EmitContext& ctx, std::string_view value); | ||
| 74 | void EmitGetZFlag(EmitContext& ctx); | ||
| 75 | void EmitGetSFlag(EmitContext& ctx); | ||
| 76 | void EmitGetCFlag(EmitContext& ctx); | ||
| 77 | void EmitGetOFlag(EmitContext& ctx); | ||
| 78 | void EmitSetZFlag(EmitContext& ctx); | ||
| 79 | void EmitSetSFlag(EmitContext& ctx); | ||
| 80 | void EmitSetCFlag(EmitContext& ctx); | ||
| 81 | void EmitSetOFlag(EmitContext& ctx); | ||
| 82 | void EmitWorkgroupId(EmitContext& ctx); | ||
| 83 | void EmitLocalInvocationId(EmitContext& ctx); | ||
| 84 | void EmitInvocationId(EmitContext& ctx); | ||
| 85 | void EmitSampleId(EmitContext& ctx); | ||
| 86 | void EmitIsHelperInvocation(EmitContext& ctx); | ||
| 87 | void EmitYDirection(EmitContext& ctx); | ||
| 88 | void EmitLoadLocal(EmitContext& ctx, std::string_view word_offset); | ||
| 89 | void EmitWriteLocal(EmitContext& ctx, std::string_view word_offset, std::string_view value); | ||
| 90 | void EmitUndefU1(EmitContext& ctx); | ||
| 91 | void EmitUndefU8(EmitContext& ctx); | ||
| 92 | void EmitUndefU16(EmitContext& ctx); | ||
| 93 | void EmitUndefU32(EmitContext& ctx); | ||
| 94 | void EmitUndefU64(EmitContext& ctx); | ||
| 95 | void EmitLoadGlobalU8(EmitContext& ctx); | ||
| 96 | void EmitLoadGlobalS8(EmitContext& ctx); | ||
| 97 | void EmitLoadGlobalU16(EmitContext& ctx); | ||
| 98 | void EmitLoadGlobalS16(EmitContext& ctx); | ||
| 99 | void EmitLoadGlobal32(EmitContext& ctx, std::string_view address); | ||
| 100 | void EmitLoadGlobal64(EmitContext& ctx, std::string_view address); | ||
| 101 | void EmitLoadGlobal128(EmitContext& ctx, std::string_view address); | ||
| 102 | void EmitWriteGlobalU8(EmitContext& ctx); | ||
| 103 | void EmitWriteGlobalS8(EmitContext& ctx); | ||
| 104 | void EmitWriteGlobalU16(EmitContext& ctx); | ||
| 105 | void EmitWriteGlobalS16(EmitContext& ctx); | ||
| 106 | void EmitWriteGlobal32(EmitContext& ctx, std::string_view address, std::string_view value); | ||
| 107 | void EmitWriteGlobal64(EmitContext& ctx, std::string_view address, std::string_view value); | ||
| 108 | void EmitWriteGlobal128(EmitContext& ctx, std::string_view address, std::string_view value); | ||
| 109 | void EmitLoadStorageU8(EmitContext& ctx, const IR::Value& binding, const IR::Value& offset); | ||
| 110 | void EmitLoadStorageS8(EmitContext& ctx, const IR::Value& binding, const IR::Value& offset); | ||
| 111 | void EmitLoadStorageU16(EmitContext& ctx, const IR::Value& binding, const IR::Value& offset); | ||
| 112 | void EmitLoadStorageS16(EmitContext& ctx, const IR::Value& binding, const IR::Value& offset); | ||
| 113 | void EmitLoadStorage32(EmitContext& ctx, const IR::Value& binding, const IR::Value& offset); | ||
| 114 | void EmitLoadStorage64(EmitContext& ctx, const IR::Value& binding, const IR::Value& offset); | ||
| 115 | void EmitLoadStorage128(EmitContext& ctx, const IR::Value& binding, const IR::Value& offset); | ||
| 116 | void EmitWriteStorageU8(EmitContext& ctx, const IR::Value& binding, const IR::Value& offset, | ||
| 117 | std::string_view value); | ||
| 118 | void EmitWriteStorageS8(EmitContext& ctx, const IR::Value& binding, const IR::Value& offset, | ||
| 119 | std::string_view value); | ||
| 120 | void EmitWriteStorageU16(EmitContext& ctx, const IR::Value& binding, const IR::Value& offset, | ||
| 121 | std::string_view value); | ||
| 122 | void EmitWriteStorageS16(EmitContext& ctx, const IR::Value& binding, const IR::Value& offset, | ||
| 123 | std::string_view value); | ||
| 124 | void EmitWriteStorage32(EmitContext& ctx, const IR::Value& binding, const IR::Value& offset, | ||
| 125 | std::string_view value); | ||
| 126 | void EmitWriteStorage64(EmitContext& ctx, const IR::Value& binding, const IR::Value& offset, | ||
| 127 | std::string_view value); | ||
| 128 | void EmitWriteStorage128(EmitContext& ctx, const IR::Value& binding, const IR::Value& offset, | ||
| 129 | std::string_view value); | ||
| 130 | void EmitLoadSharedU8(EmitContext& ctx, std::string_view offset); | ||
| 131 | void EmitLoadSharedS8(EmitContext& ctx, std::string_view offset); | ||
| 132 | void EmitLoadSharedU16(EmitContext& ctx, std::string_view offset); | ||
| 133 | void EmitLoadSharedS16(EmitContext& ctx, std::string_view offset); | ||
| 134 | void EmitLoadSharedU32(EmitContext& ctx, std::string_view offset); | ||
| 135 | void EmitLoadSharedU64(EmitContext& ctx, std::string_view offset); | ||
| 136 | void EmitLoadSharedU128(EmitContext& ctx, std::string_view offset); | ||
| 137 | void EmitWriteSharedU8(EmitContext& ctx, std::string_view offset, std::string_view value); | ||
| 138 | void EmitWriteSharedU16(EmitContext& ctx, std::string_view offset, std::string_view value); | ||
| 139 | void EmitWriteSharedU32(EmitContext& ctx, std::string_view offset, std::string_view value); | ||
| 140 | void EmitWriteSharedU64(EmitContext& ctx, std::string_view offset, std::string_view value); | ||
| 141 | void EmitWriteSharedU128(EmitContext& ctx, std::string_view offset, std::string_view value); | ||
| 142 | void EmitCompositeConstructU32x2(EmitContext& ctx, std::string_view e1, std::string_view e2); | ||
| 143 | void EmitCompositeConstructU32x3(EmitContext& ctx, std::string_view e1, std::string_view e2, | ||
| 144 | std::string_view e3); | ||
| 145 | void EmitCompositeConstructU32x4(EmitContext& ctx, std::string_view e1, std::string_view e2, | ||
| 146 | std::string_view e3, std::string_view e4); | ||
| 147 | void EmitCompositeExtractU32x2(EmitContext& ctx, std::string_view composite, u32 index); | ||
| 148 | void EmitCompositeExtractU32x3(EmitContext& ctx, std::string_view composite, u32 index); | ||
| 149 | void EmitCompositeExtractU32x4(EmitContext& ctx, std::string_view composite, u32 index); | ||
| 150 | void EmitCompositeInsertU32x2(EmitContext& ctx, std::string_view composite, std::string_view object, | ||
| 151 | u32 index); | ||
| 152 | void EmitCompositeInsertU32x3(EmitContext& ctx, std::string_view composite, std::string_view object, | ||
| 153 | u32 index); | ||
| 154 | void EmitCompositeInsertU32x4(EmitContext& ctx, std::string_view composite, std::string_view object, | ||
| 155 | u32 index); | ||
| 156 | void EmitCompositeConstructF16x2(EmitContext& ctx, std::string_view e1, std::string_view e2); | ||
| 157 | void EmitCompositeConstructF16x3(EmitContext& ctx, std::string_view e1, std::string_view e2, | ||
| 158 | std::string_view e3); | ||
| 159 | void EmitCompositeConstructF16x4(EmitContext& ctx, std::string_view e1, std::string_view e2, | ||
| 160 | std::string_view e3, std::string_view e4); | ||
| 161 | void EmitCompositeExtractF16x2(EmitContext& ctx, std::string_view composite, u32 index); | ||
| 162 | void EmitCompositeExtractF16x3(EmitContext& ctx, std::string_view composite, u32 index); | ||
| 163 | void EmitCompositeExtractF16x4(EmitContext& ctx, std::string_view composite, u32 index); | ||
| 164 | void EmitCompositeInsertF16x2(EmitContext& ctx, std::string_view composite, std::string_view object, | ||
| 165 | u32 index); | ||
| 166 | void EmitCompositeInsertF16x3(EmitContext& ctx, std::string_view composite, std::string_view object, | ||
| 167 | u32 index); | ||
| 168 | void EmitCompositeInsertF16x4(EmitContext& ctx, std::string_view composite, std::string_view object, | ||
| 169 | u32 index); | ||
| 170 | void EmitCompositeConstructF32x2(EmitContext& ctx, std::string_view e1, std::string_view e2); | ||
| 171 | void EmitCompositeConstructF32x3(EmitContext& ctx, std::string_view e1, std::string_view e2, | ||
| 172 | std::string_view e3); | ||
| 173 | void EmitCompositeConstructF32x4(EmitContext& ctx, std::string_view e1, std::string_view e2, | ||
| 174 | std::string_view e3, std::string_view e4); | ||
| 175 | void EmitCompositeExtractF32x2(EmitContext& ctx, std::string_view composite, u32 index); | ||
| 176 | void EmitCompositeExtractF32x3(EmitContext& ctx, std::string_view composite, u32 index); | ||
| 177 | void EmitCompositeExtractF32x4(EmitContext& ctx, std::string_view composite, u32 index); | ||
| 178 | void EmitCompositeInsertF32x2(EmitContext& ctx, std::string_view composite, std::string_view object, | ||
| 179 | u32 index); | ||
| 180 | void EmitCompositeInsertF32x3(EmitContext& ctx, std::string_view composite, std::string_view object, | ||
| 181 | u32 index); | ||
| 182 | void EmitCompositeInsertF32x4(EmitContext& ctx, std::string_view composite, std::string_view object, | ||
| 183 | u32 index); | ||
| 184 | void EmitCompositeConstructF64x2(EmitContext& ctx); | ||
| 185 | void EmitCompositeConstructF64x3(EmitContext& ctx); | ||
| 186 | void EmitCompositeConstructF64x4(EmitContext& ctx); | ||
| 187 | void EmitCompositeExtractF64x2(EmitContext& ctx); | ||
| 188 | void EmitCompositeExtractF64x3(EmitContext& ctx); | ||
| 189 | void EmitCompositeExtractF64x4(EmitContext& ctx); | ||
| 190 | void EmitCompositeInsertF64x2(EmitContext& ctx, std::string_view composite, std::string_view object, | ||
| 191 | u32 index); | ||
| 192 | void EmitCompositeInsertF64x3(EmitContext& ctx, std::string_view composite, std::string_view object, | ||
| 193 | u32 index); | ||
| 194 | void EmitCompositeInsertF64x4(EmitContext& ctx, std::string_view composite, std::string_view object, | ||
| 195 | u32 index); | ||
| 196 | void EmitSelectU1(EmitContext& ctx, std::string_view cond, std::string_view true_value, | ||
| 197 | std::string_view false_value); | ||
| 198 | void EmitSelectU8(EmitContext& ctx, std::string_view cond, std::string_view true_value, | ||
| 199 | std::string_view false_value); | ||
| 200 | void EmitSelectU16(EmitContext& ctx, std::string_view cond, std::string_view true_value, | ||
| 201 | std::string_view false_value); | ||
| 202 | void EmitSelectU32(EmitContext& ctx, std::string_view cond, std::string_view true_value, | ||
| 203 | std::string_view false_value); | ||
| 204 | void EmitSelectU64(EmitContext& ctx, std::string_view cond, std::string_view true_value, | ||
| 205 | std::string_view false_value); | ||
| 206 | void EmitSelectF16(EmitContext& ctx, std::string_view cond, std::string_view true_value, | ||
| 207 | std::string_view false_value); | ||
| 208 | void EmitSelectF32(EmitContext& ctx, std::string_view cond, std::string_view true_value, | ||
| 209 | std::string_view false_value); | ||
| 210 | void EmitSelectF64(EmitContext& ctx, std::string_view cond, std::string_view true_value, | ||
| 211 | std::string_view false_value); | ||
| 212 | void EmitBitCastU16F16(EmitContext& ctx); | ||
| 213 | void EmitBitCastU32F32(EmitContext& ctx, std::string_view value); | ||
| 214 | void EmitBitCastU64F64(EmitContext& ctx); | ||
| 215 | void EmitBitCastF16U16(EmitContext& ctx); | ||
| 216 | void EmitBitCastF32U32(EmitContext& ctx, std::string_view value); | ||
| 217 | void EmitBitCastF64U64(EmitContext& ctx); | ||
| 218 | void EmitPackUint2x32(EmitContext& ctx, std::string_view value); | ||
| 219 | void EmitUnpackUint2x32(EmitContext& ctx, std::string_view value); | ||
| 220 | void EmitPackFloat2x16(EmitContext& ctx, std::string_view value); | ||
| 221 | void EmitUnpackFloat2x16(EmitContext& ctx, std::string_view value); | ||
| 222 | void EmitPackHalf2x16(EmitContext& ctx, std::string_view value); | ||
| 223 | void EmitUnpackHalf2x16(EmitContext& ctx, std::string_view value); | ||
| 224 | void EmitPackDouble2x32(EmitContext& ctx, std::string_view value); | ||
| 225 | void EmitUnpackDouble2x32(EmitContext& ctx, std::string_view value); | ||
| 226 | void EmitGetZeroFromOp(EmitContext& ctx); | ||
| 227 | void EmitGetSignFromOp(EmitContext& ctx); | ||
| 228 | void EmitGetCarryFromOp(EmitContext& ctx); | ||
| 229 | void EmitGetOverflowFromOp(EmitContext& ctx); | ||
| 230 | void EmitGetSparseFromOp(EmitContext& ctx); | ||
| 231 | void EmitGetInBoundsFromOp(EmitContext& ctx); | ||
| 232 | void EmitFPAbs16(EmitContext& ctx, std::string_view value); | ||
| 233 | void EmitFPAbs32(EmitContext& ctx, std::string_view value); | ||
| 234 | void EmitFPAbs64(EmitContext& ctx, std::string_view value); | ||
| 235 | void EmitFPAdd16(EmitContext& ctx, IR::Inst* inst, std::string_view a, std::string_view b); | ||
| 236 | void EmitFPAdd32(EmitContext& ctx, IR::Inst* inst, std::string_view a, std::string_view b); | ||
| 237 | void EmitFPAdd64(EmitContext& ctx, IR::Inst* inst, std::string_view a, std::string_view b); | ||
| 238 | void EmitFPFma16(EmitContext& ctx, IR::Inst* inst, std::string_view a, std::string_view b, | ||
| 239 | std::string_view c); | ||
| 240 | void EmitFPFma32(EmitContext& ctx, IR::Inst* inst, std::string_view a, std::string_view b, | ||
| 241 | std::string_view c); | ||
| 242 | void EmitFPFma64(EmitContext& ctx, IR::Inst* inst, std::string_view a, std::string_view b, | ||
| 243 | std::string_view c); | ||
| 244 | void EmitFPMax32(EmitContext& ctx, std::string_view a, std::string_view b); | ||
| 245 | void EmitFPMax64(EmitContext& ctx, std::string_view a, std::string_view b); | ||
| 246 | void EmitFPMin32(EmitContext& ctx, std::string_view a, std::string_view b); | ||
| 247 | void EmitFPMin64(EmitContext& ctx, std::string_view a, std::string_view b); | ||
| 248 | void EmitFPMul16(EmitContext& ctx, IR::Inst* inst, std::string_view a, std::string_view b); | ||
| 249 | void EmitFPMul32(EmitContext& ctx, IR::Inst* inst, std::string_view a, std::string_view b); | ||
| 250 | void EmitFPMul64(EmitContext& ctx, IR::Inst* inst, std::string_view a, std::string_view b); | ||
| 251 | void EmitFPNeg16(EmitContext& ctx, std::string_view value); | ||
| 252 | void EmitFPNeg32(EmitContext& ctx, std::string_view value); | ||
| 253 | void EmitFPNeg64(EmitContext& ctx, std::string_view value); | ||
| 254 | void EmitFPSin(EmitContext& ctx, std::string_view value); | ||
| 255 | void EmitFPCos(EmitContext& ctx, std::string_view value); | ||
| 256 | void EmitFPExp2(EmitContext& ctx, std::string_view value); | ||
| 257 | void EmitFPLog2(EmitContext& ctx, std::string_view value); | ||
| 258 | void EmitFPRecip32(EmitContext& ctx, std::string_view value); | ||
| 259 | void EmitFPRecip64(EmitContext& ctx, std::string_view value); | ||
| 260 | void EmitFPRecipSqrt32(EmitContext& ctx, std::string_view value); | ||
| 261 | void EmitFPRecipSqrt64(EmitContext& ctx, std::string_view value); | ||
| 262 | void EmitFPSqrt(EmitContext& ctx, std::string_view value); | ||
| 263 | void EmitFPSaturate16(EmitContext& ctx, std::string_view value); | ||
| 264 | void EmitFPSaturate32(EmitContext& ctx, std::string_view value); | ||
| 265 | void EmitFPSaturate64(EmitContext& ctx, std::string_view value); | ||
| 266 | void EmitFPClamp16(EmitContext& ctx, std::string_view value, std::string_view min_value, | ||
| 267 | std::string_view max_value); | ||
| 268 | void EmitFPClamp32(EmitContext& ctx, std::string_view value, std::string_view min_value, | ||
| 269 | std::string_view max_value); | ||
| 270 | void EmitFPClamp64(EmitContext& ctx, std::string_view value, std::string_view min_value, | ||
| 271 | std::string_view max_value); | ||
| 272 | void EmitFPRoundEven16(EmitContext& ctx, std::string_view value); | ||
| 273 | void EmitFPRoundEven32(EmitContext& ctx, std::string_view value); | ||
| 274 | void EmitFPRoundEven64(EmitContext& ctx, std::string_view value); | ||
| 275 | void EmitFPFloor16(EmitContext& ctx, std::string_view value); | ||
| 276 | void EmitFPFloor32(EmitContext& ctx, std::string_view value); | ||
| 277 | void EmitFPFloor64(EmitContext& ctx, std::string_view value); | ||
| 278 | void EmitFPCeil16(EmitContext& ctx, std::string_view value); | ||
| 279 | void EmitFPCeil32(EmitContext& ctx, std::string_view value); | ||
| 280 | void EmitFPCeil64(EmitContext& ctx, std::string_view value); | ||
| 281 | void EmitFPTrunc16(EmitContext& ctx, std::string_view value); | ||
| 282 | void EmitFPTrunc32(EmitContext& ctx, std::string_view value); | ||
| 283 | void EmitFPTrunc64(EmitContext& ctx, std::string_view value); | ||
| 284 | void EmitFPOrdEqual16(EmitContext& ctx, std::string_view lhs, std::string_view rhs); | ||
| 285 | void EmitFPOrdEqual32(EmitContext& ctx, std::string_view lhs, std::string_view rhs); | ||
| 286 | void EmitFPOrdEqual64(EmitContext& ctx, std::string_view lhs, std::string_view rhs); | ||
| 287 | void EmitFPUnordEqual16(EmitContext& ctx, std::string_view lhs, std::string_view rhs); | ||
| 288 | void EmitFPUnordEqual32(EmitContext& ctx, std::string_view lhs, std::string_view rhs); | ||
| 289 | void EmitFPUnordEqual64(EmitContext& ctx, std::string_view lhs, std::string_view rhs); | ||
| 290 | void EmitFPOrdNotEqual16(EmitContext& ctx, std::string_view lhs, std::string_view rhs); | ||
| 291 | void EmitFPOrdNotEqual32(EmitContext& ctx, std::string_view lhs, std::string_view rhs); | ||
| 292 | void EmitFPOrdNotEqual64(EmitContext& ctx, std::string_view lhs, std::string_view rhs); | ||
| 293 | void EmitFPUnordNotEqual16(EmitContext& ctx, std::string_view lhs, std::string_view rhs); | ||
| 294 | void EmitFPUnordNotEqual32(EmitContext& ctx, std::string_view lhs, std::string_view rhs); | ||
| 295 | void EmitFPUnordNotEqual64(EmitContext& ctx, std::string_view lhs, std::string_view rhs); | ||
| 296 | void EmitFPOrdLessThan16(EmitContext& ctx, std::string_view lhs, std::string_view rhs); | ||
| 297 | void EmitFPOrdLessThan32(EmitContext& ctx, std::string_view lhs, std::string_view rhs); | ||
| 298 | void EmitFPOrdLessThan64(EmitContext& ctx, std::string_view lhs, std::string_view rhs); | ||
| 299 | void EmitFPUnordLessThan16(EmitContext& ctx, std::string_view lhs, std::string_view rhs); | ||
| 300 | void EmitFPUnordLessThan32(EmitContext& ctx, std::string_view lhs, std::string_view rhs); | ||
| 301 | void EmitFPUnordLessThan64(EmitContext& ctx, std::string_view lhs, std::string_view rhs); | ||
| 302 | void EmitFPOrdGreaterThan16(EmitContext& ctx, std::string_view lhs, std::string_view rhs); | ||
| 303 | void EmitFPOrdGreaterThan32(EmitContext& ctx, std::string_view lhs, std::string_view rhs); | ||
| 304 | void EmitFPOrdGreaterThan64(EmitContext& ctx, std::string_view lhs, std::string_view rhs); | ||
| 305 | void EmitFPUnordGreaterThan16(EmitContext& ctx, std::string_view lhs, std::string_view rhs); | ||
| 306 | void EmitFPUnordGreaterThan32(EmitContext& ctx, std::string_view lhs, std::string_view rhs); | ||
| 307 | void EmitFPUnordGreaterThan64(EmitContext& ctx, std::string_view lhs, std::string_view rhs); | ||
| 308 | void EmitFPOrdLessThanEqual16(EmitContext& ctx, std::string_view lhs, std::string_view rhs); | ||
| 309 | void EmitFPOrdLessThanEqual32(EmitContext& ctx, std::string_view lhs, std::string_view rhs); | ||
| 310 | void EmitFPOrdLessThanEqual64(EmitContext& ctx, std::string_view lhs, std::string_view rhs); | ||
| 311 | void EmitFPUnordLessThanEqual16(EmitContext& ctx, std::string_view lhs, std::string_view rhs); | ||
| 312 | void EmitFPUnordLessThanEqual32(EmitContext& ctx, std::string_view lhs, std::string_view rhs); | ||
| 313 | void EmitFPUnordLessThanEqual64(EmitContext& ctx, std::string_view lhs, std::string_view rhs); | ||
| 314 | void EmitFPOrdGreaterThanEqual16(EmitContext& ctx, std::string_view lhs, std::string_view rhs); | ||
| 315 | void EmitFPOrdGreaterThanEqual32(EmitContext& ctx, std::string_view lhs, std::string_view rhs); | ||
| 316 | void EmitFPOrdGreaterThanEqual64(EmitContext& ctx, std::string_view lhs, std::string_view rhs); | ||
| 317 | void EmitFPUnordGreaterThanEqual16(EmitContext& ctx, std::string_view lhs, std::string_view rhs); | ||
| 318 | void EmitFPUnordGreaterThanEqual32(EmitContext& ctx, std::string_view lhs, std::string_view rhs); | ||
| 319 | void EmitFPUnordGreaterThanEqual64(EmitContext& ctx, std::string_view lhs, std::string_view rhs); | ||
| 320 | void EmitFPIsNan16(EmitContext& ctx, std::string_view value); | ||
| 321 | void EmitFPIsNan32(EmitContext& ctx, std::string_view value); | ||
| 322 | void EmitFPIsNan64(EmitContext& ctx, std::string_view value); | ||
| 323 | void EmitIAdd32(EmitContext& ctx, IR::Inst* inst, std::string_view a, std::string_view b); | ||
| 324 | void EmitIAdd64(EmitContext& ctx, std::string_view a, std::string_view b); | ||
| 325 | void EmitISub32(EmitContext& ctx, std::string_view a, std::string_view b); | ||
| 326 | void EmitISub64(EmitContext& ctx, std::string_view a, std::string_view b); | ||
| 327 | void EmitIMul32(EmitContext& ctx, std::string_view a, std::string_view b); | ||
| 328 | void EmitINeg32(EmitContext& ctx, std::string_view value); | ||
| 329 | void EmitINeg64(EmitContext& ctx, std::string_view value); | ||
| 330 | void EmitIAbs32(EmitContext& ctx, std::string_view value); | ||
| 331 | void EmitIAbs64(EmitContext& ctx, std::string_view value); | ||
| 332 | void EmitShiftLeftLogical32(EmitContext& ctx, std::string_view base, std::string_view shift); | ||
| 333 | void EmitShiftLeftLogical64(EmitContext& ctx, std::string_view base, std::string_view shift); | ||
| 334 | void EmitShiftRightLogical32(EmitContext& ctx, std::string_view base, std::string_view shift); | ||
| 335 | void EmitShiftRightLogical64(EmitContext& ctx, std::string_view base, std::string_view shift); | ||
| 336 | void EmitShiftRightArithmetic32(EmitContext& ctx, std::string_view base, std::string_view shift); | ||
| 337 | void EmitShiftRightArithmetic64(EmitContext& ctx, std::string_view base, std::string_view shift); | ||
| 338 | void EmitBitwiseAnd32(EmitContext& ctx, IR::Inst* inst, std::string_view a, std::string_view b); | ||
| 339 | void EmitBitwiseOr32(EmitContext& ctx, IR::Inst* inst, std::string_view a, std::string_view b); | ||
| 340 | void EmitBitwiseXor32(EmitContext& ctx, IR::Inst* inst, std::string_view a, std::string_view b); | ||
| 341 | void EmitBitFieldInsert(EmitContext& ctx, std::string_view base, std::string_view insert, | ||
| 342 | std::string_view offset, std::string_view count); | ||
| 343 | void EmitBitFieldSExtract(EmitContext& ctx, IR::Inst* inst, std::string_view base, | ||
| 344 | std::string_view offset, std::string_view count); | ||
| 345 | void EmitBitFieldUExtract(EmitContext& ctx, IR::Inst* inst, std::string_view base, | ||
| 346 | std::string_view offset, std::string_view count); | ||
| 347 | void EmitBitReverse32(EmitContext& ctx, std::string_view value); | ||
| 348 | void EmitBitCount32(EmitContext& ctx, std::string_view value); | ||
| 349 | void EmitBitwiseNot32(EmitContext& ctx, std::string_view value); | ||
| 350 | void EmitFindSMsb32(EmitContext& ctx, std::string_view value); | ||
| 351 | void EmitFindUMsb32(EmitContext& ctx, std::string_view value); | ||
| 352 | void EmitSMin32(EmitContext& ctx, std::string_view a, std::string_view b); | ||
| 353 | void EmitUMin32(EmitContext& ctx, std::string_view a, std::string_view b); | ||
| 354 | void EmitSMax32(EmitContext& ctx, std::string_view a, std::string_view b); | ||
| 355 | void EmitUMax32(EmitContext& ctx, std::string_view a, std::string_view b); | ||
| 356 | void EmitSClamp32(EmitContext& ctx, IR::Inst* inst, std::string_view value, std::string_view min, | ||
| 357 | std::string_view max); | ||
| 358 | void EmitUClamp32(EmitContext& ctx, IR::Inst* inst, std::string_view value, std::string_view min, | ||
| 359 | std::string_view max); | ||
| 360 | void EmitSLessThan(EmitContext& ctx, std::string_view lhs, std::string_view rhs); | ||
| 361 | void EmitULessThan(EmitContext& ctx, std::string_view lhs, std::string_view rhs); | ||
| 362 | void EmitIEqual(EmitContext& ctx, std::string_view lhs, std::string_view rhs); | ||
| 363 | void EmitSLessThanEqual(EmitContext& ctx, std::string_view lhs, std::string_view rhs); | ||
| 364 | void EmitULessThanEqual(EmitContext& ctx, std::string_view lhs, std::string_view rhs); | ||
| 365 | void EmitSGreaterThan(EmitContext& ctx, std::string_view lhs, std::string_view rhs); | ||
| 366 | void EmitUGreaterThan(EmitContext& ctx, std::string_view lhs, std::string_view rhs); | ||
| 367 | void EmitINotEqual(EmitContext& ctx, std::string_view lhs, std::string_view rhs); | ||
| 368 | void EmitSGreaterThanEqual(EmitContext& ctx, std::string_view lhs, std::string_view rhs); | ||
| 369 | void EmitUGreaterThanEqual(EmitContext& ctx, std::string_view lhs, std::string_view rhs); | ||
| 370 | void EmitSharedAtomicIAdd32(EmitContext& ctx, std::string_view pointer_offset, | ||
| 371 | std::string_view value); | ||
| 372 | void EmitSharedAtomicSMin32(EmitContext& ctx, std::string_view pointer_offset, | ||
| 373 | std::string_view value); | ||
| 374 | void EmitSharedAtomicUMin32(EmitContext& ctx, std::string_view pointer_offset, | ||
| 375 | std::string_view value); | ||
| 376 | void EmitSharedAtomicSMax32(EmitContext& ctx, std::string_view pointer_offset, | ||
| 377 | std::string_view value); | ||
| 378 | void EmitSharedAtomicUMax32(EmitContext& ctx, std::string_view pointer_offset, | ||
| 379 | std::string_view value); | ||
| 380 | void EmitSharedAtomicInc32(EmitContext& ctx, std::string_view pointer_offset, | ||
| 381 | std::string_view value); | ||
| 382 | void EmitSharedAtomicDec32(EmitContext& ctx, std::string_view pointer_offset, | ||
| 383 | std::string_view value); | ||
| 384 | void EmitSharedAtomicAnd32(EmitContext& ctx, std::string_view pointer_offset, | ||
| 385 | std::string_view value); | ||
| 386 | void EmitSharedAtomicOr32(EmitContext& ctx, std::string_view pointer_offset, | ||
| 387 | std::string_view value); | ||
| 388 | void EmitSharedAtomicXor32(EmitContext& ctx, std::string_view pointer_offset, | ||
| 389 | std::string_view value); | ||
| 390 | void EmitSharedAtomicExchange32(EmitContext& ctx, std::string_view pointer_offset, | ||
| 391 | std::string_view value); | ||
| 392 | void EmitSharedAtomicExchange64(EmitContext& ctx, std::string_view pointer_offset, | ||
| 393 | std::string_view value); | ||
| 394 | void EmitStorageAtomicIAdd32(EmitContext& ctx, const IR::Value& binding, const IR::Value& offset, | ||
| 395 | std::string_view value); | ||
| 396 | void EmitStorageAtomicSMin32(EmitContext& ctx, const IR::Value& binding, const IR::Value& offset, | ||
| 397 | std::string_view value); | ||
| 398 | void EmitStorageAtomicUMin32(EmitContext& ctx, const IR::Value& binding, const IR::Value& offset, | ||
| 399 | std::string_view value); | ||
| 400 | void EmitStorageAtomicSMax32(EmitContext& ctx, const IR::Value& binding, const IR::Value& offset, | ||
| 401 | std::string_view value); | ||
| 402 | void EmitStorageAtomicUMax32(EmitContext& ctx, const IR::Value& binding, const IR::Value& offset, | ||
| 403 | std::string_view value); | ||
| 404 | void EmitStorageAtomicInc32(EmitContext& ctx, const IR::Value& binding, const IR::Value& offset, | ||
| 405 | std::string_view value); | ||
| 406 | void EmitStorageAtomicDec32(EmitContext& ctx, const IR::Value& binding, const IR::Value& offset, | ||
| 407 | std::string_view value); | ||
| 408 | void EmitStorageAtomicAnd32(EmitContext& ctx, const IR::Value& binding, const IR::Value& offset, | ||
| 409 | std::string_view value); | ||
| 410 | void EmitStorageAtomicOr32(EmitContext& ctx, const IR::Value& binding, const IR::Value& offset, | ||
| 411 | std::string_view value); | ||
| 412 | void EmitStorageAtomicXor32(EmitContext& ctx, const IR::Value& binding, const IR::Value& offset, | ||
| 413 | std::string_view value); | ||
| 414 | void EmitStorageAtomicExchange32(EmitContext& ctx, const IR::Value& binding, | ||
| 415 | const IR::Value& offset, std::string_view value); | ||
| 416 | void EmitStorageAtomicIAdd64(EmitContext& ctx, const IR::Value& binding, const IR::Value& offset, | ||
| 417 | std::string_view value); | ||
| 418 | void EmitStorageAtomicSMin64(EmitContext& ctx, const IR::Value& binding, const IR::Value& offset, | ||
| 419 | std::string_view value); | ||
| 420 | void EmitStorageAtomicUMin64(EmitContext& ctx, const IR::Value& binding, const IR::Value& offset, | ||
| 421 | std::string_view value); | ||
| 422 | void EmitStorageAtomicSMax64(EmitContext& ctx, const IR::Value& binding, const IR::Value& offset, | ||
| 423 | std::string_view value); | ||
| 424 | void EmitStorageAtomicUMax64(EmitContext& ctx, const IR::Value& binding, const IR::Value& offset, | ||
| 425 | std::string_view value); | ||
| 426 | void EmitStorageAtomicAnd64(EmitContext& ctx, const IR::Value& binding, const IR::Value& offset, | ||
| 427 | std::string_view value); | ||
| 428 | void EmitStorageAtomicOr64(EmitContext& ctx, const IR::Value& binding, const IR::Value& offset, | ||
| 429 | std::string_view value); | ||
| 430 | void EmitStorageAtomicXor64(EmitContext& ctx, const IR::Value& binding, const IR::Value& offset, | ||
| 431 | std::string_view value); | ||
| 432 | void EmitStorageAtomicExchange64(EmitContext& ctx, const IR::Value& binding, | ||
| 433 | const IR::Value& offset, std::string_view value); | ||
| 434 | void EmitStorageAtomicAddF32(EmitContext& ctx, const IR::Value& binding, const IR::Value& offset, | ||
| 435 | std::string_view value); | ||
| 436 | void EmitStorageAtomicAddF16x2(EmitContext& ctx, const IR::Value& binding, const IR::Value& offset, | ||
| 437 | std::string_view value); | ||
| 438 | void EmitStorageAtomicAddF32x2(EmitContext& ctx, const IR::Value& binding, const IR::Value& offset, | ||
| 439 | std::string_view value); | ||
| 440 | void EmitStorageAtomicMinF16x2(EmitContext& ctx, const IR::Value& binding, const IR::Value& offset, | ||
| 441 | std::string_view value); | ||
| 442 | void EmitStorageAtomicMinF32x2(EmitContext& ctx, const IR::Value& binding, const IR::Value& offset, | ||
| 443 | std::string_view value); | ||
| 444 | void EmitStorageAtomicMaxF16x2(EmitContext& ctx, const IR::Value& binding, const IR::Value& offset, | ||
| 445 | std::string_view value); | ||
| 446 | void EmitStorageAtomicMaxF32x2(EmitContext& ctx, const IR::Value& binding, const IR::Value& offset, | ||
| 447 | std::string_view value); | ||
| 448 | void EmitGlobalAtomicIAdd32(EmitContext& ctx); | ||
| 449 | void EmitGlobalAtomicSMin32(EmitContext& ctx); | ||
| 450 | void EmitGlobalAtomicUMin32(EmitContext& ctx); | ||
| 451 | void EmitGlobalAtomicSMax32(EmitContext& ctx); | ||
| 452 | void EmitGlobalAtomicUMax32(EmitContext& ctx); | ||
| 453 | void EmitGlobalAtomicInc32(EmitContext& ctx); | ||
| 454 | void EmitGlobalAtomicDec32(EmitContext& ctx); | ||
| 455 | void EmitGlobalAtomicAnd32(EmitContext& ctx); | ||
| 456 | void EmitGlobalAtomicOr32(EmitContext& ctx); | ||
| 457 | void EmitGlobalAtomicXor32(EmitContext& ctx); | ||
| 458 | void EmitGlobalAtomicExchange32(EmitContext& ctx); | ||
| 459 | void EmitGlobalAtomicIAdd64(EmitContext& ctx); | ||
| 460 | void EmitGlobalAtomicSMin64(EmitContext& ctx); | ||
| 461 | void EmitGlobalAtomicUMin64(EmitContext& ctx); | ||
| 462 | void EmitGlobalAtomicSMax64(EmitContext& ctx); | ||
| 463 | void EmitGlobalAtomicUMax64(EmitContext& ctx); | ||
| 464 | void EmitGlobalAtomicInc64(EmitContext& ctx); | ||
| 465 | void EmitGlobalAtomicDec64(EmitContext& ctx); | ||
| 466 | void EmitGlobalAtomicAnd64(EmitContext& ctx); | ||
| 467 | void EmitGlobalAtomicOr64(EmitContext& ctx); | ||
| 468 | void EmitGlobalAtomicXor64(EmitContext& ctx); | ||
| 469 | void EmitGlobalAtomicExchange64(EmitContext& ctx); | ||
| 470 | void EmitGlobalAtomicAddF32(EmitContext& ctx); | ||
| 471 | void EmitGlobalAtomicAddF16x2(EmitContext& ctx); | ||
| 472 | void EmitGlobalAtomicAddF32x2(EmitContext& ctx); | ||
| 473 | void EmitGlobalAtomicMinF16x2(EmitContext& ctx); | ||
| 474 | void EmitGlobalAtomicMinF32x2(EmitContext& ctx); | ||
| 475 | void EmitGlobalAtomicMaxF16x2(EmitContext& ctx); | ||
| 476 | void EmitGlobalAtomicMaxF32x2(EmitContext& ctx); | ||
| 477 | void EmitLogicalOr(EmitContext& ctx, std::string_view a, std::string_view b); | ||
| 478 | void EmitLogicalAnd(EmitContext& ctx, std::string_view a, std::string_view b); | ||
| 479 | void EmitLogicalXor(EmitContext& ctx, std::string_view a, std::string_view b); | ||
| 480 | void EmitLogicalNot(EmitContext& ctx, std::string_view value); | ||
| 481 | void EmitConvertS16F16(EmitContext& ctx, std::string_view value); | ||
| 482 | void EmitConvertS16F32(EmitContext& ctx, std::string_view value); | ||
| 483 | void EmitConvertS16F64(EmitContext& ctx, std::string_view value); | ||
| 484 | void EmitConvertS32F16(EmitContext& ctx, std::string_view value); | ||
| 485 | void EmitConvertS32F32(EmitContext& ctx, std::string_view value); | ||
| 486 | void EmitConvertS32F64(EmitContext& ctx, std::string_view value); | ||
| 487 | void EmitConvertS64F16(EmitContext& ctx, std::string_view value); | ||
| 488 | void EmitConvertS64F32(EmitContext& ctx, std::string_view value); | ||
| 489 | void EmitConvertS64F64(EmitContext& ctx, std::string_view value); | ||
| 490 | void EmitConvertU16F16(EmitContext& ctx, std::string_view value); | ||
| 491 | void EmitConvertU16F32(EmitContext& ctx, std::string_view value); | ||
| 492 | void EmitConvertU16F64(EmitContext& ctx, std::string_view value); | ||
| 493 | void EmitConvertU32F16(EmitContext& ctx, std::string_view value); | ||
| 494 | void EmitConvertU32F32(EmitContext& ctx, std::string_view value); | ||
| 495 | void EmitConvertU32F64(EmitContext& ctx, std::string_view value); | ||
| 496 | void EmitConvertU64F16(EmitContext& ctx, std::string_view value); | ||
| 497 | void EmitConvertU64F32(EmitContext& ctx, std::string_view value); | ||
| 498 | void EmitConvertU64F64(EmitContext& ctx, std::string_view value); | ||
| 499 | void EmitConvertU64U32(EmitContext& ctx, std::string_view value); | ||
| 500 | void EmitConvertU32U64(EmitContext& ctx, std::string_view value); | ||
| 501 | void EmitConvertF16F32(EmitContext& ctx, std::string_view value); | ||
| 502 | void EmitConvertF32F16(EmitContext& ctx, std::string_view value); | ||
| 503 | void EmitConvertF32F64(EmitContext& ctx, std::string_view value); | ||
| 504 | void EmitConvertF64F32(EmitContext& ctx, std::string_view value); | ||
| 505 | void EmitConvertF16S8(EmitContext& ctx, std::string_view value); | ||
| 506 | void EmitConvertF16S16(EmitContext& ctx, std::string_view value); | ||
| 507 | void EmitConvertF16S32(EmitContext& ctx, std::string_view value); | ||
| 508 | void EmitConvertF16S64(EmitContext& ctx, std::string_view value); | ||
| 509 | void EmitConvertF16U8(EmitContext& ctx, std::string_view value); | ||
| 510 | void EmitConvertF16U16(EmitContext& ctx, std::string_view value); | ||
| 511 | void EmitConvertF16U32(EmitContext& ctx, std::string_view value); | ||
| 512 | void EmitConvertF16U64(EmitContext& ctx, std::string_view value); | ||
| 513 | void EmitConvertF32S8(EmitContext& ctx, std::string_view value); | ||
| 514 | void EmitConvertF32S16(EmitContext& ctx, std::string_view value); | ||
| 515 | void EmitConvertF32S32(EmitContext& ctx, std::string_view value); | ||
| 516 | void EmitConvertF32S64(EmitContext& ctx, std::string_view value); | ||
| 517 | void EmitConvertF32U8(EmitContext& ctx, std::string_view value); | ||
| 518 | void EmitConvertF32U16(EmitContext& ctx, std::string_view value); | ||
| 519 | void EmitConvertF32U32(EmitContext& ctx, std::string_view value); | ||
| 520 | void EmitConvertF32U64(EmitContext& ctx, std::string_view value); | ||
| 521 | void EmitConvertF64S8(EmitContext& ctx, std::string_view value); | ||
| 522 | void EmitConvertF64S16(EmitContext& ctx, std::string_view value); | ||
| 523 | void EmitConvertF64S32(EmitContext& ctx, std::string_view value); | ||
| 524 | void EmitConvertF64S64(EmitContext& ctx, std::string_view value); | ||
| 525 | void EmitConvertF64U8(EmitContext& ctx, std::string_view value); | ||
| 526 | void EmitConvertF64U16(EmitContext& ctx, std::string_view value); | ||
| 527 | void EmitConvertF64U32(EmitContext& ctx, std::string_view value); | ||
| 528 | void EmitConvertF64U64(EmitContext& ctx, std::string_view value); | ||
| 529 | void EmitBindlessImageSampleImplicitLod(EmitContext&); | ||
| 530 | void EmitBindlessImageSampleExplicitLod(EmitContext&); | ||
| 531 | void EmitBindlessImageSampleDrefImplicitLod(EmitContext&); | ||
| 532 | void EmitBindlessImageSampleDrefExplicitLod(EmitContext&); | ||
| 533 | void EmitBindlessImageGather(EmitContext&); | ||
| 534 | void EmitBindlessImageGatherDref(EmitContext&); | ||
| 535 | void EmitBindlessImageFetch(EmitContext&); | ||
| 536 | void EmitBindlessImageQueryDimensions(EmitContext&); | ||
| 537 | void EmitBindlessImageQueryLod(EmitContext&); | ||
| 538 | void EmitBindlessImageGradient(EmitContext&); | ||
| 539 | void EmitBindlessImageRead(EmitContext&); | ||
| 540 | void EmitBindlessImageWrite(EmitContext&); | ||
| 541 | void EmitBoundImageSampleImplicitLod(EmitContext&); | ||
| 542 | void EmitBoundImageSampleExplicitLod(EmitContext&); | ||
| 543 | void EmitBoundImageSampleDrefImplicitLod(EmitContext&); | ||
| 544 | void EmitBoundImageSampleDrefExplicitLod(EmitContext&); | ||
| 545 | void EmitBoundImageGather(EmitContext&); | ||
| 546 | void EmitBoundImageGatherDref(EmitContext&); | ||
| 547 | void EmitBoundImageFetch(EmitContext&); | ||
| 548 | void EmitBoundImageQueryDimensions(EmitContext&); | ||
| 549 | void EmitBoundImageQueryLod(EmitContext&); | ||
| 550 | void EmitBoundImageGradient(EmitContext&); | ||
| 551 | void EmitBoundImageRead(EmitContext&); | ||
| 552 | void EmitBoundImageWrite(EmitContext&); | ||
| 553 | void EmitImageSampleImplicitLod(EmitContext& ctx, IR::Inst* inst, const IR::Value& index, | ||
| 554 | std::string_view coords, std::string_view bias_lc, | ||
| 555 | const IR::Value& offset); | ||
| 556 | void EmitImageSampleExplicitLod(EmitContext& ctx, IR::Inst* inst, const IR::Value& index, | ||
| 557 | std::string_view coords, std::string_view lod_lc, | ||
| 558 | const IR::Value& offset); | ||
| 559 | void EmitImageSampleDrefImplicitLod(EmitContext& ctx, IR::Inst* inst, const IR::Value& index, | ||
| 560 | std::string_view coords, std::string_view dref, | ||
| 561 | std::string_view bias_lc, const IR::Value& offset); | ||
| 562 | void EmitImageSampleDrefExplicitLod(EmitContext& ctx, IR::Inst* inst, const IR::Value& index, | ||
| 563 | std::string_view coords, std::string_view dref, | ||
| 564 | std::string_view lod_lc, const IR::Value& offset); | ||
| 565 | void EmitImageGather(EmitContext& ctx, IR::Inst* inst, const IR::Value& index, | ||
| 566 | std::string_view coords, const IR::Value& offset, const IR::Value& offset2); | ||
| 567 | void EmitImageGatherDref(EmitContext& ctx, IR::Inst* inst, const IR::Value& index, | ||
| 568 | std::string_view coords, const IR::Value& offset, const IR::Value& offset2, | ||
| 569 | std::string_view dref); | ||
| 570 | void EmitImageFetch(EmitContext& ctx, IR::Inst* inst, const IR::Value& index, | ||
| 571 | std::string_view coords, std::string_view offset, std::string_view lod, | ||
| 572 | std::string_view ms); | ||
| 573 | void EmitImageQueryDimensions(EmitContext& ctx, IR::Inst* inst, const IR::Value& index, | ||
| 574 | std::string_view lod); | ||
| 575 | void EmitImageQueryLod(EmitContext& ctx, IR::Inst* inst, const IR::Value& index, | ||
| 576 | std::string_view coords); | ||
| 577 | void EmitImageGradient(EmitContext& ctx, IR::Inst* inst, const IR::Value& index, | ||
| 578 | std::string_view coords, std::string_view derivates, std::string_view offset, | ||
| 579 | std::string_view lod_clamp); | ||
| 580 | void EmitImageRead(EmitContext& ctx, IR::Inst* inst, const IR::Value& index, | ||
| 581 | std::string_view coords); | ||
| 582 | void EmitImageWrite(EmitContext& ctx, IR::Inst* inst, const IR::Value& index, | ||
| 583 | std::string_view coords, std::string_view color); | ||
| 584 | void EmitBindlessImageAtomicIAdd32(EmitContext&); | ||
| 585 | void EmitBindlessImageAtomicSMin32(EmitContext&); | ||
| 586 | void EmitBindlessImageAtomicUMin32(EmitContext&); | ||
| 587 | void EmitBindlessImageAtomicSMax32(EmitContext&); | ||
| 588 | void EmitBindlessImageAtomicUMax32(EmitContext&); | ||
| 589 | void EmitBindlessImageAtomicInc32(EmitContext&); | ||
| 590 | void EmitBindlessImageAtomicDec32(EmitContext&); | ||
| 591 | void EmitBindlessImageAtomicAnd32(EmitContext&); | ||
| 592 | void EmitBindlessImageAtomicOr32(EmitContext&); | ||
| 593 | void EmitBindlessImageAtomicXor32(EmitContext&); | ||
| 594 | void EmitBindlessImageAtomicExchange32(EmitContext&); | ||
| 595 | void EmitBoundImageAtomicIAdd32(EmitContext&); | ||
| 596 | void EmitBoundImageAtomicSMin32(EmitContext&); | ||
| 597 | void EmitBoundImageAtomicUMin32(EmitContext&); | ||
| 598 | void EmitBoundImageAtomicSMax32(EmitContext&); | ||
| 599 | void EmitBoundImageAtomicUMax32(EmitContext&); | ||
| 600 | void EmitBoundImageAtomicInc32(EmitContext&); | ||
| 601 | void EmitBoundImageAtomicDec32(EmitContext&); | ||
| 602 | void EmitBoundImageAtomicAnd32(EmitContext&); | ||
| 603 | void EmitBoundImageAtomicOr32(EmitContext&); | ||
| 604 | void EmitBoundImageAtomicXor32(EmitContext&); | ||
| 605 | void EmitBoundImageAtomicExchange32(EmitContext&); | ||
| 606 | void EmitImageAtomicIAdd32(EmitContext& ctx, IR::Inst* inst, const IR::Value& index, | ||
| 607 | std::string_view coords, std::string_view value); | ||
| 608 | void EmitImageAtomicSMin32(EmitContext& ctx, IR::Inst* inst, const IR::Value& index, | ||
| 609 | std::string_view coords, std::string_view value); | ||
| 610 | void EmitImageAtomicUMin32(EmitContext& ctx, IR::Inst* inst, const IR::Value& index, | ||
| 611 | std::string_view coords, std::string_view value); | ||
| 612 | void EmitImageAtomicSMax32(EmitContext& ctx, IR::Inst* inst, const IR::Value& index, | ||
| 613 | std::string_view coords, std::string_view value); | ||
| 614 | void EmitImageAtomicUMax32(EmitContext& ctx, IR::Inst* inst, const IR::Value& index, | ||
| 615 | std::string_view coords, std::string_view value); | ||
| 616 | void EmitImageAtomicInc32(EmitContext& ctx, IR::Inst* inst, const IR::Value& index, | ||
| 617 | std::string_view coords, std::string_view value); | ||
| 618 | void EmitImageAtomicDec32(EmitContext& ctx, IR::Inst* inst, const IR::Value& index, | ||
| 619 | std::string_view coords, std::string_view value); | ||
| 620 | void EmitImageAtomicAnd32(EmitContext& ctx, IR::Inst* inst, const IR::Value& index, | ||
| 621 | std::string_view coords, std::string_view value); | ||
| 622 | void EmitImageAtomicOr32(EmitContext& ctx, IR::Inst* inst, const IR::Value& index, | ||
| 623 | std::string_view coords, std::string_view value); | ||
| 624 | void EmitImageAtomicXor32(EmitContext& ctx, IR::Inst* inst, const IR::Value& index, | ||
| 625 | std::string_view coords, std::string_view value); | ||
| 626 | void EmitImageAtomicExchange32(EmitContext& ctx, IR::Inst* inst, const IR::Value& index, | ||
| 627 | std::string_view coords, std::string_view value); | ||
| 628 | void EmitLaneId(EmitContext& ctx); | ||
| 629 | void EmitVoteAll(EmitContext& ctx, std::string_view pred); | ||
| 630 | void EmitVoteAny(EmitContext& ctx, std::string_view pred); | ||
| 631 | void EmitVoteEqual(EmitContext& ctx, std::string_view pred); | ||
| 632 | void EmitSubgroupBallot(EmitContext& ctx, std::string_view pred); | ||
| 633 | void EmitSubgroupEqMask(EmitContext& ctx); | ||
| 634 | void EmitSubgroupLtMask(EmitContext& ctx); | ||
| 635 | void EmitSubgroupLeMask(EmitContext& ctx); | ||
| 636 | void EmitSubgroupGtMask(EmitContext& ctx); | ||
| 637 | void EmitSubgroupGeMask(EmitContext& ctx); | ||
| 638 | void EmitShuffleIndex(EmitContext& ctx, IR::Inst* inst, std::string_view value, | ||
| 639 | std::string_view index, std::string_view clamp, | ||
| 640 | std::string_view segmentation_mask); | ||
| 641 | void EmitShuffleUp(EmitContext& ctx, IR::Inst* inst, std::string_view value, std::string_view index, | ||
| 642 | std::string_view clamp, std::string_view segmentation_mask); | ||
| 643 | void EmitShuffleDown(EmitContext& ctx, IR::Inst* inst, std::string_view value, | ||
| 644 | std::string_view index, std::string_view clamp, | ||
| 645 | std::string_view segmentation_mask); | ||
| 646 | void EmitShuffleButterfly(EmitContext& ctx, IR::Inst* inst, std::string_view value, | ||
| 647 | std::string_view index, std::string_view clamp, | ||
| 648 | std::string_view segmentation_mask); | ||
| 649 | void EmitFSwizzleAdd(EmitContext& ctx, std::string_view op_a, std::string_view op_b, | ||
| 650 | std::string_view swizzle); | ||
| 651 | void EmitDPdxFine(EmitContext& ctx, std::string_view op_a); | ||
| 652 | void EmitDPdyFine(EmitContext& ctx, std::string_view op_a); | ||
| 653 | void EmitDPdxCoarse(EmitContext& ctx, std::string_view op_a); | ||
| 654 | void EmitDPdyCoarse(EmitContext& ctx, std::string_view op_a); | ||
| 655 | |||
| 656 | } // namespace Shader::Backend::GLSL | ||
diff --git a/src/shader_recompiler/backend/glsl/emit_glsl_integer.cpp b/src/shader_recompiler/backend/glsl/emit_glsl_integer.cpp new file mode 100644 index 000000000..e69de29bb --- /dev/null +++ b/src/shader_recompiler/backend/glsl/emit_glsl_integer.cpp | |||
diff --git a/src/shader_recompiler/backend/glsl/emit_glsl_logical.cpp b/src/shader_recompiler/backend/glsl/emit_glsl_logical.cpp new file mode 100644 index 000000000..e69de29bb --- /dev/null +++ b/src/shader_recompiler/backend/glsl/emit_glsl_logical.cpp | |||
diff --git a/src/shader_recompiler/backend/glsl/emit_glsl_memory.cpp b/src/shader_recompiler/backend/glsl/emit_glsl_memory.cpp new file mode 100644 index 000000000..e69de29bb --- /dev/null +++ b/src/shader_recompiler/backend/glsl/emit_glsl_memory.cpp | |||
diff --git a/src/shader_recompiler/backend/glsl/emit_glsl_not_implemented.cpp b/src/shader_recompiler/backend/glsl/emit_glsl_not_implemented.cpp new file mode 100644 index 000000000..8bd40458b --- /dev/null +++ b/src/shader_recompiler/backend/glsl/emit_glsl_not_implemented.cpp | |||
| @@ -0,0 +1,2149 @@ | |||
| 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/glsl/emit_context.h" | ||
| 8 | #include "shader_recompiler/backend/glsl/emit_glsl_instructions.h" | ||
| 9 | #include "shader_recompiler/frontend/ir/program.h" | ||
| 10 | #include "shader_recompiler/frontend/ir/value.h" | ||
| 11 | |||
| 12 | #ifdef _MSC_VER | ||
| 13 | #pragma warning(disable : 4100) | ||
| 14 | #endif | ||
| 15 | |||
| 16 | namespace Shader::Backend::GLSL { | ||
| 17 | |||
| 18 | static void NotImplemented() { | ||
| 19 | throw NotImplementedException("GLSL instruction"); | ||
| 20 | } | ||
| 21 | |||
| 22 | void EmitPhi(EmitContext& ctx, IR::Inst* inst) { | ||
| 23 | NotImplemented(); | ||
| 24 | } | ||
| 25 | |||
| 26 | void EmitVoid(EmitContext& ctx) { | ||
| 27 | NotImplemented(); | ||
| 28 | } | ||
| 29 | |||
| 30 | void EmitIdentity(EmitContext& ctx, const IR::Value& value) { | ||
| 31 | const auto var{ctx.AllocVar()}; | ||
| 32 | switch (value.Type()) { | ||
| 33 | case IR::Type::U32: | ||
| 34 | ctx.Add("uint {}={};", var, value.U32()); | ||
| 35 | break; | ||
| 36 | default: | ||
| 37 | ctx.Add("EmitIdentity {}", value.Type()); | ||
| 38 | break; | ||
| 39 | } | ||
| 40 | } | ||
| 41 | |||
| 42 | void EmitConditionRef(EmitContext& ctx, IR::Inst& inst, const IR::Value& value) { | ||
| 43 | NotImplemented(); | ||
| 44 | } | ||
| 45 | |||
| 46 | void EmitReference(EmitContext&) { | ||
| 47 | NotImplemented(); | ||
| 48 | } | ||
| 49 | |||
| 50 | void EmitPhiMove(EmitContext& ctx, const IR::Value& phi, const IR::Value& value) { | ||
| 51 | NotImplemented(); | ||
| 52 | } | ||
| 53 | |||
| 54 | void EmitBranch(EmitContext& ctx, std::string_view label) { | ||
| 55 | NotImplemented(); | ||
| 56 | } | ||
| 57 | |||
| 58 | void EmitBranchConditional(EmitContext& ctx, std::string_view condition, | ||
| 59 | std::string_view true_label, std::string_view false_label) { | ||
| 60 | NotImplemented(); | ||
| 61 | } | ||
| 62 | |||
| 63 | void EmitLoopMerge(EmitContext& ctx, std::string_view merge_label, | ||
| 64 | std::string_view continue_label) { | ||
| 65 | NotImplemented(); | ||
| 66 | } | ||
| 67 | |||
| 68 | void EmitSelectionMerge(EmitContext& ctx, std::string_view merge_label) { | ||
| 69 | NotImplemented(); | ||
| 70 | } | ||
| 71 | |||
| 72 | void EmitReturn(EmitContext& ctx) { | ||
| 73 | NotImplemented(); | ||
| 74 | } | ||
| 75 | |||
| 76 | void EmitJoin(EmitContext& ctx) { | ||
| 77 | NotImplemented(); | ||
| 78 | } | ||
| 79 | |||
| 80 | void EmitUnreachable(EmitContext& ctx) { | ||
| 81 | NotImplemented(); | ||
| 82 | } | ||
| 83 | |||
| 84 | void EmitDemoteToHelperInvocation(EmitContext& ctx, std::string_view continue_label) { | ||
| 85 | NotImplemented(); | ||
| 86 | } | ||
| 87 | |||
| 88 | void EmitBarrier(EmitContext& ctx) { | ||
| 89 | NotImplemented(); | ||
| 90 | } | ||
| 91 | |||
| 92 | void EmitWorkgroupMemoryBarrier(EmitContext& ctx) { | ||
| 93 | NotImplemented(); | ||
| 94 | } | ||
| 95 | |||
| 96 | void EmitDeviceMemoryBarrier(EmitContext& ctx) { | ||
| 97 | NotImplemented(); | ||
| 98 | } | ||
| 99 | |||
| 100 | void EmitPrologue(EmitContext& ctx) { | ||
| 101 | // NotImplemented(); | ||
| 102 | } | ||
| 103 | |||
| 104 | void EmitEpilogue(EmitContext& ctx) { | ||
| 105 | // NotImplemented(); | ||
| 106 | } | ||
| 107 | |||
| 108 | void EmitEmitVertex(EmitContext& ctx, const IR::Value& stream) { | ||
| 109 | NotImplemented(); | ||
| 110 | } | ||
| 111 | |||
| 112 | void EmitEndPrimitive(EmitContext& ctx, const IR::Value& stream) { | ||
| 113 | NotImplemented(); | ||
| 114 | } | ||
| 115 | |||
| 116 | void EmitGetRegister(EmitContext& ctx) { | ||
| 117 | NotImplemented(); | ||
| 118 | } | ||
| 119 | |||
| 120 | void EmitSetRegister(EmitContext& ctx) { | ||
| 121 | NotImplemented(); | ||
| 122 | } | ||
| 123 | |||
| 124 | void EmitGetPred(EmitContext& ctx) { | ||
| 125 | NotImplemented(); | ||
| 126 | } | ||
| 127 | |||
| 128 | void EmitSetPred(EmitContext& ctx) { | ||
| 129 | NotImplemented(); | ||
| 130 | } | ||
| 131 | |||
| 132 | void EmitSetGotoVariable(EmitContext& ctx) { | ||
| 133 | NotImplemented(); | ||
| 134 | } | ||
| 135 | |||
| 136 | void EmitGetGotoVariable(EmitContext& ctx) { | ||
| 137 | NotImplemented(); | ||
| 138 | } | ||
| 139 | |||
| 140 | void EmitSetIndirectBranchVariable(EmitContext& ctx) { | ||
| 141 | NotImplemented(); | ||
| 142 | } | ||
| 143 | |||
| 144 | void EmitGetIndirectBranchVariable(EmitContext& ctx) { | ||
| 145 | NotImplemented(); | ||
| 146 | } | ||
| 147 | |||
| 148 | void EmitGetAttribute(EmitContext& ctx, IR::Attribute attr, std::string_view vertex) { | ||
| 149 | NotImplemented(); | ||
| 150 | } | ||
| 151 | |||
| 152 | void EmitSetAttribute(EmitContext& ctx, IR::Attribute attr, std::string_view value, | ||
| 153 | std::string_view vertex) { | ||
| 154 | NotImplemented(); | ||
| 155 | } | ||
| 156 | |||
| 157 | void EmitGetAttributeIndexed(EmitContext& ctx, std::string_view offset, std::string_view vertex) { | ||
| 158 | NotImplemented(); | ||
| 159 | } | ||
| 160 | |||
| 161 | void EmitSetAttributeIndexed(EmitContext& ctx, std::string_view offset, std::string_view value, | ||
| 162 | std::string_view vertex) { | ||
| 163 | NotImplemented(); | ||
| 164 | } | ||
| 165 | |||
| 166 | void EmitGetPatch(EmitContext& ctx, IR::Patch patch) { | ||
| 167 | NotImplemented(); | ||
| 168 | } | ||
| 169 | |||
| 170 | void EmitSetPatch(EmitContext& ctx, IR::Patch patch, std::string_view value) { | ||
| 171 | NotImplemented(); | ||
| 172 | } | ||
| 173 | |||
| 174 | void EmitSetFragColor(EmitContext& ctx, u32 index, u32 component, std::string_view value) { | ||
| 175 | NotImplemented(); | ||
| 176 | } | ||
| 177 | |||
| 178 | void EmitSetSampleMask(EmitContext& ctx, std::string_view value) { | ||
| 179 | NotImplemented(); | ||
| 180 | } | ||
| 181 | |||
| 182 | void EmitSetFragDepth(EmitContext& ctx, std::string_view value) { | ||
| 183 | NotImplemented(); | ||
| 184 | } | ||
| 185 | |||
| 186 | void EmitGetZFlag(EmitContext& ctx) { | ||
| 187 | NotImplemented(); | ||
| 188 | } | ||
| 189 | |||
| 190 | void EmitGetSFlag(EmitContext& ctx) { | ||
| 191 | NotImplemented(); | ||
| 192 | } | ||
| 193 | |||
| 194 | void EmitGetCFlag(EmitContext& ctx) { | ||
| 195 | NotImplemented(); | ||
| 196 | } | ||
| 197 | |||
| 198 | void EmitGetOFlag(EmitContext& ctx) { | ||
| 199 | NotImplemented(); | ||
| 200 | } | ||
| 201 | |||
| 202 | void EmitSetZFlag(EmitContext& ctx) { | ||
| 203 | NotImplemented(); | ||
| 204 | } | ||
| 205 | |||
| 206 | void EmitSetSFlag(EmitContext& ctx) { | ||
| 207 | NotImplemented(); | ||
| 208 | } | ||
| 209 | |||
| 210 | void EmitSetCFlag(EmitContext& ctx) { | ||
| 211 | NotImplemented(); | ||
| 212 | } | ||
| 213 | |||
| 214 | void EmitSetOFlag(EmitContext& ctx) { | ||
| 215 | NotImplemented(); | ||
| 216 | } | ||
| 217 | |||
| 218 | void EmitWorkgroupId(EmitContext& ctx) { | ||
| 219 | NotImplemented(); | ||
| 220 | } | ||
| 221 | |||
| 222 | void EmitLocalInvocationId(EmitContext& ctx) { | ||
| 223 | NotImplemented(); | ||
| 224 | } | ||
| 225 | |||
| 226 | void EmitInvocationId(EmitContext& ctx) { | ||
| 227 | NotImplemented(); | ||
| 228 | } | ||
| 229 | |||
| 230 | void EmitSampleId(EmitContext& ctx) { | ||
| 231 | NotImplemented(); | ||
| 232 | } | ||
| 233 | |||
| 234 | void EmitIsHelperInvocation(EmitContext& ctx) { | ||
| 235 | NotImplemented(); | ||
| 236 | } | ||
| 237 | |||
| 238 | void EmitYDirection(EmitContext& ctx) { | ||
| 239 | NotImplemented(); | ||
| 240 | } | ||
| 241 | |||
| 242 | void EmitLoadLocal(EmitContext& ctx, std::string_view word_offset) { | ||
| 243 | NotImplemented(); | ||
| 244 | } | ||
| 245 | |||
| 246 | void EmitWriteLocal(EmitContext& ctx, std::string_view word_offset, std::string_view value) { | ||
| 247 | NotImplemented(); | ||
| 248 | } | ||
| 249 | |||
| 250 | void EmitUndefU1(EmitContext& ctx) { | ||
| 251 | NotImplemented(); | ||
| 252 | } | ||
| 253 | |||
| 254 | void EmitUndefU8(EmitContext& ctx) { | ||
| 255 | NotImplemented(); | ||
| 256 | } | ||
| 257 | |||
| 258 | void EmitUndefU16(EmitContext& ctx) { | ||
| 259 | NotImplemented(); | ||
| 260 | } | ||
| 261 | |||
| 262 | void EmitUndefU32(EmitContext& ctx) { | ||
| 263 | NotImplemented(); | ||
| 264 | } | ||
| 265 | |||
| 266 | void EmitUndefU64(EmitContext& ctx) { | ||
| 267 | NotImplemented(); | ||
| 268 | } | ||
| 269 | |||
| 270 | void EmitLoadGlobalU8(EmitContext& ctx) { | ||
| 271 | NotImplemented(); | ||
| 272 | } | ||
| 273 | |||
| 274 | void EmitLoadGlobalS8(EmitContext& ctx) { | ||
| 275 | NotImplemented(); | ||
| 276 | } | ||
| 277 | |||
| 278 | void EmitLoadGlobalU16(EmitContext& ctx) { | ||
| 279 | NotImplemented(); | ||
| 280 | } | ||
| 281 | |||
| 282 | void EmitLoadGlobalS16(EmitContext& ctx) { | ||
| 283 | NotImplemented(); | ||
| 284 | } | ||
| 285 | |||
| 286 | void EmitLoadGlobal32(EmitContext& ctx, std::string_view address) { | ||
| 287 | NotImplemented(); | ||
| 288 | } | ||
| 289 | |||
| 290 | void EmitLoadGlobal64(EmitContext& ctx, std::string_view address) { | ||
| 291 | NotImplemented(); | ||
| 292 | } | ||
| 293 | |||
| 294 | void EmitLoadGlobal128(EmitContext& ctx, std::string_view address) { | ||
| 295 | NotImplemented(); | ||
| 296 | } | ||
| 297 | |||
| 298 | void EmitWriteGlobalU8(EmitContext& ctx) { | ||
| 299 | NotImplemented(); | ||
| 300 | } | ||
| 301 | |||
| 302 | void EmitWriteGlobalS8(EmitContext& ctx) { | ||
| 303 | NotImplemented(); | ||
| 304 | } | ||
| 305 | |||
| 306 | void EmitWriteGlobalU16(EmitContext& ctx) { | ||
| 307 | NotImplemented(); | ||
| 308 | } | ||
| 309 | |||
| 310 | void EmitWriteGlobalS16(EmitContext& ctx) { | ||
| 311 | NotImplemented(); | ||
| 312 | } | ||
| 313 | |||
| 314 | void EmitWriteGlobal32(EmitContext& ctx, std::string_view address, std::string_view value) { | ||
| 315 | NotImplemented(); | ||
| 316 | } | ||
| 317 | |||
| 318 | void EmitWriteGlobal64(EmitContext& ctx, std::string_view address, std::string_view value) { | ||
| 319 | NotImplemented(); | ||
| 320 | } | ||
| 321 | |||
| 322 | void EmitWriteGlobal128(EmitContext& ctx, std::string_view address, std::string_view value) { | ||
| 323 | NotImplemented(); | ||
| 324 | } | ||
| 325 | |||
| 326 | void EmitLoadStorageU8(EmitContext& ctx, const IR::Value& binding, const IR::Value& offset) { | ||
| 327 | NotImplemented(); | ||
| 328 | } | ||
| 329 | |||
| 330 | void EmitLoadStorageS8(EmitContext& ctx, const IR::Value& binding, const IR::Value& offset) { | ||
| 331 | NotImplemented(); | ||
| 332 | } | ||
| 333 | |||
| 334 | void EmitLoadStorageU16(EmitContext& ctx, const IR::Value& binding, const IR::Value& offset) { | ||
| 335 | NotImplemented(); | ||
| 336 | } | ||
| 337 | |||
| 338 | void EmitLoadStorageS16(EmitContext& ctx, const IR::Value& binding, const IR::Value& offset) { | ||
| 339 | NotImplemented(); | ||
| 340 | } | ||
| 341 | |||
| 342 | void EmitLoadStorage32(EmitContext& ctx, const IR::Value& binding, const IR::Value& offset) { | ||
| 343 | NotImplemented(); | ||
| 344 | } | ||
| 345 | |||
| 346 | void EmitLoadStorage64(EmitContext& ctx, const IR::Value& binding, const IR::Value& offset) { | ||
| 347 | NotImplemented(); | ||
| 348 | } | ||
| 349 | |||
| 350 | void EmitLoadStorage128(EmitContext& ctx, const IR::Value& binding, const IR::Value& offset) { | ||
| 351 | NotImplemented(); | ||
| 352 | } | ||
| 353 | |||
| 354 | void EmitWriteStorageU8(EmitContext& ctx, const IR::Value& binding, const IR::Value& offset, | ||
| 355 | std::string_view value) { | ||
| 356 | NotImplemented(); | ||
| 357 | } | ||
| 358 | |||
| 359 | void EmitWriteStorageS8(EmitContext& ctx, const IR::Value& binding, const IR::Value& offset, | ||
| 360 | std::string_view value) { | ||
| 361 | NotImplemented(); | ||
| 362 | } | ||
| 363 | |||
| 364 | void EmitWriteStorageU16(EmitContext& ctx, const IR::Value& binding, const IR::Value& offset, | ||
| 365 | std::string_view value) { | ||
| 366 | NotImplemented(); | ||
| 367 | } | ||
| 368 | |||
| 369 | void EmitWriteStorageS16(EmitContext& ctx, const IR::Value& binding, const IR::Value& offset, | ||
| 370 | std::string_view value) { | ||
| 371 | NotImplemented(); | ||
| 372 | } | ||
| 373 | |||
| 374 | void EmitWriteStorage32(EmitContext& ctx, const IR::Value& binding, const IR::Value& offset, | ||
| 375 | std::string_view value) { | ||
| 376 | // ctx.Add("c{}[{}]={}", binding.U32() + 2, offset.U32(), 16); | ||
| 377 | ctx.Add("EmitWriteStorage32"); | ||
| 378 | // ctx.Add("c{}[{}]={}", binding.U32(), offset.U32(), value); | ||
| 379 | } | ||
| 380 | |||
| 381 | void EmitWriteStorage64(EmitContext& ctx, const IR::Value& binding, const IR::Value& offset, | ||
| 382 | std::string_view value) { | ||
| 383 | NotImplemented(); | ||
| 384 | } | ||
| 385 | |||
| 386 | void EmitWriteStorage128(EmitContext& ctx, const IR::Value& binding, const IR::Value& offset, | ||
| 387 | std::string_view value) { | ||
| 388 | NotImplemented(); | ||
| 389 | } | ||
| 390 | |||
| 391 | void EmitLoadSharedU8(EmitContext& ctx, std::string_view offset) { | ||
| 392 | NotImplemented(); | ||
| 393 | } | ||
| 394 | |||
| 395 | void EmitLoadSharedS8(EmitContext& ctx, std::string_view offset) { | ||
| 396 | NotImplemented(); | ||
| 397 | } | ||
| 398 | |||
| 399 | void EmitLoadSharedU16(EmitContext& ctx, std::string_view offset) { | ||
| 400 | NotImplemented(); | ||
| 401 | } | ||
| 402 | |||
| 403 | void EmitLoadSharedS16(EmitContext& ctx, std::string_view offset) { | ||
| 404 | NotImplemented(); | ||
| 405 | } | ||
| 406 | |||
| 407 | void EmitLoadSharedU32(EmitContext& ctx, std::string_view offset) { | ||
| 408 | NotImplemented(); | ||
| 409 | } | ||
| 410 | |||
| 411 | void EmitLoadSharedU64(EmitContext& ctx, std::string_view offset) { | ||
| 412 | NotImplemented(); | ||
| 413 | } | ||
| 414 | |||
| 415 | void EmitLoadSharedU128(EmitContext& ctx, std::string_view offset) { | ||
| 416 | NotImplemented(); | ||
| 417 | } | ||
| 418 | |||
| 419 | void EmitWriteSharedU8(EmitContext& ctx, std::string_view offset, std::string_view value) { | ||
| 420 | NotImplemented(); | ||
| 421 | } | ||
| 422 | |||
| 423 | void EmitWriteSharedU16(EmitContext& ctx, std::string_view offset, std::string_view value) { | ||
| 424 | NotImplemented(); | ||
| 425 | } | ||
| 426 | |||
| 427 | void EmitWriteSharedU32(EmitContext& ctx, std::string_view offset, std::string_view value) { | ||
| 428 | NotImplemented(); | ||
| 429 | } | ||
| 430 | |||
| 431 | void EmitWriteSharedU64(EmitContext& ctx, std::string_view offset, std::string_view value) { | ||
| 432 | NotImplemented(); | ||
| 433 | } | ||
| 434 | |||
| 435 | void EmitWriteSharedU128(EmitContext& ctx, std::string_view offset, std::string_view value) { | ||
| 436 | NotImplemented(); | ||
| 437 | } | ||
| 438 | |||
| 439 | void EmitCompositeConstructU32x2(EmitContext& ctx, std::string_view e1, std::string_view e2) { | ||
| 440 | NotImplemented(); | ||
| 441 | } | ||
| 442 | |||
| 443 | void EmitCompositeConstructU32x3(EmitContext& ctx, std::string_view e1, std::string_view e2, | ||
| 444 | std::string_view e3) { | ||
| 445 | NotImplemented(); | ||
| 446 | } | ||
| 447 | |||
| 448 | void EmitCompositeConstructU32x4(EmitContext& ctx, std::string_view e1, std::string_view e2, | ||
| 449 | std::string_view e3, std::string_view e4) { | ||
| 450 | NotImplemented(); | ||
| 451 | } | ||
| 452 | |||
| 453 | void EmitCompositeExtractU32x2(EmitContext& ctx, std::string_view composite, u32 index) { | ||
| 454 | NotImplemented(); | ||
| 455 | } | ||
| 456 | |||
| 457 | void EmitCompositeExtractU32x3(EmitContext& ctx, std::string_view composite, u32 index) { | ||
| 458 | NotImplemented(); | ||
| 459 | } | ||
| 460 | |||
| 461 | void EmitCompositeExtractU32x4(EmitContext& ctx, std::string_view composite, u32 index) { | ||
| 462 | NotImplemented(); | ||
| 463 | } | ||
| 464 | |||
| 465 | void EmitCompositeInsertU32x2(EmitContext& ctx, std::string_view composite, std::string_view object, | ||
| 466 | u32 index) { | ||
| 467 | NotImplemented(); | ||
| 468 | } | ||
| 469 | |||
| 470 | void EmitCompositeInsertU32x3(EmitContext& ctx, std::string_view composite, std::string_view object, | ||
| 471 | u32 index) { | ||
| 472 | NotImplemented(); | ||
| 473 | } | ||
| 474 | |||
| 475 | void EmitCompositeInsertU32x4(EmitContext& ctx, std::string_view composite, std::string_view object, | ||
| 476 | u32 index) { | ||
| 477 | NotImplemented(); | ||
| 478 | } | ||
| 479 | |||
| 480 | void EmitCompositeConstructF16x2(EmitContext& ctx, std::string_view e1, std::string_view e2) { | ||
| 481 | NotImplemented(); | ||
| 482 | } | ||
| 483 | |||
| 484 | void EmitCompositeConstructF16x3(EmitContext& ctx, std::string_view e1, std::string_view e2, | ||
| 485 | std::string_view e3) { | ||
| 486 | NotImplemented(); | ||
| 487 | } | ||
| 488 | |||
| 489 | void EmitCompositeConstructF16x4(EmitContext& ctx, std::string_view e1, std::string_view e2, | ||
| 490 | std::string_view e3, std::string_view e4) { | ||
| 491 | NotImplemented(); | ||
| 492 | } | ||
| 493 | |||
| 494 | void EmitCompositeExtractF16x2(EmitContext& ctx, std::string_view composite, u32 index) { | ||
| 495 | NotImplemented(); | ||
| 496 | } | ||
| 497 | |||
| 498 | void EmitCompositeExtractF16x3(EmitContext& ctx, std::string_view composite, u32 index) { | ||
| 499 | NotImplemented(); | ||
| 500 | } | ||
| 501 | |||
| 502 | void EmitCompositeExtractF16x4(EmitContext& ctx, std::string_view composite, u32 index) { | ||
| 503 | NotImplemented(); | ||
| 504 | } | ||
| 505 | |||
| 506 | void EmitCompositeInsertF16x2(EmitContext& ctx, std::string_view composite, std::string_view object, | ||
| 507 | u32 index) { | ||
| 508 | NotImplemented(); | ||
| 509 | } | ||
| 510 | |||
| 511 | void EmitCompositeInsertF16x3(EmitContext& ctx, std::string_view composite, std::string_view object, | ||
| 512 | u32 index) { | ||
| 513 | NotImplemented(); | ||
| 514 | } | ||
| 515 | |||
| 516 | void EmitCompositeInsertF16x4(EmitContext& ctx, std::string_view composite, std::string_view object, | ||
| 517 | u32 index) { | ||
| 518 | NotImplemented(); | ||
| 519 | } | ||
| 520 | |||
| 521 | void EmitCompositeConstructF32x2(EmitContext& ctx, std::string_view e1, std::string_view e2) { | ||
| 522 | NotImplemented(); | ||
| 523 | } | ||
| 524 | |||
| 525 | void EmitCompositeConstructF32x3(EmitContext& ctx, std::string_view e1, std::string_view e2, | ||
| 526 | std::string_view e3) { | ||
| 527 | NotImplemented(); | ||
| 528 | } | ||
| 529 | |||
| 530 | void EmitCompositeConstructF32x4(EmitContext& ctx, std::string_view e1, std::string_view e2, | ||
| 531 | std::string_view e3, std::string_view e4) { | ||
| 532 | NotImplemented(); | ||
| 533 | } | ||
| 534 | |||
| 535 | void EmitCompositeExtractF32x2(EmitContext& ctx, std::string_view composite, u32 index) { | ||
| 536 | NotImplemented(); | ||
| 537 | } | ||
| 538 | |||
| 539 | void EmitCompositeExtractF32x3(EmitContext& ctx, std::string_view composite, u32 index) { | ||
| 540 | NotImplemented(); | ||
| 541 | } | ||
| 542 | |||
| 543 | void EmitCompositeExtractF32x4(EmitContext& ctx, std::string_view composite, u32 index) { | ||
| 544 | NotImplemented(); | ||
| 545 | } | ||
| 546 | |||
| 547 | void EmitCompositeInsertF32x2(EmitContext& ctx, std::string_view composite, std::string_view object, | ||
| 548 | u32 index) { | ||
| 549 | NotImplemented(); | ||
| 550 | } | ||
| 551 | |||
| 552 | void EmitCompositeInsertF32x3(EmitContext& ctx, std::string_view composite, std::string_view object, | ||
| 553 | u32 index) { | ||
| 554 | NotImplemented(); | ||
| 555 | } | ||
| 556 | |||
| 557 | void EmitCompositeInsertF32x4(EmitContext& ctx, std::string_view composite, std::string_view object, | ||
| 558 | u32 index) { | ||
| 559 | NotImplemented(); | ||
| 560 | } | ||
| 561 | |||
| 562 | void EmitCompositeConstructF64x2(EmitContext& ctx) { | ||
| 563 | NotImplemented(); | ||
| 564 | } | ||
| 565 | |||
| 566 | void EmitCompositeConstructF64x3(EmitContext& ctx) { | ||
| 567 | NotImplemented(); | ||
| 568 | } | ||
| 569 | |||
| 570 | void EmitCompositeConstructF64x4(EmitContext& ctx) { | ||
| 571 | NotImplemented(); | ||
| 572 | } | ||
| 573 | |||
| 574 | void EmitCompositeExtractF64x2(EmitContext& ctx) { | ||
| 575 | NotImplemented(); | ||
| 576 | } | ||
| 577 | |||
| 578 | void EmitCompositeExtractF64x3(EmitContext& ctx) { | ||
| 579 | NotImplemented(); | ||
| 580 | } | ||
| 581 | |||
| 582 | void EmitCompositeExtractF64x4(EmitContext& ctx) { | ||
| 583 | NotImplemented(); | ||
| 584 | } | ||
| 585 | |||
| 586 | void EmitCompositeInsertF64x2(EmitContext& ctx, std::string_view composite, std::string_view object, | ||
| 587 | u32 index) { | ||
| 588 | NotImplemented(); | ||
| 589 | } | ||
| 590 | |||
| 591 | void EmitCompositeInsertF64x3(EmitContext& ctx, std::string_view composite, std::string_view object, | ||
| 592 | u32 index) { | ||
| 593 | NotImplemented(); | ||
| 594 | } | ||
| 595 | |||
| 596 | void EmitCompositeInsertF64x4(EmitContext& ctx, std::string_view composite, std::string_view object, | ||
| 597 | u32 index) { | ||
| 598 | NotImplemented(); | ||
| 599 | } | ||
| 600 | |||
| 601 | void EmitSelectU1(EmitContext& ctx, std::string_view cond, std::string_view true_value, | ||
| 602 | std::string_view false_value) { | ||
| 603 | NotImplemented(); | ||
| 604 | } | ||
| 605 | |||
| 606 | void EmitSelectU8(EmitContext& ctx, std::string_view cond, std::string_view true_value, | ||
| 607 | std::string_view false_value) { | ||
| 608 | NotImplemented(); | ||
| 609 | } | ||
| 610 | |||
| 611 | void EmitSelectU16(EmitContext& ctx, std::string_view cond, std::string_view true_value, | ||
| 612 | std::string_view false_value) { | ||
| 613 | NotImplemented(); | ||
| 614 | } | ||
| 615 | |||
| 616 | void EmitSelectU32(EmitContext& ctx, std::string_view cond, std::string_view true_value, | ||
| 617 | std::string_view false_value) { | ||
| 618 | NotImplemented(); | ||
| 619 | } | ||
| 620 | |||
| 621 | void EmitSelectU64(EmitContext& ctx, std::string_view cond, std::string_view true_value, | ||
| 622 | std::string_view false_value) { | ||
| 623 | NotImplemented(); | ||
| 624 | } | ||
| 625 | |||
| 626 | void EmitSelectF16(EmitContext& ctx, std::string_view cond, std::string_view true_value, | ||
| 627 | std::string_view false_value) { | ||
| 628 | NotImplemented(); | ||
| 629 | } | ||
| 630 | |||
| 631 | void EmitSelectF32(EmitContext& ctx, std::string_view cond, std::string_view true_value, | ||
| 632 | std::string_view false_value) { | ||
| 633 | NotImplemented(); | ||
| 634 | } | ||
| 635 | |||
| 636 | void EmitSelectF64(EmitContext& ctx, std::string_view cond, std::string_view true_value, | ||
| 637 | std::string_view false_value) { | ||
| 638 | NotImplemented(); | ||
| 639 | } | ||
| 640 | |||
| 641 | void EmitBitCastU16F16(EmitContext& ctx) { | ||
| 642 | NotImplemented(); | ||
| 643 | } | ||
| 644 | |||
| 645 | void EmitBitCastU32F32(EmitContext& ctx, std::string_view value) { | ||
| 646 | NotImplemented(); | ||
| 647 | } | ||
| 648 | |||
| 649 | void EmitBitCastU64F64(EmitContext& ctx) { | ||
| 650 | NotImplemented(); | ||
| 651 | } | ||
| 652 | |||
| 653 | void EmitBitCastF16U16(EmitContext& ctx) { | ||
| 654 | NotImplemented(); | ||
| 655 | } | ||
| 656 | |||
| 657 | void EmitBitCastF32U32(EmitContext& ctx, std::string_view value) { | ||
| 658 | NotImplemented(); | ||
| 659 | } | ||
| 660 | |||
| 661 | void EmitBitCastF64U64(EmitContext& ctx) { | ||
| 662 | NotImplemented(); | ||
| 663 | } | ||
| 664 | |||
| 665 | void EmitPackUint2x32(EmitContext& ctx, std::string_view value) { | ||
| 666 | NotImplemented(); | ||
| 667 | } | ||
| 668 | |||
| 669 | void EmitUnpackUint2x32(EmitContext& ctx, std::string_view value) { | ||
| 670 | NotImplemented(); | ||
| 671 | } | ||
| 672 | |||
| 673 | void EmitPackFloat2x16(EmitContext& ctx, std::string_view value) { | ||
| 674 | NotImplemented(); | ||
| 675 | } | ||
| 676 | |||
| 677 | void EmitUnpackFloat2x16(EmitContext& ctx, std::string_view value) { | ||
| 678 | NotImplemented(); | ||
| 679 | } | ||
| 680 | |||
| 681 | void EmitPackHalf2x16(EmitContext& ctx, std::string_view value) { | ||
| 682 | NotImplemented(); | ||
| 683 | } | ||
| 684 | |||
| 685 | void EmitUnpackHalf2x16(EmitContext& ctx, std::string_view value) { | ||
| 686 | NotImplemented(); | ||
| 687 | } | ||
| 688 | |||
| 689 | void EmitPackDouble2x32(EmitContext& ctx, std::string_view value) { | ||
| 690 | NotImplemented(); | ||
| 691 | } | ||
| 692 | |||
| 693 | void EmitUnpackDouble2x32(EmitContext& ctx, std::string_view value) { | ||
| 694 | NotImplemented(); | ||
| 695 | } | ||
| 696 | |||
| 697 | void EmitGetZeroFromOp(EmitContext& ctx) { | ||
| 698 | NotImplemented(); | ||
| 699 | } | ||
| 700 | |||
| 701 | void EmitGetSignFromOp(EmitContext& ctx) { | ||
| 702 | NotImplemented(); | ||
| 703 | } | ||
| 704 | |||
| 705 | void EmitGetCarryFromOp(EmitContext& ctx) { | ||
| 706 | NotImplemented(); | ||
| 707 | } | ||
| 708 | |||
| 709 | void EmitGetOverflowFromOp(EmitContext& ctx) { | ||
| 710 | NotImplemented(); | ||
| 711 | } | ||
| 712 | |||
| 713 | void EmitGetSparseFromOp(EmitContext& ctx) { | ||
| 714 | NotImplemented(); | ||
| 715 | } | ||
| 716 | |||
| 717 | void EmitGetInBoundsFromOp(EmitContext& ctx) { | ||
| 718 | NotImplemented(); | ||
| 719 | } | ||
| 720 | |||
| 721 | void EmitFPAbs16(EmitContext& ctx, std::string_view value) { | ||
| 722 | NotImplemented(); | ||
| 723 | } | ||
| 724 | |||
| 725 | void EmitFPAbs32(EmitContext& ctx, std::string_view value) { | ||
| 726 | NotImplemented(); | ||
| 727 | } | ||
| 728 | |||
| 729 | void EmitFPAbs64(EmitContext& ctx, std::string_view value) { | ||
| 730 | NotImplemented(); | ||
| 731 | } | ||
| 732 | |||
| 733 | void EmitFPAdd16(EmitContext& ctx, IR::Inst* inst, std::string_view a, std::string_view b) { | ||
| 734 | NotImplemented(); | ||
| 735 | } | ||
| 736 | |||
| 737 | void EmitFPAdd32(EmitContext& ctx, IR::Inst* inst, std::string_view a, std::string_view b) { | ||
| 738 | NotImplemented(); | ||
| 739 | } | ||
| 740 | |||
| 741 | void EmitFPAdd64(EmitContext& ctx, IR::Inst* inst, std::string_view a, std::string_view b) { | ||
| 742 | NotImplemented(); | ||
| 743 | } | ||
| 744 | |||
| 745 | void EmitFPFma16(EmitContext& ctx, IR::Inst* inst, std::string_view a, std::string_view b, | ||
| 746 | std::string_view c) { | ||
| 747 | NotImplemented(); | ||
| 748 | } | ||
| 749 | |||
| 750 | void EmitFPFma32(EmitContext& ctx, IR::Inst* inst, std::string_view a, std::string_view b, | ||
| 751 | std::string_view c) { | ||
| 752 | NotImplemented(); | ||
| 753 | } | ||
| 754 | |||
| 755 | void EmitFPFma64(EmitContext& ctx, IR::Inst* inst, std::string_view a, std::string_view b, | ||
| 756 | std::string_view c) { | ||
| 757 | NotImplemented(); | ||
| 758 | } | ||
| 759 | |||
| 760 | void EmitFPMax32(EmitContext& ctx, std::string_view a, std::string_view b) { | ||
| 761 | NotImplemented(); | ||
| 762 | } | ||
| 763 | |||
| 764 | void EmitFPMax64(EmitContext& ctx, std::string_view a, std::string_view b) { | ||
| 765 | NotImplemented(); | ||
| 766 | } | ||
| 767 | |||
| 768 | void EmitFPMin32(EmitContext& ctx, std::string_view a, std::string_view b) { | ||
| 769 | NotImplemented(); | ||
| 770 | } | ||
| 771 | |||
| 772 | void EmitFPMin64(EmitContext& ctx, std::string_view a, std::string_view b) { | ||
| 773 | NotImplemented(); | ||
| 774 | } | ||
| 775 | |||
| 776 | void EmitFPMul16(EmitContext& ctx, IR::Inst* inst, std::string_view a, std::string_view b) { | ||
| 777 | NotImplemented(); | ||
| 778 | } | ||
| 779 | |||
| 780 | void EmitFPMul32(EmitContext& ctx, IR::Inst* inst, std::string_view a, std::string_view b) { | ||
| 781 | NotImplemented(); | ||
| 782 | } | ||
| 783 | |||
| 784 | void EmitFPMul64(EmitContext& ctx, IR::Inst* inst, std::string_view a, std::string_view b) { | ||
| 785 | NotImplemented(); | ||
| 786 | } | ||
| 787 | |||
| 788 | void EmitFPNeg16(EmitContext& ctx, std::string_view value) { | ||
| 789 | NotImplemented(); | ||
| 790 | } | ||
| 791 | |||
| 792 | void EmitFPNeg32(EmitContext& ctx, std::string_view value) { | ||
| 793 | NotImplemented(); | ||
| 794 | } | ||
| 795 | |||
| 796 | void EmitFPNeg64(EmitContext& ctx, std::string_view value) { | ||
| 797 | NotImplemented(); | ||
| 798 | } | ||
| 799 | |||
| 800 | void EmitFPSin(EmitContext& ctx, std::string_view value) { | ||
| 801 | NotImplemented(); | ||
| 802 | } | ||
| 803 | |||
| 804 | void EmitFPCos(EmitContext& ctx, std::string_view value) { | ||
| 805 | NotImplemented(); | ||
| 806 | } | ||
| 807 | |||
| 808 | void EmitFPExp2(EmitContext& ctx, std::string_view value) { | ||
| 809 | NotImplemented(); | ||
| 810 | } | ||
| 811 | |||
| 812 | void EmitFPLog2(EmitContext& ctx, std::string_view value) { | ||
| 813 | NotImplemented(); | ||
| 814 | } | ||
| 815 | |||
| 816 | void EmitFPRecip32(EmitContext& ctx, std::string_view value) { | ||
| 817 | NotImplemented(); | ||
| 818 | } | ||
| 819 | |||
| 820 | void EmitFPRecip64(EmitContext& ctx, std::string_view value) { | ||
| 821 | NotImplemented(); | ||
| 822 | } | ||
| 823 | |||
| 824 | void EmitFPRecipSqrt32(EmitContext& ctx, std::string_view value) { | ||
| 825 | NotImplemented(); | ||
| 826 | } | ||
| 827 | |||
| 828 | void EmitFPRecipSqrt64(EmitContext& ctx, std::string_view value) { | ||
| 829 | NotImplemented(); | ||
| 830 | } | ||
| 831 | |||
| 832 | void EmitFPSqrt(EmitContext& ctx, std::string_view value) { | ||
| 833 | NotImplemented(); | ||
| 834 | } | ||
| 835 | |||
| 836 | void EmitFPSaturate16(EmitContext& ctx, std::string_view value) { | ||
| 837 | NotImplemented(); | ||
| 838 | } | ||
| 839 | |||
| 840 | void EmitFPSaturate32(EmitContext& ctx, std::string_view value) { | ||
| 841 | NotImplemented(); | ||
| 842 | } | ||
| 843 | |||
| 844 | void EmitFPSaturate64(EmitContext& ctx, std::string_view value) { | ||
| 845 | NotImplemented(); | ||
| 846 | } | ||
| 847 | |||
| 848 | void EmitFPClamp16(EmitContext& ctx, std::string_view value, std::string_view min_value, | ||
| 849 | std::string_view max_value) { | ||
| 850 | NotImplemented(); | ||
| 851 | } | ||
| 852 | |||
| 853 | void EmitFPClamp32(EmitContext& ctx, std::string_view value, std::string_view min_value, | ||
| 854 | std::string_view max_value) { | ||
| 855 | NotImplemented(); | ||
| 856 | } | ||
| 857 | |||
| 858 | void EmitFPClamp64(EmitContext& ctx, std::string_view value, std::string_view min_value, | ||
| 859 | std::string_view max_value) { | ||
| 860 | NotImplemented(); | ||
| 861 | } | ||
| 862 | |||
| 863 | void EmitFPRoundEven16(EmitContext& ctx, std::string_view value) { | ||
| 864 | NotImplemented(); | ||
| 865 | } | ||
| 866 | |||
| 867 | void EmitFPRoundEven32(EmitContext& ctx, std::string_view value) { | ||
| 868 | NotImplemented(); | ||
| 869 | } | ||
| 870 | |||
| 871 | void EmitFPRoundEven64(EmitContext& ctx, std::string_view value) { | ||
| 872 | NotImplemented(); | ||
| 873 | } | ||
| 874 | |||
| 875 | void EmitFPFloor16(EmitContext& ctx, std::string_view value) { | ||
| 876 | NotImplemented(); | ||
| 877 | } | ||
| 878 | |||
| 879 | void EmitFPFloor32(EmitContext& ctx, std::string_view value) { | ||
| 880 | NotImplemented(); | ||
| 881 | } | ||
| 882 | |||
| 883 | void EmitFPFloor64(EmitContext& ctx, std::string_view value) { | ||
| 884 | NotImplemented(); | ||
| 885 | } | ||
| 886 | |||
| 887 | void EmitFPCeil16(EmitContext& ctx, std::string_view value) { | ||
| 888 | NotImplemented(); | ||
| 889 | } | ||
| 890 | |||
| 891 | void EmitFPCeil32(EmitContext& ctx, std::string_view value) { | ||
| 892 | NotImplemented(); | ||
| 893 | } | ||
| 894 | |||
| 895 | void EmitFPCeil64(EmitContext& ctx, std::string_view value) { | ||
| 896 | NotImplemented(); | ||
| 897 | } | ||
| 898 | |||
| 899 | void EmitFPTrunc16(EmitContext& ctx, std::string_view value) { | ||
| 900 | NotImplemented(); | ||
| 901 | } | ||
| 902 | |||
| 903 | void EmitFPTrunc32(EmitContext& ctx, std::string_view value) { | ||
| 904 | NotImplemented(); | ||
| 905 | } | ||
| 906 | |||
| 907 | void EmitFPTrunc64(EmitContext& ctx, std::string_view value) { | ||
| 908 | NotImplemented(); | ||
| 909 | } | ||
| 910 | |||
| 911 | void EmitFPOrdEqual16(EmitContext& ctx, std::string_view lhs, std::string_view rhs) { | ||
| 912 | NotImplemented(); | ||
| 913 | } | ||
| 914 | |||
| 915 | void EmitFPOrdEqual32(EmitContext& ctx, std::string_view lhs, std::string_view rhs) { | ||
| 916 | NotImplemented(); | ||
| 917 | } | ||
| 918 | |||
| 919 | void EmitFPOrdEqual64(EmitContext& ctx, std::string_view lhs, std::string_view rhs) { | ||
| 920 | NotImplemented(); | ||
| 921 | } | ||
| 922 | |||
| 923 | void EmitFPUnordEqual16(EmitContext& ctx, std::string_view lhs, std::string_view rhs) { | ||
| 924 | NotImplemented(); | ||
| 925 | } | ||
| 926 | |||
| 927 | void EmitFPUnordEqual32(EmitContext& ctx, std::string_view lhs, std::string_view rhs) { | ||
| 928 | NotImplemented(); | ||
| 929 | } | ||
| 930 | |||
| 931 | void EmitFPUnordEqual64(EmitContext& ctx, std::string_view lhs, std::string_view rhs) { | ||
| 932 | NotImplemented(); | ||
| 933 | } | ||
| 934 | |||
| 935 | void EmitFPOrdNotEqual16(EmitContext& ctx, std::string_view lhs, std::string_view rhs) { | ||
| 936 | NotImplemented(); | ||
| 937 | } | ||
| 938 | |||
| 939 | void EmitFPOrdNotEqual32(EmitContext& ctx, std::string_view lhs, std::string_view rhs) { | ||
| 940 | NotImplemented(); | ||
| 941 | } | ||
| 942 | |||
| 943 | void EmitFPOrdNotEqual64(EmitContext& ctx, std::string_view lhs, std::string_view rhs) { | ||
| 944 | NotImplemented(); | ||
| 945 | } | ||
| 946 | |||
| 947 | void EmitFPUnordNotEqual16(EmitContext& ctx, std::string_view lhs, std::string_view rhs) { | ||
| 948 | NotImplemented(); | ||
| 949 | } | ||
| 950 | |||
| 951 | void EmitFPUnordNotEqual32(EmitContext& ctx, std::string_view lhs, std::string_view rhs) { | ||
| 952 | NotImplemented(); | ||
| 953 | } | ||
| 954 | |||
| 955 | void EmitFPUnordNotEqual64(EmitContext& ctx, std::string_view lhs, std::string_view rhs) { | ||
| 956 | NotImplemented(); | ||
| 957 | } | ||
| 958 | |||
| 959 | void EmitFPOrdLessThan16(EmitContext& ctx, std::string_view lhs, std::string_view rhs) { | ||
| 960 | NotImplemented(); | ||
| 961 | } | ||
| 962 | |||
| 963 | void EmitFPOrdLessThan32(EmitContext& ctx, std::string_view lhs, std::string_view rhs) { | ||
| 964 | NotImplemented(); | ||
| 965 | } | ||
| 966 | |||
| 967 | void EmitFPOrdLessThan64(EmitContext& ctx, std::string_view lhs, std::string_view rhs) { | ||
| 968 | NotImplemented(); | ||
| 969 | } | ||
| 970 | |||
| 971 | void EmitFPUnordLessThan16(EmitContext& ctx, std::string_view lhs, std::string_view rhs) { | ||
| 972 | NotImplemented(); | ||
| 973 | } | ||
| 974 | |||
| 975 | void EmitFPUnordLessThan32(EmitContext& ctx, std::string_view lhs, std::string_view rhs) { | ||
| 976 | NotImplemented(); | ||
| 977 | } | ||
| 978 | |||
| 979 | void EmitFPUnordLessThan64(EmitContext& ctx, std::string_view lhs, std::string_view rhs) { | ||
| 980 | NotImplemented(); | ||
| 981 | } | ||
| 982 | |||
| 983 | void EmitFPOrdGreaterThan16(EmitContext& ctx, std::string_view lhs, std::string_view rhs) { | ||
| 984 | NotImplemented(); | ||
| 985 | } | ||
| 986 | |||
| 987 | void EmitFPOrdGreaterThan32(EmitContext& ctx, std::string_view lhs, std::string_view rhs) { | ||
| 988 | NotImplemented(); | ||
| 989 | } | ||
| 990 | |||
| 991 | void EmitFPOrdGreaterThan64(EmitContext& ctx, std::string_view lhs, std::string_view rhs) { | ||
| 992 | NotImplemented(); | ||
| 993 | } | ||
| 994 | |||
| 995 | void EmitFPUnordGreaterThan16(EmitContext& ctx, std::string_view lhs, std::string_view rhs) { | ||
| 996 | NotImplemented(); | ||
| 997 | } | ||
| 998 | |||
| 999 | void EmitFPUnordGreaterThan32(EmitContext& ctx, std::string_view lhs, std::string_view rhs) { | ||
| 1000 | NotImplemented(); | ||
| 1001 | } | ||
| 1002 | |||
| 1003 | void EmitFPUnordGreaterThan64(EmitContext& ctx, std::string_view lhs, std::string_view rhs) { | ||
| 1004 | NotImplemented(); | ||
| 1005 | } | ||
| 1006 | |||
| 1007 | void EmitFPOrdLessThanEqual16(EmitContext& ctx, std::string_view lhs, std::string_view rhs) { | ||
| 1008 | NotImplemented(); | ||
| 1009 | } | ||
| 1010 | |||
| 1011 | void EmitFPOrdLessThanEqual32(EmitContext& ctx, std::string_view lhs, std::string_view rhs) { | ||
| 1012 | NotImplemented(); | ||
| 1013 | } | ||
| 1014 | |||
| 1015 | void EmitFPOrdLessThanEqual64(EmitContext& ctx, std::string_view lhs, std::string_view rhs) { | ||
| 1016 | NotImplemented(); | ||
| 1017 | } | ||
| 1018 | |||
| 1019 | void EmitFPUnordLessThanEqual16(EmitContext& ctx, std::string_view lhs, std::string_view rhs) { | ||
| 1020 | NotImplemented(); | ||
| 1021 | } | ||
| 1022 | |||
| 1023 | void EmitFPUnordLessThanEqual32(EmitContext& ctx, std::string_view lhs, std::string_view rhs) { | ||
| 1024 | NotImplemented(); | ||
| 1025 | } | ||
| 1026 | |||
| 1027 | void EmitFPUnordLessThanEqual64(EmitContext& ctx, std::string_view lhs, std::string_view rhs) { | ||
| 1028 | NotImplemented(); | ||
| 1029 | } | ||
| 1030 | |||
| 1031 | void EmitFPOrdGreaterThanEqual16(EmitContext& ctx, std::string_view lhs, std::string_view rhs) { | ||
| 1032 | NotImplemented(); | ||
| 1033 | } | ||
| 1034 | |||
| 1035 | void EmitFPOrdGreaterThanEqual32(EmitContext& ctx, std::string_view lhs, std::string_view rhs) { | ||
| 1036 | NotImplemented(); | ||
| 1037 | } | ||
| 1038 | |||
| 1039 | void EmitFPOrdGreaterThanEqual64(EmitContext& ctx, std::string_view lhs, std::string_view rhs) { | ||
| 1040 | NotImplemented(); | ||
| 1041 | } | ||
| 1042 | |||
| 1043 | void EmitFPUnordGreaterThanEqual16(EmitContext& ctx, std::string_view lhs, std::string_view rhs) { | ||
| 1044 | NotImplemented(); | ||
| 1045 | } | ||
| 1046 | |||
| 1047 | void EmitFPUnordGreaterThanEqual32(EmitContext& ctx, std::string_view lhs, std::string_view rhs) { | ||
| 1048 | NotImplemented(); | ||
| 1049 | } | ||
| 1050 | |||
| 1051 | void EmitFPUnordGreaterThanEqual64(EmitContext& ctx, std::string_view lhs, std::string_view rhs) { | ||
| 1052 | NotImplemented(); | ||
| 1053 | } | ||
| 1054 | |||
| 1055 | void EmitFPIsNan16(EmitContext& ctx, std::string_view value) { | ||
| 1056 | NotImplemented(); | ||
| 1057 | } | ||
| 1058 | |||
| 1059 | void EmitFPIsNan32(EmitContext& ctx, std::string_view value) { | ||
| 1060 | NotImplemented(); | ||
| 1061 | } | ||
| 1062 | |||
| 1063 | void EmitFPIsNan64(EmitContext& ctx, std::string_view value) { | ||
| 1064 | NotImplemented(); | ||
| 1065 | } | ||
| 1066 | |||
| 1067 | void EmitIAdd32(EmitContext& ctx, IR::Inst* inst, std::string_view a, std::string_view b) { | ||
| 1068 | NotImplemented(); | ||
| 1069 | } | ||
| 1070 | |||
| 1071 | void EmitIAdd64(EmitContext& ctx, std::string_view a, std::string_view b) { | ||
| 1072 | NotImplemented(); | ||
| 1073 | } | ||
| 1074 | |||
| 1075 | void EmitISub32(EmitContext& ctx, std::string_view a, std::string_view b) { | ||
| 1076 | NotImplemented(); | ||
| 1077 | } | ||
| 1078 | |||
| 1079 | void EmitISub64(EmitContext& ctx, std::string_view a, std::string_view b) { | ||
| 1080 | NotImplemented(); | ||
| 1081 | } | ||
| 1082 | |||
| 1083 | void EmitIMul32(EmitContext& ctx, std::string_view a, std::string_view b) { | ||
| 1084 | NotImplemented(); | ||
| 1085 | } | ||
| 1086 | |||
| 1087 | void EmitINeg32(EmitContext& ctx, std::string_view value) { | ||
| 1088 | NotImplemented(); | ||
| 1089 | } | ||
| 1090 | |||
| 1091 | void EmitINeg64(EmitContext& ctx, std::string_view value) { | ||
| 1092 | NotImplemented(); | ||
| 1093 | } | ||
| 1094 | |||
| 1095 | void EmitIAbs32(EmitContext& ctx, std::string_view value) { | ||
| 1096 | NotImplemented(); | ||
| 1097 | } | ||
| 1098 | |||
| 1099 | void EmitIAbs64(EmitContext& ctx, std::string_view value) { | ||
| 1100 | NotImplemented(); | ||
| 1101 | } | ||
| 1102 | |||
| 1103 | void EmitShiftLeftLogical32(EmitContext& ctx, std::string_view base, std::string_view shift) { | ||
| 1104 | NotImplemented(); | ||
| 1105 | } | ||
| 1106 | |||
| 1107 | void EmitShiftLeftLogical64(EmitContext& ctx, std::string_view base, std::string_view shift) { | ||
| 1108 | NotImplemented(); | ||
| 1109 | } | ||
| 1110 | |||
| 1111 | void EmitShiftRightLogical32(EmitContext& ctx, std::string_view base, std::string_view shift) { | ||
| 1112 | NotImplemented(); | ||
| 1113 | } | ||
| 1114 | |||
| 1115 | void EmitShiftRightLogical64(EmitContext& ctx, std::string_view base, std::string_view shift) { | ||
| 1116 | NotImplemented(); | ||
| 1117 | } | ||
| 1118 | |||
| 1119 | void EmitShiftRightArithmetic32(EmitContext& ctx, std::string_view base, std::string_view shift) { | ||
| 1120 | NotImplemented(); | ||
| 1121 | } | ||
| 1122 | |||
| 1123 | void EmitShiftRightArithmetic64(EmitContext& ctx, std::string_view base, std::string_view shift) { | ||
| 1124 | NotImplemented(); | ||
| 1125 | } | ||
| 1126 | |||
| 1127 | void EmitBitwiseAnd32(EmitContext& ctx, IR::Inst* inst, std::string_view a, std::string_view b) { | ||
| 1128 | NotImplemented(); | ||
| 1129 | } | ||
| 1130 | |||
| 1131 | void EmitBitwiseOr32(EmitContext& ctx, IR::Inst* inst, std::string_view a, std::string_view b) { | ||
| 1132 | NotImplemented(); | ||
| 1133 | } | ||
| 1134 | |||
| 1135 | void EmitBitwiseXor32(EmitContext& ctx, IR::Inst* inst, std::string_view a, std::string_view b) { | ||
| 1136 | NotImplemented(); | ||
| 1137 | } | ||
| 1138 | |||
| 1139 | void EmitBitFieldInsert(EmitContext& ctx, std::string_view base, std::string_view insert, | ||
| 1140 | std::string_view offset, std::string_view count) { | ||
| 1141 | NotImplemented(); | ||
| 1142 | } | ||
| 1143 | |||
| 1144 | void EmitBitFieldSExtract(EmitContext& ctx, IR::Inst* inst, std::string_view base, | ||
| 1145 | std::string_view offset, std::string_view count) { | ||
| 1146 | NotImplemented(); | ||
| 1147 | } | ||
| 1148 | |||
| 1149 | void EmitBitFieldUExtract(EmitContext& ctx, IR::Inst* inst, std::string_view base, | ||
| 1150 | std::string_view offset, std::string_view count) { | ||
| 1151 | NotImplemented(); | ||
| 1152 | } | ||
| 1153 | |||
| 1154 | void EmitBitReverse32(EmitContext& ctx, std::string_view value) { | ||
| 1155 | NotImplemented(); | ||
| 1156 | } | ||
| 1157 | |||
| 1158 | void EmitBitCount32(EmitContext& ctx, std::string_view value) { | ||
| 1159 | NotImplemented(); | ||
| 1160 | } | ||
| 1161 | |||
| 1162 | void EmitBitwiseNot32(EmitContext& ctx, std::string_view value) { | ||
| 1163 | NotImplemented(); | ||
| 1164 | } | ||
| 1165 | |||
| 1166 | void EmitFindSMsb32(EmitContext& ctx, std::string_view value) { | ||
| 1167 | NotImplemented(); | ||
| 1168 | } | ||
| 1169 | |||
| 1170 | void EmitFindUMsb32(EmitContext& ctx, std::string_view value) { | ||
| 1171 | NotImplemented(); | ||
| 1172 | } | ||
| 1173 | |||
| 1174 | void EmitSMin32(EmitContext& ctx, std::string_view a, std::string_view b) { | ||
| 1175 | NotImplemented(); | ||
| 1176 | } | ||
| 1177 | |||
| 1178 | void EmitUMin32(EmitContext& ctx, std::string_view a, std::string_view b) { | ||
| 1179 | NotImplemented(); | ||
| 1180 | } | ||
| 1181 | |||
| 1182 | void EmitSMax32(EmitContext& ctx, std::string_view a, std::string_view b) { | ||
| 1183 | NotImplemented(); | ||
| 1184 | } | ||
| 1185 | |||
| 1186 | void EmitUMax32(EmitContext& ctx, std::string_view a, std::string_view b) { | ||
| 1187 | NotImplemented(); | ||
| 1188 | } | ||
| 1189 | |||
| 1190 | void EmitSClamp32(EmitContext& ctx, IR::Inst* inst, std::string_view value, std::string_view min, | ||
| 1191 | std::string_view max) { | ||
| 1192 | NotImplemented(); | ||
| 1193 | } | ||
| 1194 | |||
| 1195 | void EmitUClamp32(EmitContext& ctx, IR::Inst* inst, std::string_view value, std::string_view min, | ||
| 1196 | std::string_view max) { | ||
| 1197 | NotImplemented(); | ||
| 1198 | } | ||
| 1199 | |||
| 1200 | void EmitSLessThan(EmitContext& ctx, std::string_view lhs, std::string_view rhs) { | ||
| 1201 | NotImplemented(); | ||
| 1202 | } | ||
| 1203 | |||
| 1204 | void EmitULessThan(EmitContext& ctx, std::string_view lhs, std::string_view rhs) { | ||
| 1205 | NotImplemented(); | ||
| 1206 | } | ||
| 1207 | |||
| 1208 | void EmitIEqual(EmitContext& ctx, std::string_view lhs, std::string_view rhs) { | ||
| 1209 | NotImplemented(); | ||
| 1210 | } | ||
| 1211 | |||
| 1212 | void EmitSLessThanEqual(EmitContext& ctx, std::string_view lhs, std::string_view rhs) { | ||
| 1213 | NotImplemented(); | ||
| 1214 | } | ||
| 1215 | |||
| 1216 | void EmitULessThanEqual(EmitContext& ctx, std::string_view lhs, std::string_view rhs) { | ||
| 1217 | NotImplemented(); | ||
| 1218 | } | ||
| 1219 | |||
| 1220 | void EmitSGreaterThan(EmitContext& ctx, std::string_view lhs, std::string_view rhs) { | ||
| 1221 | NotImplemented(); | ||
| 1222 | } | ||
| 1223 | |||
| 1224 | void EmitUGreaterThan(EmitContext& ctx, std::string_view lhs, std::string_view rhs) { | ||
| 1225 | NotImplemented(); | ||
| 1226 | } | ||
| 1227 | |||
| 1228 | void EmitINotEqual(EmitContext& ctx, std::string_view lhs, std::string_view rhs) { | ||
| 1229 | NotImplemented(); | ||
| 1230 | } | ||
| 1231 | |||
| 1232 | void EmitSGreaterThanEqual(EmitContext& ctx, std::string_view lhs, std::string_view rhs) { | ||
| 1233 | NotImplemented(); | ||
| 1234 | } | ||
| 1235 | |||
| 1236 | void EmitUGreaterThanEqual(EmitContext& ctx, std::string_view lhs, std::string_view rhs) { | ||
| 1237 | NotImplemented(); | ||
| 1238 | } | ||
| 1239 | |||
| 1240 | void EmitSharedAtomicIAdd32(EmitContext& ctx, std::string_view pointer_offset, | ||
| 1241 | std::string_view value) { | ||
| 1242 | NotImplemented(); | ||
| 1243 | } | ||
| 1244 | |||
| 1245 | void EmitSharedAtomicSMin32(EmitContext& ctx, std::string_view pointer_offset, | ||
| 1246 | std::string_view value) { | ||
| 1247 | NotImplemented(); | ||
| 1248 | } | ||
| 1249 | |||
| 1250 | void EmitSharedAtomicUMin32(EmitContext& ctx, std::string_view pointer_offset, | ||
| 1251 | std::string_view value) { | ||
| 1252 | NotImplemented(); | ||
| 1253 | } | ||
| 1254 | |||
| 1255 | void EmitSharedAtomicSMax32(EmitContext& ctx, std::string_view pointer_offset, | ||
| 1256 | std::string_view value) { | ||
| 1257 | NotImplemented(); | ||
| 1258 | } | ||
| 1259 | |||
| 1260 | void EmitSharedAtomicUMax32(EmitContext& ctx, std::string_view pointer_offset, | ||
| 1261 | std::string_view value) { | ||
| 1262 | NotImplemented(); | ||
| 1263 | } | ||
| 1264 | |||
| 1265 | void EmitSharedAtomicInc32(EmitContext& ctx, std::string_view pointer_offset, | ||
| 1266 | std::string_view value) { | ||
| 1267 | NotImplemented(); | ||
| 1268 | } | ||
| 1269 | |||
| 1270 | void EmitSharedAtomicDec32(EmitContext& ctx, std::string_view pointer_offset, | ||
| 1271 | std::string_view value) { | ||
| 1272 | NotImplemented(); | ||
| 1273 | } | ||
| 1274 | |||
| 1275 | void EmitSharedAtomicAnd32(EmitContext& ctx, std::string_view pointer_offset, | ||
| 1276 | std::string_view value) { | ||
| 1277 | NotImplemented(); | ||
| 1278 | } | ||
| 1279 | |||
| 1280 | void EmitSharedAtomicOr32(EmitContext& ctx, std::string_view pointer_offset, | ||
| 1281 | std::string_view value) { | ||
| 1282 | NotImplemented(); | ||
| 1283 | } | ||
| 1284 | |||
| 1285 | void EmitSharedAtomicXor32(EmitContext& ctx, std::string_view pointer_offset, | ||
| 1286 | std::string_view value) { | ||
| 1287 | NotImplemented(); | ||
| 1288 | } | ||
| 1289 | |||
| 1290 | void EmitSharedAtomicExchange32(EmitContext& ctx, std::string_view pointer_offset, | ||
| 1291 | std::string_view value) { | ||
| 1292 | NotImplemented(); | ||
| 1293 | } | ||
| 1294 | |||
| 1295 | void EmitSharedAtomicExchange64(EmitContext& ctx, std::string_view pointer_offset, | ||
| 1296 | std::string_view value) { | ||
| 1297 | NotImplemented(); | ||
| 1298 | } | ||
| 1299 | |||
| 1300 | void EmitStorageAtomicIAdd32(EmitContext& ctx, const IR::Value& binding, const IR::Value& offset, | ||
| 1301 | std::string_view value) { | ||
| 1302 | NotImplemented(); | ||
| 1303 | } | ||
| 1304 | |||
| 1305 | void EmitStorageAtomicSMin32(EmitContext& ctx, const IR::Value& binding, const IR::Value& offset, | ||
| 1306 | std::string_view value) { | ||
| 1307 | NotImplemented(); | ||
| 1308 | } | ||
| 1309 | |||
| 1310 | void EmitStorageAtomicUMin32(EmitContext& ctx, const IR::Value& binding, const IR::Value& offset, | ||
| 1311 | std::string_view value) { | ||
| 1312 | NotImplemented(); | ||
| 1313 | } | ||
| 1314 | |||
| 1315 | void EmitStorageAtomicSMax32(EmitContext& ctx, const IR::Value& binding, const IR::Value& offset, | ||
| 1316 | std::string_view value) { | ||
| 1317 | NotImplemented(); | ||
| 1318 | } | ||
| 1319 | |||
| 1320 | void EmitStorageAtomicUMax32(EmitContext& ctx, const IR::Value& binding, const IR::Value& offset, | ||
| 1321 | std::string_view value) { | ||
| 1322 | NotImplemented(); | ||
| 1323 | } | ||
| 1324 | |||
| 1325 | void EmitStorageAtomicInc32(EmitContext& ctx, const IR::Value& binding, const IR::Value& offset, | ||
| 1326 | std::string_view value) { | ||
| 1327 | NotImplemented(); | ||
| 1328 | } | ||
| 1329 | |||
| 1330 | void EmitStorageAtomicDec32(EmitContext& ctx, const IR::Value& binding, const IR::Value& offset, | ||
| 1331 | std::string_view value) { | ||
| 1332 | NotImplemented(); | ||
| 1333 | } | ||
| 1334 | |||
| 1335 | void EmitStorageAtomicAnd32(EmitContext& ctx, const IR::Value& binding, const IR::Value& offset, | ||
| 1336 | std::string_view value) { | ||
| 1337 | NotImplemented(); | ||
| 1338 | } | ||
| 1339 | |||
| 1340 | void EmitStorageAtomicOr32(EmitContext& ctx, const IR::Value& binding, const IR::Value& offset, | ||
| 1341 | std::string_view value) { | ||
| 1342 | NotImplemented(); | ||
| 1343 | } | ||
| 1344 | |||
| 1345 | void EmitStorageAtomicXor32(EmitContext& ctx, const IR::Value& binding, const IR::Value& offset, | ||
| 1346 | std::string_view value) { | ||
| 1347 | NotImplemented(); | ||
| 1348 | } | ||
| 1349 | |||
| 1350 | void EmitStorageAtomicExchange32(EmitContext& ctx, const IR::Value& binding, | ||
| 1351 | const IR::Value& offset, std::string_view value) { | ||
| 1352 | NotImplemented(); | ||
| 1353 | } | ||
| 1354 | |||
| 1355 | void EmitStorageAtomicIAdd64(EmitContext& ctx, const IR::Value& binding, const IR::Value& offset, | ||
| 1356 | std::string_view value) { | ||
| 1357 | NotImplemented(); | ||
| 1358 | } | ||
| 1359 | |||
| 1360 | void EmitStorageAtomicSMin64(EmitContext& ctx, const IR::Value& binding, const IR::Value& offset, | ||
| 1361 | std::string_view value) { | ||
| 1362 | NotImplemented(); | ||
| 1363 | } | ||
| 1364 | |||
| 1365 | void EmitStorageAtomicUMin64(EmitContext& ctx, const IR::Value& binding, const IR::Value& offset, | ||
| 1366 | std::string_view value) { | ||
| 1367 | NotImplemented(); | ||
| 1368 | } | ||
| 1369 | |||
| 1370 | void EmitStorageAtomicSMax64(EmitContext& ctx, const IR::Value& binding, const IR::Value& offset, | ||
| 1371 | std::string_view value) { | ||
| 1372 | NotImplemented(); | ||
| 1373 | } | ||
| 1374 | |||
| 1375 | void EmitStorageAtomicUMax64(EmitContext& ctx, const IR::Value& binding, const IR::Value& offset, | ||
| 1376 | std::string_view value) { | ||
| 1377 | NotImplemented(); | ||
| 1378 | } | ||
| 1379 | |||
| 1380 | void EmitStorageAtomicAnd64(EmitContext& ctx, const IR::Value& binding, const IR::Value& offset, | ||
| 1381 | std::string_view value) { | ||
| 1382 | NotImplemented(); | ||
| 1383 | } | ||
| 1384 | |||
| 1385 | void EmitStorageAtomicOr64(EmitContext& ctx, const IR::Value& binding, const IR::Value& offset, | ||
| 1386 | std::string_view value) { | ||
| 1387 | NotImplemented(); | ||
| 1388 | } | ||
| 1389 | |||
| 1390 | void EmitStorageAtomicXor64(EmitContext& ctx, const IR::Value& binding, const IR::Value& offset, | ||
| 1391 | std::string_view value) { | ||
| 1392 | NotImplemented(); | ||
| 1393 | } | ||
| 1394 | |||
| 1395 | void EmitStorageAtomicExchange64(EmitContext& ctx, const IR::Value& binding, | ||
| 1396 | const IR::Value& offset, std::string_view value) { | ||
| 1397 | NotImplemented(); | ||
| 1398 | } | ||
| 1399 | |||
| 1400 | void EmitStorageAtomicAddF32(EmitContext& ctx, const IR::Value& binding, const IR::Value& offset, | ||
| 1401 | std::string_view value) { | ||
| 1402 | NotImplemented(); | ||
| 1403 | } | ||
| 1404 | |||
| 1405 | void EmitStorageAtomicAddF16x2(EmitContext& ctx, const IR::Value& binding, const IR::Value& offset, | ||
| 1406 | std::string_view value) { | ||
| 1407 | NotImplemented(); | ||
| 1408 | } | ||
| 1409 | |||
| 1410 | void EmitStorageAtomicAddF32x2(EmitContext& ctx, const IR::Value& binding, const IR::Value& offset, | ||
| 1411 | std::string_view value) { | ||
| 1412 | NotImplemented(); | ||
| 1413 | } | ||
| 1414 | |||
| 1415 | void EmitStorageAtomicMinF16x2(EmitContext& ctx, const IR::Value& binding, const IR::Value& offset, | ||
| 1416 | std::string_view value) { | ||
| 1417 | NotImplemented(); | ||
| 1418 | } | ||
| 1419 | |||
| 1420 | void EmitStorageAtomicMinF32x2(EmitContext& ctx, const IR::Value& binding, const IR::Value& offset, | ||
| 1421 | std::string_view value) { | ||
| 1422 | NotImplemented(); | ||
| 1423 | } | ||
| 1424 | |||
| 1425 | void EmitStorageAtomicMaxF16x2(EmitContext& ctx, const IR::Value& binding, const IR::Value& offset, | ||
| 1426 | std::string_view value) { | ||
| 1427 | NotImplemented(); | ||
| 1428 | } | ||
| 1429 | |||
| 1430 | void EmitStorageAtomicMaxF32x2(EmitContext& ctx, const IR::Value& binding, const IR::Value& offset, | ||
| 1431 | std::string_view value) { | ||
| 1432 | NotImplemented(); | ||
| 1433 | } | ||
| 1434 | |||
| 1435 | void EmitGlobalAtomicIAdd32(EmitContext& ctx) { | ||
| 1436 | NotImplemented(); | ||
| 1437 | } | ||
| 1438 | |||
| 1439 | void EmitGlobalAtomicSMin32(EmitContext& ctx) { | ||
| 1440 | NotImplemented(); | ||
| 1441 | } | ||
| 1442 | |||
| 1443 | void EmitGlobalAtomicUMin32(EmitContext& ctx) { | ||
| 1444 | NotImplemented(); | ||
| 1445 | } | ||
| 1446 | |||
| 1447 | void EmitGlobalAtomicSMax32(EmitContext& ctx) { | ||
| 1448 | NotImplemented(); | ||
| 1449 | } | ||
| 1450 | |||
| 1451 | void EmitGlobalAtomicUMax32(EmitContext& ctx) { | ||
| 1452 | NotImplemented(); | ||
| 1453 | } | ||
| 1454 | |||
| 1455 | void EmitGlobalAtomicInc32(EmitContext& ctx) { | ||
| 1456 | NotImplemented(); | ||
| 1457 | } | ||
| 1458 | |||
| 1459 | void EmitGlobalAtomicDec32(EmitContext& ctx) { | ||
| 1460 | NotImplemented(); | ||
| 1461 | } | ||
| 1462 | |||
| 1463 | void EmitGlobalAtomicAnd32(EmitContext& ctx) { | ||
| 1464 | NotImplemented(); | ||
| 1465 | } | ||
| 1466 | |||
| 1467 | void EmitGlobalAtomicOr32(EmitContext& ctx) { | ||
| 1468 | NotImplemented(); | ||
| 1469 | } | ||
| 1470 | |||
| 1471 | void EmitGlobalAtomicXor32(EmitContext& ctx) { | ||
| 1472 | NotImplemented(); | ||
| 1473 | } | ||
| 1474 | |||
| 1475 | void EmitGlobalAtomicExchange32(EmitContext& ctx) { | ||
| 1476 | NotImplemented(); | ||
| 1477 | } | ||
| 1478 | |||
| 1479 | void EmitGlobalAtomicIAdd64(EmitContext& ctx) { | ||
| 1480 | NotImplemented(); | ||
| 1481 | } | ||
| 1482 | |||
| 1483 | void EmitGlobalAtomicSMin64(EmitContext& ctx) { | ||
| 1484 | NotImplemented(); | ||
| 1485 | } | ||
| 1486 | |||
| 1487 | void EmitGlobalAtomicUMin64(EmitContext& ctx) { | ||
| 1488 | NotImplemented(); | ||
| 1489 | } | ||
| 1490 | |||
| 1491 | void EmitGlobalAtomicSMax64(EmitContext& ctx) { | ||
| 1492 | NotImplemented(); | ||
| 1493 | } | ||
| 1494 | |||
| 1495 | void EmitGlobalAtomicUMax64(EmitContext& ctx) { | ||
| 1496 | NotImplemented(); | ||
| 1497 | } | ||
| 1498 | |||
| 1499 | void EmitGlobalAtomicInc64(EmitContext& ctx) { | ||
| 1500 | NotImplemented(); | ||
| 1501 | } | ||
| 1502 | |||
| 1503 | void EmitGlobalAtomicDec64(EmitContext& ctx) { | ||
| 1504 | NotImplemented(); | ||
| 1505 | } | ||
| 1506 | |||
| 1507 | void EmitGlobalAtomicAnd64(EmitContext& ctx) { | ||
| 1508 | NotImplemented(); | ||
| 1509 | } | ||
| 1510 | |||
| 1511 | void EmitGlobalAtomicOr64(EmitContext& ctx) { | ||
| 1512 | NotImplemented(); | ||
| 1513 | } | ||
| 1514 | |||
| 1515 | void EmitGlobalAtomicXor64(EmitContext& ctx) { | ||
| 1516 | NotImplemented(); | ||
| 1517 | } | ||
| 1518 | |||
| 1519 | void EmitGlobalAtomicExchange64(EmitContext& ctx) { | ||
| 1520 | NotImplemented(); | ||
| 1521 | } | ||
| 1522 | |||
| 1523 | void EmitGlobalAtomicAddF32(EmitContext& ctx) { | ||
| 1524 | NotImplemented(); | ||
| 1525 | } | ||
| 1526 | |||
| 1527 | void EmitGlobalAtomicAddF16x2(EmitContext& ctx) { | ||
| 1528 | NotImplemented(); | ||
| 1529 | } | ||
| 1530 | |||
| 1531 | void EmitGlobalAtomicAddF32x2(EmitContext& ctx) { | ||
| 1532 | NotImplemented(); | ||
| 1533 | } | ||
| 1534 | |||
| 1535 | void EmitGlobalAtomicMinF16x2(EmitContext& ctx) { | ||
| 1536 | NotImplemented(); | ||
| 1537 | } | ||
| 1538 | |||
| 1539 | void EmitGlobalAtomicMinF32x2(EmitContext& ctx) { | ||
| 1540 | NotImplemented(); | ||
| 1541 | } | ||
| 1542 | |||
| 1543 | void EmitGlobalAtomicMaxF16x2(EmitContext& ctx) { | ||
| 1544 | NotImplemented(); | ||
| 1545 | } | ||
| 1546 | |||
| 1547 | void EmitGlobalAtomicMaxF32x2(EmitContext& ctx) { | ||
| 1548 | NotImplemented(); | ||
| 1549 | } | ||
| 1550 | |||
| 1551 | void EmitLogicalOr(EmitContext& ctx, std::string_view a, std::string_view b) { | ||
| 1552 | NotImplemented(); | ||
| 1553 | } | ||
| 1554 | |||
| 1555 | void EmitLogicalAnd(EmitContext& ctx, std::string_view a, std::string_view b) { | ||
| 1556 | NotImplemented(); | ||
| 1557 | } | ||
| 1558 | |||
| 1559 | void EmitLogicalXor(EmitContext& ctx, std::string_view a, std::string_view b) { | ||
| 1560 | NotImplemented(); | ||
| 1561 | } | ||
| 1562 | |||
| 1563 | void EmitLogicalNot(EmitContext& ctx, std::string_view value) { | ||
| 1564 | NotImplemented(); | ||
| 1565 | } | ||
| 1566 | |||
| 1567 | void EmitConvertS16F16(EmitContext& ctx, std::string_view value) { | ||
| 1568 | NotImplemented(); | ||
| 1569 | } | ||
| 1570 | |||
| 1571 | void EmitConvertS16F32(EmitContext& ctx, std::string_view value) { | ||
| 1572 | NotImplemented(); | ||
| 1573 | } | ||
| 1574 | |||
| 1575 | void EmitConvertS16F64(EmitContext& ctx, std::string_view value) { | ||
| 1576 | NotImplemented(); | ||
| 1577 | } | ||
| 1578 | |||
| 1579 | void EmitConvertS32F16(EmitContext& ctx, std::string_view value) { | ||
| 1580 | NotImplemented(); | ||
| 1581 | } | ||
| 1582 | |||
| 1583 | void EmitConvertS32F32(EmitContext& ctx, std::string_view value) { | ||
| 1584 | NotImplemented(); | ||
| 1585 | } | ||
| 1586 | |||
| 1587 | void EmitConvertS32F64(EmitContext& ctx, std::string_view value) { | ||
| 1588 | NotImplemented(); | ||
| 1589 | } | ||
| 1590 | |||
| 1591 | void EmitConvertS64F16(EmitContext& ctx, std::string_view value) { | ||
| 1592 | NotImplemented(); | ||
| 1593 | } | ||
| 1594 | |||
| 1595 | void EmitConvertS64F32(EmitContext& ctx, std::string_view value) { | ||
| 1596 | NotImplemented(); | ||
| 1597 | } | ||
| 1598 | |||
| 1599 | void EmitConvertS64F64(EmitContext& ctx, std::string_view value) { | ||
| 1600 | NotImplemented(); | ||
| 1601 | } | ||
| 1602 | |||
| 1603 | void EmitConvertU16F16(EmitContext& ctx, std::string_view value) { | ||
| 1604 | NotImplemented(); | ||
| 1605 | } | ||
| 1606 | |||
| 1607 | void EmitConvertU16F32(EmitContext& ctx, std::string_view value) { | ||
| 1608 | NotImplemented(); | ||
| 1609 | } | ||
| 1610 | |||
| 1611 | void EmitConvertU16F64(EmitContext& ctx, std::string_view value) { | ||
| 1612 | NotImplemented(); | ||
| 1613 | } | ||
| 1614 | |||
| 1615 | void EmitConvertU32F16(EmitContext& ctx, std::string_view value) { | ||
| 1616 | NotImplemented(); | ||
| 1617 | } | ||
| 1618 | |||
| 1619 | void EmitConvertU32F32(EmitContext& ctx, std::string_view value) { | ||
| 1620 | NotImplemented(); | ||
| 1621 | } | ||
| 1622 | |||
| 1623 | void EmitConvertU32F64(EmitContext& ctx, std::string_view value) { | ||
| 1624 | NotImplemented(); | ||
| 1625 | } | ||
| 1626 | |||
| 1627 | void EmitConvertU64F16(EmitContext& ctx, std::string_view value) { | ||
| 1628 | NotImplemented(); | ||
| 1629 | } | ||
| 1630 | |||
| 1631 | void EmitConvertU64F32(EmitContext& ctx, std::string_view value) { | ||
| 1632 | NotImplemented(); | ||
| 1633 | } | ||
| 1634 | |||
| 1635 | void EmitConvertU64F64(EmitContext& ctx, std::string_view value) { | ||
| 1636 | NotImplemented(); | ||
| 1637 | } | ||
| 1638 | |||
| 1639 | void EmitConvertU64U32(EmitContext& ctx, std::string_view value) { | ||
| 1640 | NotImplemented(); | ||
| 1641 | } | ||
| 1642 | |||
| 1643 | void EmitConvertU32U64(EmitContext& ctx, std::string_view value) { | ||
| 1644 | NotImplemented(); | ||
| 1645 | } | ||
| 1646 | |||
| 1647 | void EmitConvertF16F32(EmitContext& ctx, std::string_view value) { | ||
| 1648 | NotImplemented(); | ||
| 1649 | } | ||
| 1650 | |||
| 1651 | void EmitConvertF32F16(EmitContext& ctx, std::string_view value) { | ||
| 1652 | NotImplemented(); | ||
| 1653 | } | ||
| 1654 | |||
| 1655 | void EmitConvertF32F64(EmitContext& ctx, std::string_view value) { | ||
| 1656 | NotImplemented(); | ||
| 1657 | } | ||
| 1658 | |||
| 1659 | void EmitConvertF64F32(EmitContext& ctx, std::string_view value) { | ||
| 1660 | NotImplemented(); | ||
| 1661 | } | ||
| 1662 | |||
| 1663 | void EmitConvertF16S8(EmitContext& ctx, std::string_view value) { | ||
| 1664 | NotImplemented(); | ||
| 1665 | } | ||
| 1666 | |||
| 1667 | void EmitConvertF16S16(EmitContext& ctx, std::string_view value) { | ||
| 1668 | NotImplemented(); | ||
| 1669 | } | ||
| 1670 | |||
| 1671 | void EmitConvertF16S32(EmitContext& ctx, std::string_view value) { | ||
| 1672 | NotImplemented(); | ||
| 1673 | } | ||
| 1674 | |||
| 1675 | void EmitConvertF16S64(EmitContext& ctx, std::string_view value) { | ||
| 1676 | NotImplemented(); | ||
| 1677 | } | ||
| 1678 | |||
| 1679 | void EmitConvertF16U8(EmitContext& ctx, std::string_view value) { | ||
| 1680 | NotImplemented(); | ||
| 1681 | } | ||
| 1682 | |||
| 1683 | void EmitConvertF16U16(EmitContext& ctx, std::string_view value) { | ||
| 1684 | NotImplemented(); | ||
| 1685 | } | ||
| 1686 | |||
| 1687 | void EmitConvertF16U32(EmitContext& ctx, std::string_view value) { | ||
| 1688 | NotImplemented(); | ||
| 1689 | } | ||
| 1690 | |||
| 1691 | void EmitConvertF16U64(EmitContext& ctx, std::string_view value) { | ||
| 1692 | NotImplemented(); | ||
| 1693 | } | ||
| 1694 | |||
| 1695 | void EmitConvertF32S8(EmitContext& ctx, std::string_view value) { | ||
| 1696 | NotImplemented(); | ||
| 1697 | } | ||
| 1698 | |||
| 1699 | void EmitConvertF32S16(EmitContext& ctx, std::string_view value) { | ||
| 1700 | NotImplemented(); | ||
| 1701 | } | ||
| 1702 | |||
| 1703 | void EmitConvertF32S32(EmitContext& ctx, std::string_view value) { | ||
| 1704 | NotImplemented(); | ||
| 1705 | } | ||
| 1706 | |||
| 1707 | void EmitConvertF32S64(EmitContext& ctx, std::string_view value) { | ||
| 1708 | NotImplemented(); | ||
| 1709 | } | ||
| 1710 | |||
| 1711 | void EmitConvertF32U8(EmitContext& ctx, std::string_view value) { | ||
| 1712 | NotImplemented(); | ||
| 1713 | } | ||
| 1714 | |||
| 1715 | void EmitConvertF32U16(EmitContext& ctx, std::string_view value) { | ||
| 1716 | NotImplemented(); | ||
| 1717 | } | ||
| 1718 | |||
| 1719 | void EmitConvertF32U32(EmitContext& ctx, std::string_view value) { | ||
| 1720 | NotImplemented(); | ||
| 1721 | } | ||
| 1722 | |||
| 1723 | void EmitConvertF32U64(EmitContext& ctx, std::string_view value) { | ||
| 1724 | NotImplemented(); | ||
| 1725 | } | ||
| 1726 | |||
| 1727 | void EmitConvertF64S8(EmitContext& ctx, std::string_view value) { | ||
| 1728 | NotImplemented(); | ||
| 1729 | } | ||
| 1730 | |||
| 1731 | void EmitConvertF64S16(EmitContext& ctx, std::string_view value) { | ||
| 1732 | NotImplemented(); | ||
| 1733 | } | ||
| 1734 | |||
| 1735 | void EmitConvertF64S32(EmitContext& ctx, std::string_view value) { | ||
| 1736 | NotImplemented(); | ||
| 1737 | } | ||
| 1738 | |||
| 1739 | void EmitConvertF64S64(EmitContext& ctx, std::string_view value) { | ||
| 1740 | NotImplemented(); | ||
| 1741 | } | ||
| 1742 | |||
| 1743 | void EmitConvertF64U8(EmitContext& ctx, std::string_view value) { | ||
| 1744 | NotImplemented(); | ||
| 1745 | } | ||
| 1746 | |||
| 1747 | void EmitConvertF64U16(EmitContext& ctx, std::string_view value) { | ||
| 1748 | NotImplemented(); | ||
| 1749 | } | ||
| 1750 | |||
| 1751 | void EmitConvertF64U32(EmitContext& ctx, std::string_view value) { | ||
| 1752 | NotImplemented(); | ||
| 1753 | } | ||
| 1754 | |||
| 1755 | void EmitConvertF64U64(EmitContext& ctx, std::string_view value) { | ||
| 1756 | NotImplemented(); | ||
| 1757 | } | ||
| 1758 | |||
| 1759 | void EmitBindlessImageSampleImplicitLod(EmitContext&) { | ||
| 1760 | NotImplemented(); | ||
| 1761 | } | ||
| 1762 | |||
| 1763 | void EmitBindlessImageSampleExplicitLod(EmitContext&) { | ||
| 1764 | NotImplemented(); | ||
| 1765 | } | ||
| 1766 | |||
| 1767 | void EmitBindlessImageSampleDrefImplicitLod(EmitContext&) { | ||
| 1768 | NotImplemented(); | ||
| 1769 | } | ||
| 1770 | |||
| 1771 | void EmitBindlessImageSampleDrefExplicitLod(EmitContext&) { | ||
| 1772 | NotImplemented(); | ||
| 1773 | } | ||
| 1774 | |||
| 1775 | void EmitBindlessImageGather(EmitContext&) { | ||
| 1776 | NotImplemented(); | ||
| 1777 | } | ||
| 1778 | |||
| 1779 | void EmitBindlessImageGatherDref(EmitContext&) { | ||
| 1780 | NotImplemented(); | ||
| 1781 | } | ||
| 1782 | |||
| 1783 | void EmitBindlessImageFetch(EmitContext&) { | ||
| 1784 | NotImplemented(); | ||
| 1785 | } | ||
| 1786 | |||
| 1787 | void EmitBindlessImageQueryDimensions(EmitContext&) { | ||
| 1788 | NotImplemented(); | ||
| 1789 | } | ||
| 1790 | |||
| 1791 | void EmitBindlessImageQueryLod(EmitContext&) { | ||
| 1792 | NotImplemented(); | ||
| 1793 | } | ||
| 1794 | |||
| 1795 | void EmitBindlessImageGradient(EmitContext&) { | ||
| 1796 | NotImplemented(); | ||
| 1797 | } | ||
| 1798 | |||
| 1799 | void EmitBindlessImageRead(EmitContext&) { | ||
| 1800 | NotImplemented(); | ||
| 1801 | } | ||
| 1802 | |||
| 1803 | void EmitBindlessImageWrite(EmitContext&) { | ||
| 1804 | NotImplemented(); | ||
| 1805 | } | ||
| 1806 | |||
| 1807 | void EmitBoundImageSampleImplicitLod(EmitContext&) { | ||
| 1808 | NotImplemented(); | ||
| 1809 | } | ||
| 1810 | |||
| 1811 | void EmitBoundImageSampleExplicitLod(EmitContext&) { | ||
| 1812 | NotImplemented(); | ||
| 1813 | } | ||
| 1814 | |||
| 1815 | void EmitBoundImageSampleDrefImplicitLod(EmitContext&) { | ||
| 1816 | NotImplemented(); | ||
| 1817 | } | ||
| 1818 | |||
| 1819 | void EmitBoundImageSampleDrefExplicitLod(EmitContext&) { | ||
| 1820 | NotImplemented(); | ||
| 1821 | } | ||
| 1822 | |||
| 1823 | void EmitBoundImageGather(EmitContext&) { | ||
| 1824 | NotImplemented(); | ||
| 1825 | } | ||
| 1826 | |||
| 1827 | void EmitBoundImageGatherDref(EmitContext&) { | ||
| 1828 | NotImplemented(); | ||
| 1829 | } | ||
| 1830 | |||
| 1831 | void EmitBoundImageFetch(EmitContext&) { | ||
| 1832 | NotImplemented(); | ||
| 1833 | } | ||
| 1834 | |||
| 1835 | void EmitBoundImageQueryDimensions(EmitContext&) { | ||
| 1836 | NotImplemented(); | ||
| 1837 | } | ||
| 1838 | |||
| 1839 | void EmitBoundImageQueryLod(EmitContext&) { | ||
| 1840 | NotImplemented(); | ||
| 1841 | } | ||
| 1842 | |||
| 1843 | void EmitBoundImageGradient(EmitContext&) { | ||
| 1844 | NotImplemented(); | ||
| 1845 | } | ||
| 1846 | |||
| 1847 | void EmitBoundImageRead(EmitContext&) { | ||
| 1848 | NotImplemented(); | ||
| 1849 | } | ||
| 1850 | |||
| 1851 | void EmitBoundImageWrite(EmitContext&) { | ||
| 1852 | NotImplemented(); | ||
| 1853 | } | ||
| 1854 | |||
| 1855 | void EmitImageSampleImplicitLod(EmitContext& ctx, IR::Inst* inst, const IR::Value& index, | ||
| 1856 | std::string_view coords, std::string_view bias_lc, | ||
| 1857 | const IR::Value& offset) { | ||
| 1858 | NotImplemented(); | ||
| 1859 | } | ||
| 1860 | |||
| 1861 | void EmitImageSampleExplicitLod(EmitContext& ctx, IR::Inst* inst, const IR::Value& index, | ||
| 1862 | std::string_view coords, std::string_view lod_lc, | ||
| 1863 | const IR::Value& offset) { | ||
| 1864 | NotImplemented(); | ||
| 1865 | } | ||
| 1866 | |||
| 1867 | void EmitImageSampleDrefImplicitLod(EmitContext& ctx, IR::Inst* inst, const IR::Value& index, | ||
| 1868 | std::string_view coords, std::string_view dref, | ||
| 1869 | std::string_view bias_lc, const IR::Value& offset) { | ||
| 1870 | NotImplemented(); | ||
| 1871 | } | ||
| 1872 | |||
| 1873 | void EmitImageSampleDrefExplicitLod(EmitContext& ctx, IR::Inst* inst, const IR::Value& index, | ||
| 1874 | std::string_view coords, std::string_view dref, | ||
| 1875 | std::string_view lod_lc, const IR::Value& offset) { | ||
| 1876 | NotImplemented(); | ||
| 1877 | } | ||
| 1878 | |||
| 1879 | void EmitImageGather(EmitContext& ctx, IR::Inst* inst, const IR::Value& index, | ||
| 1880 | std::string_view coords, const IR::Value& offset, const IR::Value& offset2) { | ||
| 1881 | NotImplemented(); | ||
| 1882 | } | ||
| 1883 | |||
| 1884 | void EmitImageGatherDref(EmitContext& ctx, IR::Inst* inst, const IR::Value& index, | ||
| 1885 | std::string_view coords, const IR::Value& offset, const IR::Value& offset2, | ||
| 1886 | std::string_view dref) { | ||
| 1887 | NotImplemented(); | ||
| 1888 | } | ||
| 1889 | |||
| 1890 | void EmitImageFetch(EmitContext& ctx, IR::Inst* inst, const IR::Value& index, | ||
| 1891 | std::string_view coords, std::string_view offset, std::string_view lod, | ||
| 1892 | std::string_view ms) { | ||
| 1893 | NotImplemented(); | ||
| 1894 | } | ||
| 1895 | |||
| 1896 | void EmitImageQueryDimensions(EmitContext& ctx, IR::Inst* inst, const IR::Value& index, | ||
| 1897 | std::string_view lod) { | ||
| 1898 | NotImplemented(); | ||
| 1899 | } | ||
| 1900 | |||
| 1901 | void EmitImageQueryLod(EmitContext& ctx, IR::Inst* inst, const IR::Value& index, | ||
| 1902 | std::string_view coords) { | ||
| 1903 | NotImplemented(); | ||
| 1904 | } | ||
| 1905 | |||
| 1906 | void EmitImageGradient(EmitContext& ctx, IR::Inst* inst, const IR::Value& index, | ||
| 1907 | std::string_view coords, std::string_view derivates, std::string_view offset, | ||
| 1908 | std::string_view lod_clamp) { | ||
| 1909 | NotImplemented(); | ||
| 1910 | } | ||
| 1911 | |||
| 1912 | void EmitImageRead(EmitContext& ctx, IR::Inst* inst, const IR::Value& index, | ||
| 1913 | std::string_view coords) { | ||
| 1914 | NotImplemented(); | ||
| 1915 | } | ||
| 1916 | |||
| 1917 | void EmitImageWrite(EmitContext& ctx, IR::Inst* inst, const IR::Value& index, | ||
| 1918 | std::string_view coords, std::string_view color) { | ||
| 1919 | NotImplemented(); | ||
| 1920 | } | ||
| 1921 | |||
| 1922 | void EmitBindlessImageAtomicIAdd32(EmitContext&) { | ||
| 1923 | NotImplemented(); | ||
| 1924 | } | ||
| 1925 | |||
| 1926 | void EmitBindlessImageAtomicSMin32(EmitContext&) { | ||
| 1927 | NotImplemented(); | ||
| 1928 | } | ||
| 1929 | |||
| 1930 | void EmitBindlessImageAtomicUMin32(EmitContext&) { | ||
| 1931 | NotImplemented(); | ||
| 1932 | } | ||
| 1933 | |||
| 1934 | void EmitBindlessImageAtomicSMax32(EmitContext&) { | ||
| 1935 | NotImplemented(); | ||
| 1936 | } | ||
| 1937 | |||
| 1938 | void EmitBindlessImageAtomicUMax32(EmitContext&) { | ||
| 1939 | NotImplemented(); | ||
| 1940 | } | ||
| 1941 | |||
| 1942 | void EmitBindlessImageAtomicInc32(EmitContext&) { | ||
| 1943 | NotImplemented(); | ||
| 1944 | } | ||
| 1945 | |||
| 1946 | void EmitBindlessImageAtomicDec32(EmitContext&) { | ||
| 1947 | NotImplemented(); | ||
| 1948 | } | ||
| 1949 | |||
| 1950 | void EmitBindlessImageAtomicAnd32(EmitContext&) { | ||
| 1951 | NotImplemented(); | ||
| 1952 | } | ||
| 1953 | |||
| 1954 | void EmitBindlessImageAtomicOr32(EmitContext&) { | ||
| 1955 | NotImplemented(); | ||
| 1956 | } | ||
| 1957 | |||
| 1958 | void EmitBindlessImageAtomicXor32(EmitContext&) { | ||
| 1959 | NotImplemented(); | ||
| 1960 | } | ||
| 1961 | |||
| 1962 | void EmitBindlessImageAtomicExchange32(EmitContext&) { | ||
| 1963 | NotImplemented(); | ||
| 1964 | } | ||
| 1965 | |||
| 1966 | void EmitBoundImageAtomicIAdd32(EmitContext&) { | ||
| 1967 | NotImplemented(); | ||
| 1968 | } | ||
| 1969 | |||
| 1970 | void EmitBoundImageAtomicSMin32(EmitContext&) { | ||
| 1971 | NotImplemented(); | ||
| 1972 | } | ||
| 1973 | |||
| 1974 | void EmitBoundImageAtomicUMin32(EmitContext&) { | ||
| 1975 | NotImplemented(); | ||
| 1976 | } | ||
| 1977 | |||
| 1978 | void EmitBoundImageAtomicSMax32(EmitContext&) { | ||
| 1979 | NotImplemented(); | ||
| 1980 | } | ||
| 1981 | |||
| 1982 | void EmitBoundImageAtomicUMax32(EmitContext&) { | ||
| 1983 | NotImplemented(); | ||
| 1984 | } | ||
| 1985 | |||
| 1986 | void EmitBoundImageAtomicInc32(EmitContext&) { | ||
| 1987 | NotImplemented(); | ||
| 1988 | } | ||
| 1989 | |||
| 1990 | void EmitBoundImageAtomicDec32(EmitContext&) { | ||
| 1991 | NotImplemented(); | ||
| 1992 | } | ||
| 1993 | |||
| 1994 | void EmitBoundImageAtomicAnd32(EmitContext&) { | ||
| 1995 | NotImplemented(); | ||
| 1996 | } | ||
| 1997 | |||
| 1998 | void EmitBoundImageAtomicOr32(EmitContext&) { | ||
| 1999 | NotImplemented(); | ||
| 2000 | } | ||
| 2001 | |||
| 2002 | void EmitBoundImageAtomicXor32(EmitContext&) { | ||
| 2003 | NotImplemented(); | ||
| 2004 | } | ||
| 2005 | |||
| 2006 | void EmitBoundImageAtomicExchange32(EmitContext&) { | ||
| 2007 | NotImplemented(); | ||
| 2008 | } | ||
| 2009 | |||
| 2010 | void EmitImageAtomicIAdd32(EmitContext& ctx, IR::Inst* inst, const IR::Value& index, | ||
| 2011 | std::string_view coords, std::string_view value) { | ||
| 2012 | NotImplemented(); | ||
| 2013 | } | ||
| 2014 | |||
| 2015 | void EmitImageAtomicSMin32(EmitContext& ctx, IR::Inst* inst, const IR::Value& index, | ||
| 2016 | std::string_view coords, std::string_view value) { | ||
| 2017 | NotImplemented(); | ||
| 2018 | } | ||
| 2019 | |||
| 2020 | void EmitImageAtomicUMin32(EmitContext& ctx, IR::Inst* inst, const IR::Value& index, | ||
| 2021 | std::string_view coords, std::string_view value) { | ||
| 2022 | NotImplemented(); | ||
| 2023 | } | ||
| 2024 | |||
| 2025 | void EmitImageAtomicSMax32(EmitContext& ctx, IR::Inst* inst, const IR::Value& index, | ||
| 2026 | std::string_view coords, std::string_view value) { | ||
| 2027 | NotImplemented(); | ||
| 2028 | } | ||
| 2029 | |||
| 2030 | void EmitImageAtomicUMax32(EmitContext& ctx, IR::Inst* inst, const IR::Value& index, | ||
| 2031 | std::string_view coords, std::string_view value) { | ||
| 2032 | NotImplemented(); | ||
| 2033 | } | ||
| 2034 | |||
| 2035 | void EmitImageAtomicInc32(EmitContext& ctx, IR::Inst* inst, const IR::Value& index, | ||
| 2036 | std::string_view coords, std::string_view value) { | ||
| 2037 | NotImplemented(); | ||
| 2038 | } | ||
| 2039 | |||
| 2040 | void EmitImageAtomicDec32(EmitContext& ctx, IR::Inst* inst, const IR::Value& index, | ||
| 2041 | std::string_view coords, std::string_view value) { | ||
| 2042 | NotImplemented(); | ||
| 2043 | } | ||
| 2044 | |||
| 2045 | void EmitImageAtomicAnd32(EmitContext& ctx, IR::Inst* inst, const IR::Value& index, | ||
| 2046 | std::string_view coords, std::string_view value) { | ||
| 2047 | NotImplemented(); | ||
| 2048 | } | ||
| 2049 | |||
| 2050 | void EmitImageAtomicOr32(EmitContext& ctx, IR::Inst* inst, const IR::Value& index, | ||
| 2051 | std::string_view coords, std::string_view value) { | ||
| 2052 | NotImplemented(); | ||
| 2053 | } | ||
| 2054 | |||
| 2055 | void EmitImageAtomicXor32(EmitContext& ctx, IR::Inst* inst, const IR::Value& index, | ||
| 2056 | std::string_view coords, std::string_view value) { | ||
| 2057 | NotImplemented(); | ||
| 2058 | } | ||
| 2059 | |||
| 2060 | void EmitImageAtomicExchange32(EmitContext& ctx, IR::Inst* inst, const IR::Value& index, | ||
| 2061 | std::string_view coords, std::string_view value) { | ||
| 2062 | NotImplemented(); | ||
| 2063 | } | ||
| 2064 | |||
| 2065 | void EmitLaneId(EmitContext& ctx) { | ||
| 2066 | NotImplemented(); | ||
| 2067 | } | ||
| 2068 | |||
| 2069 | void EmitVoteAll(EmitContext& ctx, std::string_view pred) { | ||
| 2070 | NotImplemented(); | ||
| 2071 | } | ||
| 2072 | |||
| 2073 | void EmitVoteAny(EmitContext& ctx, std::string_view pred) { | ||
| 2074 | NotImplemented(); | ||
| 2075 | } | ||
| 2076 | |||
| 2077 | void EmitVoteEqual(EmitContext& ctx, std::string_view pred) { | ||
| 2078 | NotImplemented(); | ||
| 2079 | } | ||
| 2080 | |||
| 2081 | void EmitSubgroupBallot(EmitContext& ctx, std::string_view pred) { | ||
| 2082 | NotImplemented(); | ||
| 2083 | } | ||
| 2084 | |||
| 2085 | void EmitSubgroupEqMask(EmitContext& ctx) { | ||
| 2086 | NotImplemented(); | ||
| 2087 | } | ||
| 2088 | |||
| 2089 | void EmitSubgroupLtMask(EmitContext& ctx) { | ||
| 2090 | NotImplemented(); | ||
| 2091 | } | ||
| 2092 | |||
| 2093 | void EmitSubgroupLeMask(EmitContext& ctx) { | ||
| 2094 | NotImplemented(); | ||
| 2095 | } | ||
| 2096 | |||
| 2097 | void EmitSubgroupGtMask(EmitContext& ctx) { | ||
| 2098 | NotImplemented(); | ||
| 2099 | } | ||
| 2100 | |||
| 2101 | void EmitSubgroupGeMask(EmitContext& ctx) { | ||
| 2102 | NotImplemented(); | ||
| 2103 | } | ||
| 2104 | |||
| 2105 | void EmitShuffleIndex(EmitContext& ctx, IR::Inst* inst, std::string_view value, | ||
| 2106 | std::string_view index, std::string_view clamp, | ||
| 2107 | std::string_view segmentation_mask) { | ||
| 2108 | NotImplemented(); | ||
| 2109 | } | ||
| 2110 | |||
| 2111 | void EmitShuffleUp(EmitContext& ctx, IR::Inst* inst, std::string_view value, std::string_view index, | ||
| 2112 | std::string_view clamp, std::string_view segmentation_mask) { | ||
| 2113 | NotImplemented(); | ||
| 2114 | } | ||
| 2115 | |||
| 2116 | void EmitShuffleDown(EmitContext& ctx, IR::Inst* inst, std::string_view value, | ||
| 2117 | std::string_view index, std::string_view clamp, | ||
| 2118 | std::string_view segmentation_mask) { | ||
| 2119 | NotImplemented(); | ||
| 2120 | } | ||
| 2121 | |||
| 2122 | void EmitShuffleButterfly(EmitContext& ctx, IR::Inst* inst, std::string_view value, | ||
| 2123 | std::string_view index, std::string_view clamp, | ||
| 2124 | std::string_view segmentation_mask) { | ||
| 2125 | NotImplemented(); | ||
| 2126 | } | ||
| 2127 | |||
| 2128 | void EmitFSwizzleAdd(EmitContext& ctx, std::string_view op_a, std::string_view op_b, | ||
| 2129 | std::string_view swizzle) { | ||
| 2130 | NotImplemented(); | ||
| 2131 | } | ||
| 2132 | |||
| 2133 | void EmitDPdxFine(EmitContext& ctx, std::string_view op_a) { | ||
| 2134 | NotImplemented(); | ||
| 2135 | } | ||
| 2136 | |||
| 2137 | void EmitDPdyFine(EmitContext& ctx, std::string_view op_a) { | ||
| 2138 | NotImplemented(); | ||
| 2139 | } | ||
| 2140 | |||
| 2141 | void EmitDPdxCoarse(EmitContext& ctx, std::string_view op_a) { | ||
| 2142 | NotImplemented(); | ||
| 2143 | } | ||
| 2144 | |||
| 2145 | void EmitDPdyCoarse(EmitContext& ctx, std::string_view op_a) { | ||
| 2146 | NotImplemented(); | ||
| 2147 | } | ||
| 2148 | |||
| 2149 | } // namespace Shader::Backend::GLSL | ||
diff --git a/src/shader_recompiler/backend/glsl/emit_glsl_select.cpp b/src/shader_recompiler/backend/glsl/emit_glsl_select.cpp new file mode 100644 index 000000000..e69de29bb --- /dev/null +++ b/src/shader_recompiler/backend/glsl/emit_glsl_select.cpp | |||
diff --git a/src/shader_recompiler/backend/glsl/emit_glsl_shared_memory.cpp b/src/shader_recompiler/backend/glsl/emit_glsl_shared_memory.cpp new file mode 100644 index 000000000..e69de29bb --- /dev/null +++ b/src/shader_recompiler/backend/glsl/emit_glsl_shared_memory.cpp | |||
diff --git a/src/shader_recompiler/backend/glsl/emit_glsl_special.cpp b/src/shader_recompiler/backend/glsl/emit_glsl_special.cpp new file mode 100644 index 000000000..e69de29bb --- /dev/null +++ b/src/shader_recompiler/backend/glsl/emit_glsl_special.cpp | |||
diff --git a/src/shader_recompiler/backend/glsl/emit_glsl_undefined.cpp b/src/shader_recompiler/backend/glsl/emit_glsl_undefined.cpp new file mode 100644 index 000000000..e69de29bb --- /dev/null +++ b/src/shader_recompiler/backend/glsl/emit_glsl_undefined.cpp | |||
diff --git a/src/shader_recompiler/backend/glsl/emit_glsl_warp.cpp b/src/shader_recompiler/backend/glsl/emit_glsl_warp.cpp new file mode 100644 index 000000000..e69de29bb --- /dev/null +++ b/src/shader_recompiler/backend/glsl/emit_glsl_warp.cpp | |||
diff --git a/src/shader_recompiler/backend/glsl/reg_alloc.cpp b/src/shader_recompiler/backend/glsl/reg_alloc.cpp new file mode 100644 index 000000000..591a87988 --- /dev/null +++ b/src/shader_recompiler/backend/glsl/reg_alloc.cpp | |||
| @@ -0,0 +1,96 @@ | |||
| 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> | ||
| 6 | #include <string_view> | ||
| 7 | |||
| 8 | #include <fmt/format.h> | ||
| 9 | |||
| 10 | #include "shader_recompiler/backend/glsl/reg_alloc.h" | ||
| 11 | #include "shader_recompiler/exception.h" | ||
| 12 | #include "shader_recompiler/frontend/ir/value.h" | ||
| 13 | |||
| 14 | namespace Shader::Backend::GLSL { | ||
| 15 | namespace { | ||
| 16 | constexpr std::string_view SWIZZLE = "xyzw"; | ||
| 17 | |||
| 18 | std::string Representation(Id id) { | ||
| 19 | if (id.is_condition_code != 0) { | ||
| 20 | throw NotImplementedException("Condition code"); | ||
| 21 | } | ||
| 22 | if (id.is_spill != 0) { | ||
| 23 | throw NotImplementedException("Spilling"); | ||
| 24 | } | ||
| 25 | const u32 num_elements{id.num_elements_minus_one + 1}; | ||
| 26 | const u32 index{static_cast<u32>(id.index)}; | ||
| 27 | if (num_elements == 4) { | ||
| 28 | return fmt::format("R{}", index); | ||
| 29 | } else { | ||
| 30 | return fmt::format("R{}.{}", index, SWIZZLE.substr(id.base_element, num_elements)); | ||
| 31 | } | ||
| 32 | } | ||
| 33 | |||
| 34 | std::string MakeImm(const IR::Value& value) { | ||
| 35 | switch (value.Type()) { | ||
| 36 | case IR::Type::U1: | ||
| 37 | return fmt::format("{}", value.U1() ? "true" : "false"); | ||
| 38 | case IR::Type::U32: | ||
| 39 | return fmt::format("{}", value.U32()); | ||
| 40 | case IR::Type::F32: | ||
| 41 | return fmt::format("{}", value.F32()); | ||
| 42 | case IR::Type::U64: | ||
| 43 | return fmt::format("{}", value.U64()); | ||
| 44 | case IR::Type::F64: | ||
| 45 | return fmt::format("{}", value.F64()); | ||
| 46 | default: | ||
| 47 | throw NotImplementedException("Immediate type {}", value.Type()); | ||
| 48 | } | ||
| 49 | } | ||
| 50 | } // Anonymous namespace | ||
| 51 | |||
| 52 | std::string RegAlloc::Define(IR::Inst& inst, u32 num_elements, u32 alignment) { | ||
| 53 | const Id id{Alloc(num_elements, alignment)}; | ||
| 54 | inst.SetDefinition<Id>(id); | ||
| 55 | return Representation(id); | ||
| 56 | } | ||
| 57 | |||
| 58 | std::string RegAlloc::Consume(const IR::Value& value) { | ||
| 59 | return value.IsImmediate() ? MakeImm(value) : Consume(*value.Inst()); | ||
| 60 | } | ||
| 61 | |||
| 62 | std::string RegAlloc::Consume(IR::Inst& inst) { | ||
| 63 | const Id id{inst.Definition<Id>()}; | ||
| 64 | inst.DestructiveRemoveUsage(); | ||
| 65 | if (!inst.HasUses()) { | ||
| 66 | Free(id); | ||
| 67 | } | ||
| 68 | return Representation(inst.Definition<Id>()); | ||
| 69 | } | ||
| 70 | |||
| 71 | Id RegAlloc::Alloc(u32 num_elements, [[maybe_unused]] u32 alignment) { | ||
| 72 | for (size_t reg = 0; reg < NUM_REGS; ++reg) { | ||
| 73 | if (register_use[reg]) { | ||
| 74 | continue; | ||
| 75 | } | ||
| 76 | num_used_registers = std::max(num_used_registers, reg + 1); | ||
| 77 | register_use[reg] = true; | ||
| 78 | return Id{ | ||
| 79 | .base_element = 0, | ||
| 80 | .num_elements_minus_one = num_elements - 1, | ||
| 81 | .index = static_cast<u32>(reg), | ||
| 82 | .is_spill = 0, | ||
| 83 | .is_condition_code = 0, | ||
| 84 | }; | ||
| 85 | } | ||
| 86 | throw NotImplementedException("Register spilling"); | ||
| 87 | } | ||
| 88 | |||
| 89 | void RegAlloc::Free(Id id) { | ||
| 90 | if (id.is_spill != 0) { | ||
| 91 | throw NotImplementedException("Free spill"); | ||
| 92 | } | ||
| 93 | register_use[id.index] = false; | ||
| 94 | } | ||
| 95 | |||
| 96 | } // namespace Shader::Backend::GLSL | ||
diff --git a/src/shader_recompiler/backend/glsl/reg_alloc.h b/src/shader_recompiler/backend/glsl/reg_alloc.h new file mode 100644 index 000000000..850a93d6a --- /dev/null +++ b/src/shader_recompiler/backend/glsl/reg_alloc.h | |||
| @@ -0,0 +1,46 @@ | |||
| 1 | // Copyright 2021 yuzu Emulator Project | ||
| 2 | // Licensed under GPLv2 or any later version | ||
| 3 | // Refer to the license.txt file included. | ||
| 4 | |||
| 5 | #pragma once | ||
| 6 | |||
| 7 | #include <bitset> | ||
| 8 | |||
| 9 | #include "common/common_types.h" | ||
| 10 | |||
| 11 | namespace Shader::IR { | ||
| 12 | class Inst; | ||
| 13 | class Value; | ||
| 14 | } // namespace Shader::IR | ||
| 15 | |||
| 16 | namespace Shader::Backend::GLSL { | ||
| 17 | |||
| 18 | struct Id { | ||
| 19 | u32 base_element : 2; | ||
| 20 | u32 num_elements_minus_one : 2; | ||
| 21 | u32 index : 26; | ||
| 22 | u32 is_spill : 1; | ||
| 23 | u32 is_condition_code : 1; | ||
| 24 | }; | ||
| 25 | |||
| 26 | class RegAlloc { | ||
| 27 | public: | ||
| 28 | std::string Define(IR::Inst& inst, u32 num_elements = 1, u32 alignment = 1); | ||
| 29 | |||
| 30 | std::string Consume(const IR::Value& value); | ||
| 31 | |||
| 32 | private: | ||
| 33 | static constexpr size_t NUM_REGS = 4096; | ||
| 34 | static constexpr size_t NUM_ELEMENTS = 4; | ||
| 35 | |||
| 36 | std::string Consume(IR::Inst& inst); | ||
| 37 | |||
| 38 | Id Alloc(u32 num_elements, u32 alignment); | ||
| 39 | |||
| 40 | void Free(Id id); | ||
| 41 | |||
| 42 | size_t num_used_registers{}; | ||
| 43 | std::bitset<NUM_REGS> register_use{}; | ||
| 44 | }; | ||
| 45 | |||
| 46 | } // namespace Shader::Backend::GLSL | ||