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