diff options
Diffstat (limited to 'src/shader_recompiler/backend/glasm/emit_glasm_instructions.h')
| -rw-r--r-- | src/shader_recompiler/backend/glasm/emit_glasm_instructions.h | 650 |
1 files changed, 650 insertions, 0 deletions
diff --git a/src/shader_recompiler/backend/glasm/emit_glasm_instructions.h b/src/shader_recompiler/backend/glasm/emit_glasm_instructions.h new file mode 100644 index 000000000..21d6af914 --- /dev/null +++ b/src/shader_recompiler/backend/glasm/emit_glasm_instructions.h | |||
| @@ -0,0 +1,650 @@ | |||
| 1 | // Copyright 2021 yuzu Emulator Project | ||
| 2 | // Licensed under GPLv2 or any later version | ||
| 3 | // Refer to the license.txt file included. | ||
| 4 | |||
| 5 | #pragma once | ||
| 6 | |||
| 7 | #include <string_view> | ||
| 8 | |||
| 9 | #include "common/common_types.h" | ||
| 10 | |||
| 11 | namespace Shader::IR { | ||
| 12 | enum class Attribute : u64; | ||
| 13 | enum class Patch : u64; | ||
| 14 | class Inst; | ||
| 15 | class Value; | ||
| 16 | } // namespace Shader::IR | ||
| 17 | |||
| 18 | namespace Shader::Backend::GLASM { | ||
| 19 | |||
| 20 | class EmitContext; | ||
| 21 | |||
| 22 | // Microinstruction emitters | ||
| 23 | void EmitPhi(EmitContext& ctx, IR::Inst* inst); | ||
| 24 | void EmitVoid(EmitContext& ctx); | ||
| 25 | void EmitIdentity(EmitContext& ctx, const IR::Value& value); | ||
| 26 | void EmitBranch(EmitContext& ctx, std::string_view label); | ||
| 27 | void EmitBranchConditional(EmitContext& ctx, std::string_view condition, | ||
| 28 | std::string_view true_label, std::string_view false_label); | ||
| 29 | void EmitLoopMerge(EmitContext& ctx, std::string_view merge_label, std::string_view continue_label); | ||
| 30 | void EmitSelectionMerge(EmitContext& ctx, std::string_view merge_label); | ||
| 31 | void EmitReturn(EmitContext& ctx); | ||
| 32 | void EmitJoin(EmitContext& ctx); | ||
| 33 | void EmitUnreachable(EmitContext& ctx); | ||
| 34 | void EmitDemoteToHelperInvocation(EmitContext& ctx, std::string_view continue_label); | ||
| 35 | void EmitBarrier(EmitContext& ctx); | ||
| 36 | void EmitWorkgroupMemoryBarrier(EmitContext& ctx); | ||
| 37 | void EmitDeviceMemoryBarrier(EmitContext& ctx); | ||
| 38 | void EmitPrologue(EmitContext& ctx); | ||
| 39 | void EmitEpilogue(EmitContext& ctx); | ||
| 40 | void EmitEmitVertex(EmitContext& ctx, const IR::Value& stream); | ||
| 41 | void EmitEndPrimitive(EmitContext& ctx, const IR::Value& stream); | ||
| 42 | void EmitGetRegister(EmitContext& ctx); | ||
| 43 | void EmitSetRegister(EmitContext& ctx); | ||
| 44 | void EmitGetPred(EmitContext& ctx); | ||
| 45 | void EmitSetPred(EmitContext& ctx); | ||
| 46 | void EmitSetGotoVariable(EmitContext& ctx); | ||
| 47 | void EmitGetGotoVariable(EmitContext& ctx); | ||
| 48 | void EmitSetIndirectBranchVariable(EmitContext& ctx); | ||
| 49 | void EmitGetIndirectBranchVariable(EmitContext& ctx); | ||
| 50 | void EmitGetCbufU8(EmitContext& ctx, const IR::Value& binding, const IR::Value& offset); | ||
| 51 | void EmitGetCbufS8(EmitContext& ctx, const IR::Value& binding, const IR::Value& offset); | ||
| 52 | void EmitGetCbufU16(EmitContext& ctx, const IR::Value& binding, const IR::Value& offset); | ||
| 53 | void EmitGetCbufS16(EmitContext& ctx, const IR::Value& binding, const IR::Value& offset); | ||
| 54 | void EmitGetCbufU32(EmitContext& ctx, const IR::Value& binding, const IR::Value& offset); | ||
| 55 | void EmitGetCbufF32(EmitContext& ctx, const IR::Value& binding, const IR::Value& offset); | ||
| 56 | void EmitGetCbufU32x2(EmitContext& ctx, const IR::Value& binding, const IR::Value& offset); | ||
| 57 | void EmitGetAttribute(EmitContext& ctx, IR::Attribute attr, std::string_view vertex); | ||
| 58 | void EmitSetAttribute(EmitContext& ctx, IR::Attribute attr, std::string_view value, | ||
| 59 | std::string_view vertex); | ||
| 60 | void EmitGetAttributeIndexed(EmitContext& ctx, std::string_view offset, std::string_view vertex); | ||
| 61 | void EmitSetAttributeIndexed(EmitContext& ctx, std::string_view offset, std::string_view value, | ||
| 62 | std::string_view vertex); | ||
| 63 | void EmitGetPatch(EmitContext& ctx, IR::Patch patch); | ||
| 64 | void EmitSetPatch(EmitContext& ctx, IR::Patch patch, std::string_view value); | ||
| 65 | void EmitSetFragColor(EmitContext& ctx, u32 index, u32 component, std::string_view value); | ||
| 66 | void EmitSetSampleMask(EmitContext& ctx, std::string_view value); | ||
| 67 | void EmitSetFragDepth(EmitContext& ctx, std::string_view value); | ||
| 68 | void EmitGetZFlag(EmitContext& ctx); | ||
| 69 | void EmitGetSFlag(EmitContext& ctx); | ||
| 70 | void EmitGetCFlag(EmitContext& ctx); | ||
| 71 | void EmitGetOFlag(EmitContext& ctx); | ||
| 72 | void EmitSetZFlag(EmitContext& ctx); | ||
| 73 | void EmitSetSFlag(EmitContext& ctx); | ||
| 74 | void EmitSetCFlag(EmitContext& ctx); | ||
| 75 | void EmitSetOFlag(EmitContext& ctx); | ||
| 76 | void EmitWorkgroupId(EmitContext& ctx); | ||
| 77 | void EmitLocalInvocationId(EmitContext& ctx); | ||
| 78 | void EmitInvocationId(EmitContext& ctx); | ||
| 79 | void EmitSampleId(EmitContext& ctx); | ||
| 80 | void EmitIsHelperInvocation(EmitContext& ctx); | ||
| 81 | void EmitYDirection(EmitContext& ctx); | ||
| 82 | void EmitLoadLocal(EmitContext& ctx, std::string_view word_offset); | ||
| 83 | void EmitWriteLocal(EmitContext& ctx, std::string_view word_offset, std::string_view value); | ||
| 84 | void EmitUndefU1(EmitContext& ctx); | ||
| 85 | void EmitUndefU8(EmitContext& ctx); | ||
| 86 | void EmitUndefU16(EmitContext& ctx); | ||
| 87 | void EmitUndefU32(EmitContext& ctx); | ||
| 88 | void EmitUndefU64(EmitContext& ctx); | ||
| 89 | void EmitLoadGlobalU8(EmitContext& ctx); | ||
| 90 | void EmitLoadGlobalS8(EmitContext& ctx); | ||
| 91 | void EmitLoadGlobalU16(EmitContext& ctx); | ||
| 92 | void EmitLoadGlobalS16(EmitContext& ctx); | ||
| 93 | void EmitLoadGlobal32(EmitContext& ctx, std::string_view address); | ||
| 94 | void EmitLoadGlobal64(EmitContext& ctx, std::string_view address); | ||
| 95 | void EmitLoadGlobal128(EmitContext& ctx, std::string_view address); | ||
| 96 | void EmitWriteGlobalU8(EmitContext& ctx); | ||
| 97 | void EmitWriteGlobalS8(EmitContext& ctx); | ||
| 98 | void EmitWriteGlobalU16(EmitContext& ctx); | ||
| 99 | void EmitWriteGlobalS16(EmitContext& ctx); | ||
| 100 | void EmitWriteGlobal32(EmitContext& ctx, std::string_view address, std::string_view value); | ||
| 101 | void EmitWriteGlobal64(EmitContext& ctx, std::string_view address, std::string_view value); | ||
| 102 | void EmitWriteGlobal128(EmitContext& ctx, std::string_view address, std::string_view value); | ||
| 103 | void EmitLoadStorageU8(EmitContext& ctx, const IR::Value& binding, const IR::Value& offset); | ||
| 104 | void EmitLoadStorageS8(EmitContext& ctx, const IR::Value& binding, const IR::Value& offset); | ||
| 105 | void EmitLoadStorageU16(EmitContext& ctx, const IR::Value& binding, const IR::Value& offset); | ||
| 106 | void EmitLoadStorageS16(EmitContext& ctx, const IR::Value& binding, const IR::Value& offset); | ||
| 107 | void EmitLoadStorage32(EmitContext& ctx, const IR::Value& binding, const IR::Value& offset); | ||
| 108 | void EmitLoadStorage64(EmitContext& ctx, const IR::Value& binding, const IR::Value& offset); | ||
| 109 | void EmitLoadStorage128(EmitContext& ctx, const IR::Value& binding, const IR::Value& offset); | ||
| 110 | void EmitWriteStorageU8(EmitContext& ctx, const IR::Value& binding, const IR::Value& offset, | ||
| 111 | std::string_view value); | ||
| 112 | void EmitWriteStorageS8(EmitContext& ctx, const IR::Value& binding, const IR::Value& offset, | ||
| 113 | std::string_view value); | ||
| 114 | void EmitWriteStorageU16(EmitContext& ctx, const IR::Value& binding, const IR::Value& offset, | ||
| 115 | std::string_view value); | ||
| 116 | void EmitWriteStorageS16(EmitContext& ctx, const IR::Value& binding, const IR::Value& offset, | ||
| 117 | std::string_view value); | ||
| 118 | void EmitWriteStorage32(EmitContext& ctx, const IR::Value& binding, const IR::Value& offset, | ||
| 119 | std::string_view value); | ||
| 120 | void EmitWriteStorage64(EmitContext& ctx, const IR::Value& binding, const IR::Value& offset, | ||
| 121 | std::string_view value); | ||
| 122 | void EmitWriteStorage128(EmitContext& ctx, const IR::Value& binding, const IR::Value& offset, | ||
| 123 | std::string_view value); | ||
| 124 | void EmitLoadSharedU8(EmitContext& ctx, std::string_view offset); | ||
| 125 | void EmitLoadSharedS8(EmitContext& ctx, std::string_view offset); | ||
| 126 | void EmitLoadSharedU16(EmitContext& ctx, std::string_view offset); | ||
| 127 | void EmitLoadSharedS16(EmitContext& ctx, std::string_view offset); | ||
| 128 | void EmitLoadSharedU32(EmitContext& ctx, std::string_view offset); | ||
| 129 | void EmitLoadSharedU64(EmitContext& ctx, std::string_view offset); | ||
| 130 | void EmitLoadSharedU128(EmitContext& ctx, std::string_view offset); | ||
| 131 | void EmitWriteSharedU8(EmitContext& ctx, std::string_view offset, std::string_view value); | ||
| 132 | void EmitWriteSharedU16(EmitContext& ctx, std::string_view offset, std::string_view value); | ||
| 133 | void EmitWriteSharedU32(EmitContext& ctx, std::string_view offset, std::string_view value); | ||
| 134 | void EmitWriteSharedU64(EmitContext& ctx, std::string_view offset, std::string_view value); | ||
| 135 | void EmitWriteSharedU128(EmitContext& ctx, std::string_view offset, std::string_view value); | ||
| 136 | void EmitCompositeConstructU32x2(EmitContext& ctx, std::string_view e1, std::string_view e2); | ||
| 137 | void EmitCompositeConstructU32x3(EmitContext& ctx, std::string_view e1, std::string_view e2, | ||
| 138 | std::string_view e3); | ||
| 139 | void EmitCompositeConstructU32x4(EmitContext& ctx, std::string_view e1, std::string_view e2, | ||
| 140 | std::string_view e3, std::string_view e4); | ||
| 141 | void EmitCompositeExtractU32x2(EmitContext& ctx, std::string_view composite, u32 index); | ||
| 142 | void EmitCompositeExtractU32x3(EmitContext& ctx, std::string_view composite, u32 index); | ||
| 143 | void EmitCompositeExtractU32x4(EmitContext& ctx, std::string_view composite, u32 index); | ||
| 144 | void EmitCompositeInsertU32x2(EmitContext& ctx, std::string_view composite, std::string_view object, | ||
| 145 | u32 index); | ||
| 146 | void EmitCompositeInsertU32x3(EmitContext& ctx, std::string_view composite, std::string_view object, | ||
| 147 | u32 index); | ||
| 148 | void EmitCompositeInsertU32x4(EmitContext& ctx, std::string_view composite, std::string_view object, | ||
| 149 | u32 index); | ||
| 150 | void EmitCompositeConstructF16x2(EmitContext& ctx, std::string_view e1, std::string_view e2); | ||
| 151 | void EmitCompositeConstructF16x3(EmitContext& ctx, std::string_view e1, std::string_view e2, | ||
| 152 | std::string_view e3); | ||
| 153 | void EmitCompositeConstructF16x4(EmitContext& ctx, std::string_view e1, std::string_view e2, | ||
| 154 | std::string_view e3, std::string_view e4); | ||
| 155 | void EmitCompositeExtractF16x2(EmitContext& ctx, std::string_view composite, u32 index); | ||
| 156 | void EmitCompositeExtractF16x3(EmitContext& ctx, std::string_view composite, u32 index); | ||
| 157 | void EmitCompositeExtractF16x4(EmitContext& ctx, std::string_view composite, u32 index); | ||
| 158 | void EmitCompositeInsertF16x2(EmitContext& ctx, std::string_view composite, std::string_view object, | ||
| 159 | u32 index); | ||
| 160 | void EmitCompositeInsertF16x3(EmitContext& ctx, std::string_view composite, std::string_view object, | ||
| 161 | u32 index); | ||
| 162 | void EmitCompositeInsertF16x4(EmitContext& ctx, std::string_view composite, std::string_view object, | ||
| 163 | u32 index); | ||
| 164 | void EmitCompositeConstructF32x2(EmitContext& ctx, std::string_view e1, std::string_view e2); | ||
| 165 | void EmitCompositeConstructF32x3(EmitContext& ctx, std::string_view e1, std::string_view e2, | ||
| 166 | std::string_view e3); | ||
| 167 | void EmitCompositeConstructF32x4(EmitContext& ctx, std::string_view e1, std::string_view e2, | ||
| 168 | std::string_view e3, std::string_view e4); | ||
| 169 | void EmitCompositeExtractF32x2(EmitContext& ctx, std::string_view composite, u32 index); | ||
| 170 | void EmitCompositeExtractF32x3(EmitContext& ctx, std::string_view composite, u32 index); | ||
| 171 | void EmitCompositeExtractF32x4(EmitContext& ctx, std::string_view composite, u32 index); | ||
| 172 | void EmitCompositeInsertF32x2(EmitContext& ctx, std::string_view composite, std::string_view object, | ||
| 173 | u32 index); | ||
| 174 | void EmitCompositeInsertF32x3(EmitContext& ctx, std::string_view composite, std::string_view object, | ||
| 175 | u32 index); | ||
| 176 | void EmitCompositeInsertF32x4(EmitContext& ctx, std::string_view composite, std::string_view object, | ||
| 177 | u32 index); | ||
| 178 | void EmitCompositeConstructF64x2(EmitContext& ctx); | ||
| 179 | void EmitCompositeConstructF64x3(EmitContext& ctx); | ||
| 180 | void EmitCompositeConstructF64x4(EmitContext& ctx); | ||
| 181 | void EmitCompositeExtractF64x2(EmitContext& ctx); | ||
| 182 | void EmitCompositeExtractF64x3(EmitContext& ctx); | ||
| 183 | void EmitCompositeExtractF64x4(EmitContext& ctx); | ||
| 184 | void EmitCompositeInsertF64x2(EmitContext& ctx, std::string_view composite, std::string_view object, | ||
| 185 | u32 index); | ||
| 186 | void EmitCompositeInsertF64x3(EmitContext& ctx, std::string_view composite, std::string_view object, | ||
| 187 | u32 index); | ||
| 188 | void EmitCompositeInsertF64x4(EmitContext& ctx, std::string_view composite, std::string_view object, | ||
| 189 | u32 index); | ||
| 190 | void EmitSelectU1(EmitContext& ctx, std::string_view cond, std::string_view true_value, | ||
| 191 | std::string_view false_value); | ||
| 192 | void EmitSelectU8(EmitContext& ctx, std::string_view cond, std::string_view true_value, | ||
| 193 | std::string_view false_value); | ||
| 194 | void EmitSelectU16(EmitContext& ctx, std::string_view cond, std::string_view true_value, | ||
| 195 | std::string_view false_value); | ||
| 196 | void EmitSelectU32(EmitContext& ctx, std::string_view cond, std::string_view true_value, | ||
| 197 | std::string_view false_value); | ||
| 198 | void EmitSelectU64(EmitContext& ctx, std::string_view cond, std::string_view true_value, | ||
| 199 | std::string_view false_value); | ||
| 200 | void EmitSelectF16(EmitContext& ctx, std::string_view cond, std::string_view true_value, | ||
| 201 | std::string_view false_value); | ||
| 202 | void EmitSelectF32(EmitContext& ctx, std::string_view cond, std::string_view true_value, | ||
| 203 | std::string_view false_value); | ||
| 204 | void EmitSelectF64(EmitContext& ctx, std::string_view cond, std::string_view true_value, | ||
| 205 | std::string_view false_value); | ||
| 206 | void EmitBitCastU16F16(EmitContext& ctx); | ||
| 207 | void EmitBitCastU32F32(EmitContext& ctx, std::string_view value); | ||
| 208 | void EmitBitCastU64F64(EmitContext& ctx); | ||
| 209 | void EmitBitCastF16U16(EmitContext& ctx); | ||
| 210 | void EmitBitCastF32U32(EmitContext& ctx, std::string_view value); | ||
| 211 | void EmitBitCastF64U64(EmitContext& ctx); | ||
| 212 | void EmitPackUint2x32(EmitContext& ctx, std::string_view value); | ||
| 213 | void EmitUnpackUint2x32(EmitContext& ctx, std::string_view value); | ||
| 214 | void EmitPackFloat2x16(EmitContext& ctx, std::string_view value); | ||
| 215 | void EmitUnpackFloat2x16(EmitContext& ctx, std::string_view value); | ||
| 216 | void EmitPackHalf2x16(EmitContext& ctx, std::string_view value); | ||
| 217 | void EmitUnpackHalf2x16(EmitContext& ctx, std::string_view value); | ||
| 218 | void EmitPackDouble2x32(EmitContext& ctx, std::string_view value); | ||
| 219 | void EmitUnpackDouble2x32(EmitContext& ctx, std::string_view value); | ||
| 220 | void EmitGetZeroFromOp(EmitContext& ctx); | ||
| 221 | void EmitGetSignFromOp(EmitContext& ctx); | ||
| 222 | void EmitGetCarryFromOp(EmitContext& ctx); | ||
| 223 | void EmitGetOverflowFromOp(EmitContext& ctx); | ||
| 224 | void EmitGetSparseFromOp(EmitContext& ctx); | ||
| 225 | void EmitGetInBoundsFromOp(EmitContext& ctx); | ||
| 226 | void EmitFPAbs16(EmitContext& ctx, std::string_view value); | ||
| 227 | void EmitFPAbs32(EmitContext& ctx, std::string_view value); | ||
| 228 | void EmitFPAbs64(EmitContext& ctx, std::string_view value); | ||
| 229 | void EmitFPAdd16(EmitContext& ctx, IR::Inst* inst, std::string_view a, std::string_view b); | ||
| 230 | void EmitFPAdd32(EmitContext& ctx, IR::Inst* inst, std::string_view a, std::string_view b); | ||
| 231 | void EmitFPAdd64(EmitContext& ctx, IR::Inst* inst, std::string_view a, std::string_view b); | ||
| 232 | void EmitFPFma16(EmitContext& ctx, IR::Inst* inst, std::string_view a, std::string_view b, | ||
| 233 | std::string_view c); | ||
| 234 | void EmitFPFma32(EmitContext& ctx, IR::Inst* inst, std::string_view a, std::string_view b, | ||
| 235 | std::string_view c); | ||
| 236 | void EmitFPFma64(EmitContext& ctx, IR::Inst* inst, std::string_view a, std::string_view b, | ||
| 237 | std::string_view c); | ||
| 238 | void EmitFPMax32(EmitContext& ctx, std::string_view a, std::string_view b); | ||
| 239 | void EmitFPMax64(EmitContext& ctx, std::string_view a, std::string_view b); | ||
| 240 | void EmitFPMin32(EmitContext& ctx, std::string_view a, std::string_view b); | ||
| 241 | void EmitFPMin64(EmitContext& ctx, std::string_view a, std::string_view b); | ||
| 242 | void EmitFPMul16(EmitContext& ctx, IR::Inst* inst, std::string_view a, std::string_view b); | ||
| 243 | void EmitFPMul32(EmitContext& ctx, IR::Inst* inst, std::string_view a, std::string_view b); | ||
| 244 | void EmitFPMul64(EmitContext& ctx, IR::Inst* inst, std::string_view a, std::string_view b); | ||
| 245 | void EmitFPNeg16(EmitContext& ctx, std::string_view value); | ||
| 246 | void EmitFPNeg32(EmitContext& ctx, std::string_view value); | ||
| 247 | void EmitFPNeg64(EmitContext& ctx, std::string_view value); | ||
| 248 | void EmitFPSin(EmitContext& ctx, std::string_view value); | ||
| 249 | void EmitFPCos(EmitContext& ctx, std::string_view value); | ||
| 250 | void EmitFPExp2(EmitContext& ctx, std::string_view value); | ||
| 251 | void EmitFPLog2(EmitContext& ctx, std::string_view value); | ||
| 252 | void EmitFPRecip32(EmitContext& ctx, std::string_view value); | ||
| 253 | void EmitFPRecip64(EmitContext& ctx, std::string_view value); | ||
| 254 | void EmitFPRecipSqrt32(EmitContext& ctx, std::string_view value); | ||
| 255 | void EmitFPRecipSqrt64(EmitContext& ctx, std::string_view value); | ||
| 256 | void EmitFPSqrt(EmitContext& ctx, std::string_view value); | ||
| 257 | void EmitFPSaturate16(EmitContext& ctx, std::string_view value); | ||
| 258 | void EmitFPSaturate32(EmitContext& ctx, std::string_view value); | ||
| 259 | void EmitFPSaturate64(EmitContext& ctx, std::string_view value); | ||
| 260 | void EmitFPClamp16(EmitContext& ctx, std::string_view value, std::string_view min_value, | ||
| 261 | std::string_view max_value); | ||
| 262 | void EmitFPClamp32(EmitContext& ctx, std::string_view value, std::string_view min_value, | ||
| 263 | std::string_view max_value); | ||
| 264 | void EmitFPClamp64(EmitContext& ctx, std::string_view value, std::string_view min_value, | ||
| 265 | std::string_view max_value); | ||
| 266 | void EmitFPRoundEven16(EmitContext& ctx, std::string_view value); | ||
| 267 | void EmitFPRoundEven32(EmitContext& ctx, std::string_view value); | ||
| 268 | void EmitFPRoundEven64(EmitContext& ctx, std::string_view value); | ||
| 269 | void EmitFPFloor16(EmitContext& ctx, std::string_view value); | ||
| 270 | void EmitFPFloor32(EmitContext& ctx, std::string_view value); | ||
| 271 | void EmitFPFloor64(EmitContext& ctx, std::string_view value); | ||
| 272 | void EmitFPCeil16(EmitContext& ctx, std::string_view value); | ||
| 273 | void EmitFPCeil32(EmitContext& ctx, std::string_view value); | ||
| 274 | void EmitFPCeil64(EmitContext& ctx, std::string_view value); | ||
| 275 | void EmitFPTrunc16(EmitContext& ctx, std::string_view value); | ||
| 276 | void EmitFPTrunc32(EmitContext& ctx, std::string_view value); | ||
| 277 | void EmitFPTrunc64(EmitContext& ctx, std::string_view value); | ||
| 278 | void EmitFPOrdEqual16(EmitContext& ctx, std::string_view lhs, std::string_view rhs); | ||
| 279 | void EmitFPOrdEqual32(EmitContext& ctx, std::string_view lhs, std::string_view rhs); | ||
| 280 | void EmitFPOrdEqual64(EmitContext& ctx, std::string_view lhs, std::string_view rhs); | ||
| 281 | void EmitFPUnordEqual16(EmitContext& ctx, std::string_view lhs, std::string_view rhs); | ||
| 282 | void EmitFPUnordEqual32(EmitContext& ctx, std::string_view lhs, std::string_view rhs); | ||
| 283 | void EmitFPUnordEqual64(EmitContext& ctx, std::string_view lhs, std::string_view rhs); | ||
| 284 | void EmitFPOrdNotEqual16(EmitContext& ctx, std::string_view lhs, std::string_view rhs); | ||
| 285 | void EmitFPOrdNotEqual32(EmitContext& ctx, std::string_view lhs, std::string_view rhs); | ||
| 286 | void EmitFPOrdNotEqual64(EmitContext& ctx, std::string_view lhs, std::string_view rhs); | ||
| 287 | void EmitFPUnordNotEqual16(EmitContext& ctx, std::string_view lhs, std::string_view rhs); | ||
| 288 | void EmitFPUnordNotEqual32(EmitContext& ctx, std::string_view lhs, std::string_view rhs); | ||
| 289 | void EmitFPUnordNotEqual64(EmitContext& ctx, std::string_view lhs, std::string_view rhs); | ||
| 290 | void EmitFPOrdLessThan16(EmitContext& ctx, std::string_view lhs, std::string_view rhs); | ||
| 291 | void EmitFPOrdLessThan32(EmitContext& ctx, std::string_view lhs, std::string_view rhs); | ||
| 292 | void EmitFPOrdLessThan64(EmitContext& ctx, std::string_view lhs, std::string_view rhs); | ||
| 293 | void EmitFPUnordLessThan16(EmitContext& ctx, std::string_view lhs, std::string_view rhs); | ||
| 294 | void EmitFPUnordLessThan32(EmitContext& ctx, std::string_view lhs, std::string_view rhs); | ||
| 295 | void EmitFPUnordLessThan64(EmitContext& ctx, std::string_view lhs, std::string_view rhs); | ||
| 296 | void EmitFPOrdGreaterThan16(EmitContext& ctx, std::string_view lhs, std::string_view rhs); | ||
| 297 | void EmitFPOrdGreaterThan32(EmitContext& ctx, std::string_view lhs, std::string_view rhs); | ||
| 298 | void EmitFPOrdGreaterThan64(EmitContext& ctx, std::string_view lhs, std::string_view rhs); | ||
| 299 | void EmitFPUnordGreaterThan16(EmitContext& ctx, std::string_view lhs, std::string_view rhs); | ||
| 300 | void EmitFPUnordGreaterThan32(EmitContext& ctx, std::string_view lhs, std::string_view rhs); | ||
| 301 | void EmitFPUnordGreaterThan64(EmitContext& ctx, std::string_view lhs, std::string_view rhs); | ||
| 302 | void EmitFPOrdLessThanEqual16(EmitContext& ctx, std::string_view lhs, std::string_view rhs); | ||
| 303 | void EmitFPOrdLessThanEqual32(EmitContext& ctx, std::string_view lhs, std::string_view rhs); | ||
| 304 | void EmitFPOrdLessThanEqual64(EmitContext& ctx, std::string_view lhs, std::string_view rhs); | ||
| 305 | void EmitFPUnordLessThanEqual16(EmitContext& ctx, std::string_view lhs, std::string_view rhs); | ||
| 306 | void EmitFPUnordLessThanEqual32(EmitContext& ctx, std::string_view lhs, std::string_view rhs); | ||
| 307 | void EmitFPUnordLessThanEqual64(EmitContext& ctx, std::string_view lhs, std::string_view rhs); | ||
| 308 | void EmitFPOrdGreaterThanEqual16(EmitContext& ctx, std::string_view lhs, std::string_view rhs); | ||
| 309 | void EmitFPOrdGreaterThanEqual32(EmitContext& ctx, std::string_view lhs, std::string_view rhs); | ||
| 310 | void EmitFPOrdGreaterThanEqual64(EmitContext& ctx, std::string_view lhs, std::string_view rhs); | ||
| 311 | void EmitFPUnordGreaterThanEqual16(EmitContext& ctx, std::string_view lhs, std::string_view rhs); | ||
| 312 | void EmitFPUnordGreaterThanEqual32(EmitContext& ctx, std::string_view lhs, std::string_view rhs); | ||
| 313 | void EmitFPUnordGreaterThanEqual64(EmitContext& ctx, std::string_view lhs, std::string_view rhs); | ||
| 314 | void EmitFPIsNan16(EmitContext& ctx, std::string_view value); | ||
| 315 | void EmitFPIsNan32(EmitContext& ctx, std::string_view value); | ||
| 316 | void EmitFPIsNan64(EmitContext& ctx, std::string_view value); | ||
| 317 | void EmitIAdd32(EmitContext& ctx, IR::Inst* inst, std::string_view a, std::string_view b); | ||
| 318 | void EmitIAdd64(EmitContext& ctx, std::string_view a, std::string_view b); | ||
| 319 | void EmitISub32(EmitContext& ctx, std::string_view a, std::string_view b); | ||
| 320 | void EmitISub64(EmitContext& ctx, std::string_view a, std::string_view b); | ||
| 321 | void EmitIMul32(EmitContext& ctx, std::string_view a, std::string_view b); | ||
| 322 | void EmitINeg32(EmitContext& ctx, std::string_view value); | ||
| 323 | void EmitINeg64(EmitContext& ctx, std::string_view value); | ||
| 324 | void EmitIAbs32(EmitContext& ctx, std::string_view value); | ||
| 325 | void EmitIAbs64(EmitContext& ctx, std::string_view value); | ||
| 326 | void EmitShiftLeftLogical32(EmitContext& ctx, std::string_view base, std::string_view shift); | ||
| 327 | void EmitShiftLeftLogical64(EmitContext& ctx, std::string_view base, std::string_view shift); | ||
| 328 | void EmitShiftRightLogical32(EmitContext& ctx, std::string_view base, std::string_view shift); | ||
| 329 | void EmitShiftRightLogical64(EmitContext& ctx, std::string_view base, std::string_view shift); | ||
| 330 | void EmitShiftRightArithmetic32(EmitContext& ctx, std::string_view base, std::string_view shift); | ||
| 331 | void EmitShiftRightArithmetic64(EmitContext& ctx, std::string_view base, std::string_view shift); | ||
| 332 | void EmitBitwiseAnd32(EmitContext& ctx, IR::Inst* inst, std::string_view a, std::string_view b); | ||
| 333 | void EmitBitwiseOr32(EmitContext& ctx, IR::Inst* inst, std::string_view a, std::string_view b); | ||
| 334 | void EmitBitwiseXor32(EmitContext& ctx, IR::Inst* inst, std::string_view a, std::string_view b); | ||
| 335 | void EmitBitFieldInsert(EmitContext& ctx, std::string_view base, std::string_view insert, | ||
| 336 | std::string_view offset, std::string_view count); | ||
| 337 | void EmitBitFieldSExtract(EmitContext& ctx, IR::Inst* inst, std::string_view base, | ||
| 338 | std::string_view offset, std::string_view count); | ||
| 339 | void EmitBitFieldUExtract(EmitContext& ctx, IR::Inst* inst, std::string_view base, | ||
| 340 | std::string_view offset, std::string_view count); | ||
| 341 | void EmitBitReverse32(EmitContext& ctx, std::string_view value); | ||
| 342 | void EmitBitCount32(EmitContext& ctx, std::string_view value); | ||
| 343 | void EmitBitwiseNot32(EmitContext& ctx, std::string_view value); | ||
| 344 | void EmitFindSMsb32(EmitContext& ctx, std::string_view value); | ||
| 345 | void EmitFindUMsb32(EmitContext& ctx, std::string_view value); | ||
| 346 | void EmitSMin32(EmitContext& ctx, std::string_view a, std::string_view b); | ||
| 347 | void EmitUMin32(EmitContext& ctx, std::string_view a, std::string_view b); | ||
| 348 | void EmitSMax32(EmitContext& ctx, std::string_view a, std::string_view b); | ||
| 349 | void EmitUMax32(EmitContext& ctx, std::string_view a, std::string_view b); | ||
| 350 | void EmitSClamp32(EmitContext& ctx, IR::Inst* inst, std::string_view value, std::string_view min, | ||
| 351 | std::string_view max); | ||
| 352 | void EmitUClamp32(EmitContext& ctx, IR::Inst* inst, std::string_view value, std::string_view min, | ||
| 353 | std::string_view max); | ||
| 354 | void EmitSLessThan(EmitContext& ctx, std::string_view lhs, std::string_view rhs); | ||
| 355 | void EmitULessThan(EmitContext& ctx, std::string_view lhs, std::string_view rhs); | ||
| 356 | void EmitIEqual(EmitContext& ctx, std::string_view lhs, std::string_view rhs); | ||
| 357 | void EmitSLessThanEqual(EmitContext& ctx, std::string_view lhs, std::string_view rhs); | ||
| 358 | void EmitULessThanEqual(EmitContext& ctx, std::string_view lhs, std::string_view rhs); | ||
| 359 | void EmitSGreaterThan(EmitContext& ctx, std::string_view lhs, std::string_view rhs); | ||
| 360 | void EmitUGreaterThan(EmitContext& ctx, std::string_view lhs, std::string_view rhs); | ||
| 361 | void EmitINotEqual(EmitContext& ctx, std::string_view lhs, std::string_view rhs); | ||
| 362 | void EmitSGreaterThanEqual(EmitContext& ctx, std::string_view lhs, std::string_view rhs); | ||
| 363 | void EmitUGreaterThanEqual(EmitContext& ctx, std::string_view lhs, std::string_view rhs); | ||
| 364 | void EmitSharedAtomicIAdd32(EmitContext& ctx, std::string_view pointer_offset, | ||
| 365 | std::string_view value); | ||
| 366 | void EmitSharedAtomicSMin32(EmitContext& ctx, std::string_view pointer_offset, | ||
| 367 | std::string_view value); | ||
| 368 | void EmitSharedAtomicUMin32(EmitContext& ctx, std::string_view pointer_offset, | ||
| 369 | std::string_view value); | ||
| 370 | void EmitSharedAtomicSMax32(EmitContext& ctx, std::string_view pointer_offset, | ||
| 371 | std::string_view value); | ||
| 372 | void EmitSharedAtomicUMax32(EmitContext& ctx, std::string_view pointer_offset, | ||
| 373 | std::string_view value); | ||
| 374 | void EmitSharedAtomicInc32(EmitContext& ctx, std::string_view pointer_offset, | ||
| 375 | std::string_view value); | ||
| 376 | void EmitSharedAtomicDec32(EmitContext& ctx, std::string_view pointer_offset, | ||
| 377 | std::string_view value); | ||
| 378 | void EmitSharedAtomicAnd32(EmitContext& ctx, std::string_view pointer_offset, | ||
| 379 | std::string_view value); | ||
| 380 | void EmitSharedAtomicOr32(EmitContext& ctx, std::string_view pointer_offset, | ||
| 381 | std::string_view value); | ||
| 382 | void EmitSharedAtomicXor32(EmitContext& ctx, std::string_view pointer_offset, | ||
| 383 | std::string_view value); | ||
| 384 | void EmitSharedAtomicExchange32(EmitContext& ctx, std::string_view pointer_offset, | ||
| 385 | std::string_view value); | ||
| 386 | void EmitSharedAtomicExchange64(EmitContext& ctx, std::string_view pointer_offset, | ||
| 387 | std::string_view value); | ||
| 388 | void EmitStorageAtomicIAdd32(EmitContext& ctx, const IR::Value& binding, const IR::Value& offset, | ||
| 389 | std::string_view value); | ||
| 390 | void EmitStorageAtomicSMin32(EmitContext& ctx, const IR::Value& binding, const IR::Value& offset, | ||
| 391 | std::string_view value); | ||
| 392 | void EmitStorageAtomicUMin32(EmitContext& ctx, const IR::Value& binding, const IR::Value& offset, | ||
| 393 | std::string_view value); | ||
| 394 | void EmitStorageAtomicSMax32(EmitContext& ctx, const IR::Value& binding, const IR::Value& offset, | ||
| 395 | std::string_view value); | ||
| 396 | void EmitStorageAtomicUMax32(EmitContext& ctx, const IR::Value& binding, const IR::Value& offset, | ||
| 397 | std::string_view value); | ||
| 398 | void EmitStorageAtomicInc32(EmitContext& ctx, const IR::Value& binding, const IR::Value& offset, | ||
| 399 | std::string_view value); | ||
| 400 | void EmitStorageAtomicDec32(EmitContext& ctx, const IR::Value& binding, const IR::Value& offset, | ||
| 401 | std::string_view value); | ||
| 402 | void EmitStorageAtomicAnd32(EmitContext& ctx, const IR::Value& binding, const IR::Value& offset, | ||
| 403 | std::string_view value); | ||
| 404 | void EmitStorageAtomicOr32(EmitContext& ctx, const IR::Value& binding, const IR::Value& offset, | ||
| 405 | std::string_view value); | ||
| 406 | void EmitStorageAtomicXor32(EmitContext& ctx, const IR::Value& binding, const IR::Value& offset, | ||
| 407 | std::string_view value); | ||
| 408 | void EmitStorageAtomicExchange32(EmitContext& ctx, const IR::Value& binding, | ||
| 409 | const IR::Value& offset, std::string_view value); | ||
| 410 | void EmitStorageAtomicIAdd64(EmitContext& ctx, const IR::Value& binding, const IR::Value& offset, | ||
| 411 | std::string_view value); | ||
| 412 | void EmitStorageAtomicSMin64(EmitContext& ctx, const IR::Value& binding, const IR::Value& offset, | ||
| 413 | std::string_view value); | ||
| 414 | void EmitStorageAtomicUMin64(EmitContext& ctx, const IR::Value& binding, const IR::Value& offset, | ||
| 415 | std::string_view value); | ||
| 416 | void EmitStorageAtomicSMax64(EmitContext& ctx, const IR::Value& binding, const IR::Value& offset, | ||
| 417 | std::string_view value); | ||
| 418 | void EmitStorageAtomicUMax64(EmitContext& ctx, const IR::Value& binding, const IR::Value& offset, | ||
| 419 | std::string_view value); | ||
| 420 | void EmitStorageAtomicAnd64(EmitContext& ctx, const IR::Value& binding, const IR::Value& offset, | ||
| 421 | std::string_view value); | ||
| 422 | void EmitStorageAtomicOr64(EmitContext& ctx, const IR::Value& binding, const IR::Value& offset, | ||
| 423 | std::string_view value); | ||
| 424 | void EmitStorageAtomicXor64(EmitContext& ctx, const IR::Value& binding, const IR::Value& offset, | ||
| 425 | std::string_view value); | ||
| 426 | void EmitStorageAtomicExchange64(EmitContext& ctx, const IR::Value& binding, | ||
| 427 | const IR::Value& offset, std::string_view value); | ||
| 428 | void EmitStorageAtomicAddF32(EmitContext& ctx, const IR::Value& binding, const IR::Value& offset, | ||
| 429 | std::string_view value); | ||
| 430 | void EmitStorageAtomicAddF16x2(EmitContext& ctx, const IR::Value& binding, const IR::Value& offset, | ||
| 431 | std::string_view value); | ||
| 432 | void EmitStorageAtomicAddF32x2(EmitContext& ctx, const IR::Value& binding, const IR::Value& offset, | ||
| 433 | std::string_view value); | ||
| 434 | void EmitStorageAtomicMinF16x2(EmitContext& ctx, const IR::Value& binding, const IR::Value& offset, | ||
| 435 | std::string_view value); | ||
| 436 | void EmitStorageAtomicMinF32x2(EmitContext& ctx, const IR::Value& binding, const IR::Value& offset, | ||
| 437 | std::string_view value); | ||
| 438 | void EmitStorageAtomicMaxF16x2(EmitContext& ctx, const IR::Value& binding, const IR::Value& offset, | ||
| 439 | std::string_view value); | ||
| 440 | void EmitStorageAtomicMaxF32x2(EmitContext& ctx, const IR::Value& binding, const IR::Value& offset, | ||
| 441 | std::string_view value); | ||
| 442 | void EmitGlobalAtomicIAdd32(EmitContext& ctx); | ||
| 443 | void EmitGlobalAtomicSMin32(EmitContext& ctx); | ||
| 444 | void EmitGlobalAtomicUMin32(EmitContext& ctx); | ||
| 445 | void EmitGlobalAtomicSMax32(EmitContext& ctx); | ||
| 446 | void EmitGlobalAtomicUMax32(EmitContext& ctx); | ||
| 447 | void EmitGlobalAtomicInc32(EmitContext& ctx); | ||
| 448 | void EmitGlobalAtomicDec32(EmitContext& ctx); | ||
| 449 | void EmitGlobalAtomicAnd32(EmitContext& ctx); | ||
| 450 | void EmitGlobalAtomicOr32(EmitContext& ctx); | ||
| 451 | void EmitGlobalAtomicXor32(EmitContext& ctx); | ||
| 452 | void EmitGlobalAtomicExchange32(EmitContext& ctx); | ||
| 453 | void EmitGlobalAtomicIAdd64(EmitContext& ctx); | ||
| 454 | void EmitGlobalAtomicSMin64(EmitContext& ctx); | ||
| 455 | void EmitGlobalAtomicUMin64(EmitContext& ctx); | ||
| 456 | void EmitGlobalAtomicSMax64(EmitContext& ctx); | ||
| 457 | void EmitGlobalAtomicUMax64(EmitContext& ctx); | ||
| 458 | void EmitGlobalAtomicInc64(EmitContext& ctx); | ||
| 459 | void EmitGlobalAtomicDec64(EmitContext& ctx); | ||
| 460 | void EmitGlobalAtomicAnd64(EmitContext& ctx); | ||
| 461 | void EmitGlobalAtomicOr64(EmitContext& ctx); | ||
| 462 | void EmitGlobalAtomicXor64(EmitContext& ctx); | ||
| 463 | void EmitGlobalAtomicExchange64(EmitContext& ctx); | ||
| 464 | void EmitGlobalAtomicAddF32(EmitContext& ctx); | ||
| 465 | void EmitGlobalAtomicAddF16x2(EmitContext& ctx); | ||
| 466 | void EmitGlobalAtomicAddF32x2(EmitContext& ctx); | ||
| 467 | void EmitGlobalAtomicMinF16x2(EmitContext& ctx); | ||
| 468 | void EmitGlobalAtomicMinF32x2(EmitContext& ctx); | ||
| 469 | void EmitGlobalAtomicMaxF16x2(EmitContext& ctx); | ||
| 470 | void EmitGlobalAtomicMaxF32x2(EmitContext& ctx); | ||
| 471 | void EmitLogicalOr(EmitContext& ctx, std::string_view a, std::string_view b); | ||
| 472 | void EmitLogicalAnd(EmitContext& ctx, std::string_view a, std::string_view b); | ||
| 473 | void EmitLogicalXor(EmitContext& ctx, std::string_view a, std::string_view b); | ||
| 474 | void EmitLogicalNot(EmitContext& ctx, std::string_view value); | ||
| 475 | void EmitConvertS16F16(EmitContext& ctx, std::string_view value); | ||
| 476 | void EmitConvertS16F32(EmitContext& ctx, std::string_view value); | ||
| 477 | void EmitConvertS16F64(EmitContext& ctx, std::string_view value); | ||
| 478 | void EmitConvertS32F16(EmitContext& ctx, std::string_view value); | ||
| 479 | void EmitConvertS32F32(EmitContext& ctx, std::string_view value); | ||
| 480 | void EmitConvertS32F64(EmitContext& ctx, std::string_view value); | ||
| 481 | void EmitConvertS64F16(EmitContext& ctx, std::string_view value); | ||
| 482 | void EmitConvertS64F32(EmitContext& ctx, std::string_view value); | ||
| 483 | void EmitConvertS64F64(EmitContext& ctx, std::string_view value); | ||
| 484 | void EmitConvertU16F16(EmitContext& ctx, std::string_view value); | ||
| 485 | void EmitConvertU16F32(EmitContext& ctx, std::string_view value); | ||
| 486 | void EmitConvertU16F64(EmitContext& ctx, std::string_view value); | ||
| 487 | void EmitConvertU32F16(EmitContext& ctx, std::string_view value); | ||
| 488 | void EmitConvertU32F32(EmitContext& ctx, std::string_view value); | ||
| 489 | void EmitConvertU32F64(EmitContext& ctx, std::string_view value); | ||
| 490 | void EmitConvertU64F16(EmitContext& ctx, std::string_view value); | ||
| 491 | void EmitConvertU64F32(EmitContext& ctx, std::string_view value); | ||
| 492 | void EmitConvertU64F64(EmitContext& ctx, std::string_view value); | ||
| 493 | void EmitConvertU64U32(EmitContext& ctx, std::string_view value); | ||
| 494 | void EmitConvertU32U64(EmitContext& ctx, std::string_view value); | ||
| 495 | void EmitConvertF16F32(EmitContext& ctx, std::string_view value); | ||
| 496 | void EmitConvertF32F16(EmitContext& ctx, std::string_view value); | ||
| 497 | void EmitConvertF32F64(EmitContext& ctx, std::string_view value); | ||
| 498 | void EmitConvertF64F32(EmitContext& ctx, std::string_view value); | ||
| 499 | void EmitConvertF16S8(EmitContext& ctx, std::string_view value); | ||
| 500 | void EmitConvertF16S16(EmitContext& ctx, std::string_view value); | ||
| 501 | void EmitConvertF16S32(EmitContext& ctx, std::string_view value); | ||
| 502 | void EmitConvertF16S64(EmitContext& ctx, std::string_view value); | ||
| 503 | void EmitConvertF16U8(EmitContext& ctx, std::string_view value); | ||
| 504 | void EmitConvertF16U16(EmitContext& ctx, std::string_view value); | ||
| 505 | void EmitConvertF16U32(EmitContext& ctx, std::string_view value); | ||
| 506 | void EmitConvertF16U64(EmitContext& ctx, std::string_view value); | ||
| 507 | void EmitConvertF32S8(EmitContext& ctx, std::string_view value); | ||
| 508 | void EmitConvertF32S16(EmitContext& ctx, std::string_view value); | ||
| 509 | void EmitConvertF32S32(EmitContext& ctx, std::string_view value); | ||
| 510 | void EmitConvertF32S64(EmitContext& ctx, std::string_view value); | ||
| 511 | void EmitConvertF32U8(EmitContext& ctx, std::string_view value); | ||
| 512 | void EmitConvertF32U16(EmitContext& ctx, std::string_view value); | ||
| 513 | void EmitConvertF32U32(EmitContext& ctx, std::string_view value); | ||
| 514 | void EmitConvertF32U64(EmitContext& ctx, std::string_view value); | ||
| 515 | void EmitConvertF64S8(EmitContext& ctx, std::string_view value); | ||
| 516 | void EmitConvertF64S16(EmitContext& ctx, std::string_view value); | ||
| 517 | void EmitConvertF64S32(EmitContext& ctx, std::string_view value); | ||
| 518 | void EmitConvertF64S64(EmitContext& ctx, std::string_view value); | ||
| 519 | void EmitConvertF64U8(EmitContext& ctx, std::string_view value); | ||
| 520 | void EmitConvertF64U16(EmitContext& ctx, std::string_view value); | ||
| 521 | void EmitConvertF64U32(EmitContext& ctx, std::string_view value); | ||
| 522 | void EmitConvertF64U64(EmitContext& ctx, std::string_view value); | ||
| 523 | void EmitBindlessImageSampleImplicitLod(EmitContext&); | ||
| 524 | void EmitBindlessImageSampleExplicitLod(EmitContext&); | ||
| 525 | void EmitBindlessImageSampleDrefImplicitLod(EmitContext&); | ||
| 526 | void EmitBindlessImageSampleDrefExplicitLod(EmitContext&); | ||
| 527 | void EmitBindlessImageGather(EmitContext&); | ||
| 528 | void EmitBindlessImageGatherDref(EmitContext&); | ||
| 529 | void EmitBindlessImageFetch(EmitContext&); | ||
| 530 | void EmitBindlessImageQueryDimensions(EmitContext&); | ||
| 531 | void EmitBindlessImageQueryLod(EmitContext&); | ||
| 532 | void EmitBindlessImageGradient(EmitContext&); | ||
| 533 | void EmitBindlessImageRead(EmitContext&); | ||
| 534 | void EmitBindlessImageWrite(EmitContext&); | ||
| 535 | void EmitBoundImageSampleImplicitLod(EmitContext&); | ||
| 536 | void EmitBoundImageSampleExplicitLod(EmitContext&); | ||
| 537 | void EmitBoundImageSampleDrefImplicitLod(EmitContext&); | ||
| 538 | void EmitBoundImageSampleDrefExplicitLod(EmitContext&); | ||
| 539 | void EmitBoundImageGather(EmitContext&); | ||
| 540 | void EmitBoundImageGatherDref(EmitContext&); | ||
| 541 | void EmitBoundImageFetch(EmitContext&); | ||
| 542 | void EmitBoundImageQueryDimensions(EmitContext&); | ||
| 543 | void EmitBoundImageQueryLod(EmitContext&); | ||
| 544 | void EmitBoundImageGradient(EmitContext&); | ||
| 545 | void EmitBoundImageRead(EmitContext&); | ||
| 546 | void EmitBoundImageWrite(EmitContext&); | ||
| 547 | void EmitImageSampleImplicitLod(EmitContext& ctx, IR::Inst* inst, const IR::Value& index, | ||
| 548 | std::string_view coords, std::string_view bias_lc, | ||
| 549 | const IR::Value& offset); | ||
| 550 | void EmitImageSampleExplicitLod(EmitContext& ctx, IR::Inst* inst, const IR::Value& index, | ||
| 551 | std::string_view coords, std::string_view lod_lc, | ||
| 552 | const IR::Value& offset); | ||
| 553 | void EmitImageSampleDrefImplicitLod(EmitContext& ctx, IR::Inst* inst, const IR::Value& index, | ||
| 554 | std::string_view coords, std::string_view dref, | ||
| 555 | std::string_view bias_lc, const IR::Value& offset); | ||
| 556 | void EmitImageSampleDrefExplicitLod(EmitContext& ctx, IR::Inst* inst, const IR::Value& index, | ||
| 557 | std::string_view coords, std::string_view dref, | ||
| 558 | std::string_view lod_lc, const IR::Value& offset); | ||
| 559 | void EmitImageGather(EmitContext& ctx, IR::Inst* inst, const IR::Value& index, | ||
| 560 | std::string_view coords, const IR::Value& offset, const IR::Value& offset2); | ||
| 561 | void EmitImageGatherDref(EmitContext& ctx, IR::Inst* inst, const IR::Value& index, | ||
| 562 | std::string_view coords, const IR::Value& offset, const IR::Value& offset2, | ||
| 563 | std::string_view dref); | ||
| 564 | void EmitImageFetch(EmitContext& ctx, IR::Inst* inst, const IR::Value& index, | ||
| 565 | std::string_view coords, std::string_view offset, std::string_view lod, | ||
| 566 | std::string_view ms); | ||
| 567 | void EmitImageQueryDimensions(EmitContext& ctx, IR::Inst* inst, const IR::Value& index, | ||
| 568 | std::string_view lod); | ||
| 569 | void EmitImageQueryLod(EmitContext& ctx, IR::Inst* inst, const IR::Value& index, | ||
| 570 | std::string_view coords); | ||
| 571 | void EmitImageGradient(EmitContext& ctx, IR::Inst* inst, const IR::Value& index, | ||
| 572 | std::string_view coords, std::string_view derivates, std::string_view offset, | ||
| 573 | std::string_view lod_clamp); | ||
| 574 | void EmitImageRead(EmitContext& ctx, IR::Inst* inst, const IR::Value& index, | ||
| 575 | std::string_view coords); | ||
| 576 | void EmitImageWrite(EmitContext& ctx, IR::Inst* inst, const IR::Value& index, | ||
| 577 | std::string_view coords, std::string_view color); | ||
| 578 | void EmitBindlessImageAtomicIAdd32(EmitContext&); | ||
| 579 | void EmitBindlessImageAtomicSMin32(EmitContext&); | ||
| 580 | void EmitBindlessImageAtomicUMin32(EmitContext&); | ||
| 581 | void EmitBindlessImageAtomicSMax32(EmitContext&); | ||
| 582 | void EmitBindlessImageAtomicUMax32(EmitContext&); | ||
| 583 | void EmitBindlessImageAtomicInc32(EmitContext&); | ||
| 584 | void EmitBindlessImageAtomicDec32(EmitContext&); | ||
| 585 | void EmitBindlessImageAtomicAnd32(EmitContext&); | ||
| 586 | void EmitBindlessImageAtomicOr32(EmitContext&); | ||
| 587 | void EmitBindlessImageAtomicXor32(EmitContext&); | ||
| 588 | void EmitBindlessImageAtomicExchange32(EmitContext&); | ||
| 589 | void EmitBoundImageAtomicIAdd32(EmitContext&); | ||
| 590 | void EmitBoundImageAtomicSMin32(EmitContext&); | ||
| 591 | void EmitBoundImageAtomicUMin32(EmitContext&); | ||
| 592 | void EmitBoundImageAtomicSMax32(EmitContext&); | ||
| 593 | void EmitBoundImageAtomicUMax32(EmitContext&); | ||
| 594 | void EmitBoundImageAtomicInc32(EmitContext&); | ||
| 595 | void EmitBoundImageAtomicDec32(EmitContext&); | ||
| 596 | void EmitBoundImageAtomicAnd32(EmitContext&); | ||
| 597 | void EmitBoundImageAtomicOr32(EmitContext&); | ||
| 598 | void EmitBoundImageAtomicXor32(EmitContext&); | ||
| 599 | void EmitBoundImageAtomicExchange32(EmitContext&); | ||
| 600 | void EmitImageAtomicIAdd32(EmitContext& ctx, IR::Inst* inst, const IR::Value& index, | ||
| 601 | std::string_view coords, std::string_view value); | ||
| 602 | void EmitImageAtomicSMin32(EmitContext& ctx, IR::Inst* inst, const IR::Value& index, | ||
| 603 | std::string_view coords, std::string_view value); | ||
| 604 | void EmitImageAtomicUMin32(EmitContext& ctx, IR::Inst* inst, const IR::Value& index, | ||
| 605 | std::string_view coords, std::string_view value); | ||
| 606 | void EmitImageAtomicSMax32(EmitContext& ctx, IR::Inst* inst, const IR::Value& index, | ||
| 607 | std::string_view coords, std::string_view value); | ||
| 608 | void EmitImageAtomicUMax32(EmitContext& ctx, IR::Inst* inst, const IR::Value& index, | ||
| 609 | std::string_view coords, std::string_view value); | ||
| 610 | void EmitImageAtomicInc32(EmitContext& ctx, IR::Inst* inst, const IR::Value& index, | ||
| 611 | std::string_view coords, std::string_view value); | ||
| 612 | void EmitImageAtomicDec32(EmitContext& ctx, IR::Inst* inst, const IR::Value& index, | ||
| 613 | std::string_view coords, std::string_view value); | ||
| 614 | void EmitImageAtomicAnd32(EmitContext& ctx, IR::Inst* inst, const IR::Value& index, | ||
| 615 | std::string_view coords, std::string_view value); | ||
| 616 | void EmitImageAtomicOr32(EmitContext& ctx, IR::Inst* inst, const IR::Value& index, | ||
| 617 | std::string_view coords, std::string_view value); | ||
| 618 | void EmitImageAtomicXor32(EmitContext& ctx, IR::Inst* inst, const IR::Value& index, | ||
| 619 | std::string_view coords, std::string_view value); | ||
| 620 | void EmitImageAtomicExchange32(EmitContext& ctx, IR::Inst* inst, const IR::Value& index, | ||
| 621 | std::string_view coords, std::string_view value); | ||
| 622 | void EmitLaneId(EmitContext& ctx); | ||
| 623 | void EmitVoteAll(EmitContext& ctx, std::string_view pred); | ||
| 624 | void EmitVoteAny(EmitContext& ctx, std::string_view pred); | ||
| 625 | void EmitVoteEqual(EmitContext& ctx, std::string_view pred); | ||
| 626 | void EmitSubgroupBallot(EmitContext& ctx, std::string_view pred); | ||
| 627 | void EmitSubgroupEqMask(EmitContext& ctx); | ||
| 628 | void EmitSubgroupLtMask(EmitContext& ctx); | ||
| 629 | void EmitSubgroupLeMask(EmitContext& ctx); | ||
| 630 | void EmitSubgroupGtMask(EmitContext& ctx); | ||
| 631 | void EmitSubgroupGeMask(EmitContext& ctx); | ||
| 632 | void EmitShuffleIndex(EmitContext& ctx, IR::Inst* inst, std::string_view value, | ||
| 633 | std::string_view index, std::string_view clamp, | ||
| 634 | std::string_view segmentation_mask); | ||
| 635 | void EmitShuffleUp(EmitContext& ctx, IR::Inst* inst, std::string_view value, std::string_view index, | ||
| 636 | std::string_view clamp, std::string_view segmentation_mask); | ||
| 637 | void EmitShuffleDown(EmitContext& ctx, IR::Inst* inst, std::string_view value, | ||
| 638 | std::string_view index, std::string_view clamp, | ||
| 639 | std::string_view segmentation_mask); | ||
| 640 | void EmitShuffleButterfly(EmitContext& ctx, IR::Inst* inst, std::string_view value, | ||
| 641 | std::string_view index, std::string_view clamp, | ||
| 642 | std::string_view segmentation_mask); | ||
| 643 | void EmitFSwizzleAdd(EmitContext& ctx, std::string_view op_a, std::string_view op_b, | ||
| 644 | std::string_view swizzle); | ||
| 645 | void EmitDPdxFine(EmitContext& ctx, std::string_view op_a); | ||
| 646 | void EmitDPdyFine(EmitContext& ctx, std::string_view op_a); | ||
| 647 | void EmitDPdxCoarse(EmitContext& ctx, std::string_view op_a); | ||
| 648 | void EmitDPdyCoarse(EmitContext& ctx, std::string_view op_a); | ||
| 649 | |||
| 650 | } // namespace Shader::Backend::GLASM | ||