diff options
Diffstat (limited to 'src')
6 files changed, 838 insertions, 760 deletions
diff --git a/src/shader_recompiler/backend/glsl/emit_glsl.cpp b/src/shader_recompiler/backend/glsl/emit_glsl.cpp index 0f528b027..d1c58cefc 100644 --- a/src/shader_recompiler/backend/glsl/emit_glsl.cpp +++ b/src/shader_recompiler/backend/glsl/emit_glsl.cpp | |||
| @@ -34,8 +34,8 @@ void SetDefinition(EmitContext& ctx, IR::Inst* inst, Args... args) { | |||
| 34 | } | 34 | } |
| 35 | 35 | ||
| 36 | template <typename ArgType> | 36 | template <typename ArgType> |
| 37 | ArgType Arg(EmitContext& ctx, const IR::Value& arg) { | 37 | auto Arg(EmitContext& ctx, const IR::Value& arg) { |
| 38 | if constexpr (std::is_same_v<ArgType, std::string>) { | 38 | if constexpr (std::is_same_v<ArgType, std::string_view>) { |
| 39 | return ctx.reg_alloc.Consume(arg); | 39 | return ctx.reg_alloc.Consume(arg); |
| 40 | } else if constexpr (std::is_same_v<ArgType, const IR::Value&>) { | 40 | } else if constexpr (std::is_same_v<ArgType, const IR::Value&>) { |
| 41 | return arg; | 41 | return arg; |
| @@ -143,7 +143,8 @@ void EmitCode(EmitContext& ctx, const IR::Program& program) { | |||
| 143 | 143 | ||
| 144 | } // Anonymous namespace | 144 | } // Anonymous namespace |
| 145 | 145 | ||
| 146 | std::string EmitGLSL(const Profile& profile, IR::Program& program, Bindings& bindings) { | 146 | std::string EmitGLSL(const Profile& profile, const RuntimeInfo&, IR::Program& program, |
| 147 | Bindings& bindings) { | ||
| 147 | EmitContext ctx{program, bindings, profile}; | 148 | EmitContext ctx{program, bindings, profile}; |
| 148 | // ctx.SetupBuffers(); | 149 | // ctx.SetupBuffers(); |
| 149 | EmitCode(ctx, program); | 150 | EmitCode(ctx, program); |
diff --git a/src/shader_recompiler/backend/glsl/emit_glsl.h b/src/shader_recompiler/backend/glsl/emit_glsl.h index a7c666107..fe221fa7c 100644 --- a/src/shader_recompiler/backend/glsl/emit_glsl.h +++ b/src/shader_recompiler/backend/glsl/emit_glsl.h | |||
| @@ -12,12 +12,12 @@ | |||
| 12 | 12 | ||
| 13 | namespace Shader::Backend::GLSL { | 13 | namespace Shader::Backend::GLSL { |
| 14 | 14 | ||
| 15 | [[nodiscard]] std::string EmitGLSL(const Profile& profile, IR::Program& program, | 15 | [[nodiscard]] std::string EmitGLSL(const Profile& profile, const RuntimeInfo& runtime_info, |
| 16 | Bindings& binding); | 16 | IR::Program& program, Bindings& bindings); |
| 17 | 17 | ||
| 18 | [[nodiscard]] inline std::string EmitGLSL(const Profile& profile, IR::Program& program) { | 18 | [[nodiscard]] inline std::string EmitGLSL(const Profile& profile, IR::Program& program) { |
| 19 | Bindings binding; | 19 | Bindings binding; |
| 20 | return EmitGLSL(profile, program, binding); | 20 | return EmitGLSL(profile, {}, program, binding); |
| 21 | } | 21 | } |
| 22 | 22 | ||
| 23 | } // namespace Shader::Backend::GLSL | 23 | } // namespace Shader::Backend::GLSL |
diff --git a/src/shader_recompiler/backend/glsl/emit_glsl_instructions.h b/src/shader_recompiler/backend/glsl/emit_glsl_instructions.h index 681e0bdb9..ff0c9cd95 100644 --- a/src/shader_recompiler/backend/glsl/emit_glsl_instructions.h +++ b/src/shader_recompiler/backend/glsl/emit_glsl_instructions.h | |||
| @@ -31,15 +31,15 @@ void EmitIdentity(EmitContext& ctx, IR::Inst& inst, const IR::Value& value); | |||
| 31 | void EmitConditionRef(EmitContext& ctx, IR::Inst& inst, const IR::Value& value); | 31 | void EmitConditionRef(EmitContext& ctx, IR::Inst& inst, const IR::Value& value); |
| 32 | void EmitReference(EmitContext&); | 32 | void EmitReference(EmitContext&); |
| 33 | void EmitPhiMove(EmitContext& ctx, const IR::Value& phi, const IR::Value& value); | 33 | void EmitPhiMove(EmitContext& ctx, const IR::Value& phi, const IR::Value& value); |
| 34 | void EmitBranch(EmitContext& ctx, std::string label); | 34 | void EmitBranch(EmitContext& ctx, std::string_view label); |
| 35 | void EmitBranchConditional(EmitContext& ctx, std::string condition, std::string true_label, | 35 | void EmitBranchConditional(EmitContext& ctx, std::string_view condition, |
| 36 | std::string false_label); | 36 | std::string_view true_label, std::string_view false_label); |
| 37 | void EmitLoopMerge(EmitContext& ctx, std::string merge_label, std::string continue_label); | 37 | void EmitLoopMerge(EmitContext& ctx, std::string_view merge_label, std::string_view continue_label); |
| 38 | void EmitSelectionMerge(EmitContext& ctx, std::string merge_label); | 38 | void EmitSelectionMerge(EmitContext& ctx, std::string_view merge_label); |
| 39 | void EmitReturn(EmitContext& ctx); | 39 | void EmitReturn(EmitContext& ctx); |
| 40 | void EmitJoin(EmitContext& ctx); | 40 | void EmitJoin(EmitContext& ctx); |
| 41 | void EmitUnreachable(EmitContext& ctx); | 41 | void EmitUnreachable(EmitContext& ctx); |
| 42 | void EmitDemoteToHelperInvocation(EmitContext& ctx, std::string continue_label); | 42 | void EmitDemoteToHelperInvocation(EmitContext& ctx, std::string_view continue_label); |
| 43 | void EmitBarrier(EmitContext& ctx); | 43 | void EmitBarrier(EmitContext& ctx); |
| 44 | void EmitWorkgroupMemoryBarrier(EmitContext& ctx); | 44 | void EmitWorkgroupMemoryBarrier(EmitContext& ctx); |
| 45 | void EmitDeviceMemoryBarrier(EmitContext& ctx); | 45 | void EmitDeviceMemoryBarrier(EmitContext& ctx); |
| @@ -63,16 +63,17 @@ void EmitGetCbufU32(EmitContext& ctx, IR::Inst& inst, const IR::Value& binding, | |||
| 63 | const IR::Value& offset); | 63 | const IR::Value& offset); |
| 64 | void EmitGetCbufF32(EmitContext& ctx, const IR::Value& binding, const IR::Value& offset); | 64 | void EmitGetCbufF32(EmitContext& ctx, const IR::Value& binding, const IR::Value& offset); |
| 65 | void EmitGetCbufU32x2(EmitContext& ctx, const IR::Value& binding, const IR::Value& offset); | 65 | void EmitGetCbufU32x2(EmitContext& ctx, const IR::Value& binding, const IR::Value& offset); |
| 66 | void EmitGetAttribute(EmitContext& ctx, IR::Attribute attr, std::string vertex); | 66 | void EmitGetAttribute(EmitContext& ctx, IR::Attribute attr, std::string_view vertex); |
| 67 | void EmitSetAttribute(EmitContext& ctx, IR::Attribute attr, std::string value, std::string vertex); | 67 | void EmitSetAttribute(EmitContext& ctx, IR::Attribute attr, std::string_view value, |
| 68 | void EmitGetAttributeIndexed(EmitContext& ctx, std::string offset, std::string vertex); | 68 | std::string_view vertex); |
| 69 | void EmitSetAttributeIndexed(EmitContext& ctx, std::string offset, std::string value, | 69 | void EmitGetAttributeIndexed(EmitContext& ctx, std::string_view offset, std::string_view vertex); |
| 70 | std::string vertex); | 70 | void EmitSetAttributeIndexed(EmitContext& ctx, std::string_view offset, std::string_view value, |
| 71 | std::string_view vertex); | ||
| 71 | void EmitGetPatch(EmitContext& ctx, IR::Patch patch); | 72 | void EmitGetPatch(EmitContext& ctx, IR::Patch patch); |
| 72 | void EmitSetPatch(EmitContext& ctx, IR::Patch patch, std::string value); | 73 | void EmitSetPatch(EmitContext& ctx, IR::Patch patch, std::string_view value); |
| 73 | void EmitSetFragColor(EmitContext& ctx, u32 index, u32 component, std::string value); | 74 | void EmitSetFragColor(EmitContext& ctx, u32 index, u32 component, std::string_view value); |
| 74 | void EmitSetSampleMask(EmitContext& ctx, std::string value); | 75 | void EmitSetSampleMask(EmitContext& ctx, std::string_view value); |
| 75 | void EmitSetFragDepth(EmitContext& ctx, std::string value); | 76 | void EmitSetFragDepth(EmitContext& ctx, std::string_view value); |
| 76 | void EmitGetZFlag(EmitContext& ctx); | 77 | void EmitGetZFlag(EmitContext& ctx); |
| 77 | void EmitGetSFlag(EmitContext& ctx); | 78 | void EmitGetSFlag(EmitContext& ctx); |
| 78 | void EmitGetCFlag(EmitContext& ctx); | 79 | void EmitGetCFlag(EmitContext& ctx); |
| @@ -87,8 +88,8 @@ void EmitInvocationId(EmitContext& ctx); | |||
| 87 | void EmitSampleId(EmitContext& ctx); | 88 | void EmitSampleId(EmitContext& ctx); |
| 88 | void EmitIsHelperInvocation(EmitContext& ctx); | 89 | void EmitIsHelperInvocation(EmitContext& ctx); |
| 89 | void EmitYDirection(EmitContext& ctx); | 90 | void EmitYDirection(EmitContext& ctx); |
| 90 | void EmitLoadLocal(EmitContext& ctx, std::string word_offset); | 91 | void EmitLoadLocal(EmitContext& ctx, std::string_view word_offset); |
| 91 | void EmitWriteLocal(EmitContext& ctx, std::string word_offset, std::string value); | 92 | void EmitWriteLocal(EmitContext& ctx, std::string_view word_offset, std::string_view value); |
| 92 | void EmitUndefU1(EmitContext& ctx); | 93 | void EmitUndefU1(EmitContext& ctx); |
| 93 | void EmitUndefU8(EmitContext& ctx); | 94 | void EmitUndefU8(EmitContext& ctx); |
| 94 | void EmitUndefU16(EmitContext& ctx); | 95 | void EmitUndefU16(EmitContext& ctx); |
| @@ -98,16 +99,16 @@ void EmitLoadGlobalU8(EmitContext& ctx); | |||
| 98 | void EmitLoadGlobalS8(EmitContext& ctx); | 99 | void EmitLoadGlobalS8(EmitContext& ctx); |
| 99 | void EmitLoadGlobalU16(EmitContext& ctx); | 100 | void EmitLoadGlobalU16(EmitContext& ctx); |
| 100 | void EmitLoadGlobalS16(EmitContext& ctx); | 101 | void EmitLoadGlobalS16(EmitContext& ctx); |
| 101 | void EmitLoadGlobal32(EmitContext& ctx, std::string address); | 102 | void EmitLoadGlobal32(EmitContext& ctx, std::string_view address); |
| 102 | void EmitLoadGlobal64(EmitContext& ctx, std::string address); | 103 | void EmitLoadGlobal64(EmitContext& ctx, std::string_view address); |
| 103 | void EmitLoadGlobal128(EmitContext& ctx, std::string address); | 104 | void EmitLoadGlobal128(EmitContext& ctx, std::string_view address); |
| 104 | void EmitWriteGlobalU8(EmitContext& ctx); | 105 | void EmitWriteGlobalU8(EmitContext& ctx); |
| 105 | void EmitWriteGlobalS8(EmitContext& ctx); | 106 | void EmitWriteGlobalS8(EmitContext& ctx); |
| 106 | void EmitWriteGlobalU16(EmitContext& ctx); | 107 | void EmitWriteGlobalU16(EmitContext& ctx); |
| 107 | void EmitWriteGlobalS16(EmitContext& ctx); | 108 | void EmitWriteGlobalS16(EmitContext& ctx); |
| 108 | void EmitWriteGlobal32(EmitContext& ctx, std::string address, std::string value); | 109 | void EmitWriteGlobal32(EmitContext& ctx, std::string_view address, std::string_view value); |
| 109 | void EmitWriteGlobal64(EmitContext& ctx, std::string address, std::string value); | 110 | void EmitWriteGlobal64(EmitContext& ctx, std::string_view address, std::string_view value); |
| 110 | void EmitWriteGlobal128(EmitContext& ctx, std::string address, std::string value); | 111 | void EmitWriteGlobal128(EmitContext& ctx, std::string_view address, std::string_view value); |
| 111 | void EmitLoadStorageU8(EmitContext& ctx, const IR::Value& binding, const IR::Value& offset); | 112 | void EmitLoadStorageU8(EmitContext& ctx, const IR::Value& binding, const IR::Value& offset); |
| 112 | void EmitLoadStorageS8(EmitContext& ctx, const IR::Value& binding, const IR::Value& offset); | 113 | void EmitLoadStorageS8(EmitContext& ctx, const IR::Value& binding, const IR::Value& offset); |
| 113 | void EmitLoadStorageU16(EmitContext& ctx, const IR::Value& binding, const IR::Value& offset); | 114 | void EmitLoadStorageU16(EmitContext& ctx, const IR::Value& binding, const IR::Value& offset); |
| @@ -116,69 +117,72 @@ void EmitLoadStorage32(EmitContext& ctx, const IR::Value& binding, const IR::Val | |||
| 116 | void EmitLoadStorage64(EmitContext& ctx, const IR::Value& binding, const IR::Value& offset); | 117 | void EmitLoadStorage64(EmitContext& ctx, const IR::Value& binding, const IR::Value& offset); |
| 117 | void EmitLoadStorage128(EmitContext& ctx, const IR::Value& binding, const IR::Value& offset); | 118 | void EmitLoadStorage128(EmitContext& ctx, const IR::Value& binding, const IR::Value& offset); |
| 118 | void EmitWriteStorageU8(EmitContext& ctx, const IR::Value& binding, const IR::Value& offset, | 119 | void EmitWriteStorageU8(EmitContext& ctx, const IR::Value& binding, const IR::Value& offset, |
| 119 | std::string value); | 120 | std::string_view value); |
| 120 | void EmitWriteStorageS8(EmitContext& ctx, const IR::Value& binding, const IR::Value& offset, | 121 | void EmitWriteStorageS8(EmitContext& ctx, const IR::Value& binding, const IR::Value& offset, |
| 121 | std::string value); | 122 | std::string_view value); |
| 122 | void EmitWriteStorageU16(EmitContext& ctx, const IR::Value& binding, const IR::Value& offset, | 123 | void EmitWriteStorageU16(EmitContext& ctx, const IR::Value& binding, const IR::Value& offset, |
| 123 | std::string value); | 124 | std::string_view value); |
| 124 | void EmitWriteStorageS16(EmitContext& ctx, const IR::Value& binding, const IR::Value& offset, | 125 | void EmitWriteStorageS16(EmitContext& ctx, const IR::Value& binding, const IR::Value& offset, |
| 125 | std::string value); | 126 | std::string_view value); |
| 126 | void EmitWriteStorage32(EmitContext& ctx, const IR::Value& binding, const IR::Value& offset, | 127 | void EmitWriteStorage32(EmitContext& ctx, const IR::Value& binding, const IR::Value& offset, |
| 127 | std::string value); | 128 | std::string_view value); |
| 128 | void EmitWriteStorage64(EmitContext& ctx, const IR::Value& binding, const IR::Value& offset, | 129 | void EmitWriteStorage64(EmitContext& ctx, const IR::Value& binding, const IR::Value& offset, |
| 129 | std::string value); | 130 | std::string_view value); |
| 130 | void EmitWriteStorage128(EmitContext& ctx, const IR::Value& binding, const IR::Value& offset, | 131 | void EmitWriteStorage128(EmitContext& ctx, const IR::Value& binding, const IR::Value& offset, |
| 131 | std::string value); | 132 | std::string_view value); |
| 132 | void EmitLoadSharedU8(EmitContext& ctx, std::string offset); | 133 | void EmitLoadSharedU8(EmitContext& ctx, std::string_view offset); |
| 133 | void EmitLoadSharedS8(EmitContext& ctx, std::string offset); | 134 | void EmitLoadSharedS8(EmitContext& ctx, std::string_view offset); |
| 134 | void EmitLoadSharedU16(EmitContext& ctx, std::string offset); | 135 | void EmitLoadSharedU16(EmitContext& ctx, std::string_view offset); |
| 135 | void EmitLoadSharedS16(EmitContext& ctx, std::string offset); | 136 | void EmitLoadSharedS16(EmitContext& ctx, std::string_view offset); |
| 136 | void EmitLoadSharedU32(EmitContext& ctx, std::string offset); | 137 | void EmitLoadSharedU32(EmitContext& ctx, std::string_view offset); |
| 137 | void EmitLoadSharedU64(EmitContext& ctx, std::string offset); | 138 | void EmitLoadSharedU64(EmitContext& ctx, std::string_view offset); |
| 138 | void EmitLoadSharedU128(EmitContext& ctx, std::string offset); | 139 | void EmitLoadSharedU128(EmitContext& ctx, std::string_view offset); |
| 139 | void EmitWriteSharedU8(EmitContext& ctx, std::string offset, std::string value); | 140 | void EmitWriteSharedU8(EmitContext& ctx, std::string_view offset, std::string_view value); |
| 140 | void EmitWriteSharedU16(EmitContext& ctx, std::string offset, std::string value); | 141 | void EmitWriteSharedU16(EmitContext& ctx, std::string_view offset, std::string_view value); |
| 141 | void EmitWriteSharedU32(EmitContext& ctx, std::string offset, std::string value); | 142 | void EmitWriteSharedU32(EmitContext& ctx, std::string_view offset, std::string_view value); |
| 142 | void EmitWriteSharedU64(EmitContext& ctx, std::string offset, std::string value); | 143 | void EmitWriteSharedU64(EmitContext& ctx, std::string_view offset, std::string_view value); |
| 143 | void EmitWriteSharedU128(EmitContext& ctx, std::string offset, std::string value); | 144 | void EmitWriteSharedU128(EmitContext& ctx, std::string_view offset, std::string_view value); |
| 144 | void EmitCompositeConstructU32x2(EmitContext& ctx, std::string e1, std::string e2); | 145 | void EmitCompositeConstructU32x2(EmitContext& ctx, std::string_view e1, std::string_view e2); |
| 145 | void EmitCompositeConstructU32x3(EmitContext& ctx, std::string e1, std::string e2, std::string e3); | 146 | void EmitCompositeConstructU32x3(EmitContext& ctx, std::string_view e1, std::string_view e2, |
| 146 | void EmitCompositeConstructU32x4(EmitContext& ctx, std::string e1, std::string e2, std::string e3, | 147 | std::string_view e3); |
| 147 | std::string e4); | 148 | void EmitCompositeConstructU32x4(EmitContext& ctx, std::string_view e1, std::string_view e2, |
| 148 | void EmitCompositeExtractU32x2(EmitContext& ctx, std::string composite, u32 index); | 149 | std::string_view e3, std::string_view e4); |
| 149 | void EmitCompositeExtractU32x3(EmitContext& ctx, std::string composite, u32 index); | 150 | void EmitCompositeExtractU32x2(EmitContext& ctx, std::string_view composite, u32 index); |
| 150 | void EmitCompositeExtractU32x4(EmitContext& ctx, std::string composite, u32 index); | 151 | void EmitCompositeExtractU32x3(EmitContext& ctx, std::string_view composite, u32 index); |
| 151 | void EmitCompositeInsertU32x2(EmitContext& ctx, std::string composite, std::string object, | 152 | void EmitCompositeExtractU32x4(EmitContext& ctx, std::string_view composite, u32 index); |
| 153 | void EmitCompositeInsertU32x2(EmitContext& ctx, std::string_view composite, std::string_view object, | ||
| 152 | u32 index); | 154 | u32 index); |
| 153 | void EmitCompositeInsertU32x3(EmitContext& ctx, std::string composite, std::string object, | 155 | void EmitCompositeInsertU32x3(EmitContext& ctx, std::string_view composite, std::string_view object, |
| 154 | u32 index); | 156 | u32 index); |
| 155 | void EmitCompositeInsertU32x4(EmitContext& ctx, std::string composite, std::string object, | 157 | void EmitCompositeInsertU32x4(EmitContext& ctx, std::string_view composite, std::string_view object, |
| 156 | u32 index); | 158 | u32 index); |
| 157 | void EmitCompositeConstructF16x2(EmitContext& ctx, std::string e1, std::string e2); | 159 | void EmitCompositeConstructF16x2(EmitContext& ctx, std::string_view e1, std::string_view e2); |
| 158 | void EmitCompositeConstructF16x3(EmitContext& ctx, std::string e1, std::string e2, std::string e3); | 160 | void EmitCompositeConstructF16x3(EmitContext& ctx, std::string_view e1, std::string_view e2, |
| 159 | void EmitCompositeConstructF16x4(EmitContext& ctx, std::string e1, std::string e2, std::string e3, | 161 | std::string_view e3); |
| 160 | std::string e4); | 162 | void EmitCompositeConstructF16x4(EmitContext& ctx, std::string_view e1, std::string_view e2, |
| 161 | void EmitCompositeExtractF16x2(EmitContext& ctx, std::string composite, u32 index); | 163 | std::string_view e3, std::string_view e4); |
| 162 | void EmitCompositeExtractF16x3(EmitContext& ctx, std::string composite, u32 index); | 164 | void EmitCompositeExtractF16x2(EmitContext& ctx, std::string_view composite, u32 index); |
| 163 | void EmitCompositeExtractF16x4(EmitContext& ctx, std::string composite, u32 index); | 165 | void EmitCompositeExtractF16x3(EmitContext& ctx, std::string_view composite, u32 index); |
| 164 | void EmitCompositeInsertF16x2(EmitContext& ctx, std::string composite, std::string object, | 166 | void EmitCompositeExtractF16x4(EmitContext& ctx, std::string_view composite, u32 index); |
| 167 | void EmitCompositeInsertF16x2(EmitContext& ctx, std::string_view composite, std::string_view object, | ||
| 165 | u32 index); | 168 | u32 index); |
| 166 | void EmitCompositeInsertF16x3(EmitContext& ctx, std::string composite, std::string object, | 169 | void EmitCompositeInsertF16x3(EmitContext& ctx, std::string_view composite, std::string_view object, |
| 167 | u32 index); | 170 | u32 index); |
| 168 | void EmitCompositeInsertF16x4(EmitContext& ctx, std::string composite, std::string object, | 171 | void EmitCompositeInsertF16x4(EmitContext& ctx, std::string_view composite, std::string_view object, |
| 169 | u32 index); | 172 | u32 index); |
| 170 | void EmitCompositeConstructF32x2(EmitContext& ctx, std::string e1, std::string e2); | 173 | void EmitCompositeConstructF32x2(EmitContext& ctx, std::string_view e1, std::string_view e2); |
| 171 | void EmitCompositeConstructF32x3(EmitContext& ctx, std::string e1, std::string e2, std::string e3); | 174 | void EmitCompositeConstructF32x3(EmitContext& ctx, std::string_view e1, std::string_view e2, |
| 172 | void EmitCompositeConstructF32x4(EmitContext& ctx, std::string e1, std::string e2, std::string e3, | 175 | std::string_view e3); |
| 173 | std::string e4); | 176 | void EmitCompositeConstructF32x4(EmitContext& ctx, std::string_view e1, std::string_view e2, |
| 174 | void EmitCompositeExtractF32x2(EmitContext& ctx, std::string composite, u32 index); | 177 | std::string_view e3, std::string_view e4); |
| 175 | void EmitCompositeExtractF32x3(EmitContext& ctx, std::string composite, u32 index); | 178 | void EmitCompositeExtractF32x2(EmitContext& ctx, std::string_view composite, u32 index); |
| 176 | void EmitCompositeExtractF32x4(EmitContext& ctx, std::string composite, u32 index); | 179 | void EmitCompositeExtractF32x3(EmitContext& ctx, std::string_view composite, u32 index); |
| 177 | void EmitCompositeInsertF32x2(EmitContext& ctx, std::string composite, std::string object, | 180 | void EmitCompositeExtractF32x4(EmitContext& ctx, std::string_view composite, u32 index); |
| 181 | void EmitCompositeInsertF32x2(EmitContext& ctx, std::string_view composite, std::string_view object, | ||
| 178 | u32 index); | 182 | u32 index); |
| 179 | void EmitCompositeInsertF32x3(EmitContext& ctx, std::string composite, std::string object, | 183 | void EmitCompositeInsertF32x3(EmitContext& ctx, std::string_view composite, std::string_view object, |
| 180 | u32 index); | 184 | u32 index); |
| 181 | void EmitCompositeInsertF32x4(EmitContext& ctx, std::string composite, std::string object, | 185 | void EmitCompositeInsertF32x4(EmitContext& ctx, std::string_view composite, std::string_view object, |
| 182 | u32 index); | 186 | u32 index); |
| 183 | void EmitCompositeConstructF64x2(EmitContext& ctx); | 187 | void EmitCompositeConstructF64x2(EmitContext& ctx); |
| 184 | void EmitCompositeConstructF64x3(EmitContext& ctx); | 188 | void EmitCompositeConstructF64x3(EmitContext& ctx); |
| @@ -186,251 +190,274 @@ void EmitCompositeConstructF64x4(EmitContext& ctx); | |||
| 186 | void EmitCompositeExtractF64x2(EmitContext& ctx); | 190 | void EmitCompositeExtractF64x2(EmitContext& ctx); |
| 187 | void EmitCompositeExtractF64x3(EmitContext& ctx); | 191 | void EmitCompositeExtractF64x3(EmitContext& ctx); |
| 188 | void EmitCompositeExtractF64x4(EmitContext& ctx); | 192 | void EmitCompositeExtractF64x4(EmitContext& ctx); |
| 189 | void EmitCompositeInsertF64x2(EmitContext& ctx, std::string composite, std::string object, | 193 | void EmitCompositeInsertF64x2(EmitContext& ctx, std::string_view composite, std::string_view object, |
| 190 | u32 index); | 194 | u32 index); |
| 191 | void EmitCompositeInsertF64x3(EmitContext& ctx, std::string composite, std::string object, | 195 | void EmitCompositeInsertF64x3(EmitContext& ctx, std::string_view composite, std::string_view object, |
| 192 | u32 index); | 196 | u32 index); |
| 193 | void EmitCompositeInsertF64x4(EmitContext& ctx, std::string composite, std::string object, | 197 | void EmitCompositeInsertF64x4(EmitContext& ctx, std::string_view composite, std::string_view object, |
| 194 | u32 index); | 198 | u32 index); |
| 195 | void EmitSelectU1(EmitContext& ctx, std::string cond, std::string true_value, | 199 | void EmitSelectU1(EmitContext& ctx, std::string_view cond, std::string_view true_value, |
| 196 | std::string false_value); | 200 | std::string_view false_value); |
| 197 | void EmitSelectU8(EmitContext& ctx, std::string cond, std::string true_value, | 201 | void EmitSelectU8(EmitContext& ctx, std::string_view cond, std::string_view true_value, |
| 198 | std::string false_value); | 202 | std::string_view false_value); |
| 199 | void EmitSelectU16(EmitContext& ctx, std::string cond, std::string true_value, | 203 | void EmitSelectU16(EmitContext& ctx, std::string_view cond, std::string_view true_value, |
| 200 | std::string false_value); | 204 | std::string_view false_value); |
| 201 | void EmitSelectU32(EmitContext& ctx, std::string cond, std::string true_value, | 205 | void EmitSelectU32(EmitContext& ctx, std::string_view cond, std::string_view true_value, |
| 202 | std::string false_value); | 206 | std::string_view false_value); |
| 203 | void EmitSelectU64(EmitContext& ctx, std::string cond, std::string true_value, | 207 | void EmitSelectU64(EmitContext& ctx, std::string_view cond, std::string_view true_value, |
| 204 | std::string false_value); | 208 | std::string_view false_value); |
| 205 | void EmitSelectF16(EmitContext& ctx, std::string cond, std::string true_value, | 209 | void EmitSelectF16(EmitContext& ctx, std::string_view cond, std::string_view true_value, |
| 206 | std::string false_value); | 210 | std::string_view false_value); |
| 207 | void EmitSelectF32(EmitContext& ctx, std::string cond, std::string true_value, | 211 | void EmitSelectF32(EmitContext& ctx, std::string_view cond, std::string_view true_value, |
| 208 | std::string false_value); | 212 | std::string_view false_value); |
| 209 | void EmitSelectF64(EmitContext& ctx, std::string cond, std::string true_value, | 213 | void EmitSelectF64(EmitContext& ctx, std::string_view cond, std::string_view true_value, |
| 210 | std::string false_value); | 214 | std::string_view false_value); |
| 211 | void EmitBitCastU16F16(EmitContext& ctx); | 215 | void EmitBitCastU16F16(EmitContext& ctx); |
| 212 | void EmitBitCastU32F32(EmitContext& ctx, std::string value); | 216 | void EmitBitCastU32F32(EmitContext& ctx, std::string_view value); |
| 213 | void EmitBitCastU64F64(EmitContext& ctx); | 217 | void EmitBitCastU64F64(EmitContext& ctx); |
| 214 | void EmitBitCastF16U16(EmitContext& ctx); | 218 | void EmitBitCastF16U16(EmitContext& ctx); |
| 215 | void EmitBitCastF32U32(EmitContext& ctx, std::string value); | 219 | void EmitBitCastF32U32(EmitContext& ctx, std::string_view value); |
| 216 | void EmitBitCastF64U64(EmitContext& ctx); | 220 | void EmitBitCastF64U64(EmitContext& ctx); |
| 217 | void EmitPackUint2x32(EmitContext& ctx, std::string value); | 221 | void EmitPackUint2x32(EmitContext& ctx, std::string_view value); |
| 218 | void EmitUnpackUint2x32(EmitContext& ctx, std::string value); | 222 | void EmitUnpackUint2x32(EmitContext& ctx, std::string_view value); |
| 219 | void EmitPackFloat2x16(EmitContext& ctx, std::string value); | 223 | void EmitPackFloat2x16(EmitContext& ctx, std::string_view value); |
| 220 | void EmitUnpackFloat2x16(EmitContext& ctx, std::string value); | 224 | void EmitUnpackFloat2x16(EmitContext& ctx, std::string_view value); |
| 221 | void EmitPackHalf2x16(EmitContext& ctx, std::string value); | 225 | void EmitPackHalf2x16(EmitContext& ctx, std::string_view value); |
| 222 | void EmitUnpackHalf2x16(EmitContext& ctx, std::string value); | 226 | void EmitUnpackHalf2x16(EmitContext& ctx, std::string_view value); |
| 223 | void EmitPackDouble2x32(EmitContext& ctx, std::string value); | 227 | void EmitPackDouble2x32(EmitContext& ctx, std::string_view value); |
| 224 | void EmitUnpackDouble2x32(EmitContext& ctx, std::string value); | 228 | void EmitUnpackDouble2x32(EmitContext& ctx, std::string_view value); |
| 225 | void EmitGetZeroFromOp(EmitContext& ctx); | 229 | void EmitGetZeroFromOp(EmitContext& ctx); |
| 226 | void EmitGetSignFromOp(EmitContext& ctx); | 230 | void EmitGetSignFromOp(EmitContext& ctx); |
| 227 | void EmitGetCarryFromOp(EmitContext& ctx); | 231 | void EmitGetCarryFromOp(EmitContext& ctx); |
| 228 | void EmitGetOverflowFromOp(EmitContext& ctx); | 232 | void EmitGetOverflowFromOp(EmitContext& ctx); |
| 229 | void EmitGetSparseFromOp(EmitContext& ctx); | 233 | void EmitGetSparseFromOp(EmitContext& ctx); |
| 230 | void EmitGetInBoundsFromOp(EmitContext& ctx); | 234 | void EmitGetInBoundsFromOp(EmitContext& ctx); |
| 231 | void EmitFPAbs16(EmitContext& ctx, std::string value); | 235 | void EmitFPAbs16(EmitContext& ctx, std::string_view value); |
| 232 | void EmitFPAbs32(EmitContext& ctx, std::string value); | 236 | void EmitFPAbs32(EmitContext& ctx, std::string_view value); |
| 233 | void EmitFPAbs64(EmitContext& ctx, std::string value); | 237 | void EmitFPAbs64(EmitContext& ctx, std::string_view value); |
| 234 | void EmitFPAdd16(EmitContext& ctx, IR::Inst& inst, std::string a, std::string b); | 238 | void EmitFPAdd16(EmitContext& ctx, IR::Inst& inst, std::string_view a, std::string_view b); |
| 235 | void EmitFPAdd32(EmitContext& ctx, IR::Inst& inst, std::string a, std::string b); | 239 | void EmitFPAdd32(EmitContext& ctx, IR::Inst& inst, std::string_view a, std::string_view b); |
| 236 | void EmitFPAdd64(EmitContext& ctx, IR::Inst& inst, std::string a, std::string b); | 240 | void EmitFPAdd64(EmitContext& ctx, IR::Inst& inst, std::string_view a, std::string_view b); |
| 237 | void EmitFPFma16(EmitContext& ctx, IR::Inst& inst, std::string a, std::string b, std::string c); | 241 | void EmitFPFma16(EmitContext& ctx, IR::Inst& inst, std::string_view a, std::string_view b, |
| 238 | void EmitFPFma32(EmitContext& ctx, IR::Inst& inst, std::string a, std::string b, std::string c); | 242 | std::string_view c); |
| 239 | void EmitFPFma64(EmitContext& ctx, IR::Inst& inst, std::string a, std::string b, std::string c); | 243 | void EmitFPFma32(EmitContext& ctx, IR::Inst& inst, std::string_view a, std::string_view b, |
| 240 | void EmitFPMax32(EmitContext& ctx, std::string a, std::string b); | 244 | std::string_view c); |
| 241 | void EmitFPMax64(EmitContext& ctx, std::string a, std::string b); | 245 | void EmitFPFma64(EmitContext& ctx, IR::Inst& inst, std::string_view a, std::string_view b, |
| 242 | void EmitFPMin32(EmitContext& ctx, std::string a, std::string b); | 246 | std::string_view c); |
| 243 | void EmitFPMin64(EmitContext& ctx, std::string a, std::string b); | 247 | void EmitFPMax32(EmitContext& ctx, std::string_view a, std::string_view b); |
| 244 | void EmitFPMul16(EmitContext& ctx, IR::Inst& inst, std::string a, std::string b); | 248 | void EmitFPMax64(EmitContext& ctx, std::string_view a, std::string_view b); |
| 245 | void EmitFPMul32(EmitContext& ctx, IR::Inst& inst, std::string a, std::string b); | 249 | void EmitFPMin32(EmitContext& ctx, std::string_view a, std::string_view b); |
| 246 | void EmitFPMul64(EmitContext& ctx, IR::Inst& inst, std::string a, std::string b); | 250 | void EmitFPMin64(EmitContext& ctx, std::string_view a, std::string_view b); |
| 247 | void EmitFPNeg16(EmitContext& ctx, std::string value); | 251 | void EmitFPMul16(EmitContext& ctx, IR::Inst& inst, std::string_view a, std::string_view b); |
| 248 | void EmitFPNeg32(EmitContext& ctx, std::string value); | 252 | void EmitFPMul32(EmitContext& ctx, IR::Inst& inst, std::string_view a, std::string_view b); |
| 249 | void EmitFPNeg64(EmitContext& ctx, std::string value); | 253 | void EmitFPMul64(EmitContext& ctx, IR::Inst& inst, std::string_view a, std::string_view b); |
| 250 | void EmitFPSin(EmitContext& ctx, std::string value); | 254 | void EmitFPNeg16(EmitContext& ctx, std::string_view value); |
| 251 | void EmitFPCos(EmitContext& ctx, std::string value); | 255 | void EmitFPNeg32(EmitContext& ctx, std::string_view value); |
| 252 | void EmitFPExp2(EmitContext& ctx, std::string value); | 256 | void EmitFPNeg64(EmitContext& ctx, std::string_view value); |
| 253 | void EmitFPLog2(EmitContext& ctx, std::string value); | 257 | void EmitFPSin(EmitContext& ctx, std::string_view value); |
| 254 | void EmitFPRecip32(EmitContext& ctx, std::string value); | 258 | void EmitFPCos(EmitContext& ctx, std::string_view value); |
| 255 | void EmitFPRecip64(EmitContext& ctx, std::string value); | 259 | void EmitFPExp2(EmitContext& ctx, std::string_view value); |
| 256 | void EmitFPRecipSqrt32(EmitContext& ctx, std::string value); | 260 | void EmitFPLog2(EmitContext& ctx, std::string_view value); |
| 257 | void EmitFPRecipSqrt64(EmitContext& ctx, std::string value); | 261 | void EmitFPRecip32(EmitContext& ctx, std::string_view value); |
| 258 | void EmitFPSqrt(EmitContext& ctx, std::string value); | 262 | void EmitFPRecip64(EmitContext& ctx, std::string_view value); |
| 259 | void EmitFPSaturate16(EmitContext& ctx, std::string value); | 263 | void EmitFPRecipSqrt32(EmitContext& ctx, std::string_view value); |
| 260 | void EmitFPSaturate32(EmitContext& ctx, std::string value); | 264 | void EmitFPRecipSqrt64(EmitContext& ctx, std::string_view value); |
| 261 | void EmitFPSaturate64(EmitContext& ctx, std::string value); | 265 | void EmitFPSqrt(EmitContext& ctx, std::string_view value); |
| 262 | void EmitFPClamp16(EmitContext& ctx, std::string value, std::string min_value, | 266 | void EmitFPSaturate16(EmitContext& ctx, std::string_view value); |
| 263 | std::string max_value); | 267 | void EmitFPSaturate32(EmitContext& ctx, std::string_view value); |
| 264 | void EmitFPClamp32(EmitContext& ctx, std::string value, std::string min_value, | 268 | void EmitFPSaturate64(EmitContext& ctx, std::string_view value); |
| 265 | std::string max_value); | 269 | void EmitFPClamp16(EmitContext& ctx, std::string_view value, std::string_view min_value, |
| 266 | void EmitFPClamp64(EmitContext& ctx, std::string value, std::string min_value, | 270 | std::string_view max_value); |
| 267 | std::string max_value); | 271 | void EmitFPClamp32(EmitContext& ctx, std::string_view value, std::string_view min_value, |
| 268 | void EmitFPRoundEven16(EmitContext& ctx, std::string value); | 272 | std::string_view max_value); |
| 269 | void EmitFPRoundEven32(EmitContext& ctx, std::string value); | 273 | void EmitFPClamp64(EmitContext& ctx, std::string_view value, std::string_view min_value, |
| 270 | void EmitFPRoundEven64(EmitContext& ctx, std::string value); | 274 | std::string_view max_value); |
| 271 | void EmitFPFloor16(EmitContext& ctx, std::string value); | 275 | void EmitFPRoundEven16(EmitContext& ctx, std::string_view value); |
| 272 | void EmitFPFloor32(EmitContext& ctx, std::string value); | 276 | void EmitFPRoundEven32(EmitContext& ctx, std::string_view value); |
| 273 | void EmitFPFloor64(EmitContext& ctx, std::string value); | 277 | void EmitFPRoundEven64(EmitContext& ctx, std::string_view value); |
| 274 | void EmitFPCeil16(EmitContext& ctx, std::string value); | 278 | void EmitFPFloor16(EmitContext& ctx, std::string_view value); |
| 275 | void EmitFPCeil32(EmitContext& ctx, std::string value); | 279 | void EmitFPFloor32(EmitContext& ctx, std::string_view value); |
| 276 | void EmitFPCeil64(EmitContext& ctx, std::string value); | 280 | void EmitFPFloor64(EmitContext& ctx, std::string_view value); |
| 277 | void EmitFPTrunc16(EmitContext& ctx, std::string value); | 281 | void EmitFPCeil16(EmitContext& ctx, std::string_view value); |
| 278 | void EmitFPTrunc32(EmitContext& ctx, std::string value); | 282 | void EmitFPCeil32(EmitContext& ctx, std::string_view value); |
| 279 | void EmitFPTrunc64(EmitContext& ctx, std::string value); | 283 | void EmitFPCeil64(EmitContext& ctx, std::string_view value); |
| 280 | void EmitFPOrdEqual16(EmitContext& ctx, std::string lhs, std::string rhs); | 284 | void EmitFPTrunc16(EmitContext& ctx, std::string_view value); |
| 281 | void EmitFPOrdEqual32(EmitContext& ctx, std::string lhs, std::string rhs); | 285 | void EmitFPTrunc32(EmitContext& ctx, std::string_view value); |
| 282 | void EmitFPOrdEqual64(EmitContext& ctx, std::string lhs, std::string rhs); | 286 | void EmitFPTrunc64(EmitContext& ctx, std::string_view value); |
| 283 | void EmitFPUnordEqual16(EmitContext& ctx, std::string lhs, std::string rhs); | 287 | void EmitFPOrdEqual16(EmitContext& ctx, std::string_view lhs, std::string_view rhs); |
| 284 | void EmitFPUnordEqual32(EmitContext& ctx, std::string lhs, std::string rhs); | 288 | void EmitFPOrdEqual32(EmitContext& ctx, std::string_view lhs, std::string_view rhs); |
| 285 | void EmitFPUnordEqual64(EmitContext& ctx, std::string lhs, std::string rhs); | 289 | void EmitFPOrdEqual64(EmitContext& ctx, std::string_view lhs, std::string_view rhs); |
| 286 | void EmitFPOrdNotEqual16(EmitContext& ctx, std::string lhs, std::string rhs); | 290 | void EmitFPUnordEqual16(EmitContext& ctx, std::string_view lhs, std::string_view rhs); |
| 287 | void EmitFPOrdNotEqual32(EmitContext& ctx, std::string lhs, std::string rhs); | 291 | void EmitFPUnordEqual32(EmitContext& ctx, std::string_view lhs, std::string_view rhs); |
| 288 | void EmitFPOrdNotEqual64(EmitContext& ctx, std::string lhs, std::string rhs); | 292 | void EmitFPUnordEqual64(EmitContext& ctx, std::string_view lhs, std::string_view rhs); |
| 289 | void EmitFPUnordNotEqual16(EmitContext& ctx, std::string lhs, std::string rhs); | 293 | void EmitFPOrdNotEqual16(EmitContext& ctx, std::string_view lhs, std::string_view rhs); |
| 290 | void EmitFPUnordNotEqual32(EmitContext& ctx, std::string lhs, std::string rhs); | 294 | void EmitFPOrdNotEqual32(EmitContext& ctx, std::string_view lhs, std::string_view rhs); |
| 291 | void EmitFPUnordNotEqual64(EmitContext& ctx, std::string lhs, std::string rhs); | 295 | void EmitFPOrdNotEqual64(EmitContext& ctx, std::string_view lhs, std::string_view rhs); |
| 292 | void EmitFPOrdLessThan16(EmitContext& ctx, std::string lhs, std::string rhs); | 296 | void EmitFPUnordNotEqual16(EmitContext& ctx, std::string_view lhs, std::string_view rhs); |
| 293 | void EmitFPOrdLessThan32(EmitContext& ctx, std::string lhs, std::string rhs); | 297 | void EmitFPUnordNotEqual32(EmitContext& ctx, std::string_view lhs, std::string_view rhs); |
| 294 | void EmitFPOrdLessThan64(EmitContext& ctx, std::string lhs, std::string rhs); | 298 | void EmitFPUnordNotEqual64(EmitContext& ctx, std::string_view lhs, std::string_view rhs); |
| 295 | void EmitFPUnordLessThan16(EmitContext& ctx, std::string lhs, std::string rhs); | 299 | void EmitFPOrdLessThan16(EmitContext& ctx, std::string_view lhs, std::string_view rhs); |
| 296 | void EmitFPUnordLessThan32(EmitContext& ctx, std::string lhs, std::string rhs); | 300 | void EmitFPOrdLessThan32(EmitContext& ctx, std::string_view lhs, std::string_view rhs); |
| 297 | void EmitFPUnordLessThan64(EmitContext& ctx, std::string lhs, std::string rhs); | 301 | void EmitFPOrdLessThan64(EmitContext& ctx, std::string_view lhs, std::string_view rhs); |
| 298 | void EmitFPOrdGreaterThan16(EmitContext& ctx, std::string lhs, std::string rhs); | 302 | void EmitFPUnordLessThan16(EmitContext& ctx, std::string_view lhs, std::string_view rhs); |
| 299 | void EmitFPOrdGreaterThan32(EmitContext& ctx, std::string lhs, std::string rhs); | 303 | void EmitFPUnordLessThan32(EmitContext& ctx, std::string_view lhs, std::string_view rhs); |
| 300 | void EmitFPOrdGreaterThan64(EmitContext& ctx, std::string lhs, std::string rhs); | 304 | void EmitFPUnordLessThan64(EmitContext& ctx, std::string_view lhs, std::string_view rhs); |
| 301 | void EmitFPUnordGreaterThan16(EmitContext& ctx, std::string lhs, std::string rhs); | 305 | void EmitFPOrdGreaterThan16(EmitContext& ctx, std::string_view lhs, std::string_view rhs); |
| 302 | void EmitFPUnordGreaterThan32(EmitContext& ctx, std::string lhs, std::string rhs); | 306 | void EmitFPOrdGreaterThan32(EmitContext& ctx, std::string_view lhs, std::string_view rhs); |
| 303 | void EmitFPUnordGreaterThan64(EmitContext& ctx, std::string lhs, std::string rhs); | 307 | void EmitFPOrdGreaterThan64(EmitContext& ctx, std::string_view lhs, std::string_view rhs); |
| 304 | void EmitFPOrdLessThanEqual16(EmitContext& ctx, std::string lhs, std::string rhs); | 308 | void EmitFPUnordGreaterThan16(EmitContext& ctx, std::string_view lhs, std::string_view rhs); |
| 305 | void EmitFPOrdLessThanEqual32(EmitContext& ctx, std::string lhs, std::string rhs); | 309 | void EmitFPUnordGreaterThan32(EmitContext& ctx, std::string_view lhs, std::string_view rhs); |
| 306 | void EmitFPOrdLessThanEqual64(EmitContext& ctx, std::string lhs, std::string rhs); | 310 | void EmitFPUnordGreaterThan64(EmitContext& ctx, std::string_view lhs, std::string_view rhs); |
| 307 | void EmitFPUnordLessThanEqual16(EmitContext& ctx, std::string lhs, std::string rhs); | 311 | void EmitFPOrdLessThanEqual16(EmitContext& ctx, std::string_view lhs, std::string_view rhs); |
| 308 | void EmitFPUnordLessThanEqual32(EmitContext& ctx, std::string lhs, std::string rhs); | 312 | void EmitFPOrdLessThanEqual32(EmitContext& ctx, std::string_view lhs, std::string_view rhs); |
| 309 | void EmitFPUnordLessThanEqual64(EmitContext& ctx, std::string lhs, std::string rhs); | 313 | void EmitFPOrdLessThanEqual64(EmitContext& ctx, std::string_view lhs, std::string_view rhs); |
| 310 | void EmitFPOrdGreaterThanEqual16(EmitContext& ctx, std::string lhs, std::string rhs); | 314 | void EmitFPUnordLessThanEqual16(EmitContext& ctx, std::string_view lhs, std::string_view rhs); |
| 311 | void EmitFPOrdGreaterThanEqual32(EmitContext& ctx, std::string lhs, std::string rhs); | 315 | void EmitFPUnordLessThanEqual32(EmitContext& ctx, std::string_view lhs, std::string_view rhs); |
| 312 | void EmitFPOrdGreaterThanEqual64(EmitContext& ctx, std::string lhs, std::string rhs); | 316 | void EmitFPUnordLessThanEqual64(EmitContext& ctx, std::string_view lhs, std::string_view rhs); |
| 313 | void EmitFPUnordGreaterThanEqual16(EmitContext& ctx, std::string lhs, std::string rhs); | 317 | void EmitFPOrdGreaterThanEqual16(EmitContext& ctx, std::string_view lhs, std::string_view rhs); |
| 314 | void EmitFPUnordGreaterThanEqual32(EmitContext& ctx, std::string lhs, std::string rhs); | 318 | void EmitFPOrdGreaterThanEqual32(EmitContext& ctx, std::string_view lhs, std::string_view rhs); |
| 315 | void EmitFPUnordGreaterThanEqual64(EmitContext& ctx, std::string lhs, std::string rhs); | 319 | void EmitFPOrdGreaterThanEqual64(EmitContext& ctx, std::string_view lhs, std::string_view rhs); |
| 316 | void EmitFPIsNan16(EmitContext& ctx, std::string value); | 320 | void EmitFPUnordGreaterThanEqual16(EmitContext& ctx, std::string_view lhs, std::string_view rhs); |
| 317 | void EmitFPIsNan32(EmitContext& ctx, std::string value); | 321 | void EmitFPUnordGreaterThanEqual32(EmitContext& ctx, std::string_view lhs, std::string_view rhs); |
| 318 | void EmitFPIsNan64(EmitContext& ctx, std::string value); | 322 | void EmitFPUnordGreaterThanEqual64(EmitContext& ctx, std::string_view lhs, std::string_view rhs); |
| 319 | void EmitIAdd32(EmitContext& ctx, IR::Inst& inst, std::string a, std::string b); | 323 | void EmitFPIsNan16(EmitContext& ctx, std::string_view value); |
| 320 | void EmitIAdd64(EmitContext& ctx, IR::Inst& inst, std::string a, std::string b); | 324 | void EmitFPIsNan32(EmitContext& ctx, std::string_view value); |
| 321 | void EmitISub32(EmitContext& ctx, IR::Inst& inst, std::string a, std::string b); | 325 | void EmitFPIsNan64(EmitContext& ctx, std::string_view value); |
| 322 | void EmitISub64(EmitContext& ctx, IR::Inst& inst, std::string a, std::string b); | 326 | void EmitIAdd32(EmitContext& ctx, IR::Inst& inst, std::string_view a, std::string_view b); |
| 323 | void EmitIMul32(EmitContext& ctx, IR::Inst& inst, std::string a, std::string b); | 327 | void EmitIAdd64(EmitContext& ctx, IR::Inst& inst, std::string_view a, std::string_view b); |
| 324 | void EmitINeg32(EmitContext& ctx, IR::Inst& inst, std::string value); | 328 | void EmitISub32(EmitContext& ctx, IR::Inst& inst, std::string_view a, std::string_view b); |
| 325 | void EmitINeg64(EmitContext& ctx, IR::Inst& inst, std::string value); | 329 | void EmitISub64(EmitContext& ctx, IR::Inst& inst, std::string_view a, std::string_view b); |
| 326 | void EmitIAbs32(EmitContext& ctx, IR::Inst& inst, std::string value); | 330 | void EmitIMul32(EmitContext& ctx, IR::Inst& inst, std::string_view a, std::string_view b); |
| 327 | void EmitIAbs64(EmitContext& ctx, IR::Inst& inst, std::string value); | 331 | void EmitINeg32(EmitContext& ctx, IR::Inst& inst, std::string_view value); |
| 328 | void EmitShiftLeftLogical32(EmitContext& ctx, IR::Inst& inst, std::string base, std::string shift); | 332 | void EmitINeg64(EmitContext& ctx, IR::Inst& inst, std::string_view value); |
| 329 | void EmitShiftLeftLogical64(EmitContext& ctx, IR::Inst& inst, std::string base, std::string shift); | 333 | void EmitIAbs32(EmitContext& ctx, IR::Inst& inst, std::string_view value); |
| 330 | void EmitShiftRightLogical32(EmitContext& ctx, IR::Inst& inst, std::string base, std::string shift); | 334 | void EmitIAbs64(EmitContext& ctx, IR::Inst& inst, std::string_view value); |
| 331 | void EmitShiftRightLogical64(EmitContext& ctx, IR::Inst& inst, std::string base, std::string shift); | 335 | void EmitShiftLeftLogical32(EmitContext& ctx, IR::Inst& inst, std::string_view base, |
| 332 | void EmitShiftRightArithmetic32(EmitContext& ctx, IR::Inst& inst, std::string base, | 336 | std::string_view shift); |
| 333 | std::string shift); | 337 | void EmitShiftLeftLogical64(EmitContext& ctx, IR::Inst& inst, std::string_view base, |
| 334 | void EmitShiftRightArithmetic64(EmitContext& ctx, IR::Inst& inst, std::string base, | 338 | std::string_view shift); |
| 335 | std::string shift); | 339 | void EmitShiftRightLogical32(EmitContext& ctx, IR::Inst& inst, std::string_view base, |
| 336 | void EmitBitwiseAnd32(EmitContext& ctx, IR::Inst& inst, std::string a, std::string b); | 340 | std::string_view shift); |
| 337 | void EmitBitwiseOr32(EmitContext& ctx, IR::Inst& inst, std::string a, std::string b); | 341 | void EmitShiftRightLogical64(EmitContext& ctx, IR::Inst& inst, std::string_view base, |
| 338 | void EmitBitwiseXor32(EmitContext& ctx, IR::Inst& inst, std::string a, std::string b); | 342 | std::string_view shift); |
| 339 | void EmitBitFieldInsert(EmitContext& ctx, IR::Inst& inst, std::string base, std::string insert, | 343 | void EmitShiftRightArithmetic32(EmitContext& ctx, IR::Inst& inst, std::string_view base, |
| 340 | std::string offset, std::string count); | 344 | std::string_view shift); |
| 341 | void EmitBitFieldSExtract(EmitContext& ctx, IR::Inst& inst, std::string base, std::string offset, | 345 | void EmitShiftRightArithmetic64(EmitContext& ctx, IR::Inst& inst, std::string_view base, |
| 342 | std::string count); | 346 | std::string_view shift); |
| 343 | void EmitBitFieldUExtract(EmitContext& ctx, IR::Inst& inst, std::string base, std::string offset, | 347 | void EmitBitwiseAnd32(EmitContext& ctx, IR::Inst& inst, std::string_view a, std::string_view b); |
| 344 | std::string count); | 348 | void EmitBitwiseOr32(EmitContext& ctx, IR::Inst& inst, std::string_view a, std::string_view b); |
| 345 | void EmitBitReverse32(EmitContext& ctx, IR::Inst& inst, std::string value); | 349 | void EmitBitwiseXor32(EmitContext& ctx, IR::Inst& inst, std::string_view a, std::string_view b); |
| 346 | void EmitBitCount32(EmitContext& ctx, IR::Inst& inst, std::string value); | 350 | void EmitBitFieldInsert(EmitContext& ctx, IR::Inst& inst, std::string_view base, |
| 347 | void EmitBitwiseNot32(EmitContext& ctx, IR::Inst& inst, std::string value); | 351 | std::string_view insert, std::string_view offset, std::string_view count); |
| 348 | void EmitFindSMsb32(EmitContext& ctx, IR::Inst& inst, std::string value); | 352 | void EmitBitFieldSExtract(EmitContext& ctx, IR::Inst& inst, std::string_view base, |
| 349 | void EmitFindUMsb32(EmitContext& ctx, IR::Inst& inst, std::string value); | 353 | std::string_view offset, std::string_view count); |
| 350 | void EmitSMin32(EmitContext& ctx, IR::Inst& inst, std::string a, std::string b); | 354 | void EmitBitFieldUExtract(EmitContext& ctx, IR::Inst& inst, std::string_view base, |
| 351 | void EmitUMin32(EmitContext& ctx, IR::Inst& inst, std::string a, std::string b); | 355 | std::string_view offset, std::string_view count); |
| 352 | void EmitSMax32(EmitContext& ctx, IR::Inst& inst, std::string a, std::string b); | 356 | void EmitBitReverse32(EmitContext& ctx, IR::Inst& inst, std::string_view value); |
| 353 | void EmitUMax32(EmitContext& ctx, IR::Inst& inst, std::string a, std::string b); | 357 | void EmitBitCount32(EmitContext& ctx, IR::Inst& inst, std::string_view value); |
| 354 | void EmitSClamp32(EmitContext& ctx, IR::Inst& inst, std::string value, std::string min, | 358 | void EmitBitwiseNot32(EmitContext& ctx, IR::Inst& inst, std::string_view value); |
| 355 | std::string max); | 359 | void EmitFindSMsb32(EmitContext& ctx, IR::Inst& inst, std::string_view value); |
| 356 | void EmitUClamp32(EmitContext& ctx, IR::Inst& inst, std::string value, std::string min, | 360 | void EmitFindUMsb32(EmitContext& ctx, IR::Inst& inst, std::string_view value); |
| 357 | std::string max); | 361 | void EmitSMin32(EmitContext& ctx, IR::Inst& inst, std::string_view a, std::string_view b); |
| 358 | void EmitSLessThan(EmitContext& ctx, IR::Inst& inst, std::string lhs, std::string rhs); | 362 | void EmitUMin32(EmitContext& ctx, IR::Inst& inst, std::string_view a, std::string_view b); |
| 359 | void EmitULessThan(EmitContext& ctx, IR::Inst& inst, std::string lhs, std::string rhs); | 363 | void EmitSMax32(EmitContext& ctx, IR::Inst& inst, std::string_view a, std::string_view b); |
| 360 | void EmitIEqual(EmitContext& ctx, IR::Inst& inst, std::string lhs, std::string rhs); | 364 | void EmitUMax32(EmitContext& ctx, IR::Inst& inst, std::string_view a, std::string_view b); |
| 361 | void EmitSLessThanEqual(EmitContext& ctx, IR::Inst& inst, std::string lhs, std::string rhs); | 365 | void EmitSClamp32(EmitContext& ctx, IR::Inst& inst, std::string_view value, std::string_view min, |
| 362 | void EmitULessThanEqual(EmitContext& ctx, IR::Inst& inst, std::string lhs, std::string rhs); | 366 | std::string_view max); |
| 363 | void EmitSGreaterThan(EmitContext& ctx, IR::Inst& inst, std::string lhs, std::string rhs); | 367 | void EmitUClamp32(EmitContext& ctx, IR::Inst& inst, std::string_view value, std::string_view min, |
| 364 | void EmitUGreaterThan(EmitContext& ctx, IR::Inst& inst, std::string lhs, std::string rhs); | 368 | std::string_view max); |
| 365 | void EmitINotEqual(EmitContext& ctx, IR::Inst& inst, std::string lhs, std::string rhs); | 369 | void EmitSLessThan(EmitContext& ctx, IR::Inst& inst, std::string_view lhs, std::string_view rhs); |
| 366 | void EmitSGreaterThanEqual(EmitContext& ctx, IR::Inst& inst, std::string lhs, std::string rhs); | 370 | void EmitULessThan(EmitContext& ctx, IR::Inst& inst, std::string_view lhs, std::string_view rhs); |
| 367 | void EmitUGreaterThanEqual(EmitContext& ctx, IR::Inst& inst, std::string lhs, std::string rhs); | 371 | void EmitIEqual(EmitContext& ctx, IR::Inst& inst, std::string_view lhs, std::string_view rhs); |
| 368 | void EmitSharedAtomicIAdd32(EmitContext& ctx, std::string pointer_offset, std::string value); | 372 | void EmitSLessThanEqual(EmitContext& ctx, IR::Inst& inst, std::string_view lhs, |
| 369 | void EmitSharedAtomicSMin32(EmitContext& ctx, std::string pointer_offset, std::string value); | 373 | std::string_view rhs); |
| 370 | void EmitSharedAtomicUMin32(EmitContext& ctx, std::string pointer_offset, std::string value); | 374 | void EmitULessThanEqual(EmitContext& ctx, IR::Inst& inst, std::string_view lhs, |
| 371 | void EmitSharedAtomicSMax32(EmitContext& ctx, std::string pointer_offset, std::string value); | 375 | std::string_view rhs); |
| 372 | void EmitSharedAtomicUMax32(EmitContext& ctx, std::string pointer_offset, std::string value); | 376 | void EmitSGreaterThan(EmitContext& ctx, IR::Inst& inst, std::string_view lhs, std::string_view rhs); |
| 373 | void EmitSharedAtomicInc32(EmitContext& ctx, std::string pointer_offset, std::string value); | 377 | void EmitUGreaterThan(EmitContext& ctx, IR::Inst& inst, std::string_view lhs, std::string_view rhs); |
| 374 | void EmitSharedAtomicDec32(EmitContext& ctx, std::string pointer_offset, std::string value); | 378 | void EmitINotEqual(EmitContext& ctx, IR::Inst& inst, std::string_view lhs, std::string_view rhs); |
| 375 | void EmitSharedAtomicAnd32(EmitContext& ctx, std::string pointer_offset, std::string value); | 379 | void EmitSGreaterThanEqual(EmitContext& ctx, IR::Inst& inst, std::string_view lhs, |
| 376 | void EmitSharedAtomicOr32(EmitContext& ctx, std::string pointer_offset, std::string value); | 380 | std::string_view rhs); |
| 377 | void EmitSharedAtomicXor32(EmitContext& ctx, std::string pointer_offset, std::string value); | 381 | void EmitUGreaterThanEqual(EmitContext& ctx, IR::Inst& inst, std::string_view lhs, |
| 378 | void EmitSharedAtomicExchange32(EmitContext& ctx, std::string pointer_offset, std::string value); | 382 | std::string_view rhs); |
| 379 | void EmitSharedAtomicExchange64(EmitContext& ctx, std::string pointer_offset, std::string value); | 383 | void EmitSharedAtomicIAdd32(EmitContext& ctx, std::string_view pointer_offset, |
| 384 | std::string_view value); | ||
| 385 | void EmitSharedAtomicSMin32(EmitContext& ctx, std::string_view pointer_offset, | ||
| 386 | std::string_view value); | ||
| 387 | void EmitSharedAtomicUMin32(EmitContext& ctx, std::string_view pointer_offset, | ||
| 388 | std::string_view value); | ||
| 389 | void EmitSharedAtomicSMax32(EmitContext& ctx, std::string_view pointer_offset, | ||
| 390 | std::string_view value); | ||
| 391 | void EmitSharedAtomicUMax32(EmitContext& ctx, std::string_view pointer_offset, | ||
| 392 | std::string_view value); | ||
| 393 | void EmitSharedAtomicInc32(EmitContext& ctx, std::string_view pointer_offset, | ||
| 394 | std::string_view value); | ||
| 395 | void EmitSharedAtomicDec32(EmitContext& ctx, std::string_view pointer_offset, | ||
| 396 | std::string_view value); | ||
| 397 | void EmitSharedAtomicAnd32(EmitContext& ctx, std::string_view pointer_offset, | ||
| 398 | std::string_view value); | ||
| 399 | void EmitSharedAtomicOr32(EmitContext& ctx, std::string_view pointer_offset, | ||
| 400 | std::string_view value); | ||
| 401 | void EmitSharedAtomicXor32(EmitContext& ctx, std::string_view pointer_offset, | ||
| 402 | std::string_view value); | ||
| 403 | void EmitSharedAtomicExchange32(EmitContext& ctx, std::string_view pointer_offset, | ||
| 404 | std::string_view value); | ||
| 405 | void EmitSharedAtomicExchange64(EmitContext& ctx, std::string_view pointer_offset, | ||
| 406 | std::string_view value); | ||
| 380 | void EmitStorageAtomicIAdd32(EmitContext& ctx, const IR::Value& binding, const IR::Value& offset, | 407 | void EmitStorageAtomicIAdd32(EmitContext& ctx, const IR::Value& binding, const IR::Value& offset, |
| 381 | std::string value); | 408 | std::string_view value); |
| 382 | void EmitStorageAtomicSMin32(EmitContext& ctx, const IR::Value& binding, const IR::Value& offset, | 409 | void EmitStorageAtomicSMin32(EmitContext& ctx, const IR::Value& binding, const IR::Value& offset, |
| 383 | std::string value); | 410 | std::string_view value); |
| 384 | void EmitStorageAtomicUMin32(EmitContext& ctx, const IR::Value& binding, const IR::Value& offset, | 411 | void EmitStorageAtomicUMin32(EmitContext& ctx, const IR::Value& binding, const IR::Value& offset, |
| 385 | std::string value); | 412 | std::string_view value); |
| 386 | void EmitStorageAtomicSMax32(EmitContext& ctx, const IR::Value& binding, const IR::Value& offset, | 413 | void EmitStorageAtomicSMax32(EmitContext& ctx, const IR::Value& binding, const IR::Value& offset, |
| 387 | std::string value); | 414 | std::string_view value); |
| 388 | void EmitStorageAtomicUMax32(EmitContext& ctx, const IR::Value& binding, const IR::Value& offset, | 415 | void EmitStorageAtomicUMax32(EmitContext& ctx, const IR::Value& binding, const IR::Value& offset, |
| 389 | std::string value); | 416 | std::string_view value); |
| 390 | void EmitStorageAtomicInc32(EmitContext& ctx, const IR::Value& binding, const IR::Value& offset, | 417 | void EmitStorageAtomicInc32(EmitContext& ctx, const IR::Value& binding, const IR::Value& offset, |
| 391 | std::string value); | 418 | std::string_view value); |
| 392 | void EmitStorageAtomicDec32(EmitContext& ctx, const IR::Value& binding, const IR::Value& offset, | 419 | void EmitStorageAtomicDec32(EmitContext& ctx, const IR::Value& binding, const IR::Value& offset, |
| 393 | std::string value); | 420 | std::string_view value); |
| 394 | void EmitStorageAtomicAnd32(EmitContext& ctx, const IR::Value& binding, const IR::Value& offset, | 421 | void EmitStorageAtomicAnd32(EmitContext& ctx, const IR::Value& binding, const IR::Value& offset, |
| 395 | std::string value); | 422 | std::string_view value); |
| 396 | void EmitStorageAtomicOr32(EmitContext& ctx, const IR::Value& binding, const IR::Value& offset, | 423 | void EmitStorageAtomicOr32(EmitContext& ctx, const IR::Value& binding, const IR::Value& offset, |
| 397 | std::string value); | 424 | std::string_view value); |
| 398 | void EmitStorageAtomicXor32(EmitContext& ctx, const IR::Value& binding, const IR::Value& offset, | 425 | void EmitStorageAtomicXor32(EmitContext& ctx, const IR::Value& binding, const IR::Value& offset, |
| 399 | std::string value); | 426 | std::string_view value); |
| 400 | void EmitStorageAtomicExchange32(EmitContext& ctx, const IR::Value& binding, | 427 | void EmitStorageAtomicExchange32(EmitContext& ctx, const IR::Value& binding, |
| 401 | const IR::Value& offset, std::string value); | 428 | const IR::Value& offset, std::string_view value); |
| 402 | void EmitStorageAtomicIAdd64(EmitContext& ctx, const IR::Value& binding, const IR::Value& offset, | 429 | void EmitStorageAtomicIAdd64(EmitContext& ctx, const IR::Value& binding, const IR::Value& offset, |
| 403 | std::string value); | 430 | std::string_view value); |
| 404 | void EmitStorageAtomicSMin64(EmitContext& ctx, const IR::Value& binding, const IR::Value& offset, | 431 | void EmitStorageAtomicSMin64(EmitContext& ctx, const IR::Value& binding, const IR::Value& offset, |
| 405 | std::string value); | 432 | std::string_view value); |
| 406 | void EmitStorageAtomicUMin64(EmitContext& ctx, const IR::Value& binding, const IR::Value& offset, | 433 | void EmitStorageAtomicUMin64(EmitContext& ctx, const IR::Value& binding, const IR::Value& offset, |
| 407 | std::string value); | 434 | std::string_view value); |
| 408 | void EmitStorageAtomicSMax64(EmitContext& ctx, const IR::Value& binding, const IR::Value& offset, | 435 | void EmitStorageAtomicSMax64(EmitContext& ctx, const IR::Value& binding, const IR::Value& offset, |
| 409 | std::string value); | 436 | std::string_view value); |
| 410 | void EmitStorageAtomicUMax64(EmitContext& ctx, const IR::Value& binding, const IR::Value& offset, | 437 | void EmitStorageAtomicUMax64(EmitContext& ctx, const IR::Value& binding, const IR::Value& offset, |
| 411 | std::string value); | 438 | std::string_view value); |
| 412 | void EmitStorageAtomicAnd64(EmitContext& ctx, const IR::Value& binding, const IR::Value& offset, | 439 | void EmitStorageAtomicAnd64(EmitContext& ctx, const IR::Value& binding, const IR::Value& offset, |
| 413 | std::string value); | 440 | std::string_view value); |
| 414 | void EmitStorageAtomicOr64(EmitContext& ctx, const IR::Value& binding, const IR::Value& offset, | 441 | void EmitStorageAtomicOr64(EmitContext& ctx, const IR::Value& binding, const IR::Value& offset, |
| 415 | std::string value); | 442 | std::string_view value); |
| 416 | void EmitStorageAtomicXor64(EmitContext& ctx, const IR::Value& binding, const IR::Value& offset, | 443 | void EmitStorageAtomicXor64(EmitContext& ctx, const IR::Value& binding, const IR::Value& offset, |
| 417 | std::string value); | 444 | std::string_view value); |
| 418 | void EmitStorageAtomicExchange64(EmitContext& ctx, const IR::Value& binding, | 445 | void EmitStorageAtomicExchange64(EmitContext& ctx, const IR::Value& binding, |
| 419 | const IR::Value& offset, std::string value); | 446 | const IR::Value& offset, std::string_view value); |
| 420 | void EmitStorageAtomicAddF32(EmitContext& ctx, const IR::Value& binding, const IR::Value& offset, | 447 | void EmitStorageAtomicAddF32(EmitContext& ctx, const IR::Value& binding, const IR::Value& offset, |
| 421 | std::string value); | 448 | std::string_view value); |
| 422 | void EmitStorageAtomicAddF16x2(EmitContext& ctx, const IR::Value& binding, const IR::Value& offset, | 449 | void EmitStorageAtomicAddF16x2(EmitContext& ctx, const IR::Value& binding, const IR::Value& offset, |
| 423 | std::string value); | 450 | std::string_view value); |
| 424 | void EmitStorageAtomicAddF32x2(EmitContext& ctx, const IR::Value& binding, const IR::Value& offset, | 451 | void EmitStorageAtomicAddF32x2(EmitContext& ctx, const IR::Value& binding, const IR::Value& offset, |
| 425 | std::string value); | 452 | std::string_view value); |
| 426 | void EmitStorageAtomicMinF16x2(EmitContext& ctx, const IR::Value& binding, const IR::Value& offset, | 453 | void EmitStorageAtomicMinF16x2(EmitContext& ctx, const IR::Value& binding, const IR::Value& offset, |
| 427 | std::string value); | 454 | std::string_view value); |
| 428 | void EmitStorageAtomicMinF32x2(EmitContext& ctx, const IR::Value& binding, const IR::Value& offset, | 455 | void EmitStorageAtomicMinF32x2(EmitContext& ctx, const IR::Value& binding, const IR::Value& offset, |
| 429 | std::string value); | 456 | std::string_view value); |
| 430 | void EmitStorageAtomicMaxF16x2(EmitContext& ctx, const IR::Value& binding, const IR::Value& offset, | 457 | void EmitStorageAtomicMaxF16x2(EmitContext& ctx, const IR::Value& binding, const IR::Value& offset, |
| 431 | std::string value); | 458 | std::string_view value); |
| 432 | void EmitStorageAtomicMaxF32x2(EmitContext& ctx, const IR::Value& binding, const IR::Value& offset, | 459 | void EmitStorageAtomicMaxF32x2(EmitContext& ctx, const IR::Value& binding, const IR::Value& offset, |
| 433 | std::string value); | 460 | std::string_view value); |
| 434 | void EmitGlobalAtomicIAdd32(EmitContext& ctx); | 461 | void EmitGlobalAtomicIAdd32(EmitContext& ctx); |
| 435 | void EmitGlobalAtomicSMin32(EmitContext& ctx); | 462 | void EmitGlobalAtomicSMin32(EmitContext& ctx); |
| 436 | void EmitGlobalAtomicUMin32(EmitContext& ctx); | 463 | void EmitGlobalAtomicUMin32(EmitContext& ctx); |
| @@ -460,58 +487,58 @@ void EmitGlobalAtomicMinF16x2(EmitContext& ctx); | |||
| 460 | void EmitGlobalAtomicMinF32x2(EmitContext& ctx); | 487 | void EmitGlobalAtomicMinF32x2(EmitContext& ctx); |
| 461 | void EmitGlobalAtomicMaxF16x2(EmitContext& ctx); | 488 | void EmitGlobalAtomicMaxF16x2(EmitContext& ctx); |
| 462 | void EmitGlobalAtomicMaxF32x2(EmitContext& ctx); | 489 | void EmitGlobalAtomicMaxF32x2(EmitContext& ctx); |
| 463 | void EmitLogicalOr(EmitContext& ctx, std::string a, std::string b); | 490 | void EmitLogicalOr(EmitContext& ctx, std::string_view a, std::string_view b); |
| 464 | void EmitLogicalAnd(EmitContext& ctx, std::string a, std::string b); | 491 | void EmitLogicalAnd(EmitContext& ctx, std::string_view a, std::string_view b); |
| 465 | void EmitLogicalXor(EmitContext& ctx, std::string a, std::string b); | 492 | void EmitLogicalXor(EmitContext& ctx, std::string_view a, std::string_view b); |
| 466 | void EmitLogicalNot(EmitContext& ctx, std::string value); | 493 | void EmitLogicalNot(EmitContext& ctx, std::string_view value); |
| 467 | void EmitConvertS16F16(EmitContext& ctx, std::string value); | 494 | void EmitConvertS16F16(EmitContext& ctx, std::string_view value); |
| 468 | void EmitConvertS16F32(EmitContext& ctx, std::string value); | 495 | void EmitConvertS16F32(EmitContext& ctx, std::string_view value); |
| 469 | void EmitConvertS16F64(EmitContext& ctx, std::string value); | 496 | void EmitConvertS16F64(EmitContext& ctx, std::string_view value); |
| 470 | void EmitConvertS32F16(EmitContext& ctx, std::string value); | 497 | void EmitConvertS32F16(EmitContext& ctx, std::string_view value); |
| 471 | void EmitConvertS32F32(EmitContext& ctx, std::string value); | 498 | void EmitConvertS32F32(EmitContext& ctx, std::string_view value); |
| 472 | void EmitConvertS32F64(EmitContext& ctx, std::string value); | 499 | void EmitConvertS32F64(EmitContext& ctx, std::string_view value); |
| 473 | void EmitConvertS64F16(EmitContext& ctx, std::string value); | 500 | void EmitConvertS64F16(EmitContext& ctx, std::string_view value); |
| 474 | void EmitConvertS64F32(EmitContext& ctx, std::string value); | 501 | void EmitConvertS64F32(EmitContext& ctx, std::string_view value); |
| 475 | void EmitConvertS64F64(EmitContext& ctx, std::string value); | 502 | void EmitConvertS64F64(EmitContext& ctx, std::string_view value); |
| 476 | void EmitConvertU16F16(EmitContext& ctx, std::string value); | 503 | void EmitConvertU16F16(EmitContext& ctx, std::string_view value); |
| 477 | void EmitConvertU16F32(EmitContext& ctx, std::string value); | 504 | void EmitConvertU16F32(EmitContext& ctx, std::string_view value); |
| 478 | void EmitConvertU16F64(EmitContext& ctx, std::string value); | 505 | void EmitConvertU16F64(EmitContext& ctx, std::string_view value); |
| 479 | void EmitConvertU32F16(EmitContext& ctx, std::string value); | 506 | void EmitConvertU32F16(EmitContext& ctx, std::string_view value); |
| 480 | void EmitConvertU32F32(EmitContext& ctx, std::string value); | 507 | void EmitConvertU32F32(EmitContext& ctx, std::string_view value); |
| 481 | void EmitConvertU32F64(EmitContext& ctx, std::string value); | 508 | void EmitConvertU32F64(EmitContext& ctx, std::string_view value); |
| 482 | void EmitConvertU64F16(EmitContext& ctx, std::string value); | 509 | void EmitConvertU64F16(EmitContext& ctx, std::string_view value); |
| 483 | void EmitConvertU64F32(EmitContext& ctx, std::string value); | 510 | void EmitConvertU64F32(EmitContext& ctx, std::string_view value); |
| 484 | void EmitConvertU64F64(EmitContext& ctx, std::string value); | 511 | void EmitConvertU64F64(EmitContext& ctx, std::string_view value); |
| 485 | void EmitConvertU64U32(EmitContext& ctx, std::string value); | 512 | void EmitConvertU64U32(EmitContext& ctx, std::string_view value); |
| 486 | void EmitConvertU32U64(EmitContext& ctx, std::string value); | 513 | void EmitConvertU32U64(EmitContext& ctx, std::string_view value); |
| 487 | void EmitConvertF16F32(EmitContext& ctx, std::string value); | 514 | void EmitConvertF16F32(EmitContext& ctx, std::string_view value); |
| 488 | void EmitConvertF32F16(EmitContext& ctx, std::string value); | 515 | void EmitConvertF32F16(EmitContext& ctx, std::string_view value); |
| 489 | void EmitConvertF32F64(EmitContext& ctx, std::string value); | 516 | void EmitConvertF32F64(EmitContext& ctx, std::string_view value); |
| 490 | void EmitConvertF64F32(EmitContext& ctx, std::string value); | 517 | void EmitConvertF64F32(EmitContext& ctx, std::string_view value); |
| 491 | void EmitConvertF16S8(EmitContext& ctx, std::string value); | 518 | void EmitConvertF16S8(EmitContext& ctx, std::string_view value); |
| 492 | void EmitConvertF16S16(EmitContext& ctx, std::string value); | 519 | void EmitConvertF16S16(EmitContext& ctx, std::string_view value); |
| 493 | void EmitConvertF16S32(EmitContext& ctx, std::string value); | 520 | void EmitConvertF16S32(EmitContext& ctx, std::string_view value); |
| 494 | void EmitConvertF16S64(EmitContext& ctx, std::string value); | 521 | void EmitConvertF16S64(EmitContext& ctx, std::string_view value); |
| 495 | void EmitConvertF16U8(EmitContext& ctx, std::string value); | 522 | void EmitConvertF16U8(EmitContext& ctx, std::string_view value); |
| 496 | void EmitConvertF16U16(EmitContext& ctx, std::string value); | 523 | void EmitConvertF16U16(EmitContext& ctx, std::string_view value); |
| 497 | void EmitConvertF16U32(EmitContext& ctx, std::string value); | 524 | void EmitConvertF16U32(EmitContext& ctx, std::string_view value); |
| 498 | void EmitConvertF16U64(EmitContext& ctx, std::string value); | 525 | void EmitConvertF16U64(EmitContext& ctx, std::string_view value); |
| 499 | void EmitConvertF32S8(EmitContext& ctx, std::string value); | 526 | void EmitConvertF32S8(EmitContext& ctx, std::string_view value); |
| 500 | void EmitConvertF32S16(EmitContext& ctx, std::string value); | 527 | void EmitConvertF32S16(EmitContext& ctx, std::string_view value); |
| 501 | void EmitConvertF32S32(EmitContext& ctx, std::string value); | 528 | void EmitConvertF32S32(EmitContext& ctx, std::string_view value); |
| 502 | void EmitConvertF32S64(EmitContext& ctx, std::string value); | 529 | void EmitConvertF32S64(EmitContext& ctx, std::string_view value); |
| 503 | void EmitConvertF32U8(EmitContext& ctx, std::string value); | 530 | void EmitConvertF32U8(EmitContext& ctx, std::string_view value); |
| 504 | void EmitConvertF32U16(EmitContext& ctx, std::string value); | 531 | void EmitConvertF32U16(EmitContext& ctx, std::string_view value); |
| 505 | void EmitConvertF32U32(EmitContext& ctx, std::string value); | 532 | void EmitConvertF32U32(EmitContext& ctx, std::string_view value); |
| 506 | void EmitConvertF32U64(EmitContext& ctx, std::string value); | 533 | void EmitConvertF32U64(EmitContext& ctx, std::string_view value); |
| 507 | void EmitConvertF64S8(EmitContext& ctx, std::string value); | 534 | void EmitConvertF64S8(EmitContext& ctx, std::string_view value); |
| 508 | void EmitConvertF64S16(EmitContext& ctx, std::string value); | 535 | void EmitConvertF64S16(EmitContext& ctx, std::string_view value); |
| 509 | void EmitConvertF64S32(EmitContext& ctx, std::string value); | 536 | void EmitConvertF64S32(EmitContext& ctx, std::string_view value); |
| 510 | void EmitConvertF64S64(EmitContext& ctx, std::string value); | 537 | void EmitConvertF64S64(EmitContext& ctx, std::string_view value); |
| 511 | void EmitConvertF64U8(EmitContext& ctx, std::string value); | 538 | void EmitConvertF64U8(EmitContext& ctx, std::string_view value); |
| 512 | void EmitConvertF64U16(EmitContext& ctx, std::string value); | 539 | void EmitConvertF64U16(EmitContext& ctx, std::string_view value); |
| 513 | void EmitConvertF64U32(EmitContext& ctx, std::string value); | 540 | void EmitConvertF64U32(EmitContext& ctx, std::string_view value); |
| 514 | void EmitConvertF64U64(EmitContext& ctx, std::string value); | 541 | void EmitConvertF64U64(EmitContext& ctx, std::string_view value); |
| 515 | void EmitBindlessImageSampleImplicitLod(EmitContext&); | 542 | void EmitBindlessImageSampleImplicitLod(EmitContext&); |
| 516 | void EmitBindlessImageSampleExplicitLod(EmitContext&); | 543 | void EmitBindlessImageSampleExplicitLod(EmitContext&); |
| 517 | void EmitBindlessImageSampleDrefImplicitLod(EmitContext&); | 544 | void EmitBindlessImageSampleDrefImplicitLod(EmitContext&); |
| @@ -537,31 +564,36 @@ void EmitBoundImageGradient(EmitContext&); | |||
| 537 | void EmitBoundImageRead(EmitContext&); | 564 | void EmitBoundImageRead(EmitContext&); |
| 538 | void EmitBoundImageWrite(EmitContext&); | 565 | void EmitBoundImageWrite(EmitContext&); |
| 539 | void EmitImageSampleImplicitLod(EmitContext& ctx, IR::Inst& inst, const IR::Value& index, | 566 | void EmitImageSampleImplicitLod(EmitContext& ctx, IR::Inst& inst, const IR::Value& index, |
| 540 | std::string coords, std::string bias_lc, const IR::Value& offset); | 567 | std::string_view coords, std::string_view bias_lc, |
| 568 | const IR::Value& offset); | ||
| 541 | void EmitImageSampleExplicitLod(EmitContext& ctx, IR::Inst& inst, const IR::Value& index, | 569 | void EmitImageSampleExplicitLod(EmitContext& ctx, IR::Inst& inst, const IR::Value& index, |
| 542 | std::string coords, std::string lod_lc, const IR::Value& offset); | 570 | std::string_view coords, std::string_view lod_lc, |
| 571 | const IR::Value& offset); | ||
| 543 | void EmitImageSampleDrefImplicitLod(EmitContext& ctx, IR::Inst& inst, const IR::Value& index, | 572 | void EmitImageSampleDrefImplicitLod(EmitContext& ctx, IR::Inst& inst, const IR::Value& index, |
| 544 | std::string coords, std::string dref, std::string bias_lc, | 573 | std::string_view coords, std::string_view dref, |
| 545 | const IR::Value& offset); | 574 | std::string_view bias_lc, const IR::Value& offset); |
| 546 | void EmitImageSampleDrefExplicitLod(EmitContext& ctx, IR::Inst& inst, const IR::Value& index, | 575 | void EmitImageSampleDrefExplicitLod(EmitContext& ctx, IR::Inst& inst, const IR::Value& index, |
| 547 | std::string coords, std::string dref, std::string lod_lc, | 576 | std::string_view coords, std::string_view dref, |
| 548 | const IR::Value& offset); | 577 | std::string_view lod_lc, const IR::Value& offset); |
| 549 | void EmitImageGather(EmitContext& ctx, IR::Inst& inst, const IR::Value& index, std::string coords, | 578 | void EmitImageGather(EmitContext& ctx, IR::Inst& inst, const IR::Value& index, |
| 550 | const IR::Value& offset, const IR::Value& offset2); | 579 | std::string_view coords, const IR::Value& offset, const IR::Value& offset2); |
| 551 | void EmitImageGatherDref(EmitContext& ctx, IR::Inst& inst, const IR::Value& index, | 580 | void EmitImageGatherDref(EmitContext& ctx, IR::Inst& inst, const IR::Value& index, |
| 552 | std::string coords, const IR::Value& offset, const IR::Value& offset2, | 581 | std::string_view coords, const IR::Value& offset, const IR::Value& offset2, |
| 553 | std::string dref); | 582 | std::string_view dref); |
| 554 | void EmitImageFetch(EmitContext& ctx, IR::Inst& inst, const IR::Value& index, std::string coords, | 583 | void EmitImageFetch(EmitContext& ctx, IR::Inst& inst, const IR::Value& index, |
| 555 | std::string offset, std::string lod, std::string ms); | 584 | std::string_view coords, std::string_view offset, std::string_view lod, |
| 585 | std::string_view ms); | ||
| 556 | void EmitImageQueryDimensions(EmitContext& ctx, IR::Inst& inst, const IR::Value& index, | 586 | void EmitImageQueryDimensions(EmitContext& ctx, IR::Inst& inst, const IR::Value& index, |
| 557 | std::string lod); | 587 | std::string_view lod); |
| 558 | void EmitImageQueryLod(EmitContext& ctx, IR::Inst& inst, const IR::Value& index, | 588 | void EmitImageQueryLod(EmitContext& ctx, IR::Inst& inst, const IR::Value& index, |
| 559 | std::string coords); | 589 | std::string_view coords); |
| 560 | void EmitImageGradient(EmitContext& ctx, IR::Inst& inst, const IR::Value& index, std::string coords, | 590 | void EmitImageGradient(EmitContext& ctx, IR::Inst& inst, const IR::Value& index, |
| 561 | std::string derivates, std::string offset, std::string lod_clamp); | 591 | std::string_view coords, std::string_view derivates, std::string_view offset, |
| 562 | void EmitImageRead(EmitContext& ctx, IR::Inst& inst, const IR::Value& index, std::string coords); | 592 | std::string_view lod_clamp); |
| 563 | void EmitImageWrite(EmitContext& ctx, IR::Inst& inst, const IR::Value& index, std::string coords, | 593 | void EmitImageRead(EmitContext& ctx, IR::Inst& inst, const IR::Value& index, |
| 564 | std::string color); | 594 | std::string_view coords); |
| 595 | void EmitImageWrite(EmitContext& ctx, IR::Inst& inst, const IR::Value& index, | ||
| 596 | std::string_view coords, std::string_view color); | ||
| 565 | void EmitBindlessImageAtomicIAdd32(EmitContext&); | 597 | void EmitBindlessImageAtomicIAdd32(EmitContext&); |
| 566 | void EmitBindlessImageAtomicSMin32(EmitContext&); | 598 | void EmitBindlessImageAtomicSMin32(EmitContext&); |
| 567 | void EmitBindlessImageAtomicUMin32(EmitContext&); | 599 | void EmitBindlessImageAtomicUMin32(EmitContext&); |
| @@ -585,49 +617,53 @@ void EmitBoundImageAtomicOr32(EmitContext&); | |||
| 585 | void EmitBoundImageAtomicXor32(EmitContext&); | 617 | void EmitBoundImageAtomicXor32(EmitContext&); |
| 586 | void EmitBoundImageAtomicExchange32(EmitContext&); | 618 | void EmitBoundImageAtomicExchange32(EmitContext&); |
| 587 | void EmitImageAtomicIAdd32(EmitContext& ctx, IR::Inst& inst, const IR::Value& index, | 619 | void EmitImageAtomicIAdd32(EmitContext& ctx, IR::Inst& inst, const IR::Value& index, |
| 588 | std::string coords, std::string value); | 620 | std::string_view coords, std::string_view value); |
| 589 | void EmitImageAtomicSMin32(EmitContext& ctx, IR::Inst& inst, const IR::Value& index, | 621 | void EmitImageAtomicSMin32(EmitContext& ctx, IR::Inst& inst, const IR::Value& index, |
| 590 | std::string coords, std::string value); | 622 | std::string_view coords, std::string_view value); |
| 591 | void EmitImageAtomicUMin32(EmitContext& ctx, IR::Inst& inst, const IR::Value& index, | 623 | void EmitImageAtomicUMin32(EmitContext& ctx, IR::Inst& inst, const IR::Value& index, |
| 592 | std::string coords, std::string value); | 624 | std::string_view coords, std::string_view value); |
| 593 | void EmitImageAtomicSMax32(EmitContext& ctx, IR::Inst& inst, const IR::Value& index, | 625 | void EmitImageAtomicSMax32(EmitContext& ctx, IR::Inst& inst, const IR::Value& index, |
| 594 | std::string coords, std::string value); | 626 | std::string_view coords, std::string_view value); |
| 595 | void EmitImageAtomicUMax32(EmitContext& ctx, IR::Inst& inst, const IR::Value& index, | 627 | void EmitImageAtomicUMax32(EmitContext& ctx, IR::Inst& inst, const IR::Value& index, |
| 596 | std::string coords, std::string value); | 628 | std::string_view coords, std::string_view value); |
| 597 | void EmitImageAtomicInc32(EmitContext& ctx, IR::Inst& inst, const IR::Value& index, | 629 | void EmitImageAtomicInc32(EmitContext& ctx, IR::Inst& inst, const IR::Value& index, |
| 598 | std::string coords, std::string value); | 630 | std::string_view coords, std::string_view value); |
| 599 | void EmitImageAtomicDec32(EmitContext& ctx, IR::Inst& inst, const IR::Value& index, | 631 | void EmitImageAtomicDec32(EmitContext& ctx, IR::Inst& inst, const IR::Value& index, |
| 600 | std::string coords, std::string value); | 632 | std::string_view coords, std::string_view value); |
| 601 | void EmitImageAtomicAnd32(EmitContext& ctx, IR::Inst& inst, const IR::Value& index, | 633 | void EmitImageAtomicAnd32(EmitContext& ctx, IR::Inst& inst, const IR::Value& index, |
| 602 | std::string coords, std::string value); | 634 | std::string_view coords, std::string_view value); |
| 603 | void EmitImageAtomicOr32(EmitContext& ctx, IR::Inst& inst, const IR::Value& index, | 635 | void EmitImageAtomicOr32(EmitContext& ctx, IR::Inst& inst, const IR::Value& index, |
| 604 | std::string coords, std::string value); | 636 | std::string_view coords, std::string_view value); |
| 605 | void EmitImageAtomicXor32(EmitContext& ctx, IR::Inst& inst, const IR::Value& index, | 637 | void EmitImageAtomicXor32(EmitContext& ctx, IR::Inst& inst, const IR::Value& index, |
| 606 | std::string coords, std::string value); | 638 | std::string_view coords, std::string_view value); |
| 607 | void EmitImageAtomicExchange32(EmitContext& ctx, IR::Inst& inst, const IR::Value& index, | 639 | void EmitImageAtomicExchange32(EmitContext& ctx, IR::Inst& inst, const IR::Value& index, |
| 608 | std::string coords, std::string value); | 640 | std::string_view coords, std::string_view value); |
| 609 | void EmitLaneId(EmitContext& ctx); | 641 | void EmitLaneId(EmitContext& ctx); |
| 610 | void EmitVoteAll(EmitContext& ctx, std::string pred); | 642 | void EmitVoteAll(EmitContext& ctx, std::string_view pred); |
| 611 | void EmitVoteAny(EmitContext& ctx, std::string pred); | 643 | void EmitVoteAny(EmitContext& ctx, std::string_view pred); |
| 612 | void EmitVoteEqual(EmitContext& ctx, std::string pred); | 644 | void EmitVoteEqual(EmitContext& ctx, std::string_view pred); |
| 613 | void EmitSubgroupBallot(EmitContext& ctx, std::string pred); | 645 | void EmitSubgroupBallot(EmitContext& ctx, std::string_view pred); |
| 614 | void EmitSubgroupEqMask(EmitContext& ctx); | 646 | void EmitSubgroupEqMask(EmitContext& ctx); |
| 615 | void EmitSubgroupLtMask(EmitContext& ctx); | 647 | void EmitSubgroupLtMask(EmitContext& ctx); |
| 616 | void EmitSubgroupLeMask(EmitContext& ctx); | 648 | void EmitSubgroupLeMask(EmitContext& ctx); |
| 617 | void EmitSubgroupGtMask(EmitContext& ctx); | 649 | void EmitSubgroupGtMask(EmitContext& ctx); |
| 618 | void EmitSubgroupGeMask(EmitContext& ctx); | 650 | void EmitSubgroupGeMask(EmitContext& ctx); |
| 619 | void EmitShuffleIndex(EmitContext& ctx, IR::Inst& inst, std::string value, std::string index, | 651 | void EmitShuffleIndex(EmitContext& ctx, IR::Inst& inst, std::string_view value, |
| 620 | std::string clamp, std::string segmentation_mask); | 652 | std::string_view index, std::string_view clamp, |
| 621 | void EmitShuffleUp(EmitContext& ctx, IR::Inst& inst, std::string value, std::string index, | 653 | std::string_view segmentation_mask); |
| 622 | std::string clamp, std::string segmentation_mask); | 654 | void EmitShuffleUp(EmitContext& ctx, IR::Inst& inst, std::string_view value, std::string_view index, |
| 623 | void EmitShuffleDown(EmitContext& ctx, IR::Inst& inst, std::string value, std::string index, | 655 | std::string_view clamp, std::string_view segmentation_mask); |
| 624 | std::string clamp, std::string segmentation_mask); | 656 | void EmitShuffleDown(EmitContext& ctx, IR::Inst& inst, std::string_view value, |
| 625 | void EmitShuffleButterfly(EmitContext& ctx, IR::Inst& inst, std::string value, std::string index, | 657 | std::string_view index, std::string_view clamp, |
| 626 | std::string clamp, std::string segmentation_mask); | 658 | std::string_view segmentation_mask); |
| 627 | void EmitFSwizzleAdd(EmitContext& ctx, std::string op_a, std::string op_b, std::string swizzle); | 659 | void EmitShuffleButterfly(EmitContext& ctx, IR::Inst& inst, std::string_view value, |
| 628 | void EmitDPdxFine(EmitContext& ctx, std::string op_a); | 660 | std::string_view index, std::string_view clamp, |
| 629 | void EmitDPdyFine(EmitContext& ctx, std::string op_a); | 661 | std::string_view segmentation_mask); |
| 630 | void EmitDPdxCoarse(EmitContext& ctx, std::string op_a); | 662 | void EmitFSwizzleAdd(EmitContext& ctx, std::string_view op_a, std::string_view op_b, |
| 631 | void EmitDPdyCoarse(EmitContext& ctx, std::string op_a); | 663 | std::string_view swizzle); |
| 664 | void EmitDPdxFine(EmitContext& ctx, std::string_view op_a); | ||
| 665 | void EmitDPdyFine(EmitContext& ctx, std::string_view op_a); | ||
| 666 | void EmitDPdxCoarse(EmitContext& ctx, std::string_view op_a); | ||
| 667 | void EmitDPdyCoarse(EmitContext& ctx, std::string_view op_a); | ||
| 632 | 668 | ||
| 633 | } // namespace Shader::Backend::GLSL | 669 | } // namespace Shader::Backend::GLSL |
diff --git a/src/shader_recompiler/backend/glsl/emit_glsl_integer.cpp b/src/shader_recompiler/backend/glsl/emit_glsl_integer.cpp index 0dadf1d93..a22313141 100644 --- a/src/shader_recompiler/backend/glsl/emit_glsl_integer.cpp +++ b/src/shader_recompiler/backend/glsl/emit_glsl_integer.cpp | |||
| @@ -12,221 +12,233 @@ | |||
| 12 | 12 | ||
| 13 | namespace Shader::Backend::GLSL { | 13 | namespace Shader::Backend::GLSL { |
| 14 | void EmitIAdd32([[maybe_unused]] EmitContext& ctx, [[maybe_unused]] IR::Inst& inst, | 14 | void EmitIAdd32([[maybe_unused]] EmitContext& ctx, [[maybe_unused]] IR::Inst& inst, |
| 15 | [[maybe_unused]] std::string a, [[maybe_unused]] std::string b) { | 15 | [[maybe_unused]] std::string_view a, [[maybe_unused]] std::string_view b) { |
| 16 | ctx.AddU32("{}={}+{};", inst, a, b); | 16 | ctx.AddU32("{}={}+{};", inst, a, b); |
| 17 | } | 17 | } |
| 18 | 18 | ||
| 19 | void EmitIAdd64([[maybe_unused]] EmitContext& ctx, [[maybe_unused]] IR::Inst& inst, | 19 | void EmitIAdd64([[maybe_unused]] EmitContext& ctx, [[maybe_unused]] IR::Inst& inst, |
| 20 | [[maybe_unused]] std::string a, [[maybe_unused]] std::string b) { | 20 | [[maybe_unused]] std::string_view a, [[maybe_unused]] std::string_view b) { |
| 21 | throw NotImplementedException("GLSL Instruction"); | 21 | throw NotImplementedException("GLSL Instruction"); |
| 22 | } | 22 | } |
| 23 | 23 | ||
| 24 | void EmitISub32([[maybe_unused]] EmitContext& ctx, [[maybe_unused]] IR::Inst& inst, | 24 | void EmitISub32([[maybe_unused]] EmitContext& ctx, [[maybe_unused]] IR::Inst& inst, |
| 25 | [[maybe_unused]] std::string a, [[maybe_unused]] std::string b) { | 25 | [[maybe_unused]] std::string_view a, [[maybe_unused]] std::string_view b) { |
| 26 | throw NotImplementedException("GLSL Instruction"); | 26 | throw NotImplementedException("GLSL Instruction"); |
| 27 | } | 27 | } |
| 28 | 28 | ||
| 29 | void EmitISub64([[maybe_unused]] EmitContext& ctx, [[maybe_unused]] IR::Inst& inst, | 29 | void EmitISub64([[maybe_unused]] EmitContext& ctx, [[maybe_unused]] IR::Inst& inst, |
| 30 | [[maybe_unused]] std::string a, [[maybe_unused]] std::string b) { | 30 | [[maybe_unused]] std::string_view a, [[maybe_unused]] std::string_view b) { |
| 31 | throw NotImplementedException("GLSL Instruction"); | 31 | throw NotImplementedException("GLSL Instruction"); |
| 32 | } | 32 | } |
| 33 | 33 | ||
| 34 | void EmitIMul32([[maybe_unused]] EmitContext& ctx, [[maybe_unused]] IR::Inst& inst, | 34 | void EmitIMul32([[maybe_unused]] EmitContext& ctx, [[maybe_unused]] IR::Inst& inst, |
| 35 | [[maybe_unused]] std::string a, [[maybe_unused]] std::string b) { | 35 | [[maybe_unused]] std::string_view a, [[maybe_unused]] std::string_view b) { |
| 36 | throw NotImplementedException("GLSL Instruction"); | 36 | throw NotImplementedException("GLSL Instruction"); |
| 37 | } | 37 | } |
| 38 | 38 | ||
| 39 | void EmitINeg32([[maybe_unused]] EmitContext& ctx, [[maybe_unused]] IR::Inst& inst, | 39 | void EmitINeg32([[maybe_unused]] EmitContext& ctx, [[maybe_unused]] IR::Inst& inst, |
| 40 | [[maybe_unused]] std::string value) { | 40 | [[maybe_unused]] std::string_view value) { |
| 41 | ctx.AddU32("{}=-{};", inst, value); | 41 | ctx.AddU32("{}=-{};", inst, value); |
| 42 | } | 42 | } |
| 43 | 43 | ||
| 44 | void EmitINeg64([[maybe_unused]] EmitContext& ctx, [[maybe_unused]] IR::Inst& inst, | 44 | void EmitINeg64([[maybe_unused]] EmitContext& ctx, [[maybe_unused]] IR::Inst& inst, |
| 45 | [[maybe_unused]] std::string value) { | 45 | [[maybe_unused]] std::string_view value) { |
| 46 | throw NotImplementedException("GLSL Instruction"); | 46 | throw NotImplementedException("GLSL Instruction"); |
| 47 | } | 47 | } |
| 48 | 48 | ||
| 49 | void EmitIAbs32([[maybe_unused]] EmitContext& ctx, [[maybe_unused]] IR::Inst& inst, | 49 | void EmitIAbs32([[maybe_unused]] EmitContext& ctx, [[maybe_unused]] IR::Inst& inst, |
| 50 | [[maybe_unused]] std::string value) { | 50 | [[maybe_unused]] std::string_view value) { |
| 51 | throw NotImplementedException("GLSL Instruction"); | 51 | throw NotImplementedException("GLSL Instruction"); |
| 52 | } | 52 | } |
| 53 | 53 | ||
| 54 | void EmitIAbs64([[maybe_unused]] EmitContext& ctx, [[maybe_unused]] IR::Inst& inst, | 54 | void EmitIAbs64([[maybe_unused]] EmitContext& ctx, [[maybe_unused]] IR::Inst& inst, |
| 55 | [[maybe_unused]] std::string value) { | 55 | [[maybe_unused]] std::string_view value) { |
| 56 | throw NotImplementedException("GLSL Instruction"); | 56 | throw NotImplementedException("GLSL Instruction"); |
| 57 | } | 57 | } |
| 58 | 58 | ||
| 59 | void EmitShiftLeftLogical32([[maybe_unused]] EmitContext& ctx, [[maybe_unused]] IR::Inst& inst, | 59 | void EmitShiftLeftLogical32([[maybe_unused]] EmitContext& ctx, [[maybe_unused]] IR::Inst& inst, |
| 60 | [[maybe_unused]] std::string base, [[maybe_unused]] std::string shift) { | 60 | [[maybe_unused]] std::string_view base, |
| 61 | [[maybe_unused]] std::string_view shift) { | ||
| 61 | throw NotImplementedException("GLSL Instruction"); | 62 | throw NotImplementedException("GLSL Instruction"); |
| 62 | } | 63 | } |
| 63 | 64 | ||
| 64 | void EmitShiftLeftLogical64([[maybe_unused]] EmitContext& ctx, [[maybe_unused]] IR::Inst& inst, | 65 | void EmitShiftLeftLogical64([[maybe_unused]] EmitContext& ctx, [[maybe_unused]] IR::Inst& inst, |
| 65 | [[maybe_unused]] std::string base, [[maybe_unused]] std::string shift) { | 66 | [[maybe_unused]] std::string_view base, |
| 67 | [[maybe_unused]] std::string_view shift) { | ||
| 66 | throw NotImplementedException("GLSL Instruction"); | 68 | throw NotImplementedException("GLSL Instruction"); |
| 67 | } | 69 | } |
| 68 | 70 | ||
| 69 | void EmitShiftRightLogical32([[maybe_unused]] EmitContext& ctx, [[maybe_unused]] IR::Inst& inst, | 71 | void EmitShiftRightLogical32([[maybe_unused]] EmitContext& ctx, [[maybe_unused]] IR::Inst& inst, |
| 70 | [[maybe_unused]] std::string base, | 72 | [[maybe_unused]] std::string_view base, |
| 71 | [[maybe_unused]] std::string shift) { | 73 | [[maybe_unused]] std::string_view shift) { |
| 72 | throw NotImplementedException("GLSL Instruction"); | 74 | throw NotImplementedException("GLSL Instruction"); |
| 73 | } | 75 | } |
| 74 | 76 | ||
| 75 | void EmitShiftRightLogical64([[maybe_unused]] EmitContext& ctx, [[maybe_unused]] IR::Inst& inst, | 77 | void EmitShiftRightLogical64([[maybe_unused]] EmitContext& ctx, [[maybe_unused]] IR::Inst& inst, |
| 76 | [[maybe_unused]] std::string base, | 78 | [[maybe_unused]] std::string_view base, |
| 77 | [[maybe_unused]] std::string shift) { | 79 | [[maybe_unused]] std::string_view shift) { |
| 78 | throw NotImplementedException("GLSL Instruction"); | 80 | throw NotImplementedException("GLSL Instruction"); |
| 79 | } | 81 | } |
| 80 | 82 | ||
| 81 | void EmitShiftRightArithmetic32([[maybe_unused]] EmitContext& ctx, [[maybe_unused]] IR::Inst& inst, | 83 | void EmitShiftRightArithmetic32([[maybe_unused]] EmitContext& ctx, [[maybe_unused]] IR::Inst& inst, |
| 82 | [[maybe_unused]] std::string base, | 84 | [[maybe_unused]] std::string_view base, |
| 83 | [[maybe_unused]] std::string shift) { | 85 | [[maybe_unused]] std::string_view shift) { |
| 84 | throw NotImplementedException("GLSL Instruction"); | 86 | throw NotImplementedException("GLSL Instruction"); |
| 85 | } | 87 | } |
| 86 | 88 | ||
| 87 | void EmitShiftRightArithmetic64([[maybe_unused]] EmitContext& ctx, [[maybe_unused]] IR::Inst& inst, | 89 | void EmitShiftRightArithmetic64([[maybe_unused]] EmitContext& ctx, [[maybe_unused]] IR::Inst& inst, |
| 88 | [[maybe_unused]] std::string base, | 90 | [[maybe_unused]] std::string_view base, |
| 89 | [[maybe_unused]] std::string shift) { | 91 | [[maybe_unused]] std::string_view shift) { |
| 90 | throw NotImplementedException("GLSL Instruction"); | 92 | throw NotImplementedException("GLSL Instruction"); |
| 91 | } | 93 | } |
| 92 | 94 | ||
| 93 | void EmitBitwiseAnd32([[maybe_unused]] EmitContext& ctx, [[maybe_unused]] IR::Inst& inst, | 95 | void EmitBitwiseAnd32([[maybe_unused]] EmitContext& ctx, [[maybe_unused]] IR::Inst& inst, |
| 94 | [[maybe_unused]] std::string a, [[maybe_unused]] std::string b) { | 96 | [[maybe_unused]] std::string_view a, [[maybe_unused]] std::string_view b) { |
| 95 | throw NotImplementedException("GLSL Instruction"); | 97 | throw NotImplementedException("GLSL Instruction"); |
| 96 | } | 98 | } |
| 97 | 99 | ||
| 98 | void EmitBitwiseOr32([[maybe_unused]] EmitContext& ctx, [[maybe_unused]] IR::Inst& inst, | 100 | void EmitBitwiseOr32([[maybe_unused]] EmitContext& ctx, [[maybe_unused]] IR::Inst& inst, |
| 99 | [[maybe_unused]] std::string a, [[maybe_unused]] std::string b) { | 101 | [[maybe_unused]] std::string_view a, [[maybe_unused]] std::string_view b) { |
| 100 | throw NotImplementedException("GLSL Instruction"); | 102 | throw NotImplementedException("GLSL Instruction"); |
| 101 | } | 103 | } |
| 102 | 104 | ||
| 103 | void EmitBitwiseXor32([[maybe_unused]] EmitContext& ctx, [[maybe_unused]] IR::Inst& inst, | 105 | void EmitBitwiseXor32([[maybe_unused]] EmitContext& ctx, [[maybe_unused]] IR::Inst& inst, |
| 104 | [[maybe_unused]] std::string a, [[maybe_unused]] std::string b) { | 106 | [[maybe_unused]] std::string_view a, [[maybe_unused]] std::string_view b) { |
| 105 | throw NotImplementedException("GLSL Instruction"); | 107 | throw NotImplementedException("GLSL Instruction"); |
| 106 | } | 108 | } |
| 107 | 109 | ||
| 108 | void EmitBitFieldInsert([[maybe_unused]] EmitContext& ctx, [[maybe_unused]] IR::Inst& inst, | 110 | void EmitBitFieldInsert([[maybe_unused]] EmitContext& ctx, [[maybe_unused]] IR::Inst& inst, |
| 109 | [[maybe_unused]] std::string base, [[maybe_unused]] std::string insert, | 111 | [[maybe_unused]] std::string_view base, |
| 110 | [[maybe_unused]] std::string offset, std::string count) { | 112 | [[maybe_unused]] std::string_view insert, |
| 113 | [[maybe_unused]] std::string_view offset, | ||
| 114 | [[maybe_unused]] std::string_view count) { | ||
| 111 | throw NotImplementedException("GLSL Instruction"); | 115 | throw NotImplementedException("GLSL Instruction"); |
| 112 | } | 116 | } |
| 113 | 117 | ||
| 114 | void EmitBitFieldSExtract([[maybe_unused]] EmitContext& ctx, [[maybe_unused]] IR::Inst& inst, | 118 | void EmitBitFieldSExtract([[maybe_unused]] EmitContext& ctx, [[maybe_unused]] IR::Inst& inst, |
| 115 | [[maybe_unused]] std::string base, [[maybe_unused]] std::string offset, | 119 | [[maybe_unused]] std::string_view base, |
| 116 | std::string count) { | 120 | [[maybe_unused]] std::string_view offset, |
| 121 | [[maybe_unused]] std::string_view count) { | ||
| 117 | throw NotImplementedException("GLSL Instruction"); | 122 | throw NotImplementedException("GLSL Instruction"); |
| 118 | } | 123 | } |
| 119 | 124 | ||
| 120 | void EmitBitFieldUExtract([[maybe_unused]] EmitContext& ctx, [[maybe_unused]] IR::Inst& inst, | 125 | void EmitBitFieldUExtract([[maybe_unused]] EmitContext& ctx, [[maybe_unused]] IR::Inst& inst, |
| 121 | [[maybe_unused]] std::string base, [[maybe_unused]] std::string offset, | 126 | [[maybe_unused]] std::string_view base, |
| 122 | std::string count) { | 127 | [[maybe_unused]] std::string_view offset, |
| 128 | [[maybe_unused]] std::string_view count) { | ||
| 123 | throw NotImplementedException("GLSL Instruction"); | 129 | throw NotImplementedException("GLSL Instruction"); |
| 124 | } | 130 | } |
| 125 | 131 | ||
| 126 | void EmitBitReverse32([[maybe_unused]] EmitContext& ctx, [[maybe_unused]] IR::Inst& inst, | 132 | void EmitBitReverse32([[maybe_unused]] EmitContext& ctx, [[maybe_unused]] IR::Inst& inst, |
| 127 | [[maybe_unused]] std::string value) { | 133 | [[maybe_unused]] std::string_view value) { |
| 128 | throw NotImplementedException("GLSL Instruction"); | 134 | throw NotImplementedException("GLSL Instruction"); |
| 129 | } | 135 | } |
| 130 | 136 | ||
| 131 | void EmitBitCount32([[maybe_unused]] EmitContext& ctx, [[maybe_unused]] IR::Inst& inst, | 137 | void EmitBitCount32([[maybe_unused]] EmitContext& ctx, [[maybe_unused]] IR::Inst& inst, |
| 132 | [[maybe_unused]] std::string value) { | 138 | [[maybe_unused]] std::string_view value) { |
| 133 | throw NotImplementedException("GLSL Instruction"); | 139 | throw NotImplementedException("GLSL Instruction"); |
| 134 | } | 140 | } |
| 135 | 141 | ||
| 136 | void EmitBitwiseNot32([[maybe_unused]] EmitContext& ctx, [[maybe_unused]] IR::Inst& inst, | 142 | void EmitBitwiseNot32([[maybe_unused]] EmitContext& ctx, [[maybe_unused]] IR::Inst& inst, |
| 137 | [[maybe_unused]] std::string value) { | 143 | [[maybe_unused]] std::string_view value) { |
| 138 | throw NotImplementedException("GLSL Instruction"); | 144 | throw NotImplementedException("GLSL Instruction"); |
| 139 | } | 145 | } |
| 140 | 146 | ||
| 141 | void EmitFindSMsb32([[maybe_unused]] EmitContext& ctx, [[maybe_unused]] IR::Inst& inst, | 147 | void EmitFindSMsb32([[maybe_unused]] EmitContext& ctx, [[maybe_unused]] IR::Inst& inst, |
| 142 | [[maybe_unused]] std::string value) { | 148 | [[maybe_unused]] std::string_view value) { |
| 143 | throw NotImplementedException("GLSL Instruction"); | 149 | throw NotImplementedException("GLSL Instruction"); |
| 144 | } | 150 | } |
| 145 | 151 | ||
| 146 | void EmitFindUMsb32([[maybe_unused]] EmitContext& ctx, [[maybe_unused]] IR::Inst& inst, | 152 | void EmitFindUMsb32([[maybe_unused]] EmitContext& ctx, [[maybe_unused]] IR::Inst& inst, |
| 147 | [[maybe_unused]] std::string value) { | 153 | [[maybe_unused]] std::string_view value) { |
| 148 | throw NotImplementedException("GLSL Instruction"); | 154 | throw NotImplementedException("GLSL Instruction"); |
| 149 | } | 155 | } |
| 150 | 156 | ||
| 151 | void EmitSMin32([[maybe_unused]] EmitContext& ctx, [[maybe_unused]] IR::Inst& inst, | 157 | void EmitSMin32([[maybe_unused]] EmitContext& ctx, [[maybe_unused]] IR::Inst& inst, |
| 152 | [[maybe_unused]] std::string a, [[maybe_unused]] std::string b) { | 158 | [[maybe_unused]] std::string_view a, [[maybe_unused]] std::string_view b) { |
| 153 | throw NotImplementedException("GLSL Instruction"); | 159 | throw NotImplementedException("GLSL Instruction"); |
| 154 | } | 160 | } |
| 155 | 161 | ||
| 156 | void EmitUMin32([[maybe_unused]] EmitContext& ctx, [[maybe_unused]] IR::Inst& inst, | 162 | void EmitUMin32([[maybe_unused]] EmitContext& ctx, [[maybe_unused]] IR::Inst& inst, |
| 157 | [[maybe_unused]] std::string a, [[maybe_unused]] std::string b) { | 163 | [[maybe_unused]] std::string_view a, [[maybe_unused]] std::string_view b) { |
| 158 | throw NotImplementedException("GLSL Instruction"); | 164 | throw NotImplementedException("GLSL Instruction"); |
| 159 | } | 165 | } |
| 160 | 166 | ||
| 161 | void EmitSMax32([[maybe_unused]] EmitContext& ctx, [[maybe_unused]] IR::Inst& inst, | 167 | void EmitSMax32([[maybe_unused]] EmitContext& ctx, [[maybe_unused]] IR::Inst& inst, |
| 162 | [[maybe_unused]] std::string a, [[maybe_unused]] std::string b) { | 168 | [[maybe_unused]] std::string_view a, [[maybe_unused]] std::string_view b) { |
| 163 | throw NotImplementedException("GLSL Instruction"); | 169 | throw NotImplementedException("GLSL Instruction"); |
| 164 | } | 170 | } |
| 165 | 171 | ||
| 166 | void EmitUMax32([[maybe_unused]] EmitContext& ctx, [[maybe_unused]] IR::Inst& inst, | 172 | void EmitUMax32([[maybe_unused]] EmitContext& ctx, [[maybe_unused]] IR::Inst& inst, |
| 167 | [[maybe_unused]] std::string a, [[maybe_unused]] std::string b) { | 173 | [[maybe_unused]] std::string_view a, [[maybe_unused]] std::string_view b) { |
| 168 | throw NotImplementedException("GLSL Instruction"); | 174 | throw NotImplementedException("GLSL Instruction"); |
| 169 | } | 175 | } |
| 170 | 176 | ||
| 171 | void EmitSClamp32([[maybe_unused]] EmitContext& ctx, [[maybe_unused]] IR::Inst& inst, | 177 | void EmitSClamp32([[maybe_unused]] EmitContext& ctx, [[maybe_unused]] IR::Inst& inst, |
| 172 | [[maybe_unused]] std::string value, [[maybe_unused]] std::string min, | 178 | [[maybe_unused]] std::string_view value, [[maybe_unused]] std::string_view min, |
| 173 | std::string max) { | 179 | [[maybe_unused]] std::string_view max) { |
| 174 | throw NotImplementedException("GLSL Instruction"); | 180 | throw NotImplementedException("GLSL Instruction"); |
| 175 | } | 181 | } |
| 176 | 182 | ||
| 177 | void EmitUClamp32([[maybe_unused]] EmitContext& ctx, [[maybe_unused]] IR::Inst& inst, | 183 | void EmitUClamp32([[maybe_unused]] EmitContext& ctx, [[maybe_unused]] IR::Inst& inst, |
| 178 | [[maybe_unused]] std::string value, [[maybe_unused]] std::string min, | 184 | [[maybe_unused]] std::string_view value, [[maybe_unused]] std::string_view min, |
| 179 | std::string max) { | 185 | [[maybe_unused]] std::string_view max) { |
| 180 | throw NotImplementedException("GLSL Instruction"); | 186 | throw NotImplementedException("GLSL Instruction"); |
| 181 | } | 187 | } |
| 182 | 188 | ||
| 183 | void EmitSLessThan([[maybe_unused]] EmitContext& ctx, [[maybe_unused]] IR::Inst& inst, | 189 | void EmitSLessThan([[maybe_unused]] EmitContext& ctx, [[maybe_unused]] IR::Inst& inst, |
| 184 | [[maybe_unused]] std::string lhs, [[maybe_unused]] std::string rhs) { | 190 | [[maybe_unused]] std::string_view lhs, [[maybe_unused]] std::string_view rhs) { |
| 185 | throw NotImplementedException("GLSL Instruction"); | 191 | throw NotImplementedException("GLSL Instruction"); |
| 186 | } | 192 | } |
| 187 | 193 | ||
| 188 | void EmitULessThan([[maybe_unused]] EmitContext& ctx, [[maybe_unused]] IR::Inst& inst, | 194 | void EmitULessThan([[maybe_unused]] EmitContext& ctx, [[maybe_unused]] IR::Inst& inst, |
| 189 | [[maybe_unused]] std::string lhs, [[maybe_unused]] std::string rhs) { | 195 | [[maybe_unused]] std::string_view lhs, [[maybe_unused]] std::string_view rhs) { |
| 190 | throw NotImplementedException("GLSL Instruction"); | 196 | throw NotImplementedException("GLSL Instruction"); |
| 191 | } | 197 | } |
| 192 | 198 | ||
| 193 | void EmitIEqual([[maybe_unused]] EmitContext& ctx, [[maybe_unused]] IR::Inst& inst, | 199 | void EmitIEqual([[maybe_unused]] EmitContext& ctx, [[maybe_unused]] IR::Inst& inst, |
| 194 | [[maybe_unused]] std::string lhs, [[maybe_unused]] std::string rhs) { | 200 | [[maybe_unused]] std::string_view lhs, [[maybe_unused]] std::string_view rhs) { |
| 195 | throw NotImplementedException("GLSL Instruction"); | 201 | throw NotImplementedException("GLSL Instruction"); |
| 196 | } | 202 | } |
| 197 | 203 | ||
| 198 | void EmitSLessThanEqual([[maybe_unused]] EmitContext& ctx, [[maybe_unused]] IR::Inst& inst, | 204 | void EmitSLessThanEqual([[maybe_unused]] EmitContext& ctx, [[maybe_unused]] IR::Inst& inst, |
| 199 | [[maybe_unused]] std::string lhs, [[maybe_unused]] std::string rhs) { | 205 | [[maybe_unused]] std::string_view lhs, |
| 206 | [[maybe_unused]] std::string_view rhs) { | ||
| 200 | throw NotImplementedException("GLSL Instruction"); | 207 | throw NotImplementedException("GLSL Instruction"); |
| 201 | } | 208 | } |
| 202 | 209 | ||
| 203 | void EmitULessThanEqual([[maybe_unused]] EmitContext& ctx, [[maybe_unused]] IR::Inst& inst, | 210 | void EmitULessThanEqual([[maybe_unused]] EmitContext& ctx, [[maybe_unused]] IR::Inst& inst, |
| 204 | [[maybe_unused]] std::string lhs, [[maybe_unused]] std::string rhs) { | 211 | [[maybe_unused]] std::string_view lhs, |
| 212 | [[maybe_unused]] std::string_view rhs) { | ||
| 205 | throw NotImplementedException("GLSL Instruction"); | 213 | throw NotImplementedException("GLSL Instruction"); |
| 206 | } | 214 | } |
| 207 | 215 | ||
| 208 | void EmitSGreaterThan([[maybe_unused]] EmitContext& ctx, [[maybe_unused]] IR::Inst& inst, | 216 | void EmitSGreaterThan([[maybe_unused]] EmitContext& ctx, [[maybe_unused]] IR::Inst& inst, |
| 209 | [[maybe_unused]] std::string lhs, [[maybe_unused]] std::string rhs) { | 217 | [[maybe_unused]] std::string_view lhs, |
| 218 | [[maybe_unused]] std::string_view rhs) { | ||
| 210 | throw NotImplementedException("GLSL Instruction"); | 219 | throw NotImplementedException("GLSL Instruction"); |
| 211 | } | 220 | } |
| 212 | 221 | ||
| 213 | void EmitUGreaterThan([[maybe_unused]] EmitContext& ctx, [[maybe_unused]] IR::Inst& inst, | 222 | void EmitUGreaterThan([[maybe_unused]] EmitContext& ctx, [[maybe_unused]] IR::Inst& inst, |
| 214 | [[maybe_unused]] std::string lhs, [[maybe_unused]] std::string rhs) { | 223 | [[maybe_unused]] std::string_view lhs, |
| 224 | [[maybe_unused]] std::string_view rhs) { | ||
| 215 | throw NotImplementedException("GLSL Instruction"); | 225 | throw NotImplementedException("GLSL Instruction"); |
| 216 | } | 226 | } |
| 217 | 227 | ||
| 218 | void EmitINotEqual([[maybe_unused]] EmitContext& ctx, [[maybe_unused]] IR::Inst& inst, | 228 | void EmitINotEqual([[maybe_unused]] EmitContext& ctx, [[maybe_unused]] IR::Inst& inst, |
| 219 | [[maybe_unused]] std::string lhs, [[maybe_unused]] std::string rhs) { | 229 | [[maybe_unused]] std::string_view lhs, [[maybe_unused]] std::string_view rhs) { |
| 220 | throw NotImplementedException("GLSL Instruction"); | 230 | throw NotImplementedException("GLSL Instruction"); |
| 221 | } | 231 | } |
| 222 | 232 | ||
| 223 | void EmitSGreaterThanEqual([[maybe_unused]] EmitContext& ctx, [[maybe_unused]] IR::Inst& inst, | 233 | void EmitSGreaterThanEqual([[maybe_unused]] EmitContext& ctx, [[maybe_unused]] IR::Inst& inst, |
| 224 | [[maybe_unused]] std::string lhs, [[maybe_unused]] std::string rhs) { | 234 | [[maybe_unused]] std::string_view lhs, |
| 235 | [[maybe_unused]] std::string_view rhs) { | ||
| 225 | throw NotImplementedException("GLSL Instruction"); | 236 | throw NotImplementedException("GLSL Instruction"); |
| 226 | } | 237 | } |
| 227 | 238 | ||
| 228 | void EmitUGreaterThanEqual([[maybe_unused]] EmitContext& ctx, [[maybe_unused]] IR::Inst& inst, | 239 | void EmitUGreaterThanEqual([[maybe_unused]] EmitContext& ctx, [[maybe_unused]] IR::Inst& inst, |
| 229 | [[maybe_unused]] std::string lhs, [[maybe_unused]] std::string rhs) { | 240 | [[maybe_unused]] std::string_view lhs, |
| 241 | [[maybe_unused]] std::string_view rhs) { | ||
| 230 | throw NotImplementedException("GLSL Instruction"); | 242 | throw NotImplementedException("GLSL Instruction"); |
| 231 | } | 243 | } |
| 232 | } // namespace Shader::Backend::GLSL | 244 | } // namespace Shader::Backend::GLSL |
diff --git a/src/shader_recompiler/backend/glsl/emit_glsl_memory.cpp b/src/shader_recompiler/backend/glsl/emit_glsl_memory.cpp index 8cdb9abfa..2344fd2a9 100644 --- a/src/shader_recompiler/backend/glsl/emit_glsl_memory.cpp +++ b/src/shader_recompiler/backend/glsl/emit_glsl_memory.cpp | |||
| @@ -51,49 +51,49 @@ void EmitLoadStorage128([[maybe_unused]] EmitContext& ctx, | |||
| 51 | void EmitWriteStorageU8([[maybe_unused]] EmitContext& ctx, | 51 | void EmitWriteStorageU8([[maybe_unused]] EmitContext& ctx, |
| 52 | [[maybe_unused]] const IR::Value& binding, | 52 | [[maybe_unused]] const IR::Value& binding, |
| 53 | [[maybe_unused]] const IR::Value& offset, | 53 | [[maybe_unused]] const IR::Value& offset, |
| 54 | [[maybe_unused]] std::string value) { | 54 | [[maybe_unused]] std::string_view value) { |
| 55 | throw NotImplementedException("GLSL Instrucion"); | 55 | throw NotImplementedException("GLSL Instrucion"); |
| 56 | } | 56 | } |
| 57 | 57 | ||
| 58 | void EmitWriteStorageS8([[maybe_unused]] EmitContext& ctx, | 58 | void EmitWriteStorageS8([[maybe_unused]] EmitContext& ctx, |
| 59 | [[maybe_unused]] const IR::Value& binding, | 59 | [[maybe_unused]] const IR::Value& binding, |
| 60 | [[maybe_unused]] const IR::Value& offset, | 60 | [[maybe_unused]] const IR::Value& offset, |
| 61 | [[maybe_unused]] std::string value) { | 61 | [[maybe_unused]] std::string_view value) { |
| 62 | throw NotImplementedException("GLSL Instrucion"); | 62 | throw NotImplementedException("GLSL Instrucion"); |
| 63 | } | 63 | } |
| 64 | 64 | ||
| 65 | void EmitWriteStorageU16([[maybe_unused]] EmitContext& ctx, | 65 | void EmitWriteStorageU16([[maybe_unused]] EmitContext& ctx, |
| 66 | [[maybe_unused]] const IR::Value& binding, | 66 | [[maybe_unused]] const IR::Value& binding, |
| 67 | [[maybe_unused]] const IR::Value& offset, | 67 | [[maybe_unused]] const IR::Value& offset, |
| 68 | [[maybe_unused]] std::string value) { | 68 | [[maybe_unused]] std::string_view value) { |
| 69 | throw NotImplementedException("GLSL Instrucion"); | 69 | throw NotImplementedException("GLSL Instrucion"); |
| 70 | } | 70 | } |
| 71 | 71 | ||
| 72 | void EmitWriteStorageS16([[maybe_unused]] EmitContext& ctx, | 72 | void EmitWriteStorageS16([[maybe_unused]] EmitContext& ctx, |
| 73 | [[maybe_unused]] const IR::Value& binding, | 73 | [[maybe_unused]] const IR::Value& binding, |
| 74 | [[maybe_unused]] const IR::Value& offset, | 74 | [[maybe_unused]] const IR::Value& offset, |
| 75 | [[maybe_unused]] std::string value) { | 75 | [[maybe_unused]] std::string_view value) { |
| 76 | throw NotImplementedException("GLSL Instrucion"); | 76 | throw NotImplementedException("GLSL Instrucion"); |
| 77 | } | 77 | } |
| 78 | 78 | ||
| 79 | void EmitWriteStorage32([[maybe_unused]] EmitContext& ctx, | 79 | void EmitWriteStorage32([[maybe_unused]] EmitContext& ctx, |
| 80 | [[maybe_unused]] const IR::Value& binding, | 80 | [[maybe_unused]] const IR::Value& binding, |
| 81 | [[maybe_unused]] const IR::Value& offset, | 81 | [[maybe_unused]] const IR::Value& offset, |
| 82 | [[maybe_unused]] std::string value) { | 82 | [[maybe_unused]] std::string_view value) { |
| 83 | ctx.Add("buff{}[{}]={};", binding.U32(), offset.U32(), value); | 83 | ctx.Add("buff{}[{}]={};", binding.U32(), offset.U32(), value); |
| 84 | } | 84 | } |
| 85 | 85 | ||
| 86 | void EmitWriteStorage64([[maybe_unused]] EmitContext& ctx, | 86 | void EmitWriteStorage64([[maybe_unused]] EmitContext& ctx, |
| 87 | [[maybe_unused]] const IR::Value& binding, | 87 | [[maybe_unused]] const IR::Value& binding, |
| 88 | [[maybe_unused]] const IR::Value& offset, | 88 | [[maybe_unused]] const IR::Value& offset, |
| 89 | [[maybe_unused]] std::string value) { | 89 | [[maybe_unused]] std::string_view value) { |
| 90 | throw NotImplementedException("GLSL Instrucion"); | 90 | throw NotImplementedException("GLSL Instrucion"); |
| 91 | } | 91 | } |
| 92 | 92 | ||
| 93 | void EmitWriteStorage128([[maybe_unused]] EmitContext& ctx, | 93 | void EmitWriteStorage128([[maybe_unused]] EmitContext& ctx, |
| 94 | [[maybe_unused]] const IR::Value& binding, | 94 | [[maybe_unused]] const IR::Value& binding, |
| 95 | [[maybe_unused]] const IR::Value& offset, | 95 | [[maybe_unused]] const IR::Value& offset, |
| 96 | [[maybe_unused]] std::string value) { | 96 | [[maybe_unused]] std::string_view value) { |
| 97 | throw NotImplementedException("GLSL Instrucion"); | 97 | throw NotImplementedException("GLSL Instrucion"); |
| 98 | } | 98 | } |
| 99 | } // namespace Shader::Backend::GLSL | 99 | } // namespace Shader::Backend::GLSL |
diff --git a/src/shader_recompiler/backend/glsl/emit_glsl_not_implemented.cpp b/src/shader_recompiler/backend/glsl/emit_glsl_not_implemented.cpp index 0775d5c84..ff2b30eee 100644 --- a/src/shader_recompiler/backend/glsl/emit_glsl_not_implemented.cpp +++ b/src/shader_recompiler/backend/glsl/emit_glsl_not_implemented.cpp | |||
| @@ -39,20 +39,21 @@ void EmitPhiMove(EmitContext& ctx, const IR::Value& phi, const IR::Value& value) | |||
| 39 | NotImplemented(); | 39 | NotImplemented(); |
| 40 | } | 40 | } |
| 41 | 41 | ||
| 42 | void EmitBranch(EmitContext& ctx, std::string label) { | 42 | void EmitBranch(EmitContext& ctx, std::string_view label) { |
| 43 | NotImplemented(); | 43 | NotImplemented(); |
| 44 | } | 44 | } |
| 45 | 45 | ||
| 46 | void EmitBranchConditional(EmitContext& ctx, std::string condition, std::string true_label, | 46 | void EmitBranchConditional(EmitContext& ctx, std::string_view condition, |
| 47 | std::string false_label) { | 47 | std::string_view true_label, std::string_view false_label) { |
| 48 | NotImplemented(); | 48 | NotImplemented(); |
| 49 | } | 49 | } |
| 50 | 50 | ||
| 51 | void EmitLoopMerge(EmitContext& ctx, std::string merge_label, std::string continue_label) { | 51 | void EmitLoopMerge(EmitContext& ctx, std::string_view merge_label, |
| 52 | std::string_view continue_label) { | ||
| 52 | NotImplemented(); | 53 | NotImplemented(); |
| 53 | } | 54 | } |
| 54 | 55 | ||
| 55 | void EmitSelectionMerge(EmitContext& ctx, std::string merge_label) { | 56 | void EmitSelectionMerge(EmitContext& ctx, std::string_view merge_label) { |
| 56 | NotImplemented(); | 57 | NotImplemented(); |
| 57 | } | 58 | } |
| 58 | 59 | ||
| @@ -68,7 +69,7 @@ void EmitUnreachable(EmitContext& ctx) { | |||
| 68 | NotImplemented(); | 69 | NotImplemented(); |
| 69 | } | 70 | } |
| 70 | 71 | ||
| 71 | void EmitDemoteToHelperInvocation(EmitContext& ctx, std::string continue_label) { | 72 | void EmitDemoteToHelperInvocation(EmitContext& ctx, std::string_view continue_label) { |
| 72 | NotImplemented(); | 73 | NotImplemented(); |
| 73 | } | 74 | } |
| 74 | 75 | ||
| @@ -132,20 +133,21 @@ void EmitGetIndirectBranchVariable(EmitContext& ctx) { | |||
| 132 | NotImplemented(); | 133 | NotImplemented(); |
| 133 | } | 134 | } |
| 134 | 135 | ||
| 135 | void EmitGetAttribute(EmitContext& ctx, IR::Attribute attr, std::string vertex) { | 136 | void EmitGetAttribute(EmitContext& ctx, IR::Attribute attr, std::string_view vertex) { |
| 136 | NotImplemented(); | 137 | NotImplemented(); |
| 137 | } | 138 | } |
| 138 | 139 | ||
| 139 | void EmitSetAttribute(EmitContext& ctx, IR::Attribute attr, std::string value, std::string vertex) { | 140 | void EmitSetAttribute(EmitContext& ctx, IR::Attribute attr, std::string_view value, |
| 141 | std::string_view vertex) { | ||
| 140 | NotImplemented(); | 142 | NotImplemented(); |
| 141 | } | 143 | } |
| 142 | 144 | ||
| 143 | void EmitGetAttributeIndexed(EmitContext& ctx, std::string offset, std::string vertex) { | 145 | void EmitGetAttributeIndexed(EmitContext& ctx, std::string_view offset, std::string_view vertex) { |
| 144 | NotImplemented(); | 146 | NotImplemented(); |
| 145 | } | 147 | } |
| 146 | 148 | ||
| 147 | void EmitSetAttributeIndexed(EmitContext& ctx, std::string offset, std::string value, | 149 | void EmitSetAttributeIndexed(EmitContext& ctx, std::string_view offset, std::string_view value, |
| 148 | std::string vertex) { | 150 | std::string_view vertex) { |
| 149 | NotImplemented(); | 151 | NotImplemented(); |
| 150 | } | 152 | } |
| 151 | 153 | ||
| @@ -153,19 +155,19 @@ void EmitGetPatch(EmitContext& ctx, IR::Patch patch) { | |||
| 153 | NotImplemented(); | 155 | NotImplemented(); |
| 154 | } | 156 | } |
| 155 | 157 | ||
| 156 | void EmitSetPatch(EmitContext& ctx, IR::Patch patch, std::string value) { | 158 | void EmitSetPatch(EmitContext& ctx, IR::Patch patch, std::string_view value) { |
| 157 | NotImplemented(); | 159 | NotImplemented(); |
| 158 | } | 160 | } |
| 159 | 161 | ||
| 160 | void EmitSetFragColor(EmitContext& ctx, u32 index, u32 component, std::string value) { | 162 | void EmitSetFragColor(EmitContext& ctx, u32 index, u32 component, std::string_view value) { |
| 161 | NotImplemented(); | 163 | NotImplemented(); |
| 162 | } | 164 | } |
| 163 | 165 | ||
| 164 | void EmitSetSampleMask(EmitContext& ctx, std::string value) { | 166 | void EmitSetSampleMask(EmitContext& ctx, std::string_view value) { |
| 165 | NotImplemented(); | 167 | NotImplemented(); |
| 166 | } | 168 | } |
| 167 | 169 | ||
| 168 | void EmitSetFragDepth(EmitContext& ctx, std::string value) { | 170 | void EmitSetFragDepth(EmitContext& ctx, std::string_view value) { |
| 169 | NotImplemented(); | 171 | NotImplemented(); |
| 170 | } | 172 | } |
| 171 | 173 | ||
| @@ -225,11 +227,11 @@ void EmitYDirection(EmitContext& ctx) { | |||
| 225 | NotImplemented(); | 227 | NotImplemented(); |
| 226 | } | 228 | } |
| 227 | 229 | ||
| 228 | void EmitLoadLocal(EmitContext& ctx, std::string word_offset) { | 230 | void EmitLoadLocal(EmitContext& ctx, std::string_view word_offset) { |
| 229 | NotImplemented(); | 231 | NotImplemented(); |
| 230 | } | 232 | } |
| 231 | 233 | ||
| 232 | void EmitWriteLocal(EmitContext& ctx, std::string word_offset, std::string value) { | 234 | void EmitWriteLocal(EmitContext& ctx, std::string_view word_offset, std::string_view value) { |
| 233 | NotImplemented(); | 235 | NotImplemented(); |
| 234 | } | 236 | } |
| 235 | 237 | ||
| @@ -269,15 +271,15 @@ void EmitLoadGlobalS16(EmitContext& ctx) { | |||
| 269 | NotImplemented(); | 271 | NotImplemented(); |
| 270 | } | 272 | } |
| 271 | 273 | ||
| 272 | void EmitLoadGlobal32(EmitContext& ctx, std::string address) { | 274 | void EmitLoadGlobal32(EmitContext& ctx, std::string_view address) { |
| 273 | NotImplemented(); | 275 | NotImplemented(); |
| 274 | } | 276 | } |
| 275 | 277 | ||
| 276 | void EmitLoadGlobal64(EmitContext& ctx, std::string address) { | 278 | void EmitLoadGlobal64(EmitContext& ctx, std::string_view address) { |
| 277 | NotImplemented(); | 279 | NotImplemented(); |
| 278 | } | 280 | } |
| 279 | 281 | ||
| 280 | void EmitLoadGlobal128(EmitContext& ctx, std::string address) { | 282 | void EmitLoadGlobal128(EmitContext& ctx, std::string_view address) { |
| 281 | NotImplemented(); | 283 | NotImplemented(); |
| 282 | } | 284 | } |
| 283 | 285 | ||
| @@ -297,182 +299,185 @@ void EmitWriteGlobalS16(EmitContext& ctx) { | |||
| 297 | NotImplemented(); | 299 | NotImplemented(); |
| 298 | } | 300 | } |
| 299 | 301 | ||
| 300 | void EmitWriteGlobal32(EmitContext& ctx, std::string address, std::string value) { | 302 | void EmitWriteGlobal32(EmitContext& ctx, std::string_view address, std::string_view value) { |
| 301 | NotImplemented(); | 303 | NotImplemented(); |
| 302 | } | 304 | } |
| 303 | 305 | ||
| 304 | void EmitWriteGlobal64(EmitContext& ctx, std::string address, std::string value) { | 306 | void EmitWriteGlobal64(EmitContext& ctx, std::string_view address, std::string_view value) { |
| 305 | NotImplemented(); | 307 | NotImplemented(); |
| 306 | } | 308 | } |
| 307 | 309 | ||
| 308 | void EmitWriteGlobal128(EmitContext& ctx, std::string address, std::string value) { | 310 | void EmitWriteGlobal128(EmitContext& ctx, std::string_view address, std::string_view value) { |
| 309 | NotImplemented(); | 311 | NotImplemented(); |
| 310 | } | 312 | } |
| 311 | 313 | ||
| 312 | void EmitLoadSharedU8(EmitContext& ctx, std::string offset) { | 314 | void EmitLoadSharedU8(EmitContext& ctx, std::string_view offset) { |
| 313 | NotImplemented(); | 315 | NotImplemented(); |
| 314 | } | 316 | } |
| 315 | 317 | ||
| 316 | void EmitLoadSharedS8(EmitContext& ctx, std::string offset) { | 318 | void EmitLoadSharedS8(EmitContext& ctx, std::string_view offset) { |
| 317 | NotImplemented(); | 319 | NotImplemented(); |
| 318 | } | 320 | } |
| 319 | 321 | ||
| 320 | void EmitLoadSharedU16(EmitContext& ctx, std::string offset) { | 322 | void EmitLoadSharedU16(EmitContext& ctx, std::string_view offset) { |
| 321 | NotImplemented(); | 323 | NotImplemented(); |
| 322 | } | 324 | } |
| 323 | 325 | ||
| 324 | void EmitLoadSharedS16(EmitContext& ctx, std::string offset) { | 326 | void EmitLoadSharedS16(EmitContext& ctx, std::string_view offset) { |
| 325 | NotImplemented(); | 327 | NotImplemented(); |
| 326 | } | 328 | } |
| 327 | 329 | ||
| 328 | void EmitLoadSharedU32(EmitContext& ctx, std::string offset) { | 330 | void EmitLoadSharedU32(EmitContext& ctx, std::string_view offset) { |
| 329 | NotImplemented(); | 331 | NotImplemented(); |
| 330 | } | 332 | } |
| 331 | 333 | ||
| 332 | void EmitLoadSharedU64(EmitContext& ctx, std::string offset) { | 334 | void EmitLoadSharedU64(EmitContext& ctx, std::string_view offset) { |
| 333 | NotImplemented(); | 335 | NotImplemented(); |
| 334 | } | 336 | } |
| 335 | 337 | ||
| 336 | void EmitLoadSharedU128(EmitContext& ctx, std::string offset) { | 338 | void EmitLoadSharedU128(EmitContext& ctx, std::string_view offset) { |
| 337 | NotImplemented(); | 339 | NotImplemented(); |
| 338 | } | 340 | } |
| 339 | 341 | ||
| 340 | void EmitWriteSharedU8(EmitContext& ctx, std::string offset, std::string value) { | 342 | void EmitWriteSharedU8(EmitContext& ctx, std::string_view offset, std::string_view value) { |
| 341 | NotImplemented(); | 343 | NotImplemented(); |
| 342 | } | 344 | } |
| 343 | 345 | ||
| 344 | void EmitWriteSharedU16(EmitContext& ctx, std::string offset, std::string value) { | 346 | void EmitWriteSharedU16(EmitContext& ctx, std::string_view offset, std::string_view value) { |
| 345 | NotImplemented(); | 347 | NotImplemented(); |
| 346 | } | 348 | } |
| 347 | 349 | ||
| 348 | void EmitWriteSharedU32(EmitContext& ctx, std::string offset, std::string value) { | 350 | void EmitWriteSharedU32(EmitContext& ctx, std::string_view offset, std::string_view value) { |
| 349 | NotImplemented(); | 351 | NotImplemented(); |
| 350 | } | 352 | } |
| 351 | 353 | ||
| 352 | void EmitWriteSharedU64(EmitContext& ctx, std::string offset, std::string value) { | 354 | void EmitWriteSharedU64(EmitContext& ctx, std::string_view offset, std::string_view value) { |
| 353 | NotImplemented(); | 355 | NotImplemented(); |
| 354 | } | 356 | } |
| 355 | 357 | ||
| 356 | void EmitWriteSharedU128(EmitContext& ctx, std::string offset, std::string value) { | 358 | void EmitWriteSharedU128(EmitContext& ctx, std::string_view offset, std::string_view value) { |
| 357 | NotImplemented(); | 359 | NotImplemented(); |
| 358 | } | 360 | } |
| 359 | 361 | ||
| 360 | void EmitCompositeConstructU32x2(EmitContext& ctx, std::string e1, std::string e2) { | 362 | void EmitCompositeConstructU32x2(EmitContext& ctx, std::string_view e1, std::string_view e2) { |
| 361 | NotImplemented(); | 363 | NotImplemented(); |
| 362 | } | 364 | } |
| 363 | 365 | ||
| 364 | void EmitCompositeConstructU32x3(EmitContext& ctx, std::string e1, std::string e2, std::string e3) { | 366 | void EmitCompositeConstructU32x3(EmitContext& ctx, std::string_view e1, std::string_view e2, |
| 367 | std::string_view e3) { | ||
| 365 | NotImplemented(); | 368 | NotImplemented(); |
| 366 | } | 369 | } |
| 367 | 370 | ||
| 368 | void EmitCompositeConstructU32x4(EmitContext& ctx, std::string e1, std::string e2, std::string e3, | 371 | void EmitCompositeConstructU32x4(EmitContext& ctx, std::string_view e1, std::string_view e2, |
| 369 | std::string e4) { | 372 | std::string_view e3, std::string_view e4) { |
| 370 | NotImplemented(); | 373 | NotImplemented(); |
| 371 | } | 374 | } |
| 372 | 375 | ||
| 373 | void EmitCompositeExtractU32x2(EmitContext& ctx, std::string composite, u32 index) { | 376 | void EmitCompositeExtractU32x2(EmitContext& ctx, std::string_view composite, u32 index) { |
| 374 | NotImplemented(); | 377 | NotImplemented(); |
| 375 | } | 378 | } |
| 376 | 379 | ||
| 377 | void EmitCompositeExtractU32x3(EmitContext& ctx, std::string composite, u32 index) { | 380 | void EmitCompositeExtractU32x3(EmitContext& ctx, std::string_view composite, u32 index) { |
| 378 | NotImplemented(); | 381 | NotImplemented(); |
| 379 | } | 382 | } |
| 380 | 383 | ||
| 381 | void EmitCompositeExtractU32x4(EmitContext& ctx, std::string composite, u32 index) { | 384 | void EmitCompositeExtractU32x4(EmitContext& ctx, std::string_view composite, u32 index) { |
| 382 | NotImplemented(); | 385 | NotImplemented(); |
| 383 | } | 386 | } |
| 384 | 387 | ||
| 385 | void EmitCompositeInsertU32x2(EmitContext& ctx, std::string composite, std::string object, | 388 | void EmitCompositeInsertU32x2(EmitContext& ctx, std::string_view composite, std::string_view object, |
| 386 | u32 index) { | 389 | u32 index) { |
| 387 | NotImplemented(); | 390 | NotImplemented(); |
| 388 | } | 391 | } |
| 389 | 392 | ||
| 390 | void EmitCompositeInsertU32x3(EmitContext& ctx, std::string composite, std::string object, | 393 | void EmitCompositeInsertU32x3(EmitContext& ctx, std::string_view composite, std::string_view object, |
| 391 | u32 index) { | 394 | u32 index) { |
| 392 | NotImplemented(); | 395 | NotImplemented(); |
| 393 | } | 396 | } |
| 394 | 397 | ||
| 395 | void EmitCompositeInsertU32x4(EmitContext& ctx, std::string composite, std::string object, | 398 | void EmitCompositeInsertU32x4(EmitContext& ctx, std::string_view composite, std::string_view object, |
| 396 | u32 index) { | 399 | u32 index) { |
| 397 | NotImplemented(); | 400 | NotImplemented(); |
| 398 | } | 401 | } |
| 399 | 402 | ||
| 400 | void EmitCompositeConstructF16x2(EmitContext& ctx, std::string e1, std::string e2) { | 403 | void EmitCompositeConstructF16x2(EmitContext& ctx, std::string_view e1, std::string_view e2) { |
| 401 | NotImplemented(); | 404 | NotImplemented(); |
| 402 | } | 405 | } |
| 403 | 406 | ||
| 404 | void EmitCompositeConstructF16x3(EmitContext& ctx, std::string e1, std::string e2, std::string e3) { | 407 | void EmitCompositeConstructF16x3(EmitContext& ctx, std::string_view e1, std::string_view e2, |
| 408 | std::string_view e3) { | ||
| 405 | NotImplemented(); | 409 | NotImplemented(); |
| 406 | } | 410 | } |
| 407 | 411 | ||
| 408 | void EmitCompositeConstructF16x4(EmitContext& ctx, std::string e1, std::string e2, std::string e3, | 412 | void EmitCompositeConstructF16x4(EmitContext& ctx, std::string_view e1, std::string_view e2, |
| 409 | std::string e4) { | 413 | std::string_view e3, std::string_view e4) { |
| 410 | NotImplemented(); | 414 | NotImplemented(); |
| 411 | } | 415 | } |
| 412 | 416 | ||
| 413 | void EmitCompositeExtractF16x2(EmitContext& ctx, std::string composite, u32 index) { | 417 | void EmitCompositeExtractF16x2(EmitContext& ctx, std::string_view composite, u32 index) { |
| 414 | NotImplemented(); | 418 | NotImplemented(); |
| 415 | } | 419 | } |
| 416 | 420 | ||
| 417 | void EmitCompositeExtractF16x3(EmitContext& ctx, std::string composite, u32 index) { | 421 | void EmitCompositeExtractF16x3(EmitContext& ctx, std::string_view composite, u32 index) { |
| 418 | NotImplemented(); | 422 | NotImplemented(); |
| 419 | } | 423 | } |
| 420 | 424 | ||
| 421 | void EmitCompositeExtractF16x4(EmitContext& ctx, std::string composite, u32 index) { | 425 | void EmitCompositeExtractF16x4(EmitContext& ctx, std::string_view composite, u32 index) { |
| 422 | NotImplemented(); | 426 | NotImplemented(); |
| 423 | } | 427 | } |
| 424 | 428 | ||
| 425 | void EmitCompositeInsertF16x2(EmitContext& ctx, std::string composite, std::string object, | 429 | void EmitCompositeInsertF16x2(EmitContext& ctx, std::string_view composite, std::string_view object, |
| 426 | u32 index) { | 430 | u32 index) { |
| 427 | NotImplemented(); | 431 | NotImplemented(); |
| 428 | } | 432 | } |
| 429 | 433 | ||
| 430 | void EmitCompositeInsertF16x3(EmitContext& ctx, std::string composite, std::string object, | 434 | void EmitCompositeInsertF16x3(EmitContext& ctx, std::string_view composite, std::string_view object, |
| 431 | u32 index) { | 435 | u32 index) { |
| 432 | NotImplemented(); | 436 | NotImplemented(); |
| 433 | } | 437 | } |
| 434 | 438 | ||
| 435 | void EmitCompositeInsertF16x4(EmitContext& ctx, std::string composite, std::string object, | 439 | void EmitCompositeInsertF16x4(EmitContext& ctx, std::string_view composite, std::string_view object, |
| 436 | u32 index) { | 440 | u32 index) { |
| 437 | NotImplemented(); | 441 | NotImplemented(); |
| 438 | } | 442 | } |
| 439 | 443 | ||
| 440 | void EmitCompositeConstructF32x2(EmitContext& ctx, std::string e1, std::string e2) { | 444 | void EmitCompositeConstructF32x2(EmitContext& ctx, std::string_view e1, std::string_view e2) { |
| 441 | NotImplemented(); | 445 | NotImplemented(); |
| 442 | } | 446 | } |
| 443 | 447 | ||
| 444 | void EmitCompositeConstructF32x3(EmitContext& ctx, std::string e1, std::string e2, std::string e3) { | 448 | void EmitCompositeConstructF32x3(EmitContext& ctx, std::string_view e1, std::string_view e2, |
| 449 | std::string_view e3) { | ||
| 445 | NotImplemented(); | 450 | NotImplemented(); |
| 446 | } | 451 | } |
| 447 | 452 | ||
| 448 | void EmitCompositeConstructF32x4(EmitContext& ctx, std::string e1, std::string e2, std::string e3, | 453 | void EmitCompositeConstructF32x4(EmitContext& ctx, std::string_view e1, std::string_view e2, |
| 449 | std::string e4) { | 454 | std::string_view e3, std::string_view e4) { |
| 450 | NotImplemented(); | 455 | NotImplemented(); |
| 451 | } | 456 | } |
| 452 | 457 | ||
| 453 | void EmitCompositeExtractF32x2(EmitContext& ctx, std::string composite, u32 index) { | 458 | void EmitCompositeExtractF32x2(EmitContext& ctx, std::string_view composite, u32 index) { |
| 454 | NotImplemented(); | 459 | NotImplemented(); |
| 455 | } | 460 | } |
| 456 | 461 | ||
| 457 | void EmitCompositeExtractF32x3(EmitContext& ctx, std::string composite, u32 index) { | 462 | void EmitCompositeExtractF32x3(EmitContext& ctx, std::string_view composite, u32 index) { |
| 458 | NotImplemented(); | 463 | NotImplemented(); |
| 459 | } | 464 | } |
| 460 | 465 | ||
| 461 | void EmitCompositeExtractF32x4(EmitContext& ctx, std::string composite, u32 index) { | 466 | void EmitCompositeExtractF32x4(EmitContext& ctx, std::string_view composite, u32 index) { |
| 462 | NotImplemented(); | 467 | NotImplemented(); |
| 463 | } | 468 | } |
| 464 | 469 | ||
| 465 | void EmitCompositeInsertF32x2(EmitContext& ctx, std::string composite, std::string object, | 470 | void EmitCompositeInsertF32x2(EmitContext& ctx, std::string_view composite, std::string_view object, |
| 466 | u32 index) { | 471 | u32 index) { |
| 467 | NotImplemented(); | 472 | NotImplemented(); |
| 468 | } | 473 | } |
| 469 | 474 | ||
| 470 | void EmitCompositeInsertF32x3(EmitContext& ctx, std::string composite, std::string object, | 475 | void EmitCompositeInsertF32x3(EmitContext& ctx, std::string_view composite, std::string_view object, |
| 471 | u32 index) { | 476 | u32 index) { |
| 472 | NotImplemented(); | 477 | NotImplemented(); |
| 473 | } | 478 | } |
| 474 | 479 | ||
| 475 | void EmitCompositeInsertF32x4(EmitContext& ctx, std::string composite, std::string object, | 480 | void EmitCompositeInsertF32x4(EmitContext& ctx, std::string_view composite, std::string_view object, |
| 476 | u32 index) { | 481 | u32 index) { |
| 477 | NotImplemented(); | 482 | NotImplemented(); |
| 478 | } | 483 | } |
| @@ -501,58 +506,58 @@ void EmitCompositeExtractF64x4(EmitContext& ctx) { | |||
| 501 | NotImplemented(); | 506 | NotImplemented(); |
| 502 | } | 507 | } |
| 503 | 508 | ||
| 504 | void EmitCompositeInsertF64x2(EmitContext& ctx, std::string composite, std::string object, | 509 | void EmitCompositeInsertF64x2(EmitContext& ctx, std::string_view composite, std::string_view object, |
| 505 | u32 index) { | 510 | u32 index) { |
| 506 | NotImplemented(); | 511 | NotImplemented(); |
| 507 | } | 512 | } |
| 508 | 513 | ||
| 509 | void EmitCompositeInsertF64x3(EmitContext& ctx, std::string composite, std::string object, | 514 | void EmitCompositeInsertF64x3(EmitContext& ctx, std::string_view composite, std::string_view object, |
| 510 | u32 index) { | 515 | u32 index) { |
| 511 | NotImplemented(); | 516 | NotImplemented(); |
| 512 | } | 517 | } |
| 513 | 518 | ||
| 514 | void EmitCompositeInsertF64x4(EmitContext& ctx, std::string composite, std::string object, | 519 | void EmitCompositeInsertF64x4(EmitContext& ctx, std::string_view composite, std::string_view object, |
| 515 | u32 index) { | 520 | u32 index) { |
| 516 | NotImplemented(); | 521 | NotImplemented(); |
| 517 | } | 522 | } |
| 518 | 523 | ||
| 519 | void EmitSelectU1(EmitContext& ctx, std::string cond, std::string true_value, | 524 | void EmitSelectU1(EmitContext& ctx, std::string_view cond, std::string_view true_value, |
| 520 | std::string false_value) { | 525 | std::string_view false_value) { |
| 521 | NotImplemented(); | 526 | NotImplemented(); |
| 522 | } | 527 | } |
| 523 | 528 | ||
| 524 | void EmitSelectU8(EmitContext& ctx, std::string cond, std::string true_value, | 529 | void EmitSelectU8(EmitContext& ctx, std::string_view cond, std::string_view true_value, |
| 525 | std::string false_value) { | 530 | std::string_view false_value) { |
| 526 | NotImplemented(); | 531 | NotImplemented(); |
| 527 | } | 532 | } |
| 528 | 533 | ||
| 529 | void EmitSelectU16(EmitContext& ctx, std::string cond, std::string true_value, | 534 | void EmitSelectU16(EmitContext& ctx, std::string_view cond, std::string_view true_value, |
| 530 | std::string false_value) { | 535 | std::string_view false_value) { |
| 531 | NotImplemented(); | 536 | NotImplemented(); |
| 532 | } | 537 | } |
| 533 | 538 | ||
| 534 | void EmitSelectU32(EmitContext& ctx, std::string cond, std::string true_value, | 539 | void EmitSelectU32(EmitContext& ctx, std::string_view cond, std::string_view true_value, |
| 535 | std::string false_value) { | 540 | std::string_view false_value) { |
| 536 | NotImplemented(); | 541 | NotImplemented(); |
| 537 | } | 542 | } |
| 538 | 543 | ||
| 539 | void EmitSelectU64(EmitContext& ctx, std::string cond, std::string true_value, | 544 | void EmitSelectU64(EmitContext& ctx, std::string_view cond, std::string_view true_value, |
| 540 | std::string false_value) { | 545 | std::string_view false_value) { |
| 541 | NotImplemented(); | 546 | NotImplemented(); |
| 542 | } | 547 | } |
| 543 | 548 | ||
| 544 | void EmitSelectF16(EmitContext& ctx, std::string cond, std::string true_value, | 549 | void EmitSelectF16(EmitContext& ctx, std::string_view cond, std::string_view true_value, |
| 545 | std::string false_value) { | 550 | std::string_view false_value) { |
| 546 | NotImplemented(); | 551 | NotImplemented(); |
| 547 | } | 552 | } |
| 548 | 553 | ||
| 549 | void EmitSelectF32(EmitContext& ctx, std::string cond, std::string true_value, | 554 | void EmitSelectF32(EmitContext& ctx, std::string_view cond, std::string_view true_value, |
| 550 | std::string false_value) { | 555 | std::string_view false_value) { |
| 551 | NotImplemented(); | 556 | NotImplemented(); |
| 552 | } | 557 | } |
| 553 | 558 | ||
| 554 | void EmitSelectF64(EmitContext& ctx, std::string cond, std::string true_value, | 559 | void EmitSelectF64(EmitContext& ctx, std::string_view cond, std::string_view true_value, |
| 555 | std::string false_value) { | 560 | std::string_view false_value) { |
| 556 | NotImplemented(); | 561 | NotImplemented(); |
| 557 | } | 562 | } |
| 558 | 563 | ||
| @@ -560,7 +565,7 @@ void EmitBitCastU16F16(EmitContext& ctx) { | |||
| 560 | NotImplemented(); | 565 | NotImplemented(); |
| 561 | } | 566 | } |
| 562 | 567 | ||
| 563 | void EmitBitCastU32F32(EmitContext& ctx, std::string value) { | 568 | void EmitBitCastU32F32(EmitContext& ctx, std::string_view value) { |
| 564 | NotImplemented(); | 569 | NotImplemented(); |
| 565 | } | 570 | } |
| 566 | 571 | ||
| @@ -572,7 +577,7 @@ void EmitBitCastF16U16(EmitContext& ctx) { | |||
| 572 | NotImplemented(); | 577 | NotImplemented(); |
| 573 | } | 578 | } |
| 574 | 579 | ||
| 575 | void EmitBitCastF32U32(EmitContext& ctx, std::string value) { | 580 | void EmitBitCastF32U32(EmitContext& ctx, std::string_view value) { |
| 576 | NotImplemented(); | 581 | NotImplemented(); |
| 577 | } | 582 | } |
| 578 | 583 | ||
| @@ -580,35 +585,35 @@ void EmitBitCastF64U64(EmitContext& ctx) { | |||
| 580 | NotImplemented(); | 585 | NotImplemented(); |
| 581 | } | 586 | } |
| 582 | 587 | ||
| 583 | void EmitPackUint2x32(EmitContext& ctx, std::string value) { | 588 | void EmitPackUint2x32(EmitContext& ctx, std::string_view value) { |
| 584 | NotImplemented(); | 589 | NotImplemented(); |
| 585 | } | 590 | } |
| 586 | 591 | ||
| 587 | void EmitUnpackUint2x32(EmitContext& ctx, std::string value) { | 592 | void EmitUnpackUint2x32(EmitContext& ctx, std::string_view value) { |
| 588 | NotImplemented(); | 593 | NotImplemented(); |
| 589 | } | 594 | } |
| 590 | 595 | ||
| 591 | void EmitPackFloat2x16(EmitContext& ctx, std::string value) { | 596 | void EmitPackFloat2x16(EmitContext& ctx, std::string_view value) { |
| 592 | NotImplemented(); | 597 | NotImplemented(); |
| 593 | } | 598 | } |
| 594 | 599 | ||
| 595 | void EmitUnpackFloat2x16(EmitContext& ctx, std::string value) { | 600 | void EmitUnpackFloat2x16(EmitContext& ctx, std::string_view value) { |
| 596 | NotImplemented(); | 601 | NotImplemented(); |
| 597 | } | 602 | } |
| 598 | 603 | ||
| 599 | void EmitPackHalf2x16(EmitContext& ctx, std::string value) { | 604 | void EmitPackHalf2x16(EmitContext& ctx, std::string_view value) { |
| 600 | NotImplemented(); | 605 | NotImplemented(); |
| 601 | } | 606 | } |
| 602 | 607 | ||
| 603 | void EmitUnpackHalf2x16(EmitContext& ctx, std::string value) { | 608 | void EmitUnpackHalf2x16(EmitContext& ctx, std::string_view value) { |
| 604 | NotImplemented(); | 609 | NotImplemented(); |
| 605 | } | 610 | } |
| 606 | 611 | ||
| 607 | void EmitPackDouble2x32(EmitContext& ctx, std::string value) { | 612 | void EmitPackDouble2x32(EmitContext& ctx, std::string_view value) { |
| 608 | NotImplemented(); | 613 | NotImplemented(); |
| 609 | } | 614 | } |
| 610 | 615 | ||
| 611 | void EmitUnpackDouble2x32(EmitContext& ctx, std::string value) { | 616 | void EmitUnpackDouble2x32(EmitContext& ctx, std::string_view value) { |
| 612 | NotImplemented(); | 617 | NotImplemented(); |
| 613 | } | 618 | } |
| 614 | 619 | ||
| @@ -636,529 +641,544 @@ void EmitGetInBoundsFromOp(EmitContext& ctx) { | |||
| 636 | NotImplemented(); | 641 | NotImplemented(); |
| 637 | } | 642 | } |
| 638 | 643 | ||
| 639 | void EmitFPAbs16(EmitContext& ctx, std::string value) { | 644 | void EmitFPAbs16(EmitContext& ctx, std::string_view value) { |
| 640 | NotImplemented(); | 645 | NotImplemented(); |
| 641 | } | 646 | } |
| 642 | 647 | ||
| 643 | void EmitFPAbs32(EmitContext& ctx, std::string value) { | 648 | void EmitFPAbs32(EmitContext& ctx, std::string_view value) { |
| 644 | NotImplemented(); | 649 | NotImplemented(); |
| 645 | } | 650 | } |
| 646 | 651 | ||
| 647 | void EmitFPAbs64(EmitContext& ctx, std::string value) { | 652 | void EmitFPAbs64(EmitContext& ctx, std::string_view value) { |
| 648 | NotImplemented(); | 653 | NotImplemented(); |
| 649 | } | 654 | } |
| 650 | 655 | ||
| 651 | void EmitFPAdd16(EmitContext& ctx, IR::Inst& inst, std::string a, std::string b) { | 656 | void EmitFPAdd16(EmitContext& ctx, IR::Inst& inst, std::string_view a, std::string_view b) { |
| 652 | NotImplemented(); | 657 | NotImplemented(); |
| 653 | } | 658 | } |
| 654 | 659 | ||
| 655 | void EmitFPAdd32(EmitContext& ctx, IR::Inst& inst, std::string a, std::string b) { | 660 | void EmitFPAdd32(EmitContext& ctx, IR::Inst& inst, std::string_view a, std::string_view b) { |
| 656 | NotImplemented(); | 661 | NotImplemented(); |
| 657 | } | 662 | } |
| 658 | 663 | ||
| 659 | void EmitFPAdd64(EmitContext& ctx, IR::Inst& inst, std::string a, std::string b) { | 664 | void EmitFPAdd64(EmitContext& ctx, IR::Inst& inst, std::string_view a, std::string_view b) { |
| 660 | NotImplemented(); | 665 | NotImplemented(); |
| 661 | } | 666 | } |
| 662 | 667 | ||
| 663 | void EmitFPFma16(EmitContext& ctx, IR::Inst& inst, std::string a, std::string b, std::string c) { | 668 | void EmitFPFma16(EmitContext& ctx, IR::Inst& inst, std::string_view a, std::string_view b, |
| 669 | std::string_view c) { | ||
| 664 | NotImplemented(); | 670 | NotImplemented(); |
| 665 | } | 671 | } |
| 666 | 672 | ||
| 667 | void EmitFPFma32(EmitContext& ctx, IR::Inst& inst, std::string a, std::string b, std::string c) { | 673 | void EmitFPFma32(EmitContext& ctx, IR::Inst& inst, std::string_view a, std::string_view b, |
| 674 | std::string_view c) { | ||
| 668 | NotImplemented(); | 675 | NotImplemented(); |
| 669 | } | 676 | } |
| 670 | 677 | ||
| 671 | void EmitFPFma64(EmitContext& ctx, IR::Inst& inst, std::string a, std::string b, std::string c) { | 678 | void EmitFPFma64(EmitContext& ctx, IR::Inst& inst, std::string_view a, std::string_view b, |
| 679 | std::string_view c) { | ||
| 672 | NotImplemented(); | 680 | NotImplemented(); |
| 673 | } | 681 | } |
| 674 | 682 | ||
| 675 | void EmitFPMax32(EmitContext& ctx, std::string a, std::string b) { | 683 | void EmitFPMax32(EmitContext& ctx, std::string_view a, std::string_view b) { |
| 676 | NotImplemented(); | 684 | NotImplemented(); |
| 677 | } | 685 | } |
| 678 | 686 | ||
| 679 | void EmitFPMax64(EmitContext& ctx, std::string a, std::string b) { | 687 | void EmitFPMax64(EmitContext& ctx, std::string_view a, std::string_view b) { |
| 680 | NotImplemented(); | 688 | NotImplemented(); |
| 681 | } | 689 | } |
| 682 | 690 | ||
| 683 | void EmitFPMin32(EmitContext& ctx, std::string a, std::string b) { | 691 | void EmitFPMin32(EmitContext& ctx, std::string_view a, std::string_view b) { |
| 684 | NotImplemented(); | 692 | NotImplemented(); |
| 685 | } | 693 | } |
| 686 | 694 | ||
| 687 | void EmitFPMin64(EmitContext& ctx, std::string a, std::string b) { | 695 | void EmitFPMin64(EmitContext& ctx, std::string_view a, std::string_view b) { |
| 688 | NotImplemented(); | 696 | NotImplemented(); |
| 689 | } | 697 | } |
| 690 | 698 | ||
| 691 | void EmitFPMul16(EmitContext& ctx, IR::Inst& inst, std::string a, std::string b) { | 699 | void EmitFPMul16(EmitContext& ctx, IR::Inst& inst, std::string_view a, std::string_view b) { |
| 692 | NotImplemented(); | 700 | NotImplemented(); |
| 693 | } | 701 | } |
| 694 | 702 | ||
| 695 | void EmitFPMul32(EmitContext& ctx, IR::Inst& inst, std::string a, std::string b) { | 703 | void EmitFPMul32(EmitContext& ctx, IR::Inst& inst, std::string_view a, std::string_view b) { |
| 696 | NotImplemented(); | 704 | NotImplemented(); |
| 697 | } | 705 | } |
| 698 | 706 | ||
| 699 | void EmitFPMul64(EmitContext& ctx, IR::Inst& inst, std::string a, std::string b) { | 707 | void EmitFPMul64(EmitContext& ctx, IR::Inst& inst, std::string_view a, std::string_view b) { |
| 700 | NotImplemented(); | 708 | NotImplemented(); |
| 701 | } | 709 | } |
| 702 | 710 | ||
| 703 | void EmitFPNeg16(EmitContext& ctx, std::string value) { | 711 | void EmitFPNeg16(EmitContext& ctx, std::string_view value) { |
| 704 | NotImplemented(); | 712 | NotImplemented(); |
| 705 | } | 713 | } |
| 706 | 714 | ||
| 707 | void EmitFPNeg32(EmitContext& ctx, std::string value) { | 715 | void EmitFPNeg32(EmitContext& ctx, std::string_view value) { |
| 708 | NotImplemented(); | 716 | NotImplemented(); |
| 709 | } | 717 | } |
| 710 | 718 | ||
| 711 | void EmitFPNeg64(EmitContext& ctx, std::string value) { | 719 | void EmitFPNeg64(EmitContext& ctx, std::string_view value) { |
| 712 | NotImplemented(); | 720 | NotImplemented(); |
| 713 | } | 721 | } |
| 714 | 722 | ||
| 715 | void EmitFPSin(EmitContext& ctx, std::string value) { | 723 | void EmitFPSin(EmitContext& ctx, std::string_view value) { |
| 716 | NotImplemented(); | 724 | NotImplemented(); |
| 717 | } | 725 | } |
| 718 | 726 | ||
| 719 | void EmitFPCos(EmitContext& ctx, std::string value) { | 727 | void EmitFPCos(EmitContext& ctx, std::string_view value) { |
| 720 | NotImplemented(); | 728 | NotImplemented(); |
| 721 | } | 729 | } |
| 722 | 730 | ||
| 723 | void EmitFPExp2(EmitContext& ctx, std::string value) { | 731 | void EmitFPExp2(EmitContext& ctx, std::string_view value) { |
| 724 | NotImplemented(); | 732 | NotImplemented(); |
| 725 | } | 733 | } |
| 726 | 734 | ||
| 727 | void EmitFPLog2(EmitContext& ctx, std::string value) { | 735 | void EmitFPLog2(EmitContext& ctx, std::string_view value) { |
| 728 | NotImplemented(); | 736 | NotImplemented(); |
| 729 | } | 737 | } |
| 730 | 738 | ||
| 731 | void EmitFPRecip32(EmitContext& ctx, std::string value) { | 739 | void EmitFPRecip32(EmitContext& ctx, std::string_view value) { |
| 732 | NotImplemented(); | 740 | NotImplemented(); |
| 733 | } | 741 | } |
| 734 | 742 | ||
| 735 | void EmitFPRecip64(EmitContext& ctx, std::string value) { | 743 | void EmitFPRecip64(EmitContext& ctx, std::string_view value) { |
| 736 | NotImplemented(); | 744 | NotImplemented(); |
| 737 | } | 745 | } |
| 738 | 746 | ||
| 739 | void EmitFPRecipSqrt32(EmitContext& ctx, std::string value) { | 747 | void EmitFPRecipSqrt32(EmitContext& ctx, std::string_view value) { |
| 740 | NotImplemented(); | 748 | NotImplemented(); |
| 741 | } | 749 | } |
| 742 | 750 | ||
| 743 | void EmitFPRecipSqrt64(EmitContext& ctx, std::string value) { | 751 | void EmitFPRecipSqrt64(EmitContext& ctx, std::string_view value) { |
| 744 | NotImplemented(); | 752 | NotImplemented(); |
| 745 | } | 753 | } |
| 746 | 754 | ||
| 747 | void EmitFPSqrt(EmitContext& ctx, std::string value) { | 755 | void EmitFPSqrt(EmitContext& ctx, std::string_view value) { |
| 748 | NotImplemented(); | 756 | NotImplemented(); |
| 749 | } | 757 | } |
| 750 | 758 | ||
| 751 | void EmitFPSaturate16(EmitContext& ctx, std::string value) { | 759 | void EmitFPSaturate16(EmitContext& ctx, std::string_view value) { |
| 752 | NotImplemented(); | 760 | NotImplemented(); |
| 753 | } | 761 | } |
| 754 | 762 | ||
| 755 | void EmitFPSaturate32(EmitContext& ctx, std::string value) { | 763 | void EmitFPSaturate32(EmitContext& ctx, std::string_view value) { |
| 756 | NotImplemented(); | 764 | NotImplemented(); |
| 757 | } | 765 | } |
| 758 | 766 | ||
| 759 | void EmitFPSaturate64(EmitContext& ctx, std::string value) { | 767 | void EmitFPSaturate64(EmitContext& ctx, std::string_view value) { |
| 760 | NotImplemented(); | 768 | NotImplemented(); |
| 761 | } | 769 | } |
| 762 | 770 | ||
| 763 | void EmitFPClamp16(EmitContext& ctx, std::string value, std::string min_value, | 771 | void EmitFPClamp16(EmitContext& ctx, std::string_view value, std::string_view min_value, |
| 764 | std::string max_value) { | 772 | std::string_view max_value) { |
| 765 | NotImplemented(); | 773 | NotImplemented(); |
| 766 | } | 774 | } |
| 767 | 775 | ||
| 768 | void EmitFPClamp32(EmitContext& ctx, std::string value, std::string min_value, | 776 | void EmitFPClamp32(EmitContext& ctx, std::string_view value, std::string_view min_value, |
| 769 | std::string max_value) { | 777 | std::string_view max_value) { |
| 770 | NotImplemented(); | 778 | NotImplemented(); |
| 771 | } | 779 | } |
| 772 | 780 | ||
| 773 | void EmitFPClamp64(EmitContext& ctx, std::string value, std::string min_value, | 781 | void EmitFPClamp64(EmitContext& ctx, std::string_view value, std::string_view min_value, |
| 774 | std::string max_value) { | 782 | std::string_view max_value) { |
| 775 | NotImplemented(); | 783 | NotImplemented(); |
| 776 | } | 784 | } |
| 777 | 785 | ||
| 778 | void EmitFPRoundEven16(EmitContext& ctx, std::string value) { | 786 | void EmitFPRoundEven16(EmitContext& ctx, std::string_view value) { |
| 779 | NotImplemented(); | 787 | NotImplemented(); |
| 780 | } | 788 | } |
| 781 | 789 | ||
| 782 | void EmitFPRoundEven32(EmitContext& ctx, std::string value) { | 790 | void EmitFPRoundEven32(EmitContext& ctx, std::string_view value) { |
| 783 | NotImplemented(); | 791 | NotImplemented(); |
| 784 | } | 792 | } |
| 785 | 793 | ||
| 786 | void EmitFPRoundEven64(EmitContext& ctx, std::string value) { | 794 | void EmitFPRoundEven64(EmitContext& ctx, std::string_view value) { |
| 787 | NotImplemented(); | 795 | NotImplemented(); |
| 788 | } | 796 | } |
| 789 | 797 | ||
| 790 | void EmitFPFloor16(EmitContext& ctx, std::string value) { | 798 | void EmitFPFloor16(EmitContext& ctx, std::string_view value) { |
| 791 | NotImplemented(); | 799 | NotImplemented(); |
| 792 | } | 800 | } |
| 793 | 801 | ||
| 794 | void EmitFPFloor32(EmitContext& ctx, std::string value) { | 802 | void EmitFPFloor32(EmitContext& ctx, std::string_view value) { |
| 795 | NotImplemented(); | 803 | NotImplemented(); |
| 796 | } | 804 | } |
| 797 | 805 | ||
| 798 | void EmitFPFloor64(EmitContext& ctx, std::string value) { | 806 | void EmitFPFloor64(EmitContext& ctx, std::string_view value) { |
| 799 | NotImplemented(); | 807 | NotImplemented(); |
| 800 | } | 808 | } |
| 801 | 809 | ||
| 802 | void EmitFPCeil16(EmitContext& ctx, std::string value) { | 810 | void EmitFPCeil16(EmitContext& ctx, std::string_view value) { |
| 803 | NotImplemented(); | 811 | NotImplemented(); |
| 804 | } | 812 | } |
| 805 | 813 | ||
| 806 | void EmitFPCeil32(EmitContext& ctx, std::string value) { | 814 | void EmitFPCeil32(EmitContext& ctx, std::string_view value) { |
| 807 | NotImplemented(); | 815 | NotImplemented(); |
| 808 | } | 816 | } |
| 809 | 817 | ||
| 810 | void EmitFPCeil64(EmitContext& ctx, std::string value) { | 818 | void EmitFPCeil64(EmitContext& ctx, std::string_view value) { |
| 811 | NotImplemented(); | 819 | NotImplemented(); |
| 812 | } | 820 | } |
| 813 | 821 | ||
| 814 | void EmitFPTrunc16(EmitContext& ctx, std::string value) { | 822 | void EmitFPTrunc16(EmitContext& ctx, std::string_view value) { |
| 815 | NotImplemented(); | 823 | NotImplemented(); |
| 816 | } | 824 | } |
| 817 | 825 | ||
| 818 | void EmitFPTrunc32(EmitContext& ctx, std::string value) { | 826 | void EmitFPTrunc32(EmitContext& ctx, std::string_view value) { |
| 819 | NotImplemented(); | 827 | NotImplemented(); |
| 820 | } | 828 | } |
| 821 | 829 | ||
| 822 | void EmitFPTrunc64(EmitContext& ctx, std::string value) { | 830 | void EmitFPTrunc64(EmitContext& ctx, std::string_view value) { |
| 823 | NotImplemented(); | 831 | NotImplemented(); |
| 824 | } | 832 | } |
| 825 | 833 | ||
| 826 | void EmitFPOrdEqual16(EmitContext& ctx, std::string lhs, std::string rhs) { | 834 | void EmitFPOrdEqual16(EmitContext& ctx, std::string_view lhs, std::string_view rhs) { |
| 827 | NotImplemented(); | 835 | NotImplemented(); |
| 828 | } | 836 | } |
| 829 | 837 | ||
| 830 | void EmitFPOrdEqual32(EmitContext& ctx, std::string lhs, std::string rhs) { | 838 | void EmitFPOrdEqual32(EmitContext& ctx, std::string_view lhs, std::string_view rhs) { |
| 831 | NotImplemented(); | 839 | NotImplemented(); |
| 832 | } | 840 | } |
| 833 | 841 | ||
| 834 | void EmitFPOrdEqual64(EmitContext& ctx, std::string lhs, std::string rhs) { | 842 | void EmitFPOrdEqual64(EmitContext& ctx, std::string_view lhs, std::string_view rhs) { |
| 835 | NotImplemented(); | 843 | NotImplemented(); |
| 836 | } | 844 | } |
| 837 | 845 | ||
| 838 | void EmitFPUnordEqual16(EmitContext& ctx, std::string lhs, std::string rhs) { | 846 | void EmitFPUnordEqual16(EmitContext& ctx, std::string_view lhs, std::string_view rhs) { |
| 839 | NotImplemented(); | 847 | NotImplemented(); |
| 840 | } | 848 | } |
| 841 | 849 | ||
| 842 | void EmitFPUnordEqual32(EmitContext& ctx, std::string lhs, std::string rhs) { | 850 | void EmitFPUnordEqual32(EmitContext& ctx, std::string_view lhs, std::string_view rhs) { |
| 843 | NotImplemented(); | 851 | NotImplemented(); |
| 844 | } | 852 | } |
| 845 | 853 | ||
| 846 | void EmitFPUnordEqual64(EmitContext& ctx, std::string lhs, std::string rhs) { | 854 | void EmitFPUnordEqual64(EmitContext& ctx, std::string_view lhs, std::string_view rhs) { |
| 847 | NotImplemented(); | 855 | NotImplemented(); |
| 848 | } | 856 | } |
| 849 | 857 | ||
| 850 | void EmitFPOrdNotEqual16(EmitContext& ctx, std::string lhs, std::string rhs) { | 858 | void EmitFPOrdNotEqual16(EmitContext& ctx, std::string_view lhs, std::string_view rhs) { |
| 851 | NotImplemented(); | 859 | NotImplemented(); |
| 852 | } | 860 | } |
| 853 | 861 | ||
| 854 | void EmitFPOrdNotEqual32(EmitContext& ctx, std::string lhs, std::string rhs) { | 862 | void EmitFPOrdNotEqual32(EmitContext& ctx, std::string_view lhs, std::string_view rhs) { |
| 855 | NotImplemented(); | 863 | NotImplemented(); |
| 856 | } | 864 | } |
| 857 | 865 | ||
| 858 | void EmitFPOrdNotEqual64(EmitContext& ctx, std::string lhs, std::string rhs) { | 866 | void EmitFPOrdNotEqual64(EmitContext& ctx, std::string_view lhs, std::string_view rhs) { |
| 859 | NotImplemented(); | 867 | NotImplemented(); |
| 860 | } | 868 | } |
| 861 | 869 | ||
| 862 | void EmitFPUnordNotEqual16(EmitContext& ctx, std::string lhs, std::string rhs) { | 870 | void EmitFPUnordNotEqual16(EmitContext& ctx, std::string_view lhs, std::string_view rhs) { |
| 863 | NotImplemented(); | 871 | NotImplemented(); |
| 864 | } | 872 | } |
| 865 | 873 | ||
| 866 | void EmitFPUnordNotEqual32(EmitContext& ctx, std::string lhs, std::string rhs) { | 874 | void EmitFPUnordNotEqual32(EmitContext& ctx, std::string_view lhs, std::string_view rhs) { |
| 867 | NotImplemented(); | 875 | NotImplemented(); |
| 868 | } | 876 | } |
| 869 | 877 | ||
| 870 | void EmitFPUnordNotEqual64(EmitContext& ctx, std::string lhs, std::string rhs) { | 878 | void EmitFPUnordNotEqual64(EmitContext& ctx, std::string_view lhs, std::string_view rhs) { |
| 871 | NotImplemented(); | 879 | NotImplemented(); |
| 872 | } | 880 | } |
| 873 | 881 | ||
| 874 | void EmitFPOrdLessThan16(EmitContext& ctx, std::string lhs, std::string rhs) { | 882 | void EmitFPOrdLessThan16(EmitContext& ctx, std::string_view lhs, std::string_view rhs) { |
| 875 | NotImplemented(); | 883 | NotImplemented(); |
| 876 | } | 884 | } |
| 877 | 885 | ||
| 878 | void EmitFPOrdLessThan32(EmitContext& ctx, std::string lhs, std::string rhs) { | 886 | void EmitFPOrdLessThan32(EmitContext& ctx, std::string_view lhs, std::string_view rhs) { |
| 879 | NotImplemented(); | 887 | NotImplemented(); |
| 880 | } | 888 | } |
| 881 | 889 | ||
| 882 | void EmitFPOrdLessThan64(EmitContext& ctx, std::string lhs, std::string rhs) { | 890 | void EmitFPOrdLessThan64(EmitContext& ctx, std::string_view lhs, std::string_view rhs) { |
| 883 | NotImplemented(); | 891 | NotImplemented(); |
| 884 | } | 892 | } |
| 885 | 893 | ||
| 886 | void EmitFPUnordLessThan16(EmitContext& ctx, std::string lhs, std::string rhs) { | 894 | void EmitFPUnordLessThan16(EmitContext& ctx, std::string_view lhs, std::string_view rhs) { |
| 887 | NotImplemented(); | 895 | NotImplemented(); |
| 888 | } | 896 | } |
| 889 | 897 | ||
| 890 | void EmitFPUnordLessThan32(EmitContext& ctx, std::string lhs, std::string rhs) { | 898 | void EmitFPUnordLessThan32(EmitContext& ctx, std::string_view lhs, std::string_view rhs) { |
| 891 | NotImplemented(); | 899 | NotImplemented(); |
| 892 | } | 900 | } |
| 893 | 901 | ||
| 894 | void EmitFPUnordLessThan64(EmitContext& ctx, std::string lhs, std::string rhs) { | 902 | void EmitFPUnordLessThan64(EmitContext& ctx, std::string_view lhs, std::string_view rhs) { |
| 895 | NotImplemented(); | 903 | NotImplemented(); |
| 896 | } | 904 | } |
| 897 | 905 | ||
| 898 | void EmitFPOrdGreaterThan16(EmitContext& ctx, std::string lhs, std::string rhs) { | 906 | void EmitFPOrdGreaterThan16(EmitContext& ctx, std::string_view lhs, std::string_view rhs) { |
| 899 | NotImplemented(); | 907 | NotImplemented(); |
| 900 | } | 908 | } |
| 901 | 909 | ||
| 902 | void EmitFPOrdGreaterThan32(EmitContext& ctx, std::string lhs, std::string rhs) { | 910 | void EmitFPOrdGreaterThan32(EmitContext& ctx, std::string_view lhs, std::string_view rhs) { |
| 903 | NotImplemented(); | 911 | NotImplemented(); |
| 904 | } | 912 | } |
| 905 | 913 | ||
| 906 | void EmitFPOrdGreaterThan64(EmitContext& ctx, std::string lhs, std::string rhs) { | 914 | void EmitFPOrdGreaterThan64(EmitContext& ctx, std::string_view lhs, std::string_view rhs) { |
| 907 | NotImplemented(); | 915 | NotImplemented(); |
| 908 | } | 916 | } |
| 909 | 917 | ||
| 910 | void EmitFPUnordGreaterThan16(EmitContext& ctx, std::string lhs, std::string rhs) { | 918 | void EmitFPUnordGreaterThan16(EmitContext& ctx, std::string_view lhs, std::string_view rhs) { |
| 911 | NotImplemented(); | 919 | NotImplemented(); |
| 912 | } | 920 | } |
| 913 | 921 | ||
| 914 | void EmitFPUnordGreaterThan32(EmitContext& ctx, std::string lhs, std::string rhs) { | 922 | void EmitFPUnordGreaterThan32(EmitContext& ctx, std::string_view lhs, std::string_view rhs) { |
| 915 | NotImplemented(); | 923 | NotImplemented(); |
| 916 | } | 924 | } |
| 917 | 925 | ||
| 918 | void EmitFPUnordGreaterThan64(EmitContext& ctx, std::string lhs, std::string rhs) { | 926 | void EmitFPUnordGreaterThan64(EmitContext& ctx, std::string_view lhs, std::string_view rhs) { |
| 919 | NotImplemented(); | 927 | NotImplemented(); |
| 920 | } | 928 | } |
| 921 | 929 | ||
| 922 | void EmitFPOrdLessThanEqual16(EmitContext& ctx, std::string lhs, std::string rhs) { | 930 | void EmitFPOrdLessThanEqual16(EmitContext& ctx, std::string_view lhs, std::string_view rhs) { |
| 923 | NotImplemented(); | 931 | NotImplemented(); |
| 924 | } | 932 | } |
| 925 | 933 | ||
| 926 | void EmitFPOrdLessThanEqual32(EmitContext& ctx, std::string lhs, std::string rhs) { | 934 | void EmitFPOrdLessThanEqual32(EmitContext& ctx, std::string_view lhs, std::string_view rhs) { |
| 927 | NotImplemented(); | 935 | NotImplemented(); |
| 928 | } | 936 | } |
| 929 | 937 | ||
| 930 | void EmitFPOrdLessThanEqual64(EmitContext& ctx, std::string lhs, std::string rhs) { | 938 | void EmitFPOrdLessThanEqual64(EmitContext& ctx, std::string_view lhs, std::string_view rhs) { |
| 931 | NotImplemented(); | 939 | NotImplemented(); |
| 932 | } | 940 | } |
| 933 | 941 | ||
| 934 | void EmitFPUnordLessThanEqual16(EmitContext& ctx, std::string lhs, std::string rhs) { | 942 | void EmitFPUnordLessThanEqual16(EmitContext& ctx, std::string_view lhs, std::string_view rhs) { |
| 935 | NotImplemented(); | 943 | NotImplemented(); |
| 936 | } | 944 | } |
| 937 | 945 | ||
| 938 | void EmitFPUnordLessThanEqual32(EmitContext& ctx, std::string lhs, std::string rhs) { | 946 | void EmitFPUnordLessThanEqual32(EmitContext& ctx, std::string_view lhs, std::string_view rhs) { |
| 939 | NotImplemented(); | 947 | NotImplemented(); |
| 940 | } | 948 | } |
| 941 | 949 | ||
| 942 | void EmitFPUnordLessThanEqual64(EmitContext& ctx, std::string lhs, std::string rhs) { | 950 | void EmitFPUnordLessThanEqual64(EmitContext& ctx, std::string_view lhs, std::string_view rhs) { |
| 943 | NotImplemented(); | 951 | NotImplemented(); |
| 944 | } | 952 | } |
| 945 | 953 | ||
| 946 | void EmitFPOrdGreaterThanEqual16(EmitContext& ctx, std::string lhs, std::string rhs) { | 954 | void EmitFPOrdGreaterThanEqual16(EmitContext& ctx, std::string_view lhs, std::string_view rhs) { |
| 947 | NotImplemented(); | 955 | NotImplemented(); |
| 948 | } | 956 | } |
| 949 | 957 | ||
| 950 | void EmitFPOrdGreaterThanEqual32(EmitContext& ctx, std::string lhs, std::string rhs) { | 958 | void EmitFPOrdGreaterThanEqual32(EmitContext& ctx, std::string_view lhs, std::string_view rhs) { |
| 951 | NotImplemented(); | 959 | NotImplemented(); |
| 952 | } | 960 | } |
| 953 | 961 | ||
| 954 | void EmitFPOrdGreaterThanEqual64(EmitContext& ctx, std::string lhs, std::string rhs) { | 962 | void EmitFPOrdGreaterThanEqual64(EmitContext& ctx, std::string_view lhs, std::string_view rhs) { |
| 955 | NotImplemented(); | 963 | NotImplemented(); |
| 956 | } | 964 | } |
| 957 | 965 | ||
| 958 | void EmitFPUnordGreaterThanEqual16(EmitContext& ctx, std::string lhs, std::string rhs) { | 966 | void EmitFPUnordGreaterThanEqual16(EmitContext& ctx, std::string_view lhs, std::string_view rhs) { |
| 959 | NotImplemented(); | 967 | NotImplemented(); |
| 960 | } | 968 | } |
| 961 | 969 | ||
| 962 | void EmitFPUnordGreaterThanEqual32(EmitContext& ctx, std::string lhs, std::string rhs) { | 970 | void EmitFPUnordGreaterThanEqual32(EmitContext& ctx, std::string_view lhs, std::string_view rhs) { |
| 963 | NotImplemented(); | 971 | NotImplemented(); |
| 964 | } | 972 | } |
| 965 | 973 | ||
| 966 | void EmitFPUnordGreaterThanEqual64(EmitContext& ctx, std::string lhs, std::string rhs) { | 974 | void EmitFPUnordGreaterThanEqual64(EmitContext& ctx, std::string_view lhs, std::string_view rhs) { |
| 967 | NotImplemented(); | 975 | NotImplemented(); |
| 968 | } | 976 | } |
| 969 | 977 | ||
| 970 | void EmitFPIsNan16(EmitContext& ctx, std::string value) { | 978 | void EmitFPIsNan16(EmitContext& ctx, std::string_view value) { |
| 971 | NotImplemented(); | 979 | NotImplemented(); |
| 972 | } | 980 | } |
| 973 | 981 | ||
| 974 | void EmitFPIsNan32(EmitContext& ctx, std::string value) { | 982 | void EmitFPIsNan32(EmitContext& ctx, std::string_view value) { |
| 975 | NotImplemented(); | 983 | NotImplemented(); |
| 976 | } | 984 | } |
| 977 | 985 | ||
| 978 | void EmitFPIsNan64(EmitContext& ctx, std::string value) { | 986 | void EmitFPIsNan64(EmitContext& ctx, std::string_view value) { |
| 979 | NotImplemented(); | 987 | NotImplemented(); |
| 980 | } | 988 | } |
| 981 | 989 | ||
| 982 | void EmitSharedAtomicIAdd32(EmitContext& ctx, std::string pointer_offset, std::string value) { | 990 | void EmitSharedAtomicIAdd32(EmitContext& ctx, std::string_view pointer_offset, |
| 991 | std::string_view value) { | ||
| 983 | NotImplemented(); | 992 | NotImplemented(); |
| 984 | } | 993 | } |
| 985 | 994 | ||
| 986 | void EmitSharedAtomicSMin32(EmitContext& ctx, std::string pointer_offset, std::string value) { | 995 | void EmitSharedAtomicSMin32(EmitContext& ctx, std::string_view pointer_offset, |
| 996 | std::string_view value) { | ||
| 987 | NotImplemented(); | 997 | NotImplemented(); |
| 988 | } | 998 | } |
| 989 | 999 | ||
| 990 | void EmitSharedAtomicUMin32(EmitContext& ctx, std::string pointer_offset, std::string value) { | 1000 | void EmitSharedAtomicUMin32(EmitContext& ctx, std::string_view pointer_offset, |
| 1001 | std::string_view value) { | ||
| 991 | NotImplemented(); | 1002 | NotImplemented(); |
| 992 | } | 1003 | } |
| 993 | 1004 | ||
| 994 | void EmitSharedAtomicSMax32(EmitContext& ctx, std::string pointer_offset, std::string value) { | 1005 | void EmitSharedAtomicSMax32(EmitContext& ctx, std::string_view pointer_offset, |
| 1006 | std::string_view value) { | ||
| 995 | NotImplemented(); | 1007 | NotImplemented(); |
| 996 | } | 1008 | } |
| 997 | 1009 | ||
| 998 | void EmitSharedAtomicUMax32(EmitContext& ctx, std::string pointer_offset, std::string value) { | 1010 | void EmitSharedAtomicUMax32(EmitContext& ctx, std::string_view pointer_offset, |
| 1011 | std::string_view value) { | ||
| 999 | NotImplemented(); | 1012 | NotImplemented(); |
| 1000 | } | 1013 | } |
| 1001 | 1014 | ||
| 1002 | void EmitSharedAtomicInc32(EmitContext& ctx, std::string pointer_offset, std::string value) { | 1015 | void EmitSharedAtomicInc32(EmitContext& ctx, std::string_view pointer_offset, |
| 1016 | std::string_view value) { | ||
| 1003 | NotImplemented(); | 1017 | NotImplemented(); |
| 1004 | } | 1018 | } |
| 1005 | 1019 | ||
| 1006 | void EmitSharedAtomicDec32(EmitContext& ctx, std::string pointer_offset, std::string value) { | 1020 | void EmitSharedAtomicDec32(EmitContext& ctx, std::string_view pointer_offset, |
| 1021 | std::string_view value) { | ||
| 1007 | NotImplemented(); | 1022 | NotImplemented(); |
| 1008 | } | 1023 | } |
| 1009 | 1024 | ||
| 1010 | void EmitSharedAtomicAnd32(EmitContext& ctx, std::string pointer_offset, std::string value) { | 1025 | void EmitSharedAtomicAnd32(EmitContext& ctx, std::string_view pointer_offset, |
| 1026 | std::string_view value) { | ||
| 1011 | NotImplemented(); | 1027 | NotImplemented(); |
| 1012 | } | 1028 | } |
| 1013 | 1029 | ||
| 1014 | void EmitSharedAtomicOr32(EmitContext& ctx, std::string pointer_offset, std::string value) { | 1030 | void EmitSharedAtomicOr32(EmitContext& ctx, std::string_view pointer_offset, |
| 1031 | std::string_view value) { | ||
| 1015 | NotImplemented(); | 1032 | NotImplemented(); |
| 1016 | } | 1033 | } |
| 1017 | 1034 | ||
| 1018 | void EmitSharedAtomicXor32(EmitContext& ctx, std::string pointer_offset, std::string value) { | 1035 | void EmitSharedAtomicXor32(EmitContext& ctx, std::string_view pointer_offset, |
| 1036 | std::string_view value) { | ||
| 1019 | NotImplemented(); | 1037 | NotImplemented(); |
| 1020 | } | 1038 | } |
| 1021 | 1039 | ||
| 1022 | void EmitSharedAtomicExchange32(EmitContext& ctx, std::string pointer_offset, std::string value) { | 1040 | void EmitSharedAtomicExchange32(EmitContext& ctx, std::string_view pointer_offset, |
| 1041 | std::string_view value) { | ||
| 1023 | NotImplemented(); | 1042 | NotImplemented(); |
| 1024 | } | 1043 | } |
| 1025 | 1044 | ||
| 1026 | void EmitSharedAtomicExchange64(EmitContext& ctx, std::string pointer_offset, std::string value) { | 1045 | void EmitSharedAtomicExchange64(EmitContext& ctx, std::string_view pointer_offset, |
| 1046 | std::string_view value) { | ||
| 1027 | NotImplemented(); | 1047 | NotImplemented(); |
| 1028 | } | 1048 | } |
| 1029 | 1049 | ||
| 1030 | void EmitStorageAtomicIAdd32(EmitContext& ctx, const IR::Value& binding, const IR::Value& offset, | 1050 | void EmitStorageAtomicIAdd32(EmitContext& ctx, const IR::Value& binding, const IR::Value& offset, |
| 1031 | std::string value) { | 1051 | std::string_view value) { |
| 1032 | NotImplemented(); | 1052 | NotImplemented(); |
| 1033 | } | 1053 | } |
| 1034 | 1054 | ||
| 1035 | void EmitStorageAtomicSMin32(EmitContext& ctx, const IR::Value& binding, const IR::Value& offset, | 1055 | void EmitStorageAtomicSMin32(EmitContext& ctx, const IR::Value& binding, const IR::Value& offset, |
| 1036 | std::string value) { | 1056 | std::string_view value) { |
| 1037 | NotImplemented(); | 1057 | NotImplemented(); |
| 1038 | } | 1058 | } |
| 1039 | 1059 | ||
| 1040 | void EmitStorageAtomicUMin32(EmitContext& ctx, const IR::Value& binding, const IR::Value& offset, | 1060 | void EmitStorageAtomicUMin32(EmitContext& ctx, const IR::Value& binding, const IR::Value& offset, |
| 1041 | std::string value) { | 1061 | std::string_view value) { |
| 1042 | NotImplemented(); | 1062 | NotImplemented(); |
| 1043 | } | 1063 | } |
| 1044 | 1064 | ||
| 1045 | void EmitStorageAtomicSMax32(EmitContext& ctx, const IR::Value& binding, const IR::Value& offset, | 1065 | void EmitStorageAtomicSMax32(EmitContext& ctx, const IR::Value& binding, const IR::Value& offset, |
| 1046 | std::string value) { | 1066 | std::string_view value) { |
| 1047 | NotImplemented(); | 1067 | NotImplemented(); |
| 1048 | } | 1068 | } |
| 1049 | 1069 | ||
| 1050 | void EmitStorageAtomicUMax32(EmitContext& ctx, const IR::Value& binding, const IR::Value& offset, | 1070 | void EmitStorageAtomicUMax32(EmitContext& ctx, const IR::Value& binding, const IR::Value& offset, |
| 1051 | std::string value) { | 1071 | std::string_view value) { |
| 1052 | NotImplemented(); | 1072 | NotImplemented(); |
| 1053 | } | 1073 | } |
| 1054 | 1074 | ||
| 1055 | void EmitStorageAtomicInc32(EmitContext& ctx, const IR::Value& binding, const IR::Value& offset, | 1075 | void EmitStorageAtomicInc32(EmitContext& ctx, const IR::Value& binding, const IR::Value& offset, |
| 1056 | std::string value) { | 1076 | std::string_view value) { |
| 1057 | NotImplemented(); | 1077 | NotImplemented(); |
| 1058 | } | 1078 | } |
| 1059 | 1079 | ||
| 1060 | void EmitStorageAtomicDec32(EmitContext& ctx, const IR::Value& binding, const IR::Value& offset, | 1080 | void EmitStorageAtomicDec32(EmitContext& ctx, const IR::Value& binding, const IR::Value& offset, |
| 1061 | std::string value) { | 1081 | std::string_view value) { |
| 1062 | NotImplemented(); | 1082 | NotImplemented(); |
| 1063 | } | 1083 | } |
| 1064 | 1084 | ||
| 1065 | void EmitStorageAtomicAnd32(EmitContext& ctx, const IR::Value& binding, const IR::Value& offset, | 1085 | void EmitStorageAtomicAnd32(EmitContext& ctx, const IR::Value& binding, const IR::Value& offset, |
| 1066 | std::string value) { | 1086 | std::string_view value) { |
| 1067 | NotImplemented(); | 1087 | NotImplemented(); |
| 1068 | } | 1088 | } |
| 1069 | 1089 | ||
| 1070 | void EmitStorageAtomicOr32(EmitContext& ctx, const IR::Value& binding, const IR::Value& offset, | 1090 | void EmitStorageAtomicOr32(EmitContext& ctx, const IR::Value& binding, const IR::Value& offset, |
| 1071 | std::string value) { | 1091 | std::string_view value) { |
| 1072 | NotImplemented(); | 1092 | NotImplemented(); |
| 1073 | } | 1093 | } |
| 1074 | 1094 | ||
| 1075 | void EmitStorageAtomicXor32(EmitContext& ctx, const IR::Value& binding, const IR::Value& offset, | 1095 | void EmitStorageAtomicXor32(EmitContext& ctx, const IR::Value& binding, const IR::Value& offset, |
| 1076 | std::string value) { | 1096 | std::string_view value) { |
| 1077 | NotImplemented(); | 1097 | NotImplemented(); |
| 1078 | } | 1098 | } |
| 1079 | 1099 | ||
| 1080 | void EmitStorageAtomicExchange32(EmitContext& ctx, const IR::Value& binding, | 1100 | void EmitStorageAtomicExchange32(EmitContext& ctx, const IR::Value& binding, |
| 1081 | const IR::Value& offset, std::string value) { | 1101 | const IR::Value& offset, std::string_view value) { |
| 1082 | NotImplemented(); | 1102 | NotImplemented(); |
| 1083 | } | 1103 | } |
| 1084 | 1104 | ||
| 1085 | void EmitStorageAtomicIAdd64(EmitContext& ctx, const IR::Value& binding, const IR::Value& offset, | 1105 | void EmitStorageAtomicIAdd64(EmitContext& ctx, const IR::Value& binding, const IR::Value& offset, |
| 1086 | std::string value) { | 1106 | std::string_view value) { |
| 1087 | NotImplemented(); | 1107 | NotImplemented(); |
| 1088 | } | 1108 | } |
| 1089 | 1109 | ||
| 1090 | void EmitStorageAtomicSMin64(EmitContext& ctx, const IR::Value& binding, const IR::Value& offset, | 1110 | void EmitStorageAtomicSMin64(EmitContext& ctx, const IR::Value& binding, const IR::Value& offset, |
| 1091 | std::string value) { | 1111 | std::string_view value) { |
| 1092 | NotImplemented(); | 1112 | NotImplemented(); |
| 1093 | } | 1113 | } |
| 1094 | 1114 | ||
| 1095 | void EmitStorageAtomicUMin64(EmitContext& ctx, const IR::Value& binding, const IR::Value& offset, | 1115 | void EmitStorageAtomicUMin64(EmitContext& ctx, const IR::Value& binding, const IR::Value& offset, |
| 1096 | std::string value) { | 1116 | std::string_view value) { |
| 1097 | NotImplemented(); | 1117 | NotImplemented(); |
| 1098 | } | 1118 | } |
| 1099 | 1119 | ||
| 1100 | void EmitStorageAtomicSMax64(EmitContext& ctx, const IR::Value& binding, const IR::Value& offset, | 1120 | void EmitStorageAtomicSMax64(EmitContext& ctx, const IR::Value& binding, const IR::Value& offset, |
| 1101 | std::string value) { | 1121 | std::string_view value) { |
| 1102 | NotImplemented(); | 1122 | NotImplemented(); |
| 1103 | } | 1123 | } |
| 1104 | 1124 | ||
| 1105 | void EmitStorageAtomicUMax64(EmitContext& ctx, const IR::Value& binding, const IR::Value& offset, | 1125 | void EmitStorageAtomicUMax64(EmitContext& ctx, const IR::Value& binding, const IR::Value& offset, |
| 1106 | std::string value) { | 1126 | std::string_view value) { |
| 1107 | NotImplemented(); | 1127 | NotImplemented(); |
| 1108 | } | 1128 | } |
| 1109 | 1129 | ||
| 1110 | void EmitStorageAtomicAnd64(EmitContext& ctx, const IR::Value& binding, const IR::Value& offset, | 1130 | void EmitStorageAtomicAnd64(EmitContext& ctx, const IR::Value& binding, const IR::Value& offset, |
| 1111 | std::string value) { | 1131 | std::string_view value) { |
| 1112 | NotImplemented(); | 1132 | NotImplemented(); |
| 1113 | } | 1133 | } |
| 1114 | 1134 | ||
| 1115 | void EmitStorageAtomicOr64(EmitContext& ctx, const IR::Value& binding, const IR::Value& offset, | 1135 | void EmitStorageAtomicOr64(EmitContext& ctx, const IR::Value& binding, const IR::Value& offset, |
| 1116 | std::string value) { | 1136 | std::string_view value) { |
| 1117 | NotImplemented(); | 1137 | NotImplemented(); |
| 1118 | } | 1138 | } |
| 1119 | 1139 | ||
| 1120 | void EmitStorageAtomicXor64(EmitContext& ctx, const IR::Value& binding, const IR::Value& offset, | 1140 | void EmitStorageAtomicXor64(EmitContext& ctx, const IR::Value& binding, const IR::Value& offset, |
| 1121 | std::string value) { | 1141 | std::string_view value) { |
| 1122 | NotImplemented(); | 1142 | NotImplemented(); |
| 1123 | } | 1143 | } |
| 1124 | 1144 | ||
| 1125 | void EmitStorageAtomicExchange64(EmitContext& ctx, const IR::Value& binding, | 1145 | void EmitStorageAtomicExchange64(EmitContext& ctx, const IR::Value& binding, |
| 1126 | const IR::Value& offset, std::string value) { | 1146 | const IR::Value& offset, std::string_view value) { |
| 1127 | NotImplemented(); | 1147 | NotImplemented(); |
| 1128 | } | 1148 | } |
| 1129 | 1149 | ||
| 1130 | void EmitStorageAtomicAddF32(EmitContext& ctx, const IR::Value& binding, const IR::Value& offset, | 1150 | void EmitStorageAtomicAddF32(EmitContext& ctx, const IR::Value& binding, const IR::Value& offset, |
| 1131 | std::string value) { | 1151 | std::string_view value) { |
| 1132 | NotImplemented(); | 1152 | NotImplemented(); |
| 1133 | } | 1153 | } |
| 1134 | 1154 | ||
| 1135 | void EmitStorageAtomicAddF16x2(EmitContext& ctx, const IR::Value& binding, const IR::Value& offset, | 1155 | void EmitStorageAtomicAddF16x2(EmitContext& ctx, const IR::Value& binding, const IR::Value& offset, |
| 1136 | std::string value) { | 1156 | std::string_view value) { |
| 1137 | NotImplemented(); | 1157 | NotImplemented(); |
| 1138 | } | 1158 | } |
| 1139 | 1159 | ||
| 1140 | void EmitStorageAtomicAddF32x2(EmitContext& ctx, const IR::Value& binding, const IR::Value& offset, | 1160 | void EmitStorageAtomicAddF32x2(EmitContext& ctx, const IR::Value& binding, const IR::Value& offset, |
| 1141 | std::string value) { | 1161 | std::string_view value) { |
| 1142 | NotImplemented(); | 1162 | NotImplemented(); |
| 1143 | } | 1163 | } |
| 1144 | 1164 | ||
| 1145 | void EmitStorageAtomicMinF16x2(EmitContext& ctx, const IR::Value& binding, const IR::Value& offset, | 1165 | void EmitStorageAtomicMinF16x2(EmitContext& ctx, const IR::Value& binding, const IR::Value& offset, |
| 1146 | std::string value) { | 1166 | std::string_view value) { |
| 1147 | NotImplemented(); | 1167 | NotImplemented(); |
| 1148 | } | 1168 | } |
| 1149 | 1169 | ||
| 1150 | void EmitStorageAtomicMinF32x2(EmitContext& ctx, const IR::Value& binding, const IR::Value& offset, | 1170 | void EmitStorageAtomicMinF32x2(EmitContext& ctx, const IR::Value& binding, const IR::Value& offset, |
| 1151 | std::string value) { | 1171 | std::string_view value) { |
| 1152 | NotImplemented(); | 1172 | NotImplemented(); |
| 1153 | } | 1173 | } |
| 1154 | 1174 | ||
| 1155 | void EmitStorageAtomicMaxF16x2(EmitContext& ctx, const IR::Value& binding, const IR::Value& offset, | 1175 | void EmitStorageAtomicMaxF16x2(EmitContext& ctx, const IR::Value& binding, const IR::Value& offset, |
| 1156 | std::string value) { | 1176 | std::string_view value) { |
| 1157 | NotImplemented(); | 1177 | NotImplemented(); |
| 1158 | } | 1178 | } |
| 1159 | 1179 | ||
| 1160 | void EmitStorageAtomicMaxF32x2(EmitContext& ctx, const IR::Value& binding, const IR::Value& offset, | 1180 | void EmitStorageAtomicMaxF32x2(EmitContext& ctx, const IR::Value& binding, const IR::Value& offset, |
| 1161 | std::string value) { | 1181 | std::string_view value) { |
| 1162 | NotImplemented(); | 1182 | NotImplemented(); |
| 1163 | } | 1183 | } |
| 1164 | 1184 | ||
| @@ -1278,211 +1298,211 @@ void EmitGlobalAtomicMaxF32x2(EmitContext& ctx) { | |||
| 1278 | NotImplemented(); | 1298 | NotImplemented(); |
| 1279 | } | 1299 | } |
| 1280 | 1300 | ||
| 1281 | void EmitLogicalOr(EmitContext& ctx, std::string a, std::string b) { | 1301 | void EmitLogicalOr(EmitContext& ctx, std::string_view a, std::string_view b) { |
| 1282 | NotImplemented(); | 1302 | NotImplemented(); |
| 1283 | } | 1303 | } |
| 1284 | 1304 | ||
| 1285 | void EmitLogicalAnd(EmitContext& ctx, std::string a, std::string b) { | 1305 | void EmitLogicalAnd(EmitContext& ctx, std::string_view a, std::string_view b) { |
| 1286 | NotImplemented(); | 1306 | NotImplemented(); |
| 1287 | } | 1307 | } |
| 1288 | 1308 | ||
| 1289 | void EmitLogicalXor(EmitContext& ctx, std::string a, std::string b) { | 1309 | void EmitLogicalXor(EmitContext& ctx, std::string_view a, std::string_view b) { |
| 1290 | NotImplemented(); | 1310 | NotImplemented(); |
| 1291 | } | 1311 | } |
| 1292 | 1312 | ||
| 1293 | void EmitLogicalNot(EmitContext& ctx, std::string value) { | 1313 | void EmitLogicalNot(EmitContext& ctx, std::string_view value) { |
| 1294 | NotImplemented(); | 1314 | NotImplemented(); |
| 1295 | } | 1315 | } |
| 1296 | 1316 | ||
| 1297 | void EmitConvertS16F16(EmitContext& ctx, std::string value) { | 1317 | void EmitConvertS16F16(EmitContext& ctx, std::string_view value) { |
| 1298 | NotImplemented(); | 1318 | NotImplemented(); |
| 1299 | } | 1319 | } |
| 1300 | 1320 | ||
| 1301 | void EmitConvertS16F32(EmitContext& ctx, std::string value) { | 1321 | void EmitConvertS16F32(EmitContext& ctx, std::string_view value) { |
| 1302 | NotImplemented(); | 1322 | NotImplemented(); |
| 1303 | } | 1323 | } |
| 1304 | 1324 | ||
| 1305 | void EmitConvertS16F64(EmitContext& ctx, std::string value) { | 1325 | void EmitConvertS16F64(EmitContext& ctx, std::string_view value) { |
| 1306 | NotImplemented(); | 1326 | NotImplemented(); |
| 1307 | } | 1327 | } |
| 1308 | 1328 | ||
| 1309 | void EmitConvertS32F16(EmitContext& ctx, std::string value) { | 1329 | void EmitConvertS32F16(EmitContext& ctx, std::string_view value) { |
| 1310 | NotImplemented(); | 1330 | NotImplemented(); |
| 1311 | } | 1331 | } |
| 1312 | 1332 | ||
| 1313 | void EmitConvertS32F32(EmitContext& ctx, std::string value) { | 1333 | void EmitConvertS32F32(EmitContext& ctx, std::string_view value) { |
| 1314 | NotImplemented(); | 1334 | NotImplemented(); |
| 1315 | } | 1335 | } |
| 1316 | 1336 | ||
| 1317 | void EmitConvertS32F64(EmitContext& ctx, std::string value) { | 1337 | void EmitConvertS32F64(EmitContext& ctx, std::string_view value) { |
| 1318 | NotImplemented(); | 1338 | NotImplemented(); |
| 1319 | } | 1339 | } |
| 1320 | 1340 | ||
| 1321 | void EmitConvertS64F16(EmitContext& ctx, std::string value) { | 1341 | void EmitConvertS64F16(EmitContext& ctx, std::string_view value) { |
| 1322 | NotImplemented(); | 1342 | NotImplemented(); |
| 1323 | } | 1343 | } |
| 1324 | 1344 | ||
| 1325 | void EmitConvertS64F32(EmitContext& ctx, std::string value) { | 1345 | void EmitConvertS64F32(EmitContext& ctx, std::string_view value) { |
| 1326 | NotImplemented(); | 1346 | NotImplemented(); |
| 1327 | } | 1347 | } |
| 1328 | 1348 | ||
| 1329 | void EmitConvertS64F64(EmitContext& ctx, std::string value) { | 1349 | void EmitConvertS64F64(EmitContext& ctx, std::string_view value) { |
| 1330 | NotImplemented(); | 1350 | NotImplemented(); |
| 1331 | } | 1351 | } |
| 1332 | 1352 | ||
| 1333 | void EmitConvertU16F16(EmitContext& ctx, std::string value) { | 1353 | void EmitConvertU16F16(EmitContext& ctx, std::string_view value) { |
| 1334 | NotImplemented(); | 1354 | NotImplemented(); |
| 1335 | } | 1355 | } |
| 1336 | 1356 | ||
| 1337 | void EmitConvertU16F32(EmitContext& ctx, std::string value) { | 1357 | void EmitConvertU16F32(EmitContext& ctx, std::string_view value) { |
| 1338 | NotImplemented(); | 1358 | NotImplemented(); |
| 1339 | } | 1359 | } |
| 1340 | 1360 | ||
| 1341 | void EmitConvertU16F64(EmitContext& ctx, std::string value) { | 1361 | void EmitConvertU16F64(EmitContext& ctx, std::string_view value) { |
| 1342 | NotImplemented(); | 1362 | NotImplemented(); |
| 1343 | } | 1363 | } |
| 1344 | 1364 | ||
| 1345 | void EmitConvertU32F16(EmitContext& ctx, std::string value) { | 1365 | void EmitConvertU32F16(EmitContext& ctx, std::string_view value) { |
| 1346 | NotImplemented(); | 1366 | NotImplemented(); |
| 1347 | } | 1367 | } |
| 1348 | 1368 | ||
| 1349 | void EmitConvertU32F32(EmitContext& ctx, std::string value) { | 1369 | void EmitConvertU32F32(EmitContext& ctx, std::string_view value) { |
| 1350 | NotImplemented(); | 1370 | NotImplemented(); |
| 1351 | } | 1371 | } |
| 1352 | 1372 | ||
| 1353 | void EmitConvertU32F64(EmitContext& ctx, std::string value) { | 1373 | void EmitConvertU32F64(EmitContext& ctx, std::string_view value) { |
| 1354 | NotImplemented(); | 1374 | NotImplemented(); |
| 1355 | } | 1375 | } |
| 1356 | 1376 | ||
| 1357 | void EmitConvertU64F16(EmitContext& ctx, std::string value) { | 1377 | void EmitConvertU64F16(EmitContext& ctx, std::string_view value) { |
| 1358 | NotImplemented(); | 1378 | NotImplemented(); |
| 1359 | } | 1379 | } |
| 1360 | 1380 | ||
| 1361 | void EmitConvertU64F32(EmitContext& ctx, std::string value) { | 1381 | void EmitConvertU64F32(EmitContext& ctx, std::string_view value) { |
| 1362 | NotImplemented(); | 1382 | NotImplemented(); |
| 1363 | } | 1383 | } |
| 1364 | 1384 | ||
| 1365 | void EmitConvertU64F64(EmitContext& ctx, std::string value) { | 1385 | void EmitConvertU64F64(EmitContext& ctx, std::string_view value) { |
| 1366 | NotImplemented(); | 1386 | NotImplemented(); |
| 1367 | } | 1387 | } |
| 1368 | 1388 | ||
| 1369 | void EmitConvertU64U32(EmitContext& ctx, std::string value) { | 1389 | void EmitConvertU64U32(EmitContext& ctx, std::string_view value) { |
| 1370 | NotImplemented(); | 1390 | NotImplemented(); |
| 1371 | } | 1391 | } |
| 1372 | 1392 | ||
| 1373 | void EmitConvertU32U64(EmitContext& ctx, std::string value) { | 1393 | void EmitConvertU32U64(EmitContext& ctx, std::string_view value) { |
| 1374 | NotImplemented(); | 1394 | NotImplemented(); |
| 1375 | } | 1395 | } |
| 1376 | 1396 | ||
| 1377 | void EmitConvertF16F32(EmitContext& ctx, std::string value) { | 1397 | void EmitConvertF16F32(EmitContext& ctx, std::string_view value) { |
| 1378 | NotImplemented(); | 1398 | NotImplemented(); |
| 1379 | } | 1399 | } |
| 1380 | 1400 | ||
| 1381 | void EmitConvertF32F16(EmitContext& ctx, std::string value) { | 1401 | void EmitConvertF32F16(EmitContext& ctx, std::string_view value) { |
| 1382 | NotImplemented(); | 1402 | NotImplemented(); |
| 1383 | } | 1403 | } |
| 1384 | 1404 | ||
| 1385 | void EmitConvertF32F64(EmitContext& ctx, std::string value) { | 1405 | void EmitConvertF32F64(EmitContext& ctx, std::string_view value) { |
| 1386 | NotImplemented(); | 1406 | NotImplemented(); |
| 1387 | } | 1407 | } |
| 1388 | 1408 | ||
| 1389 | void EmitConvertF64F32(EmitContext& ctx, std::string value) { | 1409 | void EmitConvertF64F32(EmitContext& ctx, std::string_view value) { |
| 1390 | NotImplemented(); | 1410 | NotImplemented(); |
| 1391 | } | 1411 | } |
| 1392 | 1412 | ||
| 1393 | void EmitConvertF16S8(EmitContext& ctx, std::string value) { | 1413 | void EmitConvertF16S8(EmitContext& ctx, std::string_view value) { |
| 1394 | NotImplemented(); | 1414 | NotImplemented(); |
| 1395 | } | 1415 | } |
| 1396 | 1416 | ||
| 1397 | void EmitConvertF16S16(EmitContext& ctx, std::string value) { | 1417 | void EmitConvertF16S16(EmitContext& ctx, std::string_view value) { |
| 1398 | NotImplemented(); | 1418 | NotImplemented(); |
| 1399 | } | 1419 | } |
| 1400 | 1420 | ||
| 1401 | void EmitConvertF16S32(EmitContext& ctx, std::string value) { | 1421 | void EmitConvertF16S32(EmitContext& ctx, std::string_view value) { |
| 1402 | NotImplemented(); | 1422 | NotImplemented(); |
| 1403 | } | 1423 | } |
| 1404 | 1424 | ||
| 1405 | void EmitConvertF16S64(EmitContext& ctx, std::string value) { | 1425 | void EmitConvertF16S64(EmitContext& ctx, std::string_view value) { |
| 1406 | NotImplemented(); | 1426 | NotImplemented(); |
| 1407 | } | 1427 | } |
| 1408 | 1428 | ||
| 1409 | void EmitConvertF16U8(EmitContext& ctx, std::string value) { | 1429 | void EmitConvertF16U8(EmitContext& ctx, std::string_view value) { |
| 1410 | NotImplemented(); | 1430 | NotImplemented(); |
| 1411 | } | 1431 | } |
| 1412 | 1432 | ||
| 1413 | void EmitConvertF16U16(EmitContext& ctx, std::string value) { | 1433 | void EmitConvertF16U16(EmitContext& ctx, std::string_view value) { |
| 1414 | NotImplemented(); | 1434 | NotImplemented(); |
| 1415 | } | 1435 | } |
| 1416 | 1436 | ||
| 1417 | void EmitConvertF16U32(EmitContext& ctx, std::string value) { | 1437 | void EmitConvertF16U32(EmitContext& ctx, std::string_view value) { |
| 1418 | NotImplemented(); | 1438 | NotImplemented(); |
| 1419 | } | 1439 | } |
| 1420 | 1440 | ||
| 1421 | void EmitConvertF16U64(EmitContext& ctx, std::string value) { | 1441 | void EmitConvertF16U64(EmitContext& ctx, std::string_view value) { |
| 1422 | NotImplemented(); | 1442 | NotImplemented(); |
| 1423 | } | 1443 | } |
| 1424 | 1444 | ||
| 1425 | void EmitConvertF32S8(EmitContext& ctx, std::string value) { | 1445 | void EmitConvertF32S8(EmitContext& ctx, std::string_view value) { |
| 1426 | NotImplemented(); | 1446 | NotImplemented(); |
| 1427 | } | 1447 | } |
| 1428 | 1448 | ||
| 1429 | void EmitConvertF32S16(EmitContext& ctx, std::string value) { | 1449 | void EmitConvertF32S16(EmitContext& ctx, std::string_view value) { |
| 1430 | NotImplemented(); | 1450 | NotImplemented(); |
| 1431 | } | 1451 | } |
| 1432 | 1452 | ||
| 1433 | void EmitConvertF32S32(EmitContext& ctx, std::string value) { | 1453 | void EmitConvertF32S32(EmitContext& ctx, std::string_view value) { |
| 1434 | NotImplemented(); | 1454 | NotImplemented(); |
| 1435 | } | 1455 | } |
| 1436 | 1456 | ||
| 1437 | void EmitConvertF32S64(EmitContext& ctx, std::string value) { | 1457 | void EmitConvertF32S64(EmitContext& ctx, std::string_view value) { |
| 1438 | NotImplemented(); | 1458 | NotImplemented(); |
| 1439 | } | 1459 | } |
| 1440 | 1460 | ||
| 1441 | void EmitConvertF32U8(EmitContext& ctx, std::string value) { | 1461 | void EmitConvertF32U8(EmitContext& ctx, std::string_view value) { |
| 1442 | NotImplemented(); | 1462 | NotImplemented(); |
| 1443 | } | 1463 | } |
| 1444 | 1464 | ||
| 1445 | void EmitConvertF32U16(EmitContext& ctx, std::string value) { | 1465 | void EmitConvertF32U16(EmitContext& ctx, std::string_view value) { |
| 1446 | NotImplemented(); | 1466 | NotImplemented(); |
| 1447 | } | 1467 | } |
| 1448 | 1468 | ||
| 1449 | void EmitConvertF32U32(EmitContext& ctx, std::string value) { | 1469 | void EmitConvertF32U32(EmitContext& ctx, std::string_view value) { |
| 1450 | NotImplemented(); | 1470 | NotImplemented(); |
| 1451 | } | 1471 | } |
| 1452 | 1472 | ||
| 1453 | void EmitConvertF32U64(EmitContext& ctx, std::string value) { | 1473 | void EmitConvertF32U64(EmitContext& ctx, std::string_view value) { |
| 1454 | NotImplemented(); | 1474 | NotImplemented(); |
| 1455 | } | 1475 | } |
| 1456 | 1476 | ||
| 1457 | void EmitConvertF64S8(EmitContext& ctx, std::string value) { | 1477 | void EmitConvertF64S8(EmitContext& ctx, std::string_view value) { |
| 1458 | NotImplemented(); | 1478 | NotImplemented(); |
| 1459 | } | 1479 | } |
| 1460 | 1480 | ||
| 1461 | void EmitConvertF64S16(EmitContext& ctx, std::string value) { | 1481 | void EmitConvertF64S16(EmitContext& ctx, std::string_view value) { |
| 1462 | NotImplemented(); | 1482 | NotImplemented(); |
| 1463 | } | 1483 | } |
| 1464 | 1484 | ||
| 1465 | void EmitConvertF64S32(EmitContext& ctx, std::string value) { | 1485 | void EmitConvertF64S32(EmitContext& ctx, std::string_view value) { |
| 1466 | NotImplemented(); | 1486 | NotImplemented(); |
| 1467 | } | 1487 | } |
| 1468 | 1488 | ||
| 1469 | void EmitConvertF64S64(EmitContext& ctx, std::string value) { | 1489 | void EmitConvertF64S64(EmitContext& ctx, std::string_view value) { |
| 1470 | NotImplemented(); | 1490 | NotImplemented(); |
| 1471 | } | 1491 | } |
| 1472 | 1492 | ||
| 1473 | void EmitConvertF64U8(EmitContext& ctx, std::string value) { | 1493 | void EmitConvertF64U8(EmitContext& ctx, std::string_view value) { |
| 1474 | NotImplemented(); | 1494 | NotImplemented(); |
| 1475 | } | 1495 | } |
| 1476 | 1496 | ||
| 1477 | void EmitConvertF64U16(EmitContext& ctx, std::string value) { | 1497 | void EmitConvertF64U16(EmitContext& ctx, std::string_view value) { |
| 1478 | NotImplemented(); | 1498 | NotImplemented(); |
| 1479 | } | 1499 | } |
| 1480 | 1500 | ||
| 1481 | void EmitConvertF64U32(EmitContext& ctx, std::string value) { | 1501 | void EmitConvertF64U32(EmitContext& ctx, std::string_view value) { |
| 1482 | NotImplemented(); | 1502 | NotImplemented(); |
| 1483 | } | 1503 | } |
| 1484 | 1504 | ||
| 1485 | void EmitConvertF64U64(EmitContext& ctx, std::string value) { | 1505 | void EmitConvertF64U64(EmitContext& ctx, std::string_view value) { |
| 1486 | NotImplemented(); | 1506 | NotImplemented(); |
| 1487 | } | 1507 | } |
| 1488 | 1508 | ||
| @@ -1583,64 +1603,69 @@ void EmitBoundImageWrite(EmitContext&) { | |||
| 1583 | } | 1603 | } |
| 1584 | 1604 | ||
| 1585 | void EmitImageSampleImplicitLod(EmitContext& ctx, IR::Inst& inst, const IR::Value& index, | 1605 | void EmitImageSampleImplicitLod(EmitContext& ctx, IR::Inst& inst, const IR::Value& index, |
| 1586 | std::string coords, std::string bias_lc, const IR::Value& offset) { | 1606 | std::string_view coords, std::string_view bias_lc, |
| 1607 | const IR::Value& offset) { | ||
| 1587 | NotImplemented(); | 1608 | NotImplemented(); |
| 1588 | } | 1609 | } |
| 1589 | 1610 | ||
| 1590 | void EmitImageSampleExplicitLod(EmitContext& ctx, IR::Inst& inst, const IR::Value& index, | 1611 | void EmitImageSampleExplicitLod(EmitContext& ctx, IR::Inst& inst, const IR::Value& index, |
| 1591 | std::string coords, std::string lod_lc, const IR::Value& offset) { | 1612 | std::string_view coords, std::string_view lod_lc, |
| 1613 | const IR::Value& offset) { | ||
| 1592 | NotImplemented(); | 1614 | NotImplemented(); |
| 1593 | } | 1615 | } |
| 1594 | 1616 | ||
| 1595 | void EmitImageSampleDrefImplicitLod(EmitContext& ctx, IR::Inst& inst, const IR::Value& index, | 1617 | void EmitImageSampleDrefImplicitLod(EmitContext& ctx, IR::Inst& inst, const IR::Value& index, |
| 1596 | std::string coords, std::string dref, std::string bias_lc, | 1618 | std::string_view coords, std::string_view dref, |
| 1597 | const IR::Value& offset) { | 1619 | std::string_view bias_lc, const IR::Value& offset) { |
| 1598 | NotImplemented(); | 1620 | NotImplemented(); |
| 1599 | } | 1621 | } |
| 1600 | 1622 | ||
| 1601 | void EmitImageSampleDrefExplicitLod(EmitContext& ctx, IR::Inst& inst, const IR::Value& index, | 1623 | void EmitImageSampleDrefExplicitLod(EmitContext& ctx, IR::Inst& inst, const IR::Value& index, |
| 1602 | std::string coords, std::string dref, std::string lod_lc, | 1624 | std::string_view coords, std::string_view dref, |
| 1603 | const IR::Value& offset) { | 1625 | std::string_view lod_lc, const IR::Value& offset) { |
| 1604 | NotImplemented(); | 1626 | NotImplemented(); |
| 1605 | } | 1627 | } |
| 1606 | 1628 | ||
| 1607 | void EmitImageGather(EmitContext& ctx, IR::Inst& inst, const IR::Value& index, std::string coords, | 1629 | void EmitImageGather(EmitContext& ctx, IR::Inst& inst, const IR::Value& index, |
| 1608 | const IR::Value& offset, const IR::Value& offset2) { | 1630 | std::string_view coords, const IR::Value& offset, const IR::Value& offset2) { |
| 1609 | NotImplemented(); | 1631 | NotImplemented(); |
| 1610 | } | 1632 | } |
| 1611 | 1633 | ||
| 1612 | void EmitImageGatherDref(EmitContext& ctx, IR::Inst& inst, const IR::Value& index, | 1634 | void EmitImageGatherDref(EmitContext& ctx, IR::Inst& inst, const IR::Value& index, |
| 1613 | std::string coords, const IR::Value& offset, const IR::Value& offset2, | 1635 | std::string_view coords, const IR::Value& offset, const IR::Value& offset2, |
| 1614 | std::string dref) { | 1636 | std::string_view dref) { |
| 1615 | NotImplemented(); | 1637 | NotImplemented(); |
| 1616 | } | 1638 | } |
| 1617 | 1639 | ||
| 1618 | void EmitImageFetch(EmitContext& ctx, IR::Inst& inst, const IR::Value& index, std::string coords, | 1640 | void EmitImageFetch(EmitContext& ctx, IR::Inst& inst, const IR::Value& index, |
| 1619 | std::string offset, std::string lod, std::string ms) { | 1641 | std::string_view coords, std::string_view offset, std::string_view lod, |
| 1642 | std::string_view ms) { | ||
| 1620 | NotImplemented(); | 1643 | NotImplemented(); |
| 1621 | } | 1644 | } |
| 1622 | 1645 | ||
| 1623 | void EmitImageQueryDimensions(EmitContext& ctx, IR::Inst& inst, const IR::Value& index, | 1646 | void EmitImageQueryDimensions(EmitContext& ctx, IR::Inst& inst, const IR::Value& index, |
| 1624 | std::string lod) { | 1647 | std::string_view lod) { |
| 1625 | NotImplemented(); | 1648 | NotImplemented(); |
| 1626 | } | 1649 | } |
| 1627 | 1650 | ||
| 1628 | void EmitImageQueryLod(EmitContext& ctx, IR::Inst& inst, const IR::Value& index, | 1651 | void EmitImageQueryLod(EmitContext& ctx, IR::Inst& inst, const IR::Value& index, |
| 1629 | std::string coords) { | 1652 | std::string_view coords) { |
| 1630 | NotImplemented(); | 1653 | NotImplemented(); |
| 1631 | } | 1654 | } |
| 1632 | 1655 | ||
| 1633 | void EmitImageGradient(EmitContext& ctx, IR::Inst& inst, const IR::Value& index, std::string coords, | 1656 | void EmitImageGradient(EmitContext& ctx, IR::Inst& inst, const IR::Value& index, |
| 1634 | std::string derivates, std::string offset, std::string lod_clamp) { | 1657 | std::string_view coords, std::string_view derivates, std::string_view offset, |
| 1658 | std::string_view lod_clamp) { | ||
| 1635 | NotImplemented(); | 1659 | NotImplemented(); |
| 1636 | } | 1660 | } |
| 1637 | 1661 | ||
| 1638 | void EmitImageRead(EmitContext& ctx, IR::Inst& inst, const IR::Value& index, std::string coords) { | 1662 | void EmitImageRead(EmitContext& ctx, IR::Inst& inst, const IR::Value& index, |
| 1663 | std::string_view coords) { | ||
| 1639 | NotImplemented(); | 1664 | NotImplemented(); |
| 1640 | } | 1665 | } |
| 1641 | 1666 | ||
| 1642 | void EmitImageWrite(EmitContext& ctx, IR::Inst& inst, const IR::Value& index, std::string coords, | 1667 | void EmitImageWrite(EmitContext& ctx, IR::Inst& inst, const IR::Value& index, |
| 1643 | std::string color) { | 1668 | std::string_view coords, std::string_view color) { |
| 1644 | NotImplemented(); | 1669 | NotImplemented(); |
| 1645 | } | 1670 | } |
| 1646 | 1671 | ||
| @@ -1733,57 +1758,57 @@ void EmitBoundImageAtomicExchange32(EmitContext&) { | |||
| 1733 | } | 1758 | } |
| 1734 | 1759 | ||
| 1735 | void EmitImageAtomicIAdd32(EmitContext& ctx, IR::Inst& inst, const IR::Value& index, | 1760 | void EmitImageAtomicIAdd32(EmitContext& ctx, IR::Inst& inst, const IR::Value& index, |
| 1736 | std::string coords, std::string value) { | 1761 | std::string_view coords, std::string_view value) { |
| 1737 | NotImplemented(); | 1762 | NotImplemented(); |
| 1738 | } | 1763 | } |
| 1739 | 1764 | ||
| 1740 | void EmitImageAtomicSMin32(EmitContext& ctx, IR::Inst& inst, const IR::Value& index, | 1765 | void EmitImageAtomicSMin32(EmitContext& ctx, IR::Inst& inst, const IR::Value& index, |
| 1741 | std::string coords, std::string value) { | 1766 | std::string_view coords, std::string_view value) { |
| 1742 | NotImplemented(); | 1767 | NotImplemented(); |
| 1743 | } | 1768 | } |
| 1744 | 1769 | ||
| 1745 | void EmitImageAtomicUMin32(EmitContext& ctx, IR::Inst& inst, const IR::Value& index, | 1770 | void EmitImageAtomicUMin32(EmitContext& ctx, IR::Inst& inst, const IR::Value& index, |
| 1746 | std::string coords, std::string value) { | 1771 | std::string_view coords, std::string_view value) { |
| 1747 | NotImplemented(); | 1772 | NotImplemented(); |
| 1748 | } | 1773 | } |
| 1749 | 1774 | ||
| 1750 | void EmitImageAtomicSMax32(EmitContext& ctx, IR::Inst& inst, const IR::Value& index, | 1775 | void EmitImageAtomicSMax32(EmitContext& ctx, IR::Inst& inst, const IR::Value& index, |
| 1751 | std::string coords, std::string value) { | 1776 | std::string_view coords, std::string_view value) { |
| 1752 | NotImplemented(); | 1777 | NotImplemented(); |
| 1753 | } | 1778 | } |
| 1754 | 1779 | ||
| 1755 | void EmitImageAtomicUMax32(EmitContext& ctx, IR::Inst& inst, const IR::Value& index, | 1780 | void EmitImageAtomicUMax32(EmitContext& ctx, IR::Inst& inst, const IR::Value& index, |
| 1756 | std::string coords, std::string value) { | 1781 | std::string_view coords, std::string_view value) { |
| 1757 | NotImplemented(); | 1782 | NotImplemented(); |
| 1758 | } | 1783 | } |
| 1759 | 1784 | ||
| 1760 | void EmitImageAtomicInc32(EmitContext& ctx, IR::Inst& inst, const IR::Value& index, | 1785 | void EmitImageAtomicInc32(EmitContext& ctx, IR::Inst& inst, const IR::Value& index, |
| 1761 | std::string coords, std::string value) { | 1786 | std::string_view coords, std::string_view value) { |
| 1762 | NotImplemented(); | 1787 | NotImplemented(); |
| 1763 | } | 1788 | } |
| 1764 | 1789 | ||
| 1765 | void EmitImageAtomicDec32(EmitContext& ctx, IR::Inst& inst, const IR::Value& index, | 1790 | void EmitImageAtomicDec32(EmitContext& ctx, IR::Inst& inst, const IR::Value& index, |
| 1766 | std::string coords, std::string value) { | 1791 | std::string_view coords, std::string_view value) { |
| 1767 | NotImplemented(); | 1792 | NotImplemented(); |
| 1768 | } | 1793 | } |
| 1769 | 1794 | ||
| 1770 | void EmitImageAtomicAnd32(EmitContext& ctx, IR::Inst& inst, const IR::Value& index, | 1795 | void EmitImageAtomicAnd32(EmitContext& ctx, IR::Inst& inst, const IR::Value& index, |
| 1771 | std::string coords, std::string value) { | 1796 | std::string_view coords, std::string_view value) { |
| 1772 | NotImplemented(); | 1797 | NotImplemented(); |
| 1773 | } | 1798 | } |
| 1774 | 1799 | ||
| 1775 | void EmitImageAtomicOr32(EmitContext& ctx, IR::Inst& inst, const IR::Value& index, | 1800 | void EmitImageAtomicOr32(EmitContext& ctx, IR::Inst& inst, const IR::Value& index, |
| 1776 | std::string coords, std::string value) { | 1801 | std::string_view coords, std::string_view value) { |
| 1777 | NotImplemented(); | 1802 | NotImplemented(); |
| 1778 | } | 1803 | } |
| 1779 | 1804 | ||
| 1780 | void EmitImageAtomicXor32(EmitContext& ctx, IR::Inst& inst, const IR::Value& index, | 1805 | void EmitImageAtomicXor32(EmitContext& ctx, IR::Inst& inst, const IR::Value& index, |
| 1781 | std::string coords, std::string value) { | 1806 | std::string_view coords, std::string_view value) { |
| 1782 | NotImplemented(); | 1807 | NotImplemented(); |
| 1783 | } | 1808 | } |
| 1784 | 1809 | ||
| 1785 | void EmitImageAtomicExchange32(EmitContext& ctx, IR::Inst& inst, const IR::Value& index, | 1810 | void EmitImageAtomicExchange32(EmitContext& ctx, IR::Inst& inst, const IR::Value& index, |
| 1786 | std::string coords, std::string value) { | 1811 | std::string_view coords, std::string_view value) { |
| 1787 | NotImplemented(); | 1812 | NotImplemented(); |
| 1788 | } | 1813 | } |
| 1789 | 1814 | ||
| @@ -1791,19 +1816,19 @@ void EmitLaneId(EmitContext& ctx) { | |||
| 1791 | NotImplemented(); | 1816 | NotImplemented(); |
| 1792 | } | 1817 | } |
| 1793 | 1818 | ||
| 1794 | void EmitVoteAll(EmitContext& ctx, std::string pred) { | 1819 | void EmitVoteAll(EmitContext& ctx, std::string_view pred) { |
| 1795 | NotImplemented(); | 1820 | NotImplemented(); |
| 1796 | } | 1821 | } |
| 1797 | 1822 | ||
| 1798 | void EmitVoteAny(EmitContext& ctx, std::string pred) { | 1823 | void EmitVoteAny(EmitContext& ctx, std::string_view pred) { |
| 1799 | NotImplemented(); | 1824 | NotImplemented(); |
| 1800 | } | 1825 | } |
| 1801 | 1826 | ||
| 1802 | void EmitVoteEqual(EmitContext& ctx, std::string pred) { | 1827 | void EmitVoteEqual(EmitContext& ctx, std::string_view pred) { |
| 1803 | NotImplemented(); | 1828 | NotImplemented(); |
| 1804 | } | 1829 | } |
| 1805 | 1830 | ||
| 1806 | void EmitSubgroupBallot(EmitContext& ctx, std::string pred) { | 1831 | void EmitSubgroupBallot(EmitContext& ctx, std::string_view pred) { |
| 1807 | NotImplemented(); | 1832 | NotImplemented(); |
| 1808 | } | 1833 | } |
| 1809 | 1834 | ||
| @@ -1827,43 +1852,47 @@ void EmitSubgroupGeMask(EmitContext& ctx) { | |||
| 1827 | NotImplemented(); | 1852 | NotImplemented(); |
| 1828 | } | 1853 | } |
| 1829 | 1854 | ||
| 1830 | void EmitShuffleIndex(EmitContext& ctx, IR::Inst& inst, std::string value, std::string index, | 1855 | void EmitShuffleIndex(EmitContext& ctx, IR::Inst& inst, std::string_view value, |
| 1831 | std::string clamp, std::string segmentation_mask) { | 1856 | std::string_view index, std::string_view clamp, |
| 1857 | std::string_view segmentation_mask) { | ||
| 1832 | NotImplemented(); | 1858 | NotImplemented(); |
| 1833 | } | 1859 | } |
| 1834 | 1860 | ||
| 1835 | void EmitShuffleUp(EmitContext& ctx, IR::Inst& inst, std::string value, std::string index, | 1861 | void EmitShuffleUp(EmitContext& ctx, IR::Inst& inst, std::string_view value, std::string_view index, |
| 1836 | std::string clamp, std::string segmentation_mask) { | 1862 | std::string_view clamp, std::string_view segmentation_mask) { |
| 1837 | NotImplemented(); | 1863 | NotImplemented(); |
| 1838 | } | 1864 | } |
| 1839 | 1865 | ||
| 1840 | void EmitShuffleDown(EmitContext& ctx, IR::Inst& inst, std::string value, std::string index, | 1866 | void EmitShuffleDown(EmitContext& ctx, IR::Inst& inst, std::string_view value, |
| 1841 | std::string clamp, std::string segmentation_mask) { | 1867 | std::string_view index, std::string_view clamp, |
| 1868 | std::string_view segmentation_mask) { | ||
| 1842 | NotImplemented(); | 1869 | NotImplemented(); |
| 1843 | } | 1870 | } |
| 1844 | 1871 | ||
| 1845 | void EmitShuffleButterfly(EmitContext& ctx, IR::Inst& inst, std::string value, std::string index, | 1872 | void EmitShuffleButterfly(EmitContext& ctx, IR::Inst& inst, std::string_view value, |
| 1846 | std::string clamp, std::string segmentation_mask) { | 1873 | std::string_view index, std::string_view clamp, |
| 1874 | std::string_view segmentation_mask) { | ||
| 1847 | NotImplemented(); | 1875 | NotImplemented(); |
| 1848 | } | 1876 | } |
| 1849 | 1877 | ||
| 1850 | void EmitFSwizzleAdd(EmitContext& ctx, std::string op_a, std::string op_b, std::string swizzle) { | 1878 | void EmitFSwizzleAdd(EmitContext& ctx, std::string_view op_a, std::string_view op_b, |
| 1879 | std::string_view swizzle) { | ||
| 1851 | NotImplemented(); | 1880 | NotImplemented(); |
| 1852 | } | 1881 | } |
| 1853 | 1882 | ||
| 1854 | void EmitDPdxFine(EmitContext& ctx, std::string op_a) { | 1883 | void EmitDPdxFine(EmitContext& ctx, std::string_view op_a) { |
| 1855 | NotImplemented(); | 1884 | NotImplemented(); |
| 1856 | } | 1885 | } |
| 1857 | 1886 | ||
| 1858 | void EmitDPdyFine(EmitContext& ctx, std::string op_a) { | 1887 | void EmitDPdyFine(EmitContext& ctx, std::string_view op_a) { |
| 1859 | NotImplemented(); | 1888 | NotImplemented(); |
| 1860 | } | 1889 | } |
| 1861 | 1890 | ||
| 1862 | void EmitDPdxCoarse(EmitContext& ctx, std::string op_a) { | 1891 | void EmitDPdxCoarse(EmitContext& ctx, std::string_view op_a) { |
| 1863 | NotImplemented(); | 1892 | NotImplemented(); |
| 1864 | } | 1893 | } |
| 1865 | 1894 | ||
| 1866 | void EmitDPdyCoarse(EmitContext& ctx, std::string op_a) { | 1895 | void EmitDPdyCoarse(EmitContext& ctx, std::string_view op_a) { |
| 1867 | NotImplemented(); | 1896 | NotImplemented(); |
| 1868 | } | 1897 | } |
| 1869 | 1898 | ||