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