| 1 | #ifdef GET_OPCODE_NAMES |
| 2 | OP_Activate, |
| 3 | #endif |
| 4 | #ifdef GET_INTERPFN_LIST |
| 5 | &Interp_Activate, |
| 6 | #endif |
| 7 | #ifdef GET_INTERPFN_DISPATCHERS |
| 8 | PRESERVE_NONE |
| 9 | static bool Interp_Activate(InterpState &S) { |
| 10 | Activate(S); |
| 11 | #if USE_TAILCALLS |
| 12 | MUSTTAIL return InterpNext(S); |
| 13 | #else |
| 14 | return true; |
| 15 | #endif |
| 16 | } |
| 17 | #endif |
| 18 | #ifdef GET_DISASM |
| 19 | case OP_Activate: |
| 20 | Text.Op = PrintName("Activate" ); |
| 21 | break; |
| 22 | #endif |
| 23 | #if defined(GET_EVAL_PROTO) || defined(GET_LINK_PROTO) |
| 24 | bool emitActivate(SourceInfo); |
| 25 | #endif |
| 26 | #ifdef GET_LINK_IMPL |
| 27 | bool ByteCodeEmitter::emitActivate(SourceInfo L) { |
| 28 | return emitOp<>(OP_Activate, L); |
| 29 | } |
| 30 | #endif |
| 31 | #ifdef GET_EVAL_IMPL |
| 32 | bool EvalEmitter::emitActivate(SourceInfo L) { |
| 33 | if (!isActive()) return true; |
| 34 | CurrentSource = L; |
| 35 | return Activate(S); |
| 36 | } |
| 37 | #endif |
| 38 | #ifdef GET_OPCODE_NAMES |
| 39 | OP_ActivateThisField, |
| 40 | #endif |
| 41 | #ifdef GET_INTERPFN_LIST |
| 42 | &Interp_ActivateThisField, |
| 43 | #endif |
| 44 | #ifdef GET_INTERPFN_DISPATCHERS |
| 45 | PRESERVE_NONE |
| 46 | static bool Interp_ActivateThisField(InterpState &S) { |
| 47 | { |
| 48 | const auto V0 = ReadArg<uint32_t>(S, S.PC); |
| 49 | if (!ActivateThisField(S, V0)) return false; |
| 50 | } |
| 51 | #if USE_TAILCALLS |
| 52 | MUSTTAIL return InterpNext(S); |
| 53 | #else |
| 54 | return true; |
| 55 | #endif |
| 56 | } |
| 57 | #endif |
| 58 | #ifdef GET_DISASM |
| 59 | case OP_ActivateThisField: |
| 60 | Text.Op = PrintName("ActivateThisField" ); |
| 61 | Text.Args.push_back(printArg<uint32_t>(PC)); |
| 62 | break; |
| 63 | #endif |
| 64 | #if defined(GET_EVAL_PROTO) || defined(GET_LINK_PROTO) |
| 65 | bool emitActivateThisField( uint32_t , SourceInfo); |
| 66 | #endif |
| 67 | #ifdef GET_LINK_IMPL |
| 68 | bool ByteCodeEmitter::emitActivateThisField( uint32_t A0, SourceInfo L) { |
| 69 | return emitOp<uint32_t>(OP_ActivateThisField, A0, L); |
| 70 | } |
| 71 | #endif |
| 72 | #ifdef GET_EVAL_IMPL |
| 73 | bool EvalEmitter::emitActivateThisField( uint32_t A0, SourceInfo L) { |
| 74 | if (!isActive()) return true; |
| 75 | CurrentSource = L; |
| 76 | return ActivateThisField(S, A0); |
| 77 | } |
| 78 | #endif |
| 79 | #ifdef GET_OPCODE_NAMES |
| 80 | OP_AddSint8, |
| 81 | OP_AddUint8, |
| 82 | OP_AddSint16, |
| 83 | OP_AddUint16, |
| 84 | OP_AddSint32, |
| 85 | OP_AddUint32, |
| 86 | OP_AddSint64, |
| 87 | OP_AddUint64, |
| 88 | OP_AddIntAP, |
| 89 | OP_AddIntAPS, |
| 90 | OP_AddBool, |
| 91 | OP_AddFixedPoint, |
| 92 | #endif |
| 93 | #ifdef GET_INTERPFN_LIST |
| 94 | &Interp_AddSint8, |
| 95 | &Interp_AddUint8, |
| 96 | &Interp_AddSint16, |
| 97 | &Interp_AddUint16, |
| 98 | &Interp_AddSint32, |
| 99 | &Interp_AddUint32, |
| 100 | &Interp_AddSint64, |
| 101 | &Interp_AddUint64, |
| 102 | &Interp_AddIntAP, |
| 103 | &Interp_AddIntAPS, |
| 104 | &Interp_AddBool, |
| 105 | &Interp_AddFixedPoint, |
| 106 | #endif |
| 107 | #ifdef GET_INTERPFN_DISPATCHERS |
| 108 | PRESERVE_NONE |
| 109 | static bool Interp_AddSint8(InterpState &S) { |
| 110 | if (!Add<PT_Sint8>(S, S.PC)) return false; |
| 111 | #if USE_TAILCALLS |
| 112 | MUSTTAIL return InterpNext(S); |
| 113 | #else |
| 114 | return true; |
| 115 | #endif |
| 116 | } |
| 117 | PRESERVE_NONE |
| 118 | static bool Interp_AddUint8(InterpState &S) { |
| 119 | if (!Add<PT_Uint8>(S, S.PC)) return false; |
| 120 | #if USE_TAILCALLS |
| 121 | MUSTTAIL return InterpNext(S); |
| 122 | #else |
| 123 | return true; |
| 124 | #endif |
| 125 | } |
| 126 | PRESERVE_NONE |
| 127 | static bool Interp_AddSint16(InterpState &S) { |
| 128 | if (!Add<PT_Sint16>(S, S.PC)) return false; |
| 129 | #if USE_TAILCALLS |
| 130 | MUSTTAIL return InterpNext(S); |
| 131 | #else |
| 132 | return true; |
| 133 | #endif |
| 134 | } |
| 135 | PRESERVE_NONE |
| 136 | static bool Interp_AddUint16(InterpState &S) { |
| 137 | if (!Add<PT_Uint16>(S, S.PC)) return false; |
| 138 | #if USE_TAILCALLS |
| 139 | MUSTTAIL return InterpNext(S); |
| 140 | #else |
| 141 | return true; |
| 142 | #endif |
| 143 | } |
| 144 | PRESERVE_NONE |
| 145 | static bool Interp_AddSint32(InterpState &S) { |
| 146 | if (!Add<PT_Sint32>(S, S.PC)) return false; |
| 147 | #if USE_TAILCALLS |
| 148 | MUSTTAIL return InterpNext(S); |
| 149 | #else |
| 150 | return true; |
| 151 | #endif |
| 152 | } |
| 153 | PRESERVE_NONE |
| 154 | static bool Interp_AddUint32(InterpState &S) { |
| 155 | if (!Add<PT_Uint32>(S, S.PC)) return false; |
| 156 | #if USE_TAILCALLS |
| 157 | MUSTTAIL return InterpNext(S); |
| 158 | #else |
| 159 | return true; |
| 160 | #endif |
| 161 | } |
| 162 | PRESERVE_NONE |
| 163 | static bool Interp_AddSint64(InterpState &S) { |
| 164 | if (!Add<PT_Sint64>(S, S.PC)) return false; |
| 165 | #if USE_TAILCALLS |
| 166 | MUSTTAIL return InterpNext(S); |
| 167 | #else |
| 168 | return true; |
| 169 | #endif |
| 170 | } |
| 171 | PRESERVE_NONE |
| 172 | static bool Interp_AddUint64(InterpState &S) { |
| 173 | if (!Add<PT_Uint64>(S, S.PC)) return false; |
| 174 | #if USE_TAILCALLS |
| 175 | MUSTTAIL return InterpNext(S); |
| 176 | #else |
| 177 | return true; |
| 178 | #endif |
| 179 | } |
| 180 | PRESERVE_NONE |
| 181 | static bool Interp_AddIntAP(InterpState &S) { |
| 182 | if (!Add<PT_IntAP>(S, S.PC)) return false; |
| 183 | #if USE_TAILCALLS |
| 184 | MUSTTAIL return InterpNext(S); |
| 185 | #else |
| 186 | return true; |
| 187 | #endif |
| 188 | } |
| 189 | PRESERVE_NONE |
| 190 | static bool Interp_AddIntAPS(InterpState &S) { |
| 191 | if (!Add<PT_IntAPS>(S, S.PC)) return false; |
| 192 | #if USE_TAILCALLS |
| 193 | MUSTTAIL return InterpNext(S); |
| 194 | #else |
| 195 | return true; |
| 196 | #endif |
| 197 | } |
| 198 | PRESERVE_NONE |
| 199 | static bool Interp_AddBool(InterpState &S) { |
| 200 | if (!Add<PT_Bool>(S, S.PC)) return false; |
| 201 | #if USE_TAILCALLS |
| 202 | MUSTTAIL return InterpNext(S); |
| 203 | #else |
| 204 | return true; |
| 205 | #endif |
| 206 | } |
| 207 | PRESERVE_NONE |
| 208 | static bool Interp_AddFixedPoint(InterpState &S) { |
| 209 | if (!Add<PT_FixedPoint>(S, S.PC)) return false; |
| 210 | #if USE_TAILCALLS |
| 211 | MUSTTAIL return InterpNext(S); |
| 212 | #else |
| 213 | return true; |
| 214 | #endif |
| 215 | } |
| 216 | #endif |
| 217 | #ifdef GET_DISASM |
| 218 | case OP_AddSint8: |
| 219 | Text.Op = PrintName("AddSint8" ); |
| 220 | break; |
| 221 | case OP_AddUint8: |
| 222 | Text.Op = PrintName("AddUint8" ); |
| 223 | break; |
| 224 | case OP_AddSint16: |
| 225 | Text.Op = PrintName("AddSint16" ); |
| 226 | break; |
| 227 | case OP_AddUint16: |
| 228 | Text.Op = PrintName("AddUint16" ); |
| 229 | break; |
| 230 | case OP_AddSint32: |
| 231 | Text.Op = PrintName("AddSint32" ); |
| 232 | break; |
| 233 | case OP_AddUint32: |
| 234 | Text.Op = PrintName("AddUint32" ); |
| 235 | break; |
| 236 | case OP_AddSint64: |
| 237 | Text.Op = PrintName("AddSint64" ); |
| 238 | break; |
| 239 | case OP_AddUint64: |
| 240 | Text.Op = PrintName("AddUint64" ); |
| 241 | break; |
| 242 | case OP_AddIntAP: |
| 243 | Text.Op = PrintName("AddIntAP" ); |
| 244 | break; |
| 245 | case OP_AddIntAPS: |
| 246 | Text.Op = PrintName("AddIntAPS" ); |
| 247 | break; |
| 248 | case OP_AddBool: |
| 249 | Text.Op = PrintName("AddBool" ); |
| 250 | break; |
| 251 | case OP_AddFixedPoint: |
| 252 | Text.Op = PrintName("AddFixedPoint" ); |
| 253 | break; |
| 254 | #endif |
| 255 | #if defined(GET_EVAL_PROTO) || defined(GET_LINK_PROTO) |
| 256 | bool emitAddSint8(SourceInfo); |
| 257 | bool emitAddUint8(SourceInfo); |
| 258 | bool emitAddSint16(SourceInfo); |
| 259 | bool emitAddUint16(SourceInfo); |
| 260 | bool emitAddSint32(SourceInfo); |
| 261 | bool emitAddUint32(SourceInfo); |
| 262 | bool emitAddSint64(SourceInfo); |
| 263 | bool emitAddUint64(SourceInfo); |
| 264 | bool emitAddIntAP(SourceInfo); |
| 265 | bool emitAddIntAPS(SourceInfo); |
| 266 | bool emitAddBool(SourceInfo); |
| 267 | bool emitAddFixedPoint(SourceInfo); |
| 268 | #endif |
| 269 | #if defined(GET_EVAL_PROTO) || defined(GET_LINK_PROTO) |
| 270 | [[nodiscard]] bool emitAdd(PrimType, SourceInfo I); |
| 271 | #endif |
| 272 | #if defined(GET_EVAL_IMPL) || defined(GET_LINK_IMPL) |
| 273 | bool |
| 274 | #if defined(GET_EVAL_IMPL) |
| 275 | EvalEmitter |
| 276 | #else |
| 277 | ByteCodeEmitter |
| 278 | #endif |
| 279 | ::emitAdd(PrimType T0, SourceInfo I) { |
| 280 | switch (T0) { |
| 281 | case PT_Sint8: |
| 282 | return emitAddSint8(I); |
| 283 | case PT_Uint8: |
| 284 | return emitAddUint8(I); |
| 285 | case PT_Sint16: |
| 286 | return emitAddSint16(I); |
| 287 | case PT_Uint16: |
| 288 | return emitAddUint16(I); |
| 289 | case PT_Sint32: |
| 290 | return emitAddSint32(I); |
| 291 | case PT_Uint32: |
| 292 | return emitAddUint32(I); |
| 293 | case PT_Sint64: |
| 294 | return emitAddSint64(I); |
| 295 | case PT_Uint64: |
| 296 | return emitAddUint64(I); |
| 297 | case PT_IntAP: |
| 298 | return emitAddIntAP(I); |
| 299 | case PT_IntAPS: |
| 300 | return emitAddIntAPS(I); |
| 301 | case PT_Bool: |
| 302 | return emitAddBool(I); |
| 303 | case PT_FixedPoint: |
| 304 | return emitAddFixedPoint(I); |
| 305 | default: llvm_unreachable("invalid type: emitAdd" ); |
| 306 | } |
| 307 | llvm_unreachable("invalid enum value" ); |
| 308 | } |
| 309 | #endif |
| 310 | #ifdef GET_LINK_IMPL |
| 311 | bool ByteCodeEmitter::emitAddSint8(SourceInfo L) { |
| 312 | return emitOp<>(OP_AddSint8, L); |
| 313 | } |
| 314 | bool ByteCodeEmitter::emitAddUint8(SourceInfo L) { |
| 315 | return emitOp<>(OP_AddUint8, L); |
| 316 | } |
| 317 | bool ByteCodeEmitter::emitAddSint16(SourceInfo L) { |
| 318 | return emitOp<>(OP_AddSint16, L); |
| 319 | } |
| 320 | bool ByteCodeEmitter::emitAddUint16(SourceInfo L) { |
| 321 | return emitOp<>(OP_AddUint16, L); |
| 322 | } |
| 323 | bool ByteCodeEmitter::emitAddSint32(SourceInfo L) { |
| 324 | return emitOp<>(OP_AddSint32, L); |
| 325 | } |
| 326 | bool ByteCodeEmitter::emitAddUint32(SourceInfo L) { |
| 327 | return emitOp<>(OP_AddUint32, L); |
| 328 | } |
| 329 | bool ByteCodeEmitter::emitAddSint64(SourceInfo L) { |
| 330 | return emitOp<>(OP_AddSint64, L); |
| 331 | } |
| 332 | bool ByteCodeEmitter::emitAddUint64(SourceInfo L) { |
| 333 | return emitOp<>(OP_AddUint64, L); |
| 334 | } |
| 335 | bool ByteCodeEmitter::emitAddIntAP(SourceInfo L) { |
| 336 | return emitOp<>(OP_AddIntAP, L); |
| 337 | } |
| 338 | bool ByteCodeEmitter::emitAddIntAPS(SourceInfo L) { |
| 339 | return emitOp<>(OP_AddIntAPS, L); |
| 340 | } |
| 341 | bool ByteCodeEmitter::emitAddBool(SourceInfo L) { |
| 342 | return emitOp<>(OP_AddBool, L); |
| 343 | } |
| 344 | bool ByteCodeEmitter::emitAddFixedPoint(SourceInfo L) { |
| 345 | return emitOp<>(OP_AddFixedPoint, L); |
| 346 | } |
| 347 | #endif |
| 348 | #ifdef GET_EVAL_IMPL |
| 349 | bool EvalEmitter::emitAddSint8(SourceInfo L) { |
| 350 | if (!isActive()) return true; |
| 351 | CurrentSource = L; |
| 352 | return Add<PT_Sint8>(S, CodePtr()); |
| 353 | } |
| 354 | bool EvalEmitter::emitAddUint8(SourceInfo L) { |
| 355 | if (!isActive()) return true; |
| 356 | CurrentSource = L; |
| 357 | return Add<PT_Uint8>(S, CodePtr()); |
| 358 | } |
| 359 | bool EvalEmitter::emitAddSint16(SourceInfo L) { |
| 360 | if (!isActive()) return true; |
| 361 | CurrentSource = L; |
| 362 | return Add<PT_Sint16>(S, CodePtr()); |
| 363 | } |
| 364 | bool EvalEmitter::emitAddUint16(SourceInfo L) { |
| 365 | if (!isActive()) return true; |
| 366 | CurrentSource = L; |
| 367 | return Add<PT_Uint16>(S, CodePtr()); |
| 368 | } |
| 369 | bool EvalEmitter::emitAddSint32(SourceInfo L) { |
| 370 | if (!isActive()) return true; |
| 371 | CurrentSource = L; |
| 372 | return Add<PT_Sint32>(S, CodePtr()); |
| 373 | } |
| 374 | bool EvalEmitter::emitAddUint32(SourceInfo L) { |
| 375 | if (!isActive()) return true; |
| 376 | CurrentSource = L; |
| 377 | return Add<PT_Uint32>(S, CodePtr()); |
| 378 | } |
| 379 | bool EvalEmitter::emitAddSint64(SourceInfo L) { |
| 380 | if (!isActive()) return true; |
| 381 | CurrentSource = L; |
| 382 | return Add<PT_Sint64>(S, CodePtr()); |
| 383 | } |
| 384 | bool EvalEmitter::emitAddUint64(SourceInfo L) { |
| 385 | if (!isActive()) return true; |
| 386 | CurrentSource = L; |
| 387 | return Add<PT_Uint64>(S, CodePtr()); |
| 388 | } |
| 389 | bool EvalEmitter::emitAddIntAP(SourceInfo L) { |
| 390 | if (!isActive()) return true; |
| 391 | CurrentSource = L; |
| 392 | return Add<PT_IntAP>(S, CodePtr()); |
| 393 | } |
| 394 | bool EvalEmitter::emitAddIntAPS(SourceInfo L) { |
| 395 | if (!isActive()) return true; |
| 396 | CurrentSource = L; |
| 397 | return Add<PT_IntAPS>(S, CodePtr()); |
| 398 | } |
| 399 | bool EvalEmitter::emitAddBool(SourceInfo L) { |
| 400 | if (!isActive()) return true; |
| 401 | CurrentSource = L; |
| 402 | return Add<PT_Bool>(S, CodePtr()); |
| 403 | } |
| 404 | bool EvalEmitter::emitAddFixedPoint(SourceInfo L) { |
| 405 | if (!isActive()) return true; |
| 406 | CurrentSource = L; |
| 407 | return Add<PT_FixedPoint>(S, CodePtr()); |
| 408 | } |
| 409 | #endif |
| 410 | #ifdef GET_OPCODE_NAMES |
| 411 | OP_AddOffsetSint8, |
| 412 | OP_AddOffsetUint8, |
| 413 | OP_AddOffsetSint16, |
| 414 | OP_AddOffsetUint16, |
| 415 | OP_AddOffsetSint32, |
| 416 | OP_AddOffsetUint32, |
| 417 | OP_AddOffsetSint64, |
| 418 | OP_AddOffsetUint64, |
| 419 | OP_AddOffsetIntAP, |
| 420 | OP_AddOffsetIntAPS, |
| 421 | OP_AddOffsetBool, |
| 422 | #endif |
| 423 | #ifdef GET_INTERPFN_LIST |
| 424 | &Interp_AddOffsetSint8, |
| 425 | &Interp_AddOffsetUint8, |
| 426 | &Interp_AddOffsetSint16, |
| 427 | &Interp_AddOffsetUint16, |
| 428 | &Interp_AddOffsetSint32, |
| 429 | &Interp_AddOffsetUint32, |
| 430 | &Interp_AddOffsetSint64, |
| 431 | &Interp_AddOffsetUint64, |
| 432 | &Interp_AddOffsetIntAP, |
| 433 | &Interp_AddOffsetIntAPS, |
| 434 | &Interp_AddOffsetBool, |
| 435 | #endif |
| 436 | #ifdef GET_INTERPFN_DISPATCHERS |
| 437 | PRESERVE_NONE |
| 438 | static bool Interp_AddOffsetSint8(InterpState &S) { |
| 439 | if (!AddOffset<PT_Sint8>(S, S.PC)) return false; |
| 440 | #if USE_TAILCALLS |
| 441 | MUSTTAIL return InterpNext(S); |
| 442 | #else |
| 443 | return true; |
| 444 | #endif |
| 445 | } |
| 446 | PRESERVE_NONE |
| 447 | static bool Interp_AddOffsetUint8(InterpState &S) { |
| 448 | if (!AddOffset<PT_Uint8>(S, S.PC)) return false; |
| 449 | #if USE_TAILCALLS |
| 450 | MUSTTAIL return InterpNext(S); |
| 451 | #else |
| 452 | return true; |
| 453 | #endif |
| 454 | } |
| 455 | PRESERVE_NONE |
| 456 | static bool Interp_AddOffsetSint16(InterpState &S) { |
| 457 | if (!AddOffset<PT_Sint16>(S, S.PC)) return false; |
| 458 | #if USE_TAILCALLS |
| 459 | MUSTTAIL return InterpNext(S); |
| 460 | #else |
| 461 | return true; |
| 462 | #endif |
| 463 | } |
| 464 | PRESERVE_NONE |
| 465 | static bool Interp_AddOffsetUint16(InterpState &S) { |
| 466 | if (!AddOffset<PT_Uint16>(S, S.PC)) return false; |
| 467 | #if USE_TAILCALLS |
| 468 | MUSTTAIL return InterpNext(S); |
| 469 | #else |
| 470 | return true; |
| 471 | #endif |
| 472 | } |
| 473 | PRESERVE_NONE |
| 474 | static bool Interp_AddOffsetSint32(InterpState &S) { |
| 475 | if (!AddOffset<PT_Sint32>(S, S.PC)) return false; |
| 476 | #if USE_TAILCALLS |
| 477 | MUSTTAIL return InterpNext(S); |
| 478 | #else |
| 479 | return true; |
| 480 | #endif |
| 481 | } |
| 482 | PRESERVE_NONE |
| 483 | static bool Interp_AddOffsetUint32(InterpState &S) { |
| 484 | if (!AddOffset<PT_Uint32>(S, S.PC)) return false; |
| 485 | #if USE_TAILCALLS |
| 486 | MUSTTAIL return InterpNext(S); |
| 487 | #else |
| 488 | return true; |
| 489 | #endif |
| 490 | } |
| 491 | PRESERVE_NONE |
| 492 | static bool Interp_AddOffsetSint64(InterpState &S) { |
| 493 | if (!AddOffset<PT_Sint64>(S, S.PC)) return false; |
| 494 | #if USE_TAILCALLS |
| 495 | MUSTTAIL return InterpNext(S); |
| 496 | #else |
| 497 | return true; |
| 498 | #endif |
| 499 | } |
| 500 | PRESERVE_NONE |
| 501 | static bool Interp_AddOffsetUint64(InterpState &S) { |
| 502 | if (!AddOffset<PT_Uint64>(S, S.PC)) return false; |
| 503 | #if USE_TAILCALLS |
| 504 | MUSTTAIL return InterpNext(S); |
| 505 | #else |
| 506 | return true; |
| 507 | #endif |
| 508 | } |
| 509 | PRESERVE_NONE |
| 510 | static bool Interp_AddOffsetIntAP(InterpState &S) { |
| 511 | if (!AddOffset<PT_IntAP>(S, S.PC)) return false; |
| 512 | #if USE_TAILCALLS |
| 513 | MUSTTAIL return InterpNext(S); |
| 514 | #else |
| 515 | return true; |
| 516 | #endif |
| 517 | } |
| 518 | PRESERVE_NONE |
| 519 | static bool Interp_AddOffsetIntAPS(InterpState &S) { |
| 520 | if (!AddOffset<PT_IntAPS>(S, S.PC)) return false; |
| 521 | #if USE_TAILCALLS |
| 522 | MUSTTAIL return InterpNext(S); |
| 523 | #else |
| 524 | return true; |
| 525 | #endif |
| 526 | } |
| 527 | PRESERVE_NONE |
| 528 | static bool Interp_AddOffsetBool(InterpState &S) { |
| 529 | if (!AddOffset<PT_Bool>(S, S.PC)) return false; |
| 530 | #if USE_TAILCALLS |
| 531 | MUSTTAIL return InterpNext(S); |
| 532 | #else |
| 533 | return true; |
| 534 | #endif |
| 535 | } |
| 536 | #endif |
| 537 | #ifdef GET_DISASM |
| 538 | case OP_AddOffsetSint8: |
| 539 | Text.Op = PrintName("AddOffsetSint8" ); |
| 540 | break; |
| 541 | case OP_AddOffsetUint8: |
| 542 | Text.Op = PrintName("AddOffsetUint8" ); |
| 543 | break; |
| 544 | case OP_AddOffsetSint16: |
| 545 | Text.Op = PrintName("AddOffsetSint16" ); |
| 546 | break; |
| 547 | case OP_AddOffsetUint16: |
| 548 | Text.Op = PrintName("AddOffsetUint16" ); |
| 549 | break; |
| 550 | case OP_AddOffsetSint32: |
| 551 | Text.Op = PrintName("AddOffsetSint32" ); |
| 552 | break; |
| 553 | case OP_AddOffsetUint32: |
| 554 | Text.Op = PrintName("AddOffsetUint32" ); |
| 555 | break; |
| 556 | case OP_AddOffsetSint64: |
| 557 | Text.Op = PrintName("AddOffsetSint64" ); |
| 558 | break; |
| 559 | case OP_AddOffsetUint64: |
| 560 | Text.Op = PrintName("AddOffsetUint64" ); |
| 561 | break; |
| 562 | case OP_AddOffsetIntAP: |
| 563 | Text.Op = PrintName("AddOffsetIntAP" ); |
| 564 | break; |
| 565 | case OP_AddOffsetIntAPS: |
| 566 | Text.Op = PrintName("AddOffsetIntAPS" ); |
| 567 | break; |
| 568 | case OP_AddOffsetBool: |
| 569 | Text.Op = PrintName("AddOffsetBool" ); |
| 570 | break; |
| 571 | #endif |
| 572 | #if defined(GET_EVAL_PROTO) || defined(GET_LINK_PROTO) |
| 573 | bool emitAddOffsetSint8(SourceInfo); |
| 574 | bool emitAddOffsetUint8(SourceInfo); |
| 575 | bool emitAddOffsetSint16(SourceInfo); |
| 576 | bool emitAddOffsetUint16(SourceInfo); |
| 577 | bool emitAddOffsetSint32(SourceInfo); |
| 578 | bool emitAddOffsetUint32(SourceInfo); |
| 579 | bool emitAddOffsetSint64(SourceInfo); |
| 580 | bool emitAddOffsetUint64(SourceInfo); |
| 581 | bool emitAddOffsetIntAP(SourceInfo); |
| 582 | bool emitAddOffsetIntAPS(SourceInfo); |
| 583 | bool emitAddOffsetBool(SourceInfo); |
| 584 | #endif |
| 585 | #if defined(GET_EVAL_PROTO) || defined(GET_LINK_PROTO) |
| 586 | [[nodiscard]] bool emitAddOffset(PrimType, SourceInfo I); |
| 587 | #endif |
| 588 | #if defined(GET_EVAL_IMPL) || defined(GET_LINK_IMPL) |
| 589 | bool |
| 590 | #if defined(GET_EVAL_IMPL) |
| 591 | EvalEmitter |
| 592 | #else |
| 593 | ByteCodeEmitter |
| 594 | #endif |
| 595 | ::emitAddOffset(PrimType T0, SourceInfo I) { |
| 596 | switch (T0) { |
| 597 | case PT_Sint8: |
| 598 | return emitAddOffsetSint8(I); |
| 599 | case PT_Uint8: |
| 600 | return emitAddOffsetUint8(I); |
| 601 | case PT_Sint16: |
| 602 | return emitAddOffsetSint16(I); |
| 603 | case PT_Uint16: |
| 604 | return emitAddOffsetUint16(I); |
| 605 | case PT_Sint32: |
| 606 | return emitAddOffsetSint32(I); |
| 607 | case PT_Uint32: |
| 608 | return emitAddOffsetUint32(I); |
| 609 | case PT_Sint64: |
| 610 | return emitAddOffsetSint64(I); |
| 611 | case PT_Uint64: |
| 612 | return emitAddOffsetUint64(I); |
| 613 | case PT_IntAP: |
| 614 | return emitAddOffsetIntAP(I); |
| 615 | case PT_IntAPS: |
| 616 | return emitAddOffsetIntAPS(I); |
| 617 | case PT_Bool: |
| 618 | return emitAddOffsetBool(I); |
| 619 | default: llvm_unreachable("invalid type: emitAddOffset" ); |
| 620 | } |
| 621 | llvm_unreachable("invalid enum value" ); |
| 622 | } |
| 623 | #endif |
| 624 | #ifdef GET_LINK_IMPL |
| 625 | bool ByteCodeEmitter::emitAddOffsetSint8(SourceInfo L) { |
| 626 | return emitOp<>(OP_AddOffsetSint8, L); |
| 627 | } |
| 628 | bool ByteCodeEmitter::emitAddOffsetUint8(SourceInfo L) { |
| 629 | return emitOp<>(OP_AddOffsetUint8, L); |
| 630 | } |
| 631 | bool ByteCodeEmitter::emitAddOffsetSint16(SourceInfo L) { |
| 632 | return emitOp<>(OP_AddOffsetSint16, L); |
| 633 | } |
| 634 | bool ByteCodeEmitter::emitAddOffsetUint16(SourceInfo L) { |
| 635 | return emitOp<>(OP_AddOffsetUint16, L); |
| 636 | } |
| 637 | bool ByteCodeEmitter::emitAddOffsetSint32(SourceInfo L) { |
| 638 | return emitOp<>(OP_AddOffsetSint32, L); |
| 639 | } |
| 640 | bool ByteCodeEmitter::emitAddOffsetUint32(SourceInfo L) { |
| 641 | return emitOp<>(OP_AddOffsetUint32, L); |
| 642 | } |
| 643 | bool ByteCodeEmitter::emitAddOffsetSint64(SourceInfo L) { |
| 644 | return emitOp<>(OP_AddOffsetSint64, L); |
| 645 | } |
| 646 | bool ByteCodeEmitter::emitAddOffsetUint64(SourceInfo L) { |
| 647 | return emitOp<>(OP_AddOffsetUint64, L); |
| 648 | } |
| 649 | bool ByteCodeEmitter::emitAddOffsetIntAP(SourceInfo L) { |
| 650 | return emitOp<>(OP_AddOffsetIntAP, L); |
| 651 | } |
| 652 | bool ByteCodeEmitter::emitAddOffsetIntAPS(SourceInfo L) { |
| 653 | return emitOp<>(OP_AddOffsetIntAPS, L); |
| 654 | } |
| 655 | bool ByteCodeEmitter::emitAddOffsetBool(SourceInfo L) { |
| 656 | return emitOp<>(OP_AddOffsetBool, L); |
| 657 | } |
| 658 | #endif |
| 659 | #ifdef GET_EVAL_IMPL |
| 660 | bool EvalEmitter::emitAddOffsetSint8(SourceInfo L) { |
| 661 | if (!isActive()) return true; |
| 662 | CurrentSource = L; |
| 663 | return AddOffset<PT_Sint8>(S, CodePtr()); |
| 664 | } |
| 665 | bool EvalEmitter::emitAddOffsetUint8(SourceInfo L) { |
| 666 | if (!isActive()) return true; |
| 667 | CurrentSource = L; |
| 668 | return AddOffset<PT_Uint8>(S, CodePtr()); |
| 669 | } |
| 670 | bool EvalEmitter::emitAddOffsetSint16(SourceInfo L) { |
| 671 | if (!isActive()) return true; |
| 672 | CurrentSource = L; |
| 673 | return AddOffset<PT_Sint16>(S, CodePtr()); |
| 674 | } |
| 675 | bool EvalEmitter::emitAddOffsetUint16(SourceInfo L) { |
| 676 | if (!isActive()) return true; |
| 677 | CurrentSource = L; |
| 678 | return AddOffset<PT_Uint16>(S, CodePtr()); |
| 679 | } |
| 680 | bool EvalEmitter::emitAddOffsetSint32(SourceInfo L) { |
| 681 | if (!isActive()) return true; |
| 682 | CurrentSource = L; |
| 683 | return AddOffset<PT_Sint32>(S, CodePtr()); |
| 684 | } |
| 685 | bool EvalEmitter::emitAddOffsetUint32(SourceInfo L) { |
| 686 | if (!isActive()) return true; |
| 687 | CurrentSource = L; |
| 688 | return AddOffset<PT_Uint32>(S, CodePtr()); |
| 689 | } |
| 690 | bool EvalEmitter::emitAddOffsetSint64(SourceInfo L) { |
| 691 | if (!isActive()) return true; |
| 692 | CurrentSource = L; |
| 693 | return AddOffset<PT_Sint64>(S, CodePtr()); |
| 694 | } |
| 695 | bool EvalEmitter::emitAddOffsetUint64(SourceInfo L) { |
| 696 | if (!isActive()) return true; |
| 697 | CurrentSource = L; |
| 698 | return AddOffset<PT_Uint64>(S, CodePtr()); |
| 699 | } |
| 700 | bool EvalEmitter::emitAddOffsetIntAP(SourceInfo L) { |
| 701 | if (!isActive()) return true; |
| 702 | CurrentSource = L; |
| 703 | return AddOffset<PT_IntAP>(S, CodePtr()); |
| 704 | } |
| 705 | bool EvalEmitter::emitAddOffsetIntAPS(SourceInfo L) { |
| 706 | if (!isActive()) return true; |
| 707 | CurrentSource = L; |
| 708 | return AddOffset<PT_IntAPS>(S, CodePtr()); |
| 709 | } |
| 710 | bool EvalEmitter::emitAddOffsetBool(SourceInfo L) { |
| 711 | if (!isActive()) return true; |
| 712 | CurrentSource = L; |
| 713 | return AddOffset<PT_Bool>(S, CodePtr()); |
| 714 | } |
| 715 | #endif |
| 716 | #ifdef GET_OPCODE_NAMES |
| 717 | OP_Addf, |
| 718 | #endif |
| 719 | #ifdef GET_INTERPFN_LIST |
| 720 | &Interp_Addf, |
| 721 | #endif |
| 722 | #ifdef GET_INTERPFN_DISPATCHERS |
| 723 | PRESERVE_NONE |
| 724 | static bool Interp_Addf(InterpState &S) { |
| 725 | { |
| 726 | CodePtr OpPC = S.PC; |
| 727 | const auto V0 = ReadArg<uint32_t>(S, S.PC); |
| 728 | if (!Addf(S, OpPC, V0)) return false; |
| 729 | } |
| 730 | #if USE_TAILCALLS |
| 731 | MUSTTAIL return InterpNext(S); |
| 732 | #else |
| 733 | return true; |
| 734 | #endif |
| 735 | } |
| 736 | #endif |
| 737 | #ifdef GET_DISASM |
| 738 | case OP_Addf: |
| 739 | Text.Op = PrintName("Addf" ); |
| 740 | Text.Args.push_back(printArg<uint32_t>(PC)); |
| 741 | break; |
| 742 | #endif |
| 743 | #if defined(GET_EVAL_PROTO) || defined(GET_LINK_PROTO) |
| 744 | bool emitAddf( uint32_t , SourceInfo); |
| 745 | #endif |
| 746 | #ifdef GET_LINK_IMPL |
| 747 | bool ByteCodeEmitter::emitAddf( uint32_t A0, SourceInfo L) { |
| 748 | return emitOp<uint32_t>(OP_Addf, A0, L); |
| 749 | } |
| 750 | #endif |
| 751 | #ifdef GET_EVAL_IMPL |
| 752 | bool EvalEmitter::emitAddf( uint32_t A0, SourceInfo L) { |
| 753 | if (!isActive()) return true; |
| 754 | CurrentSource = L; |
| 755 | return Addf(S, CodePtr(), A0); |
| 756 | } |
| 757 | #endif |
| 758 | #ifdef GET_OPCODE_NAMES |
| 759 | OP_AddrOf, |
| 760 | #endif |
| 761 | #ifdef GET_INTERPFN_LIST |
| 762 | &Interp_AddrOf, |
| 763 | #endif |
| 764 | #ifdef GET_INTERPFN_DISPATCHERS |
| 765 | PRESERVE_NONE |
| 766 | static bool Interp_AddrOf(InterpState &S) { |
| 767 | if (!AddrOf(S, S.PC)) return false; |
| 768 | #if USE_TAILCALLS |
| 769 | MUSTTAIL return InterpNext(S); |
| 770 | #else |
| 771 | return true; |
| 772 | #endif |
| 773 | } |
| 774 | #endif |
| 775 | #ifdef GET_DISASM |
| 776 | case OP_AddrOf: |
| 777 | Text.Op = PrintName("AddrOf" ); |
| 778 | break; |
| 779 | #endif |
| 780 | #if defined(GET_EVAL_PROTO) || defined(GET_LINK_PROTO) |
| 781 | bool emitAddrOf(SourceInfo); |
| 782 | #endif |
| 783 | #ifdef GET_LINK_IMPL |
| 784 | bool ByteCodeEmitter::emitAddrOf(SourceInfo L) { |
| 785 | return emitOp<>(OP_AddrOf, L); |
| 786 | } |
| 787 | #endif |
| 788 | #ifdef GET_EVAL_IMPL |
| 789 | bool EvalEmitter::emitAddrOf(SourceInfo L) { |
| 790 | if (!isActive()) return true; |
| 791 | CurrentSource = L; |
| 792 | return AddrOf(S, CodePtr()); |
| 793 | } |
| 794 | #endif |
| 795 | #ifdef GET_OPCODE_NAMES |
| 796 | OP_Alloc, |
| 797 | #endif |
| 798 | #ifdef GET_INTERPFN_LIST |
| 799 | &Interp_Alloc, |
| 800 | #endif |
| 801 | #ifdef GET_INTERPFN_DISPATCHERS |
| 802 | PRESERVE_NONE |
| 803 | static bool Interp_Alloc(InterpState &S) { |
| 804 | { |
| 805 | CodePtr OpPC = S.PC; |
| 806 | const auto V0 = ReadArg<const Descriptor *>(S, S.PC); |
| 807 | if (!Alloc(S, OpPC, V0)) return false; |
| 808 | } |
| 809 | #if USE_TAILCALLS |
| 810 | MUSTTAIL return InterpNext(S); |
| 811 | #else |
| 812 | return true; |
| 813 | #endif |
| 814 | } |
| 815 | #endif |
| 816 | #ifdef GET_DISASM |
| 817 | case OP_Alloc: |
| 818 | Text.Op = PrintName("Alloc" ); |
| 819 | Text.Args.push_back(printArg<const Descriptor *>(PC)); |
| 820 | break; |
| 821 | #endif |
| 822 | #if defined(GET_EVAL_PROTO) || defined(GET_LINK_PROTO) |
| 823 | bool emitAlloc( const Descriptor * , SourceInfo); |
| 824 | #endif |
| 825 | #ifdef GET_LINK_IMPL |
| 826 | bool ByteCodeEmitter::emitAlloc( const Descriptor * A0, SourceInfo L) { |
| 827 | return emitOp<const Descriptor *>(OP_Alloc, A0, L); |
| 828 | } |
| 829 | #endif |
| 830 | #ifdef GET_EVAL_IMPL |
| 831 | bool EvalEmitter::emitAlloc( const Descriptor * A0, SourceInfo L) { |
| 832 | if (!isActive()) return true; |
| 833 | CurrentSource = L; |
| 834 | return Alloc(S, CodePtr(), A0); |
| 835 | } |
| 836 | #endif |
| 837 | #ifdef GET_OPCODE_NAMES |
| 838 | OP_AllocCNSint8, |
| 839 | OP_AllocCNUint8, |
| 840 | OP_AllocCNSint16, |
| 841 | OP_AllocCNUint16, |
| 842 | OP_AllocCNSint32, |
| 843 | OP_AllocCNUint32, |
| 844 | OP_AllocCNSint64, |
| 845 | OP_AllocCNUint64, |
| 846 | OP_AllocCNIntAP, |
| 847 | OP_AllocCNIntAPS, |
| 848 | OP_AllocCNBool, |
| 849 | #endif |
| 850 | #ifdef GET_INTERPFN_LIST |
| 851 | &Interp_AllocCNSint8, |
| 852 | &Interp_AllocCNUint8, |
| 853 | &Interp_AllocCNSint16, |
| 854 | &Interp_AllocCNUint16, |
| 855 | &Interp_AllocCNSint32, |
| 856 | &Interp_AllocCNUint32, |
| 857 | &Interp_AllocCNSint64, |
| 858 | &Interp_AllocCNUint64, |
| 859 | &Interp_AllocCNIntAP, |
| 860 | &Interp_AllocCNIntAPS, |
| 861 | &Interp_AllocCNBool, |
| 862 | #endif |
| 863 | #ifdef GET_INTERPFN_DISPATCHERS |
| 864 | PRESERVE_NONE |
| 865 | static bool Interp_AllocCNSint8(InterpState &S) { |
| 866 | { |
| 867 | CodePtr OpPC = S.PC; |
| 868 | const auto V0 = ReadArg<const Descriptor *>(S, S.PC); |
| 869 | const auto V1 = ReadArg<bool>(S, S.PC); |
| 870 | if (!AllocCN<PT_Sint8>(S, OpPC, V0, V1)) return false; |
| 871 | } |
| 872 | #if USE_TAILCALLS |
| 873 | MUSTTAIL return InterpNext(S); |
| 874 | #else |
| 875 | return true; |
| 876 | #endif |
| 877 | } |
| 878 | PRESERVE_NONE |
| 879 | static bool Interp_AllocCNUint8(InterpState &S) { |
| 880 | { |
| 881 | CodePtr OpPC = S.PC; |
| 882 | const auto V0 = ReadArg<const Descriptor *>(S, S.PC); |
| 883 | const auto V1 = ReadArg<bool>(S, S.PC); |
| 884 | if (!AllocCN<PT_Uint8>(S, OpPC, V0, V1)) return false; |
| 885 | } |
| 886 | #if USE_TAILCALLS |
| 887 | MUSTTAIL return InterpNext(S); |
| 888 | #else |
| 889 | return true; |
| 890 | #endif |
| 891 | } |
| 892 | PRESERVE_NONE |
| 893 | static bool Interp_AllocCNSint16(InterpState &S) { |
| 894 | { |
| 895 | CodePtr OpPC = S.PC; |
| 896 | const auto V0 = ReadArg<const Descriptor *>(S, S.PC); |
| 897 | const auto V1 = ReadArg<bool>(S, S.PC); |
| 898 | if (!AllocCN<PT_Sint16>(S, OpPC, V0, V1)) return false; |
| 899 | } |
| 900 | #if USE_TAILCALLS |
| 901 | MUSTTAIL return InterpNext(S); |
| 902 | #else |
| 903 | return true; |
| 904 | #endif |
| 905 | } |
| 906 | PRESERVE_NONE |
| 907 | static bool Interp_AllocCNUint16(InterpState &S) { |
| 908 | { |
| 909 | CodePtr OpPC = S.PC; |
| 910 | const auto V0 = ReadArg<const Descriptor *>(S, S.PC); |
| 911 | const auto V1 = ReadArg<bool>(S, S.PC); |
| 912 | if (!AllocCN<PT_Uint16>(S, OpPC, V0, V1)) return false; |
| 913 | } |
| 914 | #if USE_TAILCALLS |
| 915 | MUSTTAIL return InterpNext(S); |
| 916 | #else |
| 917 | return true; |
| 918 | #endif |
| 919 | } |
| 920 | PRESERVE_NONE |
| 921 | static bool Interp_AllocCNSint32(InterpState &S) { |
| 922 | { |
| 923 | CodePtr OpPC = S.PC; |
| 924 | const auto V0 = ReadArg<const Descriptor *>(S, S.PC); |
| 925 | const auto V1 = ReadArg<bool>(S, S.PC); |
| 926 | if (!AllocCN<PT_Sint32>(S, OpPC, V0, V1)) return false; |
| 927 | } |
| 928 | #if USE_TAILCALLS |
| 929 | MUSTTAIL return InterpNext(S); |
| 930 | #else |
| 931 | return true; |
| 932 | #endif |
| 933 | } |
| 934 | PRESERVE_NONE |
| 935 | static bool Interp_AllocCNUint32(InterpState &S) { |
| 936 | { |
| 937 | CodePtr OpPC = S.PC; |
| 938 | const auto V0 = ReadArg<const Descriptor *>(S, S.PC); |
| 939 | const auto V1 = ReadArg<bool>(S, S.PC); |
| 940 | if (!AllocCN<PT_Uint32>(S, OpPC, V0, V1)) return false; |
| 941 | } |
| 942 | #if USE_TAILCALLS |
| 943 | MUSTTAIL return InterpNext(S); |
| 944 | #else |
| 945 | return true; |
| 946 | #endif |
| 947 | } |
| 948 | PRESERVE_NONE |
| 949 | static bool Interp_AllocCNSint64(InterpState &S) { |
| 950 | { |
| 951 | CodePtr OpPC = S.PC; |
| 952 | const auto V0 = ReadArg<const Descriptor *>(S, S.PC); |
| 953 | const auto V1 = ReadArg<bool>(S, S.PC); |
| 954 | if (!AllocCN<PT_Sint64>(S, OpPC, V0, V1)) return false; |
| 955 | } |
| 956 | #if USE_TAILCALLS |
| 957 | MUSTTAIL return InterpNext(S); |
| 958 | #else |
| 959 | return true; |
| 960 | #endif |
| 961 | } |
| 962 | PRESERVE_NONE |
| 963 | static bool Interp_AllocCNUint64(InterpState &S) { |
| 964 | { |
| 965 | CodePtr OpPC = S.PC; |
| 966 | const auto V0 = ReadArg<const Descriptor *>(S, S.PC); |
| 967 | const auto V1 = ReadArg<bool>(S, S.PC); |
| 968 | if (!AllocCN<PT_Uint64>(S, OpPC, V0, V1)) return false; |
| 969 | } |
| 970 | #if USE_TAILCALLS |
| 971 | MUSTTAIL return InterpNext(S); |
| 972 | #else |
| 973 | return true; |
| 974 | #endif |
| 975 | } |
| 976 | PRESERVE_NONE |
| 977 | static bool Interp_AllocCNIntAP(InterpState &S) { |
| 978 | { |
| 979 | CodePtr OpPC = S.PC; |
| 980 | const auto V0 = ReadArg<const Descriptor *>(S, S.PC); |
| 981 | const auto V1 = ReadArg<bool>(S, S.PC); |
| 982 | if (!AllocCN<PT_IntAP>(S, OpPC, V0, V1)) return false; |
| 983 | } |
| 984 | #if USE_TAILCALLS |
| 985 | MUSTTAIL return InterpNext(S); |
| 986 | #else |
| 987 | return true; |
| 988 | #endif |
| 989 | } |
| 990 | PRESERVE_NONE |
| 991 | static bool Interp_AllocCNIntAPS(InterpState &S) { |
| 992 | { |
| 993 | CodePtr OpPC = S.PC; |
| 994 | const auto V0 = ReadArg<const Descriptor *>(S, S.PC); |
| 995 | const auto V1 = ReadArg<bool>(S, S.PC); |
| 996 | if (!AllocCN<PT_IntAPS>(S, OpPC, V0, V1)) return false; |
| 997 | } |
| 998 | #if USE_TAILCALLS |
| 999 | MUSTTAIL return InterpNext(S); |
| 1000 | #else |
| 1001 | return true; |
| 1002 | #endif |
| 1003 | } |
| 1004 | PRESERVE_NONE |
| 1005 | static bool Interp_AllocCNBool(InterpState &S) { |
| 1006 | { |
| 1007 | CodePtr OpPC = S.PC; |
| 1008 | const auto V0 = ReadArg<const Descriptor *>(S, S.PC); |
| 1009 | const auto V1 = ReadArg<bool>(S, S.PC); |
| 1010 | if (!AllocCN<PT_Bool>(S, OpPC, V0, V1)) return false; |
| 1011 | } |
| 1012 | #if USE_TAILCALLS |
| 1013 | MUSTTAIL return InterpNext(S); |
| 1014 | #else |
| 1015 | return true; |
| 1016 | #endif |
| 1017 | } |
| 1018 | #endif |
| 1019 | #ifdef GET_DISASM |
| 1020 | case OP_AllocCNSint8: |
| 1021 | Text.Op = PrintName("AllocCNSint8" ); |
| 1022 | Text.Args.push_back(printArg<const Descriptor *>(PC)); |
| 1023 | Text.Args.push_back(printArg<bool>(PC)); |
| 1024 | break; |
| 1025 | case OP_AllocCNUint8: |
| 1026 | Text.Op = PrintName("AllocCNUint8" ); |
| 1027 | Text.Args.push_back(printArg<const Descriptor *>(PC)); |
| 1028 | Text.Args.push_back(printArg<bool>(PC)); |
| 1029 | break; |
| 1030 | case OP_AllocCNSint16: |
| 1031 | Text.Op = PrintName("AllocCNSint16" ); |
| 1032 | Text.Args.push_back(printArg<const Descriptor *>(PC)); |
| 1033 | Text.Args.push_back(printArg<bool>(PC)); |
| 1034 | break; |
| 1035 | case OP_AllocCNUint16: |
| 1036 | Text.Op = PrintName("AllocCNUint16" ); |
| 1037 | Text.Args.push_back(printArg<const Descriptor *>(PC)); |
| 1038 | Text.Args.push_back(printArg<bool>(PC)); |
| 1039 | break; |
| 1040 | case OP_AllocCNSint32: |
| 1041 | Text.Op = PrintName("AllocCNSint32" ); |
| 1042 | Text.Args.push_back(printArg<const Descriptor *>(PC)); |
| 1043 | Text.Args.push_back(printArg<bool>(PC)); |
| 1044 | break; |
| 1045 | case OP_AllocCNUint32: |
| 1046 | Text.Op = PrintName("AllocCNUint32" ); |
| 1047 | Text.Args.push_back(printArg<const Descriptor *>(PC)); |
| 1048 | Text.Args.push_back(printArg<bool>(PC)); |
| 1049 | break; |
| 1050 | case OP_AllocCNSint64: |
| 1051 | Text.Op = PrintName("AllocCNSint64" ); |
| 1052 | Text.Args.push_back(printArg<const Descriptor *>(PC)); |
| 1053 | Text.Args.push_back(printArg<bool>(PC)); |
| 1054 | break; |
| 1055 | case OP_AllocCNUint64: |
| 1056 | Text.Op = PrintName("AllocCNUint64" ); |
| 1057 | Text.Args.push_back(printArg<const Descriptor *>(PC)); |
| 1058 | Text.Args.push_back(printArg<bool>(PC)); |
| 1059 | break; |
| 1060 | case OP_AllocCNIntAP: |
| 1061 | Text.Op = PrintName("AllocCNIntAP" ); |
| 1062 | Text.Args.push_back(printArg<const Descriptor *>(PC)); |
| 1063 | Text.Args.push_back(printArg<bool>(PC)); |
| 1064 | break; |
| 1065 | case OP_AllocCNIntAPS: |
| 1066 | Text.Op = PrintName("AllocCNIntAPS" ); |
| 1067 | Text.Args.push_back(printArg<const Descriptor *>(PC)); |
| 1068 | Text.Args.push_back(printArg<bool>(PC)); |
| 1069 | break; |
| 1070 | case OP_AllocCNBool: |
| 1071 | Text.Op = PrintName("AllocCNBool" ); |
| 1072 | Text.Args.push_back(printArg<const Descriptor *>(PC)); |
| 1073 | Text.Args.push_back(printArg<bool>(PC)); |
| 1074 | break; |
| 1075 | #endif |
| 1076 | #if defined(GET_EVAL_PROTO) || defined(GET_LINK_PROTO) |
| 1077 | bool emitAllocCNSint8( const Descriptor * , bool , SourceInfo); |
| 1078 | bool emitAllocCNUint8( const Descriptor * , bool , SourceInfo); |
| 1079 | bool emitAllocCNSint16( const Descriptor * , bool , SourceInfo); |
| 1080 | bool emitAllocCNUint16( const Descriptor * , bool , SourceInfo); |
| 1081 | bool emitAllocCNSint32( const Descriptor * , bool , SourceInfo); |
| 1082 | bool emitAllocCNUint32( const Descriptor * , bool , SourceInfo); |
| 1083 | bool emitAllocCNSint64( const Descriptor * , bool , SourceInfo); |
| 1084 | bool emitAllocCNUint64( const Descriptor * , bool , SourceInfo); |
| 1085 | bool emitAllocCNIntAP( const Descriptor * , bool , SourceInfo); |
| 1086 | bool emitAllocCNIntAPS( const Descriptor * , bool , SourceInfo); |
| 1087 | bool emitAllocCNBool( const Descriptor * , bool , SourceInfo); |
| 1088 | #endif |
| 1089 | #if defined(GET_EVAL_PROTO) || defined(GET_LINK_PROTO) |
| 1090 | [[nodiscard]] bool emitAllocCN(PrimType, const Descriptor *, bool, SourceInfo I); |
| 1091 | #endif |
| 1092 | #if defined(GET_EVAL_IMPL) || defined(GET_LINK_IMPL) |
| 1093 | bool |
| 1094 | #if defined(GET_EVAL_IMPL) |
| 1095 | EvalEmitter |
| 1096 | #else |
| 1097 | ByteCodeEmitter |
| 1098 | #endif |
| 1099 | ::emitAllocCN(PrimType T0, const Descriptor * A0, bool A1, SourceInfo I) { |
| 1100 | switch (T0) { |
| 1101 | case PT_Sint8: |
| 1102 | return emitAllocCNSint8(A0, A1, I); |
| 1103 | case PT_Uint8: |
| 1104 | return emitAllocCNUint8(A0, A1, I); |
| 1105 | case PT_Sint16: |
| 1106 | return emitAllocCNSint16(A0, A1, I); |
| 1107 | case PT_Uint16: |
| 1108 | return emitAllocCNUint16(A0, A1, I); |
| 1109 | case PT_Sint32: |
| 1110 | return emitAllocCNSint32(A0, A1, I); |
| 1111 | case PT_Uint32: |
| 1112 | return emitAllocCNUint32(A0, A1, I); |
| 1113 | case PT_Sint64: |
| 1114 | return emitAllocCNSint64(A0, A1, I); |
| 1115 | case PT_Uint64: |
| 1116 | return emitAllocCNUint64(A0, A1, I); |
| 1117 | case PT_IntAP: |
| 1118 | return emitAllocCNIntAP(A0, A1, I); |
| 1119 | case PT_IntAPS: |
| 1120 | return emitAllocCNIntAPS(A0, A1, I); |
| 1121 | case PT_Bool: |
| 1122 | return emitAllocCNBool(A0, A1, I); |
| 1123 | default: llvm_unreachable("invalid type: emitAllocCN" ); |
| 1124 | } |
| 1125 | llvm_unreachable("invalid enum value" ); |
| 1126 | } |
| 1127 | #endif |
| 1128 | #ifdef GET_LINK_IMPL |
| 1129 | bool ByteCodeEmitter::emitAllocCNSint8( const Descriptor * A0, bool A1, SourceInfo L) { |
| 1130 | return emitOp<const Descriptor *, bool>(OP_AllocCNSint8, A0, A1, L); |
| 1131 | } |
| 1132 | bool ByteCodeEmitter::emitAllocCNUint8( const Descriptor * A0, bool A1, SourceInfo L) { |
| 1133 | return emitOp<const Descriptor *, bool>(OP_AllocCNUint8, A0, A1, L); |
| 1134 | } |
| 1135 | bool ByteCodeEmitter::emitAllocCNSint16( const Descriptor * A0, bool A1, SourceInfo L) { |
| 1136 | return emitOp<const Descriptor *, bool>(OP_AllocCNSint16, A0, A1, L); |
| 1137 | } |
| 1138 | bool ByteCodeEmitter::emitAllocCNUint16( const Descriptor * A0, bool A1, SourceInfo L) { |
| 1139 | return emitOp<const Descriptor *, bool>(OP_AllocCNUint16, A0, A1, L); |
| 1140 | } |
| 1141 | bool ByteCodeEmitter::emitAllocCNSint32( const Descriptor * A0, bool A1, SourceInfo L) { |
| 1142 | return emitOp<const Descriptor *, bool>(OP_AllocCNSint32, A0, A1, L); |
| 1143 | } |
| 1144 | bool ByteCodeEmitter::emitAllocCNUint32( const Descriptor * A0, bool A1, SourceInfo L) { |
| 1145 | return emitOp<const Descriptor *, bool>(OP_AllocCNUint32, A0, A1, L); |
| 1146 | } |
| 1147 | bool ByteCodeEmitter::emitAllocCNSint64( const Descriptor * A0, bool A1, SourceInfo L) { |
| 1148 | return emitOp<const Descriptor *, bool>(OP_AllocCNSint64, A0, A1, L); |
| 1149 | } |
| 1150 | bool ByteCodeEmitter::emitAllocCNUint64( const Descriptor * A0, bool A1, SourceInfo L) { |
| 1151 | return emitOp<const Descriptor *, bool>(OP_AllocCNUint64, A0, A1, L); |
| 1152 | } |
| 1153 | bool ByteCodeEmitter::emitAllocCNIntAP( const Descriptor * A0, bool A1, SourceInfo L) { |
| 1154 | return emitOp<const Descriptor *, bool>(OP_AllocCNIntAP, A0, A1, L); |
| 1155 | } |
| 1156 | bool ByteCodeEmitter::emitAllocCNIntAPS( const Descriptor * A0, bool A1, SourceInfo L) { |
| 1157 | return emitOp<const Descriptor *, bool>(OP_AllocCNIntAPS, A0, A1, L); |
| 1158 | } |
| 1159 | bool ByteCodeEmitter::emitAllocCNBool( const Descriptor * A0, bool A1, SourceInfo L) { |
| 1160 | return emitOp<const Descriptor *, bool>(OP_AllocCNBool, A0, A1, L); |
| 1161 | } |
| 1162 | #endif |
| 1163 | #ifdef GET_EVAL_IMPL |
| 1164 | bool EvalEmitter::emitAllocCNSint8( const Descriptor * A0, bool A1, SourceInfo L) { |
| 1165 | if (!isActive()) return true; |
| 1166 | CurrentSource = L; |
| 1167 | return AllocCN<PT_Sint8>(S, CodePtr(), A0, A1); |
| 1168 | } |
| 1169 | bool EvalEmitter::emitAllocCNUint8( const Descriptor * A0, bool A1, SourceInfo L) { |
| 1170 | if (!isActive()) return true; |
| 1171 | CurrentSource = L; |
| 1172 | return AllocCN<PT_Uint8>(S, CodePtr(), A0, A1); |
| 1173 | } |
| 1174 | bool EvalEmitter::emitAllocCNSint16( const Descriptor * A0, bool A1, SourceInfo L) { |
| 1175 | if (!isActive()) return true; |
| 1176 | CurrentSource = L; |
| 1177 | return AllocCN<PT_Sint16>(S, CodePtr(), A0, A1); |
| 1178 | } |
| 1179 | bool EvalEmitter::emitAllocCNUint16( const Descriptor * A0, bool A1, SourceInfo L) { |
| 1180 | if (!isActive()) return true; |
| 1181 | CurrentSource = L; |
| 1182 | return AllocCN<PT_Uint16>(S, CodePtr(), A0, A1); |
| 1183 | } |
| 1184 | bool EvalEmitter::emitAllocCNSint32( const Descriptor * A0, bool A1, SourceInfo L) { |
| 1185 | if (!isActive()) return true; |
| 1186 | CurrentSource = L; |
| 1187 | return AllocCN<PT_Sint32>(S, CodePtr(), A0, A1); |
| 1188 | } |
| 1189 | bool EvalEmitter::emitAllocCNUint32( const Descriptor * A0, bool A1, SourceInfo L) { |
| 1190 | if (!isActive()) return true; |
| 1191 | CurrentSource = L; |
| 1192 | return AllocCN<PT_Uint32>(S, CodePtr(), A0, A1); |
| 1193 | } |
| 1194 | bool EvalEmitter::emitAllocCNSint64( const Descriptor * A0, bool A1, SourceInfo L) { |
| 1195 | if (!isActive()) return true; |
| 1196 | CurrentSource = L; |
| 1197 | return AllocCN<PT_Sint64>(S, CodePtr(), A0, A1); |
| 1198 | } |
| 1199 | bool EvalEmitter::emitAllocCNUint64( const Descriptor * A0, bool A1, SourceInfo L) { |
| 1200 | if (!isActive()) return true; |
| 1201 | CurrentSource = L; |
| 1202 | return AllocCN<PT_Uint64>(S, CodePtr(), A0, A1); |
| 1203 | } |
| 1204 | bool EvalEmitter::emitAllocCNIntAP( const Descriptor * A0, bool A1, SourceInfo L) { |
| 1205 | if (!isActive()) return true; |
| 1206 | CurrentSource = L; |
| 1207 | return AllocCN<PT_IntAP>(S, CodePtr(), A0, A1); |
| 1208 | } |
| 1209 | bool EvalEmitter::emitAllocCNIntAPS( const Descriptor * A0, bool A1, SourceInfo L) { |
| 1210 | if (!isActive()) return true; |
| 1211 | CurrentSource = L; |
| 1212 | return AllocCN<PT_IntAPS>(S, CodePtr(), A0, A1); |
| 1213 | } |
| 1214 | bool EvalEmitter::emitAllocCNBool( const Descriptor * A0, bool A1, SourceInfo L) { |
| 1215 | if (!isActive()) return true; |
| 1216 | CurrentSource = L; |
| 1217 | return AllocCN<PT_Bool>(S, CodePtr(), A0, A1); |
| 1218 | } |
| 1219 | #endif |
| 1220 | #ifdef GET_OPCODE_NAMES |
| 1221 | OP_AllocNSint8, |
| 1222 | OP_AllocNUint8, |
| 1223 | OP_AllocNSint16, |
| 1224 | OP_AllocNUint16, |
| 1225 | OP_AllocNSint32, |
| 1226 | OP_AllocNUint32, |
| 1227 | OP_AllocNSint64, |
| 1228 | OP_AllocNUint64, |
| 1229 | OP_AllocNIntAP, |
| 1230 | OP_AllocNIntAPS, |
| 1231 | OP_AllocNBool, |
| 1232 | #endif |
| 1233 | #ifdef GET_INTERPFN_LIST |
| 1234 | &Interp_AllocNSint8, |
| 1235 | &Interp_AllocNUint8, |
| 1236 | &Interp_AllocNSint16, |
| 1237 | &Interp_AllocNUint16, |
| 1238 | &Interp_AllocNSint32, |
| 1239 | &Interp_AllocNUint32, |
| 1240 | &Interp_AllocNSint64, |
| 1241 | &Interp_AllocNUint64, |
| 1242 | &Interp_AllocNIntAP, |
| 1243 | &Interp_AllocNIntAPS, |
| 1244 | &Interp_AllocNBool, |
| 1245 | #endif |
| 1246 | #ifdef GET_INTERPFN_DISPATCHERS |
| 1247 | PRESERVE_NONE |
| 1248 | static bool Interp_AllocNSint8(InterpState &S) { |
| 1249 | { |
| 1250 | CodePtr OpPC = S.PC; |
| 1251 | const auto V0 = ReadArg<PrimType>(S, S.PC); |
| 1252 | const auto V1 = ReadArg<const Expr *>(S, S.PC); |
| 1253 | const auto V2 = ReadArg<bool>(S, S.PC); |
| 1254 | if (!AllocN<PT_Sint8>(S, OpPC, V0, V1, V2)) return false; |
| 1255 | } |
| 1256 | #if USE_TAILCALLS |
| 1257 | MUSTTAIL return InterpNext(S); |
| 1258 | #else |
| 1259 | return true; |
| 1260 | #endif |
| 1261 | } |
| 1262 | PRESERVE_NONE |
| 1263 | static bool Interp_AllocNUint8(InterpState &S) { |
| 1264 | { |
| 1265 | CodePtr OpPC = S.PC; |
| 1266 | const auto V0 = ReadArg<PrimType>(S, S.PC); |
| 1267 | const auto V1 = ReadArg<const Expr *>(S, S.PC); |
| 1268 | const auto V2 = ReadArg<bool>(S, S.PC); |
| 1269 | if (!AllocN<PT_Uint8>(S, OpPC, V0, V1, V2)) return false; |
| 1270 | } |
| 1271 | #if USE_TAILCALLS |
| 1272 | MUSTTAIL return InterpNext(S); |
| 1273 | #else |
| 1274 | return true; |
| 1275 | #endif |
| 1276 | } |
| 1277 | PRESERVE_NONE |
| 1278 | static bool Interp_AllocNSint16(InterpState &S) { |
| 1279 | { |
| 1280 | CodePtr OpPC = S.PC; |
| 1281 | const auto V0 = ReadArg<PrimType>(S, S.PC); |
| 1282 | const auto V1 = ReadArg<const Expr *>(S, S.PC); |
| 1283 | const auto V2 = ReadArg<bool>(S, S.PC); |
| 1284 | if (!AllocN<PT_Sint16>(S, OpPC, V0, V1, V2)) return false; |
| 1285 | } |
| 1286 | #if USE_TAILCALLS |
| 1287 | MUSTTAIL return InterpNext(S); |
| 1288 | #else |
| 1289 | return true; |
| 1290 | #endif |
| 1291 | } |
| 1292 | PRESERVE_NONE |
| 1293 | static bool Interp_AllocNUint16(InterpState &S) { |
| 1294 | { |
| 1295 | CodePtr OpPC = S.PC; |
| 1296 | const auto V0 = ReadArg<PrimType>(S, S.PC); |
| 1297 | const auto V1 = ReadArg<const Expr *>(S, S.PC); |
| 1298 | const auto V2 = ReadArg<bool>(S, S.PC); |
| 1299 | if (!AllocN<PT_Uint16>(S, OpPC, V0, V1, V2)) return false; |
| 1300 | } |
| 1301 | #if USE_TAILCALLS |
| 1302 | MUSTTAIL return InterpNext(S); |
| 1303 | #else |
| 1304 | return true; |
| 1305 | #endif |
| 1306 | } |
| 1307 | PRESERVE_NONE |
| 1308 | static bool Interp_AllocNSint32(InterpState &S) { |
| 1309 | { |
| 1310 | CodePtr OpPC = S.PC; |
| 1311 | const auto V0 = ReadArg<PrimType>(S, S.PC); |
| 1312 | const auto V1 = ReadArg<const Expr *>(S, S.PC); |
| 1313 | const auto V2 = ReadArg<bool>(S, S.PC); |
| 1314 | if (!AllocN<PT_Sint32>(S, OpPC, V0, V1, V2)) return false; |
| 1315 | } |
| 1316 | #if USE_TAILCALLS |
| 1317 | MUSTTAIL return InterpNext(S); |
| 1318 | #else |
| 1319 | return true; |
| 1320 | #endif |
| 1321 | } |
| 1322 | PRESERVE_NONE |
| 1323 | static bool Interp_AllocNUint32(InterpState &S) { |
| 1324 | { |
| 1325 | CodePtr OpPC = S.PC; |
| 1326 | const auto V0 = ReadArg<PrimType>(S, S.PC); |
| 1327 | const auto V1 = ReadArg<const Expr *>(S, S.PC); |
| 1328 | const auto V2 = ReadArg<bool>(S, S.PC); |
| 1329 | if (!AllocN<PT_Uint32>(S, OpPC, V0, V1, V2)) return false; |
| 1330 | } |
| 1331 | #if USE_TAILCALLS |
| 1332 | MUSTTAIL return InterpNext(S); |
| 1333 | #else |
| 1334 | return true; |
| 1335 | #endif |
| 1336 | } |
| 1337 | PRESERVE_NONE |
| 1338 | static bool Interp_AllocNSint64(InterpState &S) { |
| 1339 | { |
| 1340 | CodePtr OpPC = S.PC; |
| 1341 | const auto V0 = ReadArg<PrimType>(S, S.PC); |
| 1342 | const auto V1 = ReadArg<const Expr *>(S, S.PC); |
| 1343 | const auto V2 = ReadArg<bool>(S, S.PC); |
| 1344 | if (!AllocN<PT_Sint64>(S, OpPC, V0, V1, V2)) return false; |
| 1345 | } |
| 1346 | #if USE_TAILCALLS |
| 1347 | MUSTTAIL return InterpNext(S); |
| 1348 | #else |
| 1349 | return true; |
| 1350 | #endif |
| 1351 | } |
| 1352 | PRESERVE_NONE |
| 1353 | static bool Interp_AllocNUint64(InterpState &S) { |
| 1354 | { |
| 1355 | CodePtr OpPC = S.PC; |
| 1356 | const auto V0 = ReadArg<PrimType>(S, S.PC); |
| 1357 | const auto V1 = ReadArg<const Expr *>(S, S.PC); |
| 1358 | const auto V2 = ReadArg<bool>(S, S.PC); |
| 1359 | if (!AllocN<PT_Uint64>(S, OpPC, V0, V1, V2)) return false; |
| 1360 | } |
| 1361 | #if USE_TAILCALLS |
| 1362 | MUSTTAIL return InterpNext(S); |
| 1363 | #else |
| 1364 | return true; |
| 1365 | #endif |
| 1366 | } |
| 1367 | PRESERVE_NONE |
| 1368 | static bool Interp_AllocNIntAP(InterpState &S) { |
| 1369 | { |
| 1370 | CodePtr OpPC = S.PC; |
| 1371 | const auto V0 = ReadArg<PrimType>(S, S.PC); |
| 1372 | const auto V1 = ReadArg<const Expr *>(S, S.PC); |
| 1373 | const auto V2 = ReadArg<bool>(S, S.PC); |
| 1374 | if (!AllocN<PT_IntAP>(S, OpPC, V0, V1, V2)) return false; |
| 1375 | } |
| 1376 | #if USE_TAILCALLS |
| 1377 | MUSTTAIL return InterpNext(S); |
| 1378 | #else |
| 1379 | return true; |
| 1380 | #endif |
| 1381 | } |
| 1382 | PRESERVE_NONE |
| 1383 | static bool Interp_AllocNIntAPS(InterpState &S) { |
| 1384 | { |
| 1385 | CodePtr OpPC = S.PC; |
| 1386 | const auto V0 = ReadArg<PrimType>(S, S.PC); |
| 1387 | const auto V1 = ReadArg<const Expr *>(S, S.PC); |
| 1388 | const auto V2 = ReadArg<bool>(S, S.PC); |
| 1389 | if (!AllocN<PT_IntAPS>(S, OpPC, V0, V1, V2)) return false; |
| 1390 | } |
| 1391 | #if USE_TAILCALLS |
| 1392 | MUSTTAIL return InterpNext(S); |
| 1393 | #else |
| 1394 | return true; |
| 1395 | #endif |
| 1396 | } |
| 1397 | PRESERVE_NONE |
| 1398 | static bool Interp_AllocNBool(InterpState &S) { |
| 1399 | { |
| 1400 | CodePtr OpPC = S.PC; |
| 1401 | const auto V0 = ReadArg<PrimType>(S, S.PC); |
| 1402 | const auto V1 = ReadArg<const Expr *>(S, S.PC); |
| 1403 | const auto V2 = ReadArg<bool>(S, S.PC); |
| 1404 | if (!AllocN<PT_Bool>(S, OpPC, V0, V1, V2)) return false; |
| 1405 | } |
| 1406 | #if USE_TAILCALLS |
| 1407 | MUSTTAIL return InterpNext(S); |
| 1408 | #else |
| 1409 | return true; |
| 1410 | #endif |
| 1411 | } |
| 1412 | #endif |
| 1413 | #ifdef GET_DISASM |
| 1414 | case OP_AllocNSint8: |
| 1415 | Text.Op = PrintName("AllocNSint8" ); |
| 1416 | Text.Args.push_back(printArg<PrimType>(PC)); |
| 1417 | Text.Args.push_back(printArg<const Expr *>(PC)); |
| 1418 | Text.Args.push_back(printArg<bool>(PC)); |
| 1419 | break; |
| 1420 | case OP_AllocNUint8: |
| 1421 | Text.Op = PrintName("AllocNUint8" ); |
| 1422 | Text.Args.push_back(printArg<PrimType>(PC)); |
| 1423 | Text.Args.push_back(printArg<const Expr *>(PC)); |
| 1424 | Text.Args.push_back(printArg<bool>(PC)); |
| 1425 | break; |
| 1426 | case OP_AllocNSint16: |
| 1427 | Text.Op = PrintName("AllocNSint16" ); |
| 1428 | Text.Args.push_back(printArg<PrimType>(PC)); |
| 1429 | Text.Args.push_back(printArg<const Expr *>(PC)); |
| 1430 | Text.Args.push_back(printArg<bool>(PC)); |
| 1431 | break; |
| 1432 | case OP_AllocNUint16: |
| 1433 | Text.Op = PrintName("AllocNUint16" ); |
| 1434 | Text.Args.push_back(printArg<PrimType>(PC)); |
| 1435 | Text.Args.push_back(printArg<const Expr *>(PC)); |
| 1436 | Text.Args.push_back(printArg<bool>(PC)); |
| 1437 | break; |
| 1438 | case OP_AllocNSint32: |
| 1439 | Text.Op = PrintName("AllocNSint32" ); |
| 1440 | Text.Args.push_back(printArg<PrimType>(PC)); |
| 1441 | Text.Args.push_back(printArg<const Expr *>(PC)); |
| 1442 | Text.Args.push_back(printArg<bool>(PC)); |
| 1443 | break; |
| 1444 | case OP_AllocNUint32: |
| 1445 | Text.Op = PrintName("AllocNUint32" ); |
| 1446 | Text.Args.push_back(printArg<PrimType>(PC)); |
| 1447 | Text.Args.push_back(printArg<const Expr *>(PC)); |
| 1448 | Text.Args.push_back(printArg<bool>(PC)); |
| 1449 | break; |
| 1450 | case OP_AllocNSint64: |
| 1451 | Text.Op = PrintName("AllocNSint64" ); |
| 1452 | Text.Args.push_back(printArg<PrimType>(PC)); |
| 1453 | Text.Args.push_back(printArg<const Expr *>(PC)); |
| 1454 | Text.Args.push_back(printArg<bool>(PC)); |
| 1455 | break; |
| 1456 | case OP_AllocNUint64: |
| 1457 | Text.Op = PrintName("AllocNUint64" ); |
| 1458 | Text.Args.push_back(printArg<PrimType>(PC)); |
| 1459 | Text.Args.push_back(printArg<const Expr *>(PC)); |
| 1460 | Text.Args.push_back(printArg<bool>(PC)); |
| 1461 | break; |
| 1462 | case OP_AllocNIntAP: |
| 1463 | Text.Op = PrintName("AllocNIntAP" ); |
| 1464 | Text.Args.push_back(printArg<PrimType>(PC)); |
| 1465 | Text.Args.push_back(printArg<const Expr *>(PC)); |
| 1466 | Text.Args.push_back(printArg<bool>(PC)); |
| 1467 | break; |
| 1468 | case OP_AllocNIntAPS: |
| 1469 | Text.Op = PrintName("AllocNIntAPS" ); |
| 1470 | Text.Args.push_back(printArg<PrimType>(PC)); |
| 1471 | Text.Args.push_back(printArg<const Expr *>(PC)); |
| 1472 | Text.Args.push_back(printArg<bool>(PC)); |
| 1473 | break; |
| 1474 | case OP_AllocNBool: |
| 1475 | Text.Op = PrintName("AllocNBool" ); |
| 1476 | Text.Args.push_back(printArg<PrimType>(PC)); |
| 1477 | Text.Args.push_back(printArg<const Expr *>(PC)); |
| 1478 | Text.Args.push_back(printArg<bool>(PC)); |
| 1479 | break; |
| 1480 | #endif |
| 1481 | #if defined(GET_EVAL_PROTO) || defined(GET_LINK_PROTO) |
| 1482 | bool emitAllocNSint8( PrimType , const Expr * , bool , SourceInfo); |
| 1483 | bool emitAllocNUint8( PrimType , const Expr * , bool , SourceInfo); |
| 1484 | bool emitAllocNSint16( PrimType , const Expr * , bool , SourceInfo); |
| 1485 | bool emitAllocNUint16( PrimType , const Expr * , bool , SourceInfo); |
| 1486 | bool emitAllocNSint32( PrimType , const Expr * , bool , SourceInfo); |
| 1487 | bool emitAllocNUint32( PrimType , const Expr * , bool , SourceInfo); |
| 1488 | bool emitAllocNSint64( PrimType , const Expr * , bool , SourceInfo); |
| 1489 | bool emitAllocNUint64( PrimType , const Expr * , bool , SourceInfo); |
| 1490 | bool emitAllocNIntAP( PrimType , const Expr * , bool , SourceInfo); |
| 1491 | bool emitAllocNIntAPS( PrimType , const Expr * , bool , SourceInfo); |
| 1492 | bool emitAllocNBool( PrimType , const Expr * , bool , SourceInfo); |
| 1493 | #endif |
| 1494 | #if defined(GET_EVAL_PROTO) || defined(GET_LINK_PROTO) |
| 1495 | [[nodiscard]] bool emitAllocN(PrimType, PrimType, const Expr *, bool, SourceInfo I); |
| 1496 | #endif |
| 1497 | #if defined(GET_EVAL_IMPL) || defined(GET_LINK_IMPL) |
| 1498 | bool |
| 1499 | #if defined(GET_EVAL_IMPL) |
| 1500 | EvalEmitter |
| 1501 | #else |
| 1502 | ByteCodeEmitter |
| 1503 | #endif |
| 1504 | ::emitAllocN(PrimType T0, PrimType A0, const Expr * A1, bool A2, SourceInfo I) { |
| 1505 | switch (T0) { |
| 1506 | case PT_Sint8: |
| 1507 | return emitAllocNSint8(A0, A1, A2, I); |
| 1508 | case PT_Uint8: |
| 1509 | return emitAllocNUint8(A0, A1, A2, I); |
| 1510 | case PT_Sint16: |
| 1511 | return emitAllocNSint16(A0, A1, A2, I); |
| 1512 | case PT_Uint16: |
| 1513 | return emitAllocNUint16(A0, A1, A2, I); |
| 1514 | case PT_Sint32: |
| 1515 | return emitAllocNSint32(A0, A1, A2, I); |
| 1516 | case PT_Uint32: |
| 1517 | return emitAllocNUint32(A0, A1, A2, I); |
| 1518 | case PT_Sint64: |
| 1519 | return emitAllocNSint64(A0, A1, A2, I); |
| 1520 | case PT_Uint64: |
| 1521 | return emitAllocNUint64(A0, A1, A2, I); |
| 1522 | case PT_IntAP: |
| 1523 | return emitAllocNIntAP(A0, A1, A2, I); |
| 1524 | case PT_IntAPS: |
| 1525 | return emitAllocNIntAPS(A0, A1, A2, I); |
| 1526 | case PT_Bool: |
| 1527 | return emitAllocNBool(A0, A1, A2, I); |
| 1528 | default: llvm_unreachable("invalid type: emitAllocN" ); |
| 1529 | } |
| 1530 | llvm_unreachable("invalid enum value" ); |
| 1531 | } |
| 1532 | #endif |
| 1533 | #ifdef GET_LINK_IMPL |
| 1534 | bool ByteCodeEmitter::emitAllocNSint8( PrimType A0, const Expr * A1, bool A2, SourceInfo L) { |
| 1535 | return emitOp<PrimType, const Expr *, bool>(OP_AllocNSint8, A0, A1, A2, L); |
| 1536 | } |
| 1537 | bool ByteCodeEmitter::emitAllocNUint8( PrimType A0, const Expr * A1, bool A2, SourceInfo L) { |
| 1538 | return emitOp<PrimType, const Expr *, bool>(OP_AllocNUint8, A0, A1, A2, L); |
| 1539 | } |
| 1540 | bool ByteCodeEmitter::emitAllocNSint16( PrimType A0, const Expr * A1, bool A2, SourceInfo L) { |
| 1541 | return emitOp<PrimType, const Expr *, bool>(OP_AllocNSint16, A0, A1, A2, L); |
| 1542 | } |
| 1543 | bool ByteCodeEmitter::emitAllocNUint16( PrimType A0, const Expr * A1, bool A2, SourceInfo L) { |
| 1544 | return emitOp<PrimType, const Expr *, bool>(OP_AllocNUint16, A0, A1, A2, L); |
| 1545 | } |
| 1546 | bool ByteCodeEmitter::emitAllocNSint32( PrimType A0, const Expr * A1, bool A2, SourceInfo L) { |
| 1547 | return emitOp<PrimType, const Expr *, bool>(OP_AllocNSint32, A0, A1, A2, L); |
| 1548 | } |
| 1549 | bool ByteCodeEmitter::emitAllocNUint32( PrimType A0, const Expr * A1, bool A2, SourceInfo L) { |
| 1550 | return emitOp<PrimType, const Expr *, bool>(OP_AllocNUint32, A0, A1, A2, L); |
| 1551 | } |
| 1552 | bool ByteCodeEmitter::emitAllocNSint64( PrimType A0, const Expr * A1, bool A2, SourceInfo L) { |
| 1553 | return emitOp<PrimType, const Expr *, bool>(OP_AllocNSint64, A0, A1, A2, L); |
| 1554 | } |
| 1555 | bool ByteCodeEmitter::emitAllocNUint64( PrimType A0, const Expr * A1, bool A2, SourceInfo L) { |
| 1556 | return emitOp<PrimType, const Expr *, bool>(OP_AllocNUint64, A0, A1, A2, L); |
| 1557 | } |
| 1558 | bool ByteCodeEmitter::emitAllocNIntAP( PrimType A0, const Expr * A1, bool A2, SourceInfo L) { |
| 1559 | return emitOp<PrimType, const Expr *, bool>(OP_AllocNIntAP, A0, A1, A2, L); |
| 1560 | } |
| 1561 | bool ByteCodeEmitter::emitAllocNIntAPS( PrimType A0, const Expr * A1, bool A2, SourceInfo L) { |
| 1562 | return emitOp<PrimType, const Expr *, bool>(OP_AllocNIntAPS, A0, A1, A2, L); |
| 1563 | } |
| 1564 | bool ByteCodeEmitter::emitAllocNBool( PrimType A0, const Expr * A1, bool A2, SourceInfo L) { |
| 1565 | return emitOp<PrimType, const Expr *, bool>(OP_AllocNBool, A0, A1, A2, L); |
| 1566 | } |
| 1567 | #endif |
| 1568 | #ifdef GET_EVAL_IMPL |
| 1569 | bool EvalEmitter::emitAllocNSint8( PrimType A0, const Expr * A1, bool A2, SourceInfo L) { |
| 1570 | if (!isActive()) return true; |
| 1571 | CurrentSource = L; |
| 1572 | return AllocN<PT_Sint8>(S, CodePtr(), A0, A1, A2); |
| 1573 | } |
| 1574 | bool EvalEmitter::emitAllocNUint8( PrimType A0, const Expr * A1, bool A2, SourceInfo L) { |
| 1575 | if (!isActive()) return true; |
| 1576 | CurrentSource = L; |
| 1577 | return AllocN<PT_Uint8>(S, CodePtr(), A0, A1, A2); |
| 1578 | } |
| 1579 | bool EvalEmitter::emitAllocNSint16( PrimType A0, const Expr * A1, bool A2, SourceInfo L) { |
| 1580 | if (!isActive()) return true; |
| 1581 | CurrentSource = L; |
| 1582 | return AllocN<PT_Sint16>(S, CodePtr(), A0, A1, A2); |
| 1583 | } |
| 1584 | bool EvalEmitter::emitAllocNUint16( PrimType A0, const Expr * A1, bool A2, SourceInfo L) { |
| 1585 | if (!isActive()) return true; |
| 1586 | CurrentSource = L; |
| 1587 | return AllocN<PT_Uint16>(S, CodePtr(), A0, A1, A2); |
| 1588 | } |
| 1589 | bool EvalEmitter::emitAllocNSint32( PrimType A0, const Expr * A1, bool A2, SourceInfo L) { |
| 1590 | if (!isActive()) return true; |
| 1591 | CurrentSource = L; |
| 1592 | return AllocN<PT_Sint32>(S, CodePtr(), A0, A1, A2); |
| 1593 | } |
| 1594 | bool EvalEmitter::emitAllocNUint32( PrimType A0, const Expr * A1, bool A2, SourceInfo L) { |
| 1595 | if (!isActive()) return true; |
| 1596 | CurrentSource = L; |
| 1597 | return AllocN<PT_Uint32>(S, CodePtr(), A0, A1, A2); |
| 1598 | } |
| 1599 | bool EvalEmitter::emitAllocNSint64( PrimType A0, const Expr * A1, bool A2, SourceInfo L) { |
| 1600 | if (!isActive()) return true; |
| 1601 | CurrentSource = L; |
| 1602 | return AllocN<PT_Sint64>(S, CodePtr(), A0, A1, A2); |
| 1603 | } |
| 1604 | bool EvalEmitter::emitAllocNUint64( PrimType A0, const Expr * A1, bool A2, SourceInfo L) { |
| 1605 | if (!isActive()) return true; |
| 1606 | CurrentSource = L; |
| 1607 | return AllocN<PT_Uint64>(S, CodePtr(), A0, A1, A2); |
| 1608 | } |
| 1609 | bool EvalEmitter::emitAllocNIntAP( PrimType A0, const Expr * A1, bool A2, SourceInfo L) { |
| 1610 | if (!isActive()) return true; |
| 1611 | CurrentSource = L; |
| 1612 | return AllocN<PT_IntAP>(S, CodePtr(), A0, A1, A2); |
| 1613 | } |
| 1614 | bool EvalEmitter::emitAllocNIntAPS( PrimType A0, const Expr * A1, bool A2, SourceInfo L) { |
| 1615 | if (!isActive()) return true; |
| 1616 | CurrentSource = L; |
| 1617 | return AllocN<PT_IntAPS>(S, CodePtr(), A0, A1, A2); |
| 1618 | } |
| 1619 | bool EvalEmitter::emitAllocNBool( PrimType A0, const Expr * A1, bool A2, SourceInfo L) { |
| 1620 | if (!isActive()) return true; |
| 1621 | CurrentSource = L; |
| 1622 | return AllocN<PT_Bool>(S, CodePtr(), A0, A1, A2); |
| 1623 | } |
| 1624 | #endif |
| 1625 | #ifdef GET_OPCODE_NAMES |
| 1626 | OP_ArrayDecay, |
| 1627 | #endif |
| 1628 | #ifdef GET_INTERPFN_LIST |
| 1629 | &Interp_ArrayDecay, |
| 1630 | #endif |
| 1631 | #ifdef GET_INTERPFN_DISPATCHERS |
| 1632 | PRESERVE_NONE |
| 1633 | static bool Interp_ArrayDecay(InterpState &S) { |
| 1634 | if (!ArrayDecay(S, S.PC)) return false; |
| 1635 | #if USE_TAILCALLS |
| 1636 | MUSTTAIL return InterpNext(S); |
| 1637 | #else |
| 1638 | return true; |
| 1639 | #endif |
| 1640 | } |
| 1641 | #endif |
| 1642 | #ifdef GET_DISASM |
| 1643 | case OP_ArrayDecay: |
| 1644 | Text.Op = PrintName("ArrayDecay" ); |
| 1645 | break; |
| 1646 | #endif |
| 1647 | #if defined(GET_EVAL_PROTO) || defined(GET_LINK_PROTO) |
| 1648 | bool emitArrayDecay(SourceInfo); |
| 1649 | #endif |
| 1650 | #ifdef GET_LINK_IMPL |
| 1651 | bool ByteCodeEmitter::emitArrayDecay(SourceInfo L) { |
| 1652 | return emitOp<>(OP_ArrayDecay, L); |
| 1653 | } |
| 1654 | #endif |
| 1655 | #ifdef GET_EVAL_IMPL |
| 1656 | bool EvalEmitter::emitArrayDecay(SourceInfo L) { |
| 1657 | if (!isActive()) return true; |
| 1658 | CurrentSource = L; |
| 1659 | return ArrayDecay(S, CodePtr()); |
| 1660 | } |
| 1661 | #endif |
| 1662 | #ifdef GET_OPCODE_NAMES |
| 1663 | OP_ArrayElemSint8, |
| 1664 | OP_ArrayElemUint8, |
| 1665 | OP_ArrayElemSint16, |
| 1666 | OP_ArrayElemUint16, |
| 1667 | OP_ArrayElemSint32, |
| 1668 | OP_ArrayElemUint32, |
| 1669 | OP_ArrayElemSint64, |
| 1670 | OP_ArrayElemUint64, |
| 1671 | OP_ArrayElemIntAP, |
| 1672 | OP_ArrayElemIntAPS, |
| 1673 | OP_ArrayElemBool, |
| 1674 | OP_ArrayElemFixedPoint, |
| 1675 | OP_ArrayElemPtr, |
| 1676 | OP_ArrayElemMemberPtr, |
| 1677 | OP_ArrayElemFloat, |
| 1678 | OP_ArrayElemReflect, |
| 1679 | #endif |
| 1680 | #ifdef GET_INTERPFN_LIST |
| 1681 | &Interp_ArrayElemSint8, |
| 1682 | &Interp_ArrayElemUint8, |
| 1683 | &Interp_ArrayElemSint16, |
| 1684 | &Interp_ArrayElemUint16, |
| 1685 | &Interp_ArrayElemSint32, |
| 1686 | &Interp_ArrayElemUint32, |
| 1687 | &Interp_ArrayElemSint64, |
| 1688 | &Interp_ArrayElemUint64, |
| 1689 | &Interp_ArrayElemIntAP, |
| 1690 | &Interp_ArrayElemIntAPS, |
| 1691 | &Interp_ArrayElemBool, |
| 1692 | &Interp_ArrayElemFixedPoint, |
| 1693 | &Interp_ArrayElemPtr, |
| 1694 | &Interp_ArrayElemMemberPtr, |
| 1695 | &Interp_ArrayElemFloat, |
| 1696 | &Interp_ArrayElemReflect, |
| 1697 | #endif |
| 1698 | #ifdef GET_INTERPFN_DISPATCHERS |
| 1699 | PRESERVE_NONE |
| 1700 | static bool Interp_ArrayElemSint8(InterpState &S) { |
| 1701 | { |
| 1702 | CodePtr OpPC = S.PC; |
| 1703 | const auto V0 = ReadArg<uint32_t>(S, S.PC); |
| 1704 | if (!ArrayElem<PT_Sint8>(S, OpPC, V0)) return false; |
| 1705 | } |
| 1706 | #if USE_TAILCALLS |
| 1707 | MUSTTAIL return InterpNext(S); |
| 1708 | #else |
| 1709 | return true; |
| 1710 | #endif |
| 1711 | } |
| 1712 | PRESERVE_NONE |
| 1713 | static bool Interp_ArrayElemUint8(InterpState &S) { |
| 1714 | { |
| 1715 | CodePtr OpPC = S.PC; |
| 1716 | const auto V0 = ReadArg<uint32_t>(S, S.PC); |
| 1717 | if (!ArrayElem<PT_Uint8>(S, OpPC, V0)) return false; |
| 1718 | } |
| 1719 | #if USE_TAILCALLS |
| 1720 | MUSTTAIL return InterpNext(S); |
| 1721 | #else |
| 1722 | return true; |
| 1723 | #endif |
| 1724 | } |
| 1725 | PRESERVE_NONE |
| 1726 | static bool Interp_ArrayElemSint16(InterpState &S) { |
| 1727 | { |
| 1728 | CodePtr OpPC = S.PC; |
| 1729 | const auto V0 = ReadArg<uint32_t>(S, S.PC); |
| 1730 | if (!ArrayElem<PT_Sint16>(S, OpPC, V0)) return false; |
| 1731 | } |
| 1732 | #if USE_TAILCALLS |
| 1733 | MUSTTAIL return InterpNext(S); |
| 1734 | #else |
| 1735 | return true; |
| 1736 | #endif |
| 1737 | } |
| 1738 | PRESERVE_NONE |
| 1739 | static bool Interp_ArrayElemUint16(InterpState &S) { |
| 1740 | { |
| 1741 | CodePtr OpPC = S.PC; |
| 1742 | const auto V0 = ReadArg<uint32_t>(S, S.PC); |
| 1743 | if (!ArrayElem<PT_Uint16>(S, OpPC, V0)) return false; |
| 1744 | } |
| 1745 | #if USE_TAILCALLS |
| 1746 | MUSTTAIL return InterpNext(S); |
| 1747 | #else |
| 1748 | return true; |
| 1749 | #endif |
| 1750 | } |
| 1751 | PRESERVE_NONE |
| 1752 | static bool Interp_ArrayElemSint32(InterpState &S) { |
| 1753 | { |
| 1754 | CodePtr OpPC = S.PC; |
| 1755 | const auto V0 = ReadArg<uint32_t>(S, S.PC); |
| 1756 | if (!ArrayElem<PT_Sint32>(S, OpPC, V0)) return false; |
| 1757 | } |
| 1758 | #if USE_TAILCALLS |
| 1759 | MUSTTAIL return InterpNext(S); |
| 1760 | #else |
| 1761 | return true; |
| 1762 | #endif |
| 1763 | } |
| 1764 | PRESERVE_NONE |
| 1765 | static bool Interp_ArrayElemUint32(InterpState &S) { |
| 1766 | { |
| 1767 | CodePtr OpPC = S.PC; |
| 1768 | const auto V0 = ReadArg<uint32_t>(S, S.PC); |
| 1769 | if (!ArrayElem<PT_Uint32>(S, OpPC, V0)) return false; |
| 1770 | } |
| 1771 | #if USE_TAILCALLS |
| 1772 | MUSTTAIL return InterpNext(S); |
| 1773 | #else |
| 1774 | return true; |
| 1775 | #endif |
| 1776 | } |
| 1777 | PRESERVE_NONE |
| 1778 | static bool Interp_ArrayElemSint64(InterpState &S) { |
| 1779 | { |
| 1780 | CodePtr OpPC = S.PC; |
| 1781 | const auto V0 = ReadArg<uint32_t>(S, S.PC); |
| 1782 | if (!ArrayElem<PT_Sint64>(S, OpPC, V0)) return false; |
| 1783 | } |
| 1784 | #if USE_TAILCALLS |
| 1785 | MUSTTAIL return InterpNext(S); |
| 1786 | #else |
| 1787 | return true; |
| 1788 | #endif |
| 1789 | } |
| 1790 | PRESERVE_NONE |
| 1791 | static bool Interp_ArrayElemUint64(InterpState &S) { |
| 1792 | { |
| 1793 | CodePtr OpPC = S.PC; |
| 1794 | const auto V0 = ReadArg<uint32_t>(S, S.PC); |
| 1795 | if (!ArrayElem<PT_Uint64>(S, OpPC, V0)) return false; |
| 1796 | } |
| 1797 | #if USE_TAILCALLS |
| 1798 | MUSTTAIL return InterpNext(S); |
| 1799 | #else |
| 1800 | return true; |
| 1801 | #endif |
| 1802 | } |
| 1803 | PRESERVE_NONE |
| 1804 | static bool Interp_ArrayElemIntAP(InterpState &S) { |
| 1805 | { |
| 1806 | CodePtr OpPC = S.PC; |
| 1807 | const auto V0 = ReadArg<uint32_t>(S, S.PC); |
| 1808 | if (!ArrayElem<PT_IntAP>(S, OpPC, V0)) return false; |
| 1809 | } |
| 1810 | #if USE_TAILCALLS |
| 1811 | MUSTTAIL return InterpNext(S); |
| 1812 | #else |
| 1813 | return true; |
| 1814 | #endif |
| 1815 | } |
| 1816 | PRESERVE_NONE |
| 1817 | static bool Interp_ArrayElemIntAPS(InterpState &S) { |
| 1818 | { |
| 1819 | CodePtr OpPC = S.PC; |
| 1820 | const auto V0 = ReadArg<uint32_t>(S, S.PC); |
| 1821 | if (!ArrayElem<PT_IntAPS>(S, OpPC, V0)) return false; |
| 1822 | } |
| 1823 | #if USE_TAILCALLS |
| 1824 | MUSTTAIL return InterpNext(S); |
| 1825 | #else |
| 1826 | return true; |
| 1827 | #endif |
| 1828 | } |
| 1829 | PRESERVE_NONE |
| 1830 | static bool Interp_ArrayElemBool(InterpState &S) { |
| 1831 | { |
| 1832 | CodePtr OpPC = S.PC; |
| 1833 | const auto V0 = ReadArg<uint32_t>(S, S.PC); |
| 1834 | if (!ArrayElem<PT_Bool>(S, OpPC, V0)) return false; |
| 1835 | } |
| 1836 | #if USE_TAILCALLS |
| 1837 | MUSTTAIL return InterpNext(S); |
| 1838 | #else |
| 1839 | return true; |
| 1840 | #endif |
| 1841 | } |
| 1842 | PRESERVE_NONE |
| 1843 | static bool Interp_ArrayElemFixedPoint(InterpState &S) { |
| 1844 | { |
| 1845 | CodePtr OpPC = S.PC; |
| 1846 | const auto V0 = ReadArg<uint32_t>(S, S.PC); |
| 1847 | if (!ArrayElem<PT_FixedPoint>(S, OpPC, V0)) return false; |
| 1848 | } |
| 1849 | #if USE_TAILCALLS |
| 1850 | MUSTTAIL return InterpNext(S); |
| 1851 | #else |
| 1852 | return true; |
| 1853 | #endif |
| 1854 | } |
| 1855 | PRESERVE_NONE |
| 1856 | static bool Interp_ArrayElemPtr(InterpState &S) { |
| 1857 | { |
| 1858 | CodePtr OpPC = S.PC; |
| 1859 | const auto V0 = ReadArg<uint32_t>(S, S.PC); |
| 1860 | if (!ArrayElem<PT_Ptr>(S, OpPC, V0)) return false; |
| 1861 | } |
| 1862 | #if USE_TAILCALLS |
| 1863 | MUSTTAIL return InterpNext(S); |
| 1864 | #else |
| 1865 | return true; |
| 1866 | #endif |
| 1867 | } |
| 1868 | PRESERVE_NONE |
| 1869 | static bool Interp_ArrayElemMemberPtr(InterpState &S) { |
| 1870 | { |
| 1871 | CodePtr OpPC = S.PC; |
| 1872 | const auto V0 = ReadArg<uint32_t>(S, S.PC); |
| 1873 | if (!ArrayElem<PT_MemberPtr>(S, OpPC, V0)) return false; |
| 1874 | } |
| 1875 | #if USE_TAILCALLS |
| 1876 | MUSTTAIL return InterpNext(S); |
| 1877 | #else |
| 1878 | return true; |
| 1879 | #endif |
| 1880 | } |
| 1881 | PRESERVE_NONE |
| 1882 | static bool Interp_ArrayElemFloat(InterpState &S) { |
| 1883 | { |
| 1884 | CodePtr OpPC = S.PC; |
| 1885 | const auto V0 = ReadArg<uint32_t>(S, S.PC); |
| 1886 | if (!ArrayElem<PT_Float>(S, OpPC, V0)) return false; |
| 1887 | } |
| 1888 | #if USE_TAILCALLS |
| 1889 | MUSTTAIL return InterpNext(S); |
| 1890 | #else |
| 1891 | return true; |
| 1892 | #endif |
| 1893 | } |
| 1894 | PRESERVE_NONE |
| 1895 | static bool Interp_ArrayElemReflect(InterpState &S) { |
| 1896 | { |
| 1897 | CodePtr OpPC = S.PC; |
| 1898 | const auto V0 = ReadArg<uint32_t>(S, S.PC); |
| 1899 | if (!ArrayElem<PT_Reflect>(S, OpPC, V0)) return false; |
| 1900 | } |
| 1901 | #if USE_TAILCALLS |
| 1902 | MUSTTAIL return InterpNext(S); |
| 1903 | #else |
| 1904 | return true; |
| 1905 | #endif |
| 1906 | } |
| 1907 | #endif |
| 1908 | #ifdef GET_DISASM |
| 1909 | case OP_ArrayElemSint8: |
| 1910 | Text.Op = PrintName("ArrayElemSint8" ); |
| 1911 | Text.Args.push_back(printArg<uint32_t>(PC)); |
| 1912 | break; |
| 1913 | case OP_ArrayElemUint8: |
| 1914 | Text.Op = PrintName("ArrayElemUint8" ); |
| 1915 | Text.Args.push_back(printArg<uint32_t>(PC)); |
| 1916 | break; |
| 1917 | case OP_ArrayElemSint16: |
| 1918 | Text.Op = PrintName("ArrayElemSint16" ); |
| 1919 | Text.Args.push_back(printArg<uint32_t>(PC)); |
| 1920 | break; |
| 1921 | case OP_ArrayElemUint16: |
| 1922 | Text.Op = PrintName("ArrayElemUint16" ); |
| 1923 | Text.Args.push_back(printArg<uint32_t>(PC)); |
| 1924 | break; |
| 1925 | case OP_ArrayElemSint32: |
| 1926 | Text.Op = PrintName("ArrayElemSint32" ); |
| 1927 | Text.Args.push_back(printArg<uint32_t>(PC)); |
| 1928 | break; |
| 1929 | case OP_ArrayElemUint32: |
| 1930 | Text.Op = PrintName("ArrayElemUint32" ); |
| 1931 | Text.Args.push_back(printArg<uint32_t>(PC)); |
| 1932 | break; |
| 1933 | case OP_ArrayElemSint64: |
| 1934 | Text.Op = PrintName("ArrayElemSint64" ); |
| 1935 | Text.Args.push_back(printArg<uint32_t>(PC)); |
| 1936 | break; |
| 1937 | case OP_ArrayElemUint64: |
| 1938 | Text.Op = PrintName("ArrayElemUint64" ); |
| 1939 | Text.Args.push_back(printArg<uint32_t>(PC)); |
| 1940 | break; |
| 1941 | case OP_ArrayElemIntAP: |
| 1942 | Text.Op = PrintName("ArrayElemIntAP" ); |
| 1943 | Text.Args.push_back(printArg<uint32_t>(PC)); |
| 1944 | break; |
| 1945 | case OP_ArrayElemIntAPS: |
| 1946 | Text.Op = PrintName("ArrayElemIntAPS" ); |
| 1947 | Text.Args.push_back(printArg<uint32_t>(PC)); |
| 1948 | break; |
| 1949 | case OP_ArrayElemBool: |
| 1950 | Text.Op = PrintName("ArrayElemBool" ); |
| 1951 | Text.Args.push_back(printArg<uint32_t>(PC)); |
| 1952 | break; |
| 1953 | case OP_ArrayElemFixedPoint: |
| 1954 | Text.Op = PrintName("ArrayElemFixedPoint" ); |
| 1955 | Text.Args.push_back(printArg<uint32_t>(PC)); |
| 1956 | break; |
| 1957 | case OP_ArrayElemPtr: |
| 1958 | Text.Op = PrintName("ArrayElemPtr" ); |
| 1959 | Text.Args.push_back(printArg<uint32_t>(PC)); |
| 1960 | break; |
| 1961 | case OP_ArrayElemMemberPtr: |
| 1962 | Text.Op = PrintName("ArrayElemMemberPtr" ); |
| 1963 | Text.Args.push_back(printArg<uint32_t>(PC)); |
| 1964 | break; |
| 1965 | case OP_ArrayElemFloat: |
| 1966 | Text.Op = PrintName("ArrayElemFloat" ); |
| 1967 | Text.Args.push_back(printArg<uint32_t>(PC)); |
| 1968 | break; |
| 1969 | case OP_ArrayElemReflect: |
| 1970 | Text.Op = PrintName("ArrayElemReflect" ); |
| 1971 | Text.Args.push_back(printArg<uint32_t>(PC)); |
| 1972 | break; |
| 1973 | #endif |
| 1974 | #if defined(GET_EVAL_PROTO) || defined(GET_LINK_PROTO) |
| 1975 | bool emitArrayElemSint8( uint32_t , SourceInfo); |
| 1976 | bool emitArrayElemUint8( uint32_t , SourceInfo); |
| 1977 | bool emitArrayElemSint16( uint32_t , SourceInfo); |
| 1978 | bool emitArrayElemUint16( uint32_t , SourceInfo); |
| 1979 | bool emitArrayElemSint32( uint32_t , SourceInfo); |
| 1980 | bool emitArrayElemUint32( uint32_t , SourceInfo); |
| 1981 | bool emitArrayElemSint64( uint32_t , SourceInfo); |
| 1982 | bool emitArrayElemUint64( uint32_t , SourceInfo); |
| 1983 | bool emitArrayElemIntAP( uint32_t , SourceInfo); |
| 1984 | bool emitArrayElemIntAPS( uint32_t , SourceInfo); |
| 1985 | bool emitArrayElemBool( uint32_t , SourceInfo); |
| 1986 | bool emitArrayElemFixedPoint( uint32_t , SourceInfo); |
| 1987 | bool emitArrayElemPtr( uint32_t , SourceInfo); |
| 1988 | bool emitArrayElemMemberPtr( uint32_t , SourceInfo); |
| 1989 | bool emitArrayElemFloat( uint32_t , SourceInfo); |
| 1990 | bool emitArrayElemReflect( uint32_t , SourceInfo); |
| 1991 | #endif |
| 1992 | #if defined(GET_EVAL_PROTO) || defined(GET_LINK_PROTO) |
| 1993 | [[nodiscard]] bool emitArrayElem(PrimType, uint32_t, SourceInfo I); |
| 1994 | #endif |
| 1995 | #if defined(GET_EVAL_IMPL) || defined(GET_LINK_IMPL) |
| 1996 | bool |
| 1997 | #if defined(GET_EVAL_IMPL) |
| 1998 | EvalEmitter |
| 1999 | #else |
| 2000 | ByteCodeEmitter |
| 2001 | #endif |
| 2002 | ::emitArrayElem(PrimType T0, uint32_t A0, SourceInfo I) { |
| 2003 | switch (T0) { |
| 2004 | case PT_Sint8: |
| 2005 | return emitArrayElemSint8(A0, I); |
| 2006 | case PT_Uint8: |
| 2007 | return emitArrayElemUint8(A0, I); |
| 2008 | case PT_Sint16: |
| 2009 | return emitArrayElemSint16(A0, I); |
| 2010 | case PT_Uint16: |
| 2011 | return emitArrayElemUint16(A0, I); |
| 2012 | case PT_Sint32: |
| 2013 | return emitArrayElemSint32(A0, I); |
| 2014 | case PT_Uint32: |
| 2015 | return emitArrayElemUint32(A0, I); |
| 2016 | case PT_Sint64: |
| 2017 | return emitArrayElemSint64(A0, I); |
| 2018 | case PT_Uint64: |
| 2019 | return emitArrayElemUint64(A0, I); |
| 2020 | case PT_IntAP: |
| 2021 | return emitArrayElemIntAP(A0, I); |
| 2022 | case PT_IntAPS: |
| 2023 | return emitArrayElemIntAPS(A0, I); |
| 2024 | case PT_Bool: |
| 2025 | return emitArrayElemBool(A0, I); |
| 2026 | case PT_FixedPoint: |
| 2027 | return emitArrayElemFixedPoint(A0, I); |
| 2028 | case PT_Ptr: |
| 2029 | return emitArrayElemPtr(A0, I); |
| 2030 | case PT_MemberPtr: |
| 2031 | return emitArrayElemMemberPtr(A0, I); |
| 2032 | case PT_Float: |
| 2033 | return emitArrayElemFloat(A0, I); |
| 2034 | case PT_Reflect: |
| 2035 | return emitArrayElemReflect(A0, I); |
| 2036 | } |
| 2037 | llvm_unreachable("invalid enum value" ); |
| 2038 | } |
| 2039 | #endif |
| 2040 | #ifdef GET_LINK_IMPL |
| 2041 | bool ByteCodeEmitter::emitArrayElemSint8( uint32_t A0, SourceInfo L) { |
| 2042 | return emitOp<uint32_t>(OP_ArrayElemSint8, A0, L); |
| 2043 | } |
| 2044 | bool ByteCodeEmitter::emitArrayElemUint8( uint32_t A0, SourceInfo L) { |
| 2045 | return emitOp<uint32_t>(OP_ArrayElemUint8, A0, L); |
| 2046 | } |
| 2047 | bool ByteCodeEmitter::emitArrayElemSint16( uint32_t A0, SourceInfo L) { |
| 2048 | return emitOp<uint32_t>(OP_ArrayElemSint16, A0, L); |
| 2049 | } |
| 2050 | bool ByteCodeEmitter::emitArrayElemUint16( uint32_t A0, SourceInfo L) { |
| 2051 | return emitOp<uint32_t>(OP_ArrayElemUint16, A0, L); |
| 2052 | } |
| 2053 | bool ByteCodeEmitter::emitArrayElemSint32( uint32_t A0, SourceInfo L) { |
| 2054 | return emitOp<uint32_t>(OP_ArrayElemSint32, A0, L); |
| 2055 | } |
| 2056 | bool ByteCodeEmitter::emitArrayElemUint32( uint32_t A0, SourceInfo L) { |
| 2057 | return emitOp<uint32_t>(OP_ArrayElemUint32, A0, L); |
| 2058 | } |
| 2059 | bool ByteCodeEmitter::emitArrayElemSint64( uint32_t A0, SourceInfo L) { |
| 2060 | return emitOp<uint32_t>(OP_ArrayElemSint64, A0, L); |
| 2061 | } |
| 2062 | bool ByteCodeEmitter::emitArrayElemUint64( uint32_t A0, SourceInfo L) { |
| 2063 | return emitOp<uint32_t>(OP_ArrayElemUint64, A0, L); |
| 2064 | } |
| 2065 | bool ByteCodeEmitter::emitArrayElemIntAP( uint32_t A0, SourceInfo L) { |
| 2066 | return emitOp<uint32_t>(OP_ArrayElemIntAP, A0, L); |
| 2067 | } |
| 2068 | bool ByteCodeEmitter::emitArrayElemIntAPS( uint32_t A0, SourceInfo L) { |
| 2069 | return emitOp<uint32_t>(OP_ArrayElemIntAPS, A0, L); |
| 2070 | } |
| 2071 | bool ByteCodeEmitter::emitArrayElemBool( uint32_t A0, SourceInfo L) { |
| 2072 | return emitOp<uint32_t>(OP_ArrayElemBool, A0, L); |
| 2073 | } |
| 2074 | bool ByteCodeEmitter::emitArrayElemFixedPoint( uint32_t A0, SourceInfo L) { |
| 2075 | return emitOp<uint32_t>(OP_ArrayElemFixedPoint, A0, L); |
| 2076 | } |
| 2077 | bool ByteCodeEmitter::emitArrayElemPtr( uint32_t A0, SourceInfo L) { |
| 2078 | return emitOp<uint32_t>(OP_ArrayElemPtr, A0, L); |
| 2079 | } |
| 2080 | bool ByteCodeEmitter::emitArrayElemMemberPtr( uint32_t A0, SourceInfo L) { |
| 2081 | return emitOp<uint32_t>(OP_ArrayElemMemberPtr, A0, L); |
| 2082 | } |
| 2083 | bool ByteCodeEmitter::emitArrayElemFloat( uint32_t A0, SourceInfo L) { |
| 2084 | return emitOp<uint32_t>(OP_ArrayElemFloat, A0, L); |
| 2085 | } |
| 2086 | bool ByteCodeEmitter::emitArrayElemReflect( uint32_t A0, SourceInfo L) { |
| 2087 | return emitOp<uint32_t>(OP_ArrayElemReflect, A0, L); |
| 2088 | } |
| 2089 | #endif |
| 2090 | #ifdef GET_EVAL_IMPL |
| 2091 | bool EvalEmitter::emitArrayElemSint8( uint32_t A0, SourceInfo L) { |
| 2092 | if (!isActive()) return true; |
| 2093 | CurrentSource = L; |
| 2094 | return ArrayElem<PT_Sint8>(S, CodePtr(), A0); |
| 2095 | } |
| 2096 | bool EvalEmitter::emitArrayElemUint8( uint32_t A0, SourceInfo L) { |
| 2097 | if (!isActive()) return true; |
| 2098 | CurrentSource = L; |
| 2099 | return ArrayElem<PT_Uint8>(S, CodePtr(), A0); |
| 2100 | } |
| 2101 | bool EvalEmitter::emitArrayElemSint16( uint32_t A0, SourceInfo L) { |
| 2102 | if (!isActive()) return true; |
| 2103 | CurrentSource = L; |
| 2104 | return ArrayElem<PT_Sint16>(S, CodePtr(), A0); |
| 2105 | } |
| 2106 | bool EvalEmitter::emitArrayElemUint16( uint32_t A0, SourceInfo L) { |
| 2107 | if (!isActive()) return true; |
| 2108 | CurrentSource = L; |
| 2109 | return ArrayElem<PT_Uint16>(S, CodePtr(), A0); |
| 2110 | } |
| 2111 | bool EvalEmitter::emitArrayElemSint32( uint32_t A0, SourceInfo L) { |
| 2112 | if (!isActive()) return true; |
| 2113 | CurrentSource = L; |
| 2114 | return ArrayElem<PT_Sint32>(S, CodePtr(), A0); |
| 2115 | } |
| 2116 | bool EvalEmitter::emitArrayElemUint32( uint32_t A0, SourceInfo L) { |
| 2117 | if (!isActive()) return true; |
| 2118 | CurrentSource = L; |
| 2119 | return ArrayElem<PT_Uint32>(S, CodePtr(), A0); |
| 2120 | } |
| 2121 | bool EvalEmitter::emitArrayElemSint64( uint32_t A0, SourceInfo L) { |
| 2122 | if (!isActive()) return true; |
| 2123 | CurrentSource = L; |
| 2124 | return ArrayElem<PT_Sint64>(S, CodePtr(), A0); |
| 2125 | } |
| 2126 | bool EvalEmitter::emitArrayElemUint64( uint32_t A0, SourceInfo L) { |
| 2127 | if (!isActive()) return true; |
| 2128 | CurrentSource = L; |
| 2129 | return ArrayElem<PT_Uint64>(S, CodePtr(), A0); |
| 2130 | } |
| 2131 | bool EvalEmitter::emitArrayElemIntAP( uint32_t A0, SourceInfo L) { |
| 2132 | if (!isActive()) return true; |
| 2133 | CurrentSource = L; |
| 2134 | return ArrayElem<PT_IntAP>(S, CodePtr(), A0); |
| 2135 | } |
| 2136 | bool EvalEmitter::emitArrayElemIntAPS( uint32_t A0, SourceInfo L) { |
| 2137 | if (!isActive()) return true; |
| 2138 | CurrentSource = L; |
| 2139 | return ArrayElem<PT_IntAPS>(S, CodePtr(), A0); |
| 2140 | } |
| 2141 | bool EvalEmitter::emitArrayElemBool( uint32_t A0, SourceInfo L) { |
| 2142 | if (!isActive()) return true; |
| 2143 | CurrentSource = L; |
| 2144 | return ArrayElem<PT_Bool>(S, CodePtr(), A0); |
| 2145 | } |
| 2146 | bool EvalEmitter::emitArrayElemFixedPoint( uint32_t A0, SourceInfo L) { |
| 2147 | if (!isActive()) return true; |
| 2148 | CurrentSource = L; |
| 2149 | return ArrayElem<PT_FixedPoint>(S, CodePtr(), A0); |
| 2150 | } |
| 2151 | bool EvalEmitter::emitArrayElemPtr( uint32_t A0, SourceInfo L) { |
| 2152 | if (!isActive()) return true; |
| 2153 | CurrentSource = L; |
| 2154 | return ArrayElem<PT_Ptr>(S, CodePtr(), A0); |
| 2155 | } |
| 2156 | bool EvalEmitter::emitArrayElemMemberPtr( uint32_t A0, SourceInfo L) { |
| 2157 | if (!isActive()) return true; |
| 2158 | CurrentSource = L; |
| 2159 | return ArrayElem<PT_MemberPtr>(S, CodePtr(), A0); |
| 2160 | } |
| 2161 | bool EvalEmitter::emitArrayElemFloat( uint32_t A0, SourceInfo L) { |
| 2162 | if (!isActive()) return true; |
| 2163 | CurrentSource = L; |
| 2164 | return ArrayElem<PT_Float>(S, CodePtr(), A0); |
| 2165 | } |
| 2166 | bool EvalEmitter::emitArrayElemReflect( uint32_t A0, SourceInfo L) { |
| 2167 | if (!isActive()) return true; |
| 2168 | CurrentSource = L; |
| 2169 | return ArrayElem<PT_Reflect>(S, CodePtr(), A0); |
| 2170 | } |
| 2171 | #endif |
| 2172 | #ifdef GET_OPCODE_NAMES |
| 2173 | OP_ArrayElemPopSint8, |
| 2174 | OP_ArrayElemPopUint8, |
| 2175 | OP_ArrayElemPopSint16, |
| 2176 | OP_ArrayElemPopUint16, |
| 2177 | OP_ArrayElemPopSint32, |
| 2178 | OP_ArrayElemPopUint32, |
| 2179 | OP_ArrayElemPopSint64, |
| 2180 | OP_ArrayElemPopUint64, |
| 2181 | OP_ArrayElemPopIntAP, |
| 2182 | OP_ArrayElemPopIntAPS, |
| 2183 | OP_ArrayElemPopBool, |
| 2184 | OP_ArrayElemPopFixedPoint, |
| 2185 | OP_ArrayElemPopPtr, |
| 2186 | OP_ArrayElemPopMemberPtr, |
| 2187 | OP_ArrayElemPopFloat, |
| 2188 | OP_ArrayElemPopReflect, |
| 2189 | #endif |
| 2190 | #ifdef GET_INTERPFN_LIST |
| 2191 | &Interp_ArrayElemPopSint8, |
| 2192 | &Interp_ArrayElemPopUint8, |
| 2193 | &Interp_ArrayElemPopSint16, |
| 2194 | &Interp_ArrayElemPopUint16, |
| 2195 | &Interp_ArrayElemPopSint32, |
| 2196 | &Interp_ArrayElemPopUint32, |
| 2197 | &Interp_ArrayElemPopSint64, |
| 2198 | &Interp_ArrayElemPopUint64, |
| 2199 | &Interp_ArrayElemPopIntAP, |
| 2200 | &Interp_ArrayElemPopIntAPS, |
| 2201 | &Interp_ArrayElemPopBool, |
| 2202 | &Interp_ArrayElemPopFixedPoint, |
| 2203 | &Interp_ArrayElemPopPtr, |
| 2204 | &Interp_ArrayElemPopMemberPtr, |
| 2205 | &Interp_ArrayElemPopFloat, |
| 2206 | &Interp_ArrayElemPopReflect, |
| 2207 | #endif |
| 2208 | #ifdef GET_INTERPFN_DISPATCHERS |
| 2209 | PRESERVE_NONE |
| 2210 | static bool Interp_ArrayElemPopSint8(InterpState &S) { |
| 2211 | { |
| 2212 | CodePtr OpPC = S.PC; |
| 2213 | const auto V0 = ReadArg<uint32_t>(S, S.PC); |
| 2214 | if (!ArrayElemPop<PT_Sint8>(S, OpPC, V0)) return false; |
| 2215 | } |
| 2216 | #if USE_TAILCALLS |
| 2217 | MUSTTAIL return InterpNext(S); |
| 2218 | #else |
| 2219 | return true; |
| 2220 | #endif |
| 2221 | } |
| 2222 | PRESERVE_NONE |
| 2223 | static bool Interp_ArrayElemPopUint8(InterpState &S) { |
| 2224 | { |
| 2225 | CodePtr OpPC = S.PC; |
| 2226 | const auto V0 = ReadArg<uint32_t>(S, S.PC); |
| 2227 | if (!ArrayElemPop<PT_Uint8>(S, OpPC, V0)) return false; |
| 2228 | } |
| 2229 | #if USE_TAILCALLS |
| 2230 | MUSTTAIL return InterpNext(S); |
| 2231 | #else |
| 2232 | return true; |
| 2233 | #endif |
| 2234 | } |
| 2235 | PRESERVE_NONE |
| 2236 | static bool Interp_ArrayElemPopSint16(InterpState &S) { |
| 2237 | { |
| 2238 | CodePtr OpPC = S.PC; |
| 2239 | const auto V0 = ReadArg<uint32_t>(S, S.PC); |
| 2240 | if (!ArrayElemPop<PT_Sint16>(S, OpPC, V0)) return false; |
| 2241 | } |
| 2242 | #if USE_TAILCALLS |
| 2243 | MUSTTAIL return InterpNext(S); |
| 2244 | #else |
| 2245 | return true; |
| 2246 | #endif |
| 2247 | } |
| 2248 | PRESERVE_NONE |
| 2249 | static bool Interp_ArrayElemPopUint16(InterpState &S) { |
| 2250 | { |
| 2251 | CodePtr OpPC = S.PC; |
| 2252 | const auto V0 = ReadArg<uint32_t>(S, S.PC); |
| 2253 | if (!ArrayElemPop<PT_Uint16>(S, OpPC, V0)) return false; |
| 2254 | } |
| 2255 | #if USE_TAILCALLS |
| 2256 | MUSTTAIL return InterpNext(S); |
| 2257 | #else |
| 2258 | return true; |
| 2259 | #endif |
| 2260 | } |
| 2261 | PRESERVE_NONE |
| 2262 | static bool Interp_ArrayElemPopSint32(InterpState &S) { |
| 2263 | { |
| 2264 | CodePtr OpPC = S.PC; |
| 2265 | const auto V0 = ReadArg<uint32_t>(S, S.PC); |
| 2266 | if (!ArrayElemPop<PT_Sint32>(S, OpPC, V0)) return false; |
| 2267 | } |
| 2268 | #if USE_TAILCALLS |
| 2269 | MUSTTAIL return InterpNext(S); |
| 2270 | #else |
| 2271 | return true; |
| 2272 | #endif |
| 2273 | } |
| 2274 | PRESERVE_NONE |
| 2275 | static bool Interp_ArrayElemPopUint32(InterpState &S) { |
| 2276 | { |
| 2277 | CodePtr OpPC = S.PC; |
| 2278 | const auto V0 = ReadArg<uint32_t>(S, S.PC); |
| 2279 | if (!ArrayElemPop<PT_Uint32>(S, OpPC, V0)) return false; |
| 2280 | } |
| 2281 | #if USE_TAILCALLS |
| 2282 | MUSTTAIL return InterpNext(S); |
| 2283 | #else |
| 2284 | return true; |
| 2285 | #endif |
| 2286 | } |
| 2287 | PRESERVE_NONE |
| 2288 | static bool Interp_ArrayElemPopSint64(InterpState &S) { |
| 2289 | { |
| 2290 | CodePtr OpPC = S.PC; |
| 2291 | const auto V0 = ReadArg<uint32_t>(S, S.PC); |
| 2292 | if (!ArrayElemPop<PT_Sint64>(S, OpPC, V0)) return false; |
| 2293 | } |
| 2294 | #if USE_TAILCALLS |
| 2295 | MUSTTAIL return InterpNext(S); |
| 2296 | #else |
| 2297 | return true; |
| 2298 | #endif |
| 2299 | } |
| 2300 | PRESERVE_NONE |
| 2301 | static bool Interp_ArrayElemPopUint64(InterpState &S) { |
| 2302 | { |
| 2303 | CodePtr OpPC = S.PC; |
| 2304 | const auto V0 = ReadArg<uint32_t>(S, S.PC); |
| 2305 | if (!ArrayElemPop<PT_Uint64>(S, OpPC, V0)) return false; |
| 2306 | } |
| 2307 | #if USE_TAILCALLS |
| 2308 | MUSTTAIL return InterpNext(S); |
| 2309 | #else |
| 2310 | return true; |
| 2311 | #endif |
| 2312 | } |
| 2313 | PRESERVE_NONE |
| 2314 | static bool Interp_ArrayElemPopIntAP(InterpState &S) { |
| 2315 | { |
| 2316 | CodePtr OpPC = S.PC; |
| 2317 | const auto V0 = ReadArg<uint32_t>(S, S.PC); |
| 2318 | if (!ArrayElemPop<PT_IntAP>(S, OpPC, V0)) return false; |
| 2319 | } |
| 2320 | #if USE_TAILCALLS |
| 2321 | MUSTTAIL return InterpNext(S); |
| 2322 | #else |
| 2323 | return true; |
| 2324 | #endif |
| 2325 | } |
| 2326 | PRESERVE_NONE |
| 2327 | static bool Interp_ArrayElemPopIntAPS(InterpState &S) { |
| 2328 | { |
| 2329 | CodePtr OpPC = S.PC; |
| 2330 | const auto V0 = ReadArg<uint32_t>(S, S.PC); |
| 2331 | if (!ArrayElemPop<PT_IntAPS>(S, OpPC, V0)) return false; |
| 2332 | } |
| 2333 | #if USE_TAILCALLS |
| 2334 | MUSTTAIL return InterpNext(S); |
| 2335 | #else |
| 2336 | return true; |
| 2337 | #endif |
| 2338 | } |
| 2339 | PRESERVE_NONE |
| 2340 | static bool Interp_ArrayElemPopBool(InterpState &S) { |
| 2341 | { |
| 2342 | CodePtr OpPC = S.PC; |
| 2343 | const auto V0 = ReadArg<uint32_t>(S, S.PC); |
| 2344 | if (!ArrayElemPop<PT_Bool>(S, OpPC, V0)) return false; |
| 2345 | } |
| 2346 | #if USE_TAILCALLS |
| 2347 | MUSTTAIL return InterpNext(S); |
| 2348 | #else |
| 2349 | return true; |
| 2350 | #endif |
| 2351 | } |
| 2352 | PRESERVE_NONE |
| 2353 | static bool Interp_ArrayElemPopFixedPoint(InterpState &S) { |
| 2354 | { |
| 2355 | CodePtr OpPC = S.PC; |
| 2356 | const auto V0 = ReadArg<uint32_t>(S, S.PC); |
| 2357 | if (!ArrayElemPop<PT_FixedPoint>(S, OpPC, V0)) return false; |
| 2358 | } |
| 2359 | #if USE_TAILCALLS |
| 2360 | MUSTTAIL return InterpNext(S); |
| 2361 | #else |
| 2362 | return true; |
| 2363 | #endif |
| 2364 | } |
| 2365 | PRESERVE_NONE |
| 2366 | static bool Interp_ArrayElemPopPtr(InterpState &S) { |
| 2367 | { |
| 2368 | CodePtr OpPC = S.PC; |
| 2369 | const auto V0 = ReadArg<uint32_t>(S, S.PC); |
| 2370 | if (!ArrayElemPop<PT_Ptr>(S, OpPC, V0)) return false; |
| 2371 | } |
| 2372 | #if USE_TAILCALLS |
| 2373 | MUSTTAIL return InterpNext(S); |
| 2374 | #else |
| 2375 | return true; |
| 2376 | #endif |
| 2377 | } |
| 2378 | PRESERVE_NONE |
| 2379 | static bool Interp_ArrayElemPopMemberPtr(InterpState &S) { |
| 2380 | { |
| 2381 | CodePtr OpPC = S.PC; |
| 2382 | const auto V0 = ReadArg<uint32_t>(S, S.PC); |
| 2383 | if (!ArrayElemPop<PT_MemberPtr>(S, OpPC, V0)) return false; |
| 2384 | } |
| 2385 | #if USE_TAILCALLS |
| 2386 | MUSTTAIL return InterpNext(S); |
| 2387 | #else |
| 2388 | return true; |
| 2389 | #endif |
| 2390 | } |
| 2391 | PRESERVE_NONE |
| 2392 | static bool Interp_ArrayElemPopFloat(InterpState &S) { |
| 2393 | { |
| 2394 | CodePtr OpPC = S.PC; |
| 2395 | const auto V0 = ReadArg<uint32_t>(S, S.PC); |
| 2396 | if (!ArrayElemPop<PT_Float>(S, OpPC, V0)) return false; |
| 2397 | } |
| 2398 | #if USE_TAILCALLS |
| 2399 | MUSTTAIL return InterpNext(S); |
| 2400 | #else |
| 2401 | return true; |
| 2402 | #endif |
| 2403 | } |
| 2404 | PRESERVE_NONE |
| 2405 | static bool Interp_ArrayElemPopReflect(InterpState &S) { |
| 2406 | { |
| 2407 | CodePtr OpPC = S.PC; |
| 2408 | const auto V0 = ReadArg<uint32_t>(S, S.PC); |
| 2409 | if (!ArrayElemPop<PT_Reflect>(S, OpPC, V0)) return false; |
| 2410 | } |
| 2411 | #if USE_TAILCALLS |
| 2412 | MUSTTAIL return InterpNext(S); |
| 2413 | #else |
| 2414 | return true; |
| 2415 | #endif |
| 2416 | } |
| 2417 | #endif |
| 2418 | #ifdef GET_DISASM |
| 2419 | case OP_ArrayElemPopSint8: |
| 2420 | Text.Op = PrintName("ArrayElemPopSint8" ); |
| 2421 | Text.Args.push_back(printArg<uint32_t>(PC)); |
| 2422 | break; |
| 2423 | case OP_ArrayElemPopUint8: |
| 2424 | Text.Op = PrintName("ArrayElemPopUint8" ); |
| 2425 | Text.Args.push_back(printArg<uint32_t>(PC)); |
| 2426 | break; |
| 2427 | case OP_ArrayElemPopSint16: |
| 2428 | Text.Op = PrintName("ArrayElemPopSint16" ); |
| 2429 | Text.Args.push_back(printArg<uint32_t>(PC)); |
| 2430 | break; |
| 2431 | case OP_ArrayElemPopUint16: |
| 2432 | Text.Op = PrintName("ArrayElemPopUint16" ); |
| 2433 | Text.Args.push_back(printArg<uint32_t>(PC)); |
| 2434 | break; |
| 2435 | case OP_ArrayElemPopSint32: |
| 2436 | Text.Op = PrintName("ArrayElemPopSint32" ); |
| 2437 | Text.Args.push_back(printArg<uint32_t>(PC)); |
| 2438 | break; |
| 2439 | case OP_ArrayElemPopUint32: |
| 2440 | Text.Op = PrintName("ArrayElemPopUint32" ); |
| 2441 | Text.Args.push_back(printArg<uint32_t>(PC)); |
| 2442 | break; |
| 2443 | case OP_ArrayElemPopSint64: |
| 2444 | Text.Op = PrintName("ArrayElemPopSint64" ); |
| 2445 | Text.Args.push_back(printArg<uint32_t>(PC)); |
| 2446 | break; |
| 2447 | case OP_ArrayElemPopUint64: |
| 2448 | Text.Op = PrintName("ArrayElemPopUint64" ); |
| 2449 | Text.Args.push_back(printArg<uint32_t>(PC)); |
| 2450 | break; |
| 2451 | case OP_ArrayElemPopIntAP: |
| 2452 | Text.Op = PrintName("ArrayElemPopIntAP" ); |
| 2453 | Text.Args.push_back(printArg<uint32_t>(PC)); |
| 2454 | break; |
| 2455 | case OP_ArrayElemPopIntAPS: |
| 2456 | Text.Op = PrintName("ArrayElemPopIntAPS" ); |
| 2457 | Text.Args.push_back(printArg<uint32_t>(PC)); |
| 2458 | break; |
| 2459 | case OP_ArrayElemPopBool: |
| 2460 | Text.Op = PrintName("ArrayElemPopBool" ); |
| 2461 | Text.Args.push_back(printArg<uint32_t>(PC)); |
| 2462 | break; |
| 2463 | case OP_ArrayElemPopFixedPoint: |
| 2464 | Text.Op = PrintName("ArrayElemPopFixedPoint" ); |
| 2465 | Text.Args.push_back(printArg<uint32_t>(PC)); |
| 2466 | break; |
| 2467 | case OP_ArrayElemPopPtr: |
| 2468 | Text.Op = PrintName("ArrayElemPopPtr" ); |
| 2469 | Text.Args.push_back(printArg<uint32_t>(PC)); |
| 2470 | break; |
| 2471 | case OP_ArrayElemPopMemberPtr: |
| 2472 | Text.Op = PrintName("ArrayElemPopMemberPtr" ); |
| 2473 | Text.Args.push_back(printArg<uint32_t>(PC)); |
| 2474 | break; |
| 2475 | case OP_ArrayElemPopFloat: |
| 2476 | Text.Op = PrintName("ArrayElemPopFloat" ); |
| 2477 | Text.Args.push_back(printArg<uint32_t>(PC)); |
| 2478 | break; |
| 2479 | case OP_ArrayElemPopReflect: |
| 2480 | Text.Op = PrintName("ArrayElemPopReflect" ); |
| 2481 | Text.Args.push_back(printArg<uint32_t>(PC)); |
| 2482 | break; |
| 2483 | #endif |
| 2484 | #if defined(GET_EVAL_PROTO) || defined(GET_LINK_PROTO) |
| 2485 | bool emitArrayElemPopSint8( uint32_t , SourceInfo); |
| 2486 | bool emitArrayElemPopUint8( uint32_t , SourceInfo); |
| 2487 | bool emitArrayElemPopSint16( uint32_t , SourceInfo); |
| 2488 | bool emitArrayElemPopUint16( uint32_t , SourceInfo); |
| 2489 | bool emitArrayElemPopSint32( uint32_t , SourceInfo); |
| 2490 | bool emitArrayElemPopUint32( uint32_t , SourceInfo); |
| 2491 | bool emitArrayElemPopSint64( uint32_t , SourceInfo); |
| 2492 | bool emitArrayElemPopUint64( uint32_t , SourceInfo); |
| 2493 | bool emitArrayElemPopIntAP( uint32_t , SourceInfo); |
| 2494 | bool emitArrayElemPopIntAPS( uint32_t , SourceInfo); |
| 2495 | bool emitArrayElemPopBool( uint32_t , SourceInfo); |
| 2496 | bool emitArrayElemPopFixedPoint( uint32_t , SourceInfo); |
| 2497 | bool emitArrayElemPopPtr( uint32_t , SourceInfo); |
| 2498 | bool emitArrayElemPopMemberPtr( uint32_t , SourceInfo); |
| 2499 | bool emitArrayElemPopFloat( uint32_t , SourceInfo); |
| 2500 | bool emitArrayElemPopReflect( uint32_t , SourceInfo); |
| 2501 | #endif |
| 2502 | #if defined(GET_EVAL_PROTO) || defined(GET_LINK_PROTO) |
| 2503 | [[nodiscard]] bool emitArrayElemPop(PrimType, uint32_t, SourceInfo I); |
| 2504 | #endif |
| 2505 | #if defined(GET_EVAL_IMPL) || defined(GET_LINK_IMPL) |
| 2506 | bool |
| 2507 | #if defined(GET_EVAL_IMPL) |
| 2508 | EvalEmitter |
| 2509 | #else |
| 2510 | ByteCodeEmitter |
| 2511 | #endif |
| 2512 | ::emitArrayElemPop(PrimType T0, uint32_t A0, SourceInfo I) { |
| 2513 | switch (T0) { |
| 2514 | case PT_Sint8: |
| 2515 | return emitArrayElemPopSint8(A0, I); |
| 2516 | case PT_Uint8: |
| 2517 | return emitArrayElemPopUint8(A0, I); |
| 2518 | case PT_Sint16: |
| 2519 | return emitArrayElemPopSint16(A0, I); |
| 2520 | case PT_Uint16: |
| 2521 | return emitArrayElemPopUint16(A0, I); |
| 2522 | case PT_Sint32: |
| 2523 | return emitArrayElemPopSint32(A0, I); |
| 2524 | case PT_Uint32: |
| 2525 | return emitArrayElemPopUint32(A0, I); |
| 2526 | case PT_Sint64: |
| 2527 | return emitArrayElemPopSint64(A0, I); |
| 2528 | case PT_Uint64: |
| 2529 | return emitArrayElemPopUint64(A0, I); |
| 2530 | case PT_IntAP: |
| 2531 | return emitArrayElemPopIntAP(A0, I); |
| 2532 | case PT_IntAPS: |
| 2533 | return emitArrayElemPopIntAPS(A0, I); |
| 2534 | case PT_Bool: |
| 2535 | return emitArrayElemPopBool(A0, I); |
| 2536 | case PT_FixedPoint: |
| 2537 | return emitArrayElemPopFixedPoint(A0, I); |
| 2538 | case PT_Ptr: |
| 2539 | return emitArrayElemPopPtr(A0, I); |
| 2540 | case PT_MemberPtr: |
| 2541 | return emitArrayElemPopMemberPtr(A0, I); |
| 2542 | case PT_Float: |
| 2543 | return emitArrayElemPopFloat(A0, I); |
| 2544 | case PT_Reflect: |
| 2545 | return emitArrayElemPopReflect(A0, I); |
| 2546 | } |
| 2547 | llvm_unreachable("invalid enum value" ); |
| 2548 | } |
| 2549 | #endif |
| 2550 | #ifdef GET_LINK_IMPL |
| 2551 | bool ByteCodeEmitter::emitArrayElemPopSint8( uint32_t A0, SourceInfo L) { |
| 2552 | return emitOp<uint32_t>(OP_ArrayElemPopSint8, A0, L); |
| 2553 | } |
| 2554 | bool ByteCodeEmitter::emitArrayElemPopUint8( uint32_t A0, SourceInfo L) { |
| 2555 | return emitOp<uint32_t>(OP_ArrayElemPopUint8, A0, L); |
| 2556 | } |
| 2557 | bool ByteCodeEmitter::emitArrayElemPopSint16( uint32_t A0, SourceInfo L) { |
| 2558 | return emitOp<uint32_t>(OP_ArrayElemPopSint16, A0, L); |
| 2559 | } |
| 2560 | bool ByteCodeEmitter::emitArrayElemPopUint16( uint32_t A0, SourceInfo L) { |
| 2561 | return emitOp<uint32_t>(OP_ArrayElemPopUint16, A0, L); |
| 2562 | } |
| 2563 | bool ByteCodeEmitter::emitArrayElemPopSint32( uint32_t A0, SourceInfo L) { |
| 2564 | return emitOp<uint32_t>(OP_ArrayElemPopSint32, A0, L); |
| 2565 | } |
| 2566 | bool ByteCodeEmitter::emitArrayElemPopUint32( uint32_t A0, SourceInfo L) { |
| 2567 | return emitOp<uint32_t>(OP_ArrayElemPopUint32, A0, L); |
| 2568 | } |
| 2569 | bool ByteCodeEmitter::emitArrayElemPopSint64( uint32_t A0, SourceInfo L) { |
| 2570 | return emitOp<uint32_t>(OP_ArrayElemPopSint64, A0, L); |
| 2571 | } |
| 2572 | bool ByteCodeEmitter::emitArrayElemPopUint64( uint32_t A0, SourceInfo L) { |
| 2573 | return emitOp<uint32_t>(OP_ArrayElemPopUint64, A0, L); |
| 2574 | } |
| 2575 | bool ByteCodeEmitter::emitArrayElemPopIntAP( uint32_t A0, SourceInfo L) { |
| 2576 | return emitOp<uint32_t>(OP_ArrayElemPopIntAP, A0, L); |
| 2577 | } |
| 2578 | bool ByteCodeEmitter::emitArrayElemPopIntAPS( uint32_t A0, SourceInfo L) { |
| 2579 | return emitOp<uint32_t>(OP_ArrayElemPopIntAPS, A0, L); |
| 2580 | } |
| 2581 | bool ByteCodeEmitter::emitArrayElemPopBool( uint32_t A0, SourceInfo L) { |
| 2582 | return emitOp<uint32_t>(OP_ArrayElemPopBool, A0, L); |
| 2583 | } |
| 2584 | bool ByteCodeEmitter::emitArrayElemPopFixedPoint( uint32_t A0, SourceInfo L) { |
| 2585 | return emitOp<uint32_t>(OP_ArrayElemPopFixedPoint, A0, L); |
| 2586 | } |
| 2587 | bool ByteCodeEmitter::emitArrayElemPopPtr( uint32_t A0, SourceInfo L) { |
| 2588 | return emitOp<uint32_t>(OP_ArrayElemPopPtr, A0, L); |
| 2589 | } |
| 2590 | bool ByteCodeEmitter::emitArrayElemPopMemberPtr( uint32_t A0, SourceInfo L) { |
| 2591 | return emitOp<uint32_t>(OP_ArrayElemPopMemberPtr, A0, L); |
| 2592 | } |
| 2593 | bool ByteCodeEmitter::emitArrayElemPopFloat( uint32_t A0, SourceInfo L) { |
| 2594 | return emitOp<uint32_t>(OP_ArrayElemPopFloat, A0, L); |
| 2595 | } |
| 2596 | bool ByteCodeEmitter::emitArrayElemPopReflect( uint32_t A0, SourceInfo L) { |
| 2597 | return emitOp<uint32_t>(OP_ArrayElemPopReflect, A0, L); |
| 2598 | } |
| 2599 | #endif |
| 2600 | #ifdef GET_EVAL_IMPL |
| 2601 | bool EvalEmitter::emitArrayElemPopSint8( uint32_t A0, SourceInfo L) { |
| 2602 | if (!isActive()) return true; |
| 2603 | CurrentSource = L; |
| 2604 | return ArrayElemPop<PT_Sint8>(S, CodePtr(), A0); |
| 2605 | } |
| 2606 | bool EvalEmitter::emitArrayElemPopUint8( uint32_t A0, SourceInfo L) { |
| 2607 | if (!isActive()) return true; |
| 2608 | CurrentSource = L; |
| 2609 | return ArrayElemPop<PT_Uint8>(S, CodePtr(), A0); |
| 2610 | } |
| 2611 | bool EvalEmitter::emitArrayElemPopSint16( uint32_t A0, SourceInfo L) { |
| 2612 | if (!isActive()) return true; |
| 2613 | CurrentSource = L; |
| 2614 | return ArrayElemPop<PT_Sint16>(S, CodePtr(), A0); |
| 2615 | } |
| 2616 | bool EvalEmitter::emitArrayElemPopUint16( uint32_t A0, SourceInfo L) { |
| 2617 | if (!isActive()) return true; |
| 2618 | CurrentSource = L; |
| 2619 | return ArrayElemPop<PT_Uint16>(S, CodePtr(), A0); |
| 2620 | } |
| 2621 | bool EvalEmitter::emitArrayElemPopSint32( uint32_t A0, SourceInfo L) { |
| 2622 | if (!isActive()) return true; |
| 2623 | CurrentSource = L; |
| 2624 | return ArrayElemPop<PT_Sint32>(S, CodePtr(), A0); |
| 2625 | } |
| 2626 | bool EvalEmitter::emitArrayElemPopUint32( uint32_t A0, SourceInfo L) { |
| 2627 | if (!isActive()) return true; |
| 2628 | CurrentSource = L; |
| 2629 | return ArrayElemPop<PT_Uint32>(S, CodePtr(), A0); |
| 2630 | } |
| 2631 | bool EvalEmitter::emitArrayElemPopSint64( uint32_t A0, SourceInfo L) { |
| 2632 | if (!isActive()) return true; |
| 2633 | CurrentSource = L; |
| 2634 | return ArrayElemPop<PT_Sint64>(S, CodePtr(), A0); |
| 2635 | } |
| 2636 | bool EvalEmitter::emitArrayElemPopUint64( uint32_t A0, SourceInfo L) { |
| 2637 | if (!isActive()) return true; |
| 2638 | CurrentSource = L; |
| 2639 | return ArrayElemPop<PT_Uint64>(S, CodePtr(), A0); |
| 2640 | } |
| 2641 | bool EvalEmitter::emitArrayElemPopIntAP( uint32_t A0, SourceInfo L) { |
| 2642 | if (!isActive()) return true; |
| 2643 | CurrentSource = L; |
| 2644 | return ArrayElemPop<PT_IntAP>(S, CodePtr(), A0); |
| 2645 | } |
| 2646 | bool EvalEmitter::emitArrayElemPopIntAPS( uint32_t A0, SourceInfo L) { |
| 2647 | if (!isActive()) return true; |
| 2648 | CurrentSource = L; |
| 2649 | return ArrayElemPop<PT_IntAPS>(S, CodePtr(), A0); |
| 2650 | } |
| 2651 | bool EvalEmitter::emitArrayElemPopBool( uint32_t A0, SourceInfo L) { |
| 2652 | if (!isActive()) return true; |
| 2653 | CurrentSource = L; |
| 2654 | return ArrayElemPop<PT_Bool>(S, CodePtr(), A0); |
| 2655 | } |
| 2656 | bool EvalEmitter::emitArrayElemPopFixedPoint( uint32_t A0, SourceInfo L) { |
| 2657 | if (!isActive()) return true; |
| 2658 | CurrentSource = L; |
| 2659 | return ArrayElemPop<PT_FixedPoint>(S, CodePtr(), A0); |
| 2660 | } |
| 2661 | bool EvalEmitter::emitArrayElemPopPtr( uint32_t A0, SourceInfo L) { |
| 2662 | if (!isActive()) return true; |
| 2663 | CurrentSource = L; |
| 2664 | return ArrayElemPop<PT_Ptr>(S, CodePtr(), A0); |
| 2665 | } |
| 2666 | bool EvalEmitter::emitArrayElemPopMemberPtr( uint32_t A0, SourceInfo L) { |
| 2667 | if (!isActive()) return true; |
| 2668 | CurrentSource = L; |
| 2669 | return ArrayElemPop<PT_MemberPtr>(S, CodePtr(), A0); |
| 2670 | } |
| 2671 | bool EvalEmitter::emitArrayElemPopFloat( uint32_t A0, SourceInfo L) { |
| 2672 | if (!isActive()) return true; |
| 2673 | CurrentSource = L; |
| 2674 | return ArrayElemPop<PT_Float>(S, CodePtr(), A0); |
| 2675 | } |
| 2676 | bool EvalEmitter::emitArrayElemPopReflect( uint32_t A0, SourceInfo L) { |
| 2677 | if (!isActive()) return true; |
| 2678 | CurrentSource = L; |
| 2679 | return ArrayElemPop<PT_Reflect>(S, CodePtr(), A0); |
| 2680 | } |
| 2681 | #endif |
| 2682 | #ifdef GET_OPCODE_NAMES |
| 2683 | OP_ArrayElemPtrSint8, |
| 2684 | OP_ArrayElemPtrUint8, |
| 2685 | OP_ArrayElemPtrSint16, |
| 2686 | OP_ArrayElemPtrUint16, |
| 2687 | OP_ArrayElemPtrSint32, |
| 2688 | OP_ArrayElemPtrUint32, |
| 2689 | OP_ArrayElemPtrSint64, |
| 2690 | OP_ArrayElemPtrUint64, |
| 2691 | OP_ArrayElemPtrIntAP, |
| 2692 | OP_ArrayElemPtrIntAPS, |
| 2693 | OP_ArrayElemPtrBool, |
| 2694 | #endif |
| 2695 | #ifdef GET_INTERPFN_LIST |
| 2696 | &Interp_ArrayElemPtrSint8, |
| 2697 | &Interp_ArrayElemPtrUint8, |
| 2698 | &Interp_ArrayElemPtrSint16, |
| 2699 | &Interp_ArrayElemPtrUint16, |
| 2700 | &Interp_ArrayElemPtrSint32, |
| 2701 | &Interp_ArrayElemPtrUint32, |
| 2702 | &Interp_ArrayElemPtrSint64, |
| 2703 | &Interp_ArrayElemPtrUint64, |
| 2704 | &Interp_ArrayElemPtrIntAP, |
| 2705 | &Interp_ArrayElemPtrIntAPS, |
| 2706 | &Interp_ArrayElemPtrBool, |
| 2707 | #endif |
| 2708 | #ifdef GET_INTERPFN_DISPATCHERS |
| 2709 | PRESERVE_NONE |
| 2710 | static bool Interp_ArrayElemPtrSint8(InterpState &S) { |
| 2711 | if (!ArrayElemPtr<PT_Sint8>(S, S.PC)) return false; |
| 2712 | #if USE_TAILCALLS |
| 2713 | MUSTTAIL return InterpNext(S); |
| 2714 | #else |
| 2715 | return true; |
| 2716 | #endif |
| 2717 | } |
| 2718 | PRESERVE_NONE |
| 2719 | static bool Interp_ArrayElemPtrUint8(InterpState &S) { |
| 2720 | if (!ArrayElemPtr<PT_Uint8>(S, S.PC)) return false; |
| 2721 | #if USE_TAILCALLS |
| 2722 | MUSTTAIL return InterpNext(S); |
| 2723 | #else |
| 2724 | return true; |
| 2725 | #endif |
| 2726 | } |
| 2727 | PRESERVE_NONE |
| 2728 | static bool Interp_ArrayElemPtrSint16(InterpState &S) { |
| 2729 | if (!ArrayElemPtr<PT_Sint16>(S, S.PC)) return false; |
| 2730 | #if USE_TAILCALLS |
| 2731 | MUSTTAIL return InterpNext(S); |
| 2732 | #else |
| 2733 | return true; |
| 2734 | #endif |
| 2735 | } |
| 2736 | PRESERVE_NONE |
| 2737 | static bool Interp_ArrayElemPtrUint16(InterpState &S) { |
| 2738 | if (!ArrayElemPtr<PT_Uint16>(S, S.PC)) return false; |
| 2739 | #if USE_TAILCALLS |
| 2740 | MUSTTAIL return InterpNext(S); |
| 2741 | #else |
| 2742 | return true; |
| 2743 | #endif |
| 2744 | } |
| 2745 | PRESERVE_NONE |
| 2746 | static bool Interp_ArrayElemPtrSint32(InterpState &S) { |
| 2747 | if (!ArrayElemPtr<PT_Sint32>(S, S.PC)) return false; |
| 2748 | #if USE_TAILCALLS |
| 2749 | MUSTTAIL return InterpNext(S); |
| 2750 | #else |
| 2751 | return true; |
| 2752 | #endif |
| 2753 | } |
| 2754 | PRESERVE_NONE |
| 2755 | static bool Interp_ArrayElemPtrUint32(InterpState &S) { |
| 2756 | if (!ArrayElemPtr<PT_Uint32>(S, S.PC)) return false; |
| 2757 | #if USE_TAILCALLS |
| 2758 | MUSTTAIL return InterpNext(S); |
| 2759 | #else |
| 2760 | return true; |
| 2761 | #endif |
| 2762 | } |
| 2763 | PRESERVE_NONE |
| 2764 | static bool Interp_ArrayElemPtrSint64(InterpState &S) { |
| 2765 | if (!ArrayElemPtr<PT_Sint64>(S, S.PC)) return false; |
| 2766 | #if USE_TAILCALLS |
| 2767 | MUSTTAIL return InterpNext(S); |
| 2768 | #else |
| 2769 | return true; |
| 2770 | #endif |
| 2771 | } |
| 2772 | PRESERVE_NONE |
| 2773 | static bool Interp_ArrayElemPtrUint64(InterpState &S) { |
| 2774 | if (!ArrayElemPtr<PT_Uint64>(S, S.PC)) return false; |
| 2775 | #if USE_TAILCALLS |
| 2776 | MUSTTAIL return InterpNext(S); |
| 2777 | #else |
| 2778 | return true; |
| 2779 | #endif |
| 2780 | } |
| 2781 | PRESERVE_NONE |
| 2782 | static bool Interp_ArrayElemPtrIntAP(InterpState &S) { |
| 2783 | if (!ArrayElemPtr<PT_IntAP>(S, S.PC)) return false; |
| 2784 | #if USE_TAILCALLS |
| 2785 | MUSTTAIL return InterpNext(S); |
| 2786 | #else |
| 2787 | return true; |
| 2788 | #endif |
| 2789 | } |
| 2790 | PRESERVE_NONE |
| 2791 | static bool Interp_ArrayElemPtrIntAPS(InterpState &S) { |
| 2792 | if (!ArrayElemPtr<PT_IntAPS>(S, S.PC)) return false; |
| 2793 | #if USE_TAILCALLS |
| 2794 | MUSTTAIL return InterpNext(S); |
| 2795 | #else |
| 2796 | return true; |
| 2797 | #endif |
| 2798 | } |
| 2799 | PRESERVE_NONE |
| 2800 | static bool Interp_ArrayElemPtrBool(InterpState &S) { |
| 2801 | if (!ArrayElemPtr<PT_Bool>(S, S.PC)) return false; |
| 2802 | #if USE_TAILCALLS |
| 2803 | MUSTTAIL return InterpNext(S); |
| 2804 | #else |
| 2805 | return true; |
| 2806 | #endif |
| 2807 | } |
| 2808 | #endif |
| 2809 | #ifdef GET_DISASM |
| 2810 | case OP_ArrayElemPtrSint8: |
| 2811 | Text.Op = PrintName("ArrayElemPtrSint8" ); |
| 2812 | break; |
| 2813 | case OP_ArrayElemPtrUint8: |
| 2814 | Text.Op = PrintName("ArrayElemPtrUint8" ); |
| 2815 | break; |
| 2816 | case OP_ArrayElemPtrSint16: |
| 2817 | Text.Op = PrintName("ArrayElemPtrSint16" ); |
| 2818 | break; |
| 2819 | case OP_ArrayElemPtrUint16: |
| 2820 | Text.Op = PrintName("ArrayElemPtrUint16" ); |
| 2821 | break; |
| 2822 | case OP_ArrayElemPtrSint32: |
| 2823 | Text.Op = PrintName("ArrayElemPtrSint32" ); |
| 2824 | break; |
| 2825 | case OP_ArrayElemPtrUint32: |
| 2826 | Text.Op = PrintName("ArrayElemPtrUint32" ); |
| 2827 | break; |
| 2828 | case OP_ArrayElemPtrSint64: |
| 2829 | Text.Op = PrintName("ArrayElemPtrSint64" ); |
| 2830 | break; |
| 2831 | case OP_ArrayElemPtrUint64: |
| 2832 | Text.Op = PrintName("ArrayElemPtrUint64" ); |
| 2833 | break; |
| 2834 | case OP_ArrayElemPtrIntAP: |
| 2835 | Text.Op = PrintName("ArrayElemPtrIntAP" ); |
| 2836 | break; |
| 2837 | case OP_ArrayElemPtrIntAPS: |
| 2838 | Text.Op = PrintName("ArrayElemPtrIntAPS" ); |
| 2839 | break; |
| 2840 | case OP_ArrayElemPtrBool: |
| 2841 | Text.Op = PrintName("ArrayElemPtrBool" ); |
| 2842 | break; |
| 2843 | #endif |
| 2844 | #if defined(GET_EVAL_PROTO) || defined(GET_LINK_PROTO) |
| 2845 | bool emitArrayElemPtrSint8(SourceInfo); |
| 2846 | bool emitArrayElemPtrUint8(SourceInfo); |
| 2847 | bool emitArrayElemPtrSint16(SourceInfo); |
| 2848 | bool emitArrayElemPtrUint16(SourceInfo); |
| 2849 | bool emitArrayElemPtrSint32(SourceInfo); |
| 2850 | bool emitArrayElemPtrUint32(SourceInfo); |
| 2851 | bool emitArrayElemPtrSint64(SourceInfo); |
| 2852 | bool emitArrayElemPtrUint64(SourceInfo); |
| 2853 | bool emitArrayElemPtrIntAP(SourceInfo); |
| 2854 | bool emitArrayElemPtrIntAPS(SourceInfo); |
| 2855 | bool emitArrayElemPtrBool(SourceInfo); |
| 2856 | #endif |
| 2857 | #if defined(GET_EVAL_PROTO) || defined(GET_LINK_PROTO) |
| 2858 | [[nodiscard]] bool emitArrayElemPtr(PrimType, SourceInfo I); |
| 2859 | #endif |
| 2860 | #if defined(GET_EVAL_IMPL) || defined(GET_LINK_IMPL) |
| 2861 | bool |
| 2862 | #if defined(GET_EVAL_IMPL) |
| 2863 | EvalEmitter |
| 2864 | #else |
| 2865 | ByteCodeEmitter |
| 2866 | #endif |
| 2867 | ::emitArrayElemPtr(PrimType T0, SourceInfo I) { |
| 2868 | switch (T0) { |
| 2869 | case PT_Sint8: |
| 2870 | return emitArrayElemPtrSint8(I); |
| 2871 | case PT_Uint8: |
| 2872 | return emitArrayElemPtrUint8(I); |
| 2873 | case PT_Sint16: |
| 2874 | return emitArrayElemPtrSint16(I); |
| 2875 | case PT_Uint16: |
| 2876 | return emitArrayElemPtrUint16(I); |
| 2877 | case PT_Sint32: |
| 2878 | return emitArrayElemPtrSint32(I); |
| 2879 | case PT_Uint32: |
| 2880 | return emitArrayElemPtrUint32(I); |
| 2881 | case PT_Sint64: |
| 2882 | return emitArrayElemPtrSint64(I); |
| 2883 | case PT_Uint64: |
| 2884 | return emitArrayElemPtrUint64(I); |
| 2885 | case PT_IntAP: |
| 2886 | return emitArrayElemPtrIntAP(I); |
| 2887 | case PT_IntAPS: |
| 2888 | return emitArrayElemPtrIntAPS(I); |
| 2889 | case PT_Bool: |
| 2890 | return emitArrayElemPtrBool(I); |
| 2891 | default: llvm_unreachable("invalid type: emitArrayElemPtr" ); |
| 2892 | } |
| 2893 | llvm_unreachable("invalid enum value" ); |
| 2894 | } |
| 2895 | #endif |
| 2896 | #ifdef GET_LINK_IMPL |
| 2897 | bool ByteCodeEmitter::emitArrayElemPtrSint8(SourceInfo L) { |
| 2898 | return emitOp<>(OP_ArrayElemPtrSint8, L); |
| 2899 | } |
| 2900 | bool ByteCodeEmitter::emitArrayElemPtrUint8(SourceInfo L) { |
| 2901 | return emitOp<>(OP_ArrayElemPtrUint8, L); |
| 2902 | } |
| 2903 | bool ByteCodeEmitter::emitArrayElemPtrSint16(SourceInfo L) { |
| 2904 | return emitOp<>(OP_ArrayElemPtrSint16, L); |
| 2905 | } |
| 2906 | bool ByteCodeEmitter::emitArrayElemPtrUint16(SourceInfo L) { |
| 2907 | return emitOp<>(OP_ArrayElemPtrUint16, L); |
| 2908 | } |
| 2909 | bool ByteCodeEmitter::emitArrayElemPtrSint32(SourceInfo L) { |
| 2910 | return emitOp<>(OP_ArrayElemPtrSint32, L); |
| 2911 | } |
| 2912 | bool ByteCodeEmitter::emitArrayElemPtrUint32(SourceInfo L) { |
| 2913 | return emitOp<>(OP_ArrayElemPtrUint32, L); |
| 2914 | } |
| 2915 | bool ByteCodeEmitter::emitArrayElemPtrSint64(SourceInfo L) { |
| 2916 | return emitOp<>(OP_ArrayElemPtrSint64, L); |
| 2917 | } |
| 2918 | bool ByteCodeEmitter::emitArrayElemPtrUint64(SourceInfo L) { |
| 2919 | return emitOp<>(OP_ArrayElemPtrUint64, L); |
| 2920 | } |
| 2921 | bool ByteCodeEmitter::emitArrayElemPtrIntAP(SourceInfo L) { |
| 2922 | return emitOp<>(OP_ArrayElemPtrIntAP, L); |
| 2923 | } |
| 2924 | bool ByteCodeEmitter::emitArrayElemPtrIntAPS(SourceInfo L) { |
| 2925 | return emitOp<>(OP_ArrayElemPtrIntAPS, L); |
| 2926 | } |
| 2927 | bool ByteCodeEmitter::emitArrayElemPtrBool(SourceInfo L) { |
| 2928 | return emitOp<>(OP_ArrayElemPtrBool, L); |
| 2929 | } |
| 2930 | #endif |
| 2931 | #ifdef GET_EVAL_IMPL |
| 2932 | bool EvalEmitter::emitArrayElemPtrSint8(SourceInfo L) { |
| 2933 | if (!isActive()) return true; |
| 2934 | CurrentSource = L; |
| 2935 | return ArrayElemPtr<PT_Sint8>(S, CodePtr()); |
| 2936 | } |
| 2937 | bool EvalEmitter::emitArrayElemPtrUint8(SourceInfo L) { |
| 2938 | if (!isActive()) return true; |
| 2939 | CurrentSource = L; |
| 2940 | return ArrayElemPtr<PT_Uint8>(S, CodePtr()); |
| 2941 | } |
| 2942 | bool EvalEmitter::emitArrayElemPtrSint16(SourceInfo L) { |
| 2943 | if (!isActive()) return true; |
| 2944 | CurrentSource = L; |
| 2945 | return ArrayElemPtr<PT_Sint16>(S, CodePtr()); |
| 2946 | } |
| 2947 | bool EvalEmitter::emitArrayElemPtrUint16(SourceInfo L) { |
| 2948 | if (!isActive()) return true; |
| 2949 | CurrentSource = L; |
| 2950 | return ArrayElemPtr<PT_Uint16>(S, CodePtr()); |
| 2951 | } |
| 2952 | bool EvalEmitter::emitArrayElemPtrSint32(SourceInfo L) { |
| 2953 | if (!isActive()) return true; |
| 2954 | CurrentSource = L; |
| 2955 | return ArrayElemPtr<PT_Sint32>(S, CodePtr()); |
| 2956 | } |
| 2957 | bool EvalEmitter::emitArrayElemPtrUint32(SourceInfo L) { |
| 2958 | if (!isActive()) return true; |
| 2959 | CurrentSource = L; |
| 2960 | return ArrayElemPtr<PT_Uint32>(S, CodePtr()); |
| 2961 | } |
| 2962 | bool EvalEmitter::emitArrayElemPtrSint64(SourceInfo L) { |
| 2963 | if (!isActive()) return true; |
| 2964 | CurrentSource = L; |
| 2965 | return ArrayElemPtr<PT_Sint64>(S, CodePtr()); |
| 2966 | } |
| 2967 | bool EvalEmitter::emitArrayElemPtrUint64(SourceInfo L) { |
| 2968 | if (!isActive()) return true; |
| 2969 | CurrentSource = L; |
| 2970 | return ArrayElemPtr<PT_Uint64>(S, CodePtr()); |
| 2971 | } |
| 2972 | bool EvalEmitter::emitArrayElemPtrIntAP(SourceInfo L) { |
| 2973 | if (!isActive()) return true; |
| 2974 | CurrentSource = L; |
| 2975 | return ArrayElemPtr<PT_IntAP>(S, CodePtr()); |
| 2976 | } |
| 2977 | bool EvalEmitter::emitArrayElemPtrIntAPS(SourceInfo L) { |
| 2978 | if (!isActive()) return true; |
| 2979 | CurrentSource = L; |
| 2980 | return ArrayElemPtr<PT_IntAPS>(S, CodePtr()); |
| 2981 | } |
| 2982 | bool EvalEmitter::emitArrayElemPtrBool(SourceInfo L) { |
| 2983 | if (!isActive()) return true; |
| 2984 | CurrentSource = L; |
| 2985 | return ArrayElemPtr<PT_Bool>(S, CodePtr()); |
| 2986 | } |
| 2987 | #endif |
| 2988 | #ifdef GET_OPCODE_NAMES |
| 2989 | OP_ArrayElemPtrPopSint8, |
| 2990 | OP_ArrayElemPtrPopUint8, |
| 2991 | OP_ArrayElemPtrPopSint16, |
| 2992 | OP_ArrayElemPtrPopUint16, |
| 2993 | OP_ArrayElemPtrPopSint32, |
| 2994 | OP_ArrayElemPtrPopUint32, |
| 2995 | OP_ArrayElemPtrPopSint64, |
| 2996 | OP_ArrayElemPtrPopUint64, |
| 2997 | OP_ArrayElemPtrPopIntAP, |
| 2998 | OP_ArrayElemPtrPopIntAPS, |
| 2999 | OP_ArrayElemPtrPopBool, |
| 3000 | #endif |
| 3001 | #ifdef GET_INTERPFN_LIST |
| 3002 | &Interp_ArrayElemPtrPopSint8, |
| 3003 | &Interp_ArrayElemPtrPopUint8, |
| 3004 | &Interp_ArrayElemPtrPopSint16, |
| 3005 | &Interp_ArrayElemPtrPopUint16, |
| 3006 | &Interp_ArrayElemPtrPopSint32, |
| 3007 | &Interp_ArrayElemPtrPopUint32, |
| 3008 | &Interp_ArrayElemPtrPopSint64, |
| 3009 | &Interp_ArrayElemPtrPopUint64, |
| 3010 | &Interp_ArrayElemPtrPopIntAP, |
| 3011 | &Interp_ArrayElemPtrPopIntAPS, |
| 3012 | &Interp_ArrayElemPtrPopBool, |
| 3013 | #endif |
| 3014 | #ifdef GET_INTERPFN_DISPATCHERS |
| 3015 | PRESERVE_NONE |
| 3016 | static bool Interp_ArrayElemPtrPopSint8(InterpState &S) { |
| 3017 | if (!ArrayElemPtrPop<PT_Sint8>(S, S.PC)) return false; |
| 3018 | #if USE_TAILCALLS |
| 3019 | MUSTTAIL return InterpNext(S); |
| 3020 | #else |
| 3021 | return true; |
| 3022 | #endif |
| 3023 | } |
| 3024 | PRESERVE_NONE |
| 3025 | static bool Interp_ArrayElemPtrPopUint8(InterpState &S) { |
| 3026 | if (!ArrayElemPtrPop<PT_Uint8>(S, S.PC)) return false; |
| 3027 | #if USE_TAILCALLS |
| 3028 | MUSTTAIL return InterpNext(S); |
| 3029 | #else |
| 3030 | return true; |
| 3031 | #endif |
| 3032 | } |
| 3033 | PRESERVE_NONE |
| 3034 | static bool Interp_ArrayElemPtrPopSint16(InterpState &S) { |
| 3035 | if (!ArrayElemPtrPop<PT_Sint16>(S, S.PC)) return false; |
| 3036 | #if USE_TAILCALLS |
| 3037 | MUSTTAIL return InterpNext(S); |
| 3038 | #else |
| 3039 | return true; |
| 3040 | #endif |
| 3041 | } |
| 3042 | PRESERVE_NONE |
| 3043 | static bool Interp_ArrayElemPtrPopUint16(InterpState &S) { |
| 3044 | if (!ArrayElemPtrPop<PT_Uint16>(S, S.PC)) return false; |
| 3045 | #if USE_TAILCALLS |
| 3046 | MUSTTAIL return InterpNext(S); |
| 3047 | #else |
| 3048 | return true; |
| 3049 | #endif |
| 3050 | } |
| 3051 | PRESERVE_NONE |
| 3052 | static bool Interp_ArrayElemPtrPopSint32(InterpState &S) { |
| 3053 | if (!ArrayElemPtrPop<PT_Sint32>(S, S.PC)) return false; |
| 3054 | #if USE_TAILCALLS |
| 3055 | MUSTTAIL return InterpNext(S); |
| 3056 | #else |
| 3057 | return true; |
| 3058 | #endif |
| 3059 | } |
| 3060 | PRESERVE_NONE |
| 3061 | static bool Interp_ArrayElemPtrPopUint32(InterpState &S) { |
| 3062 | if (!ArrayElemPtrPop<PT_Uint32>(S, S.PC)) return false; |
| 3063 | #if USE_TAILCALLS |
| 3064 | MUSTTAIL return InterpNext(S); |
| 3065 | #else |
| 3066 | return true; |
| 3067 | #endif |
| 3068 | } |
| 3069 | PRESERVE_NONE |
| 3070 | static bool Interp_ArrayElemPtrPopSint64(InterpState &S) { |
| 3071 | if (!ArrayElemPtrPop<PT_Sint64>(S, S.PC)) return false; |
| 3072 | #if USE_TAILCALLS |
| 3073 | MUSTTAIL return InterpNext(S); |
| 3074 | #else |
| 3075 | return true; |
| 3076 | #endif |
| 3077 | } |
| 3078 | PRESERVE_NONE |
| 3079 | static bool Interp_ArrayElemPtrPopUint64(InterpState &S) { |
| 3080 | if (!ArrayElemPtrPop<PT_Uint64>(S, S.PC)) return false; |
| 3081 | #if USE_TAILCALLS |
| 3082 | MUSTTAIL return InterpNext(S); |
| 3083 | #else |
| 3084 | return true; |
| 3085 | #endif |
| 3086 | } |
| 3087 | PRESERVE_NONE |
| 3088 | static bool Interp_ArrayElemPtrPopIntAP(InterpState &S) { |
| 3089 | if (!ArrayElemPtrPop<PT_IntAP>(S, S.PC)) return false; |
| 3090 | #if USE_TAILCALLS |
| 3091 | MUSTTAIL return InterpNext(S); |
| 3092 | #else |
| 3093 | return true; |
| 3094 | #endif |
| 3095 | } |
| 3096 | PRESERVE_NONE |
| 3097 | static bool Interp_ArrayElemPtrPopIntAPS(InterpState &S) { |
| 3098 | if (!ArrayElemPtrPop<PT_IntAPS>(S, S.PC)) return false; |
| 3099 | #if USE_TAILCALLS |
| 3100 | MUSTTAIL return InterpNext(S); |
| 3101 | #else |
| 3102 | return true; |
| 3103 | #endif |
| 3104 | } |
| 3105 | PRESERVE_NONE |
| 3106 | static bool Interp_ArrayElemPtrPopBool(InterpState &S) { |
| 3107 | if (!ArrayElemPtrPop<PT_Bool>(S, S.PC)) return false; |
| 3108 | #if USE_TAILCALLS |
| 3109 | MUSTTAIL return InterpNext(S); |
| 3110 | #else |
| 3111 | return true; |
| 3112 | #endif |
| 3113 | } |
| 3114 | #endif |
| 3115 | #ifdef GET_DISASM |
| 3116 | case OP_ArrayElemPtrPopSint8: |
| 3117 | Text.Op = PrintName("ArrayElemPtrPopSint8" ); |
| 3118 | break; |
| 3119 | case OP_ArrayElemPtrPopUint8: |
| 3120 | Text.Op = PrintName("ArrayElemPtrPopUint8" ); |
| 3121 | break; |
| 3122 | case OP_ArrayElemPtrPopSint16: |
| 3123 | Text.Op = PrintName("ArrayElemPtrPopSint16" ); |
| 3124 | break; |
| 3125 | case OP_ArrayElemPtrPopUint16: |
| 3126 | Text.Op = PrintName("ArrayElemPtrPopUint16" ); |
| 3127 | break; |
| 3128 | case OP_ArrayElemPtrPopSint32: |
| 3129 | Text.Op = PrintName("ArrayElemPtrPopSint32" ); |
| 3130 | break; |
| 3131 | case OP_ArrayElemPtrPopUint32: |
| 3132 | Text.Op = PrintName("ArrayElemPtrPopUint32" ); |
| 3133 | break; |
| 3134 | case OP_ArrayElemPtrPopSint64: |
| 3135 | Text.Op = PrintName("ArrayElemPtrPopSint64" ); |
| 3136 | break; |
| 3137 | case OP_ArrayElemPtrPopUint64: |
| 3138 | Text.Op = PrintName("ArrayElemPtrPopUint64" ); |
| 3139 | break; |
| 3140 | case OP_ArrayElemPtrPopIntAP: |
| 3141 | Text.Op = PrintName("ArrayElemPtrPopIntAP" ); |
| 3142 | break; |
| 3143 | case OP_ArrayElemPtrPopIntAPS: |
| 3144 | Text.Op = PrintName("ArrayElemPtrPopIntAPS" ); |
| 3145 | break; |
| 3146 | case OP_ArrayElemPtrPopBool: |
| 3147 | Text.Op = PrintName("ArrayElemPtrPopBool" ); |
| 3148 | break; |
| 3149 | #endif |
| 3150 | #if defined(GET_EVAL_PROTO) || defined(GET_LINK_PROTO) |
| 3151 | bool emitArrayElemPtrPopSint8(SourceInfo); |
| 3152 | bool emitArrayElemPtrPopUint8(SourceInfo); |
| 3153 | bool emitArrayElemPtrPopSint16(SourceInfo); |
| 3154 | bool emitArrayElemPtrPopUint16(SourceInfo); |
| 3155 | bool emitArrayElemPtrPopSint32(SourceInfo); |
| 3156 | bool emitArrayElemPtrPopUint32(SourceInfo); |
| 3157 | bool emitArrayElemPtrPopSint64(SourceInfo); |
| 3158 | bool emitArrayElemPtrPopUint64(SourceInfo); |
| 3159 | bool emitArrayElemPtrPopIntAP(SourceInfo); |
| 3160 | bool emitArrayElemPtrPopIntAPS(SourceInfo); |
| 3161 | bool emitArrayElemPtrPopBool(SourceInfo); |
| 3162 | #endif |
| 3163 | #if defined(GET_EVAL_PROTO) || defined(GET_LINK_PROTO) |
| 3164 | [[nodiscard]] bool emitArrayElemPtrPop(PrimType, SourceInfo I); |
| 3165 | #endif |
| 3166 | #if defined(GET_EVAL_IMPL) || defined(GET_LINK_IMPL) |
| 3167 | bool |
| 3168 | #if defined(GET_EVAL_IMPL) |
| 3169 | EvalEmitter |
| 3170 | #else |
| 3171 | ByteCodeEmitter |
| 3172 | #endif |
| 3173 | ::emitArrayElemPtrPop(PrimType T0, SourceInfo I) { |
| 3174 | switch (T0) { |
| 3175 | case PT_Sint8: |
| 3176 | return emitArrayElemPtrPopSint8(I); |
| 3177 | case PT_Uint8: |
| 3178 | return emitArrayElemPtrPopUint8(I); |
| 3179 | case PT_Sint16: |
| 3180 | return emitArrayElemPtrPopSint16(I); |
| 3181 | case PT_Uint16: |
| 3182 | return emitArrayElemPtrPopUint16(I); |
| 3183 | case PT_Sint32: |
| 3184 | return emitArrayElemPtrPopSint32(I); |
| 3185 | case PT_Uint32: |
| 3186 | return emitArrayElemPtrPopUint32(I); |
| 3187 | case PT_Sint64: |
| 3188 | return emitArrayElemPtrPopSint64(I); |
| 3189 | case PT_Uint64: |
| 3190 | return emitArrayElemPtrPopUint64(I); |
| 3191 | case PT_IntAP: |
| 3192 | return emitArrayElemPtrPopIntAP(I); |
| 3193 | case PT_IntAPS: |
| 3194 | return emitArrayElemPtrPopIntAPS(I); |
| 3195 | case PT_Bool: |
| 3196 | return emitArrayElemPtrPopBool(I); |
| 3197 | default: llvm_unreachable("invalid type: emitArrayElemPtrPop" ); |
| 3198 | } |
| 3199 | llvm_unreachable("invalid enum value" ); |
| 3200 | } |
| 3201 | #endif |
| 3202 | #ifdef GET_LINK_IMPL |
| 3203 | bool ByteCodeEmitter::emitArrayElemPtrPopSint8(SourceInfo L) { |
| 3204 | return emitOp<>(OP_ArrayElemPtrPopSint8, L); |
| 3205 | } |
| 3206 | bool ByteCodeEmitter::emitArrayElemPtrPopUint8(SourceInfo L) { |
| 3207 | return emitOp<>(OP_ArrayElemPtrPopUint8, L); |
| 3208 | } |
| 3209 | bool ByteCodeEmitter::emitArrayElemPtrPopSint16(SourceInfo L) { |
| 3210 | return emitOp<>(OP_ArrayElemPtrPopSint16, L); |
| 3211 | } |
| 3212 | bool ByteCodeEmitter::emitArrayElemPtrPopUint16(SourceInfo L) { |
| 3213 | return emitOp<>(OP_ArrayElemPtrPopUint16, L); |
| 3214 | } |
| 3215 | bool ByteCodeEmitter::emitArrayElemPtrPopSint32(SourceInfo L) { |
| 3216 | return emitOp<>(OP_ArrayElemPtrPopSint32, L); |
| 3217 | } |
| 3218 | bool ByteCodeEmitter::emitArrayElemPtrPopUint32(SourceInfo L) { |
| 3219 | return emitOp<>(OP_ArrayElemPtrPopUint32, L); |
| 3220 | } |
| 3221 | bool ByteCodeEmitter::emitArrayElemPtrPopSint64(SourceInfo L) { |
| 3222 | return emitOp<>(OP_ArrayElemPtrPopSint64, L); |
| 3223 | } |
| 3224 | bool ByteCodeEmitter::emitArrayElemPtrPopUint64(SourceInfo L) { |
| 3225 | return emitOp<>(OP_ArrayElemPtrPopUint64, L); |
| 3226 | } |
| 3227 | bool ByteCodeEmitter::emitArrayElemPtrPopIntAP(SourceInfo L) { |
| 3228 | return emitOp<>(OP_ArrayElemPtrPopIntAP, L); |
| 3229 | } |
| 3230 | bool ByteCodeEmitter::emitArrayElemPtrPopIntAPS(SourceInfo L) { |
| 3231 | return emitOp<>(OP_ArrayElemPtrPopIntAPS, L); |
| 3232 | } |
| 3233 | bool ByteCodeEmitter::emitArrayElemPtrPopBool(SourceInfo L) { |
| 3234 | return emitOp<>(OP_ArrayElemPtrPopBool, L); |
| 3235 | } |
| 3236 | #endif |
| 3237 | #ifdef GET_EVAL_IMPL |
| 3238 | bool EvalEmitter::emitArrayElemPtrPopSint8(SourceInfo L) { |
| 3239 | if (!isActive()) return true; |
| 3240 | CurrentSource = L; |
| 3241 | return ArrayElemPtrPop<PT_Sint8>(S, CodePtr()); |
| 3242 | } |
| 3243 | bool EvalEmitter::emitArrayElemPtrPopUint8(SourceInfo L) { |
| 3244 | if (!isActive()) return true; |
| 3245 | CurrentSource = L; |
| 3246 | return ArrayElemPtrPop<PT_Uint8>(S, CodePtr()); |
| 3247 | } |
| 3248 | bool EvalEmitter::emitArrayElemPtrPopSint16(SourceInfo L) { |
| 3249 | if (!isActive()) return true; |
| 3250 | CurrentSource = L; |
| 3251 | return ArrayElemPtrPop<PT_Sint16>(S, CodePtr()); |
| 3252 | } |
| 3253 | bool EvalEmitter::emitArrayElemPtrPopUint16(SourceInfo L) { |
| 3254 | if (!isActive()) return true; |
| 3255 | CurrentSource = L; |
| 3256 | return ArrayElemPtrPop<PT_Uint16>(S, CodePtr()); |
| 3257 | } |
| 3258 | bool EvalEmitter::emitArrayElemPtrPopSint32(SourceInfo L) { |
| 3259 | if (!isActive()) return true; |
| 3260 | CurrentSource = L; |
| 3261 | return ArrayElemPtrPop<PT_Sint32>(S, CodePtr()); |
| 3262 | } |
| 3263 | bool EvalEmitter::emitArrayElemPtrPopUint32(SourceInfo L) { |
| 3264 | if (!isActive()) return true; |
| 3265 | CurrentSource = L; |
| 3266 | return ArrayElemPtrPop<PT_Uint32>(S, CodePtr()); |
| 3267 | } |
| 3268 | bool EvalEmitter::emitArrayElemPtrPopSint64(SourceInfo L) { |
| 3269 | if (!isActive()) return true; |
| 3270 | CurrentSource = L; |
| 3271 | return ArrayElemPtrPop<PT_Sint64>(S, CodePtr()); |
| 3272 | } |
| 3273 | bool EvalEmitter::emitArrayElemPtrPopUint64(SourceInfo L) { |
| 3274 | if (!isActive()) return true; |
| 3275 | CurrentSource = L; |
| 3276 | return ArrayElemPtrPop<PT_Uint64>(S, CodePtr()); |
| 3277 | } |
| 3278 | bool EvalEmitter::emitArrayElemPtrPopIntAP(SourceInfo L) { |
| 3279 | if (!isActive()) return true; |
| 3280 | CurrentSource = L; |
| 3281 | return ArrayElemPtrPop<PT_IntAP>(S, CodePtr()); |
| 3282 | } |
| 3283 | bool EvalEmitter::emitArrayElemPtrPopIntAPS(SourceInfo L) { |
| 3284 | if (!isActive()) return true; |
| 3285 | CurrentSource = L; |
| 3286 | return ArrayElemPtrPop<PT_IntAPS>(S, CodePtr()); |
| 3287 | } |
| 3288 | bool EvalEmitter::emitArrayElemPtrPopBool(SourceInfo L) { |
| 3289 | if (!isActive()) return true; |
| 3290 | CurrentSource = L; |
| 3291 | return ArrayElemPtrPop<PT_Bool>(S, CodePtr()); |
| 3292 | } |
| 3293 | #endif |
| 3294 | #ifdef GET_OPCODE_NAMES |
| 3295 | OP_Assume, |
| 3296 | #endif |
| 3297 | #ifdef GET_INTERPFN_LIST |
| 3298 | &Interp_Assume, |
| 3299 | #endif |
| 3300 | #ifdef GET_INTERPFN_DISPATCHERS |
| 3301 | PRESERVE_NONE |
| 3302 | static bool Interp_Assume(InterpState &S) { |
| 3303 | if (!Assume(S, S.PC)) return false; |
| 3304 | #if USE_TAILCALLS |
| 3305 | MUSTTAIL return InterpNext(S); |
| 3306 | #else |
| 3307 | return true; |
| 3308 | #endif |
| 3309 | } |
| 3310 | #endif |
| 3311 | #ifdef GET_DISASM |
| 3312 | case OP_Assume: |
| 3313 | Text.Op = PrintName("Assume" ); |
| 3314 | break; |
| 3315 | #endif |
| 3316 | #if defined(GET_EVAL_PROTO) || defined(GET_LINK_PROTO) |
| 3317 | bool emitAssume(SourceInfo); |
| 3318 | #endif |
| 3319 | #ifdef GET_LINK_IMPL |
| 3320 | bool ByteCodeEmitter::emitAssume(SourceInfo L) { |
| 3321 | return emitOp<>(OP_Assume, L); |
| 3322 | } |
| 3323 | #endif |
| 3324 | #ifdef GET_EVAL_IMPL |
| 3325 | bool EvalEmitter::emitAssume(SourceInfo L) { |
| 3326 | if (!isActive()) return true; |
| 3327 | CurrentSource = L; |
| 3328 | return Assume(S, CodePtr()); |
| 3329 | } |
| 3330 | #endif |
| 3331 | #ifdef GET_OPCODE_NAMES |
| 3332 | OP_BCP, |
| 3333 | #endif |
| 3334 | #ifdef GET_INTERPFN_LIST |
| 3335 | &Interp_BCP, |
| 3336 | #endif |
| 3337 | #ifdef GET_INTERPFN_DISPATCHERS |
| 3338 | PRESERVE_NONE |
| 3339 | static bool Interp_BCP(InterpState &S) { |
| 3340 | { |
| 3341 | CodePtr OpPC = S.PC; |
| 3342 | const auto V0 = ReadArg<int32_t>(S, S.PC); |
| 3343 | const auto V1 = ReadArg<PrimType>(S, S.PC); |
| 3344 | if (!BCP(S, OpPC, V0, V1)) return false; |
| 3345 | } |
| 3346 | #if USE_TAILCALLS |
| 3347 | MUSTTAIL return InterpNext(S); |
| 3348 | #else |
| 3349 | return true; |
| 3350 | #endif |
| 3351 | } |
| 3352 | #endif |
| 3353 | #ifdef GET_DISASM |
| 3354 | case OP_BCP: |
| 3355 | Text.Op = PrintName("BCP" ); |
| 3356 | Text.Args.push_back(printArg<int32_t>(PC)); |
| 3357 | Text.Args.push_back(printArg<PrimType>(PC)); |
| 3358 | break; |
| 3359 | #endif |
| 3360 | #if defined(GET_EVAL_PROTO) || defined(GET_LINK_PROTO) |
| 3361 | bool emitBCP( int32_t , PrimType , SourceInfo); |
| 3362 | #endif |
| 3363 | #ifdef GET_LINK_IMPL |
| 3364 | bool ByteCodeEmitter::emitBCP( int32_t A0, PrimType A1, SourceInfo L) { |
| 3365 | return emitOp<int32_t, PrimType>(OP_BCP, A0, A1, L); |
| 3366 | } |
| 3367 | #endif |
| 3368 | #ifdef GET_OPCODE_NAMES |
| 3369 | OP_BitAndSint8, |
| 3370 | OP_BitAndUint8, |
| 3371 | OP_BitAndSint16, |
| 3372 | OP_BitAndUint16, |
| 3373 | OP_BitAndSint32, |
| 3374 | OP_BitAndUint32, |
| 3375 | OP_BitAndSint64, |
| 3376 | OP_BitAndUint64, |
| 3377 | OP_BitAndIntAP, |
| 3378 | OP_BitAndIntAPS, |
| 3379 | OP_BitAndFixedPoint, |
| 3380 | #endif |
| 3381 | #ifdef GET_INTERPFN_LIST |
| 3382 | &Interp_BitAndSint8, |
| 3383 | &Interp_BitAndUint8, |
| 3384 | &Interp_BitAndSint16, |
| 3385 | &Interp_BitAndUint16, |
| 3386 | &Interp_BitAndSint32, |
| 3387 | &Interp_BitAndUint32, |
| 3388 | &Interp_BitAndSint64, |
| 3389 | &Interp_BitAndUint64, |
| 3390 | &Interp_BitAndIntAP, |
| 3391 | &Interp_BitAndIntAPS, |
| 3392 | &Interp_BitAndFixedPoint, |
| 3393 | #endif |
| 3394 | #ifdef GET_INTERPFN_DISPATCHERS |
| 3395 | PRESERVE_NONE |
| 3396 | static bool Interp_BitAndSint8(InterpState &S) { |
| 3397 | if (!BitAnd<PT_Sint8>(S)) return false; |
| 3398 | #if USE_TAILCALLS |
| 3399 | MUSTTAIL return InterpNext(S); |
| 3400 | #else |
| 3401 | return true; |
| 3402 | #endif |
| 3403 | } |
| 3404 | PRESERVE_NONE |
| 3405 | static bool Interp_BitAndUint8(InterpState &S) { |
| 3406 | if (!BitAnd<PT_Uint8>(S)) return false; |
| 3407 | #if USE_TAILCALLS |
| 3408 | MUSTTAIL return InterpNext(S); |
| 3409 | #else |
| 3410 | return true; |
| 3411 | #endif |
| 3412 | } |
| 3413 | PRESERVE_NONE |
| 3414 | static bool Interp_BitAndSint16(InterpState &S) { |
| 3415 | if (!BitAnd<PT_Sint16>(S)) return false; |
| 3416 | #if USE_TAILCALLS |
| 3417 | MUSTTAIL return InterpNext(S); |
| 3418 | #else |
| 3419 | return true; |
| 3420 | #endif |
| 3421 | } |
| 3422 | PRESERVE_NONE |
| 3423 | static bool Interp_BitAndUint16(InterpState &S) { |
| 3424 | if (!BitAnd<PT_Uint16>(S)) return false; |
| 3425 | #if USE_TAILCALLS |
| 3426 | MUSTTAIL return InterpNext(S); |
| 3427 | #else |
| 3428 | return true; |
| 3429 | #endif |
| 3430 | } |
| 3431 | PRESERVE_NONE |
| 3432 | static bool Interp_BitAndSint32(InterpState &S) { |
| 3433 | if (!BitAnd<PT_Sint32>(S)) return false; |
| 3434 | #if USE_TAILCALLS |
| 3435 | MUSTTAIL return InterpNext(S); |
| 3436 | #else |
| 3437 | return true; |
| 3438 | #endif |
| 3439 | } |
| 3440 | PRESERVE_NONE |
| 3441 | static bool Interp_BitAndUint32(InterpState &S) { |
| 3442 | if (!BitAnd<PT_Uint32>(S)) return false; |
| 3443 | #if USE_TAILCALLS |
| 3444 | MUSTTAIL return InterpNext(S); |
| 3445 | #else |
| 3446 | return true; |
| 3447 | #endif |
| 3448 | } |
| 3449 | PRESERVE_NONE |
| 3450 | static bool Interp_BitAndSint64(InterpState &S) { |
| 3451 | if (!BitAnd<PT_Sint64>(S)) return false; |
| 3452 | #if USE_TAILCALLS |
| 3453 | MUSTTAIL return InterpNext(S); |
| 3454 | #else |
| 3455 | return true; |
| 3456 | #endif |
| 3457 | } |
| 3458 | PRESERVE_NONE |
| 3459 | static bool Interp_BitAndUint64(InterpState &S) { |
| 3460 | if (!BitAnd<PT_Uint64>(S)) return false; |
| 3461 | #if USE_TAILCALLS |
| 3462 | MUSTTAIL return InterpNext(S); |
| 3463 | #else |
| 3464 | return true; |
| 3465 | #endif |
| 3466 | } |
| 3467 | PRESERVE_NONE |
| 3468 | static bool Interp_BitAndIntAP(InterpState &S) { |
| 3469 | if (!BitAnd<PT_IntAP>(S)) return false; |
| 3470 | #if USE_TAILCALLS |
| 3471 | MUSTTAIL return InterpNext(S); |
| 3472 | #else |
| 3473 | return true; |
| 3474 | #endif |
| 3475 | } |
| 3476 | PRESERVE_NONE |
| 3477 | static bool Interp_BitAndIntAPS(InterpState &S) { |
| 3478 | if (!BitAnd<PT_IntAPS>(S)) return false; |
| 3479 | #if USE_TAILCALLS |
| 3480 | MUSTTAIL return InterpNext(S); |
| 3481 | #else |
| 3482 | return true; |
| 3483 | #endif |
| 3484 | } |
| 3485 | PRESERVE_NONE |
| 3486 | static bool Interp_BitAndFixedPoint(InterpState &S) { |
| 3487 | if (!BitAnd<PT_FixedPoint>(S)) return false; |
| 3488 | #if USE_TAILCALLS |
| 3489 | MUSTTAIL return InterpNext(S); |
| 3490 | #else |
| 3491 | return true; |
| 3492 | #endif |
| 3493 | } |
| 3494 | #endif |
| 3495 | #ifdef GET_DISASM |
| 3496 | case OP_BitAndSint8: |
| 3497 | Text.Op = PrintName("BitAndSint8" ); |
| 3498 | break; |
| 3499 | case OP_BitAndUint8: |
| 3500 | Text.Op = PrintName("BitAndUint8" ); |
| 3501 | break; |
| 3502 | case OP_BitAndSint16: |
| 3503 | Text.Op = PrintName("BitAndSint16" ); |
| 3504 | break; |
| 3505 | case OP_BitAndUint16: |
| 3506 | Text.Op = PrintName("BitAndUint16" ); |
| 3507 | break; |
| 3508 | case OP_BitAndSint32: |
| 3509 | Text.Op = PrintName("BitAndSint32" ); |
| 3510 | break; |
| 3511 | case OP_BitAndUint32: |
| 3512 | Text.Op = PrintName("BitAndUint32" ); |
| 3513 | break; |
| 3514 | case OP_BitAndSint64: |
| 3515 | Text.Op = PrintName("BitAndSint64" ); |
| 3516 | break; |
| 3517 | case OP_BitAndUint64: |
| 3518 | Text.Op = PrintName("BitAndUint64" ); |
| 3519 | break; |
| 3520 | case OP_BitAndIntAP: |
| 3521 | Text.Op = PrintName("BitAndIntAP" ); |
| 3522 | break; |
| 3523 | case OP_BitAndIntAPS: |
| 3524 | Text.Op = PrintName("BitAndIntAPS" ); |
| 3525 | break; |
| 3526 | case OP_BitAndFixedPoint: |
| 3527 | Text.Op = PrintName("BitAndFixedPoint" ); |
| 3528 | break; |
| 3529 | #endif |
| 3530 | #if defined(GET_EVAL_PROTO) || defined(GET_LINK_PROTO) |
| 3531 | bool emitBitAndSint8(SourceInfo); |
| 3532 | bool emitBitAndUint8(SourceInfo); |
| 3533 | bool emitBitAndSint16(SourceInfo); |
| 3534 | bool emitBitAndUint16(SourceInfo); |
| 3535 | bool emitBitAndSint32(SourceInfo); |
| 3536 | bool emitBitAndUint32(SourceInfo); |
| 3537 | bool emitBitAndSint64(SourceInfo); |
| 3538 | bool emitBitAndUint64(SourceInfo); |
| 3539 | bool emitBitAndIntAP(SourceInfo); |
| 3540 | bool emitBitAndIntAPS(SourceInfo); |
| 3541 | bool emitBitAndFixedPoint(SourceInfo); |
| 3542 | #endif |
| 3543 | #if defined(GET_EVAL_PROTO) || defined(GET_LINK_PROTO) |
| 3544 | [[nodiscard]] bool emitBitAnd(PrimType, SourceInfo I); |
| 3545 | #endif |
| 3546 | #if defined(GET_EVAL_IMPL) || defined(GET_LINK_IMPL) |
| 3547 | bool |
| 3548 | #if defined(GET_EVAL_IMPL) |
| 3549 | EvalEmitter |
| 3550 | #else |
| 3551 | ByteCodeEmitter |
| 3552 | #endif |
| 3553 | ::emitBitAnd(PrimType T0, SourceInfo I) { |
| 3554 | switch (T0) { |
| 3555 | case PT_Sint8: |
| 3556 | return emitBitAndSint8(I); |
| 3557 | case PT_Uint8: |
| 3558 | return emitBitAndUint8(I); |
| 3559 | case PT_Sint16: |
| 3560 | return emitBitAndSint16(I); |
| 3561 | case PT_Uint16: |
| 3562 | return emitBitAndUint16(I); |
| 3563 | case PT_Sint32: |
| 3564 | return emitBitAndSint32(I); |
| 3565 | case PT_Uint32: |
| 3566 | return emitBitAndUint32(I); |
| 3567 | case PT_Sint64: |
| 3568 | return emitBitAndSint64(I); |
| 3569 | case PT_Uint64: |
| 3570 | return emitBitAndUint64(I); |
| 3571 | case PT_IntAP: |
| 3572 | return emitBitAndIntAP(I); |
| 3573 | case PT_IntAPS: |
| 3574 | return emitBitAndIntAPS(I); |
| 3575 | case PT_FixedPoint: |
| 3576 | return emitBitAndFixedPoint(I); |
| 3577 | default: llvm_unreachable("invalid type: emitBitAnd" ); |
| 3578 | } |
| 3579 | llvm_unreachable("invalid enum value" ); |
| 3580 | } |
| 3581 | #endif |
| 3582 | #ifdef GET_LINK_IMPL |
| 3583 | bool ByteCodeEmitter::emitBitAndSint8(SourceInfo L) { |
| 3584 | return emitOp<>(OP_BitAndSint8, L); |
| 3585 | } |
| 3586 | bool ByteCodeEmitter::emitBitAndUint8(SourceInfo L) { |
| 3587 | return emitOp<>(OP_BitAndUint8, L); |
| 3588 | } |
| 3589 | bool ByteCodeEmitter::emitBitAndSint16(SourceInfo L) { |
| 3590 | return emitOp<>(OP_BitAndSint16, L); |
| 3591 | } |
| 3592 | bool ByteCodeEmitter::emitBitAndUint16(SourceInfo L) { |
| 3593 | return emitOp<>(OP_BitAndUint16, L); |
| 3594 | } |
| 3595 | bool ByteCodeEmitter::emitBitAndSint32(SourceInfo L) { |
| 3596 | return emitOp<>(OP_BitAndSint32, L); |
| 3597 | } |
| 3598 | bool ByteCodeEmitter::emitBitAndUint32(SourceInfo L) { |
| 3599 | return emitOp<>(OP_BitAndUint32, L); |
| 3600 | } |
| 3601 | bool ByteCodeEmitter::emitBitAndSint64(SourceInfo L) { |
| 3602 | return emitOp<>(OP_BitAndSint64, L); |
| 3603 | } |
| 3604 | bool ByteCodeEmitter::emitBitAndUint64(SourceInfo L) { |
| 3605 | return emitOp<>(OP_BitAndUint64, L); |
| 3606 | } |
| 3607 | bool ByteCodeEmitter::emitBitAndIntAP(SourceInfo L) { |
| 3608 | return emitOp<>(OP_BitAndIntAP, L); |
| 3609 | } |
| 3610 | bool ByteCodeEmitter::emitBitAndIntAPS(SourceInfo L) { |
| 3611 | return emitOp<>(OP_BitAndIntAPS, L); |
| 3612 | } |
| 3613 | bool ByteCodeEmitter::emitBitAndFixedPoint(SourceInfo L) { |
| 3614 | return emitOp<>(OP_BitAndFixedPoint, L); |
| 3615 | } |
| 3616 | #endif |
| 3617 | #ifdef GET_EVAL_IMPL |
| 3618 | bool EvalEmitter::emitBitAndSint8(SourceInfo L) { |
| 3619 | if (!isActive()) return true; |
| 3620 | CurrentSource = L; |
| 3621 | return BitAnd<PT_Sint8>(S); |
| 3622 | } |
| 3623 | bool EvalEmitter::emitBitAndUint8(SourceInfo L) { |
| 3624 | if (!isActive()) return true; |
| 3625 | CurrentSource = L; |
| 3626 | return BitAnd<PT_Uint8>(S); |
| 3627 | } |
| 3628 | bool EvalEmitter::emitBitAndSint16(SourceInfo L) { |
| 3629 | if (!isActive()) return true; |
| 3630 | CurrentSource = L; |
| 3631 | return BitAnd<PT_Sint16>(S); |
| 3632 | } |
| 3633 | bool EvalEmitter::emitBitAndUint16(SourceInfo L) { |
| 3634 | if (!isActive()) return true; |
| 3635 | CurrentSource = L; |
| 3636 | return BitAnd<PT_Uint16>(S); |
| 3637 | } |
| 3638 | bool EvalEmitter::emitBitAndSint32(SourceInfo L) { |
| 3639 | if (!isActive()) return true; |
| 3640 | CurrentSource = L; |
| 3641 | return BitAnd<PT_Sint32>(S); |
| 3642 | } |
| 3643 | bool EvalEmitter::emitBitAndUint32(SourceInfo L) { |
| 3644 | if (!isActive()) return true; |
| 3645 | CurrentSource = L; |
| 3646 | return BitAnd<PT_Uint32>(S); |
| 3647 | } |
| 3648 | bool EvalEmitter::emitBitAndSint64(SourceInfo L) { |
| 3649 | if (!isActive()) return true; |
| 3650 | CurrentSource = L; |
| 3651 | return BitAnd<PT_Sint64>(S); |
| 3652 | } |
| 3653 | bool EvalEmitter::emitBitAndUint64(SourceInfo L) { |
| 3654 | if (!isActive()) return true; |
| 3655 | CurrentSource = L; |
| 3656 | return BitAnd<PT_Uint64>(S); |
| 3657 | } |
| 3658 | bool EvalEmitter::emitBitAndIntAP(SourceInfo L) { |
| 3659 | if (!isActive()) return true; |
| 3660 | CurrentSource = L; |
| 3661 | return BitAnd<PT_IntAP>(S); |
| 3662 | } |
| 3663 | bool EvalEmitter::emitBitAndIntAPS(SourceInfo L) { |
| 3664 | if (!isActive()) return true; |
| 3665 | CurrentSource = L; |
| 3666 | return BitAnd<PT_IntAPS>(S); |
| 3667 | } |
| 3668 | bool EvalEmitter::emitBitAndFixedPoint(SourceInfo L) { |
| 3669 | if (!isActive()) return true; |
| 3670 | CurrentSource = L; |
| 3671 | return BitAnd<PT_FixedPoint>(S); |
| 3672 | } |
| 3673 | #endif |
| 3674 | #ifdef GET_OPCODE_NAMES |
| 3675 | OP_BitCast, |
| 3676 | #endif |
| 3677 | #ifdef GET_INTERPFN_LIST |
| 3678 | &Interp_BitCast, |
| 3679 | #endif |
| 3680 | #ifdef GET_INTERPFN_DISPATCHERS |
| 3681 | PRESERVE_NONE |
| 3682 | static bool Interp_BitCast(InterpState &S) { |
| 3683 | if (!BitCast(S, S.PC)) return false; |
| 3684 | #if USE_TAILCALLS |
| 3685 | MUSTTAIL return InterpNext(S); |
| 3686 | #else |
| 3687 | return true; |
| 3688 | #endif |
| 3689 | } |
| 3690 | #endif |
| 3691 | #ifdef GET_DISASM |
| 3692 | case OP_BitCast: |
| 3693 | Text.Op = PrintName("BitCast" ); |
| 3694 | break; |
| 3695 | #endif |
| 3696 | #if defined(GET_EVAL_PROTO) || defined(GET_LINK_PROTO) |
| 3697 | bool emitBitCast(SourceInfo); |
| 3698 | #endif |
| 3699 | #ifdef GET_LINK_IMPL |
| 3700 | bool ByteCodeEmitter::emitBitCast(SourceInfo L) { |
| 3701 | return emitOp<>(OP_BitCast, L); |
| 3702 | } |
| 3703 | #endif |
| 3704 | #ifdef GET_EVAL_IMPL |
| 3705 | bool EvalEmitter::emitBitCast(SourceInfo L) { |
| 3706 | if (!isActive()) return true; |
| 3707 | CurrentSource = L; |
| 3708 | return BitCast(S, CodePtr()); |
| 3709 | } |
| 3710 | #endif |
| 3711 | #ifdef GET_OPCODE_NAMES |
| 3712 | OP_BitCastPrimUint8, |
| 3713 | OP_BitCastPrimSint8, |
| 3714 | OP_BitCastPrimUint16, |
| 3715 | OP_BitCastPrimSint16, |
| 3716 | OP_BitCastPrimUint32, |
| 3717 | OP_BitCastPrimSint32, |
| 3718 | OP_BitCastPrimUint64, |
| 3719 | OP_BitCastPrimSint64, |
| 3720 | OP_BitCastPrimIntAP, |
| 3721 | OP_BitCastPrimIntAPS, |
| 3722 | OP_BitCastPrimBool, |
| 3723 | OP_BitCastPrimFloat, |
| 3724 | OP_BitCastPrimPtr, |
| 3725 | OP_BitCastPrimMemberPtr, |
| 3726 | #endif |
| 3727 | #ifdef GET_INTERPFN_LIST |
| 3728 | &Interp_BitCastPrimUint8, |
| 3729 | &Interp_BitCastPrimSint8, |
| 3730 | &Interp_BitCastPrimUint16, |
| 3731 | &Interp_BitCastPrimSint16, |
| 3732 | &Interp_BitCastPrimUint32, |
| 3733 | &Interp_BitCastPrimSint32, |
| 3734 | &Interp_BitCastPrimUint64, |
| 3735 | &Interp_BitCastPrimSint64, |
| 3736 | &Interp_BitCastPrimIntAP, |
| 3737 | &Interp_BitCastPrimIntAPS, |
| 3738 | &Interp_BitCastPrimBool, |
| 3739 | &Interp_BitCastPrimFloat, |
| 3740 | &Interp_BitCastPrimPtr, |
| 3741 | &Interp_BitCastPrimMemberPtr, |
| 3742 | #endif |
| 3743 | #ifdef GET_INTERPFN_DISPATCHERS |
| 3744 | PRESERVE_NONE |
| 3745 | static bool Interp_BitCastPrimUint8(InterpState &S) { |
| 3746 | { |
| 3747 | CodePtr OpPC = S.PC; |
| 3748 | const auto V0 = ReadArg<bool>(S, S.PC); |
| 3749 | const auto V1 = ReadArg<uint32_t>(S, S.PC); |
| 3750 | const auto V2 = ReadArg<const llvm::fltSemantics *>(S, S.PC); |
| 3751 | const auto V3 = ReadArg<const Type *>(S, S.PC); |
| 3752 | if (!BitCastPrim<PT_Uint8>(S, OpPC, V0, V1, V2, V3)) return false; |
| 3753 | } |
| 3754 | #if USE_TAILCALLS |
| 3755 | MUSTTAIL return InterpNext(S); |
| 3756 | #else |
| 3757 | return true; |
| 3758 | #endif |
| 3759 | } |
| 3760 | PRESERVE_NONE |
| 3761 | static bool Interp_BitCastPrimSint8(InterpState &S) { |
| 3762 | { |
| 3763 | CodePtr OpPC = S.PC; |
| 3764 | const auto V0 = ReadArg<bool>(S, S.PC); |
| 3765 | const auto V1 = ReadArg<uint32_t>(S, S.PC); |
| 3766 | const auto V2 = ReadArg<const llvm::fltSemantics *>(S, S.PC); |
| 3767 | const auto V3 = ReadArg<const Type *>(S, S.PC); |
| 3768 | if (!BitCastPrim<PT_Sint8>(S, OpPC, V0, V1, V2, V3)) return false; |
| 3769 | } |
| 3770 | #if USE_TAILCALLS |
| 3771 | MUSTTAIL return InterpNext(S); |
| 3772 | #else |
| 3773 | return true; |
| 3774 | #endif |
| 3775 | } |
| 3776 | PRESERVE_NONE |
| 3777 | static bool Interp_BitCastPrimUint16(InterpState &S) { |
| 3778 | { |
| 3779 | CodePtr OpPC = S.PC; |
| 3780 | const auto V0 = ReadArg<bool>(S, S.PC); |
| 3781 | const auto V1 = ReadArg<uint32_t>(S, S.PC); |
| 3782 | const auto V2 = ReadArg<const llvm::fltSemantics *>(S, S.PC); |
| 3783 | const auto V3 = ReadArg<const Type *>(S, S.PC); |
| 3784 | if (!BitCastPrim<PT_Uint16>(S, OpPC, V0, V1, V2, V3)) return false; |
| 3785 | } |
| 3786 | #if USE_TAILCALLS |
| 3787 | MUSTTAIL return InterpNext(S); |
| 3788 | #else |
| 3789 | return true; |
| 3790 | #endif |
| 3791 | } |
| 3792 | PRESERVE_NONE |
| 3793 | static bool Interp_BitCastPrimSint16(InterpState &S) { |
| 3794 | { |
| 3795 | CodePtr OpPC = S.PC; |
| 3796 | const auto V0 = ReadArg<bool>(S, S.PC); |
| 3797 | const auto V1 = ReadArg<uint32_t>(S, S.PC); |
| 3798 | const auto V2 = ReadArg<const llvm::fltSemantics *>(S, S.PC); |
| 3799 | const auto V3 = ReadArg<const Type *>(S, S.PC); |
| 3800 | if (!BitCastPrim<PT_Sint16>(S, OpPC, V0, V1, V2, V3)) return false; |
| 3801 | } |
| 3802 | #if USE_TAILCALLS |
| 3803 | MUSTTAIL return InterpNext(S); |
| 3804 | #else |
| 3805 | return true; |
| 3806 | #endif |
| 3807 | } |
| 3808 | PRESERVE_NONE |
| 3809 | static bool Interp_BitCastPrimUint32(InterpState &S) { |
| 3810 | { |
| 3811 | CodePtr OpPC = S.PC; |
| 3812 | const auto V0 = ReadArg<bool>(S, S.PC); |
| 3813 | const auto V1 = ReadArg<uint32_t>(S, S.PC); |
| 3814 | const auto V2 = ReadArg<const llvm::fltSemantics *>(S, S.PC); |
| 3815 | const auto V3 = ReadArg<const Type *>(S, S.PC); |
| 3816 | if (!BitCastPrim<PT_Uint32>(S, OpPC, V0, V1, V2, V3)) return false; |
| 3817 | } |
| 3818 | #if USE_TAILCALLS |
| 3819 | MUSTTAIL return InterpNext(S); |
| 3820 | #else |
| 3821 | return true; |
| 3822 | #endif |
| 3823 | } |
| 3824 | PRESERVE_NONE |
| 3825 | static bool Interp_BitCastPrimSint32(InterpState &S) { |
| 3826 | { |
| 3827 | CodePtr OpPC = S.PC; |
| 3828 | const auto V0 = ReadArg<bool>(S, S.PC); |
| 3829 | const auto V1 = ReadArg<uint32_t>(S, S.PC); |
| 3830 | const auto V2 = ReadArg<const llvm::fltSemantics *>(S, S.PC); |
| 3831 | const auto V3 = ReadArg<const Type *>(S, S.PC); |
| 3832 | if (!BitCastPrim<PT_Sint32>(S, OpPC, V0, V1, V2, V3)) return false; |
| 3833 | } |
| 3834 | #if USE_TAILCALLS |
| 3835 | MUSTTAIL return InterpNext(S); |
| 3836 | #else |
| 3837 | return true; |
| 3838 | #endif |
| 3839 | } |
| 3840 | PRESERVE_NONE |
| 3841 | static bool Interp_BitCastPrimUint64(InterpState &S) { |
| 3842 | { |
| 3843 | CodePtr OpPC = S.PC; |
| 3844 | const auto V0 = ReadArg<bool>(S, S.PC); |
| 3845 | const auto V1 = ReadArg<uint32_t>(S, S.PC); |
| 3846 | const auto V2 = ReadArg<const llvm::fltSemantics *>(S, S.PC); |
| 3847 | const auto V3 = ReadArg<const Type *>(S, S.PC); |
| 3848 | if (!BitCastPrim<PT_Uint64>(S, OpPC, V0, V1, V2, V3)) return false; |
| 3849 | } |
| 3850 | #if USE_TAILCALLS |
| 3851 | MUSTTAIL return InterpNext(S); |
| 3852 | #else |
| 3853 | return true; |
| 3854 | #endif |
| 3855 | } |
| 3856 | PRESERVE_NONE |
| 3857 | static bool Interp_BitCastPrimSint64(InterpState &S) { |
| 3858 | { |
| 3859 | CodePtr OpPC = S.PC; |
| 3860 | const auto V0 = ReadArg<bool>(S, S.PC); |
| 3861 | const auto V1 = ReadArg<uint32_t>(S, S.PC); |
| 3862 | const auto V2 = ReadArg<const llvm::fltSemantics *>(S, S.PC); |
| 3863 | const auto V3 = ReadArg<const Type *>(S, S.PC); |
| 3864 | if (!BitCastPrim<PT_Sint64>(S, OpPC, V0, V1, V2, V3)) return false; |
| 3865 | } |
| 3866 | #if USE_TAILCALLS |
| 3867 | MUSTTAIL return InterpNext(S); |
| 3868 | #else |
| 3869 | return true; |
| 3870 | #endif |
| 3871 | } |
| 3872 | PRESERVE_NONE |
| 3873 | static bool Interp_BitCastPrimIntAP(InterpState &S) { |
| 3874 | { |
| 3875 | CodePtr OpPC = S.PC; |
| 3876 | const auto V0 = ReadArg<bool>(S, S.PC); |
| 3877 | const auto V1 = ReadArg<uint32_t>(S, S.PC); |
| 3878 | const auto V2 = ReadArg<const llvm::fltSemantics *>(S, S.PC); |
| 3879 | const auto V3 = ReadArg<const Type *>(S, S.PC); |
| 3880 | if (!BitCastPrim<PT_IntAP>(S, OpPC, V0, V1, V2, V3)) return false; |
| 3881 | } |
| 3882 | #if USE_TAILCALLS |
| 3883 | MUSTTAIL return InterpNext(S); |
| 3884 | #else |
| 3885 | return true; |
| 3886 | #endif |
| 3887 | } |
| 3888 | PRESERVE_NONE |
| 3889 | static bool Interp_BitCastPrimIntAPS(InterpState &S) { |
| 3890 | { |
| 3891 | CodePtr OpPC = S.PC; |
| 3892 | const auto V0 = ReadArg<bool>(S, S.PC); |
| 3893 | const auto V1 = ReadArg<uint32_t>(S, S.PC); |
| 3894 | const auto V2 = ReadArg<const llvm::fltSemantics *>(S, S.PC); |
| 3895 | const auto V3 = ReadArg<const Type *>(S, S.PC); |
| 3896 | if (!BitCastPrim<PT_IntAPS>(S, OpPC, V0, V1, V2, V3)) return false; |
| 3897 | } |
| 3898 | #if USE_TAILCALLS |
| 3899 | MUSTTAIL return InterpNext(S); |
| 3900 | #else |
| 3901 | return true; |
| 3902 | #endif |
| 3903 | } |
| 3904 | PRESERVE_NONE |
| 3905 | static bool Interp_BitCastPrimBool(InterpState &S) { |
| 3906 | { |
| 3907 | CodePtr OpPC = S.PC; |
| 3908 | const auto V0 = ReadArg<bool>(S, S.PC); |
| 3909 | const auto V1 = ReadArg<uint32_t>(S, S.PC); |
| 3910 | const auto V2 = ReadArg<const llvm::fltSemantics *>(S, S.PC); |
| 3911 | const auto V3 = ReadArg<const Type *>(S, S.PC); |
| 3912 | if (!BitCastPrim<PT_Bool>(S, OpPC, V0, V1, V2, V3)) return false; |
| 3913 | } |
| 3914 | #if USE_TAILCALLS |
| 3915 | MUSTTAIL return InterpNext(S); |
| 3916 | #else |
| 3917 | return true; |
| 3918 | #endif |
| 3919 | } |
| 3920 | PRESERVE_NONE |
| 3921 | static bool Interp_BitCastPrimFloat(InterpState &S) { |
| 3922 | { |
| 3923 | CodePtr OpPC = S.PC; |
| 3924 | const auto V0 = ReadArg<bool>(S, S.PC); |
| 3925 | const auto V1 = ReadArg<uint32_t>(S, S.PC); |
| 3926 | const auto V2 = ReadArg<const llvm::fltSemantics *>(S, S.PC); |
| 3927 | const auto V3 = ReadArg<const Type *>(S, S.PC); |
| 3928 | if (!BitCastPrim<PT_Float>(S, OpPC, V0, V1, V2, V3)) return false; |
| 3929 | } |
| 3930 | #if USE_TAILCALLS |
| 3931 | MUSTTAIL return InterpNext(S); |
| 3932 | #else |
| 3933 | return true; |
| 3934 | #endif |
| 3935 | } |
| 3936 | PRESERVE_NONE |
| 3937 | static bool Interp_BitCastPrimPtr(InterpState &S) { |
| 3938 | { |
| 3939 | CodePtr OpPC = S.PC; |
| 3940 | const auto V0 = ReadArg<bool>(S, S.PC); |
| 3941 | const auto V1 = ReadArg<uint32_t>(S, S.PC); |
| 3942 | const auto V2 = ReadArg<const llvm::fltSemantics *>(S, S.PC); |
| 3943 | const auto V3 = ReadArg<const Type *>(S, S.PC); |
| 3944 | if (!BitCastPrim<PT_Ptr>(S, OpPC, V0, V1, V2, V3)) return false; |
| 3945 | } |
| 3946 | #if USE_TAILCALLS |
| 3947 | MUSTTAIL return InterpNext(S); |
| 3948 | #else |
| 3949 | return true; |
| 3950 | #endif |
| 3951 | } |
| 3952 | PRESERVE_NONE |
| 3953 | static bool Interp_BitCastPrimMemberPtr(InterpState &S) { |
| 3954 | { |
| 3955 | CodePtr OpPC = S.PC; |
| 3956 | const auto V0 = ReadArg<bool>(S, S.PC); |
| 3957 | const auto V1 = ReadArg<uint32_t>(S, S.PC); |
| 3958 | const auto V2 = ReadArg<const llvm::fltSemantics *>(S, S.PC); |
| 3959 | const auto V3 = ReadArg<const Type *>(S, S.PC); |
| 3960 | if (!BitCastPrim<PT_MemberPtr>(S, OpPC, V0, V1, V2, V3)) return false; |
| 3961 | } |
| 3962 | #if USE_TAILCALLS |
| 3963 | MUSTTAIL return InterpNext(S); |
| 3964 | #else |
| 3965 | return true; |
| 3966 | #endif |
| 3967 | } |
| 3968 | #endif |
| 3969 | #ifdef GET_DISASM |
| 3970 | case OP_BitCastPrimUint8: |
| 3971 | Text.Op = PrintName("BitCastPrimUint8" ); |
| 3972 | Text.Args.push_back(printArg<bool>(PC)); |
| 3973 | Text.Args.push_back(printArg<uint32_t>(PC)); |
| 3974 | Text.Args.push_back(printArg<const llvm::fltSemantics *>(PC)); |
| 3975 | Text.Args.push_back(printArg<const Type *>(PC)); |
| 3976 | break; |
| 3977 | case OP_BitCastPrimSint8: |
| 3978 | Text.Op = PrintName("BitCastPrimSint8" ); |
| 3979 | Text.Args.push_back(printArg<bool>(PC)); |
| 3980 | Text.Args.push_back(printArg<uint32_t>(PC)); |
| 3981 | Text.Args.push_back(printArg<const llvm::fltSemantics *>(PC)); |
| 3982 | Text.Args.push_back(printArg<const Type *>(PC)); |
| 3983 | break; |
| 3984 | case OP_BitCastPrimUint16: |
| 3985 | Text.Op = PrintName("BitCastPrimUint16" ); |
| 3986 | Text.Args.push_back(printArg<bool>(PC)); |
| 3987 | Text.Args.push_back(printArg<uint32_t>(PC)); |
| 3988 | Text.Args.push_back(printArg<const llvm::fltSemantics *>(PC)); |
| 3989 | Text.Args.push_back(printArg<const Type *>(PC)); |
| 3990 | break; |
| 3991 | case OP_BitCastPrimSint16: |
| 3992 | Text.Op = PrintName("BitCastPrimSint16" ); |
| 3993 | Text.Args.push_back(printArg<bool>(PC)); |
| 3994 | Text.Args.push_back(printArg<uint32_t>(PC)); |
| 3995 | Text.Args.push_back(printArg<const llvm::fltSemantics *>(PC)); |
| 3996 | Text.Args.push_back(printArg<const Type *>(PC)); |
| 3997 | break; |
| 3998 | case OP_BitCastPrimUint32: |
| 3999 | Text.Op = PrintName("BitCastPrimUint32" ); |
| 4000 | Text.Args.push_back(printArg<bool>(PC)); |
| 4001 | Text.Args.push_back(printArg<uint32_t>(PC)); |
| 4002 | Text.Args.push_back(printArg<const llvm::fltSemantics *>(PC)); |
| 4003 | Text.Args.push_back(printArg<const Type *>(PC)); |
| 4004 | break; |
| 4005 | case OP_BitCastPrimSint32: |
| 4006 | Text.Op = PrintName("BitCastPrimSint32" ); |
| 4007 | Text.Args.push_back(printArg<bool>(PC)); |
| 4008 | Text.Args.push_back(printArg<uint32_t>(PC)); |
| 4009 | Text.Args.push_back(printArg<const llvm::fltSemantics *>(PC)); |
| 4010 | Text.Args.push_back(printArg<const Type *>(PC)); |
| 4011 | break; |
| 4012 | case OP_BitCastPrimUint64: |
| 4013 | Text.Op = PrintName("BitCastPrimUint64" ); |
| 4014 | Text.Args.push_back(printArg<bool>(PC)); |
| 4015 | Text.Args.push_back(printArg<uint32_t>(PC)); |
| 4016 | Text.Args.push_back(printArg<const llvm::fltSemantics *>(PC)); |
| 4017 | Text.Args.push_back(printArg<const Type *>(PC)); |
| 4018 | break; |
| 4019 | case OP_BitCastPrimSint64: |
| 4020 | Text.Op = PrintName("BitCastPrimSint64" ); |
| 4021 | Text.Args.push_back(printArg<bool>(PC)); |
| 4022 | Text.Args.push_back(printArg<uint32_t>(PC)); |
| 4023 | Text.Args.push_back(printArg<const llvm::fltSemantics *>(PC)); |
| 4024 | Text.Args.push_back(printArg<const Type *>(PC)); |
| 4025 | break; |
| 4026 | case OP_BitCastPrimIntAP: |
| 4027 | Text.Op = PrintName("BitCastPrimIntAP" ); |
| 4028 | Text.Args.push_back(printArg<bool>(PC)); |
| 4029 | Text.Args.push_back(printArg<uint32_t>(PC)); |
| 4030 | Text.Args.push_back(printArg<const llvm::fltSemantics *>(PC)); |
| 4031 | Text.Args.push_back(printArg<const Type *>(PC)); |
| 4032 | break; |
| 4033 | case OP_BitCastPrimIntAPS: |
| 4034 | Text.Op = PrintName("BitCastPrimIntAPS" ); |
| 4035 | Text.Args.push_back(printArg<bool>(PC)); |
| 4036 | Text.Args.push_back(printArg<uint32_t>(PC)); |
| 4037 | Text.Args.push_back(printArg<const llvm::fltSemantics *>(PC)); |
| 4038 | Text.Args.push_back(printArg<const Type *>(PC)); |
| 4039 | break; |
| 4040 | case OP_BitCastPrimBool: |
| 4041 | Text.Op = PrintName("BitCastPrimBool" ); |
| 4042 | Text.Args.push_back(printArg<bool>(PC)); |
| 4043 | Text.Args.push_back(printArg<uint32_t>(PC)); |
| 4044 | Text.Args.push_back(printArg<const llvm::fltSemantics *>(PC)); |
| 4045 | Text.Args.push_back(printArg<const Type *>(PC)); |
| 4046 | break; |
| 4047 | case OP_BitCastPrimFloat: |
| 4048 | Text.Op = PrintName("BitCastPrimFloat" ); |
| 4049 | Text.Args.push_back(printArg<bool>(PC)); |
| 4050 | Text.Args.push_back(printArg<uint32_t>(PC)); |
| 4051 | Text.Args.push_back(printArg<const llvm::fltSemantics *>(PC)); |
| 4052 | Text.Args.push_back(printArg<const Type *>(PC)); |
| 4053 | break; |
| 4054 | case OP_BitCastPrimPtr: |
| 4055 | Text.Op = PrintName("BitCastPrimPtr" ); |
| 4056 | Text.Args.push_back(printArg<bool>(PC)); |
| 4057 | Text.Args.push_back(printArg<uint32_t>(PC)); |
| 4058 | Text.Args.push_back(printArg<const llvm::fltSemantics *>(PC)); |
| 4059 | Text.Args.push_back(printArg<const Type *>(PC)); |
| 4060 | break; |
| 4061 | case OP_BitCastPrimMemberPtr: |
| 4062 | Text.Op = PrintName("BitCastPrimMemberPtr" ); |
| 4063 | Text.Args.push_back(printArg<bool>(PC)); |
| 4064 | Text.Args.push_back(printArg<uint32_t>(PC)); |
| 4065 | Text.Args.push_back(printArg<const llvm::fltSemantics *>(PC)); |
| 4066 | Text.Args.push_back(printArg<const Type *>(PC)); |
| 4067 | break; |
| 4068 | #endif |
| 4069 | #if defined(GET_EVAL_PROTO) || defined(GET_LINK_PROTO) |
| 4070 | bool emitBitCastPrimUint8( bool , uint32_t , const llvm::fltSemantics * , const Type * , SourceInfo); |
| 4071 | bool emitBitCastPrimSint8( bool , uint32_t , const llvm::fltSemantics * , const Type * , SourceInfo); |
| 4072 | bool emitBitCastPrimUint16( bool , uint32_t , const llvm::fltSemantics * , const Type * , SourceInfo); |
| 4073 | bool emitBitCastPrimSint16( bool , uint32_t , const llvm::fltSemantics * , const Type * , SourceInfo); |
| 4074 | bool emitBitCastPrimUint32( bool , uint32_t , const llvm::fltSemantics * , const Type * , SourceInfo); |
| 4075 | bool emitBitCastPrimSint32( bool , uint32_t , const llvm::fltSemantics * , const Type * , SourceInfo); |
| 4076 | bool emitBitCastPrimUint64( bool , uint32_t , const llvm::fltSemantics * , const Type * , SourceInfo); |
| 4077 | bool emitBitCastPrimSint64( bool , uint32_t , const llvm::fltSemantics * , const Type * , SourceInfo); |
| 4078 | bool emitBitCastPrimIntAP( bool , uint32_t , const llvm::fltSemantics * , const Type * , SourceInfo); |
| 4079 | bool emitBitCastPrimIntAPS( bool , uint32_t , const llvm::fltSemantics * , const Type * , SourceInfo); |
| 4080 | bool emitBitCastPrimBool( bool , uint32_t , const llvm::fltSemantics * , const Type * , SourceInfo); |
| 4081 | bool emitBitCastPrimFloat( bool , uint32_t , const llvm::fltSemantics * , const Type * , SourceInfo); |
| 4082 | bool emitBitCastPrimPtr( bool , uint32_t , const llvm::fltSemantics * , const Type * , SourceInfo); |
| 4083 | bool emitBitCastPrimMemberPtr( bool , uint32_t , const llvm::fltSemantics * , const Type * , SourceInfo); |
| 4084 | #endif |
| 4085 | #if defined(GET_EVAL_PROTO) || defined(GET_LINK_PROTO) |
| 4086 | [[nodiscard]] bool emitBitCastPrim(PrimType, bool, uint32_t, const llvm::fltSemantics *, const Type *, SourceInfo I); |
| 4087 | #endif |
| 4088 | #if defined(GET_EVAL_IMPL) || defined(GET_LINK_IMPL) |
| 4089 | bool |
| 4090 | #if defined(GET_EVAL_IMPL) |
| 4091 | EvalEmitter |
| 4092 | #else |
| 4093 | ByteCodeEmitter |
| 4094 | #endif |
| 4095 | ::emitBitCastPrim(PrimType T0, bool A0, uint32_t A1, const llvm::fltSemantics * A2, const Type * A3, SourceInfo I) { |
| 4096 | switch (T0) { |
| 4097 | case PT_Uint8: |
| 4098 | return emitBitCastPrimUint8(A0, A1, A2, A3, I); |
| 4099 | case PT_Sint8: |
| 4100 | return emitBitCastPrimSint8(A0, A1, A2, A3, I); |
| 4101 | case PT_Uint16: |
| 4102 | return emitBitCastPrimUint16(A0, A1, A2, A3, I); |
| 4103 | case PT_Sint16: |
| 4104 | return emitBitCastPrimSint16(A0, A1, A2, A3, I); |
| 4105 | case PT_Uint32: |
| 4106 | return emitBitCastPrimUint32(A0, A1, A2, A3, I); |
| 4107 | case PT_Sint32: |
| 4108 | return emitBitCastPrimSint32(A0, A1, A2, A3, I); |
| 4109 | case PT_Uint64: |
| 4110 | return emitBitCastPrimUint64(A0, A1, A2, A3, I); |
| 4111 | case PT_Sint64: |
| 4112 | return emitBitCastPrimSint64(A0, A1, A2, A3, I); |
| 4113 | case PT_IntAP: |
| 4114 | return emitBitCastPrimIntAP(A0, A1, A2, A3, I); |
| 4115 | case PT_IntAPS: |
| 4116 | return emitBitCastPrimIntAPS(A0, A1, A2, A3, I); |
| 4117 | case PT_Bool: |
| 4118 | return emitBitCastPrimBool(A0, A1, A2, A3, I); |
| 4119 | case PT_Float: |
| 4120 | return emitBitCastPrimFloat(A0, A1, A2, A3, I); |
| 4121 | case PT_Ptr: |
| 4122 | return emitBitCastPrimPtr(A0, A1, A2, A3, I); |
| 4123 | case PT_MemberPtr: |
| 4124 | return emitBitCastPrimMemberPtr(A0, A1, A2, A3, I); |
| 4125 | default: llvm_unreachable("invalid type: emitBitCastPrim" ); |
| 4126 | } |
| 4127 | llvm_unreachable("invalid enum value" ); |
| 4128 | } |
| 4129 | #endif |
| 4130 | #ifdef GET_LINK_IMPL |
| 4131 | bool ByteCodeEmitter::emitBitCastPrimUint8( bool A0, uint32_t A1, const llvm::fltSemantics * A2, const Type * A3, SourceInfo L) { |
| 4132 | return emitOp<bool, uint32_t, const llvm::fltSemantics *, const Type *>(OP_BitCastPrimUint8, A0, A1, A2, A3, L); |
| 4133 | } |
| 4134 | bool ByteCodeEmitter::emitBitCastPrimSint8( bool A0, uint32_t A1, const llvm::fltSemantics * A2, const Type * A3, SourceInfo L) { |
| 4135 | return emitOp<bool, uint32_t, const llvm::fltSemantics *, const Type *>(OP_BitCastPrimSint8, A0, A1, A2, A3, L); |
| 4136 | } |
| 4137 | bool ByteCodeEmitter::emitBitCastPrimUint16( bool A0, uint32_t A1, const llvm::fltSemantics * A2, const Type * A3, SourceInfo L) { |
| 4138 | return emitOp<bool, uint32_t, const llvm::fltSemantics *, const Type *>(OP_BitCastPrimUint16, A0, A1, A2, A3, L); |
| 4139 | } |
| 4140 | bool ByteCodeEmitter::emitBitCastPrimSint16( bool A0, uint32_t A1, const llvm::fltSemantics * A2, const Type * A3, SourceInfo L) { |
| 4141 | return emitOp<bool, uint32_t, const llvm::fltSemantics *, const Type *>(OP_BitCastPrimSint16, A0, A1, A2, A3, L); |
| 4142 | } |
| 4143 | bool ByteCodeEmitter::emitBitCastPrimUint32( bool A0, uint32_t A1, const llvm::fltSemantics * A2, const Type * A3, SourceInfo L) { |
| 4144 | return emitOp<bool, uint32_t, const llvm::fltSemantics *, const Type *>(OP_BitCastPrimUint32, A0, A1, A2, A3, L); |
| 4145 | } |
| 4146 | bool ByteCodeEmitter::emitBitCastPrimSint32( bool A0, uint32_t A1, const llvm::fltSemantics * A2, const Type * A3, SourceInfo L) { |
| 4147 | return emitOp<bool, uint32_t, const llvm::fltSemantics *, const Type *>(OP_BitCastPrimSint32, A0, A1, A2, A3, L); |
| 4148 | } |
| 4149 | bool ByteCodeEmitter::emitBitCastPrimUint64( bool A0, uint32_t A1, const llvm::fltSemantics * A2, const Type * A3, SourceInfo L) { |
| 4150 | return emitOp<bool, uint32_t, const llvm::fltSemantics *, const Type *>(OP_BitCastPrimUint64, A0, A1, A2, A3, L); |
| 4151 | } |
| 4152 | bool ByteCodeEmitter::emitBitCastPrimSint64( bool A0, uint32_t A1, const llvm::fltSemantics * A2, const Type * A3, SourceInfo L) { |
| 4153 | return emitOp<bool, uint32_t, const llvm::fltSemantics *, const Type *>(OP_BitCastPrimSint64, A0, A1, A2, A3, L); |
| 4154 | } |
| 4155 | bool ByteCodeEmitter::emitBitCastPrimIntAP( bool A0, uint32_t A1, const llvm::fltSemantics * A2, const Type * A3, SourceInfo L) { |
| 4156 | return emitOp<bool, uint32_t, const llvm::fltSemantics *, const Type *>(OP_BitCastPrimIntAP, A0, A1, A2, A3, L); |
| 4157 | } |
| 4158 | bool ByteCodeEmitter::emitBitCastPrimIntAPS( bool A0, uint32_t A1, const llvm::fltSemantics * A2, const Type * A3, SourceInfo L) { |
| 4159 | return emitOp<bool, uint32_t, const llvm::fltSemantics *, const Type *>(OP_BitCastPrimIntAPS, A0, A1, A2, A3, L); |
| 4160 | } |
| 4161 | bool ByteCodeEmitter::emitBitCastPrimBool( bool A0, uint32_t A1, const llvm::fltSemantics * A2, const Type * A3, SourceInfo L) { |
| 4162 | return emitOp<bool, uint32_t, const llvm::fltSemantics *, const Type *>(OP_BitCastPrimBool, A0, A1, A2, A3, L); |
| 4163 | } |
| 4164 | bool ByteCodeEmitter::emitBitCastPrimFloat( bool A0, uint32_t A1, const llvm::fltSemantics * A2, const Type * A3, SourceInfo L) { |
| 4165 | return emitOp<bool, uint32_t, const llvm::fltSemantics *, const Type *>(OP_BitCastPrimFloat, A0, A1, A2, A3, L); |
| 4166 | } |
| 4167 | bool ByteCodeEmitter::emitBitCastPrimPtr( bool A0, uint32_t A1, const llvm::fltSemantics * A2, const Type * A3, SourceInfo L) { |
| 4168 | return emitOp<bool, uint32_t, const llvm::fltSemantics *, const Type *>(OP_BitCastPrimPtr, A0, A1, A2, A3, L); |
| 4169 | } |
| 4170 | bool ByteCodeEmitter::emitBitCastPrimMemberPtr( bool A0, uint32_t A1, const llvm::fltSemantics * A2, const Type * A3, SourceInfo L) { |
| 4171 | return emitOp<bool, uint32_t, const llvm::fltSemantics *, const Type *>(OP_BitCastPrimMemberPtr, A0, A1, A2, A3, L); |
| 4172 | } |
| 4173 | #endif |
| 4174 | #ifdef GET_EVAL_IMPL |
| 4175 | bool EvalEmitter::emitBitCastPrimUint8( bool A0, uint32_t A1, const llvm::fltSemantics * A2, const Type * A3, SourceInfo L) { |
| 4176 | if (!isActive()) return true; |
| 4177 | CurrentSource = L; |
| 4178 | return BitCastPrim<PT_Uint8>(S, CodePtr(), A0, A1, A2, A3); |
| 4179 | } |
| 4180 | bool EvalEmitter::emitBitCastPrimSint8( bool A0, uint32_t A1, const llvm::fltSemantics * A2, const Type * A3, SourceInfo L) { |
| 4181 | if (!isActive()) return true; |
| 4182 | CurrentSource = L; |
| 4183 | return BitCastPrim<PT_Sint8>(S, CodePtr(), A0, A1, A2, A3); |
| 4184 | } |
| 4185 | bool EvalEmitter::emitBitCastPrimUint16( bool A0, uint32_t A1, const llvm::fltSemantics * A2, const Type * A3, SourceInfo L) { |
| 4186 | if (!isActive()) return true; |
| 4187 | CurrentSource = L; |
| 4188 | return BitCastPrim<PT_Uint16>(S, CodePtr(), A0, A1, A2, A3); |
| 4189 | } |
| 4190 | bool EvalEmitter::emitBitCastPrimSint16( bool A0, uint32_t A1, const llvm::fltSemantics * A2, const Type * A3, SourceInfo L) { |
| 4191 | if (!isActive()) return true; |
| 4192 | CurrentSource = L; |
| 4193 | return BitCastPrim<PT_Sint16>(S, CodePtr(), A0, A1, A2, A3); |
| 4194 | } |
| 4195 | bool EvalEmitter::emitBitCastPrimUint32( bool A0, uint32_t A1, const llvm::fltSemantics * A2, const Type * A3, SourceInfo L) { |
| 4196 | if (!isActive()) return true; |
| 4197 | CurrentSource = L; |
| 4198 | return BitCastPrim<PT_Uint32>(S, CodePtr(), A0, A1, A2, A3); |
| 4199 | } |
| 4200 | bool EvalEmitter::emitBitCastPrimSint32( bool A0, uint32_t A1, const llvm::fltSemantics * A2, const Type * A3, SourceInfo L) { |
| 4201 | if (!isActive()) return true; |
| 4202 | CurrentSource = L; |
| 4203 | return BitCastPrim<PT_Sint32>(S, CodePtr(), A0, A1, A2, A3); |
| 4204 | } |
| 4205 | bool EvalEmitter::emitBitCastPrimUint64( bool A0, uint32_t A1, const llvm::fltSemantics * A2, const Type * A3, SourceInfo L) { |
| 4206 | if (!isActive()) return true; |
| 4207 | CurrentSource = L; |
| 4208 | return BitCastPrim<PT_Uint64>(S, CodePtr(), A0, A1, A2, A3); |
| 4209 | } |
| 4210 | bool EvalEmitter::emitBitCastPrimSint64( bool A0, uint32_t A1, const llvm::fltSemantics * A2, const Type * A3, SourceInfo L) { |
| 4211 | if (!isActive()) return true; |
| 4212 | CurrentSource = L; |
| 4213 | return BitCastPrim<PT_Sint64>(S, CodePtr(), A0, A1, A2, A3); |
| 4214 | } |
| 4215 | bool EvalEmitter::emitBitCastPrimIntAP( bool A0, uint32_t A1, const llvm::fltSemantics * A2, const Type * A3, SourceInfo L) { |
| 4216 | if (!isActive()) return true; |
| 4217 | CurrentSource = L; |
| 4218 | return BitCastPrim<PT_IntAP>(S, CodePtr(), A0, A1, A2, A3); |
| 4219 | } |
| 4220 | bool EvalEmitter::emitBitCastPrimIntAPS( bool A0, uint32_t A1, const llvm::fltSemantics * A2, const Type * A3, SourceInfo L) { |
| 4221 | if (!isActive()) return true; |
| 4222 | CurrentSource = L; |
| 4223 | return BitCastPrim<PT_IntAPS>(S, CodePtr(), A0, A1, A2, A3); |
| 4224 | } |
| 4225 | bool EvalEmitter::emitBitCastPrimBool( bool A0, uint32_t A1, const llvm::fltSemantics * A2, const Type * A3, SourceInfo L) { |
| 4226 | if (!isActive()) return true; |
| 4227 | CurrentSource = L; |
| 4228 | return BitCastPrim<PT_Bool>(S, CodePtr(), A0, A1, A2, A3); |
| 4229 | } |
| 4230 | bool EvalEmitter::emitBitCastPrimFloat( bool A0, uint32_t A1, const llvm::fltSemantics * A2, const Type * A3, SourceInfo L) { |
| 4231 | if (!isActive()) return true; |
| 4232 | CurrentSource = L; |
| 4233 | return BitCastPrim<PT_Float>(S, CodePtr(), A0, A1, A2, A3); |
| 4234 | } |
| 4235 | bool EvalEmitter::emitBitCastPrimPtr( bool A0, uint32_t A1, const llvm::fltSemantics * A2, const Type * A3, SourceInfo L) { |
| 4236 | if (!isActive()) return true; |
| 4237 | CurrentSource = L; |
| 4238 | return BitCastPrim<PT_Ptr>(S, CodePtr(), A0, A1, A2, A3); |
| 4239 | } |
| 4240 | bool EvalEmitter::emitBitCastPrimMemberPtr( bool A0, uint32_t A1, const llvm::fltSemantics * A2, const Type * A3, SourceInfo L) { |
| 4241 | if (!isActive()) return true; |
| 4242 | CurrentSource = L; |
| 4243 | return BitCastPrim<PT_MemberPtr>(S, CodePtr(), A0, A1, A2, A3); |
| 4244 | } |
| 4245 | #endif |
| 4246 | #ifdef GET_OPCODE_NAMES |
| 4247 | OP_BitOrSint8, |
| 4248 | OP_BitOrUint8, |
| 4249 | OP_BitOrSint16, |
| 4250 | OP_BitOrUint16, |
| 4251 | OP_BitOrSint32, |
| 4252 | OP_BitOrUint32, |
| 4253 | OP_BitOrSint64, |
| 4254 | OP_BitOrUint64, |
| 4255 | OP_BitOrIntAP, |
| 4256 | OP_BitOrIntAPS, |
| 4257 | OP_BitOrFixedPoint, |
| 4258 | #endif |
| 4259 | #ifdef GET_INTERPFN_LIST |
| 4260 | &Interp_BitOrSint8, |
| 4261 | &Interp_BitOrUint8, |
| 4262 | &Interp_BitOrSint16, |
| 4263 | &Interp_BitOrUint16, |
| 4264 | &Interp_BitOrSint32, |
| 4265 | &Interp_BitOrUint32, |
| 4266 | &Interp_BitOrSint64, |
| 4267 | &Interp_BitOrUint64, |
| 4268 | &Interp_BitOrIntAP, |
| 4269 | &Interp_BitOrIntAPS, |
| 4270 | &Interp_BitOrFixedPoint, |
| 4271 | #endif |
| 4272 | #ifdef GET_INTERPFN_DISPATCHERS |
| 4273 | PRESERVE_NONE |
| 4274 | static bool Interp_BitOrSint8(InterpState &S) { |
| 4275 | if (!BitOr<PT_Sint8>(S)) return false; |
| 4276 | #if USE_TAILCALLS |
| 4277 | MUSTTAIL return InterpNext(S); |
| 4278 | #else |
| 4279 | return true; |
| 4280 | #endif |
| 4281 | } |
| 4282 | PRESERVE_NONE |
| 4283 | static bool Interp_BitOrUint8(InterpState &S) { |
| 4284 | if (!BitOr<PT_Uint8>(S)) return false; |
| 4285 | #if USE_TAILCALLS |
| 4286 | MUSTTAIL return InterpNext(S); |
| 4287 | #else |
| 4288 | return true; |
| 4289 | #endif |
| 4290 | } |
| 4291 | PRESERVE_NONE |
| 4292 | static bool Interp_BitOrSint16(InterpState &S) { |
| 4293 | if (!BitOr<PT_Sint16>(S)) return false; |
| 4294 | #if USE_TAILCALLS |
| 4295 | MUSTTAIL return InterpNext(S); |
| 4296 | #else |
| 4297 | return true; |
| 4298 | #endif |
| 4299 | } |
| 4300 | PRESERVE_NONE |
| 4301 | static bool Interp_BitOrUint16(InterpState &S) { |
| 4302 | if (!BitOr<PT_Uint16>(S)) return false; |
| 4303 | #if USE_TAILCALLS |
| 4304 | MUSTTAIL return InterpNext(S); |
| 4305 | #else |
| 4306 | return true; |
| 4307 | #endif |
| 4308 | } |
| 4309 | PRESERVE_NONE |
| 4310 | static bool Interp_BitOrSint32(InterpState &S) { |
| 4311 | if (!BitOr<PT_Sint32>(S)) return false; |
| 4312 | #if USE_TAILCALLS |
| 4313 | MUSTTAIL return InterpNext(S); |
| 4314 | #else |
| 4315 | return true; |
| 4316 | #endif |
| 4317 | } |
| 4318 | PRESERVE_NONE |
| 4319 | static bool Interp_BitOrUint32(InterpState &S) { |
| 4320 | if (!BitOr<PT_Uint32>(S)) return false; |
| 4321 | #if USE_TAILCALLS |
| 4322 | MUSTTAIL return InterpNext(S); |
| 4323 | #else |
| 4324 | return true; |
| 4325 | #endif |
| 4326 | } |
| 4327 | PRESERVE_NONE |
| 4328 | static bool Interp_BitOrSint64(InterpState &S) { |
| 4329 | if (!BitOr<PT_Sint64>(S)) return false; |
| 4330 | #if USE_TAILCALLS |
| 4331 | MUSTTAIL return InterpNext(S); |
| 4332 | #else |
| 4333 | return true; |
| 4334 | #endif |
| 4335 | } |
| 4336 | PRESERVE_NONE |
| 4337 | static bool Interp_BitOrUint64(InterpState &S) { |
| 4338 | if (!BitOr<PT_Uint64>(S)) return false; |
| 4339 | #if USE_TAILCALLS |
| 4340 | MUSTTAIL return InterpNext(S); |
| 4341 | #else |
| 4342 | return true; |
| 4343 | #endif |
| 4344 | } |
| 4345 | PRESERVE_NONE |
| 4346 | static bool Interp_BitOrIntAP(InterpState &S) { |
| 4347 | if (!BitOr<PT_IntAP>(S)) return false; |
| 4348 | #if USE_TAILCALLS |
| 4349 | MUSTTAIL return InterpNext(S); |
| 4350 | #else |
| 4351 | return true; |
| 4352 | #endif |
| 4353 | } |
| 4354 | PRESERVE_NONE |
| 4355 | static bool Interp_BitOrIntAPS(InterpState &S) { |
| 4356 | if (!BitOr<PT_IntAPS>(S)) return false; |
| 4357 | #if USE_TAILCALLS |
| 4358 | MUSTTAIL return InterpNext(S); |
| 4359 | #else |
| 4360 | return true; |
| 4361 | #endif |
| 4362 | } |
| 4363 | PRESERVE_NONE |
| 4364 | static bool Interp_BitOrFixedPoint(InterpState &S) { |
| 4365 | if (!BitOr<PT_FixedPoint>(S)) return false; |
| 4366 | #if USE_TAILCALLS |
| 4367 | MUSTTAIL return InterpNext(S); |
| 4368 | #else |
| 4369 | return true; |
| 4370 | #endif |
| 4371 | } |
| 4372 | #endif |
| 4373 | #ifdef GET_DISASM |
| 4374 | case OP_BitOrSint8: |
| 4375 | Text.Op = PrintName("BitOrSint8" ); |
| 4376 | break; |
| 4377 | case OP_BitOrUint8: |
| 4378 | Text.Op = PrintName("BitOrUint8" ); |
| 4379 | break; |
| 4380 | case OP_BitOrSint16: |
| 4381 | Text.Op = PrintName("BitOrSint16" ); |
| 4382 | break; |
| 4383 | case OP_BitOrUint16: |
| 4384 | Text.Op = PrintName("BitOrUint16" ); |
| 4385 | break; |
| 4386 | case OP_BitOrSint32: |
| 4387 | Text.Op = PrintName("BitOrSint32" ); |
| 4388 | break; |
| 4389 | case OP_BitOrUint32: |
| 4390 | Text.Op = PrintName("BitOrUint32" ); |
| 4391 | break; |
| 4392 | case OP_BitOrSint64: |
| 4393 | Text.Op = PrintName("BitOrSint64" ); |
| 4394 | break; |
| 4395 | case OP_BitOrUint64: |
| 4396 | Text.Op = PrintName("BitOrUint64" ); |
| 4397 | break; |
| 4398 | case OP_BitOrIntAP: |
| 4399 | Text.Op = PrintName("BitOrIntAP" ); |
| 4400 | break; |
| 4401 | case OP_BitOrIntAPS: |
| 4402 | Text.Op = PrintName("BitOrIntAPS" ); |
| 4403 | break; |
| 4404 | case OP_BitOrFixedPoint: |
| 4405 | Text.Op = PrintName("BitOrFixedPoint" ); |
| 4406 | break; |
| 4407 | #endif |
| 4408 | #if defined(GET_EVAL_PROTO) || defined(GET_LINK_PROTO) |
| 4409 | bool emitBitOrSint8(SourceInfo); |
| 4410 | bool emitBitOrUint8(SourceInfo); |
| 4411 | bool emitBitOrSint16(SourceInfo); |
| 4412 | bool emitBitOrUint16(SourceInfo); |
| 4413 | bool emitBitOrSint32(SourceInfo); |
| 4414 | bool emitBitOrUint32(SourceInfo); |
| 4415 | bool emitBitOrSint64(SourceInfo); |
| 4416 | bool emitBitOrUint64(SourceInfo); |
| 4417 | bool emitBitOrIntAP(SourceInfo); |
| 4418 | bool emitBitOrIntAPS(SourceInfo); |
| 4419 | bool emitBitOrFixedPoint(SourceInfo); |
| 4420 | #endif |
| 4421 | #if defined(GET_EVAL_PROTO) || defined(GET_LINK_PROTO) |
| 4422 | [[nodiscard]] bool emitBitOr(PrimType, SourceInfo I); |
| 4423 | #endif |
| 4424 | #if defined(GET_EVAL_IMPL) || defined(GET_LINK_IMPL) |
| 4425 | bool |
| 4426 | #if defined(GET_EVAL_IMPL) |
| 4427 | EvalEmitter |
| 4428 | #else |
| 4429 | ByteCodeEmitter |
| 4430 | #endif |
| 4431 | ::emitBitOr(PrimType T0, SourceInfo I) { |
| 4432 | switch (T0) { |
| 4433 | case PT_Sint8: |
| 4434 | return emitBitOrSint8(I); |
| 4435 | case PT_Uint8: |
| 4436 | return emitBitOrUint8(I); |
| 4437 | case PT_Sint16: |
| 4438 | return emitBitOrSint16(I); |
| 4439 | case PT_Uint16: |
| 4440 | return emitBitOrUint16(I); |
| 4441 | case PT_Sint32: |
| 4442 | return emitBitOrSint32(I); |
| 4443 | case PT_Uint32: |
| 4444 | return emitBitOrUint32(I); |
| 4445 | case PT_Sint64: |
| 4446 | return emitBitOrSint64(I); |
| 4447 | case PT_Uint64: |
| 4448 | return emitBitOrUint64(I); |
| 4449 | case PT_IntAP: |
| 4450 | return emitBitOrIntAP(I); |
| 4451 | case PT_IntAPS: |
| 4452 | return emitBitOrIntAPS(I); |
| 4453 | case PT_FixedPoint: |
| 4454 | return emitBitOrFixedPoint(I); |
| 4455 | default: llvm_unreachable("invalid type: emitBitOr" ); |
| 4456 | } |
| 4457 | llvm_unreachable("invalid enum value" ); |
| 4458 | } |
| 4459 | #endif |
| 4460 | #ifdef GET_LINK_IMPL |
| 4461 | bool ByteCodeEmitter::emitBitOrSint8(SourceInfo L) { |
| 4462 | return emitOp<>(OP_BitOrSint8, L); |
| 4463 | } |
| 4464 | bool ByteCodeEmitter::emitBitOrUint8(SourceInfo L) { |
| 4465 | return emitOp<>(OP_BitOrUint8, L); |
| 4466 | } |
| 4467 | bool ByteCodeEmitter::emitBitOrSint16(SourceInfo L) { |
| 4468 | return emitOp<>(OP_BitOrSint16, L); |
| 4469 | } |
| 4470 | bool ByteCodeEmitter::emitBitOrUint16(SourceInfo L) { |
| 4471 | return emitOp<>(OP_BitOrUint16, L); |
| 4472 | } |
| 4473 | bool ByteCodeEmitter::emitBitOrSint32(SourceInfo L) { |
| 4474 | return emitOp<>(OP_BitOrSint32, L); |
| 4475 | } |
| 4476 | bool ByteCodeEmitter::emitBitOrUint32(SourceInfo L) { |
| 4477 | return emitOp<>(OP_BitOrUint32, L); |
| 4478 | } |
| 4479 | bool ByteCodeEmitter::emitBitOrSint64(SourceInfo L) { |
| 4480 | return emitOp<>(OP_BitOrSint64, L); |
| 4481 | } |
| 4482 | bool ByteCodeEmitter::emitBitOrUint64(SourceInfo L) { |
| 4483 | return emitOp<>(OP_BitOrUint64, L); |
| 4484 | } |
| 4485 | bool ByteCodeEmitter::emitBitOrIntAP(SourceInfo L) { |
| 4486 | return emitOp<>(OP_BitOrIntAP, L); |
| 4487 | } |
| 4488 | bool ByteCodeEmitter::emitBitOrIntAPS(SourceInfo L) { |
| 4489 | return emitOp<>(OP_BitOrIntAPS, L); |
| 4490 | } |
| 4491 | bool ByteCodeEmitter::emitBitOrFixedPoint(SourceInfo L) { |
| 4492 | return emitOp<>(OP_BitOrFixedPoint, L); |
| 4493 | } |
| 4494 | #endif |
| 4495 | #ifdef GET_EVAL_IMPL |
| 4496 | bool EvalEmitter::emitBitOrSint8(SourceInfo L) { |
| 4497 | if (!isActive()) return true; |
| 4498 | CurrentSource = L; |
| 4499 | return BitOr<PT_Sint8>(S); |
| 4500 | } |
| 4501 | bool EvalEmitter::emitBitOrUint8(SourceInfo L) { |
| 4502 | if (!isActive()) return true; |
| 4503 | CurrentSource = L; |
| 4504 | return BitOr<PT_Uint8>(S); |
| 4505 | } |
| 4506 | bool EvalEmitter::emitBitOrSint16(SourceInfo L) { |
| 4507 | if (!isActive()) return true; |
| 4508 | CurrentSource = L; |
| 4509 | return BitOr<PT_Sint16>(S); |
| 4510 | } |
| 4511 | bool EvalEmitter::emitBitOrUint16(SourceInfo L) { |
| 4512 | if (!isActive()) return true; |
| 4513 | CurrentSource = L; |
| 4514 | return BitOr<PT_Uint16>(S); |
| 4515 | } |
| 4516 | bool EvalEmitter::emitBitOrSint32(SourceInfo L) { |
| 4517 | if (!isActive()) return true; |
| 4518 | CurrentSource = L; |
| 4519 | return BitOr<PT_Sint32>(S); |
| 4520 | } |
| 4521 | bool EvalEmitter::emitBitOrUint32(SourceInfo L) { |
| 4522 | if (!isActive()) return true; |
| 4523 | CurrentSource = L; |
| 4524 | return BitOr<PT_Uint32>(S); |
| 4525 | } |
| 4526 | bool EvalEmitter::emitBitOrSint64(SourceInfo L) { |
| 4527 | if (!isActive()) return true; |
| 4528 | CurrentSource = L; |
| 4529 | return BitOr<PT_Sint64>(S); |
| 4530 | } |
| 4531 | bool EvalEmitter::emitBitOrUint64(SourceInfo L) { |
| 4532 | if (!isActive()) return true; |
| 4533 | CurrentSource = L; |
| 4534 | return BitOr<PT_Uint64>(S); |
| 4535 | } |
| 4536 | bool EvalEmitter::emitBitOrIntAP(SourceInfo L) { |
| 4537 | if (!isActive()) return true; |
| 4538 | CurrentSource = L; |
| 4539 | return BitOr<PT_IntAP>(S); |
| 4540 | } |
| 4541 | bool EvalEmitter::emitBitOrIntAPS(SourceInfo L) { |
| 4542 | if (!isActive()) return true; |
| 4543 | CurrentSource = L; |
| 4544 | return BitOr<PT_IntAPS>(S); |
| 4545 | } |
| 4546 | bool EvalEmitter::emitBitOrFixedPoint(SourceInfo L) { |
| 4547 | if (!isActive()) return true; |
| 4548 | CurrentSource = L; |
| 4549 | return BitOr<PT_FixedPoint>(S); |
| 4550 | } |
| 4551 | #endif |
| 4552 | #ifdef GET_OPCODE_NAMES |
| 4553 | OP_BitXorSint8, |
| 4554 | OP_BitXorUint8, |
| 4555 | OP_BitXorSint16, |
| 4556 | OP_BitXorUint16, |
| 4557 | OP_BitXorSint32, |
| 4558 | OP_BitXorUint32, |
| 4559 | OP_BitXorSint64, |
| 4560 | OP_BitXorUint64, |
| 4561 | OP_BitXorIntAP, |
| 4562 | OP_BitXorIntAPS, |
| 4563 | OP_BitXorFixedPoint, |
| 4564 | #endif |
| 4565 | #ifdef GET_INTERPFN_LIST |
| 4566 | &Interp_BitXorSint8, |
| 4567 | &Interp_BitXorUint8, |
| 4568 | &Interp_BitXorSint16, |
| 4569 | &Interp_BitXorUint16, |
| 4570 | &Interp_BitXorSint32, |
| 4571 | &Interp_BitXorUint32, |
| 4572 | &Interp_BitXorSint64, |
| 4573 | &Interp_BitXorUint64, |
| 4574 | &Interp_BitXorIntAP, |
| 4575 | &Interp_BitXorIntAPS, |
| 4576 | &Interp_BitXorFixedPoint, |
| 4577 | #endif |
| 4578 | #ifdef GET_INTERPFN_DISPATCHERS |
| 4579 | PRESERVE_NONE |
| 4580 | static bool Interp_BitXorSint8(InterpState &S) { |
| 4581 | if (!BitXor<PT_Sint8>(S)) return false; |
| 4582 | #if USE_TAILCALLS |
| 4583 | MUSTTAIL return InterpNext(S); |
| 4584 | #else |
| 4585 | return true; |
| 4586 | #endif |
| 4587 | } |
| 4588 | PRESERVE_NONE |
| 4589 | static bool Interp_BitXorUint8(InterpState &S) { |
| 4590 | if (!BitXor<PT_Uint8>(S)) return false; |
| 4591 | #if USE_TAILCALLS |
| 4592 | MUSTTAIL return InterpNext(S); |
| 4593 | #else |
| 4594 | return true; |
| 4595 | #endif |
| 4596 | } |
| 4597 | PRESERVE_NONE |
| 4598 | static bool Interp_BitXorSint16(InterpState &S) { |
| 4599 | if (!BitXor<PT_Sint16>(S)) return false; |
| 4600 | #if USE_TAILCALLS |
| 4601 | MUSTTAIL return InterpNext(S); |
| 4602 | #else |
| 4603 | return true; |
| 4604 | #endif |
| 4605 | } |
| 4606 | PRESERVE_NONE |
| 4607 | static bool Interp_BitXorUint16(InterpState &S) { |
| 4608 | if (!BitXor<PT_Uint16>(S)) return false; |
| 4609 | #if USE_TAILCALLS |
| 4610 | MUSTTAIL return InterpNext(S); |
| 4611 | #else |
| 4612 | return true; |
| 4613 | #endif |
| 4614 | } |
| 4615 | PRESERVE_NONE |
| 4616 | static bool Interp_BitXorSint32(InterpState &S) { |
| 4617 | if (!BitXor<PT_Sint32>(S)) return false; |
| 4618 | #if USE_TAILCALLS |
| 4619 | MUSTTAIL return InterpNext(S); |
| 4620 | #else |
| 4621 | return true; |
| 4622 | #endif |
| 4623 | } |
| 4624 | PRESERVE_NONE |
| 4625 | static bool Interp_BitXorUint32(InterpState &S) { |
| 4626 | if (!BitXor<PT_Uint32>(S)) return false; |
| 4627 | #if USE_TAILCALLS |
| 4628 | MUSTTAIL return InterpNext(S); |
| 4629 | #else |
| 4630 | return true; |
| 4631 | #endif |
| 4632 | } |
| 4633 | PRESERVE_NONE |
| 4634 | static bool Interp_BitXorSint64(InterpState &S) { |
| 4635 | if (!BitXor<PT_Sint64>(S)) return false; |
| 4636 | #if USE_TAILCALLS |
| 4637 | MUSTTAIL return InterpNext(S); |
| 4638 | #else |
| 4639 | return true; |
| 4640 | #endif |
| 4641 | } |
| 4642 | PRESERVE_NONE |
| 4643 | static bool Interp_BitXorUint64(InterpState &S) { |
| 4644 | if (!BitXor<PT_Uint64>(S)) return false; |
| 4645 | #if USE_TAILCALLS |
| 4646 | MUSTTAIL return InterpNext(S); |
| 4647 | #else |
| 4648 | return true; |
| 4649 | #endif |
| 4650 | } |
| 4651 | PRESERVE_NONE |
| 4652 | static bool Interp_BitXorIntAP(InterpState &S) { |
| 4653 | if (!BitXor<PT_IntAP>(S)) return false; |
| 4654 | #if USE_TAILCALLS |
| 4655 | MUSTTAIL return InterpNext(S); |
| 4656 | #else |
| 4657 | return true; |
| 4658 | #endif |
| 4659 | } |
| 4660 | PRESERVE_NONE |
| 4661 | static bool Interp_BitXorIntAPS(InterpState &S) { |
| 4662 | if (!BitXor<PT_IntAPS>(S)) return false; |
| 4663 | #if USE_TAILCALLS |
| 4664 | MUSTTAIL return InterpNext(S); |
| 4665 | #else |
| 4666 | return true; |
| 4667 | #endif |
| 4668 | } |
| 4669 | PRESERVE_NONE |
| 4670 | static bool Interp_BitXorFixedPoint(InterpState &S) { |
| 4671 | if (!BitXor<PT_FixedPoint>(S)) return false; |
| 4672 | #if USE_TAILCALLS |
| 4673 | MUSTTAIL return InterpNext(S); |
| 4674 | #else |
| 4675 | return true; |
| 4676 | #endif |
| 4677 | } |
| 4678 | #endif |
| 4679 | #ifdef GET_DISASM |
| 4680 | case OP_BitXorSint8: |
| 4681 | Text.Op = PrintName("BitXorSint8" ); |
| 4682 | break; |
| 4683 | case OP_BitXorUint8: |
| 4684 | Text.Op = PrintName("BitXorUint8" ); |
| 4685 | break; |
| 4686 | case OP_BitXorSint16: |
| 4687 | Text.Op = PrintName("BitXorSint16" ); |
| 4688 | break; |
| 4689 | case OP_BitXorUint16: |
| 4690 | Text.Op = PrintName("BitXorUint16" ); |
| 4691 | break; |
| 4692 | case OP_BitXorSint32: |
| 4693 | Text.Op = PrintName("BitXorSint32" ); |
| 4694 | break; |
| 4695 | case OP_BitXorUint32: |
| 4696 | Text.Op = PrintName("BitXorUint32" ); |
| 4697 | break; |
| 4698 | case OP_BitXorSint64: |
| 4699 | Text.Op = PrintName("BitXorSint64" ); |
| 4700 | break; |
| 4701 | case OP_BitXorUint64: |
| 4702 | Text.Op = PrintName("BitXorUint64" ); |
| 4703 | break; |
| 4704 | case OP_BitXorIntAP: |
| 4705 | Text.Op = PrintName("BitXorIntAP" ); |
| 4706 | break; |
| 4707 | case OP_BitXorIntAPS: |
| 4708 | Text.Op = PrintName("BitXorIntAPS" ); |
| 4709 | break; |
| 4710 | case OP_BitXorFixedPoint: |
| 4711 | Text.Op = PrintName("BitXorFixedPoint" ); |
| 4712 | break; |
| 4713 | #endif |
| 4714 | #if defined(GET_EVAL_PROTO) || defined(GET_LINK_PROTO) |
| 4715 | bool emitBitXorSint8(SourceInfo); |
| 4716 | bool emitBitXorUint8(SourceInfo); |
| 4717 | bool emitBitXorSint16(SourceInfo); |
| 4718 | bool emitBitXorUint16(SourceInfo); |
| 4719 | bool emitBitXorSint32(SourceInfo); |
| 4720 | bool emitBitXorUint32(SourceInfo); |
| 4721 | bool emitBitXorSint64(SourceInfo); |
| 4722 | bool emitBitXorUint64(SourceInfo); |
| 4723 | bool emitBitXorIntAP(SourceInfo); |
| 4724 | bool emitBitXorIntAPS(SourceInfo); |
| 4725 | bool emitBitXorFixedPoint(SourceInfo); |
| 4726 | #endif |
| 4727 | #if defined(GET_EVAL_PROTO) || defined(GET_LINK_PROTO) |
| 4728 | [[nodiscard]] bool emitBitXor(PrimType, SourceInfo I); |
| 4729 | #endif |
| 4730 | #if defined(GET_EVAL_IMPL) || defined(GET_LINK_IMPL) |
| 4731 | bool |
| 4732 | #if defined(GET_EVAL_IMPL) |
| 4733 | EvalEmitter |
| 4734 | #else |
| 4735 | ByteCodeEmitter |
| 4736 | #endif |
| 4737 | ::emitBitXor(PrimType T0, SourceInfo I) { |
| 4738 | switch (T0) { |
| 4739 | case PT_Sint8: |
| 4740 | return emitBitXorSint8(I); |
| 4741 | case PT_Uint8: |
| 4742 | return emitBitXorUint8(I); |
| 4743 | case PT_Sint16: |
| 4744 | return emitBitXorSint16(I); |
| 4745 | case PT_Uint16: |
| 4746 | return emitBitXorUint16(I); |
| 4747 | case PT_Sint32: |
| 4748 | return emitBitXorSint32(I); |
| 4749 | case PT_Uint32: |
| 4750 | return emitBitXorUint32(I); |
| 4751 | case PT_Sint64: |
| 4752 | return emitBitXorSint64(I); |
| 4753 | case PT_Uint64: |
| 4754 | return emitBitXorUint64(I); |
| 4755 | case PT_IntAP: |
| 4756 | return emitBitXorIntAP(I); |
| 4757 | case PT_IntAPS: |
| 4758 | return emitBitXorIntAPS(I); |
| 4759 | case PT_FixedPoint: |
| 4760 | return emitBitXorFixedPoint(I); |
| 4761 | default: llvm_unreachable("invalid type: emitBitXor" ); |
| 4762 | } |
| 4763 | llvm_unreachable("invalid enum value" ); |
| 4764 | } |
| 4765 | #endif |
| 4766 | #ifdef GET_LINK_IMPL |
| 4767 | bool ByteCodeEmitter::emitBitXorSint8(SourceInfo L) { |
| 4768 | return emitOp<>(OP_BitXorSint8, L); |
| 4769 | } |
| 4770 | bool ByteCodeEmitter::emitBitXorUint8(SourceInfo L) { |
| 4771 | return emitOp<>(OP_BitXorUint8, L); |
| 4772 | } |
| 4773 | bool ByteCodeEmitter::emitBitXorSint16(SourceInfo L) { |
| 4774 | return emitOp<>(OP_BitXorSint16, L); |
| 4775 | } |
| 4776 | bool ByteCodeEmitter::emitBitXorUint16(SourceInfo L) { |
| 4777 | return emitOp<>(OP_BitXorUint16, L); |
| 4778 | } |
| 4779 | bool ByteCodeEmitter::emitBitXorSint32(SourceInfo L) { |
| 4780 | return emitOp<>(OP_BitXorSint32, L); |
| 4781 | } |
| 4782 | bool ByteCodeEmitter::emitBitXorUint32(SourceInfo L) { |
| 4783 | return emitOp<>(OP_BitXorUint32, L); |
| 4784 | } |
| 4785 | bool ByteCodeEmitter::emitBitXorSint64(SourceInfo L) { |
| 4786 | return emitOp<>(OP_BitXorSint64, L); |
| 4787 | } |
| 4788 | bool ByteCodeEmitter::emitBitXorUint64(SourceInfo L) { |
| 4789 | return emitOp<>(OP_BitXorUint64, L); |
| 4790 | } |
| 4791 | bool ByteCodeEmitter::emitBitXorIntAP(SourceInfo L) { |
| 4792 | return emitOp<>(OP_BitXorIntAP, L); |
| 4793 | } |
| 4794 | bool ByteCodeEmitter::emitBitXorIntAPS(SourceInfo L) { |
| 4795 | return emitOp<>(OP_BitXorIntAPS, L); |
| 4796 | } |
| 4797 | bool ByteCodeEmitter::emitBitXorFixedPoint(SourceInfo L) { |
| 4798 | return emitOp<>(OP_BitXorFixedPoint, L); |
| 4799 | } |
| 4800 | #endif |
| 4801 | #ifdef GET_EVAL_IMPL |
| 4802 | bool EvalEmitter::emitBitXorSint8(SourceInfo L) { |
| 4803 | if (!isActive()) return true; |
| 4804 | CurrentSource = L; |
| 4805 | return BitXor<PT_Sint8>(S); |
| 4806 | } |
| 4807 | bool EvalEmitter::emitBitXorUint8(SourceInfo L) { |
| 4808 | if (!isActive()) return true; |
| 4809 | CurrentSource = L; |
| 4810 | return BitXor<PT_Uint8>(S); |
| 4811 | } |
| 4812 | bool EvalEmitter::emitBitXorSint16(SourceInfo L) { |
| 4813 | if (!isActive()) return true; |
| 4814 | CurrentSource = L; |
| 4815 | return BitXor<PT_Sint16>(S); |
| 4816 | } |
| 4817 | bool EvalEmitter::emitBitXorUint16(SourceInfo L) { |
| 4818 | if (!isActive()) return true; |
| 4819 | CurrentSource = L; |
| 4820 | return BitXor<PT_Uint16>(S); |
| 4821 | } |
| 4822 | bool EvalEmitter::emitBitXorSint32(SourceInfo L) { |
| 4823 | if (!isActive()) return true; |
| 4824 | CurrentSource = L; |
| 4825 | return BitXor<PT_Sint32>(S); |
| 4826 | } |
| 4827 | bool EvalEmitter::emitBitXorUint32(SourceInfo L) { |
| 4828 | if (!isActive()) return true; |
| 4829 | CurrentSource = L; |
| 4830 | return BitXor<PT_Uint32>(S); |
| 4831 | } |
| 4832 | bool EvalEmitter::emitBitXorSint64(SourceInfo L) { |
| 4833 | if (!isActive()) return true; |
| 4834 | CurrentSource = L; |
| 4835 | return BitXor<PT_Sint64>(S); |
| 4836 | } |
| 4837 | bool EvalEmitter::emitBitXorUint64(SourceInfo L) { |
| 4838 | if (!isActive()) return true; |
| 4839 | CurrentSource = L; |
| 4840 | return BitXor<PT_Uint64>(S); |
| 4841 | } |
| 4842 | bool EvalEmitter::emitBitXorIntAP(SourceInfo L) { |
| 4843 | if (!isActive()) return true; |
| 4844 | CurrentSource = L; |
| 4845 | return BitXor<PT_IntAP>(S); |
| 4846 | } |
| 4847 | bool EvalEmitter::emitBitXorIntAPS(SourceInfo L) { |
| 4848 | if (!isActive()) return true; |
| 4849 | CurrentSource = L; |
| 4850 | return BitXor<PT_IntAPS>(S); |
| 4851 | } |
| 4852 | bool EvalEmitter::emitBitXorFixedPoint(SourceInfo L) { |
| 4853 | if (!isActive()) return true; |
| 4854 | CurrentSource = L; |
| 4855 | return BitXor<PT_FixedPoint>(S); |
| 4856 | } |
| 4857 | #endif |
| 4858 | #ifdef GET_OPCODE_NAMES |
| 4859 | OP_CMP3Sint8, |
| 4860 | OP_CMP3Uint8, |
| 4861 | OP_CMP3Sint16, |
| 4862 | OP_CMP3Uint16, |
| 4863 | OP_CMP3Sint32, |
| 4864 | OP_CMP3Uint32, |
| 4865 | OP_CMP3Sint64, |
| 4866 | OP_CMP3Uint64, |
| 4867 | OP_CMP3IntAP, |
| 4868 | OP_CMP3IntAPS, |
| 4869 | OP_CMP3Bool, |
| 4870 | OP_CMP3FixedPoint, |
| 4871 | OP_CMP3Ptr, |
| 4872 | OP_CMP3Float, |
| 4873 | #endif |
| 4874 | #ifdef GET_INTERPFN_LIST |
| 4875 | &Interp_CMP3Sint8, |
| 4876 | &Interp_CMP3Uint8, |
| 4877 | &Interp_CMP3Sint16, |
| 4878 | &Interp_CMP3Uint16, |
| 4879 | &Interp_CMP3Sint32, |
| 4880 | &Interp_CMP3Uint32, |
| 4881 | &Interp_CMP3Sint64, |
| 4882 | &Interp_CMP3Uint64, |
| 4883 | &Interp_CMP3IntAP, |
| 4884 | &Interp_CMP3IntAPS, |
| 4885 | &Interp_CMP3Bool, |
| 4886 | &Interp_CMP3FixedPoint, |
| 4887 | &Interp_CMP3Ptr, |
| 4888 | &Interp_CMP3Float, |
| 4889 | #endif |
| 4890 | #ifdef GET_INTERPFN_DISPATCHERS |
| 4891 | PRESERVE_NONE |
| 4892 | static bool Interp_CMP3Sint8(InterpState &S) { |
| 4893 | { |
| 4894 | CodePtr OpPC = S.PC; |
| 4895 | const auto V0 = ReadArg<const ComparisonCategoryInfo *>(S, S.PC); |
| 4896 | if (!CMP3<PT_Sint8>(S, OpPC, V0)) return false; |
| 4897 | } |
| 4898 | #if USE_TAILCALLS |
| 4899 | MUSTTAIL return InterpNext(S); |
| 4900 | #else |
| 4901 | return true; |
| 4902 | #endif |
| 4903 | } |
| 4904 | PRESERVE_NONE |
| 4905 | static bool Interp_CMP3Uint8(InterpState &S) { |
| 4906 | { |
| 4907 | CodePtr OpPC = S.PC; |
| 4908 | const auto V0 = ReadArg<const ComparisonCategoryInfo *>(S, S.PC); |
| 4909 | if (!CMP3<PT_Uint8>(S, OpPC, V0)) return false; |
| 4910 | } |
| 4911 | #if USE_TAILCALLS |
| 4912 | MUSTTAIL return InterpNext(S); |
| 4913 | #else |
| 4914 | return true; |
| 4915 | #endif |
| 4916 | } |
| 4917 | PRESERVE_NONE |
| 4918 | static bool Interp_CMP3Sint16(InterpState &S) { |
| 4919 | { |
| 4920 | CodePtr OpPC = S.PC; |
| 4921 | const auto V0 = ReadArg<const ComparisonCategoryInfo *>(S, S.PC); |
| 4922 | if (!CMP3<PT_Sint16>(S, OpPC, V0)) return false; |
| 4923 | } |
| 4924 | #if USE_TAILCALLS |
| 4925 | MUSTTAIL return InterpNext(S); |
| 4926 | #else |
| 4927 | return true; |
| 4928 | #endif |
| 4929 | } |
| 4930 | PRESERVE_NONE |
| 4931 | static bool Interp_CMP3Uint16(InterpState &S) { |
| 4932 | { |
| 4933 | CodePtr OpPC = S.PC; |
| 4934 | const auto V0 = ReadArg<const ComparisonCategoryInfo *>(S, S.PC); |
| 4935 | if (!CMP3<PT_Uint16>(S, OpPC, V0)) return false; |
| 4936 | } |
| 4937 | #if USE_TAILCALLS |
| 4938 | MUSTTAIL return InterpNext(S); |
| 4939 | #else |
| 4940 | return true; |
| 4941 | #endif |
| 4942 | } |
| 4943 | PRESERVE_NONE |
| 4944 | static bool Interp_CMP3Sint32(InterpState &S) { |
| 4945 | { |
| 4946 | CodePtr OpPC = S.PC; |
| 4947 | const auto V0 = ReadArg<const ComparisonCategoryInfo *>(S, S.PC); |
| 4948 | if (!CMP3<PT_Sint32>(S, OpPC, V0)) return false; |
| 4949 | } |
| 4950 | #if USE_TAILCALLS |
| 4951 | MUSTTAIL return InterpNext(S); |
| 4952 | #else |
| 4953 | return true; |
| 4954 | #endif |
| 4955 | } |
| 4956 | PRESERVE_NONE |
| 4957 | static bool Interp_CMP3Uint32(InterpState &S) { |
| 4958 | { |
| 4959 | CodePtr OpPC = S.PC; |
| 4960 | const auto V0 = ReadArg<const ComparisonCategoryInfo *>(S, S.PC); |
| 4961 | if (!CMP3<PT_Uint32>(S, OpPC, V0)) return false; |
| 4962 | } |
| 4963 | #if USE_TAILCALLS |
| 4964 | MUSTTAIL return InterpNext(S); |
| 4965 | #else |
| 4966 | return true; |
| 4967 | #endif |
| 4968 | } |
| 4969 | PRESERVE_NONE |
| 4970 | static bool Interp_CMP3Sint64(InterpState &S) { |
| 4971 | { |
| 4972 | CodePtr OpPC = S.PC; |
| 4973 | const auto V0 = ReadArg<const ComparisonCategoryInfo *>(S, S.PC); |
| 4974 | if (!CMP3<PT_Sint64>(S, OpPC, V0)) return false; |
| 4975 | } |
| 4976 | #if USE_TAILCALLS |
| 4977 | MUSTTAIL return InterpNext(S); |
| 4978 | #else |
| 4979 | return true; |
| 4980 | #endif |
| 4981 | } |
| 4982 | PRESERVE_NONE |
| 4983 | static bool Interp_CMP3Uint64(InterpState &S) { |
| 4984 | { |
| 4985 | CodePtr OpPC = S.PC; |
| 4986 | const auto V0 = ReadArg<const ComparisonCategoryInfo *>(S, S.PC); |
| 4987 | if (!CMP3<PT_Uint64>(S, OpPC, V0)) return false; |
| 4988 | } |
| 4989 | #if USE_TAILCALLS |
| 4990 | MUSTTAIL return InterpNext(S); |
| 4991 | #else |
| 4992 | return true; |
| 4993 | #endif |
| 4994 | } |
| 4995 | PRESERVE_NONE |
| 4996 | static bool Interp_CMP3IntAP(InterpState &S) { |
| 4997 | { |
| 4998 | CodePtr OpPC = S.PC; |
| 4999 | const auto V0 = ReadArg<const ComparisonCategoryInfo *>(S, S.PC); |
| 5000 | if (!CMP3<PT_IntAP>(S, OpPC, V0)) return false; |
| 5001 | } |
| 5002 | #if USE_TAILCALLS |
| 5003 | MUSTTAIL return InterpNext(S); |
| 5004 | #else |
| 5005 | return true; |
| 5006 | #endif |
| 5007 | } |
| 5008 | PRESERVE_NONE |
| 5009 | static bool Interp_CMP3IntAPS(InterpState &S) { |
| 5010 | { |
| 5011 | CodePtr OpPC = S.PC; |
| 5012 | const auto V0 = ReadArg<const ComparisonCategoryInfo *>(S, S.PC); |
| 5013 | if (!CMP3<PT_IntAPS>(S, OpPC, V0)) return false; |
| 5014 | } |
| 5015 | #if USE_TAILCALLS |
| 5016 | MUSTTAIL return InterpNext(S); |
| 5017 | #else |
| 5018 | return true; |
| 5019 | #endif |
| 5020 | } |
| 5021 | PRESERVE_NONE |
| 5022 | static bool Interp_CMP3Bool(InterpState &S) { |
| 5023 | { |
| 5024 | CodePtr OpPC = S.PC; |
| 5025 | const auto V0 = ReadArg<const ComparisonCategoryInfo *>(S, S.PC); |
| 5026 | if (!CMP3<PT_Bool>(S, OpPC, V0)) return false; |
| 5027 | } |
| 5028 | #if USE_TAILCALLS |
| 5029 | MUSTTAIL return InterpNext(S); |
| 5030 | #else |
| 5031 | return true; |
| 5032 | #endif |
| 5033 | } |
| 5034 | PRESERVE_NONE |
| 5035 | static bool Interp_CMP3FixedPoint(InterpState &S) { |
| 5036 | { |
| 5037 | CodePtr OpPC = S.PC; |
| 5038 | const auto V0 = ReadArg<const ComparisonCategoryInfo *>(S, S.PC); |
| 5039 | if (!CMP3<PT_FixedPoint>(S, OpPC, V0)) return false; |
| 5040 | } |
| 5041 | #if USE_TAILCALLS |
| 5042 | MUSTTAIL return InterpNext(S); |
| 5043 | #else |
| 5044 | return true; |
| 5045 | #endif |
| 5046 | } |
| 5047 | PRESERVE_NONE |
| 5048 | static bool Interp_CMP3Ptr(InterpState &S) { |
| 5049 | { |
| 5050 | CodePtr OpPC = S.PC; |
| 5051 | const auto V0 = ReadArg<const ComparisonCategoryInfo *>(S, S.PC); |
| 5052 | if (!CMP3<PT_Ptr>(S, OpPC, V0)) return false; |
| 5053 | } |
| 5054 | #if USE_TAILCALLS |
| 5055 | MUSTTAIL return InterpNext(S); |
| 5056 | #else |
| 5057 | return true; |
| 5058 | #endif |
| 5059 | } |
| 5060 | PRESERVE_NONE |
| 5061 | static bool Interp_CMP3Float(InterpState &S) { |
| 5062 | { |
| 5063 | CodePtr OpPC = S.PC; |
| 5064 | const auto V0 = ReadArg<const ComparisonCategoryInfo *>(S, S.PC); |
| 5065 | if (!CMP3<PT_Float>(S, OpPC, V0)) return false; |
| 5066 | } |
| 5067 | #if USE_TAILCALLS |
| 5068 | MUSTTAIL return InterpNext(S); |
| 5069 | #else |
| 5070 | return true; |
| 5071 | #endif |
| 5072 | } |
| 5073 | #endif |
| 5074 | #ifdef GET_DISASM |
| 5075 | case OP_CMP3Sint8: |
| 5076 | Text.Op = PrintName("CMP3Sint8" ); |
| 5077 | Text.Args.push_back(printArg<const ComparisonCategoryInfo *>(PC)); |
| 5078 | break; |
| 5079 | case OP_CMP3Uint8: |
| 5080 | Text.Op = PrintName("CMP3Uint8" ); |
| 5081 | Text.Args.push_back(printArg<const ComparisonCategoryInfo *>(PC)); |
| 5082 | break; |
| 5083 | case OP_CMP3Sint16: |
| 5084 | Text.Op = PrintName("CMP3Sint16" ); |
| 5085 | Text.Args.push_back(printArg<const ComparisonCategoryInfo *>(PC)); |
| 5086 | break; |
| 5087 | case OP_CMP3Uint16: |
| 5088 | Text.Op = PrintName("CMP3Uint16" ); |
| 5089 | Text.Args.push_back(printArg<const ComparisonCategoryInfo *>(PC)); |
| 5090 | break; |
| 5091 | case OP_CMP3Sint32: |
| 5092 | Text.Op = PrintName("CMP3Sint32" ); |
| 5093 | Text.Args.push_back(printArg<const ComparisonCategoryInfo *>(PC)); |
| 5094 | break; |
| 5095 | case OP_CMP3Uint32: |
| 5096 | Text.Op = PrintName("CMP3Uint32" ); |
| 5097 | Text.Args.push_back(printArg<const ComparisonCategoryInfo *>(PC)); |
| 5098 | break; |
| 5099 | case OP_CMP3Sint64: |
| 5100 | Text.Op = PrintName("CMP3Sint64" ); |
| 5101 | Text.Args.push_back(printArg<const ComparisonCategoryInfo *>(PC)); |
| 5102 | break; |
| 5103 | case OP_CMP3Uint64: |
| 5104 | Text.Op = PrintName("CMP3Uint64" ); |
| 5105 | Text.Args.push_back(printArg<const ComparisonCategoryInfo *>(PC)); |
| 5106 | break; |
| 5107 | case OP_CMP3IntAP: |
| 5108 | Text.Op = PrintName("CMP3IntAP" ); |
| 5109 | Text.Args.push_back(printArg<const ComparisonCategoryInfo *>(PC)); |
| 5110 | break; |
| 5111 | case OP_CMP3IntAPS: |
| 5112 | Text.Op = PrintName("CMP3IntAPS" ); |
| 5113 | Text.Args.push_back(printArg<const ComparisonCategoryInfo *>(PC)); |
| 5114 | break; |
| 5115 | case OP_CMP3Bool: |
| 5116 | Text.Op = PrintName("CMP3Bool" ); |
| 5117 | Text.Args.push_back(printArg<const ComparisonCategoryInfo *>(PC)); |
| 5118 | break; |
| 5119 | case OP_CMP3FixedPoint: |
| 5120 | Text.Op = PrintName("CMP3FixedPoint" ); |
| 5121 | Text.Args.push_back(printArg<const ComparisonCategoryInfo *>(PC)); |
| 5122 | break; |
| 5123 | case OP_CMP3Ptr: |
| 5124 | Text.Op = PrintName("CMP3Ptr" ); |
| 5125 | Text.Args.push_back(printArg<const ComparisonCategoryInfo *>(PC)); |
| 5126 | break; |
| 5127 | case OP_CMP3Float: |
| 5128 | Text.Op = PrintName("CMP3Float" ); |
| 5129 | Text.Args.push_back(printArg<const ComparisonCategoryInfo *>(PC)); |
| 5130 | break; |
| 5131 | #endif |
| 5132 | #if defined(GET_EVAL_PROTO) || defined(GET_LINK_PROTO) |
| 5133 | bool emitCMP3Sint8( const ComparisonCategoryInfo * , SourceInfo); |
| 5134 | bool emitCMP3Uint8( const ComparisonCategoryInfo * , SourceInfo); |
| 5135 | bool emitCMP3Sint16( const ComparisonCategoryInfo * , SourceInfo); |
| 5136 | bool emitCMP3Uint16( const ComparisonCategoryInfo * , SourceInfo); |
| 5137 | bool emitCMP3Sint32( const ComparisonCategoryInfo * , SourceInfo); |
| 5138 | bool emitCMP3Uint32( const ComparisonCategoryInfo * , SourceInfo); |
| 5139 | bool emitCMP3Sint64( const ComparisonCategoryInfo * , SourceInfo); |
| 5140 | bool emitCMP3Uint64( const ComparisonCategoryInfo * , SourceInfo); |
| 5141 | bool emitCMP3IntAP( const ComparisonCategoryInfo * , SourceInfo); |
| 5142 | bool emitCMP3IntAPS( const ComparisonCategoryInfo * , SourceInfo); |
| 5143 | bool emitCMP3Bool( const ComparisonCategoryInfo * , SourceInfo); |
| 5144 | bool emitCMP3FixedPoint( const ComparisonCategoryInfo * , SourceInfo); |
| 5145 | bool emitCMP3Ptr( const ComparisonCategoryInfo * , SourceInfo); |
| 5146 | bool emitCMP3Float( const ComparisonCategoryInfo * , SourceInfo); |
| 5147 | #endif |
| 5148 | #if defined(GET_EVAL_PROTO) || defined(GET_LINK_PROTO) |
| 5149 | [[nodiscard]] bool emitCMP3(PrimType, const ComparisonCategoryInfo *, SourceInfo I); |
| 5150 | #endif |
| 5151 | #if defined(GET_EVAL_IMPL) || defined(GET_LINK_IMPL) |
| 5152 | bool |
| 5153 | #if defined(GET_EVAL_IMPL) |
| 5154 | EvalEmitter |
| 5155 | #else |
| 5156 | ByteCodeEmitter |
| 5157 | #endif |
| 5158 | ::emitCMP3(PrimType T0, const ComparisonCategoryInfo * A0, SourceInfo I) { |
| 5159 | switch (T0) { |
| 5160 | case PT_Sint8: |
| 5161 | return emitCMP3Sint8(A0, I); |
| 5162 | case PT_Uint8: |
| 5163 | return emitCMP3Uint8(A0, I); |
| 5164 | case PT_Sint16: |
| 5165 | return emitCMP3Sint16(A0, I); |
| 5166 | case PT_Uint16: |
| 5167 | return emitCMP3Uint16(A0, I); |
| 5168 | case PT_Sint32: |
| 5169 | return emitCMP3Sint32(A0, I); |
| 5170 | case PT_Uint32: |
| 5171 | return emitCMP3Uint32(A0, I); |
| 5172 | case PT_Sint64: |
| 5173 | return emitCMP3Sint64(A0, I); |
| 5174 | case PT_Uint64: |
| 5175 | return emitCMP3Uint64(A0, I); |
| 5176 | case PT_IntAP: |
| 5177 | return emitCMP3IntAP(A0, I); |
| 5178 | case PT_IntAPS: |
| 5179 | return emitCMP3IntAPS(A0, I); |
| 5180 | case PT_Bool: |
| 5181 | return emitCMP3Bool(A0, I); |
| 5182 | case PT_FixedPoint: |
| 5183 | return emitCMP3FixedPoint(A0, I); |
| 5184 | case PT_Ptr: |
| 5185 | return emitCMP3Ptr(A0, I); |
| 5186 | case PT_Float: |
| 5187 | return emitCMP3Float(A0, I); |
| 5188 | default: llvm_unreachable("invalid type: emitCMP3" ); |
| 5189 | } |
| 5190 | llvm_unreachable("invalid enum value" ); |
| 5191 | } |
| 5192 | #endif |
| 5193 | #ifdef GET_LINK_IMPL |
| 5194 | bool ByteCodeEmitter::emitCMP3Sint8( const ComparisonCategoryInfo * A0, SourceInfo L) { |
| 5195 | return emitOp<const ComparisonCategoryInfo *>(OP_CMP3Sint8, A0, L); |
| 5196 | } |
| 5197 | bool ByteCodeEmitter::emitCMP3Uint8( const ComparisonCategoryInfo * A0, SourceInfo L) { |
| 5198 | return emitOp<const ComparisonCategoryInfo *>(OP_CMP3Uint8, A0, L); |
| 5199 | } |
| 5200 | bool ByteCodeEmitter::emitCMP3Sint16( const ComparisonCategoryInfo * A0, SourceInfo L) { |
| 5201 | return emitOp<const ComparisonCategoryInfo *>(OP_CMP3Sint16, A0, L); |
| 5202 | } |
| 5203 | bool ByteCodeEmitter::emitCMP3Uint16( const ComparisonCategoryInfo * A0, SourceInfo L) { |
| 5204 | return emitOp<const ComparisonCategoryInfo *>(OP_CMP3Uint16, A0, L); |
| 5205 | } |
| 5206 | bool ByteCodeEmitter::emitCMP3Sint32( const ComparisonCategoryInfo * A0, SourceInfo L) { |
| 5207 | return emitOp<const ComparisonCategoryInfo *>(OP_CMP3Sint32, A0, L); |
| 5208 | } |
| 5209 | bool ByteCodeEmitter::emitCMP3Uint32( const ComparisonCategoryInfo * A0, SourceInfo L) { |
| 5210 | return emitOp<const ComparisonCategoryInfo *>(OP_CMP3Uint32, A0, L); |
| 5211 | } |
| 5212 | bool ByteCodeEmitter::emitCMP3Sint64( const ComparisonCategoryInfo * A0, SourceInfo L) { |
| 5213 | return emitOp<const ComparisonCategoryInfo *>(OP_CMP3Sint64, A0, L); |
| 5214 | } |
| 5215 | bool ByteCodeEmitter::emitCMP3Uint64( const ComparisonCategoryInfo * A0, SourceInfo L) { |
| 5216 | return emitOp<const ComparisonCategoryInfo *>(OP_CMP3Uint64, A0, L); |
| 5217 | } |
| 5218 | bool ByteCodeEmitter::emitCMP3IntAP( const ComparisonCategoryInfo * A0, SourceInfo L) { |
| 5219 | return emitOp<const ComparisonCategoryInfo *>(OP_CMP3IntAP, A0, L); |
| 5220 | } |
| 5221 | bool ByteCodeEmitter::emitCMP3IntAPS( const ComparisonCategoryInfo * A0, SourceInfo L) { |
| 5222 | return emitOp<const ComparisonCategoryInfo *>(OP_CMP3IntAPS, A0, L); |
| 5223 | } |
| 5224 | bool ByteCodeEmitter::emitCMP3Bool( const ComparisonCategoryInfo * A0, SourceInfo L) { |
| 5225 | return emitOp<const ComparisonCategoryInfo *>(OP_CMP3Bool, A0, L); |
| 5226 | } |
| 5227 | bool ByteCodeEmitter::emitCMP3FixedPoint( const ComparisonCategoryInfo * A0, SourceInfo L) { |
| 5228 | return emitOp<const ComparisonCategoryInfo *>(OP_CMP3FixedPoint, A0, L); |
| 5229 | } |
| 5230 | bool ByteCodeEmitter::emitCMP3Ptr( const ComparisonCategoryInfo * A0, SourceInfo L) { |
| 5231 | return emitOp<const ComparisonCategoryInfo *>(OP_CMP3Ptr, A0, L); |
| 5232 | } |
| 5233 | bool ByteCodeEmitter::emitCMP3Float( const ComparisonCategoryInfo * A0, SourceInfo L) { |
| 5234 | return emitOp<const ComparisonCategoryInfo *>(OP_CMP3Float, A0, L); |
| 5235 | } |
| 5236 | #endif |
| 5237 | #ifdef GET_EVAL_IMPL |
| 5238 | bool EvalEmitter::emitCMP3Sint8( const ComparisonCategoryInfo * A0, SourceInfo L) { |
| 5239 | if (!isActive()) return true; |
| 5240 | CurrentSource = L; |
| 5241 | return CMP3<PT_Sint8>(S, CodePtr(), A0); |
| 5242 | } |
| 5243 | bool EvalEmitter::emitCMP3Uint8( const ComparisonCategoryInfo * A0, SourceInfo L) { |
| 5244 | if (!isActive()) return true; |
| 5245 | CurrentSource = L; |
| 5246 | return CMP3<PT_Uint8>(S, CodePtr(), A0); |
| 5247 | } |
| 5248 | bool EvalEmitter::emitCMP3Sint16( const ComparisonCategoryInfo * A0, SourceInfo L) { |
| 5249 | if (!isActive()) return true; |
| 5250 | CurrentSource = L; |
| 5251 | return CMP3<PT_Sint16>(S, CodePtr(), A0); |
| 5252 | } |
| 5253 | bool EvalEmitter::emitCMP3Uint16( const ComparisonCategoryInfo * A0, SourceInfo L) { |
| 5254 | if (!isActive()) return true; |
| 5255 | CurrentSource = L; |
| 5256 | return CMP3<PT_Uint16>(S, CodePtr(), A0); |
| 5257 | } |
| 5258 | bool EvalEmitter::emitCMP3Sint32( const ComparisonCategoryInfo * A0, SourceInfo L) { |
| 5259 | if (!isActive()) return true; |
| 5260 | CurrentSource = L; |
| 5261 | return CMP3<PT_Sint32>(S, CodePtr(), A0); |
| 5262 | } |
| 5263 | bool EvalEmitter::emitCMP3Uint32( const ComparisonCategoryInfo * A0, SourceInfo L) { |
| 5264 | if (!isActive()) return true; |
| 5265 | CurrentSource = L; |
| 5266 | return CMP3<PT_Uint32>(S, CodePtr(), A0); |
| 5267 | } |
| 5268 | bool EvalEmitter::emitCMP3Sint64( const ComparisonCategoryInfo * A0, SourceInfo L) { |
| 5269 | if (!isActive()) return true; |
| 5270 | CurrentSource = L; |
| 5271 | return CMP3<PT_Sint64>(S, CodePtr(), A0); |
| 5272 | } |
| 5273 | bool EvalEmitter::emitCMP3Uint64( const ComparisonCategoryInfo * A0, SourceInfo L) { |
| 5274 | if (!isActive()) return true; |
| 5275 | CurrentSource = L; |
| 5276 | return CMP3<PT_Uint64>(S, CodePtr(), A0); |
| 5277 | } |
| 5278 | bool EvalEmitter::emitCMP3IntAP( const ComparisonCategoryInfo * A0, SourceInfo L) { |
| 5279 | if (!isActive()) return true; |
| 5280 | CurrentSource = L; |
| 5281 | return CMP3<PT_IntAP>(S, CodePtr(), A0); |
| 5282 | } |
| 5283 | bool EvalEmitter::emitCMP3IntAPS( const ComparisonCategoryInfo * A0, SourceInfo L) { |
| 5284 | if (!isActive()) return true; |
| 5285 | CurrentSource = L; |
| 5286 | return CMP3<PT_IntAPS>(S, CodePtr(), A0); |
| 5287 | } |
| 5288 | bool EvalEmitter::emitCMP3Bool( const ComparisonCategoryInfo * A0, SourceInfo L) { |
| 5289 | if (!isActive()) return true; |
| 5290 | CurrentSource = L; |
| 5291 | return CMP3<PT_Bool>(S, CodePtr(), A0); |
| 5292 | } |
| 5293 | bool EvalEmitter::emitCMP3FixedPoint( const ComparisonCategoryInfo * A0, SourceInfo L) { |
| 5294 | if (!isActive()) return true; |
| 5295 | CurrentSource = L; |
| 5296 | return CMP3<PT_FixedPoint>(S, CodePtr(), A0); |
| 5297 | } |
| 5298 | bool EvalEmitter::emitCMP3Ptr( const ComparisonCategoryInfo * A0, SourceInfo L) { |
| 5299 | if (!isActive()) return true; |
| 5300 | CurrentSource = L; |
| 5301 | return CMP3<PT_Ptr>(S, CodePtr(), A0); |
| 5302 | } |
| 5303 | bool EvalEmitter::emitCMP3Float( const ComparisonCategoryInfo * A0, SourceInfo L) { |
| 5304 | if (!isActive()) return true; |
| 5305 | CurrentSource = L; |
| 5306 | return CMP3<PT_Float>(S, CodePtr(), A0); |
| 5307 | } |
| 5308 | #endif |
| 5309 | #ifdef GET_OPCODE_NAMES |
| 5310 | OP_Call, |
| 5311 | #endif |
| 5312 | #ifdef GET_INTERPFN_LIST |
| 5313 | &Interp_Call, |
| 5314 | #endif |
| 5315 | #ifdef GET_INTERPFN_DISPATCHERS |
| 5316 | PRESERVE_NONE |
| 5317 | static bool Interp_Call(InterpState &S) { |
| 5318 | { |
| 5319 | CodePtr OpPC = S.PC; |
| 5320 | const auto V0 = ReadArg<const Function *>(S, S.PC); |
| 5321 | const auto V1 = ReadArg<uint32_t>(S, S.PC); |
| 5322 | if (!Call(S, OpPC, V0, V1)) return false; |
| 5323 | } |
| 5324 | #if USE_TAILCALLS |
| 5325 | MUSTTAIL return InterpNext(S); |
| 5326 | #else |
| 5327 | return true; |
| 5328 | #endif |
| 5329 | } |
| 5330 | #endif |
| 5331 | #ifdef GET_DISASM |
| 5332 | case OP_Call: |
| 5333 | Text.Op = PrintName("Call" ); |
| 5334 | Text.Args.push_back(printArg<const Function *>(PC)); |
| 5335 | Text.Args.push_back(printArg<uint32_t>(PC)); |
| 5336 | break; |
| 5337 | #endif |
| 5338 | #if defined(GET_EVAL_PROTO) || defined(GET_LINK_PROTO) |
| 5339 | bool emitCall( const Function * , uint32_t , SourceInfo); |
| 5340 | #endif |
| 5341 | #ifdef GET_LINK_IMPL |
| 5342 | bool ByteCodeEmitter::emitCall( const Function * A0, uint32_t A1, SourceInfo L) { |
| 5343 | return emitOp<const Function *, uint32_t>(OP_Call, A0, A1, L); |
| 5344 | } |
| 5345 | #endif |
| 5346 | #ifdef GET_EVAL_IMPL |
| 5347 | bool EvalEmitter::emitCall( const Function * A0, uint32_t A1, SourceInfo L) { |
| 5348 | if (!isActive()) return true; |
| 5349 | CurrentSource = L; |
| 5350 | return Call(S, CodePtr(), A0, A1); |
| 5351 | } |
| 5352 | #endif |
| 5353 | #ifdef GET_OPCODE_NAMES |
| 5354 | OP_CallBI, |
| 5355 | #endif |
| 5356 | #ifdef GET_INTERPFN_LIST |
| 5357 | &Interp_CallBI, |
| 5358 | #endif |
| 5359 | #ifdef GET_INTERPFN_DISPATCHERS |
| 5360 | PRESERVE_NONE |
| 5361 | static bool Interp_CallBI(InterpState &S) { |
| 5362 | { |
| 5363 | CodePtr OpPC = S.PC; |
| 5364 | const auto V0 = ReadArg<const CallExpr *>(S, S.PC); |
| 5365 | const auto V1 = ReadArg<uint32_t>(S, S.PC); |
| 5366 | if (!CallBI(S, OpPC, V0, V1)) return false; |
| 5367 | } |
| 5368 | #if USE_TAILCALLS |
| 5369 | MUSTTAIL return InterpNext(S); |
| 5370 | #else |
| 5371 | return true; |
| 5372 | #endif |
| 5373 | } |
| 5374 | #endif |
| 5375 | #ifdef GET_DISASM |
| 5376 | case OP_CallBI: |
| 5377 | Text.Op = PrintName("CallBI" ); |
| 5378 | Text.Args.push_back(printArg<const CallExpr *>(PC)); |
| 5379 | Text.Args.push_back(printArg<uint32_t>(PC)); |
| 5380 | break; |
| 5381 | #endif |
| 5382 | #if defined(GET_EVAL_PROTO) || defined(GET_LINK_PROTO) |
| 5383 | bool emitCallBI( const CallExpr * , uint32_t , SourceInfo); |
| 5384 | #endif |
| 5385 | #ifdef GET_LINK_IMPL |
| 5386 | bool ByteCodeEmitter::emitCallBI( const CallExpr * A0, uint32_t A1, SourceInfo L) { |
| 5387 | return emitOp<const CallExpr *, uint32_t>(OP_CallBI, A0, A1, L); |
| 5388 | } |
| 5389 | #endif |
| 5390 | #ifdef GET_EVAL_IMPL |
| 5391 | bool EvalEmitter::emitCallBI( const CallExpr * A0, uint32_t A1, SourceInfo L) { |
| 5392 | if (!isActive()) return true; |
| 5393 | CurrentSource = L; |
| 5394 | return CallBI(S, CodePtr(), A0, A1); |
| 5395 | } |
| 5396 | #endif |
| 5397 | #ifdef GET_OPCODE_NAMES |
| 5398 | OP_CallPtr, |
| 5399 | #endif |
| 5400 | #ifdef GET_INTERPFN_LIST |
| 5401 | &Interp_CallPtr, |
| 5402 | #endif |
| 5403 | #ifdef GET_INTERPFN_DISPATCHERS |
| 5404 | PRESERVE_NONE |
| 5405 | static bool Interp_CallPtr(InterpState &S) { |
| 5406 | { |
| 5407 | CodePtr OpPC = S.PC; |
| 5408 | const auto V0 = ReadArg<uint32_t>(S, S.PC); |
| 5409 | const auto V1 = ReadArg<const CallExpr *>(S, S.PC); |
| 5410 | if (!CallPtr(S, OpPC, V0, V1)) return false; |
| 5411 | } |
| 5412 | #if USE_TAILCALLS |
| 5413 | MUSTTAIL return InterpNext(S); |
| 5414 | #else |
| 5415 | return true; |
| 5416 | #endif |
| 5417 | } |
| 5418 | #endif |
| 5419 | #ifdef GET_DISASM |
| 5420 | case OP_CallPtr: |
| 5421 | Text.Op = PrintName("CallPtr" ); |
| 5422 | Text.Args.push_back(printArg<uint32_t>(PC)); |
| 5423 | Text.Args.push_back(printArg<const CallExpr *>(PC)); |
| 5424 | break; |
| 5425 | #endif |
| 5426 | #if defined(GET_EVAL_PROTO) || defined(GET_LINK_PROTO) |
| 5427 | bool emitCallPtr( uint32_t , const CallExpr * , SourceInfo); |
| 5428 | #endif |
| 5429 | #ifdef GET_LINK_IMPL |
| 5430 | bool ByteCodeEmitter::emitCallPtr( uint32_t A0, const CallExpr * A1, SourceInfo L) { |
| 5431 | return emitOp<uint32_t, const CallExpr *>(OP_CallPtr, A0, A1, L); |
| 5432 | } |
| 5433 | #endif |
| 5434 | #ifdef GET_EVAL_IMPL |
| 5435 | bool EvalEmitter::emitCallPtr( uint32_t A0, const CallExpr * A1, SourceInfo L) { |
| 5436 | if (!isActive()) return true; |
| 5437 | CurrentSource = L; |
| 5438 | return CallPtr(S, CodePtr(), A0, A1); |
| 5439 | } |
| 5440 | #endif |
| 5441 | #ifdef GET_OPCODE_NAMES |
| 5442 | OP_CallVar, |
| 5443 | #endif |
| 5444 | #ifdef GET_INTERPFN_LIST |
| 5445 | &Interp_CallVar, |
| 5446 | #endif |
| 5447 | #ifdef GET_INTERPFN_DISPATCHERS |
| 5448 | PRESERVE_NONE |
| 5449 | static bool Interp_CallVar(InterpState &S) { |
| 5450 | { |
| 5451 | CodePtr OpPC = S.PC; |
| 5452 | const auto V0 = ReadArg<const Function *>(S, S.PC); |
| 5453 | const auto V1 = ReadArg<uint32_t>(S, S.PC); |
| 5454 | if (!CallVar(S, OpPC, V0, V1)) return false; |
| 5455 | } |
| 5456 | #if USE_TAILCALLS |
| 5457 | MUSTTAIL return InterpNext(S); |
| 5458 | #else |
| 5459 | return true; |
| 5460 | #endif |
| 5461 | } |
| 5462 | #endif |
| 5463 | #ifdef GET_DISASM |
| 5464 | case OP_CallVar: |
| 5465 | Text.Op = PrintName("CallVar" ); |
| 5466 | Text.Args.push_back(printArg<const Function *>(PC)); |
| 5467 | Text.Args.push_back(printArg<uint32_t>(PC)); |
| 5468 | break; |
| 5469 | #endif |
| 5470 | #if defined(GET_EVAL_PROTO) || defined(GET_LINK_PROTO) |
| 5471 | bool emitCallVar( const Function * , uint32_t , SourceInfo); |
| 5472 | #endif |
| 5473 | #ifdef GET_LINK_IMPL |
| 5474 | bool ByteCodeEmitter::emitCallVar( const Function * A0, uint32_t A1, SourceInfo L) { |
| 5475 | return emitOp<const Function *, uint32_t>(OP_CallVar, A0, A1, L); |
| 5476 | } |
| 5477 | #endif |
| 5478 | #ifdef GET_EVAL_IMPL |
| 5479 | bool EvalEmitter::emitCallVar( const Function * A0, uint32_t A1, SourceInfo L) { |
| 5480 | if (!isActive()) return true; |
| 5481 | CurrentSource = L; |
| 5482 | return CallVar(S, CodePtr(), A0, A1); |
| 5483 | } |
| 5484 | #endif |
| 5485 | #ifdef GET_OPCODE_NAMES |
| 5486 | OP_CallVirt, |
| 5487 | #endif |
| 5488 | #ifdef GET_INTERPFN_LIST |
| 5489 | &Interp_CallVirt, |
| 5490 | #endif |
| 5491 | #ifdef GET_INTERPFN_DISPATCHERS |
| 5492 | PRESERVE_NONE |
| 5493 | static bool Interp_CallVirt(InterpState &S) { |
| 5494 | { |
| 5495 | CodePtr OpPC = S.PC; |
| 5496 | const auto V0 = ReadArg<const Function *>(S, S.PC); |
| 5497 | const auto V1 = ReadArg<uint32_t>(S, S.PC); |
| 5498 | if (!CallVirt(S, OpPC, V0, V1)) return false; |
| 5499 | } |
| 5500 | #if USE_TAILCALLS |
| 5501 | MUSTTAIL return InterpNext(S); |
| 5502 | #else |
| 5503 | return true; |
| 5504 | #endif |
| 5505 | } |
| 5506 | #endif |
| 5507 | #ifdef GET_DISASM |
| 5508 | case OP_CallVirt: |
| 5509 | Text.Op = PrintName("CallVirt" ); |
| 5510 | Text.Args.push_back(printArg<const Function *>(PC)); |
| 5511 | Text.Args.push_back(printArg<uint32_t>(PC)); |
| 5512 | break; |
| 5513 | #endif |
| 5514 | #if defined(GET_EVAL_PROTO) || defined(GET_LINK_PROTO) |
| 5515 | bool emitCallVirt( const Function * , uint32_t , SourceInfo); |
| 5516 | #endif |
| 5517 | #ifdef GET_LINK_IMPL |
| 5518 | bool ByteCodeEmitter::emitCallVirt( const Function * A0, uint32_t A1, SourceInfo L) { |
| 5519 | return emitOp<const Function *, uint32_t>(OP_CallVirt, A0, A1, L); |
| 5520 | } |
| 5521 | #endif |
| 5522 | #ifdef GET_EVAL_IMPL |
| 5523 | bool EvalEmitter::emitCallVirt( const Function * A0, uint32_t A1, SourceInfo L) { |
| 5524 | if (!isActive()) return true; |
| 5525 | CurrentSource = L; |
| 5526 | return CallVirt(S, CodePtr(), A0, A1); |
| 5527 | } |
| 5528 | #endif |
| 5529 | #ifdef GET_OPCODE_NAMES |
| 5530 | OP_CastUint8Uint8, |
| 5531 | OP_CastUint8Sint8, |
| 5532 | OP_CastUint8Uint16, |
| 5533 | OP_CastUint8Sint16, |
| 5534 | OP_CastUint8Uint32, |
| 5535 | OP_CastUint8Sint32, |
| 5536 | OP_CastUint8Uint64, |
| 5537 | OP_CastUint8Sint64, |
| 5538 | OP_CastUint8Bool, |
| 5539 | OP_CastSint8Uint8, |
| 5540 | OP_CastSint8Sint8, |
| 5541 | OP_CastSint8Uint16, |
| 5542 | OP_CastSint8Sint16, |
| 5543 | OP_CastSint8Uint32, |
| 5544 | OP_CastSint8Sint32, |
| 5545 | OP_CastSint8Uint64, |
| 5546 | OP_CastSint8Sint64, |
| 5547 | OP_CastSint8Bool, |
| 5548 | OP_CastUint16Uint8, |
| 5549 | OP_CastUint16Sint8, |
| 5550 | OP_CastUint16Uint16, |
| 5551 | OP_CastUint16Sint16, |
| 5552 | OP_CastUint16Uint32, |
| 5553 | OP_CastUint16Sint32, |
| 5554 | OP_CastUint16Uint64, |
| 5555 | OP_CastUint16Sint64, |
| 5556 | OP_CastUint16Bool, |
| 5557 | OP_CastSint16Uint8, |
| 5558 | OP_CastSint16Sint8, |
| 5559 | OP_CastSint16Uint16, |
| 5560 | OP_CastSint16Sint16, |
| 5561 | OP_CastSint16Uint32, |
| 5562 | OP_CastSint16Sint32, |
| 5563 | OP_CastSint16Uint64, |
| 5564 | OP_CastSint16Sint64, |
| 5565 | OP_CastSint16Bool, |
| 5566 | OP_CastUint32Uint8, |
| 5567 | OP_CastUint32Sint8, |
| 5568 | OP_CastUint32Uint16, |
| 5569 | OP_CastUint32Sint16, |
| 5570 | OP_CastUint32Uint32, |
| 5571 | OP_CastUint32Sint32, |
| 5572 | OP_CastUint32Uint64, |
| 5573 | OP_CastUint32Sint64, |
| 5574 | OP_CastUint32Bool, |
| 5575 | OP_CastSint32Uint8, |
| 5576 | OP_CastSint32Sint8, |
| 5577 | OP_CastSint32Uint16, |
| 5578 | OP_CastSint32Sint16, |
| 5579 | OP_CastSint32Uint32, |
| 5580 | OP_CastSint32Sint32, |
| 5581 | OP_CastSint32Uint64, |
| 5582 | OP_CastSint32Sint64, |
| 5583 | OP_CastSint32Bool, |
| 5584 | OP_CastUint64Uint8, |
| 5585 | OP_CastUint64Sint8, |
| 5586 | OP_CastUint64Uint16, |
| 5587 | OP_CastUint64Sint16, |
| 5588 | OP_CastUint64Uint32, |
| 5589 | OP_CastUint64Sint32, |
| 5590 | OP_CastUint64Uint64, |
| 5591 | OP_CastUint64Sint64, |
| 5592 | OP_CastUint64Bool, |
| 5593 | OP_CastSint64Uint8, |
| 5594 | OP_CastSint64Sint8, |
| 5595 | OP_CastSint64Uint16, |
| 5596 | OP_CastSint64Sint16, |
| 5597 | OP_CastSint64Uint32, |
| 5598 | OP_CastSint64Sint32, |
| 5599 | OP_CastSint64Uint64, |
| 5600 | OP_CastSint64Sint64, |
| 5601 | OP_CastSint64Bool, |
| 5602 | OP_CastBoolUint8, |
| 5603 | OP_CastBoolSint8, |
| 5604 | OP_CastBoolUint16, |
| 5605 | OP_CastBoolSint16, |
| 5606 | OP_CastBoolUint32, |
| 5607 | OP_CastBoolSint32, |
| 5608 | OP_CastBoolUint64, |
| 5609 | OP_CastBoolSint64, |
| 5610 | OP_CastBoolBool, |
| 5611 | OP_CastIntAPUint8, |
| 5612 | OP_CastIntAPSint8, |
| 5613 | OP_CastIntAPUint16, |
| 5614 | OP_CastIntAPSint16, |
| 5615 | OP_CastIntAPUint32, |
| 5616 | OP_CastIntAPSint32, |
| 5617 | OP_CastIntAPUint64, |
| 5618 | OP_CastIntAPSint64, |
| 5619 | OP_CastIntAPBool, |
| 5620 | OP_CastIntAPSUint8, |
| 5621 | OP_CastIntAPSSint8, |
| 5622 | OP_CastIntAPSUint16, |
| 5623 | OP_CastIntAPSSint16, |
| 5624 | OP_CastIntAPSUint32, |
| 5625 | OP_CastIntAPSSint32, |
| 5626 | OP_CastIntAPSUint64, |
| 5627 | OP_CastIntAPSSint64, |
| 5628 | OP_CastIntAPSBool, |
| 5629 | OP_CastFixedPointUint8, |
| 5630 | OP_CastFixedPointSint8, |
| 5631 | OP_CastFixedPointUint16, |
| 5632 | OP_CastFixedPointSint16, |
| 5633 | OP_CastFixedPointUint32, |
| 5634 | OP_CastFixedPointSint32, |
| 5635 | OP_CastFixedPointUint64, |
| 5636 | OP_CastFixedPointSint64, |
| 5637 | OP_CastFixedPointBool, |
| 5638 | #endif |
| 5639 | #ifdef GET_INTERPFN_LIST |
| 5640 | &Interp_CastUint8Uint8, |
| 5641 | &Interp_CastUint8Sint8, |
| 5642 | &Interp_CastUint8Uint16, |
| 5643 | &Interp_CastUint8Sint16, |
| 5644 | &Interp_CastUint8Uint32, |
| 5645 | &Interp_CastUint8Sint32, |
| 5646 | &Interp_CastUint8Uint64, |
| 5647 | &Interp_CastUint8Sint64, |
| 5648 | &Interp_CastUint8Bool, |
| 5649 | &Interp_CastSint8Uint8, |
| 5650 | &Interp_CastSint8Sint8, |
| 5651 | &Interp_CastSint8Uint16, |
| 5652 | &Interp_CastSint8Sint16, |
| 5653 | &Interp_CastSint8Uint32, |
| 5654 | &Interp_CastSint8Sint32, |
| 5655 | &Interp_CastSint8Uint64, |
| 5656 | &Interp_CastSint8Sint64, |
| 5657 | &Interp_CastSint8Bool, |
| 5658 | &Interp_CastUint16Uint8, |
| 5659 | &Interp_CastUint16Sint8, |
| 5660 | &Interp_CastUint16Uint16, |
| 5661 | &Interp_CastUint16Sint16, |
| 5662 | &Interp_CastUint16Uint32, |
| 5663 | &Interp_CastUint16Sint32, |
| 5664 | &Interp_CastUint16Uint64, |
| 5665 | &Interp_CastUint16Sint64, |
| 5666 | &Interp_CastUint16Bool, |
| 5667 | &Interp_CastSint16Uint8, |
| 5668 | &Interp_CastSint16Sint8, |
| 5669 | &Interp_CastSint16Uint16, |
| 5670 | &Interp_CastSint16Sint16, |
| 5671 | &Interp_CastSint16Uint32, |
| 5672 | &Interp_CastSint16Sint32, |
| 5673 | &Interp_CastSint16Uint64, |
| 5674 | &Interp_CastSint16Sint64, |
| 5675 | &Interp_CastSint16Bool, |
| 5676 | &Interp_CastUint32Uint8, |
| 5677 | &Interp_CastUint32Sint8, |
| 5678 | &Interp_CastUint32Uint16, |
| 5679 | &Interp_CastUint32Sint16, |
| 5680 | &Interp_CastUint32Uint32, |
| 5681 | &Interp_CastUint32Sint32, |
| 5682 | &Interp_CastUint32Uint64, |
| 5683 | &Interp_CastUint32Sint64, |
| 5684 | &Interp_CastUint32Bool, |
| 5685 | &Interp_CastSint32Uint8, |
| 5686 | &Interp_CastSint32Sint8, |
| 5687 | &Interp_CastSint32Uint16, |
| 5688 | &Interp_CastSint32Sint16, |
| 5689 | &Interp_CastSint32Uint32, |
| 5690 | &Interp_CastSint32Sint32, |
| 5691 | &Interp_CastSint32Uint64, |
| 5692 | &Interp_CastSint32Sint64, |
| 5693 | &Interp_CastSint32Bool, |
| 5694 | &Interp_CastUint64Uint8, |
| 5695 | &Interp_CastUint64Sint8, |
| 5696 | &Interp_CastUint64Uint16, |
| 5697 | &Interp_CastUint64Sint16, |
| 5698 | &Interp_CastUint64Uint32, |
| 5699 | &Interp_CastUint64Sint32, |
| 5700 | &Interp_CastUint64Uint64, |
| 5701 | &Interp_CastUint64Sint64, |
| 5702 | &Interp_CastUint64Bool, |
| 5703 | &Interp_CastSint64Uint8, |
| 5704 | &Interp_CastSint64Sint8, |
| 5705 | &Interp_CastSint64Uint16, |
| 5706 | &Interp_CastSint64Sint16, |
| 5707 | &Interp_CastSint64Uint32, |
| 5708 | &Interp_CastSint64Sint32, |
| 5709 | &Interp_CastSint64Uint64, |
| 5710 | &Interp_CastSint64Sint64, |
| 5711 | &Interp_CastSint64Bool, |
| 5712 | &Interp_CastBoolUint8, |
| 5713 | &Interp_CastBoolSint8, |
| 5714 | &Interp_CastBoolUint16, |
| 5715 | &Interp_CastBoolSint16, |
| 5716 | &Interp_CastBoolUint32, |
| 5717 | &Interp_CastBoolSint32, |
| 5718 | &Interp_CastBoolUint64, |
| 5719 | &Interp_CastBoolSint64, |
| 5720 | &Interp_CastBoolBool, |
| 5721 | &Interp_CastIntAPUint8, |
| 5722 | &Interp_CastIntAPSint8, |
| 5723 | &Interp_CastIntAPUint16, |
| 5724 | &Interp_CastIntAPSint16, |
| 5725 | &Interp_CastIntAPUint32, |
| 5726 | &Interp_CastIntAPSint32, |
| 5727 | &Interp_CastIntAPUint64, |
| 5728 | &Interp_CastIntAPSint64, |
| 5729 | &Interp_CastIntAPBool, |
| 5730 | &Interp_CastIntAPSUint8, |
| 5731 | &Interp_CastIntAPSSint8, |
| 5732 | &Interp_CastIntAPSUint16, |
| 5733 | &Interp_CastIntAPSSint16, |
| 5734 | &Interp_CastIntAPSUint32, |
| 5735 | &Interp_CastIntAPSSint32, |
| 5736 | &Interp_CastIntAPSUint64, |
| 5737 | &Interp_CastIntAPSSint64, |
| 5738 | &Interp_CastIntAPSBool, |
| 5739 | &Interp_CastFixedPointUint8, |
| 5740 | &Interp_CastFixedPointSint8, |
| 5741 | &Interp_CastFixedPointUint16, |
| 5742 | &Interp_CastFixedPointSint16, |
| 5743 | &Interp_CastFixedPointUint32, |
| 5744 | &Interp_CastFixedPointSint32, |
| 5745 | &Interp_CastFixedPointUint64, |
| 5746 | &Interp_CastFixedPointSint64, |
| 5747 | &Interp_CastFixedPointBool, |
| 5748 | #endif |
| 5749 | #ifdef GET_INTERPFN_DISPATCHERS |
| 5750 | PRESERVE_NONE |
| 5751 | static bool Interp_CastUint8Uint8(InterpState &S) { |
| 5752 | if (!Cast<PT_Uint8, PT_Uint8>(S, S.PC)) return false; |
| 5753 | #if USE_TAILCALLS |
| 5754 | MUSTTAIL return InterpNext(S); |
| 5755 | #else |
| 5756 | return true; |
| 5757 | #endif |
| 5758 | } |
| 5759 | PRESERVE_NONE |
| 5760 | static bool Interp_CastUint8Sint8(InterpState &S) { |
| 5761 | if (!Cast<PT_Uint8, PT_Sint8>(S, S.PC)) return false; |
| 5762 | #if USE_TAILCALLS |
| 5763 | MUSTTAIL return InterpNext(S); |
| 5764 | #else |
| 5765 | return true; |
| 5766 | #endif |
| 5767 | } |
| 5768 | PRESERVE_NONE |
| 5769 | static bool Interp_CastUint8Uint16(InterpState &S) { |
| 5770 | if (!Cast<PT_Uint8, PT_Uint16>(S, S.PC)) return false; |
| 5771 | #if USE_TAILCALLS |
| 5772 | MUSTTAIL return InterpNext(S); |
| 5773 | #else |
| 5774 | return true; |
| 5775 | #endif |
| 5776 | } |
| 5777 | PRESERVE_NONE |
| 5778 | static bool Interp_CastUint8Sint16(InterpState &S) { |
| 5779 | if (!Cast<PT_Uint8, PT_Sint16>(S, S.PC)) return false; |
| 5780 | #if USE_TAILCALLS |
| 5781 | MUSTTAIL return InterpNext(S); |
| 5782 | #else |
| 5783 | return true; |
| 5784 | #endif |
| 5785 | } |
| 5786 | PRESERVE_NONE |
| 5787 | static bool Interp_CastUint8Uint32(InterpState &S) { |
| 5788 | if (!Cast<PT_Uint8, PT_Uint32>(S, S.PC)) return false; |
| 5789 | #if USE_TAILCALLS |
| 5790 | MUSTTAIL return InterpNext(S); |
| 5791 | #else |
| 5792 | return true; |
| 5793 | #endif |
| 5794 | } |
| 5795 | PRESERVE_NONE |
| 5796 | static bool Interp_CastUint8Sint32(InterpState &S) { |
| 5797 | if (!Cast<PT_Uint8, PT_Sint32>(S, S.PC)) return false; |
| 5798 | #if USE_TAILCALLS |
| 5799 | MUSTTAIL return InterpNext(S); |
| 5800 | #else |
| 5801 | return true; |
| 5802 | #endif |
| 5803 | } |
| 5804 | PRESERVE_NONE |
| 5805 | static bool Interp_CastUint8Uint64(InterpState &S) { |
| 5806 | if (!Cast<PT_Uint8, PT_Uint64>(S, S.PC)) return false; |
| 5807 | #if USE_TAILCALLS |
| 5808 | MUSTTAIL return InterpNext(S); |
| 5809 | #else |
| 5810 | return true; |
| 5811 | #endif |
| 5812 | } |
| 5813 | PRESERVE_NONE |
| 5814 | static bool Interp_CastUint8Sint64(InterpState &S) { |
| 5815 | if (!Cast<PT_Uint8, PT_Sint64>(S, S.PC)) return false; |
| 5816 | #if USE_TAILCALLS |
| 5817 | MUSTTAIL return InterpNext(S); |
| 5818 | #else |
| 5819 | return true; |
| 5820 | #endif |
| 5821 | } |
| 5822 | PRESERVE_NONE |
| 5823 | static bool Interp_CastUint8Bool(InterpState &S) { |
| 5824 | if (!Cast<PT_Uint8, PT_Bool>(S, S.PC)) return false; |
| 5825 | #if USE_TAILCALLS |
| 5826 | MUSTTAIL return InterpNext(S); |
| 5827 | #else |
| 5828 | return true; |
| 5829 | #endif |
| 5830 | } |
| 5831 | PRESERVE_NONE |
| 5832 | static bool Interp_CastSint8Uint8(InterpState &S) { |
| 5833 | if (!Cast<PT_Sint8, PT_Uint8>(S, S.PC)) return false; |
| 5834 | #if USE_TAILCALLS |
| 5835 | MUSTTAIL return InterpNext(S); |
| 5836 | #else |
| 5837 | return true; |
| 5838 | #endif |
| 5839 | } |
| 5840 | PRESERVE_NONE |
| 5841 | static bool Interp_CastSint8Sint8(InterpState &S) { |
| 5842 | if (!Cast<PT_Sint8, PT_Sint8>(S, S.PC)) return false; |
| 5843 | #if USE_TAILCALLS |
| 5844 | MUSTTAIL return InterpNext(S); |
| 5845 | #else |
| 5846 | return true; |
| 5847 | #endif |
| 5848 | } |
| 5849 | PRESERVE_NONE |
| 5850 | static bool Interp_CastSint8Uint16(InterpState &S) { |
| 5851 | if (!Cast<PT_Sint8, PT_Uint16>(S, S.PC)) return false; |
| 5852 | #if USE_TAILCALLS |
| 5853 | MUSTTAIL return InterpNext(S); |
| 5854 | #else |
| 5855 | return true; |
| 5856 | #endif |
| 5857 | } |
| 5858 | PRESERVE_NONE |
| 5859 | static bool Interp_CastSint8Sint16(InterpState &S) { |
| 5860 | if (!Cast<PT_Sint8, PT_Sint16>(S, S.PC)) return false; |
| 5861 | #if USE_TAILCALLS |
| 5862 | MUSTTAIL return InterpNext(S); |
| 5863 | #else |
| 5864 | return true; |
| 5865 | #endif |
| 5866 | } |
| 5867 | PRESERVE_NONE |
| 5868 | static bool Interp_CastSint8Uint32(InterpState &S) { |
| 5869 | if (!Cast<PT_Sint8, PT_Uint32>(S, S.PC)) return false; |
| 5870 | #if USE_TAILCALLS |
| 5871 | MUSTTAIL return InterpNext(S); |
| 5872 | #else |
| 5873 | return true; |
| 5874 | #endif |
| 5875 | } |
| 5876 | PRESERVE_NONE |
| 5877 | static bool Interp_CastSint8Sint32(InterpState &S) { |
| 5878 | if (!Cast<PT_Sint8, PT_Sint32>(S, S.PC)) return false; |
| 5879 | #if USE_TAILCALLS |
| 5880 | MUSTTAIL return InterpNext(S); |
| 5881 | #else |
| 5882 | return true; |
| 5883 | #endif |
| 5884 | } |
| 5885 | PRESERVE_NONE |
| 5886 | static bool Interp_CastSint8Uint64(InterpState &S) { |
| 5887 | if (!Cast<PT_Sint8, PT_Uint64>(S, S.PC)) return false; |
| 5888 | #if USE_TAILCALLS |
| 5889 | MUSTTAIL return InterpNext(S); |
| 5890 | #else |
| 5891 | return true; |
| 5892 | #endif |
| 5893 | } |
| 5894 | PRESERVE_NONE |
| 5895 | static bool Interp_CastSint8Sint64(InterpState &S) { |
| 5896 | if (!Cast<PT_Sint8, PT_Sint64>(S, S.PC)) return false; |
| 5897 | #if USE_TAILCALLS |
| 5898 | MUSTTAIL return InterpNext(S); |
| 5899 | #else |
| 5900 | return true; |
| 5901 | #endif |
| 5902 | } |
| 5903 | PRESERVE_NONE |
| 5904 | static bool Interp_CastSint8Bool(InterpState &S) { |
| 5905 | if (!Cast<PT_Sint8, PT_Bool>(S, S.PC)) return false; |
| 5906 | #if USE_TAILCALLS |
| 5907 | MUSTTAIL return InterpNext(S); |
| 5908 | #else |
| 5909 | return true; |
| 5910 | #endif |
| 5911 | } |
| 5912 | PRESERVE_NONE |
| 5913 | static bool Interp_CastUint16Uint8(InterpState &S) { |
| 5914 | if (!Cast<PT_Uint16, PT_Uint8>(S, S.PC)) return false; |
| 5915 | #if USE_TAILCALLS |
| 5916 | MUSTTAIL return InterpNext(S); |
| 5917 | #else |
| 5918 | return true; |
| 5919 | #endif |
| 5920 | } |
| 5921 | PRESERVE_NONE |
| 5922 | static bool Interp_CastUint16Sint8(InterpState &S) { |
| 5923 | if (!Cast<PT_Uint16, PT_Sint8>(S, S.PC)) return false; |
| 5924 | #if USE_TAILCALLS |
| 5925 | MUSTTAIL return InterpNext(S); |
| 5926 | #else |
| 5927 | return true; |
| 5928 | #endif |
| 5929 | } |
| 5930 | PRESERVE_NONE |
| 5931 | static bool Interp_CastUint16Uint16(InterpState &S) { |
| 5932 | if (!Cast<PT_Uint16, PT_Uint16>(S, S.PC)) return false; |
| 5933 | #if USE_TAILCALLS |
| 5934 | MUSTTAIL return InterpNext(S); |
| 5935 | #else |
| 5936 | return true; |
| 5937 | #endif |
| 5938 | } |
| 5939 | PRESERVE_NONE |
| 5940 | static bool Interp_CastUint16Sint16(InterpState &S) { |
| 5941 | if (!Cast<PT_Uint16, PT_Sint16>(S, S.PC)) return false; |
| 5942 | #if USE_TAILCALLS |
| 5943 | MUSTTAIL return InterpNext(S); |
| 5944 | #else |
| 5945 | return true; |
| 5946 | #endif |
| 5947 | } |
| 5948 | PRESERVE_NONE |
| 5949 | static bool Interp_CastUint16Uint32(InterpState &S) { |
| 5950 | if (!Cast<PT_Uint16, PT_Uint32>(S, S.PC)) return false; |
| 5951 | #if USE_TAILCALLS |
| 5952 | MUSTTAIL return InterpNext(S); |
| 5953 | #else |
| 5954 | return true; |
| 5955 | #endif |
| 5956 | } |
| 5957 | PRESERVE_NONE |
| 5958 | static bool Interp_CastUint16Sint32(InterpState &S) { |
| 5959 | if (!Cast<PT_Uint16, PT_Sint32>(S, S.PC)) return false; |
| 5960 | #if USE_TAILCALLS |
| 5961 | MUSTTAIL return InterpNext(S); |
| 5962 | #else |
| 5963 | return true; |
| 5964 | #endif |
| 5965 | } |
| 5966 | PRESERVE_NONE |
| 5967 | static bool Interp_CastUint16Uint64(InterpState &S) { |
| 5968 | if (!Cast<PT_Uint16, PT_Uint64>(S, S.PC)) return false; |
| 5969 | #if USE_TAILCALLS |
| 5970 | MUSTTAIL return InterpNext(S); |
| 5971 | #else |
| 5972 | return true; |
| 5973 | #endif |
| 5974 | } |
| 5975 | PRESERVE_NONE |
| 5976 | static bool Interp_CastUint16Sint64(InterpState &S) { |
| 5977 | if (!Cast<PT_Uint16, PT_Sint64>(S, S.PC)) return false; |
| 5978 | #if USE_TAILCALLS |
| 5979 | MUSTTAIL return InterpNext(S); |
| 5980 | #else |
| 5981 | return true; |
| 5982 | #endif |
| 5983 | } |
| 5984 | PRESERVE_NONE |
| 5985 | static bool Interp_CastUint16Bool(InterpState &S) { |
| 5986 | if (!Cast<PT_Uint16, PT_Bool>(S, S.PC)) return false; |
| 5987 | #if USE_TAILCALLS |
| 5988 | MUSTTAIL return InterpNext(S); |
| 5989 | #else |
| 5990 | return true; |
| 5991 | #endif |
| 5992 | } |
| 5993 | PRESERVE_NONE |
| 5994 | static bool Interp_CastSint16Uint8(InterpState &S) { |
| 5995 | if (!Cast<PT_Sint16, PT_Uint8>(S, S.PC)) return false; |
| 5996 | #if USE_TAILCALLS |
| 5997 | MUSTTAIL return InterpNext(S); |
| 5998 | #else |
| 5999 | return true; |
| 6000 | #endif |
| 6001 | } |
| 6002 | PRESERVE_NONE |
| 6003 | static bool Interp_CastSint16Sint8(InterpState &S) { |
| 6004 | if (!Cast<PT_Sint16, PT_Sint8>(S, S.PC)) return false; |
| 6005 | #if USE_TAILCALLS |
| 6006 | MUSTTAIL return InterpNext(S); |
| 6007 | #else |
| 6008 | return true; |
| 6009 | #endif |
| 6010 | } |
| 6011 | PRESERVE_NONE |
| 6012 | static bool Interp_CastSint16Uint16(InterpState &S) { |
| 6013 | if (!Cast<PT_Sint16, PT_Uint16>(S, S.PC)) return false; |
| 6014 | #if USE_TAILCALLS |
| 6015 | MUSTTAIL return InterpNext(S); |
| 6016 | #else |
| 6017 | return true; |
| 6018 | #endif |
| 6019 | } |
| 6020 | PRESERVE_NONE |
| 6021 | static bool Interp_CastSint16Sint16(InterpState &S) { |
| 6022 | if (!Cast<PT_Sint16, PT_Sint16>(S, S.PC)) return false; |
| 6023 | #if USE_TAILCALLS |
| 6024 | MUSTTAIL return InterpNext(S); |
| 6025 | #else |
| 6026 | return true; |
| 6027 | #endif |
| 6028 | } |
| 6029 | PRESERVE_NONE |
| 6030 | static bool Interp_CastSint16Uint32(InterpState &S) { |
| 6031 | if (!Cast<PT_Sint16, PT_Uint32>(S, S.PC)) return false; |
| 6032 | #if USE_TAILCALLS |
| 6033 | MUSTTAIL return InterpNext(S); |
| 6034 | #else |
| 6035 | return true; |
| 6036 | #endif |
| 6037 | } |
| 6038 | PRESERVE_NONE |
| 6039 | static bool Interp_CastSint16Sint32(InterpState &S) { |
| 6040 | if (!Cast<PT_Sint16, PT_Sint32>(S, S.PC)) return false; |
| 6041 | #if USE_TAILCALLS |
| 6042 | MUSTTAIL return InterpNext(S); |
| 6043 | #else |
| 6044 | return true; |
| 6045 | #endif |
| 6046 | } |
| 6047 | PRESERVE_NONE |
| 6048 | static bool Interp_CastSint16Uint64(InterpState &S) { |
| 6049 | if (!Cast<PT_Sint16, PT_Uint64>(S, S.PC)) return false; |
| 6050 | #if USE_TAILCALLS |
| 6051 | MUSTTAIL return InterpNext(S); |
| 6052 | #else |
| 6053 | return true; |
| 6054 | #endif |
| 6055 | } |
| 6056 | PRESERVE_NONE |
| 6057 | static bool Interp_CastSint16Sint64(InterpState &S) { |
| 6058 | if (!Cast<PT_Sint16, PT_Sint64>(S, S.PC)) return false; |
| 6059 | #if USE_TAILCALLS |
| 6060 | MUSTTAIL return InterpNext(S); |
| 6061 | #else |
| 6062 | return true; |
| 6063 | #endif |
| 6064 | } |
| 6065 | PRESERVE_NONE |
| 6066 | static bool Interp_CastSint16Bool(InterpState &S) { |
| 6067 | if (!Cast<PT_Sint16, PT_Bool>(S, S.PC)) return false; |
| 6068 | #if USE_TAILCALLS |
| 6069 | MUSTTAIL return InterpNext(S); |
| 6070 | #else |
| 6071 | return true; |
| 6072 | #endif |
| 6073 | } |
| 6074 | PRESERVE_NONE |
| 6075 | static bool Interp_CastUint32Uint8(InterpState &S) { |
| 6076 | if (!Cast<PT_Uint32, PT_Uint8>(S, S.PC)) return false; |
| 6077 | #if USE_TAILCALLS |
| 6078 | MUSTTAIL return InterpNext(S); |
| 6079 | #else |
| 6080 | return true; |
| 6081 | #endif |
| 6082 | } |
| 6083 | PRESERVE_NONE |
| 6084 | static bool Interp_CastUint32Sint8(InterpState &S) { |
| 6085 | if (!Cast<PT_Uint32, PT_Sint8>(S, S.PC)) return false; |
| 6086 | #if USE_TAILCALLS |
| 6087 | MUSTTAIL return InterpNext(S); |
| 6088 | #else |
| 6089 | return true; |
| 6090 | #endif |
| 6091 | } |
| 6092 | PRESERVE_NONE |
| 6093 | static bool Interp_CastUint32Uint16(InterpState &S) { |
| 6094 | if (!Cast<PT_Uint32, PT_Uint16>(S, S.PC)) return false; |
| 6095 | #if USE_TAILCALLS |
| 6096 | MUSTTAIL return InterpNext(S); |
| 6097 | #else |
| 6098 | return true; |
| 6099 | #endif |
| 6100 | } |
| 6101 | PRESERVE_NONE |
| 6102 | static bool Interp_CastUint32Sint16(InterpState &S) { |
| 6103 | if (!Cast<PT_Uint32, PT_Sint16>(S, S.PC)) return false; |
| 6104 | #if USE_TAILCALLS |
| 6105 | MUSTTAIL return InterpNext(S); |
| 6106 | #else |
| 6107 | return true; |
| 6108 | #endif |
| 6109 | } |
| 6110 | PRESERVE_NONE |
| 6111 | static bool Interp_CastUint32Uint32(InterpState &S) { |
| 6112 | if (!Cast<PT_Uint32, PT_Uint32>(S, S.PC)) return false; |
| 6113 | #if USE_TAILCALLS |
| 6114 | MUSTTAIL return InterpNext(S); |
| 6115 | #else |
| 6116 | return true; |
| 6117 | #endif |
| 6118 | } |
| 6119 | PRESERVE_NONE |
| 6120 | static bool Interp_CastUint32Sint32(InterpState &S) { |
| 6121 | if (!Cast<PT_Uint32, PT_Sint32>(S, S.PC)) return false; |
| 6122 | #if USE_TAILCALLS |
| 6123 | MUSTTAIL return InterpNext(S); |
| 6124 | #else |
| 6125 | return true; |
| 6126 | #endif |
| 6127 | } |
| 6128 | PRESERVE_NONE |
| 6129 | static bool Interp_CastUint32Uint64(InterpState &S) { |
| 6130 | if (!Cast<PT_Uint32, PT_Uint64>(S, S.PC)) return false; |
| 6131 | #if USE_TAILCALLS |
| 6132 | MUSTTAIL return InterpNext(S); |
| 6133 | #else |
| 6134 | return true; |
| 6135 | #endif |
| 6136 | } |
| 6137 | PRESERVE_NONE |
| 6138 | static bool Interp_CastUint32Sint64(InterpState &S) { |
| 6139 | if (!Cast<PT_Uint32, PT_Sint64>(S, S.PC)) return false; |
| 6140 | #if USE_TAILCALLS |
| 6141 | MUSTTAIL return InterpNext(S); |
| 6142 | #else |
| 6143 | return true; |
| 6144 | #endif |
| 6145 | } |
| 6146 | PRESERVE_NONE |
| 6147 | static bool Interp_CastUint32Bool(InterpState &S) { |
| 6148 | if (!Cast<PT_Uint32, PT_Bool>(S, S.PC)) return false; |
| 6149 | #if USE_TAILCALLS |
| 6150 | MUSTTAIL return InterpNext(S); |
| 6151 | #else |
| 6152 | return true; |
| 6153 | #endif |
| 6154 | } |
| 6155 | PRESERVE_NONE |
| 6156 | static bool Interp_CastSint32Uint8(InterpState &S) { |
| 6157 | if (!Cast<PT_Sint32, PT_Uint8>(S, S.PC)) return false; |
| 6158 | #if USE_TAILCALLS |
| 6159 | MUSTTAIL return InterpNext(S); |
| 6160 | #else |
| 6161 | return true; |
| 6162 | #endif |
| 6163 | } |
| 6164 | PRESERVE_NONE |
| 6165 | static bool Interp_CastSint32Sint8(InterpState &S) { |
| 6166 | if (!Cast<PT_Sint32, PT_Sint8>(S, S.PC)) return false; |
| 6167 | #if USE_TAILCALLS |
| 6168 | MUSTTAIL return InterpNext(S); |
| 6169 | #else |
| 6170 | return true; |
| 6171 | #endif |
| 6172 | } |
| 6173 | PRESERVE_NONE |
| 6174 | static bool Interp_CastSint32Uint16(InterpState &S) { |
| 6175 | if (!Cast<PT_Sint32, PT_Uint16>(S, S.PC)) return false; |
| 6176 | #if USE_TAILCALLS |
| 6177 | MUSTTAIL return InterpNext(S); |
| 6178 | #else |
| 6179 | return true; |
| 6180 | #endif |
| 6181 | } |
| 6182 | PRESERVE_NONE |
| 6183 | static bool Interp_CastSint32Sint16(InterpState &S) { |
| 6184 | if (!Cast<PT_Sint32, PT_Sint16>(S, S.PC)) return false; |
| 6185 | #if USE_TAILCALLS |
| 6186 | MUSTTAIL return InterpNext(S); |
| 6187 | #else |
| 6188 | return true; |
| 6189 | #endif |
| 6190 | } |
| 6191 | PRESERVE_NONE |
| 6192 | static bool Interp_CastSint32Uint32(InterpState &S) { |
| 6193 | if (!Cast<PT_Sint32, PT_Uint32>(S, S.PC)) return false; |
| 6194 | #if USE_TAILCALLS |
| 6195 | MUSTTAIL return InterpNext(S); |
| 6196 | #else |
| 6197 | return true; |
| 6198 | #endif |
| 6199 | } |
| 6200 | PRESERVE_NONE |
| 6201 | static bool Interp_CastSint32Sint32(InterpState &S) { |
| 6202 | if (!Cast<PT_Sint32, PT_Sint32>(S, S.PC)) return false; |
| 6203 | #if USE_TAILCALLS |
| 6204 | MUSTTAIL return InterpNext(S); |
| 6205 | #else |
| 6206 | return true; |
| 6207 | #endif |
| 6208 | } |
| 6209 | PRESERVE_NONE |
| 6210 | static bool Interp_CastSint32Uint64(InterpState &S) { |
| 6211 | if (!Cast<PT_Sint32, PT_Uint64>(S, S.PC)) return false; |
| 6212 | #if USE_TAILCALLS |
| 6213 | MUSTTAIL return InterpNext(S); |
| 6214 | #else |
| 6215 | return true; |
| 6216 | #endif |
| 6217 | } |
| 6218 | PRESERVE_NONE |
| 6219 | static bool Interp_CastSint32Sint64(InterpState &S) { |
| 6220 | if (!Cast<PT_Sint32, PT_Sint64>(S, S.PC)) return false; |
| 6221 | #if USE_TAILCALLS |
| 6222 | MUSTTAIL return InterpNext(S); |
| 6223 | #else |
| 6224 | return true; |
| 6225 | #endif |
| 6226 | } |
| 6227 | PRESERVE_NONE |
| 6228 | static bool Interp_CastSint32Bool(InterpState &S) { |
| 6229 | if (!Cast<PT_Sint32, PT_Bool>(S, S.PC)) return false; |
| 6230 | #if USE_TAILCALLS |
| 6231 | MUSTTAIL return InterpNext(S); |
| 6232 | #else |
| 6233 | return true; |
| 6234 | #endif |
| 6235 | } |
| 6236 | PRESERVE_NONE |
| 6237 | static bool Interp_CastUint64Uint8(InterpState &S) { |
| 6238 | if (!Cast<PT_Uint64, PT_Uint8>(S, S.PC)) return false; |
| 6239 | #if USE_TAILCALLS |
| 6240 | MUSTTAIL return InterpNext(S); |
| 6241 | #else |
| 6242 | return true; |
| 6243 | #endif |
| 6244 | } |
| 6245 | PRESERVE_NONE |
| 6246 | static bool Interp_CastUint64Sint8(InterpState &S) { |
| 6247 | if (!Cast<PT_Uint64, PT_Sint8>(S, S.PC)) return false; |
| 6248 | #if USE_TAILCALLS |
| 6249 | MUSTTAIL return InterpNext(S); |
| 6250 | #else |
| 6251 | return true; |
| 6252 | #endif |
| 6253 | } |
| 6254 | PRESERVE_NONE |
| 6255 | static bool Interp_CastUint64Uint16(InterpState &S) { |
| 6256 | if (!Cast<PT_Uint64, PT_Uint16>(S, S.PC)) return false; |
| 6257 | #if USE_TAILCALLS |
| 6258 | MUSTTAIL return InterpNext(S); |
| 6259 | #else |
| 6260 | return true; |
| 6261 | #endif |
| 6262 | } |
| 6263 | PRESERVE_NONE |
| 6264 | static bool Interp_CastUint64Sint16(InterpState &S) { |
| 6265 | if (!Cast<PT_Uint64, PT_Sint16>(S, S.PC)) return false; |
| 6266 | #if USE_TAILCALLS |
| 6267 | MUSTTAIL return InterpNext(S); |
| 6268 | #else |
| 6269 | return true; |
| 6270 | #endif |
| 6271 | } |
| 6272 | PRESERVE_NONE |
| 6273 | static bool Interp_CastUint64Uint32(InterpState &S) { |
| 6274 | if (!Cast<PT_Uint64, PT_Uint32>(S, S.PC)) return false; |
| 6275 | #if USE_TAILCALLS |
| 6276 | MUSTTAIL return InterpNext(S); |
| 6277 | #else |
| 6278 | return true; |
| 6279 | #endif |
| 6280 | } |
| 6281 | PRESERVE_NONE |
| 6282 | static bool Interp_CastUint64Sint32(InterpState &S) { |
| 6283 | if (!Cast<PT_Uint64, PT_Sint32>(S, S.PC)) return false; |
| 6284 | #if USE_TAILCALLS |
| 6285 | MUSTTAIL return InterpNext(S); |
| 6286 | #else |
| 6287 | return true; |
| 6288 | #endif |
| 6289 | } |
| 6290 | PRESERVE_NONE |
| 6291 | static bool Interp_CastUint64Uint64(InterpState &S) { |
| 6292 | if (!Cast<PT_Uint64, PT_Uint64>(S, S.PC)) return false; |
| 6293 | #if USE_TAILCALLS |
| 6294 | MUSTTAIL return InterpNext(S); |
| 6295 | #else |
| 6296 | return true; |
| 6297 | #endif |
| 6298 | } |
| 6299 | PRESERVE_NONE |
| 6300 | static bool Interp_CastUint64Sint64(InterpState &S) { |
| 6301 | if (!Cast<PT_Uint64, PT_Sint64>(S, S.PC)) return false; |
| 6302 | #if USE_TAILCALLS |
| 6303 | MUSTTAIL return InterpNext(S); |
| 6304 | #else |
| 6305 | return true; |
| 6306 | #endif |
| 6307 | } |
| 6308 | PRESERVE_NONE |
| 6309 | static bool Interp_CastUint64Bool(InterpState &S) { |
| 6310 | if (!Cast<PT_Uint64, PT_Bool>(S, S.PC)) return false; |
| 6311 | #if USE_TAILCALLS |
| 6312 | MUSTTAIL return InterpNext(S); |
| 6313 | #else |
| 6314 | return true; |
| 6315 | #endif |
| 6316 | } |
| 6317 | PRESERVE_NONE |
| 6318 | static bool Interp_CastSint64Uint8(InterpState &S) { |
| 6319 | if (!Cast<PT_Sint64, PT_Uint8>(S, S.PC)) return false; |
| 6320 | #if USE_TAILCALLS |
| 6321 | MUSTTAIL return InterpNext(S); |
| 6322 | #else |
| 6323 | return true; |
| 6324 | #endif |
| 6325 | } |
| 6326 | PRESERVE_NONE |
| 6327 | static bool Interp_CastSint64Sint8(InterpState &S) { |
| 6328 | if (!Cast<PT_Sint64, PT_Sint8>(S, S.PC)) return false; |
| 6329 | #if USE_TAILCALLS |
| 6330 | MUSTTAIL return InterpNext(S); |
| 6331 | #else |
| 6332 | return true; |
| 6333 | #endif |
| 6334 | } |
| 6335 | PRESERVE_NONE |
| 6336 | static bool Interp_CastSint64Uint16(InterpState &S) { |
| 6337 | if (!Cast<PT_Sint64, PT_Uint16>(S, S.PC)) return false; |
| 6338 | #if USE_TAILCALLS |
| 6339 | MUSTTAIL return InterpNext(S); |
| 6340 | #else |
| 6341 | return true; |
| 6342 | #endif |
| 6343 | } |
| 6344 | PRESERVE_NONE |
| 6345 | static bool Interp_CastSint64Sint16(InterpState &S) { |
| 6346 | if (!Cast<PT_Sint64, PT_Sint16>(S, S.PC)) return false; |
| 6347 | #if USE_TAILCALLS |
| 6348 | MUSTTAIL return InterpNext(S); |
| 6349 | #else |
| 6350 | return true; |
| 6351 | #endif |
| 6352 | } |
| 6353 | PRESERVE_NONE |
| 6354 | static bool Interp_CastSint64Uint32(InterpState &S) { |
| 6355 | if (!Cast<PT_Sint64, PT_Uint32>(S, S.PC)) return false; |
| 6356 | #if USE_TAILCALLS |
| 6357 | MUSTTAIL return InterpNext(S); |
| 6358 | #else |
| 6359 | return true; |
| 6360 | #endif |
| 6361 | } |
| 6362 | PRESERVE_NONE |
| 6363 | static bool Interp_CastSint64Sint32(InterpState &S) { |
| 6364 | if (!Cast<PT_Sint64, PT_Sint32>(S, S.PC)) return false; |
| 6365 | #if USE_TAILCALLS |
| 6366 | MUSTTAIL return InterpNext(S); |
| 6367 | #else |
| 6368 | return true; |
| 6369 | #endif |
| 6370 | } |
| 6371 | PRESERVE_NONE |
| 6372 | static bool Interp_CastSint64Uint64(InterpState &S) { |
| 6373 | if (!Cast<PT_Sint64, PT_Uint64>(S, S.PC)) return false; |
| 6374 | #if USE_TAILCALLS |
| 6375 | MUSTTAIL return InterpNext(S); |
| 6376 | #else |
| 6377 | return true; |
| 6378 | #endif |
| 6379 | } |
| 6380 | PRESERVE_NONE |
| 6381 | static bool Interp_CastSint64Sint64(InterpState &S) { |
| 6382 | if (!Cast<PT_Sint64, PT_Sint64>(S, S.PC)) return false; |
| 6383 | #if USE_TAILCALLS |
| 6384 | MUSTTAIL return InterpNext(S); |
| 6385 | #else |
| 6386 | return true; |
| 6387 | #endif |
| 6388 | } |
| 6389 | PRESERVE_NONE |
| 6390 | static bool Interp_CastSint64Bool(InterpState &S) { |
| 6391 | if (!Cast<PT_Sint64, PT_Bool>(S, S.PC)) return false; |
| 6392 | #if USE_TAILCALLS |
| 6393 | MUSTTAIL return InterpNext(S); |
| 6394 | #else |
| 6395 | return true; |
| 6396 | #endif |
| 6397 | } |
| 6398 | PRESERVE_NONE |
| 6399 | static bool Interp_CastBoolUint8(InterpState &S) { |
| 6400 | if (!Cast<PT_Bool, PT_Uint8>(S, S.PC)) return false; |
| 6401 | #if USE_TAILCALLS |
| 6402 | MUSTTAIL return InterpNext(S); |
| 6403 | #else |
| 6404 | return true; |
| 6405 | #endif |
| 6406 | } |
| 6407 | PRESERVE_NONE |
| 6408 | static bool Interp_CastBoolSint8(InterpState &S) { |
| 6409 | if (!Cast<PT_Bool, PT_Sint8>(S, S.PC)) return false; |
| 6410 | #if USE_TAILCALLS |
| 6411 | MUSTTAIL return InterpNext(S); |
| 6412 | #else |
| 6413 | return true; |
| 6414 | #endif |
| 6415 | } |
| 6416 | PRESERVE_NONE |
| 6417 | static bool Interp_CastBoolUint16(InterpState &S) { |
| 6418 | if (!Cast<PT_Bool, PT_Uint16>(S, S.PC)) return false; |
| 6419 | #if USE_TAILCALLS |
| 6420 | MUSTTAIL return InterpNext(S); |
| 6421 | #else |
| 6422 | return true; |
| 6423 | #endif |
| 6424 | } |
| 6425 | PRESERVE_NONE |
| 6426 | static bool Interp_CastBoolSint16(InterpState &S) { |
| 6427 | if (!Cast<PT_Bool, PT_Sint16>(S, S.PC)) return false; |
| 6428 | #if USE_TAILCALLS |
| 6429 | MUSTTAIL return InterpNext(S); |
| 6430 | #else |
| 6431 | return true; |
| 6432 | #endif |
| 6433 | } |
| 6434 | PRESERVE_NONE |
| 6435 | static bool Interp_CastBoolUint32(InterpState &S) { |
| 6436 | if (!Cast<PT_Bool, PT_Uint32>(S, S.PC)) return false; |
| 6437 | #if USE_TAILCALLS |
| 6438 | MUSTTAIL return InterpNext(S); |
| 6439 | #else |
| 6440 | return true; |
| 6441 | #endif |
| 6442 | } |
| 6443 | PRESERVE_NONE |
| 6444 | static bool Interp_CastBoolSint32(InterpState &S) { |
| 6445 | if (!Cast<PT_Bool, PT_Sint32>(S, S.PC)) return false; |
| 6446 | #if USE_TAILCALLS |
| 6447 | MUSTTAIL return InterpNext(S); |
| 6448 | #else |
| 6449 | return true; |
| 6450 | #endif |
| 6451 | } |
| 6452 | PRESERVE_NONE |
| 6453 | static bool Interp_CastBoolUint64(InterpState &S) { |
| 6454 | if (!Cast<PT_Bool, PT_Uint64>(S, S.PC)) return false; |
| 6455 | #if USE_TAILCALLS |
| 6456 | MUSTTAIL return InterpNext(S); |
| 6457 | #else |
| 6458 | return true; |
| 6459 | #endif |
| 6460 | } |
| 6461 | PRESERVE_NONE |
| 6462 | static bool Interp_CastBoolSint64(InterpState &S) { |
| 6463 | if (!Cast<PT_Bool, PT_Sint64>(S, S.PC)) return false; |
| 6464 | #if USE_TAILCALLS |
| 6465 | MUSTTAIL return InterpNext(S); |
| 6466 | #else |
| 6467 | return true; |
| 6468 | #endif |
| 6469 | } |
| 6470 | PRESERVE_NONE |
| 6471 | static bool Interp_CastBoolBool(InterpState &S) { |
| 6472 | if (!Cast<PT_Bool, PT_Bool>(S, S.PC)) return false; |
| 6473 | #if USE_TAILCALLS |
| 6474 | MUSTTAIL return InterpNext(S); |
| 6475 | #else |
| 6476 | return true; |
| 6477 | #endif |
| 6478 | } |
| 6479 | PRESERVE_NONE |
| 6480 | static bool Interp_CastIntAPUint8(InterpState &S) { |
| 6481 | if (!Cast<PT_IntAP, PT_Uint8>(S, S.PC)) return false; |
| 6482 | #if USE_TAILCALLS |
| 6483 | MUSTTAIL return InterpNext(S); |
| 6484 | #else |
| 6485 | return true; |
| 6486 | #endif |
| 6487 | } |
| 6488 | PRESERVE_NONE |
| 6489 | static bool Interp_CastIntAPSint8(InterpState &S) { |
| 6490 | if (!Cast<PT_IntAP, PT_Sint8>(S, S.PC)) return false; |
| 6491 | #if USE_TAILCALLS |
| 6492 | MUSTTAIL return InterpNext(S); |
| 6493 | #else |
| 6494 | return true; |
| 6495 | #endif |
| 6496 | } |
| 6497 | PRESERVE_NONE |
| 6498 | static bool Interp_CastIntAPUint16(InterpState &S) { |
| 6499 | if (!Cast<PT_IntAP, PT_Uint16>(S, S.PC)) return false; |
| 6500 | #if USE_TAILCALLS |
| 6501 | MUSTTAIL return InterpNext(S); |
| 6502 | #else |
| 6503 | return true; |
| 6504 | #endif |
| 6505 | } |
| 6506 | PRESERVE_NONE |
| 6507 | static bool Interp_CastIntAPSint16(InterpState &S) { |
| 6508 | if (!Cast<PT_IntAP, PT_Sint16>(S, S.PC)) return false; |
| 6509 | #if USE_TAILCALLS |
| 6510 | MUSTTAIL return InterpNext(S); |
| 6511 | #else |
| 6512 | return true; |
| 6513 | #endif |
| 6514 | } |
| 6515 | PRESERVE_NONE |
| 6516 | static bool Interp_CastIntAPUint32(InterpState &S) { |
| 6517 | if (!Cast<PT_IntAP, PT_Uint32>(S, S.PC)) return false; |
| 6518 | #if USE_TAILCALLS |
| 6519 | MUSTTAIL return InterpNext(S); |
| 6520 | #else |
| 6521 | return true; |
| 6522 | #endif |
| 6523 | } |
| 6524 | PRESERVE_NONE |
| 6525 | static bool Interp_CastIntAPSint32(InterpState &S) { |
| 6526 | if (!Cast<PT_IntAP, PT_Sint32>(S, S.PC)) return false; |
| 6527 | #if USE_TAILCALLS |
| 6528 | MUSTTAIL return InterpNext(S); |
| 6529 | #else |
| 6530 | return true; |
| 6531 | #endif |
| 6532 | } |
| 6533 | PRESERVE_NONE |
| 6534 | static bool Interp_CastIntAPUint64(InterpState &S) { |
| 6535 | if (!Cast<PT_IntAP, PT_Uint64>(S, S.PC)) return false; |
| 6536 | #if USE_TAILCALLS |
| 6537 | MUSTTAIL return InterpNext(S); |
| 6538 | #else |
| 6539 | return true; |
| 6540 | #endif |
| 6541 | } |
| 6542 | PRESERVE_NONE |
| 6543 | static bool Interp_CastIntAPSint64(InterpState &S) { |
| 6544 | if (!Cast<PT_IntAP, PT_Sint64>(S, S.PC)) return false; |
| 6545 | #if USE_TAILCALLS |
| 6546 | MUSTTAIL return InterpNext(S); |
| 6547 | #else |
| 6548 | return true; |
| 6549 | #endif |
| 6550 | } |
| 6551 | PRESERVE_NONE |
| 6552 | static bool Interp_CastIntAPBool(InterpState &S) { |
| 6553 | if (!Cast<PT_IntAP, PT_Bool>(S, S.PC)) return false; |
| 6554 | #if USE_TAILCALLS |
| 6555 | MUSTTAIL return InterpNext(S); |
| 6556 | #else |
| 6557 | return true; |
| 6558 | #endif |
| 6559 | } |
| 6560 | PRESERVE_NONE |
| 6561 | static bool Interp_CastIntAPSUint8(InterpState &S) { |
| 6562 | if (!Cast<PT_IntAPS, PT_Uint8>(S, S.PC)) return false; |
| 6563 | #if USE_TAILCALLS |
| 6564 | MUSTTAIL return InterpNext(S); |
| 6565 | #else |
| 6566 | return true; |
| 6567 | #endif |
| 6568 | } |
| 6569 | PRESERVE_NONE |
| 6570 | static bool Interp_CastIntAPSSint8(InterpState &S) { |
| 6571 | if (!Cast<PT_IntAPS, PT_Sint8>(S, S.PC)) return false; |
| 6572 | #if USE_TAILCALLS |
| 6573 | MUSTTAIL return InterpNext(S); |
| 6574 | #else |
| 6575 | return true; |
| 6576 | #endif |
| 6577 | } |
| 6578 | PRESERVE_NONE |
| 6579 | static bool Interp_CastIntAPSUint16(InterpState &S) { |
| 6580 | if (!Cast<PT_IntAPS, PT_Uint16>(S, S.PC)) return false; |
| 6581 | #if USE_TAILCALLS |
| 6582 | MUSTTAIL return InterpNext(S); |
| 6583 | #else |
| 6584 | return true; |
| 6585 | #endif |
| 6586 | } |
| 6587 | PRESERVE_NONE |
| 6588 | static bool Interp_CastIntAPSSint16(InterpState &S) { |
| 6589 | if (!Cast<PT_IntAPS, PT_Sint16>(S, S.PC)) return false; |
| 6590 | #if USE_TAILCALLS |
| 6591 | MUSTTAIL return InterpNext(S); |
| 6592 | #else |
| 6593 | return true; |
| 6594 | #endif |
| 6595 | } |
| 6596 | PRESERVE_NONE |
| 6597 | static bool Interp_CastIntAPSUint32(InterpState &S) { |
| 6598 | if (!Cast<PT_IntAPS, PT_Uint32>(S, S.PC)) return false; |
| 6599 | #if USE_TAILCALLS |
| 6600 | MUSTTAIL return InterpNext(S); |
| 6601 | #else |
| 6602 | return true; |
| 6603 | #endif |
| 6604 | } |
| 6605 | PRESERVE_NONE |
| 6606 | static bool Interp_CastIntAPSSint32(InterpState &S) { |
| 6607 | if (!Cast<PT_IntAPS, PT_Sint32>(S, S.PC)) return false; |
| 6608 | #if USE_TAILCALLS |
| 6609 | MUSTTAIL return InterpNext(S); |
| 6610 | #else |
| 6611 | return true; |
| 6612 | #endif |
| 6613 | } |
| 6614 | PRESERVE_NONE |
| 6615 | static bool Interp_CastIntAPSUint64(InterpState &S) { |
| 6616 | if (!Cast<PT_IntAPS, PT_Uint64>(S, S.PC)) return false; |
| 6617 | #if USE_TAILCALLS |
| 6618 | MUSTTAIL return InterpNext(S); |
| 6619 | #else |
| 6620 | return true; |
| 6621 | #endif |
| 6622 | } |
| 6623 | PRESERVE_NONE |
| 6624 | static bool Interp_CastIntAPSSint64(InterpState &S) { |
| 6625 | if (!Cast<PT_IntAPS, PT_Sint64>(S, S.PC)) return false; |
| 6626 | #if USE_TAILCALLS |
| 6627 | MUSTTAIL return InterpNext(S); |
| 6628 | #else |
| 6629 | return true; |
| 6630 | #endif |
| 6631 | } |
| 6632 | PRESERVE_NONE |
| 6633 | static bool Interp_CastIntAPSBool(InterpState &S) { |
| 6634 | if (!Cast<PT_IntAPS, PT_Bool>(S, S.PC)) return false; |
| 6635 | #if USE_TAILCALLS |
| 6636 | MUSTTAIL return InterpNext(S); |
| 6637 | #else |
| 6638 | return true; |
| 6639 | #endif |
| 6640 | } |
| 6641 | PRESERVE_NONE |
| 6642 | static bool Interp_CastFixedPointUint8(InterpState &S) { |
| 6643 | if (!Cast<PT_FixedPoint, PT_Uint8>(S, S.PC)) return false; |
| 6644 | #if USE_TAILCALLS |
| 6645 | MUSTTAIL return InterpNext(S); |
| 6646 | #else |
| 6647 | return true; |
| 6648 | #endif |
| 6649 | } |
| 6650 | PRESERVE_NONE |
| 6651 | static bool Interp_CastFixedPointSint8(InterpState &S) { |
| 6652 | if (!Cast<PT_FixedPoint, PT_Sint8>(S, S.PC)) return false; |
| 6653 | #if USE_TAILCALLS |
| 6654 | MUSTTAIL return InterpNext(S); |
| 6655 | #else |
| 6656 | return true; |
| 6657 | #endif |
| 6658 | } |
| 6659 | PRESERVE_NONE |
| 6660 | static bool Interp_CastFixedPointUint16(InterpState &S) { |
| 6661 | if (!Cast<PT_FixedPoint, PT_Uint16>(S, S.PC)) return false; |
| 6662 | #if USE_TAILCALLS |
| 6663 | MUSTTAIL return InterpNext(S); |
| 6664 | #else |
| 6665 | return true; |
| 6666 | #endif |
| 6667 | } |
| 6668 | PRESERVE_NONE |
| 6669 | static bool Interp_CastFixedPointSint16(InterpState &S) { |
| 6670 | if (!Cast<PT_FixedPoint, PT_Sint16>(S, S.PC)) return false; |
| 6671 | #if USE_TAILCALLS |
| 6672 | MUSTTAIL return InterpNext(S); |
| 6673 | #else |
| 6674 | return true; |
| 6675 | #endif |
| 6676 | } |
| 6677 | PRESERVE_NONE |
| 6678 | static bool Interp_CastFixedPointUint32(InterpState &S) { |
| 6679 | if (!Cast<PT_FixedPoint, PT_Uint32>(S, S.PC)) return false; |
| 6680 | #if USE_TAILCALLS |
| 6681 | MUSTTAIL return InterpNext(S); |
| 6682 | #else |
| 6683 | return true; |
| 6684 | #endif |
| 6685 | } |
| 6686 | PRESERVE_NONE |
| 6687 | static bool Interp_CastFixedPointSint32(InterpState &S) { |
| 6688 | if (!Cast<PT_FixedPoint, PT_Sint32>(S, S.PC)) return false; |
| 6689 | #if USE_TAILCALLS |
| 6690 | MUSTTAIL return InterpNext(S); |
| 6691 | #else |
| 6692 | return true; |
| 6693 | #endif |
| 6694 | } |
| 6695 | PRESERVE_NONE |
| 6696 | static bool Interp_CastFixedPointUint64(InterpState &S) { |
| 6697 | if (!Cast<PT_FixedPoint, PT_Uint64>(S, S.PC)) return false; |
| 6698 | #if USE_TAILCALLS |
| 6699 | MUSTTAIL return InterpNext(S); |
| 6700 | #else |
| 6701 | return true; |
| 6702 | #endif |
| 6703 | } |
| 6704 | PRESERVE_NONE |
| 6705 | static bool Interp_CastFixedPointSint64(InterpState &S) { |
| 6706 | if (!Cast<PT_FixedPoint, PT_Sint64>(S, S.PC)) return false; |
| 6707 | #if USE_TAILCALLS |
| 6708 | MUSTTAIL return InterpNext(S); |
| 6709 | #else |
| 6710 | return true; |
| 6711 | #endif |
| 6712 | } |
| 6713 | PRESERVE_NONE |
| 6714 | static bool Interp_CastFixedPointBool(InterpState &S) { |
| 6715 | if (!Cast<PT_FixedPoint, PT_Bool>(S, S.PC)) return false; |
| 6716 | #if USE_TAILCALLS |
| 6717 | MUSTTAIL return InterpNext(S); |
| 6718 | #else |
| 6719 | return true; |
| 6720 | #endif |
| 6721 | } |
| 6722 | #endif |
| 6723 | #ifdef GET_DISASM |
| 6724 | case OP_CastUint8Uint8: |
| 6725 | Text.Op = PrintName("CastUint8Uint8" ); |
| 6726 | break; |
| 6727 | case OP_CastUint8Sint8: |
| 6728 | Text.Op = PrintName("CastUint8Sint8" ); |
| 6729 | break; |
| 6730 | case OP_CastUint8Uint16: |
| 6731 | Text.Op = PrintName("CastUint8Uint16" ); |
| 6732 | break; |
| 6733 | case OP_CastUint8Sint16: |
| 6734 | Text.Op = PrintName("CastUint8Sint16" ); |
| 6735 | break; |
| 6736 | case OP_CastUint8Uint32: |
| 6737 | Text.Op = PrintName("CastUint8Uint32" ); |
| 6738 | break; |
| 6739 | case OP_CastUint8Sint32: |
| 6740 | Text.Op = PrintName("CastUint8Sint32" ); |
| 6741 | break; |
| 6742 | case OP_CastUint8Uint64: |
| 6743 | Text.Op = PrintName("CastUint8Uint64" ); |
| 6744 | break; |
| 6745 | case OP_CastUint8Sint64: |
| 6746 | Text.Op = PrintName("CastUint8Sint64" ); |
| 6747 | break; |
| 6748 | case OP_CastUint8Bool: |
| 6749 | Text.Op = PrintName("CastUint8Bool" ); |
| 6750 | break; |
| 6751 | case OP_CastSint8Uint8: |
| 6752 | Text.Op = PrintName("CastSint8Uint8" ); |
| 6753 | break; |
| 6754 | case OP_CastSint8Sint8: |
| 6755 | Text.Op = PrintName("CastSint8Sint8" ); |
| 6756 | break; |
| 6757 | case OP_CastSint8Uint16: |
| 6758 | Text.Op = PrintName("CastSint8Uint16" ); |
| 6759 | break; |
| 6760 | case OP_CastSint8Sint16: |
| 6761 | Text.Op = PrintName("CastSint8Sint16" ); |
| 6762 | break; |
| 6763 | case OP_CastSint8Uint32: |
| 6764 | Text.Op = PrintName("CastSint8Uint32" ); |
| 6765 | break; |
| 6766 | case OP_CastSint8Sint32: |
| 6767 | Text.Op = PrintName("CastSint8Sint32" ); |
| 6768 | break; |
| 6769 | case OP_CastSint8Uint64: |
| 6770 | Text.Op = PrintName("CastSint8Uint64" ); |
| 6771 | break; |
| 6772 | case OP_CastSint8Sint64: |
| 6773 | Text.Op = PrintName("CastSint8Sint64" ); |
| 6774 | break; |
| 6775 | case OP_CastSint8Bool: |
| 6776 | Text.Op = PrintName("CastSint8Bool" ); |
| 6777 | break; |
| 6778 | case OP_CastUint16Uint8: |
| 6779 | Text.Op = PrintName("CastUint16Uint8" ); |
| 6780 | break; |
| 6781 | case OP_CastUint16Sint8: |
| 6782 | Text.Op = PrintName("CastUint16Sint8" ); |
| 6783 | break; |
| 6784 | case OP_CastUint16Uint16: |
| 6785 | Text.Op = PrintName("CastUint16Uint16" ); |
| 6786 | break; |
| 6787 | case OP_CastUint16Sint16: |
| 6788 | Text.Op = PrintName("CastUint16Sint16" ); |
| 6789 | break; |
| 6790 | case OP_CastUint16Uint32: |
| 6791 | Text.Op = PrintName("CastUint16Uint32" ); |
| 6792 | break; |
| 6793 | case OP_CastUint16Sint32: |
| 6794 | Text.Op = PrintName("CastUint16Sint32" ); |
| 6795 | break; |
| 6796 | case OP_CastUint16Uint64: |
| 6797 | Text.Op = PrintName("CastUint16Uint64" ); |
| 6798 | break; |
| 6799 | case OP_CastUint16Sint64: |
| 6800 | Text.Op = PrintName("CastUint16Sint64" ); |
| 6801 | break; |
| 6802 | case OP_CastUint16Bool: |
| 6803 | Text.Op = PrintName("CastUint16Bool" ); |
| 6804 | break; |
| 6805 | case OP_CastSint16Uint8: |
| 6806 | Text.Op = PrintName("CastSint16Uint8" ); |
| 6807 | break; |
| 6808 | case OP_CastSint16Sint8: |
| 6809 | Text.Op = PrintName("CastSint16Sint8" ); |
| 6810 | break; |
| 6811 | case OP_CastSint16Uint16: |
| 6812 | Text.Op = PrintName("CastSint16Uint16" ); |
| 6813 | break; |
| 6814 | case OP_CastSint16Sint16: |
| 6815 | Text.Op = PrintName("CastSint16Sint16" ); |
| 6816 | break; |
| 6817 | case OP_CastSint16Uint32: |
| 6818 | Text.Op = PrintName("CastSint16Uint32" ); |
| 6819 | break; |
| 6820 | case OP_CastSint16Sint32: |
| 6821 | Text.Op = PrintName("CastSint16Sint32" ); |
| 6822 | break; |
| 6823 | case OP_CastSint16Uint64: |
| 6824 | Text.Op = PrintName("CastSint16Uint64" ); |
| 6825 | break; |
| 6826 | case OP_CastSint16Sint64: |
| 6827 | Text.Op = PrintName("CastSint16Sint64" ); |
| 6828 | break; |
| 6829 | case OP_CastSint16Bool: |
| 6830 | Text.Op = PrintName("CastSint16Bool" ); |
| 6831 | break; |
| 6832 | case OP_CastUint32Uint8: |
| 6833 | Text.Op = PrintName("CastUint32Uint8" ); |
| 6834 | break; |
| 6835 | case OP_CastUint32Sint8: |
| 6836 | Text.Op = PrintName("CastUint32Sint8" ); |
| 6837 | break; |
| 6838 | case OP_CastUint32Uint16: |
| 6839 | Text.Op = PrintName("CastUint32Uint16" ); |
| 6840 | break; |
| 6841 | case OP_CastUint32Sint16: |
| 6842 | Text.Op = PrintName("CastUint32Sint16" ); |
| 6843 | break; |
| 6844 | case OP_CastUint32Uint32: |
| 6845 | Text.Op = PrintName("CastUint32Uint32" ); |
| 6846 | break; |
| 6847 | case OP_CastUint32Sint32: |
| 6848 | Text.Op = PrintName("CastUint32Sint32" ); |
| 6849 | break; |
| 6850 | case OP_CastUint32Uint64: |
| 6851 | Text.Op = PrintName("CastUint32Uint64" ); |
| 6852 | break; |
| 6853 | case OP_CastUint32Sint64: |
| 6854 | Text.Op = PrintName("CastUint32Sint64" ); |
| 6855 | break; |
| 6856 | case OP_CastUint32Bool: |
| 6857 | Text.Op = PrintName("CastUint32Bool" ); |
| 6858 | break; |
| 6859 | case OP_CastSint32Uint8: |
| 6860 | Text.Op = PrintName("CastSint32Uint8" ); |
| 6861 | break; |
| 6862 | case OP_CastSint32Sint8: |
| 6863 | Text.Op = PrintName("CastSint32Sint8" ); |
| 6864 | break; |
| 6865 | case OP_CastSint32Uint16: |
| 6866 | Text.Op = PrintName("CastSint32Uint16" ); |
| 6867 | break; |
| 6868 | case OP_CastSint32Sint16: |
| 6869 | Text.Op = PrintName("CastSint32Sint16" ); |
| 6870 | break; |
| 6871 | case OP_CastSint32Uint32: |
| 6872 | Text.Op = PrintName("CastSint32Uint32" ); |
| 6873 | break; |
| 6874 | case OP_CastSint32Sint32: |
| 6875 | Text.Op = PrintName("CastSint32Sint32" ); |
| 6876 | break; |
| 6877 | case OP_CastSint32Uint64: |
| 6878 | Text.Op = PrintName("CastSint32Uint64" ); |
| 6879 | break; |
| 6880 | case OP_CastSint32Sint64: |
| 6881 | Text.Op = PrintName("CastSint32Sint64" ); |
| 6882 | break; |
| 6883 | case OP_CastSint32Bool: |
| 6884 | Text.Op = PrintName("CastSint32Bool" ); |
| 6885 | break; |
| 6886 | case OP_CastUint64Uint8: |
| 6887 | Text.Op = PrintName("CastUint64Uint8" ); |
| 6888 | break; |
| 6889 | case OP_CastUint64Sint8: |
| 6890 | Text.Op = PrintName("CastUint64Sint8" ); |
| 6891 | break; |
| 6892 | case OP_CastUint64Uint16: |
| 6893 | Text.Op = PrintName("CastUint64Uint16" ); |
| 6894 | break; |
| 6895 | case OP_CastUint64Sint16: |
| 6896 | Text.Op = PrintName("CastUint64Sint16" ); |
| 6897 | break; |
| 6898 | case OP_CastUint64Uint32: |
| 6899 | Text.Op = PrintName("CastUint64Uint32" ); |
| 6900 | break; |
| 6901 | case OP_CastUint64Sint32: |
| 6902 | Text.Op = PrintName("CastUint64Sint32" ); |
| 6903 | break; |
| 6904 | case OP_CastUint64Uint64: |
| 6905 | Text.Op = PrintName("CastUint64Uint64" ); |
| 6906 | break; |
| 6907 | case OP_CastUint64Sint64: |
| 6908 | Text.Op = PrintName("CastUint64Sint64" ); |
| 6909 | break; |
| 6910 | case OP_CastUint64Bool: |
| 6911 | Text.Op = PrintName("CastUint64Bool" ); |
| 6912 | break; |
| 6913 | case OP_CastSint64Uint8: |
| 6914 | Text.Op = PrintName("CastSint64Uint8" ); |
| 6915 | break; |
| 6916 | case OP_CastSint64Sint8: |
| 6917 | Text.Op = PrintName("CastSint64Sint8" ); |
| 6918 | break; |
| 6919 | case OP_CastSint64Uint16: |
| 6920 | Text.Op = PrintName("CastSint64Uint16" ); |
| 6921 | break; |
| 6922 | case OP_CastSint64Sint16: |
| 6923 | Text.Op = PrintName("CastSint64Sint16" ); |
| 6924 | break; |
| 6925 | case OP_CastSint64Uint32: |
| 6926 | Text.Op = PrintName("CastSint64Uint32" ); |
| 6927 | break; |
| 6928 | case OP_CastSint64Sint32: |
| 6929 | Text.Op = PrintName("CastSint64Sint32" ); |
| 6930 | break; |
| 6931 | case OP_CastSint64Uint64: |
| 6932 | Text.Op = PrintName("CastSint64Uint64" ); |
| 6933 | break; |
| 6934 | case OP_CastSint64Sint64: |
| 6935 | Text.Op = PrintName("CastSint64Sint64" ); |
| 6936 | break; |
| 6937 | case OP_CastSint64Bool: |
| 6938 | Text.Op = PrintName("CastSint64Bool" ); |
| 6939 | break; |
| 6940 | case OP_CastBoolUint8: |
| 6941 | Text.Op = PrintName("CastBoolUint8" ); |
| 6942 | break; |
| 6943 | case OP_CastBoolSint8: |
| 6944 | Text.Op = PrintName("CastBoolSint8" ); |
| 6945 | break; |
| 6946 | case OP_CastBoolUint16: |
| 6947 | Text.Op = PrintName("CastBoolUint16" ); |
| 6948 | break; |
| 6949 | case OP_CastBoolSint16: |
| 6950 | Text.Op = PrintName("CastBoolSint16" ); |
| 6951 | break; |
| 6952 | case OP_CastBoolUint32: |
| 6953 | Text.Op = PrintName("CastBoolUint32" ); |
| 6954 | break; |
| 6955 | case OP_CastBoolSint32: |
| 6956 | Text.Op = PrintName("CastBoolSint32" ); |
| 6957 | break; |
| 6958 | case OP_CastBoolUint64: |
| 6959 | Text.Op = PrintName("CastBoolUint64" ); |
| 6960 | break; |
| 6961 | case OP_CastBoolSint64: |
| 6962 | Text.Op = PrintName("CastBoolSint64" ); |
| 6963 | break; |
| 6964 | case OP_CastBoolBool: |
| 6965 | Text.Op = PrintName("CastBoolBool" ); |
| 6966 | break; |
| 6967 | case OP_CastIntAPUint8: |
| 6968 | Text.Op = PrintName("CastIntAPUint8" ); |
| 6969 | break; |
| 6970 | case OP_CastIntAPSint8: |
| 6971 | Text.Op = PrintName("CastIntAPSint8" ); |
| 6972 | break; |
| 6973 | case OP_CastIntAPUint16: |
| 6974 | Text.Op = PrintName("CastIntAPUint16" ); |
| 6975 | break; |
| 6976 | case OP_CastIntAPSint16: |
| 6977 | Text.Op = PrintName("CastIntAPSint16" ); |
| 6978 | break; |
| 6979 | case OP_CastIntAPUint32: |
| 6980 | Text.Op = PrintName("CastIntAPUint32" ); |
| 6981 | break; |
| 6982 | case OP_CastIntAPSint32: |
| 6983 | Text.Op = PrintName("CastIntAPSint32" ); |
| 6984 | break; |
| 6985 | case OP_CastIntAPUint64: |
| 6986 | Text.Op = PrintName("CastIntAPUint64" ); |
| 6987 | break; |
| 6988 | case OP_CastIntAPSint64: |
| 6989 | Text.Op = PrintName("CastIntAPSint64" ); |
| 6990 | break; |
| 6991 | case OP_CastIntAPBool: |
| 6992 | Text.Op = PrintName("CastIntAPBool" ); |
| 6993 | break; |
| 6994 | case OP_CastIntAPSUint8: |
| 6995 | Text.Op = PrintName("CastIntAPSUint8" ); |
| 6996 | break; |
| 6997 | case OP_CastIntAPSSint8: |
| 6998 | Text.Op = PrintName("CastIntAPSSint8" ); |
| 6999 | break; |
| 7000 | case OP_CastIntAPSUint16: |
| 7001 | Text.Op = PrintName("CastIntAPSUint16" ); |
| 7002 | break; |
| 7003 | case OP_CastIntAPSSint16: |
| 7004 | Text.Op = PrintName("CastIntAPSSint16" ); |
| 7005 | break; |
| 7006 | case OP_CastIntAPSUint32: |
| 7007 | Text.Op = PrintName("CastIntAPSUint32" ); |
| 7008 | break; |
| 7009 | case OP_CastIntAPSSint32: |
| 7010 | Text.Op = PrintName("CastIntAPSSint32" ); |
| 7011 | break; |
| 7012 | case OP_CastIntAPSUint64: |
| 7013 | Text.Op = PrintName("CastIntAPSUint64" ); |
| 7014 | break; |
| 7015 | case OP_CastIntAPSSint64: |
| 7016 | Text.Op = PrintName("CastIntAPSSint64" ); |
| 7017 | break; |
| 7018 | case OP_CastIntAPSBool: |
| 7019 | Text.Op = PrintName("CastIntAPSBool" ); |
| 7020 | break; |
| 7021 | case OP_CastFixedPointUint8: |
| 7022 | Text.Op = PrintName("CastFixedPointUint8" ); |
| 7023 | break; |
| 7024 | case OP_CastFixedPointSint8: |
| 7025 | Text.Op = PrintName("CastFixedPointSint8" ); |
| 7026 | break; |
| 7027 | case OP_CastFixedPointUint16: |
| 7028 | Text.Op = PrintName("CastFixedPointUint16" ); |
| 7029 | break; |
| 7030 | case OP_CastFixedPointSint16: |
| 7031 | Text.Op = PrintName("CastFixedPointSint16" ); |
| 7032 | break; |
| 7033 | case OP_CastFixedPointUint32: |
| 7034 | Text.Op = PrintName("CastFixedPointUint32" ); |
| 7035 | break; |
| 7036 | case OP_CastFixedPointSint32: |
| 7037 | Text.Op = PrintName("CastFixedPointSint32" ); |
| 7038 | break; |
| 7039 | case OP_CastFixedPointUint64: |
| 7040 | Text.Op = PrintName("CastFixedPointUint64" ); |
| 7041 | break; |
| 7042 | case OP_CastFixedPointSint64: |
| 7043 | Text.Op = PrintName("CastFixedPointSint64" ); |
| 7044 | break; |
| 7045 | case OP_CastFixedPointBool: |
| 7046 | Text.Op = PrintName("CastFixedPointBool" ); |
| 7047 | break; |
| 7048 | #endif |
| 7049 | #if defined(GET_EVAL_PROTO) || defined(GET_LINK_PROTO) |
| 7050 | bool emitCastUint8Uint8(SourceInfo); |
| 7051 | bool emitCastUint8Sint8(SourceInfo); |
| 7052 | bool emitCastUint8Uint16(SourceInfo); |
| 7053 | bool emitCastUint8Sint16(SourceInfo); |
| 7054 | bool emitCastUint8Uint32(SourceInfo); |
| 7055 | bool emitCastUint8Sint32(SourceInfo); |
| 7056 | bool emitCastUint8Uint64(SourceInfo); |
| 7057 | bool emitCastUint8Sint64(SourceInfo); |
| 7058 | bool emitCastUint8Bool(SourceInfo); |
| 7059 | bool emitCastSint8Uint8(SourceInfo); |
| 7060 | bool emitCastSint8Sint8(SourceInfo); |
| 7061 | bool emitCastSint8Uint16(SourceInfo); |
| 7062 | bool emitCastSint8Sint16(SourceInfo); |
| 7063 | bool emitCastSint8Uint32(SourceInfo); |
| 7064 | bool emitCastSint8Sint32(SourceInfo); |
| 7065 | bool emitCastSint8Uint64(SourceInfo); |
| 7066 | bool emitCastSint8Sint64(SourceInfo); |
| 7067 | bool emitCastSint8Bool(SourceInfo); |
| 7068 | bool emitCastUint16Uint8(SourceInfo); |
| 7069 | bool emitCastUint16Sint8(SourceInfo); |
| 7070 | bool emitCastUint16Uint16(SourceInfo); |
| 7071 | bool emitCastUint16Sint16(SourceInfo); |
| 7072 | bool emitCastUint16Uint32(SourceInfo); |
| 7073 | bool emitCastUint16Sint32(SourceInfo); |
| 7074 | bool emitCastUint16Uint64(SourceInfo); |
| 7075 | bool emitCastUint16Sint64(SourceInfo); |
| 7076 | bool emitCastUint16Bool(SourceInfo); |
| 7077 | bool emitCastSint16Uint8(SourceInfo); |
| 7078 | bool emitCastSint16Sint8(SourceInfo); |
| 7079 | bool emitCastSint16Uint16(SourceInfo); |
| 7080 | bool emitCastSint16Sint16(SourceInfo); |
| 7081 | bool emitCastSint16Uint32(SourceInfo); |
| 7082 | bool emitCastSint16Sint32(SourceInfo); |
| 7083 | bool emitCastSint16Uint64(SourceInfo); |
| 7084 | bool emitCastSint16Sint64(SourceInfo); |
| 7085 | bool emitCastSint16Bool(SourceInfo); |
| 7086 | bool emitCastUint32Uint8(SourceInfo); |
| 7087 | bool emitCastUint32Sint8(SourceInfo); |
| 7088 | bool emitCastUint32Uint16(SourceInfo); |
| 7089 | bool emitCastUint32Sint16(SourceInfo); |
| 7090 | bool emitCastUint32Uint32(SourceInfo); |
| 7091 | bool emitCastUint32Sint32(SourceInfo); |
| 7092 | bool emitCastUint32Uint64(SourceInfo); |
| 7093 | bool emitCastUint32Sint64(SourceInfo); |
| 7094 | bool emitCastUint32Bool(SourceInfo); |
| 7095 | bool emitCastSint32Uint8(SourceInfo); |
| 7096 | bool emitCastSint32Sint8(SourceInfo); |
| 7097 | bool emitCastSint32Uint16(SourceInfo); |
| 7098 | bool emitCastSint32Sint16(SourceInfo); |
| 7099 | bool emitCastSint32Uint32(SourceInfo); |
| 7100 | bool emitCastSint32Sint32(SourceInfo); |
| 7101 | bool emitCastSint32Uint64(SourceInfo); |
| 7102 | bool emitCastSint32Sint64(SourceInfo); |
| 7103 | bool emitCastSint32Bool(SourceInfo); |
| 7104 | bool emitCastUint64Uint8(SourceInfo); |
| 7105 | bool emitCastUint64Sint8(SourceInfo); |
| 7106 | bool emitCastUint64Uint16(SourceInfo); |
| 7107 | bool emitCastUint64Sint16(SourceInfo); |
| 7108 | bool emitCastUint64Uint32(SourceInfo); |
| 7109 | bool emitCastUint64Sint32(SourceInfo); |
| 7110 | bool emitCastUint64Uint64(SourceInfo); |
| 7111 | bool emitCastUint64Sint64(SourceInfo); |
| 7112 | bool emitCastUint64Bool(SourceInfo); |
| 7113 | bool emitCastSint64Uint8(SourceInfo); |
| 7114 | bool emitCastSint64Sint8(SourceInfo); |
| 7115 | bool emitCastSint64Uint16(SourceInfo); |
| 7116 | bool emitCastSint64Sint16(SourceInfo); |
| 7117 | bool emitCastSint64Uint32(SourceInfo); |
| 7118 | bool emitCastSint64Sint32(SourceInfo); |
| 7119 | bool emitCastSint64Uint64(SourceInfo); |
| 7120 | bool emitCastSint64Sint64(SourceInfo); |
| 7121 | bool emitCastSint64Bool(SourceInfo); |
| 7122 | bool emitCastBoolUint8(SourceInfo); |
| 7123 | bool emitCastBoolSint8(SourceInfo); |
| 7124 | bool emitCastBoolUint16(SourceInfo); |
| 7125 | bool emitCastBoolSint16(SourceInfo); |
| 7126 | bool emitCastBoolUint32(SourceInfo); |
| 7127 | bool emitCastBoolSint32(SourceInfo); |
| 7128 | bool emitCastBoolUint64(SourceInfo); |
| 7129 | bool emitCastBoolSint64(SourceInfo); |
| 7130 | bool emitCastBoolBool(SourceInfo); |
| 7131 | bool emitCastIntAPUint8(SourceInfo); |
| 7132 | bool emitCastIntAPSint8(SourceInfo); |
| 7133 | bool emitCastIntAPUint16(SourceInfo); |
| 7134 | bool emitCastIntAPSint16(SourceInfo); |
| 7135 | bool emitCastIntAPUint32(SourceInfo); |
| 7136 | bool emitCastIntAPSint32(SourceInfo); |
| 7137 | bool emitCastIntAPUint64(SourceInfo); |
| 7138 | bool emitCastIntAPSint64(SourceInfo); |
| 7139 | bool emitCastIntAPBool(SourceInfo); |
| 7140 | bool emitCastIntAPSUint8(SourceInfo); |
| 7141 | bool emitCastIntAPSSint8(SourceInfo); |
| 7142 | bool emitCastIntAPSUint16(SourceInfo); |
| 7143 | bool emitCastIntAPSSint16(SourceInfo); |
| 7144 | bool emitCastIntAPSUint32(SourceInfo); |
| 7145 | bool emitCastIntAPSSint32(SourceInfo); |
| 7146 | bool emitCastIntAPSUint64(SourceInfo); |
| 7147 | bool emitCastIntAPSSint64(SourceInfo); |
| 7148 | bool emitCastIntAPSBool(SourceInfo); |
| 7149 | bool emitCastFixedPointUint8(SourceInfo); |
| 7150 | bool emitCastFixedPointSint8(SourceInfo); |
| 7151 | bool emitCastFixedPointUint16(SourceInfo); |
| 7152 | bool emitCastFixedPointSint16(SourceInfo); |
| 7153 | bool emitCastFixedPointUint32(SourceInfo); |
| 7154 | bool emitCastFixedPointSint32(SourceInfo); |
| 7155 | bool emitCastFixedPointUint64(SourceInfo); |
| 7156 | bool emitCastFixedPointSint64(SourceInfo); |
| 7157 | bool emitCastFixedPointBool(SourceInfo); |
| 7158 | #endif |
| 7159 | #if defined(GET_EVAL_PROTO) || defined(GET_LINK_PROTO) |
| 7160 | [[nodiscard]] bool emitCast(PrimType, PrimType, SourceInfo I); |
| 7161 | #endif |
| 7162 | #if defined(GET_EVAL_IMPL) || defined(GET_LINK_IMPL) |
| 7163 | bool |
| 7164 | #if defined(GET_EVAL_IMPL) |
| 7165 | EvalEmitter |
| 7166 | #else |
| 7167 | ByteCodeEmitter |
| 7168 | #endif |
| 7169 | ::emitCast(PrimType T0, PrimType T1, SourceInfo I) { |
| 7170 | switch (T0) { |
| 7171 | case PT_Uint8: |
| 7172 | switch (T1) { |
| 7173 | case PT_Uint8: |
| 7174 | return emitCastUint8Uint8(I); |
| 7175 | case PT_Sint8: |
| 7176 | return emitCastUint8Sint8(I); |
| 7177 | case PT_Uint16: |
| 7178 | return emitCastUint8Uint16(I); |
| 7179 | case PT_Sint16: |
| 7180 | return emitCastUint8Sint16(I); |
| 7181 | case PT_Uint32: |
| 7182 | return emitCastUint8Uint32(I); |
| 7183 | case PT_Sint32: |
| 7184 | return emitCastUint8Sint32(I); |
| 7185 | case PT_Uint64: |
| 7186 | return emitCastUint8Uint64(I); |
| 7187 | case PT_Sint64: |
| 7188 | return emitCastUint8Sint64(I); |
| 7189 | case PT_Bool: |
| 7190 | return emitCastUint8Bool(I); |
| 7191 | default: llvm_unreachable("invalid type: emitCast" ); |
| 7192 | } |
| 7193 | llvm_unreachable("invalid enum value" ); |
| 7194 | case PT_Sint8: |
| 7195 | switch (T1) { |
| 7196 | case PT_Uint8: |
| 7197 | return emitCastSint8Uint8(I); |
| 7198 | case PT_Sint8: |
| 7199 | return emitCastSint8Sint8(I); |
| 7200 | case PT_Uint16: |
| 7201 | return emitCastSint8Uint16(I); |
| 7202 | case PT_Sint16: |
| 7203 | return emitCastSint8Sint16(I); |
| 7204 | case PT_Uint32: |
| 7205 | return emitCastSint8Uint32(I); |
| 7206 | case PT_Sint32: |
| 7207 | return emitCastSint8Sint32(I); |
| 7208 | case PT_Uint64: |
| 7209 | return emitCastSint8Uint64(I); |
| 7210 | case PT_Sint64: |
| 7211 | return emitCastSint8Sint64(I); |
| 7212 | case PT_Bool: |
| 7213 | return emitCastSint8Bool(I); |
| 7214 | default: llvm_unreachable("invalid type: emitCast" ); |
| 7215 | } |
| 7216 | llvm_unreachable("invalid enum value" ); |
| 7217 | case PT_Uint16: |
| 7218 | switch (T1) { |
| 7219 | case PT_Uint8: |
| 7220 | return emitCastUint16Uint8(I); |
| 7221 | case PT_Sint8: |
| 7222 | return emitCastUint16Sint8(I); |
| 7223 | case PT_Uint16: |
| 7224 | return emitCastUint16Uint16(I); |
| 7225 | case PT_Sint16: |
| 7226 | return emitCastUint16Sint16(I); |
| 7227 | case PT_Uint32: |
| 7228 | return emitCastUint16Uint32(I); |
| 7229 | case PT_Sint32: |
| 7230 | return emitCastUint16Sint32(I); |
| 7231 | case PT_Uint64: |
| 7232 | return emitCastUint16Uint64(I); |
| 7233 | case PT_Sint64: |
| 7234 | return emitCastUint16Sint64(I); |
| 7235 | case PT_Bool: |
| 7236 | return emitCastUint16Bool(I); |
| 7237 | default: llvm_unreachable("invalid type: emitCast" ); |
| 7238 | } |
| 7239 | llvm_unreachable("invalid enum value" ); |
| 7240 | case PT_Sint16: |
| 7241 | switch (T1) { |
| 7242 | case PT_Uint8: |
| 7243 | return emitCastSint16Uint8(I); |
| 7244 | case PT_Sint8: |
| 7245 | return emitCastSint16Sint8(I); |
| 7246 | case PT_Uint16: |
| 7247 | return emitCastSint16Uint16(I); |
| 7248 | case PT_Sint16: |
| 7249 | return emitCastSint16Sint16(I); |
| 7250 | case PT_Uint32: |
| 7251 | return emitCastSint16Uint32(I); |
| 7252 | case PT_Sint32: |
| 7253 | return emitCastSint16Sint32(I); |
| 7254 | case PT_Uint64: |
| 7255 | return emitCastSint16Uint64(I); |
| 7256 | case PT_Sint64: |
| 7257 | return emitCastSint16Sint64(I); |
| 7258 | case PT_Bool: |
| 7259 | return emitCastSint16Bool(I); |
| 7260 | default: llvm_unreachable("invalid type: emitCast" ); |
| 7261 | } |
| 7262 | llvm_unreachable("invalid enum value" ); |
| 7263 | case PT_Uint32: |
| 7264 | switch (T1) { |
| 7265 | case PT_Uint8: |
| 7266 | return emitCastUint32Uint8(I); |
| 7267 | case PT_Sint8: |
| 7268 | return emitCastUint32Sint8(I); |
| 7269 | case PT_Uint16: |
| 7270 | return emitCastUint32Uint16(I); |
| 7271 | case PT_Sint16: |
| 7272 | return emitCastUint32Sint16(I); |
| 7273 | case PT_Uint32: |
| 7274 | return emitCastUint32Uint32(I); |
| 7275 | case PT_Sint32: |
| 7276 | return emitCastUint32Sint32(I); |
| 7277 | case PT_Uint64: |
| 7278 | return emitCastUint32Uint64(I); |
| 7279 | case PT_Sint64: |
| 7280 | return emitCastUint32Sint64(I); |
| 7281 | case PT_Bool: |
| 7282 | return emitCastUint32Bool(I); |
| 7283 | default: llvm_unreachable("invalid type: emitCast" ); |
| 7284 | } |
| 7285 | llvm_unreachable("invalid enum value" ); |
| 7286 | case PT_Sint32: |
| 7287 | switch (T1) { |
| 7288 | case PT_Uint8: |
| 7289 | return emitCastSint32Uint8(I); |
| 7290 | case PT_Sint8: |
| 7291 | return emitCastSint32Sint8(I); |
| 7292 | case PT_Uint16: |
| 7293 | return emitCastSint32Uint16(I); |
| 7294 | case PT_Sint16: |
| 7295 | return emitCastSint32Sint16(I); |
| 7296 | case PT_Uint32: |
| 7297 | return emitCastSint32Uint32(I); |
| 7298 | case PT_Sint32: |
| 7299 | return emitCastSint32Sint32(I); |
| 7300 | case PT_Uint64: |
| 7301 | return emitCastSint32Uint64(I); |
| 7302 | case PT_Sint64: |
| 7303 | return emitCastSint32Sint64(I); |
| 7304 | case PT_Bool: |
| 7305 | return emitCastSint32Bool(I); |
| 7306 | default: llvm_unreachable("invalid type: emitCast" ); |
| 7307 | } |
| 7308 | llvm_unreachable("invalid enum value" ); |
| 7309 | case PT_Uint64: |
| 7310 | switch (T1) { |
| 7311 | case PT_Uint8: |
| 7312 | return emitCastUint64Uint8(I); |
| 7313 | case PT_Sint8: |
| 7314 | return emitCastUint64Sint8(I); |
| 7315 | case PT_Uint16: |
| 7316 | return emitCastUint64Uint16(I); |
| 7317 | case PT_Sint16: |
| 7318 | return emitCastUint64Sint16(I); |
| 7319 | case PT_Uint32: |
| 7320 | return emitCastUint64Uint32(I); |
| 7321 | case PT_Sint32: |
| 7322 | return emitCastUint64Sint32(I); |
| 7323 | case PT_Uint64: |
| 7324 | return emitCastUint64Uint64(I); |
| 7325 | case PT_Sint64: |
| 7326 | return emitCastUint64Sint64(I); |
| 7327 | case PT_Bool: |
| 7328 | return emitCastUint64Bool(I); |
| 7329 | default: llvm_unreachable("invalid type: emitCast" ); |
| 7330 | } |
| 7331 | llvm_unreachable("invalid enum value" ); |
| 7332 | case PT_Sint64: |
| 7333 | switch (T1) { |
| 7334 | case PT_Uint8: |
| 7335 | return emitCastSint64Uint8(I); |
| 7336 | case PT_Sint8: |
| 7337 | return emitCastSint64Sint8(I); |
| 7338 | case PT_Uint16: |
| 7339 | return emitCastSint64Uint16(I); |
| 7340 | case PT_Sint16: |
| 7341 | return emitCastSint64Sint16(I); |
| 7342 | case PT_Uint32: |
| 7343 | return emitCastSint64Uint32(I); |
| 7344 | case PT_Sint32: |
| 7345 | return emitCastSint64Sint32(I); |
| 7346 | case PT_Uint64: |
| 7347 | return emitCastSint64Uint64(I); |
| 7348 | case PT_Sint64: |
| 7349 | return emitCastSint64Sint64(I); |
| 7350 | case PT_Bool: |
| 7351 | return emitCastSint64Bool(I); |
| 7352 | default: llvm_unreachable("invalid type: emitCast" ); |
| 7353 | } |
| 7354 | llvm_unreachable("invalid enum value" ); |
| 7355 | case PT_Bool: |
| 7356 | switch (T1) { |
| 7357 | case PT_Uint8: |
| 7358 | return emitCastBoolUint8(I); |
| 7359 | case PT_Sint8: |
| 7360 | return emitCastBoolSint8(I); |
| 7361 | case PT_Uint16: |
| 7362 | return emitCastBoolUint16(I); |
| 7363 | case PT_Sint16: |
| 7364 | return emitCastBoolSint16(I); |
| 7365 | case PT_Uint32: |
| 7366 | return emitCastBoolUint32(I); |
| 7367 | case PT_Sint32: |
| 7368 | return emitCastBoolSint32(I); |
| 7369 | case PT_Uint64: |
| 7370 | return emitCastBoolUint64(I); |
| 7371 | case PT_Sint64: |
| 7372 | return emitCastBoolSint64(I); |
| 7373 | case PT_Bool: |
| 7374 | return emitCastBoolBool(I); |
| 7375 | default: llvm_unreachable("invalid type: emitCast" ); |
| 7376 | } |
| 7377 | llvm_unreachable("invalid enum value" ); |
| 7378 | case PT_IntAP: |
| 7379 | switch (T1) { |
| 7380 | case PT_Uint8: |
| 7381 | return emitCastIntAPUint8(I); |
| 7382 | case PT_Sint8: |
| 7383 | return emitCastIntAPSint8(I); |
| 7384 | case PT_Uint16: |
| 7385 | return emitCastIntAPUint16(I); |
| 7386 | case PT_Sint16: |
| 7387 | return emitCastIntAPSint16(I); |
| 7388 | case PT_Uint32: |
| 7389 | return emitCastIntAPUint32(I); |
| 7390 | case PT_Sint32: |
| 7391 | return emitCastIntAPSint32(I); |
| 7392 | case PT_Uint64: |
| 7393 | return emitCastIntAPUint64(I); |
| 7394 | case PT_Sint64: |
| 7395 | return emitCastIntAPSint64(I); |
| 7396 | case PT_Bool: |
| 7397 | return emitCastIntAPBool(I); |
| 7398 | default: llvm_unreachable("invalid type: emitCast" ); |
| 7399 | } |
| 7400 | llvm_unreachable("invalid enum value" ); |
| 7401 | case PT_IntAPS: |
| 7402 | switch (T1) { |
| 7403 | case PT_Uint8: |
| 7404 | return emitCastIntAPSUint8(I); |
| 7405 | case PT_Sint8: |
| 7406 | return emitCastIntAPSSint8(I); |
| 7407 | case PT_Uint16: |
| 7408 | return emitCastIntAPSUint16(I); |
| 7409 | case PT_Sint16: |
| 7410 | return emitCastIntAPSSint16(I); |
| 7411 | case PT_Uint32: |
| 7412 | return emitCastIntAPSUint32(I); |
| 7413 | case PT_Sint32: |
| 7414 | return emitCastIntAPSSint32(I); |
| 7415 | case PT_Uint64: |
| 7416 | return emitCastIntAPSUint64(I); |
| 7417 | case PT_Sint64: |
| 7418 | return emitCastIntAPSSint64(I); |
| 7419 | case PT_Bool: |
| 7420 | return emitCastIntAPSBool(I); |
| 7421 | default: llvm_unreachable("invalid type: emitCast" ); |
| 7422 | } |
| 7423 | llvm_unreachable("invalid enum value" ); |
| 7424 | case PT_FixedPoint: |
| 7425 | switch (T1) { |
| 7426 | case PT_Uint8: |
| 7427 | return emitCastFixedPointUint8(I); |
| 7428 | case PT_Sint8: |
| 7429 | return emitCastFixedPointSint8(I); |
| 7430 | case PT_Uint16: |
| 7431 | return emitCastFixedPointUint16(I); |
| 7432 | case PT_Sint16: |
| 7433 | return emitCastFixedPointSint16(I); |
| 7434 | case PT_Uint32: |
| 7435 | return emitCastFixedPointUint32(I); |
| 7436 | case PT_Sint32: |
| 7437 | return emitCastFixedPointSint32(I); |
| 7438 | case PT_Uint64: |
| 7439 | return emitCastFixedPointUint64(I); |
| 7440 | case PT_Sint64: |
| 7441 | return emitCastFixedPointSint64(I); |
| 7442 | case PT_Bool: |
| 7443 | return emitCastFixedPointBool(I); |
| 7444 | default: llvm_unreachable("invalid type: emitCast" ); |
| 7445 | } |
| 7446 | llvm_unreachable("invalid enum value" ); |
| 7447 | default: llvm_unreachable("invalid type: emitCast" ); |
| 7448 | } |
| 7449 | llvm_unreachable("invalid enum value" ); |
| 7450 | } |
| 7451 | #endif |
| 7452 | #ifdef GET_LINK_IMPL |
| 7453 | bool ByteCodeEmitter::emitCastUint8Uint8(SourceInfo L) { |
| 7454 | return emitOp<>(OP_CastUint8Uint8, L); |
| 7455 | } |
| 7456 | bool ByteCodeEmitter::emitCastUint8Sint8(SourceInfo L) { |
| 7457 | return emitOp<>(OP_CastUint8Sint8, L); |
| 7458 | } |
| 7459 | bool ByteCodeEmitter::emitCastUint8Uint16(SourceInfo L) { |
| 7460 | return emitOp<>(OP_CastUint8Uint16, L); |
| 7461 | } |
| 7462 | bool ByteCodeEmitter::emitCastUint8Sint16(SourceInfo L) { |
| 7463 | return emitOp<>(OP_CastUint8Sint16, L); |
| 7464 | } |
| 7465 | bool ByteCodeEmitter::emitCastUint8Uint32(SourceInfo L) { |
| 7466 | return emitOp<>(OP_CastUint8Uint32, L); |
| 7467 | } |
| 7468 | bool ByteCodeEmitter::emitCastUint8Sint32(SourceInfo L) { |
| 7469 | return emitOp<>(OP_CastUint8Sint32, L); |
| 7470 | } |
| 7471 | bool ByteCodeEmitter::emitCastUint8Uint64(SourceInfo L) { |
| 7472 | return emitOp<>(OP_CastUint8Uint64, L); |
| 7473 | } |
| 7474 | bool ByteCodeEmitter::emitCastUint8Sint64(SourceInfo L) { |
| 7475 | return emitOp<>(OP_CastUint8Sint64, L); |
| 7476 | } |
| 7477 | bool ByteCodeEmitter::emitCastUint8Bool(SourceInfo L) { |
| 7478 | return emitOp<>(OP_CastUint8Bool, L); |
| 7479 | } |
| 7480 | bool ByteCodeEmitter::emitCastSint8Uint8(SourceInfo L) { |
| 7481 | return emitOp<>(OP_CastSint8Uint8, L); |
| 7482 | } |
| 7483 | bool ByteCodeEmitter::emitCastSint8Sint8(SourceInfo L) { |
| 7484 | return emitOp<>(OP_CastSint8Sint8, L); |
| 7485 | } |
| 7486 | bool ByteCodeEmitter::emitCastSint8Uint16(SourceInfo L) { |
| 7487 | return emitOp<>(OP_CastSint8Uint16, L); |
| 7488 | } |
| 7489 | bool ByteCodeEmitter::emitCastSint8Sint16(SourceInfo L) { |
| 7490 | return emitOp<>(OP_CastSint8Sint16, L); |
| 7491 | } |
| 7492 | bool ByteCodeEmitter::emitCastSint8Uint32(SourceInfo L) { |
| 7493 | return emitOp<>(OP_CastSint8Uint32, L); |
| 7494 | } |
| 7495 | bool ByteCodeEmitter::emitCastSint8Sint32(SourceInfo L) { |
| 7496 | return emitOp<>(OP_CastSint8Sint32, L); |
| 7497 | } |
| 7498 | bool ByteCodeEmitter::emitCastSint8Uint64(SourceInfo L) { |
| 7499 | return emitOp<>(OP_CastSint8Uint64, L); |
| 7500 | } |
| 7501 | bool ByteCodeEmitter::emitCastSint8Sint64(SourceInfo L) { |
| 7502 | return emitOp<>(OP_CastSint8Sint64, L); |
| 7503 | } |
| 7504 | bool ByteCodeEmitter::emitCastSint8Bool(SourceInfo L) { |
| 7505 | return emitOp<>(OP_CastSint8Bool, L); |
| 7506 | } |
| 7507 | bool ByteCodeEmitter::emitCastUint16Uint8(SourceInfo L) { |
| 7508 | return emitOp<>(OP_CastUint16Uint8, L); |
| 7509 | } |
| 7510 | bool ByteCodeEmitter::emitCastUint16Sint8(SourceInfo L) { |
| 7511 | return emitOp<>(OP_CastUint16Sint8, L); |
| 7512 | } |
| 7513 | bool ByteCodeEmitter::emitCastUint16Uint16(SourceInfo L) { |
| 7514 | return emitOp<>(OP_CastUint16Uint16, L); |
| 7515 | } |
| 7516 | bool ByteCodeEmitter::emitCastUint16Sint16(SourceInfo L) { |
| 7517 | return emitOp<>(OP_CastUint16Sint16, L); |
| 7518 | } |
| 7519 | bool ByteCodeEmitter::emitCastUint16Uint32(SourceInfo L) { |
| 7520 | return emitOp<>(OP_CastUint16Uint32, L); |
| 7521 | } |
| 7522 | bool ByteCodeEmitter::emitCastUint16Sint32(SourceInfo L) { |
| 7523 | return emitOp<>(OP_CastUint16Sint32, L); |
| 7524 | } |
| 7525 | bool ByteCodeEmitter::emitCastUint16Uint64(SourceInfo L) { |
| 7526 | return emitOp<>(OP_CastUint16Uint64, L); |
| 7527 | } |
| 7528 | bool ByteCodeEmitter::emitCastUint16Sint64(SourceInfo L) { |
| 7529 | return emitOp<>(OP_CastUint16Sint64, L); |
| 7530 | } |
| 7531 | bool ByteCodeEmitter::emitCastUint16Bool(SourceInfo L) { |
| 7532 | return emitOp<>(OP_CastUint16Bool, L); |
| 7533 | } |
| 7534 | bool ByteCodeEmitter::emitCastSint16Uint8(SourceInfo L) { |
| 7535 | return emitOp<>(OP_CastSint16Uint8, L); |
| 7536 | } |
| 7537 | bool ByteCodeEmitter::emitCastSint16Sint8(SourceInfo L) { |
| 7538 | return emitOp<>(OP_CastSint16Sint8, L); |
| 7539 | } |
| 7540 | bool ByteCodeEmitter::emitCastSint16Uint16(SourceInfo L) { |
| 7541 | return emitOp<>(OP_CastSint16Uint16, L); |
| 7542 | } |
| 7543 | bool ByteCodeEmitter::emitCastSint16Sint16(SourceInfo L) { |
| 7544 | return emitOp<>(OP_CastSint16Sint16, L); |
| 7545 | } |
| 7546 | bool ByteCodeEmitter::emitCastSint16Uint32(SourceInfo L) { |
| 7547 | return emitOp<>(OP_CastSint16Uint32, L); |
| 7548 | } |
| 7549 | bool ByteCodeEmitter::emitCastSint16Sint32(SourceInfo L) { |
| 7550 | return emitOp<>(OP_CastSint16Sint32, L); |
| 7551 | } |
| 7552 | bool ByteCodeEmitter::emitCastSint16Uint64(SourceInfo L) { |
| 7553 | return emitOp<>(OP_CastSint16Uint64, L); |
| 7554 | } |
| 7555 | bool ByteCodeEmitter::emitCastSint16Sint64(SourceInfo L) { |
| 7556 | return emitOp<>(OP_CastSint16Sint64, L); |
| 7557 | } |
| 7558 | bool ByteCodeEmitter::emitCastSint16Bool(SourceInfo L) { |
| 7559 | return emitOp<>(OP_CastSint16Bool, L); |
| 7560 | } |
| 7561 | bool ByteCodeEmitter::emitCastUint32Uint8(SourceInfo L) { |
| 7562 | return emitOp<>(OP_CastUint32Uint8, L); |
| 7563 | } |
| 7564 | bool ByteCodeEmitter::emitCastUint32Sint8(SourceInfo L) { |
| 7565 | return emitOp<>(OP_CastUint32Sint8, L); |
| 7566 | } |
| 7567 | bool ByteCodeEmitter::emitCastUint32Uint16(SourceInfo L) { |
| 7568 | return emitOp<>(OP_CastUint32Uint16, L); |
| 7569 | } |
| 7570 | bool ByteCodeEmitter::emitCastUint32Sint16(SourceInfo L) { |
| 7571 | return emitOp<>(OP_CastUint32Sint16, L); |
| 7572 | } |
| 7573 | bool ByteCodeEmitter::emitCastUint32Uint32(SourceInfo L) { |
| 7574 | return emitOp<>(OP_CastUint32Uint32, L); |
| 7575 | } |
| 7576 | bool ByteCodeEmitter::emitCastUint32Sint32(SourceInfo L) { |
| 7577 | return emitOp<>(OP_CastUint32Sint32, L); |
| 7578 | } |
| 7579 | bool ByteCodeEmitter::emitCastUint32Uint64(SourceInfo L) { |
| 7580 | return emitOp<>(OP_CastUint32Uint64, L); |
| 7581 | } |
| 7582 | bool ByteCodeEmitter::emitCastUint32Sint64(SourceInfo L) { |
| 7583 | return emitOp<>(OP_CastUint32Sint64, L); |
| 7584 | } |
| 7585 | bool ByteCodeEmitter::emitCastUint32Bool(SourceInfo L) { |
| 7586 | return emitOp<>(OP_CastUint32Bool, L); |
| 7587 | } |
| 7588 | bool ByteCodeEmitter::emitCastSint32Uint8(SourceInfo L) { |
| 7589 | return emitOp<>(OP_CastSint32Uint8, L); |
| 7590 | } |
| 7591 | bool ByteCodeEmitter::emitCastSint32Sint8(SourceInfo L) { |
| 7592 | return emitOp<>(OP_CastSint32Sint8, L); |
| 7593 | } |
| 7594 | bool ByteCodeEmitter::emitCastSint32Uint16(SourceInfo L) { |
| 7595 | return emitOp<>(OP_CastSint32Uint16, L); |
| 7596 | } |
| 7597 | bool ByteCodeEmitter::emitCastSint32Sint16(SourceInfo L) { |
| 7598 | return emitOp<>(OP_CastSint32Sint16, L); |
| 7599 | } |
| 7600 | bool ByteCodeEmitter::emitCastSint32Uint32(SourceInfo L) { |
| 7601 | return emitOp<>(OP_CastSint32Uint32, L); |
| 7602 | } |
| 7603 | bool ByteCodeEmitter::emitCastSint32Sint32(SourceInfo L) { |
| 7604 | return emitOp<>(OP_CastSint32Sint32, L); |
| 7605 | } |
| 7606 | bool ByteCodeEmitter::emitCastSint32Uint64(SourceInfo L) { |
| 7607 | return emitOp<>(OP_CastSint32Uint64, L); |
| 7608 | } |
| 7609 | bool ByteCodeEmitter::emitCastSint32Sint64(SourceInfo L) { |
| 7610 | return emitOp<>(OP_CastSint32Sint64, L); |
| 7611 | } |
| 7612 | bool ByteCodeEmitter::emitCastSint32Bool(SourceInfo L) { |
| 7613 | return emitOp<>(OP_CastSint32Bool, L); |
| 7614 | } |
| 7615 | bool ByteCodeEmitter::emitCastUint64Uint8(SourceInfo L) { |
| 7616 | return emitOp<>(OP_CastUint64Uint8, L); |
| 7617 | } |
| 7618 | bool ByteCodeEmitter::emitCastUint64Sint8(SourceInfo L) { |
| 7619 | return emitOp<>(OP_CastUint64Sint8, L); |
| 7620 | } |
| 7621 | bool ByteCodeEmitter::emitCastUint64Uint16(SourceInfo L) { |
| 7622 | return emitOp<>(OP_CastUint64Uint16, L); |
| 7623 | } |
| 7624 | bool ByteCodeEmitter::emitCastUint64Sint16(SourceInfo L) { |
| 7625 | return emitOp<>(OP_CastUint64Sint16, L); |
| 7626 | } |
| 7627 | bool ByteCodeEmitter::emitCastUint64Uint32(SourceInfo L) { |
| 7628 | return emitOp<>(OP_CastUint64Uint32, L); |
| 7629 | } |
| 7630 | bool ByteCodeEmitter::emitCastUint64Sint32(SourceInfo L) { |
| 7631 | return emitOp<>(OP_CastUint64Sint32, L); |
| 7632 | } |
| 7633 | bool ByteCodeEmitter::emitCastUint64Uint64(SourceInfo L) { |
| 7634 | return emitOp<>(OP_CastUint64Uint64, L); |
| 7635 | } |
| 7636 | bool ByteCodeEmitter::emitCastUint64Sint64(SourceInfo L) { |
| 7637 | return emitOp<>(OP_CastUint64Sint64, L); |
| 7638 | } |
| 7639 | bool ByteCodeEmitter::emitCastUint64Bool(SourceInfo L) { |
| 7640 | return emitOp<>(OP_CastUint64Bool, L); |
| 7641 | } |
| 7642 | bool ByteCodeEmitter::emitCastSint64Uint8(SourceInfo L) { |
| 7643 | return emitOp<>(OP_CastSint64Uint8, L); |
| 7644 | } |
| 7645 | bool ByteCodeEmitter::emitCastSint64Sint8(SourceInfo L) { |
| 7646 | return emitOp<>(OP_CastSint64Sint8, L); |
| 7647 | } |
| 7648 | bool ByteCodeEmitter::emitCastSint64Uint16(SourceInfo L) { |
| 7649 | return emitOp<>(OP_CastSint64Uint16, L); |
| 7650 | } |
| 7651 | bool ByteCodeEmitter::emitCastSint64Sint16(SourceInfo L) { |
| 7652 | return emitOp<>(OP_CastSint64Sint16, L); |
| 7653 | } |
| 7654 | bool ByteCodeEmitter::emitCastSint64Uint32(SourceInfo L) { |
| 7655 | return emitOp<>(OP_CastSint64Uint32, L); |
| 7656 | } |
| 7657 | bool ByteCodeEmitter::emitCastSint64Sint32(SourceInfo L) { |
| 7658 | return emitOp<>(OP_CastSint64Sint32, L); |
| 7659 | } |
| 7660 | bool ByteCodeEmitter::emitCastSint64Uint64(SourceInfo L) { |
| 7661 | return emitOp<>(OP_CastSint64Uint64, L); |
| 7662 | } |
| 7663 | bool ByteCodeEmitter::emitCastSint64Sint64(SourceInfo L) { |
| 7664 | return emitOp<>(OP_CastSint64Sint64, L); |
| 7665 | } |
| 7666 | bool ByteCodeEmitter::emitCastSint64Bool(SourceInfo L) { |
| 7667 | return emitOp<>(OP_CastSint64Bool, L); |
| 7668 | } |
| 7669 | bool ByteCodeEmitter::emitCastBoolUint8(SourceInfo L) { |
| 7670 | return emitOp<>(OP_CastBoolUint8, L); |
| 7671 | } |
| 7672 | bool ByteCodeEmitter::emitCastBoolSint8(SourceInfo L) { |
| 7673 | return emitOp<>(OP_CastBoolSint8, L); |
| 7674 | } |
| 7675 | bool ByteCodeEmitter::emitCastBoolUint16(SourceInfo L) { |
| 7676 | return emitOp<>(OP_CastBoolUint16, L); |
| 7677 | } |
| 7678 | bool ByteCodeEmitter::emitCastBoolSint16(SourceInfo L) { |
| 7679 | return emitOp<>(OP_CastBoolSint16, L); |
| 7680 | } |
| 7681 | bool ByteCodeEmitter::emitCastBoolUint32(SourceInfo L) { |
| 7682 | return emitOp<>(OP_CastBoolUint32, L); |
| 7683 | } |
| 7684 | bool ByteCodeEmitter::emitCastBoolSint32(SourceInfo L) { |
| 7685 | return emitOp<>(OP_CastBoolSint32, L); |
| 7686 | } |
| 7687 | bool ByteCodeEmitter::emitCastBoolUint64(SourceInfo L) { |
| 7688 | return emitOp<>(OP_CastBoolUint64, L); |
| 7689 | } |
| 7690 | bool ByteCodeEmitter::emitCastBoolSint64(SourceInfo L) { |
| 7691 | return emitOp<>(OP_CastBoolSint64, L); |
| 7692 | } |
| 7693 | bool ByteCodeEmitter::emitCastBoolBool(SourceInfo L) { |
| 7694 | return emitOp<>(OP_CastBoolBool, L); |
| 7695 | } |
| 7696 | bool ByteCodeEmitter::emitCastIntAPUint8(SourceInfo L) { |
| 7697 | return emitOp<>(OP_CastIntAPUint8, L); |
| 7698 | } |
| 7699 | bool ByteCodeEmitter::emitCastIntAPSint8(SourceInfo L) { |
| 7700 | return emitOp<>(OP_CastIntAPSint8, L); |
| 7701 | } |
| 7702 | bool ByteCodeEmitter::emitCastIntAPUint16(SourceInfo L) { |
| 7703 | return emitOp<>(OP_CastIntAPUint16, L); |
| 7704 | } |
| 7705 | bool ByteCodeEmitter::emitCastIntAPSint16(SourceInfo L) { |
| 7706 | return emitOp<>(OP_CastIntAPSint16, L); |
| 7707 | } |
| 7708 | bool ByteCodeEmitter::emitCastIntAPUint32(SourceInfo L) { |
| 7709 | return emitOp<>(OP_CastIntAPUint32, L); |
| 7710 | } |
| 7711 | bool ByteCodeEmitter::emitCastIntAPSint32(SourceInfo L) { |
| 7712 | return emitOp<>(OP_CastIntAPSint32, L); |
| 7713 | } |
| 7714 | bool ByteCodeEmitter::emitCastIntAPUint64(SourceInfo L) { |
| 7715 | return emitOp<>(OP_CastIntAPUint64, L); |
| 7716 | } |
| 7717 | bool ByteCodeEmitter::emitCastIntAPSint64(SourceInfo L) { |
| 7718 | return emitOp<>(OP_CastIntAPSint64, L); |
| 7719 | } |
| 7720 | bool ByteCodeEmitter::emitCastIntAPBool(SourceInfo L) { |
| 7721 | return emitOp<>(OP_CastIntAPBool, L); |
| 7722 | } |
| 7723 | bool ByteCodeEmitter::emitCastIntAPSUint8(SourceInfo L) { |
| 7724 | return emitOp<>(OP_CastIntAPSUint8, L); |
| 7725 | } |
| 7726 | bool ByteCodeEmitter::emitCastIntAPSSint8(SourceInfo L) { |
| 7727 | return emitOp<>(OP_CastIntAPSSint8, L); |
| 7728 | } |
| 7729 | bool ByteCodeEmitter::emitCastIntAPSUint16(SourceInfo L) { |
| 7730 | return emitOp<>(OP_CastIntAPSUint16, L); |
| 7731 | } |
| 7732 | bool ByteCodeEmitter::emitCastIntAPSSint16(SourceInfo L) { |
| 7733 | return emitOp<>(OP_CastIntAPSSint16, L); |
| 7734 | } |
| 7735 | bool ByteCodeEmitter::emitCastIntAPSUint32(SourceInfo L) { |
| 7736 | return emitOp<>(OP_CastIntAPSUint32, L); |
| 7737 | } |
| 7738 | bool ByteCodeEmitter::emitCastIntAPSSint32(SourceInfo L) { |
| 7739 | return emitOp<>(OP_CastIntAPSSint32, L); |
| 7740 | } |
| 7741 | bool ByteCodeEmitter::emitCastIntAPSUint64(SourceInfo L) { |
| 7742 | return emitOp<>(OP_CastIntAPSUint64, L); |
| 7743 | } |
| 7744 | bool ByteCodeEmitter::emitCastIntAPSSint64(SourceInfo L) { |
| 7745 | return emitOp<>(OP_CastIntAPSSint64, L); |
| 7746 | } |
| 7747 | bool ByteCodeEmitter::emitCastIntAPSBool(SourceInfo L) { |
| 7748 | return emitOp<>(OP_CastIntAPSBool, L); |
| 7749 | } |
| 7750 | bool ByteCodeEmitter::emitCastFixedPointUint8(SourceInfo L) { |
| 7751 | return emitOp<>(OP_CastFixedPointUint8, L); |
| 7752 | } |
| 7753 | bool ByteCodeEmitter::emitCastFixedPointSint8(SourceInfo L) { |
| 7754 | return emitOp<>(OP_CastFixedPointSint8, L); |
| 7755 | } |
| 7756 | bool ByteCodeEmitter::emitCastFixedPointUint16(SourceInfo L) { |
| 7757 | return emitOp<>(OP_CastFixedPointUint16, L); |
| 7758 | } |
| 7759 | bool ByteCodeEmitter::emitCastFixedPointSint16(SourceInfo L) { |
| 7760 | return emitOp<>(OP_CastFixedPointSint16, L); |
| 7761 | } |
| 7762 | bool ByteCodeEmitter::emitCastFixedPointUint32(SourceInfo L) { |
| 7763 | return emitOp<>(OP_CastFixedPointUint32, L); |
| 7764 | } |
| 7765 | bool ByteCodeEmitter::emitCastFixedPointSint32(SourceInfo L) { |
| 7766 | return emitOp<>(OP_CastFixedPointSint32, L); |
| 7767 | } |
| 7768 | bool ByteCodeEmitter::emitCastFixedPointUint64(SourceInfo L) { |
| 7769 | return emitOp<>(OP_CastFixedPointUint64, L); |
| 7770 | } |
| 7771 | bool ByteCodeEmitter::emitCastFixedPointSint64(SourceInfo L) { |
| 7772 | return emitOp<>(OP_CastFixedPointSint64, L); |
| 7773 | } |
| 7774 | bool ByteCodeEmitter::emitCastFixedPointBool(SourceInfo L) { |
| 7775 | return emitOp<>(OP_CastFixedPointBool, L); |
| 7776 | } |
| 7777 | #endif |
| 7778 | #ifdef GET_EVAL_IMPL |
| 7779 | bool EvalEmitter::emitCastUint8Uint8(SourceInfo L) { |
| 7780 | if (!isActive()) return true; |
| 7781 | CurrentSource = L; |
| 7782 | return Cast<PT_Uint8, PT_Uint8>(S, CodePtr()); |
| 7783 | } |
| 7784 | bool EvalEmitter::emitCastUint8Sint8(SourceInfo L) { |
| 7785 | if (!isActive()) return true; |
| 7786 | CurrentSource = L; |
| 7787 | return Cast<PT_Uint8, PT_Sint8>(S, CodePtr()); |
| 7788 | } |
| 7789 | bool EvalEmitter::emitCastUint8Uint16(SourceInfo L) { |
| 7790 | if (!isActive()) return true; |
| 7791 | CurrentSource = L; |
| 7792 | return Cast<PT_Uint8, PT_Uint16>(S, CodePtr()); |
| 7793 | } |
| 7794 | bool EvalEmitter::emitCastUint8Sint16(SourceInfo L) { |
| 7795 | if (!isActive()) return true; |
| 7796 | CurrentSource = L; |
| 7797 | return Cast<PT_Uint8, PT_Sint16>(S, CodePtr()); |
| 7798 | } |
| 7799 | bool EvalEmitter::emitCastUint8Uint32(SourceInfo L) { |
| 7800 | if (!isActive()) return true; |
| 7801 | CurrentSource = L; |
| 7802 | return Cast<PT_Uint8, PT_Uint32>(S, CodePtr()); |
| 7803 | } |
| 7804 | bool EvalEmitter::emitCastUint8Sint32(SourceInfo L) { |
| 7805 | if (!isActive()) return true; |
| 7806 | CurrentSource = L; |
| 7807 | return Cast<PT_Uint8, PT_Sint32>(S, CodePtr()); |
| 7808 | } |
| 7809 | bool EvalEmitter::emitCastUint8Uint64(SourceInfo L) { |
| 7810 | if (!isActive()) return true; |
| 7811 | CurrentSource = L; |
| 7812 | return Cast<PT_Uint8, PT_Uint64>(S, CodePtr()); |
| 7813 | } |
| 7814 | bool EvalEmitter::emitCastUint8Sint64(SourceInfo L) { |
| 7815 | if (!isActive()) return true; |
| 7816 | CurrentSource = L; |
| 7817 | return Cast<PT_Uint8, PT_Sint64>(S, CodePtr()); |
| 7818 | } |
| 7819 | bool EvalEmitter::emitCastUint8Bool(SourceInfo L) { |
| 7820 | if (!isActive()) return true; |
| 7821 | CurrentSource = L; |
| 7822 | return Cast<PT_Uint8, PT_Bool>(S, CodePtr()); |
| 7823 | } |
| 7824 | bool EvalEmitter::emitCastSint8Uint8(SourceInfo L) { |
| 7825 | if (!isActive()) return true; |
| 7826 | CurrentSource = L; |
| 7827 | return Cast<PT_Sint8, PT_Uint8>(S, CodePtr()); |
| 7828 | } |
| 7829 | bool EvalEmitter::emitCastSint8Sint8(SourceInfo L) { |
| 7830 | if (!isActive()) return true; |
| 7831 | CurrentSource = L; |
| 7832 | return Cast<PT_Sint8, PT_Sint8>(S, CodePtr()); |
| 7833 | } |
| 7834 | bool EvalEmitter::emitCastSint8Uint16(SourceInfo L) { |
| 7835 | if (!isActive()) return true; |
| 7836 | CurrentSource = L; |
| 7837 | return Cast<PT_Sint8, PT_Uint16>(S, CodePtr()); |
| 7838 | } |
| 7839 | bool EvalEmitter::emitCastSint8Sint16(SourceInfo L) { |
| 7840 | if (!isActive()) return true; |
| 7841 | CurrentSource = L; |
| 7842 | return Cast<PT_Sint8, PT_Sint16>(S, CodePtr()); |
| 7843 | } |
| 7844 | bool EvalEmitter::emitCastSint8Uint32(SourceInfo L) { |
| 7845 | if (!isActive()) return true; |
| 7846 | CurrentSource = L; |
| 7847 | return Cast<PT_Sint8, PT_Uint32>(S, CodePtr()); |
| 7848 | } |
| 7849 | bool EvalEmitter::emitCastSint8Sint32(SourceInfo L) { |
| 7850 | if (!isActive()) return true; |
| 7851 | CurrentSource = L; |
| 7852 | return Cast<PT_Sint8, PT_Sint32>(S, CodePtr()); |
| 7853 | } |
| 7854 | bool EvalEmitter::emitCastSint8Uint64(SourceInfo L) { |
| 7855 | if (!isActive()) return true; |
| 7856 | CurrentSource = L; |
| 7857 | return Cast<PT_Sint8, PT_Uint64>(S, CodePtr()); |
| 7858 | } |
| 7859 | bool EvalEmitter::emitCastSint8Sint64(SourceInfo L) { |
| 7860 | if (!isActive()) return true; |
| 7861 | CurrentSource = L; |
| 7862 | return Cast<PT_Sint8, PT_Sint64>(S, CodePtr()); |
| 7863 | } |
| 7864 | bool EvalEmitter::emitCastSint8Bool(SourceInfo L) { |
| 7865 | if (!isActive()) return true; |
| 7866 | CurrentSource = L; |
| 7867 | return Cast<PT_Sint8, PT_Bool>(S, CodePtr()); |
| 7868 | } |
| 7869 | bool EvalEmitter::emitCastUint16Uint8(SourceInfo L) { |
| 7870 | if (!isActive()) return true; |
| 7871 | CurrentSource = L; |
| 7872 | return Cast<PT_Uint16, PT_Uint8>(S, CodePtr()); |
| 7873 | } |
| 7874 | bool EvalEmitter::emitCastUint16Sint8(SourceInfo L) { |
| 7875 | if (!isActive()) return true; |
| 7876 | CurrentSource = L; |
| 7877 | return Cast<PT_Uint16, PT_Sint8>(S, CodePtr()); |
| 7878 | } |
| 7879 | bool EvalEmitter::emitCastUint16Uint16(SourceInfo L) { |
| 7880 | if (!isActive()) return true; |
| 7881 | CurrentSource = L; |
| 7882 | return Cast<PT_Uint16, PT_Uint16>(S, CodePtr()); |
| 7883 | } |
| 7884 | bool EvalEmitter::emitCastUint16Sint16(SourceInfo L) { |
| 7885 | if (!isActive()) return true; |
| 7886 | CurrentSource = L; |
| 7887 | return Cast<PT_Uint16, PT_Sint16>(S, CodePtr()); |
| 7888 | } |
| 7889 | bool EvalEmitter::emitCastUint16Uint32(SourceInfo L) { |
| 7890 | if (!isActive()) return true; |
| 7891 | CurrentSource = L; |
| 7892 | return Cast<PT_Uint16, PT_Uint32>(S, CodePtr()); |
| 7893 | } |
| 7894 | bool EvalEmitter::emitCastUint16Sint32(SourceInfo L) { |
| 7895 | if (!isActive()) return true; |
| 7896 | CurrentSource = L; |
| 7897 | return Cast<PT_Uint16, PT_Sint32>(S, CodePtr()); |
| 7898 | } |
| 7899 | bool EvalEmitter::emitCastUint16Uint64(SourceInfo L) { |
| 7900 | if (!isActive()) return true; |
| 7901 | CurrentSource = L; |
| 7902 | return Cast<PT_Uint16, PT_Uint64>(S, CodePtr()); |
| 7903 | } |
| 7904 | bool EvalEmitter::emitCastUint16Sint64(SourceInfo L) { |
| 7905 | if (!isActive()) return true; |
| 7906 | CurrentSource = L; |
| 7907 | return Cast<PT_Uint16, PT_Sint64>(S, CodePtr()); |
| 7908 | } |
| 7909 | bool EvalEmitter::emitCastUint16Bool(SourceInfo L) { |
| 7910 | if (!isActive()) return true; |
| 7911 | CurrentSource = L; |
| 7912 | return Cast<PT_Uint16, PT_Bool>(S, CodePtr()); |
| 7913 | } |
| 7914 | bool EvalEmitter::emitCastSint16Uint8(SourceInfo L) { |
| 7915 | if (!isActive()) return true; |
| 7916 | CurrentSource = L; |
| 7917 | return Cast<PT_Sint16, PT_Uint8>(S, CodePtr()); |
| 7918 | } |
| 7919 | bool EvalEmitter::emitCastSint16Sint8(SourceInfo L) { |
| 7920 | if (!isActive()) return true; |
| 7921 | CurrentSource = L; |
| 7922 | return Cast<PT_Sint16, PT_Sint8>(S, CodePtr()); |
| 7923 | } |
| 7924 | bool EvalEmitter::emitCastSint16Uint16(SourceInfo L) { |
| 7925 | if (!isActive()) return true; |
| 7926 | CurrentSource = L; |
| 7927 | return Cast<PT_Sint16, PT_Uint16>(S, CodePtr()); |
| 7928 | } |
| 7929 | bool EvalEmitter::emitCastSint16Sint16(SourceInfo L) { |
| 7930 | if (!isActive()) return true; |
| 7931 | CurrentSource = L; |
| 7932 | return Cast<PT_Sint16, PT_Sint16>(S, CodePtr()); |
| 7933 | } |
| 7934 | bool EvalEmitter::emitCastSint16Uint32(SourceInfo L) { |
| 7935 | if (!isActive()) return true; |
| 7936 | CurrentSource = L; |
| 7937 | return Cast<PT_Sint16, PT_Uint32>(S, CodePtr()); |
| 7938 | } |
| 7939 | bool EvalEmitter::emitCastSint16Sint32(SourceInfo L) { |
| 7940 | if (!isActive()) return true; |
| 7941 | CurrentSource = L; |
| 7942 | return Cast<PT_Sint16, PT_Sint32>(S, CodePtr()); |
| 7943 | } |
| 7944 | bool EvalEmitter::emitCastSint16Uint64(SourceInfo L) { |
| 7945 | if (!isActive()) return true; |
| 7946 | CurrentSource = L; |
| 7947 | return Cast<PT_Sint16, PT_Uint64>(S, CodePtr()); |
| 7948 | } |
| 7949 | bool EvalEmitter::emitCastSint16Sint64(SourceInfo L) { |
| 7950 | if (!isActive()) return true; |
| 7951 | CurrentSource = L; |
| 7952 | return Cast<PT_Sint16, PT_Sint64>(S, CodePtr()); |
| 7953 | } |
| 7954 | bool EvalEmitter::emitCastSint16Bool(SourceInfo L) { |
| 7955 | if (!isActive()) return true; |
| 7956 | CurrentSource = L; |
| 7957 | return Cast<PT_Sint16, PT_Bool>(S, CodePtr()); |
| 7958 | } |
| 7959 | bool EvalEmitter::emitCastUint32Uint8(SourceInfo L) { |
| 7960 | if (!isActive()) return true; |
| 7961 | CurrentSource = L; |
| 7962 | return Cast<PT_Uint32, PT_Uint8>(S, CodePtr()); |
| 7963 | } |
| 7964 | bool EvalEmitter::emitCastUint32Sint8(SourceInfo L) { |
| 7965 | if (!isActive()) return true; |
| 7966 | CurrentSource = L; |
| 7967 | return Cast<PT_Uint32, PT_Sint8>(S, CodePtr()); |
| 7968 | } |
| 7969 | bool EvalEmitter::emitCastUint32Uint16(SourceInfo L) { |
| 7970 | if (!isActive()) return true; |
| 7971 | CurrentSource = L; |
| 7972 | return Cast<PT_Uint32, PT_Uint16>(S, CodePtr()); |
| 7973 | } |
| 7974 | bool EvalEmitter::emitCastUint32Sint16(SourceInfo L) { |
| 7975 | if (!isActive()) return true; |
| 7976 | CurrentSource = L; |
| 7977 | return Cast<PT_Uint32, PT_Sint16>(S, CodePtr()); |
| 7978 | } |
| 7979 | bool EvalEmitter::emitCastUint32Uint32(SourceInfo L) { |
| 7980 | if (!isActive()) return true; |
| 7981 | CurrentSource = L; |
| 7982 | return Cast<PT_Uint32, PT_Uint32>(S, CodePtr()); |
| 7983 | } |
| 7984 | bool EvalEmitter::emitCastUint32Sint32(SourceInfo L) { |
| 7985 | if (!isActive()) return true; |
| 7986 | CurrentSource = L; |
| 7987 | return Cast<PT_Uint32, PT_Sint32>(S, CodePtr()); |
| 7988 | } |
| 7989 | bool EvalEmitter::emitCastUint32Uint64(SourceInfo L) { |
| 7990 | if (!isActive()) return true; |
| 7991 | CurrentSource = L; |
| 7992 | return Cast<PT_Uint32, PT_Uint64>(S, CodePtr()); |
| 7993 | } |
| 7994 | bool EvalEmitter::emitCastUint32Sint64(SourceInfo L) { |
| 7995 | if (!isActive()) return true; |
| 7996 | CurrentSource = L; |
| 7997 | return Cast<PT_Uint32, PT_Sint64>(S, CodePtr()); |
| 7998 | } |
| 7999 | bool EvalEmitter::emitCastUint32Bool(SourceInfo L) { |
| 8000 | if (!isActive()) return true; |
| 8001 | CurrentSource = L; |
| 8002 | return Cast<PT_Uint32, PT_Bool>(S, CodePtr()); |
| 8003 | } |
| 8004 | bool EvalEmitter::emitCastSint32Uint8(SourceInfo L) { |
| 8005 | if (!isActive()) return true; |
| 8006 | CurrentSource = L; |
| 8007 | return Cast<PT_Sint32, PT_Uint8>(S, CodePtr()); |
| 8008 | } |
| 8009 | bool EvalEmitter::emitCastSint32Sint8(SourceInfo L) { |
| 8010 | if (!isActive()) return true; |
| 8011 | CurrentSource = L; |
| 8012 | return Cast<PT_Sint32, PT_Sint8>(S, CodePtr()); |
| 8013 | } |
| 8014 | bool EvalEmitter::emitCastSint32Uint16(SourceInfo L) { |
| 8015 | if (!isActive()) return true; |
| 8016 | CurrentSource = L; |
| 8017 | return Cast<PT_Sint32, PT_Uint16>(S, CodePtr()); |
| 8018 | } |
| 8019 | bool EvalEmitter::emitCastSint32Sint16(SourceInfo L) { |
| 8020 | if (!isActive()) return true; |
| 8021 | CurrentSource = L; |
| 8022 | return Cast<PT_Sint32, PT_Sint16>(S, CodePtr()); |
| 8023 | } |
| 8024 | bool EvalEmitter::emitCastSint32Uint32(SourceInfo L) { |
| 8025 | if (!isActive()) return true; |
| 8026 | CurrentSource = L; |
| 8027 | return Cast<PT_Sint32, PT_Uint32>(S, CodePtr()); |
| 8028 | } |
| 8029 | bool EvalEmitter::emitCastSint32Sint32(SourceInfo L) { |
| 8030 | if (!isActive()) return true; |
| 8031 | CurrentSource = L; |
| 8032 | return Cast<PT_Sint32, PT_Sint32>(S, CodePtr()); |
| 8033 | } |
| 8034 | bool EvalEmitter::emitCastSint32Uint64(SourceInfo L) { |
| 8035 | if (!isActive()) return true; |
| 8036 | CurrentSource = L; |
| 8037 | return Cast<PT_Sint32, PT_Uint64>(S, CodePtr()); |
| 8038 | } |
| 8039 | bool EvalEmitter::emitCastSint32Sint64(SourceInfo L) { |
| 8040 | if (!isActive()) return true; |
| 8041 | CurrentSource = L; |
| 8042 | return Cast<PT_Sint32, PT_Sint64>(S, CodePtr()); |
| 8043 | } |
| 8044 | bool EvalEmitter::emitCastSint32Bool(SourceInfo L) { |
| 8045 | if (!isActive()) return true; |
| 8046 | CurrentSource = L; |
| 8047 | return Cast<PT_Sint32, PT_Bool>(S, CodePtr()); |
| 8048 | } |
| 8049 | bool EvalEmitter::emitCastUint64Uint8(SourceInfo L) { |
| 8050 | if (!isActive()) return true; |
| 8051 | CurrentSource = L; |
| 8052 | return Cast<PT_Uint64, PT_Uint8>(S, CodePtr()); |
| 8053 | } |
| 8054 | bool EvalEmitter::emitCastUint64Sint8(SourceInfo L) { |
| 8055 | if (!isActive()) return true; |
| 8056 | CurrentSource = L; |
| 8057 | return Cast<PT_Uint64, PT_Sint8>(S, CodePtr()); |
| 8058 | } |
| 8059 | bool EvalEmitter::emitCastUint64Uint16(SourceInfo L) { |
| 8060 | if (!isActive()) return true; |
| 8061 | CurrentSource = L; |
| 8062 | return Cast<PT_Uint64, PT_Uint16>(S, CodePtr()); |
| 8063 | } |
| 8064 | bool EvalEmitter::emitCastUint64Sint16(SourceInfo L) { |
| 8065 | if (!isActive()) return true; |
| 8066 | CurrentSource = L; |
| 8067 | return Cast<PT_Uint64, PT_Sint16>(S, CodePtr()); |
| 8068 | } |
| 8069 | bool EvalEmitter::emitCastUint64Uint32(SourceInfo L) { |
| 8070 | if (!isActive()) return true; |
| 8071 | CurrentSource = L; |
| 8072 | return Cast<PT_Uint64, PT_Uint32>(S, CodePtr()); |
| 8073 | } |
| 8074 | bool EvalEmitter::emitCastUint64Sint32(SourceInfo L) { |
| 8075 | if (!isActive()) return true; |
| 8076 | CurrentSource = L; |
| 8077 | return Cast<PT_Uint64, PT_Sint32>(S, CodePtr()); |
| 8078 | } |
| 8079 | bool EvalEmitter::emitCastUint64Uint64(SourceInfo L) { |
| 8080 | if (!isActive()) return true; |
| 8081 | CurrentSource = L; |
| 8082 | return Cast<PT_Uint64, PT_Uint64>(S, CodePtr()); |
| 8083 | } |
| 8084 | bool EvalEmitter::emitCastUint64Sint64(SourceInfo L) { |
| 8085 | if (!isActive()) return true; |
| 8086 | CurrentSource = L; |
| 8087 | return Cast<PT_Uint64, PT_Sint64>(S, CodePtr()); |
| 8088 | } |
| 8089 | bool EvalEmitter::emitCastUint64Bool(SourceInfo L) { |
| 8090 | if (!isActive()) return true; |
| 8091 | CurrentSource = L; |
| 8092 | return Cast<PT_Uint64, PT_Bool>(S, CodePtr()); |
| 8093 | } |
| 8094 | bool EvalEmitter::emitCastSint64Uint8(SourceInfo L) { |
| 8095 | if (!isActive()) return true; |
| 8096 | CurrentSource = L; |
| 8097 | return Cast<PT_Sint64, PT_Uint8>(S, CodePtr()); |
| 8098 | } |
| 8099 | bool EvalEmitter::emitCastSint64Sint8(SourceInfo L) { |
| 8100 | if (!isActive()) return true; |
| 8101 | CurrentSource = L; |
| 8102 | return Cast<PT_Sint64, PT_Sint8>(S, CodePtr()); |
| 8103 | } |
| 8104 | bool EvalEmitter::emitCastSint64Uint16(SourceInfo L) { |
| 8105 | if (!isActive()) return true; |
| 8106 | CurrentSource = L; |
| 8107 | return Cast<PT_Sint64, PT_Uint16>(S, CodePtr()); |
| 8108 | } |
| 8109 | bool EvalEmitter::emitCastSint64Sint16(SourceInfo L) { |
| 8110 | if (!isActive()) return true; |
| 8111 | CurrentSource = L; |
| 8112 | return Cast<PT_Sint64, PT_Sint16>(S, CodePtr()); |
| 8113 | } |
| 8114 | bool EvalEmitter::emitCastSint64Uint32(SourceInfo L) { |
| 8115 | if (!isActive()) return true; |
| 8116 | CurrentSource = L; |
| 8117 | return Cast<PT_Sint64, PT_Uint32>(S, CodePtr()); |
| 8118 | } |
| 8119 | bool EvalEmitter::emitCastSint64Sint32(SourceInfo L) { |
| 8120 | if (!isActive()) return true; |
| 8121 | CurrentSource = L; |
| 8122 | return Cast<PT_Sint64, PT_Sint32>(S, CodePtr()); |
| 8123 | } |
| 8124 | bool EvalEmitter::emitCastSint64Uint64(SourceInfo L) { |
| 8125 | if (!isActive()) return true; |
| 8126 | CurrentSource = L; |
| 8127 | return Cast<PT_Sint64, PT_Uint64>(S, CodePtr()); |
| 8128 | } |
| 8129 | bool EvalEmitter::emitCastSint64Sint64(SourceInfo L) { |
| 8130 | if (!isActive()) return true; |
| 8131 | CurrentSource = L; |
| 8132 | return Cast<PT_Sint64, PT_Sint64>(S, CodePtr()); |
| 8133 | } |
| 8134 | bool EvalEmitter::emitCastSint64Bool(SourceInfo L) { |
| 8135 | if (!isActive()) return true; |
| 8136 | CurrentSource = L; |
| 8137 | return Cast<PT_Sint64, PT_Bool>(S, CodePtr()); |
| 8138 | } |
| 8139 | bool EvalEmitter::emitCastBoolUint8(SourceInfo L) { |
| 8140 | if (!isActive()) return true; |
| 8141 | CurrentSource = L; |
| 8142 | return Cast<PT_Bool, PT_Uint8>(S, CodePtr()); |
| 8143 | } |
| 8144 | bool EvalEmitter::emitCastBoolSint8(SourceInfo L) { |
| 8145 | if (!isActive()) return true; |
| 8146 | CurrentSource = L; |
| 8147 | return Cast<PT_Bool, PT_Sint8>(S, CodePtr()); |
| 8148 | } |
| 8149 | bool EvalEmitter::emitCastBoolUint16(SourceInfo L) { |
| 8150 | if (!isActive()) return true; |
| 8151 | CurrentSource = L; |
| 8152 | return Cast<PT_Bool, PT_Uint16>(S, CodePtr()); |
| 8153 | } |
| 8154 | bool EvalEmitter::emitCastBoolSint16(SourceInfo L) { |
| 8155 | if (!isActive()) return true; |
| 8156 | CurrentSource = L; |
| 8157 | return Cast<PT_Bool, PT_Sint16>(S, CodePtr()); |
| 8158 | } |
| 8159 | bool EvalEmitter::emitCastBoolUint32(SourceInfo L) { |
| 8160 | if (!isActive()) return true; |
| 8161 | CurrentSource = L; |
| 8162 | return Cast<PT_Bool, PT_Uint32>(S, CodePtr()); |
| 8163 | } |
| 8164 | bool EvalEmitter::emitCastBoolSint32(SourceInfo L) { |
| 8165 | if (!isActive()) return true; |
| 8166 | CurrentSource = L; |
| 8167 | return Cast<PT_Bool, PT_Sint32>(S, CodePtr()); |
| 8168 | } |
| 8169 | bool EvalEmitter::emitCastBoolUint64(SourceInfo L) { |
| 8170 | if (!isActive()) return true; |
| 8171 | CurrentSource = L; |
| 8172 | return Cast<PT_Bool, PT_Uint64>(S, CodePtr()); |
| 8173 | } |
| 8174 | bool EvalEmitter::emitCastBoolSint64(SourceInfo L) { |
| 8175 | if (!isActive()) return true; |
| 8176 | CurrentSource = L; |
| 8177 | return Cast<PT_Bool, PT_Sint64>(S, CodePtr()); |
| 8178 | } |
| 8179 | bool EvalEmitter::emitCastBoolBool(SourceInfo L) { |
| 8180 | if (!isActive()) return true; |
| 8181 | CurrentSource = L; |
| 8182 | return Cast<PT_Bool, PT_Bool>(S, CodePtr()); |
| 8183 | } |
| 8184 | bool EvalEmitter::emitCastIntAPUint8(SourceInfo L) { |
| 8185 | if (!isActive()) return true; |
| 8186 | CurrentSource = L; |
| 8187 | return Cast<PT_IntAP, PT_Uint8>(S, CodePtr()); |
| 8188 | } |
| 8189 | bool EvalEmitter::emitCastIntAPSint8(SourceInfo L) { |
| 8190 | if (!isActive()) return true; |
| 8191 | CurrentSource = L; |
| 8192 | return Cast<PT_IntAP, PT_Sint8>(S, CodePtr()); |
| 8193 | } |
| 8194 | bool EvalEmitter::emitCastIntAPUint16(SourceInfo L) { |
| 8195 | if (!isActive()) return true; |
| 8196 | CurrentSource = L; |
| 8197 | return Cast<PT_IntAP, PT_Uint16>(S, CodePtr()); |
| 8198 | } |
| 8199 | bool EvalEmitter::emitCastIntAPSint16(SourceInfo L) { |
| 8200 | if (!isActive()) return true; |
| 8201 | CurrentSource = L; |
| 8202 | return Cast<PT_IntAP, PT_Sint16>(S, CodePtr()); |
| 8203 | } |
| 8204 | bool EvalEmitter::emitCastIntAPUint32(SourceInfo L) { |
| 8205 | if (!isActive()) return true; |
| 8206 | CurrentSource = L; |
| 8207 | return Cast<PT_IntAP, PT_Uint32>(S, CodePtr()); |
| 8208 | } |
| 8209 | bool EvalEmitter::emitCastIntAPSint32(SourceInfo L) { |
| 8210 | if (!isActive()) return true; |
| 8211 | CurrentSource = L; |
| 8212 | return Cast<PT_IntAP, PT_Sint32>(S, CodePtr()); |
| 8213 | } |
| 8214 | bool EvalEmitter::emitCastIntAPUint64(SourceInfo L) { |
| 8215 | if (!isActive()) return true; |
| 8216 | CurrentSource = L; |
| 8217 | return Cast<PT_IntAP, PT_Uint64>(S, CodePtr()); |
| 8218 | } |
| 8219 | bool EvalEmitter::emitCastIntAPSint64(SourceInfo L) { |
| 8220 | if (!isActive()) return true; |
| 8221 | CurrentSource = L; |
| 8222 | return Cast<PT_IntAP, PT_Sint64>(S, CodePtr()); |
| 8223 | } |
| 8224 | bool EvalEmitter::emitCastIntAPBool(SourceInfo L) { |
| 8225 | if (!isActive()) return true; |
| 8226 | CurrentSource = L; |
| 8227 | return Cast<PT_IntAP, PT_Bool>(S, CodePtr()); |
| 8228 | } |
| 8229 | bool EvalEmitter::emitCastIntAPSUint8(SourceInfo L) { |
| 8230 | if (!isActive()) return true; |
| 8231 | CurrentSource = L; |
| 8232 | return Cast<PT_IntAPS, PT_Uint8>(S, CodePtr()); |
| 8233 | } |
| 8234 | bool EvalEmitter::emitCastIntAPSSint8(SourceInfo L) { |
| 8235 | if (!isActive()) return true; |
| 8236 | CurrentSource = L; |
| 8237 | return Cast<PT_IntAPS, PT_Sint8>(S, CodePtr()); |
| 8238 | } |
| 8239 | bool EvalEmitter::emitCastIntAPSUint16(SourceInfo L) { |
| 8240 | if (!isActive()) return true; |
| 8241 | CurrentSource = L; |
| 8242 | return Cast<PT_IntAPS, PT_Uint16>(S, CodePtr()); |
| 8243 | } |
| 8244 | bool EvalEmitter::emitCastIntAPSSint16(SourceInfo L) { |
| 8245 | if (!isActive()) return true; |
| 8246 | CurrentSource = L; |
| 8247 | return Cast<PT_IntAPS, PT_Sint16>(S, CodePtr()); |
| 8248 | } |
| 8249 | bool EvalEmitter::emitCastIntAPSUint32(SourceInfo L) { |
| 8250 | if (!isActive()) return true; |
| 8251 | CurrentSource = L; |
| 8252 | return Cast<PT_IntAPS, PT_Uint32>(S, CodePtr()); |
| 8253 | } |
| 8254 | bool EvalEmitter::emitCastIntAPSSint32(SourceInfo L) { |
| 8255 | if (!isActive()) return true; |
| 8256 | CurrentSource = L; |
| 8257 | return Cast<PT_IntAPS, PT_Sint32>(S, CodePtr()); |
| 8258 | } |
| 8259 | bool EvalEmitter::emitCastIntAPSUint64(SourceInfo L) { |
| 8260 | if (!isActive()) return true; |
| 8261 | CurrentSource = L; |
| 8262 | return Cast<PT_IntAPS, PT_Uint64>(S, CodePtr()); |
| 8263 | } |
| 8264 | bool EvalEmitter::emitCastIntAPSSint64(SourceInfo L) { |
| 8265 | if (!isActive()) return true; |
| 8266 | CurrentSource = L; |
| 8267 | return Cast<PT_IntAPS, PT_Sint64>(S, CodePtr()); |
| 8268 | } |
| 8269 | bool EvalEmitter::emitCastIntAPSBool(SourceInfo L) { |
| 8270 | if (!isActive()) return true; |
| 8271 | CurrentSource = L; |
| 8272 | return Cast<PT_IntAPS, PT_Bool>(S, CodePtr()); |
| 8273 | } |
| 8274 | bool EvalEmitter::emitCastFixedPointUint8(SourceInfo L) { |
| 8275 | if (!isActive()) return true; |
| 8276 | CurrentSource = L; |
| 8277 | return Cast<PT_FixedPoint, PT_Uint8>(S, CodePtr()); |
| 8278 | } |
| 8279 | bool EvalEmitter::emitCastFixedPointSint8(SourceInfo L) { |
| 8280 | if (!isActive()) return true; |
| 8281 | CurrentSource = L; |
| 8282 | return Cast<PT_FixedPoint, PT_Sint8>(S, CodePtr()); |
| 8283 | } |
| 8284 | bool EvalEmitter::emitCastFixedPointUint16(SourceInfo L) { |
| 8285 | if (!isActive()) return true; |
| 8286 | CurrentSource = L; |
| 8287 | return Cast<PT_FixedPoint, PT_Uint16>(S, CodePtr()); |
| 8288 | } |
| 8289 | bool EvalEmitter::emitCastFixedPointSint16(SourceInfo L) { |
| 8290 | if (!isActive()) return true; |
| 8291 | CurrentSource = L; |
| 8292 | return Cast<PT_FixedPoint, PT_Sint16>(S, CodePtr()); |
| 8293 | } |
| 8294 | bool EvalEmitter::emitCastFixedPointUint32(SourceInfo L) { |
| 8295 | if (!isActive()) return true; |
| 8296 | CurrentSource = L; |
| 8297 | return Cast<PT_FixedPoint, PT_Uint32>(S, CodePtr()); |
| 8298 | } |
| 8299 | bool EvalEmitter::emitCastFixedPointSint32(SourceInfo L) { |
| 8300 | if (!isActive()) return true; |
| 8301 | CurrentSource = L; |
| 8302 | return Cast<PT_FixedPoint, PT_Sint32>(S, CodePtr()); |
| 8303 | } |
| 8304 | bool EvalEmitter::emitCastFixedPointUint64(SourceInfo L) { |
| 8305 | if (!isActive()) return true; |
| 8306 | CurrentSource = L; |
| 8307 | return Cast<PT_FixedPoint, PT_Uint64>(S, CodePtr()); |
| 8308 | } |
| 8309 | bool EvalEmitter::emitCastFixedPointSint64(SourceInfo L) { |
| 8310 | if (!isActive()) return true; |
| 8311 | CurrentSource = L; |
| 8312 | return Cast<PT_FixedPoint, PT_Sint64>(S, CodePtr()); |
| 8313 | } |
| 8314 | bool EvalEmitter::emitCastFixedPointBool(SourceInfo L) { |
| 8315 | if (!isActive()) return true; |
| 8316 | CurrentSource = L; |
| 8317 | return Cast<PT_FixedPoint, PT_Bool>(S, CodePtr()); |
| 8318 | } |
| 8319 | #endif |
| 8320 | #ifdef GET_OPCODE_NAMES |
| 8321 | OP_CastAPSint8, |
| 8322 | OP_CastAPUint8, |
| 8323 | OP_CastAPSint16, |
| 8324 | OP_CastAPUint16, |
| 8325 | OP_CastAPSint32, |
| 8326 | OP_CastAPUint32, |
| 8327 | OP_CastAPSint64, |
| 8328 | OP_CastAPUint64, |
| 8329 | OP_CastAPIntAP, |
| 8330 | OP_CastAPIntAPS, |
| 8331 | OP_CastAPBool, |
| 8332 | OP_CastAPFixedPoint, |
| 8333 | #endif |
| 8334 | #ifdef GET_INTERPFN_LIST |
| 8335 | &Interp_CastAPSint8, |
| 8336 | &Interp_CastAPUint8, |
| 8337 | &Interp_CastAPSint16, |
| 8338 | &Interp_CastAPUint16, |
| 8339 | &Interp_CastAPSint32, |
| 8340 | &Interp_CastAPUint32, |
| 8341 | &Interp_CastAPSint64, |
| 8342 | &Interp_CastAPUint64, |
| 8343 | &Interp_CastAPIntAP, |
| 8344 | &Interp_CastAPIntAPS, |
| 8345 | &Interp_CastAPBool, |
| 8346 | &Interp_CastAPFixedPoint, |
| 8347 | #endif |
| 8348 | #ifdef GET_INTERPFN_DISPATCHERS |
| 8349 | PRESERVE_NONE |
| 8350 | static bool Interp_CastAPSint8(InterpState &S) { |
| 8351 | { |
| 8352 | const auto V0 = ReadArg<uint32_t>(S, S.PC); |
| 8353 | if (!CastAP<PT_Sint8>(S, V0)) return false; |
| 8354 | } |
| 8355 | #if USE_TAILCALLS |
| 8356 | MUSTTAIL return InterpNext(S); |
| 8357 | #else |
| 8358 | return true; |
| 8359 | #endif |
| 8360 | } |
| 8361 | PRESERVE_NONE |
| 8362 | static bool Interp_CastAPUint8(InterpState &S) { |
| 8363 | { |
| 8364 | const auto V0 = ReadArg<uint32_t>(S, S.PC); |
| 8365 | if (!CastAP<PT_Uint8>(S, V0)) return false; |
| 8366 | } |
| 8367 | #if USE_TAILCALLS |
| 8368 | MUSTTAIL return InterpNext(S); |
| 8369 | #else |
| 8370 | return true; |
| 8371 | #endif |
| 8372 | } |
| 8373 | PRESERVE_NONE |
| 8374 | static bool Interp_CastAPSint16(InterpState &S) { |
| 8375 | { |
| 8376 | const auto V0 = ReadArg<uint32_t>(S, S.PC); |
| 8377 | if (!CastAP<PT_Sint16>(S, V0)) return false; |
| 8378 | } |
| 8379 | #if USE_TAILCALLS |
| 8380 | MUSTTAIL return InterpNext(S); |
| 8381 | #else |
| 8382 | return true; |
| 8383 | #endif |
| 8384 | } |
| 8385 | PRESERVE_NONE |
| 8386 | static bool Interp_CastAPUint16(InterpState &S) { |
| 8387 | { |
| 8388 | const auto V0 = ReadArg<uint32_t>(S, S.PC); |
| 8389 | if (!CastAP<PT_Uint16>(S, V0)) return false; |
| 8390 | } |
| 8391 | #if USE_TAILCALLS |
| 8392 | MUSTTAIL return InterpNext(S); |
| 8393 | #else |
| 8394 | return true; |
| 8395 | #endif |
| 8396 | } |
| 8397 | PRESERVE_NONE |
| 8398 | static bool Interp_CastAPSint32(InterpState &S) { |
| 8399 | { |
| 8400 | const auto V0 = ReadArg<uint32_t>(S, S.PC); |
| 8401 | if (!CastAP<PT_Sint32>(S, V0)) return false; |
| 8402 | } |
| 8403 | #if USE_TAILCALLS |
| 8404 | MUSTTAIL return InterpNext(S); |
| 8405 | #else |
| 8406 | return true; |
| 8407 | #endif |
| 8408 | } |
| 8409 | PRESERVE_NONE |
| 8410 | static bool Interp_CastAPUint32(InterpState &S) { |
| 8411 | { |
| 8412 | const auto V0 = ReadArg<uint32_t>(S, S.PC); |
| 8413 | if (!CastAP<PT_Uint32>(S, V0)) return false; |
| 8414 | } |
| 8415 | #if USE_TAILCALLS |
| 8416 | MUSTTAIL return InterpNext(S); |
| 8417 | #else |
| 8418 | return true; |
| 8419 | #endif |
| 8420 | } |
| 8421 | PRESERVE_NONE |
| 8422 | static bool Interp_CastAPSint64(InterpState &S) { |
| 8423 | { |
| 8424 | const auto V0 = ReadArg<uint32_t>(S, S.PC); |
| 8425 | if (!CastAP<PT_Sint64>(S, V0)) return false; |
| 8426 | } |
| 8427 | #if USE_TAILCALLS |
| 8428 | MUSTTAIL return InterpNext(S); |
| 8429 | #else |
| 8430 | return true; |
| 8431 | #endif |
| 8432 | } |
| 8433 | PRESERVE_NONE |
| 8434 | static bool Interp_CastAPUint64(InterpState &S) { |
| 8435 | { |
| 8436 | const auto V0 = ReadArg<uint32_t>(S, S.PC); |
| 8437 | if (!CastAP<PT_Uint64>(S, V0)) return false; |
| 8438 | } |
| 8439 | #if USE_TAILCALLS |
| 8440 | MUSTTAIL return InterpNext(S); |
| 8441 | #else |
| 8442 | return true; |
| 8443 | #endif |
| 8444 | } |
| 8445 | PRESERVE_NONE |
| 8446 | static bool Interp_CastAPIntAP(InterpState &S) { |
| 8447 | { |
| 8448 | const auto V0 = ReadArg<uint32_t>(S, S.PC); |
| 8449 | if (!CastAP<PT_IntAP>(S, V0)) return false; |
| 8450 | } |
| 8451 | #if USE_TAILCALLS |
| 8452 | MUSTTAIL return InterpNext(S); |
| 8453 | #else |
| 8454 | return true; |
| 8455 | #endif |
| 8456 | } |
| 8457 | PRESERVE_NONE |
| 8458 | static bool Interp_CastAPIntAPS(InterpState &S) { |
| 8459 | { |
| 8460 | const auto V0 = ReadArg<uint32_t>(S, S.PC); |
| 8461 | if (!CastAP<PT_IntAPS>(S, V0)) return false; |
| 8462 | } |
| 8463 | #if USE_TAILCALLS |
| 8464 | MUSTTAIL return InterpNext(S); |
| 8465 | #else |
| 8466 | return true; |
| 8467 | #endif |
| 8468 | } |
| 8469 | PRESERVE_NONE |
| 8470 | static bool Interp_CastAPBool(InterpState &S) { |
| 8471 | { |
| 8472 | const auto V0 = ReadArg<uint32_t>(S, S.PC); |
| 8473 | if (!CastAP<PT_Bool>(S, V0)) return false; |
| 8474 | } |
| 8475 | #if USE_TAILCALLS |
| 8476 | MUSTTAIL return InterpNext(S); |
| 8477 | #else |
| 8478 | return true; |
| 8479 | #endif |
| 8480 | } |
| 8481 | PRESERVE_NONE |
| 8482 | static bool Interp_CastAPFixedPoint(InterpState &S) { |
| 8483 | { |
| 8484 | const auto V0 = ReadArg<uint32_t>(S, S.PC); |
| 8485 | if (!CastAP<PT_FixedPoint>(S, V0)) return false; |
| 8486 | } |
| 8487 | #if USE_TAILCALLS |
| 8488 | MUSTTAIL return InterpNext(S); |
| 8489 | #else |
| 8490 | return true; |
| 8491 | #endif |
| 8492 | } |
| 8493 | #endif |
| 8494 | #ifdef GET_DISASM |
| 8495 | case OP_CastAPSint8: |
| 8496 | Text.Op = PrintName("CastAPSint8" ); |
| 8497 | Text.Args.push_back(printArg<uint32_t>(PC)); |
| 8498 | break; |
| 8499 | case OP_CastAPUint8: |
| 8500 | Text.Op = PrintName("CastAPUint8" ); |
| 8501 | Text.Args.push_back(printArg<uint32_t>(PC)); |
| 8502 | break; |
| 8503 | case OP_CastAPSint16: |
| 8504 | Text.Op = PrintName("CastAPSint16" ); |
| 8505 | Text.Args.push_back(printArg<uint32_t>(PC)); |
| 8506 | break; |
| 8507 | case OP_CastAPUint16: |
| 8508 | Text.Op = PrintName("CastAPUint16" ); |
| 8509 | Text.Args.push_back(printArg<uint32_t>(PC)); |
| 8510 | break; |
| 8511 | case OP_CastAPSint32: |
| 8512 | Text.Op = PrintName("CastAPSint32" ); |
| 8513 | Text.Args.push_back(printArg<uint32_t>(PC)); |
| 8514 | break; |
| 8515 | case OP_CastAPUint32: |
| 8516 | Text.Op = PrintName("CastAPUint32" ); |
| 8517 | Text.Args.push_back(printArg<uint32_t>(PC)); |
| 8518 | break; |
| 8519 | case OP_CastAPSint64: |
| 8520 | Text.Op = PrintName("CastAPSint64" ); |
| 8521 | Text.Args.push_back(printArg<uint32_t>(PC)); |
| 8522 | break; |
| 8523 | case OP_CastAPUint64: |
| 8524 | Text.Op = PrintName("CastAPUint64" ); |
| 8525 | Text.Args.push_back(printArg<uint32_t>(PC)); |
| 8526 | break; |
| 8527 | case OP_CastAPIntAP: |
| 8528 | Text.Op = PrintName("CastAPIntAP" ); |
| 8529 | Text.Args.push_back(printArg<uint32_t>(PC)); |
| 8530 | break; |
| 8531 | case OP_CastAPIntAPS: |
| 8532 | Text.Op = PrintName("CastAPIntAPS" ); |
| 8533 | Text.Args.push_back(printArg<uint32_t>(PC)); |
| 8534 | break; |
| 8535 | case OP_CastAPBool: |
| 8536 | Text.Op = PrintName("CastAPBool" ); |
| 8537 | Text.Args.push_back(printArg<uint32_t>(PC)); |
| 8538 | break; |
| 8539 | case OP_CastAPFixedPoint: |
| 8540 | Text.Op = PrintName("CastAPFixedPoint" ); |
| 8541 | Text.Args.push_back(printArg<uint32_t>(PC)); |
| 8542 | break; |
| 8543 | #endif |
| 8544 | #if defined(GET_EVAL_PROTO) || defined(GET_LINK_PROTO) |
| 8545 | bool emitCastAPSint8( uint32_t , SourceInfo); |
| 8546 | bool emitCastAPUint8( uint32_t , SourceInfo); |
| 8547 | bool emitCastAPSint16( uint32_t , SourceInfo); |
| 8548 | bool emitCastAPUint16( uint32_t , SourceInfo); |
| 8549 | bool emitCastAPSint32( uint32_t , SourceInfo); |
| 8550 | bool emitCastAPUint32( uint32_t , SourceInfo); |
| 8551 | bool emitCastAPSint64( uint32_t , SourceInfo); |
| 8552 | bool emitCastAPUint64( uint32_t , SourceInfo); |
| 8553 | bool emitCastAPIntAP( uint32_t , SourceInfo); |
| 8554 | bool emitCastAPIntAPS( uint32_t , SourceInfo); |
| 8555 | bool emitCastAPBool( uint32_t , SourceInfo); |
| 8556 | bool emitCastAPFixedPoint( uint32_t , SourceInfo); |
| 8557 | #endif |
| 8558 | #if defined(GET_EVAL_PROTO) || defined(GET_LINK_PROTO) |
| 8559 | [[nodiscard]] bool emitCastAP(PrimType, uint32_t, SourceInfo I); |
| 8560 | #endif |
| 8561 | #if defined(GET_EVAL_IMPL) || defined(GET_LINK_IMPL) |
| 8562 | bool |
| 8563 | #if defined(GET_EVAL_IMPL) |
| 8564 | EvalEmitter |
| 8565 | #else |
| 8566 | ByteCodeEmitter |
| 8567 | #endif |
| 8568 | ::emitCastAP(PrimType T0, uint32_t A0, SourceInfo I) { |
| 8569 | switch (T0) { |
| 8570 | case PT_Sint8: |
| 8571 | return emitCastAPSint8(A0, I); |
| 8572 | case PT_Uint8: |
| 8573 | return emitCastAPUint8(A0, I); |
| 8574 | case PT_Sint16: |
| 8575 | return emitCastAPSint16(A0, I); |
| 8576 | case PT_Uint16: |
| 8577 | return emitCastAPUint16(A0, I); |
| 8578 | case PT_Sint32: |
| 8579 | return emitCastAPSint32(A0, I); |
| 8580 | case PT_Uint32: |
| 8581 | return emitCastAPUint32(A0, I); |
| 8582 | case PT_Sint64: |
| 8583 | return emitCastAPSint64(A0, I); |
| 8584 | case PT_Uint64: |
| 8585 | return emitCastAPUint64(A0, I); |
| 8586 | case PT_IntAP: |
| 8587 | return emitCastAPIntAP(A0, I); |
| 8588 | case PT_IntAPS: |
| 8589 | return emitCastAPIntAPS(A0, I); |
| 8590 | case PT_Bool: |
| 8591 | return emitCastAPBool(A0, I); |
| 8592 | case PT_FixedPoint: |
| 8593 | return emitCastAPFixedPoint(A0, I); |
| 8594 | default: llvm_unreachable("invalid type: emitCastAP" ); |
| 8595 | } |
| 8596 | llvm_unreachable("invalid enum value" ); |
| 8597 | } |
| 8598 | #endif |
| 8599 | #ifdef GET_LINK_IMPL |
| 8600 | bool ByteCodeEmitter::emitCastAPSint8( uint32_t A0, SourceInfo L) { |
| 8601 | return emitOp<uint32_t>(OP_CastAPSint8, A0, L); |
| 8602 | } |
| 8603 | bool ByteCodeEmitter::emitCastAPUint8( uint32_t A0, SourceInfo L) { |
| 8604 | return emitOp<uint32_t>(OP_CastAPUint8, A0, L); |
| 8605 | } |
| 8606 | bool ByteCodeEmitter::emitCastAPSint16( uint32_t A0, SourceInfo L) { |
| 8607 | return emitOp<uint32_t>(OP_CastAPSint16, A0, L); |
| 8608 | } |
| 8609 | bool ByteCodeEmitter::emitCastAPUint16( uint32_t A0, SourceInfo L) { |
| 8610 | return emitOp<uint32_t>(OP_CastAPUint16, A0, L); |
| 8611 | } |
| 8612 | bool ByteCodeEmitter::emitCastAPSint32( uint32_t A0, SourceInfo L) { |
| 8613 | return emitOp<uint32_t>(OP_CastAPSint32, A0, L); |
| 8614 | } |
| 8615 | bool ByteCodeEmitter::emitCastAPUint32( uint32_t A0, SourceInfo L) { |
| 8616 | return emitOp<uint32_t>(OP_CastAPUint32, A0, L); |
| 8617 | } |
| 8618 | bool ByteCodeEmitter::emitCastAPSint64( uint32_t A0, SourceInfo L) { |
| 8619 | return emitOp<uint32_t>(OP_CastAPSint64, A0, L); |
| 8620 | } |
| 8621 | bool ByteCodeEmitter::emitCastAPUint64( uint32_t A0, SourceInfo L) { |
| 8622 | return emitOp<uint32_t>(OP_CastAPUint64, A0, L); |
| 8623 | } |
| 8624 | bool ByteCodeEmitter::emitCastAPIntAP( uint32_t A0, SourceInfo L) { |
| 8625 | return emitOp<uint32_t>(OP_CastAPIntAP, A0, L); |
| 8626 | } |
| 8627 | bool ByteCodeEmitter::emitCastAPIntAPS( uint32_t A0, SourceInfo L) { |
| 8628 | return emitOp<uint32_t>(OP_CastAPIntAPS, A0, L); |
| 8629 | } |
| 8630 | bool ByteCodeEmitter::emitCastAPBool( uint32_t A0, SourceInfo L) { |
| 8631 | return emitOp<uint32_t>(OP_CastAPBool, A0, L); |
| 8632 | } |
| 8633 | bool ByteCodeEmitter::emitCastAPFixedPoint( uint32_t A0, SourceInfo L) { |
| 8634 | return emitOp<uint32_t>(OP_CastAPFixedPoint, A0, L); |
| 8635 | } |
| 8636 | #endif |
| 8637 | #ifdef GET_EVAL_IMPL |
| 8638 | bool EvalEmitter::emitCastAPSint8( uint32_t A0, SourceInfo L) { |
| 8639 | if (!isActive()) return true; |
| 8640 | CurrentSource = L; |
| 8641 | return CastAP<PT_Sint8>(S, A0); |
| 8642 | } |
| 8643 | bool EvalEmitter::emitCastAPUint8( uint32_t A0, SourceInfo L) { |
| 8644 | if (!isActive()) return true; |
| 8645 | CurrentSource = L; |
| 8646 | return CastAP<PT_Uint8>(S, A0); |
| 8647 | } |
| 8648 | bool EvalEmitter::emitCastAPSint16( uint32_t A0, SourceInfo L) { |
| 8649 | if (!isActive()) return true; |
| 8650 | CurrentSource = L; |
| 8651 | return CastAP<PT_Sint16>(S, A0); |
| 8652 | } |
| 8653 | bool EvalEmitter::emitCastAPUint16( uint32_t A0, SourceInfo L) { |
| 8654 | if (!isActive()) return true; |
| 8655 | CurrentSource = L; |
| 8656 | return CastAP<PT_Uint16>(S, A0); |
| 8657 | } |
| 8658 | bool EvalEmitter::emitCastAPSint32( uint32_t A0, SourceInfo L) { |
| 8659 | if (!isActive()) return true; |
| 8660 | CurrentSource = L; |
| 8661 | return CastAP<PT_Sint32>(S, A0); |
| 8662 | } |
| 8663 | bool EvalEmitter::emitCastAPUint32( uint32_t A0, SourceInfo L) { |
| 8664 | if (!isActive()) return true; |
| 8665 | CurrentSource = L; |
| 8666 | return CastAP<PT_Uint32>(S, A0); |
| 8667 | } |
| 8668 | bool EvalEmitter::emitCastAPSint64( uint32_t A0, SourceInfo L) { |
| 8669 | if (!isActive()) return true; |
| 8670 | CurrentSource = L; |
| 8671 | return CastAP<PT_Sint64>(S, A0); |
| 8672 | } |
| 8673 | bool EvalEmitter::emitCastAPUint64( uint32_t A0, SourceInfo L) { |
| 8674 | if (!isActive()) return true; |
| 8675 | CurrentSource = L; |
| 8676 | return CastAP<PT_Uint64>(S, A0); |
| 8677 | } |
| 8678 | bool EvalEmitter::emitCastAPIntAP( uint32_t A0, SourceInfo L) { |
| 8679 | if (!isActive()) return true; |
| 8680 | CurrentSource = L; |
| 8681 | return CastAP<PT_IntAP>(S, A0); |
| 8682 | } |
| 8683 | bool EvalEmitter::emitCastAPIntAPS( uint32_t A0, SourceInfo L) { |
| 8684 | if (!isActive()) return true; |
| 8685 | CurrentSource = L; |
| 8686 | return CastAP<PT_IntAPS>(S, A0); |
| 8687 | } |
| 8688 | bool EvalEmitter::emitCastAPBool( uint32_t A0, SourceInfo L) { |
| 8689 | if (!isActive()) return true; |
| 8690 | CurrentSource = L; |
| 8691 | return CastAP<PT_Bool>(S, A0); |
| 8692 | } |
| 8693 | bool EvalEmitter::emitCastAPFixedPoint( uint32_t A0, SourceInfo L) { |
| 8694 | if (!isActive()) return true; |
| 8695 | CurrentSource = L; |
| 8696 | return CastAP<PT_FixedPoint>(S, A0); |
| 8697 | } |
| 8698 | #endif |
| 8699 | #ifdef GET_OPCODE_NAMES |
| 8700 | OP_CastAPSSint8, |
| 8701 | OP_CastAPSUint8, |
| 8702 | OP_CastAPSSint16, |
| 8703 | OP_CastAPSUint16, |
| 8704 | OP_CastAPSSint32, |
| 8705 | OP_CastAPSUint32, |
| 8706 | OP_CastAPSSint64, |
| 8707 | OP_CastAPSUint64, |
| 8708 | OP_CastAPSIntAP, |
| 8709 | OP_CastAPSIntAPS, |
| 8710 | OP_CastAPSBool, |
| 8711 | OP_CastAPSFixedPoint, |
| 8712 | #endif |
| 8713 | #ifdef GET_INTERPFN_LIST |
| 8714 | &Interp_CastAPSSint8, |
| 8715 | &Interp_CastAPSUint8, |
| 8716 | &Interp_CastAPSSint16, |
| 8717 | &Interp_CastAPSUint16, |
| 8718 | &Interp_CastAPSSint32, |
| 8719 | &Interp_CastAPSUint32, |
| 8720 | &Interp_CastAPSSint64, |
| 8721 | &Interp_CastAPSUint64, |
| 8722 | &Interp_CastAPSIntAP, |
| 8723 | &Interp_CastAPSIntAPS, |
| 8724 | &Interp_CastAPSBool, |
| 8725 | &Interp_CastAPSFixedPoint, |
| 8726 | #endif |
| 8727 | #ifdef GET_INTERPFN_DISPATCHERS |
| 8728 | PRESERVE_NONE |
| 8729 | static bool Interp_CastAPSSint8(InterpState &S) { |
| 8730 | { |
| 8731 | const auto V0 = ReadArg<uint32_t>(S, S.PC); |
| 8732 | if (!CastAPS<PT_Sint8>(S, V0)) return false; |
| 8733 | } |
| 8734 | #if USE_TAILCALLS |
| 8735 | MUSTTAIL return InterpNext(S); |
| 8736 | #else |
| 8737 | return true; |
| 8738 | #endif |
| 8739 | } |
| 8740 | PRESERVE_NONE |
| 8741 | static bool Interp_CastAPSUint8(InterpState &S) { |
| 8742 | { |
| 8743 | const auto V0 = ReadArg<uint32_t>(S, S.PC); |
| 8744 | if (!CastAPS<PT_Uint8>(S, V0)) return false; |
| 8745 | } |
| 8746 | #if USE_TAILCALLS |
| 8747 | MUSTTAIL return InterpNext(S); |
| 8748 | #else |
| 8749 | return true; |
| 8750 | #endif |
| 8751 | } |
| 8752 | PRESERVE_NONE |
| 8753 | static bool Interp_CastAPSSint16(InterpState &S) { |
| 8754 | { |
| 8755 | const auto V0 = ReadArg<uint32_t>(S, S.PC); |
| 8756 | if (!CastAPS<PT_Sint16>(S, V0)) return false; |
| 8757 | } |
| 8758 | #if USE_TAILCALLS |
| 8759 | MUSTTAIL return InterpNext(S); |
| 8760 | #else |
| 8761 | return true; |
| 8762 | #endif |
| 8763 | } |
| 8764 | PRESERVE_NONE |
| 8765 | static bool Interp_CastAPSUint16(InterpState &S) { |
| 8766 | { |
| 8767 | const auto V0 = ReadArg<uint32_t>(S, S.PC); |
| 8768 | if (!CastAPS<PT_Uint16>(S, V0)) return false; |
| 8769 | } |
| 8770 | #if USE_TAILCALLS |
| 8771 | MUSTTAIL return InterpNext(S); |
| 8772 | #else |
| 8773 | return true; |
| 8774 | #endif |
| 8775 | } |
| 8776 | PRESERVE_NONE |
| 8777 | static bool Interp_CastAPSSint32(InterpState &S) { |
| 8778 | { |
| 8779 | const auto V0 = ReadArg<uint32_t>(S, S.PC); |
| 8780 | if (!CastAPS<PT_Sint32>(S, V0)) return false; |
| 8781 | } |
| 8782 | #if USE_TAILCALLS |
| 8783 | MUSTTAIL return InterpNext(S); |
| 8784 | #else |
| 8785 | return true; |
| 8786 | #endif |
| 8787 | } |
| 8788 | PRESERVE_NONE |
| 8789 | static bool Interp_CastAPSUint32(InterpState &S) { |
| 8790 | { |
| 8791 | const auto V0 = ReadArg<uint32_t>(S, S.PC); |
| 8792 | if (!CastAPS<PT_Uint32>(S, V0)) return false; |
| 8793 | } |
| 8794 | #if USE_TAILCALLS |
| 8795 | MUSTTAIL return InterpNext(S); |
| 8796 | #else |
| 8797 | return true; |
| 8798 | #endif |
| 8799 | } |
| 8800 | PRESERVE_NONE |
| 8801 | static bool Interp_CastAPSSint64(InterpState &S) { |
| 8802 | { |
| 8803 | const auto V0 = ReadArg<uint32_t>(S, S.PC); |
| 8804 | if (!CastAPS<PT_Sint64>(S, V0)) return false; |
| 8805 | } |
| 8806 | #if USE_TAILCALLS |
| 8807 | MUSTTAIL return InterpNext(S); |
| 8808 | #else |
| 8809 | return true; |
| 8810 | #endif |
| 8811 | } |
| 8812 | PRESERVE_NONE |
| 8813 | static bool Interp_CastAPSUint64(InterpState &S) { |
| 8814 | { |
| 8815 | const auto V0 = ReadArg<uint32_t>(S, S.PC); |
| 8816 | if (!CastAPS<PT_Uint64>(S, V0)) return false; |
| 8817 | } |
| 8818 | #if USE_TAILCALLS |
| 8819 | MUSTTAIL return InterpNext(S); |
| 8820 | #else |
| 8821 | return true; |
| 8822 | #endif |
| 8823 | } |
| 8824 | PRESERVE_NONE |
| 8825 | static bool Interp_CastAPSIntAP(InterpState &S) { |
| 8826 | { |
| 8827 | const auto V0 = ReadArg<uint32_t>(S, S.PC); |
| 8828 | if (!CastAPS<PT_IntAP>(S, V0)) return false; |
| 8829 | } |
| 8830 | #if USE_TAILCALLS |
| 8831 | MUSTTAIL return InterpNext(S); |
| 8832 | #else |
| 8833 | return true; |
| 8834 | #endif |
| 8835 | } |
| 8836 | PRESERVE_NONE |
| 8837 | static bool Interp_CastAPSIntAPS(InterpState &S) { |
| 8838 | { |
| 8839 | const auto V0 = ReadArg<uint32_t>(S, S.PC); |
| 8840 | if (!CastAPS<PT_IntAPS>(S, V0)) return false; |
| 8841 | } |
| 8842 | #if USE_TAILCALLS |
| 8843 | MUSTTAIL return InterpNext(S); |
| 8844 | #else |
| 8845 | return true; |
| 8846 | #endif |
| 8847 | } |
| 8848 | PRESERVE_NONE |
| 8849 | static bool Interp_CastAPSBool(InterpState &S) { |
| 8850 | { |
| 8851 | const auto V0 = ReadArg<uint32_t>(S, S.PC); |
| 8852 | if (!CastAPS<PT_Bool>(S, V0)) return false; |
| 8853 | } |
| 8854 | #if USE_TAILCALLS |
| 8855 | MUSTTAIL return InterpNext(S); |
| 8856 | #else |
| 8857 | return true; |
| 8858 | #endif |
| 8859 | } |
| 8860 | PRESERVE_NONE |
| 8861 | static bool Interp_CastAPSFixedPoint(InterpState &S) { |
| 8862 | { |
| 8863 | const auto V0 = ReadArg<uint32_t>(S, S.PC); |
| 8864 | if (!CastAPS<PT_FixedPoint>(S, V0)) return false; |
| 8865 | } |
| 8866 | #if USE_TAILCALLS |
| 8867 | MUSTTAIL return InterpNext(S); |
| 8868 | #else |
| 8869 | return true; |
| 8870 | #endif |
| 8871 | } |
| 8872 | #endif |
| 8873 | #ifdef GET_DISASM |
| 8874 | case OP_CastAPSSint8: |
| 8875 | Text.Op = PrintName("CastAPSSint8" ); |
| 8876 | Text.Args.push_back(printArg<uint32_t>(PC)); |
| 8877 | break; |
| 8878 | case OP_CastAPSUint8: |
| 8879 | Text.Op = PrintName("CastAPSUint8" ); |
| 8880 | Text.Args.push_back(printArg<uint32_t>(PC)); |
| 8881 | break; |
| 8882 | case OP_CastAPSSint16: |
| 8883 | Text.Op = PrintName("CastAPSSint16" ); |
| 8884 | Text.Args.push_back(printArg<uint32_t>(PC)); |
| 8885 | break; |
| 8886 | case OP_CastAPSUint16: |
| 8887 | Text.Op = PrintName("CastAPSUint16" ); |
| 8888 | Text.Args.push_back(printArg<uint32_t>(PC)); |
| 8889 | break; |
| 8890 | case OP_CastAPSSint32: |
| 8891 | Text.Op = PrintName("CastAPSSint32" ); |
| 8892 | Text.Args.push_back(printArg<uint32_t>(PC)); |
| 8893 | break; |
| 8894 | case OP_CastAPSUint32: |
| 8895 | Text.Op = PrintName("CastAPSUint32" ); |
| 8896 | Text.Args.push_back(printArg<uint32_t>(PC)); |
| 8897 | break; |
| 8898 | case OP_CastAPSSint64: |
| 8899 | Text.Op = PrintName("CastAPSSint64" ); |
| 8900 | Text.Args.push_back(printArg<uint32_t>(PC)); |
| 8901 | break; |
| 8902 | case OP_CastAPSUint64: |
| 8903 | Text.Op = PrintName("CastAPSUint64" ); |
| 8904 | Text.Args.push_back(printArg<uint32_t>(PC)); |
| 8905 | break; |
| 8906 | case OP_CastAPSIntAP: |
| 8907 | Text.Op = PrintName("CastAPSIntAP" ); |
| 8908 | Text.Args.push_back(printArg<uint32_t>(PC)); |
| 8909 | break; |
| 8910 | case OP_CastAPSIntAPS: |
| 8911 | Text.Op = PrintName("CastAPSIntAPS" ); |
| 8912 | Text.Args.push_back(printArg<uint32_t>(PC)); |
| 8913 | break; |
| 8914 | case OP_CastAPSBool: |
| 8915 | Text.Op = PrintName("CastAPSBool" ); |
| 8916 | Text.Args.push_back(printArg<uint32_t>(PC)); |
| 8917 | break; |
| 8918 | case OP_CastAPSFixedPoint: |
| 8919 | Text.Op = PrintName("CastAPSFixedPoint" ); |
| 8920 | Text.Args.push_back(printArg<uint32_t>(PC)); |
| 8921 | break; |
| 8922 | #endif |
| 8923 | #if defined(GET_EVAL_PROTO) || defined(GET_LINK_PROTO) |
| 8924 | bool emitCastAPSSint8( uint32_t , SourceInfo); |
| 8925 | bool emitCastAPSUint8( uint32_t , SourceInfo); |
| 8926 | bool emitCastAPSSint16( uint32_t , SourceInfo); |
| 8927 | bool emitCastAPSUint16( uint32_t , SourceInfo); |
| 8928 | bool emitCastAPSSint32( uint32_t , SourceInfo); |
| 8929 | bool emitCastAPSUint32( uint32_t , SourceInfo); |
| 8930 | bool emitCastAPSSint64( uint32_t , SourceInfo); |
| 8931 | bool emitCastAPSUint64( uint32_t , SourceInfo); |
| 8932 | bool emitCastAPSIntAP( uint32_t , SourceInfo); |
| 8933 | bool emitCastAPSIntAPS( uint32_t , SourceInfo); |
| 8934 | bool emitCastAPSBool( uint32_t , SourceInfo); |
| 8935 | bool emitCastAPSFixedPoint( uint32_t , SourceInfo); |
| 8936 | #endif |
| 8937 | #if defined(GET_EVAL_PROTO) || defined(GET_LINK_PROTO) |
| 8938 | [[nodiscard]] bool emitCastAPS(PrimType, uint32_t, SourceInfo I); |
| 8939 | #endif |
| 8940 | #if defined(GET_EVAL_IMPL) || defined(GET_LINK_IMPL) |
| 8941 | bool |
| 8942 | #if defined(GET_EVAL_IMPL) |
| 8943 | EvalEmitter |
| 8944 | #else |
| 8945 | ByteCodeEmitter |
| 8946 | #endif |
| 8947 | ::emitCastAPS(PrimType T0, uint32_t A0, SourceInfo I) { |
| 8948 | switch (T0) { |
| 8949 | case PT_Sint8: |
| 8950 | return emitCastAPSSint8(A0, I); |
| 8951 | case PT_Uint8: |
| 8952 | return emitCastAPSUint8(A0, I); |
| 8953 | case PT_Sint16: |
| 8954 | return emitCastAPSSint16(A0, I); |
| 8955 | case PT_Uint16: |
| 8956 | return emitCastAPSUint16(A0, I); |
| 8957 | case PT_Sint32: |
| 8958 | return emitCastAPSSint32(A0, I); |
| 8959 | case PT_Uint32: |
| 8960 | return emitCastAPSUint32(A0, I); |
| 8961 | case PT_Sint64: |
| 8962 | return emitCastAPSSint64(A0, I); |
| 8963 | case PT_Uint64: |
| 8964 | return emitCastAPSUint64(A0, I); |
| 8965 | case PT_IntAP: |
| 8966 | return emitCastAPSIntAP(A0, I); |
| 8967 | case PT_IntAPS: |
| 8968 | return emitCastAPSIntAPS(A0, I); |
| 8969 | case PT_Bool: |
| 8970 | return emitCastAPSBool(A0, I); |
| 8971 | case PT_FixedPoint: |
| 8972 | return emitCastAPSFixedPoint(A0, I); |
| 8973 | default: llvm_unreachable("invalid type: emitCastAPS" ); |
| 8974 | } |
| 8975 | llvm_unreachable("invalid enum value" ); |
| 8976 | } |
| 8977 | #endif |
| 8978 | #ifdef GET_LINK_IMPL |
| 8979 | bool ByteCodeEmitter::emitCastAPSSint8( uint32_t A0, SourceInfo L) { |
| 8980 | return emitOp<uint32_t>(OP_CastAPSSint8, A0, L); |
| 8981 | } |
| 8982 | bool ByteCodeEmitter::emitCastAPSUint8( uint32_t A0, SourceInfo L) { |
| 8983 | return emitOp<uint32_t>(OP_CastAPSUint8, A0, L); |
| 8984 | } |
| 8985 | bool ByteCodeEmitter::emitCastAPSSint16( uint32_t A0, SourceInfo L) { |
| 8986 | return emitOp<uint32_t>(OP_CastAPSSint16, A0, L); |
| 8987 | } |
| 8988 | bool ByteCodeEmitter::emitCastAPSUint16( uint32_t A0, SourceInfo L) { |
| 8989 | return emitOp<uint32_t>(OP_CastAPSUint16, A0, L); |
| 8990 | } |
| 8991 | bool ByteCodeEmitter::emitCastAPSSint32( uint32_t A0, SourceInfo L) { |
| 8992 | return emitOp<uint32_t>(OP_CastAPSSint32, A0, L); |
| 8993 | } |
| 8994 | bool ByteCodeEmitter::emitCastAPSUint32( uint32_t A0, SourceInfo L) { |
| 8995 | return emitOp<uint32_t>(OP_CastAPSUint32, A0, L); |
| 8996 | } |
| 8997 | bool ByteCodeEmitter::emitCastAPSSint64( uint32_t A0, SourceInfo L) { |
| 8998 | return emitOp<uint32_t>(OP_CastAPSSint64, A0, L); |
| 8999 | } |
| 9000 | bool ByteCodeEmitter::emitCastAPSUint64( uint32_t A0, SourceInfo L) { |
| 9001 | return emitOp<uint32_t>(OP_CastAPSUint64, A0, L); |
| 9002 | } |
| 9003 | bool ByteCodeEmitter::emitCastAPSIntAP( uint32_t A0, SourceInfo L) { |
| 9004 | return emitOp<uint32_t>(OP_CastAPSIntAP, A0, L); |
| 9005 | } |
| 9006 | bool ByteCodeEmitter::emitCastAPSIntAPS( uint32_t A0, SourceInfo L) { |
| 9007 | return emitOp<uint32_t>(OP_CastAPSIntAPS, A0, L); |
| 9008 | } |
| 9009 | bool ByteCodeEmitter::emitCastAPSBool( uint32_t A0, SourceInfo L) { |
| 9010 | return emitOp<uint32_t>(OP_CastAPSBool, A0, L); |
| 9011 | } |
| 9012 | bool ByteCodeEmitter::emitCastAPSFixedPoint( uint32_t A0, SourceInfo L) { |
| 9013 | return emitOp<uint32_t>(OP_CastAPSFixedPoint, A0, L); |
| 9014 | } |
| 9015 | #endif |
| 9016 | #ifdef GET_EVAL_IMPL |
| 9017 | bool EvalEmitter::emitCastAPSSint8( uint32_t A0, SourceInfo L) { |
| 9018 | if (!isActive()) return true; |
| 9019 | CurrentSource = L; |
| 9020 | return CastAPS<PT_Sint8>(S, A0); |
| 9021 | } |
| 9022 | bool EvalEmitter::emitCastAPSUint8( uint32_t A0, SourceInfo L) { |
| 9023 | if (!isActive()) return true; |
| 9024 | CurrentSource = L; |
| 9025 | return CastAPS<PT_Uint8>(S, A0); |
| 9026 | } |
| 9027 | bool EvalEmitter::emitCastAPSSint16( uint32_t A0, SourceInfo L) { |
| 9028 | if (!isActive()) return true; |
| 9029 | CurrentSource = L; |
| 9030 | return CastAPS<PT_Sint16>(S, A0); |
| 9031 | } |
| 9032 | bool EvalEmitter::emitCastAPSUint16( uint32_t A0, SourceInfo L) { |
| 9033 | if (!isActive()) return true; |
| 9034 | CurrentSource = L; |
| 9035 | return CastAPS<PT_Uint16>(S, A0); |
| 9036 | } |
| 9037 | bool EvalEmitter::emitCastAPSSint32( uint32_t A0, SourceInfo L) { |
| 9038 | if (!isActive()) return true; |
| 9039 | CurrentSource = L; |
| 9040 | return CastAPS<PT_Sint32>(S, A0); |
| 9041 | } |
| 9042 | bool EvalEmitter::emitCastAPSUint32( uint32_t A0, SourceInfo L) { |
| 9043 | if (!isActive()) return true; |
| 9044 | CurrentSource = L; |
| 9045 | return CastAPS<PT_Uint32>(S, A0); |
| 9046 | } |
| 9047 | bool EvalEmitter::emitCastAPSSint64( uint32_t A0, SourceInfo L) { |
| 9048 | if (!isActive()) return true; |
| 9049 | CurrentSource = L; |
| 9050 | return CastAPS<PT_Sint64>(S, A0); |
| 9051 | } |
| 9052 | bool EvalEmitter::emitCastAPSUint64( uint32_t A0, SourceInfo L) { |
| 9053 | if (!isActive()) return true; |
| 9054 | CurrentSource = L; |
| 9055 | return CastAPS<PT_Uint64>(S, A0); |
| 9056 | } |
| 9057 | bool EvalEmitter::emitCastAPSIntAP( uint32_t A0, SourceInfo L) { |
| 9058 | if (!isActive()) return true; |
| 9059 | CurrentSource = L; |
| 9060 | return CastAPS<PT_IntAP>(S, A0); |
| 9061 | } |
| 9062 | bool EvalEmitter::emitCastAPSIntAPS( uint32_t A0, SourceInfo L) { |
| 9063 | if (!isActive()) return true; |
| 9064 | CurrentSource = L; |
| 9065 | return CastAPS<PT_IntAPS>(S, A0); |
| 9066 | } |
| 9067 | bool EvalEmitter::emitCastAPSBool( uint32_t A0, SourceInfo L) { |
| 9068 | if (!isActive()) return true; |
| 9069 | CurrentSource = L; |
| 9070 | return CastAPS<PT_Bool>(S, A0); |
| 9071 | } |
| 9072 | bool EvalEmitter::emitCastAPSFixedPoint( uint32_t A0, SourceInfo L) { |
| 9073 | if (!isActive()) return true; |
| 9074 | CurrentSource = L; |
| 9075 | return CastAPS<PT_FixedPoint>(S, A0); |
| 9076 | } |
| 9077 | #endif |
| 9078 | #ifdef GET_OPCODE_NAMES |
| 9079 | OP_CastAPToOffsetIndexIntAP, |
| 9080 | OP_CastAPToOffsetIndexIntAPS, |
| 9081 | #endif |
| 9082 | #ifdef GET_INTERPFN_LIST |
| 9083 | &Interp_CastAPToOffsetIndexIntAP, |
| 9084 | &Interp_CastAPToOffsetIndexIntAPS, |
| 9085 | #endif |
| 9086 | #ifdef GET_INTERPFN_DISPATCHERS |
| 9087 | PRESERVE_NONE |
| 9088 | static bool Interp_CastAPToOffsetIndexIntAP(InterpState &S) { |
| 9089 | if (!CastAPToOffsetIndex<PT_IntAP>(S, S.PC)) return false; |
| 9090 | #if USE_TAILCALLS |
| 9091 | MUSTTAIL return InterpNext(S); |
| 9092 | #else |
| 9093 | return true; |
| 9094 | #endif |
| 9095 | } |
| 9096 | PRESERVE_NONE |
| 9097 | static bool Interp_CastAPToOffsetIndexIntAPS(InterpState &S) { |
| 9098 | if (!CastAPToOffsetIndex<PT_IntAPS>(S, S.PC)) return false; |
| 9099 | #if USE_TAILCALLS |
| 9100 | MUSTTAIL return InterpNext(S); |
| 9101 | #else |
| 9102 | return true; |
| 9103 | #endif |
| 9104 | } |
| 9105 | #endif |
| 9106 | #ifdef GET_DISASM |
| 9107 | case OP_CastAPToOffsetIndexIntAP: |
| 9108 | Text.Op = PrintName("CastAPToOffsetIndexIntAP" ); |
| 9109 | break; |
| 9110 | case OP_CastAPToOffsetIndexIntAPS: |
| 9111 | Text.Op = PrintName("CastAPToOffsetIndexIntAPS" ); |
| 9112 | break; |
| 9113 | #endif |
| 9114 | #if defined(GET_EVAL_PROTO) || defined(GET_LINK_PROTO) |
| 9115 | bool emitCastAPToOffsetIndexIntAP(SourceInfo); |
| 9116 | bool emitCastAPToOffsetIndexIntAPS(SourceInfo); |
| 9117 | #endif |
| 9118 | #if defined(GET_EVAL_PROTO) || defined(GET_LINK_PROTO) |
| 9119 | [[nodiscard]] bool emitCastAPToOffsetIndex(PrimType, SourceInfo I); |
| 9120 | #endif |
| 9121 | #if defined(GET_EVAL_IMPL) || defined(GET_LINK_IMPL) |
| 9122 | bool |
| 9123 | #if defined(GET_EVAL_IMPL) |
| 9124 | EvalEmitter |
| 9125 | #else |
| 9126 | ByteCodeEmitter |
| 9127 | #endif |
| 9128 | ::emitCastAPToOffsetIndex(PrimType T0, SourceInfo I) { |
| 9129 | switch (T0) { |
| 9130 | case PT_IntAP: |
| 9131 | return emitCastAPToOffsetIndexIntAP(I); |
| 9132 | case PT_IntAPS: |
| 9133 | return emitCastAPToOffsetIndexIntAPS(I); |
| 9134 | default: llvm_unreachable("invalid type: emitCastAPToOffsetIndex" ); |
| 9135 | } |
| 9136 | llvm_unreachable("invalid enum value" ); |
| 9137 | } |
| 9138 | #endif |
| 9139 | #ifdef GET_LINK_IMPL |
| 9140 | bool ByteCodeEmitter::emitCastAPToOffsetIndexIntAP(SourceInfo L) { |
| 9141 | return emitOp<>(OP_CastAPToOffsetIndexIntAP, L); |
| 9142 | } |
| 9143 | bool ByteCodeEmitter::emitCastAPToOffsetIndexIntAPS(SourceInfo L) { |
| 9144 | return emitOp<>(OP_CastAPToOffsetIndexIntAPS, L); |
| 9145 | } |
| 9146 | #endif |
| 9147 | #ifdef GET_EVAL_IMPL |
| 9148 | bool EvalEmitter::emitCastAPToOffsetIndexIntAP(SourceInfo L) { |
| 9149 | if (!isActive()) return true; |
| 9150 | CurrentSource = L; |
| 9151 | return CastAPToOffsetIndex<PT_IntAP>(S, CodePtr()); |
| 9152 | } |
| 9153 | bool EvalEmitter::emitCastAPToOffsetIndexIntAPS(SourceInfo L) { |
| 9154 | if (!isActive()) return true; |
| 9155 | CurrentSource = L; |
| 9156 | return CastAPToOffsetIndex<PT_IntAPS>(S, CodePtr()); |
| 9157 | } |
| 9158 | #endif |
| 9159 | #ifdef GET_OPCODE_NAMES |
| 9160 | OP_CastAddressSpace, |
| 9161 | #endif |
| 9162 | #ifdef GET_INTERPFN_LIST |
| 9163 | &Interp_CastAddressSpace, |
| 9164 | #endif |
| 9165 | #ifdef GET_INTERPFN_DISPATCHERS |
| 9166 | PRESERVE_NONE |
| 9167 | static bool Interp_CastAddressSpace(InterpState &S) { |
| 9168 | { |
| 9169 | CodePtr OpPC = S.PC; |
| 9170 | const auto V0 = ReadArg<uint64_t>(S, S.PC); |
| 9171 | const auto V1 = ReadArg<const Type *>(S, S.PC); |
| 9172 | if (!CastAddressSpace(S, OpPC, V0, V1)) return false; |
| 9173 | } |
| 9174 | #if USE_TAILCALLS |
| 9175 | MUSTTAIL return InterpNext(S); |
| 9176 | #else |
| 9177 | return true; |
| 9178 | #endif |
| 9179 | } |
| 9180 | #endif |
| 9181 | #ifdef GET_DISASM |
| 9182 | case OP_CastAddressSpace: |
| 9183 | Text.Op = PrintName("CastAddressSpace" ); |
| 9184 | Text.Args.push_back(printArg<uint64_t>(PC)); |
| 9185 | Text.Args.push_back(printArg<const Type *>(PC)); |
| 9186 | break; |
| 9187 | #endif |
| 9188 | #if defined(GET_EVAL_PROTO) || defined(GET_LINK_PROTO) |
| 9189 | bool emitCastAddressSpace( uint64_t , const Type * , SourceInfo); |
| 9190 | #endif |
| 9191 | #ifdef GET_LINK_IMPL |
| 9192 | bool ByteCodeEmitter::emitCastAddressSpace( uint64_t A0, const Type * A1, SourceInfo L) { |
| 9193 | return emitOp<uint64_t, const Type *>(OP_CastAddressSpace, A0, A1, L); |
| 9194 | } |
| 9195 | #endif |
| 9196 | #ifdef GET_EVAL_IMPL |
| 9197 | bool EvalEmitter::emitCastAddressSpace( uint64_t A0, const Type * A1, SourceInfo L) { |
| 9198 | if (!isActive()) return true; |
| 9199 | CurrentSource = L; |
| 9200 | return CastAddressSpace(S, CodePtr(), A0, A1); |
| 9201 | } |
| 9202 | #endif |
| 9203 | #ifdef GET_OPCODE_NAMES |
| 9204 | OP_CastFP, |
| 9205 | #endif |
| 9206 | #ifdef GET_INTERPFN_LIST |
| 9207 | &Interp_CastFP, |
| 9208 | #endif |
| 9209 | #ifdef GET_INTERPFN_DISPATCHERS |
| 9210 | PRESERVE_NONE |
| 9211 | static bool Interp_CastFP(InterpState &S) { |
| 9212 | { |
| 9213 | const auto V0 = ReadArg<const llvm::fltSemantics *>(S, S.PC); |
| 9214 | const auto V1 = ReadArg<llvm::RoundingMode>(S, S.PC); |
| 9215 | if (!CastFP(S, V0, V1)) return false; |
| 9216 | } |
| 9217 | #if USE_TAILCALLS |
| 9218 | MUSTTAIL return InterpNext(S); |
| 9219 | #else |
| 9220 | return true; |
| 9221 | #endif |
| 9222 | } |
| 9223 | #endif |
| 9224 | #ifdef GET_DISASM |
| 9225 | case OP_CastFP: |
| 9226 | Text.Op = PrintName("CastFP" ); |
| 9227 | Text.Args.push_back(printArg<const llvm::fltSemantics *>(PC)); |
| 9228 | Text.Args.push_back(printArg<llvm::RoundingMode>(PC)); |
| 9229 | break; |
| 9230 | #endif |
| 9231 | #if defined(GET_EVAL_PROTO) || defined(GET_LINK_PROTO) |
| 9232 | bool emitCastFP( const llvm::fltSemantics * , llvm::RoundingMode , SourceInfo); |
| 9233 | #endif |
| 9234 | #ifdef GET_LINK_IMPL |
| 9235 | bool ByteCodeEmitter::emitCastFP( const llvm::fltSemantics * A0, llvm::RoundingMode A1, SourceInfo L) { |
| 9236 | return emitOp<const llvm::fltSemantics *, llvm::RoundingMode>(OP_CastFP, A0, A1, L); |
| 9237 | } |
| 9238 | #endif |
| 9239 | #ifdef GET_EVAL_IMPL |
| 9240 | bool EvalEmitter::emitCastFP( const llvm::fltSemantics * A0, llvm::RoundingMode A1, SourceInfo L) { |
| 9241 | if (!isActive()) return true; |
| 9242 | CurrentSource = L; |
| 9243 | return CastFP(S, A0, A1); |
| 9244 | } |
| 9245 | #endif |
| 9246 | #ifdef GET_OPCODE_NAMES |
| 9247 | OP_CastFixedPoint, |
| 9248 | #endif |
| 9249 | #ifdef GET_INTERPFN_LIST |
| 9250 | &Interp_CastFixedPoint, |
| 9251 | #endif |
| 9252 | #ifdef GET_INTERPFN_DISPATCHERS |
| 9253 | PRESERVE_NONE |
| 9254 | static bool Interp_CastFixedPoint(InterpState &S) { |
| 9255 | { |
| 9256 | CodePtr OpPC = S.PC; |
| 9257 | const auto V0 = ReadArg<uint32_t>(S, S.PC); |
| 9258 | if (!CastFixedPoint(S, OpPC, V0)) return false; |
| 9259 | } |
| 9260 | #if USE_TAILCALLS |
| 9261 | MUSTTAIL return InterpNext(S); |
| 9262 | #else |
| 9263 | return true; |
| 9264 | #endif |
| 9265 | } |
| 9266 | #endif |
| 9267 | #ifdef GET_DISASM |
| 9268 | case OP_CastFixedPoint: |
| 9269 | Text.Op = PrintName("CastFixedPoint" ); |
| 9270 | Text.Args.push_back(printArg<uint32_t>(PC)); |
| 9271 | break; |
| 9272 | #endif |
| 9273 | #if defined(GET_EVAL_PROTO) || defined(GET_LINK_PROTO) |
| 9274 | bool emitCastFixedPoint( uint32_t , SourceInfo); |
| 9275 | #endif |
| 9276 | #ifdef GET_LINK_IMPL |
| 9277 | bool ByteCodeEmitter::emitCastFixedPoint( uint32_t A0, SourceInfo L) { |
| 9278 | return emitOp<uint32_t>(OP_CastFixedPoint, A0, L); |
| 9279 | } |
| 9280 | #endif |
| 9281 | #ifdef GET_EVAL_IMPL |
| 9282 | bool EvalEmitter::emitCastFixedPoint( uint32_t A0, SourceInfo L) { |
| 9283 | if (!isActive()) return true; |
| 9284 | CurrentSource = L; |
| 9285 | return CastFixedPoint(S, CodePtr(), A0); |
| 9286 | } |
| 9287 | #endif |
| 9288 | #ifdef GET_OPCODE_NAMES |
| 9289 | OP_CastFixedPointFloating, |
| 9290 | #endif |
| 9291 | #ifdef GET_INTERPFN_LIST |
| 9292 | &Interp_CastFixedPointFloating, |
| 9293 | #endif |
| 9294 | #ifdef GET_INTERPFN_DISPATCHERS |
| 9295 | PRESERVE_NONE |
| 9296 | static bool Interp_CastFixedPointFloating(InterpState &S) { |
| 9297 | { |
| 9298 | const auto V0 = ReadArg<const llvm::fltSemantics *>(S, S.PC); |
| 9299 | if (!CastFixedPointFloating(S, V0)) return false; |
| 9300 | } |
| 9301 | #if USE_TAILCALLS |
| 9302 | MUSTTAIL return InterpNext(S); |
| 9303 | #else |
| 9304 | return true; |
| 9305 | #endif |
| 9306 | } |
| 9307 | #endif |
| 9308 | #ifdef GET_DISASM |
| 9309 | case OP_CastFixedPointFloating: |
| 9310 | Text.Op = PrintName("CastFixedPointFloating" ); |
| 9311 | Text.Args.push_back(printArg<const llvm::fltSemantics *>(PC)); |
| 9312 | break; |
| 9313 | #endif |
| 9314 | #if defined(GET_EVAL_PROTO) || defined(GET_LINK_PROTO) |
| 9315 | bool emitCastFixedPointFloating( const llvm::fltSemantics * , SourceInfo); |
| 9316 | #endif |
| 9317 | #ifdef GET_LINK_IMPL |
| 9318 | bool ByteCodeEmitter::emitCastFixedPointFloating( const llvm::fltSemantics * A0, SourceInfo L) { |
| 9319 | return emitOp<const llvm::fltSemantics *>(OP_CastFixedPointFloating, A0, L); |
| 9320 | } |
| 9321 | #endif |
| 9322 | #ifdef GET_EVAL_IMPL |
| 9323 | bool EvalEmitter::emitCastFixedPointFloating( const llvm::fltSemantics * A0, SourceInfo L) { |
| 9324 | if (!isActive()) return true; |
| 9325 | CurrentSource = L; |
| 9326 | return CastFixedPointFloating(S, A0); |
| 9327 | } |
| 9328 | #endif |
| 9329 | #ifdef GET_OPCODE_NAMES |
| 9330 | OP_CastFixedPointIntegralSint8, |
| 9331 | OP_CastFixedPointIntegralUint8, |
| 9332 | OP_CastFixedPointIntegralSint16, |
| 9333 | OP_CastFixedPointIntegralUint16, |
| 9334 | OP_CastFixedPointIntegralSint32, |
| 9335 | OP_CastFixedPointIntegralUint32, |
| 9336 | OP_CastFixedPointIntegralSint64, |
| 9337 | OP_CastFixedPointIntegralUint64, |
| 9338 | #endif |
| 9339 | #ifdef GET_INTERPFN_LIST |
| 9340 | &Interp_CastFixedPointIntegralSint8, |
| 9341 | &Interp_CastFixedPointIntegralUint8, |
| 9342 | &Interp_CastFixedPointIntegralSint16, |
| 9343 | &Interp_CastFixedPointIntegralUint16, |
| 9344 | &Interp_CastFixedPointIntegralSint32, |
| 9345 | &Interp_CastFixedPointIntegralUint32, |
| 9346 | &Interp_CastFixedPointIntegralSint64, |
| 9347 | &Interp_CastFixedPointIntegralUint64, |
| 9348 | #endif |
| 9349 | #ifdef GET_INTERPFN_DISPATCHERS |
| 9350 | PRESERVE_NONE |
| 9351 | static bool Interp_CastFixedPointIntegralSint8(InterpState &S) { |
| 9352 | if (!CastFixedPointIntegral<PT_Sint8>(S, S.PC)) return false; |
| 9353 | #if USE_TAILCALLS |
| 9354 | MUSTTAIL return InterpNext(S); |
| 9355 | #else |
| 9356 | return true; |
| 9357 | #endif |
| 9358 | } |
| 9359 | PRESERVE_NONE |
| 9360 | static bool Interp_CastFixedPointIntegralUint8(InterpState &S) { |
| 9361 | if (!CastFixedPointIntegral<PT_Uint8>(S, S.PC)) return false; |
| 9362 | #if USE_TAILCALLS |
| 9363 | MUSTTAIL return InterpNext(S); |
| 9364 | #else |
| 9365 | return true; |
| 9366 | #endif |
| 9367 | } |
| 9368 | PRESERVE_NONE |
| 9369 | static bool Interp_CastFixedPointIntegralSint16(InterpState &S) { |
| 9370 | if (!CastFixedPointIntegral<PT_Sint16>(S, S.PC)) return false; |
| 9371 | #if USE_TAILCALLS |
| 9372 | MUSTTAIL return InterpNext(S); |
| 9373 | #else |
| 9374 | return true; |
| 9375 | #endif |
| 9376 | } |
| 9377 | PRESERVE_NONE |
| 9378 | static bool Interp_CastFixedPointIntegralUint16(InterpState &S) { |
| 9379 | if (!CastFixedPointIntegral<PT_Uint16>(S, S.PC)) return false; |
| 9380 | #if USE_TAILCALLS |
| 9381 | MUSTTAIL return InterpNext(S); |
| 9382 | #else |
| 9383 | return true; |
| 9384 | #endif |
| 9385 | } |
| 9386 | PRESERVE_NONE |
| 9387 | static bool Interp_CastFixedPointIntegralSint32(InterpState &S) { |
| 9388 | if (!CastFixedPointIntegral<PT_Sint32>(S, S.PC)) return false; |
| 9389 | #if USE_TAILCALLS |
| 9390 | MUSTTAIL return InterpNext(S); |
| 9391 | #else |
| 9392 | return true; |
| 9393 | #endif |
| 9394 | } |
| 9395 | PRESERVE_NONE |
| 9396 | static bool Interp_CastFixedPointIntegralUint32(InterpState &S) { |
| 9397 | if (!CastFixedPointIntegral<PT_Uint32>(S, S.PC)) return false; |
| 9398 | #if USE_TAILCALLS |
| 9399 | MUSTTAIL return InterpNext(S); |
| 9400 | #else |
| 9401 | return true; |
| 9402 | #endif |
| 9403 | } |
| 9404 | PRESERVE_NONE |
| 9405 | static bool Interp_CastFixedPointIntegralSint64(InterpState &S) { |
| 9406 | if (!CastFixedPointIntegral<PT_Sint64>(S, S.PC)) return false; |
| 9407 | #if USE_TAILCALLS |
| 9408 | MUSTTAIL return InterpNext(S); |
| 9409 | #else |
| 9410 | return true; |
| 9411 | #endif |
| 9412 | } |
| 9413 | PRESERVE_NONE |
| 9414 | static bool Interp_CastFixedPointIntegralUint64(InterpState &S) { |
| 9415 | if (!CastFixedPointIntegral<PT_Uint64>(S, S.PC)) return false; |
| 9416 | #if USE_TAILCALLS |
| 9417 | MUSTTAIL return InterpNext(S); |
| 9418 | #else |
| 9419 | return true; |
| 9420 | #endif |
| 9421 | } |
| 9422 | #endif |
| 9423 | #ifdef GET_DISASM |
| 9424 | case OP_CastFixedPointIntegralSint8: |
| 9425 | Text.Op = PrintName("CastFixedPointIntegralSint8" ); |
| 9426 | break; |
| 9427 | case OP_CastFixedPointIntegralUint8: |
| 9428 | Text.Op = PrintName("CastFixedPointIntegralUint8" ); |
| 9429 | break; |
| 9430 | case OP_CastFixedPointIntegralSint16: |
| 9431 | Text.Op = PrintName("CastFixedPointIntegralSint16" ); |
| 9432 | break; |
| 9433 | case OP_CastFixedPointIntegralUint16: |
| 9434 | Text.Op = PrintName("CastFixedPointIntegralUint16" ); |
| 9435 | break; |
| 9436 | case OP_CastFixedPointIntegralSint32: |
| 9437 | Text.Op = PrintName("CastFixedPointIntegralSint32" ); |
| 9438 | break; |
| 9439 | case OP_CastFixedPointIntegralUint32: |
| 9440 | Text.Op = PrintName("CastFixedPointIntegralUint32" ); |
| 9441 | break; |
| 9442 | case OP_CastFixedPointIntegralSint64: |
| 9443 | Text.Op = PrintName("CastFixedPointIntegralSint64" ); |
| 9444 | break; |
| 9445 | case OP_CastFixedPointIntegralUint64: |
| 9446 | Text.Op = PrintName("CastFixedPointIntegralUint64" ); |
| 9447 | break; |
| 9448 | #endif |
| 9449 | #if defined(GET_EVAL_PROTO) || defined(GET_LINK_PROTO) |
| 9450 | bool emitCastFixedPointIntegralSint8(SourceInfo); |
| 9451 | bool emitCastFixedPointIntegralUint8(SourceInfo); |
| 9452 | bool emitCastFixedPointIntegralSint16(SourceInfo); |
| 9453 | bool emitCastFixedPointIntegralUint16(SourceInfo); |
| 9454 | bool emitCastFixedPointIntegralSint32(SourceInfo); |
| 9455 | bool emitCastFixedPointIntegralUint32(SourceInfo); |
| 9456 | bool emitCastFixedPointIntegralSint64(SourceInfo); |
| 9457 | bool emitCastFixedPointIntegralUint64(SourceInfo); |
| 9458 | #endif |
| 9459 | #if defined(GET_EVAL_PROTO) || defined(GET_LINK_PROTO) |
| 9460 | [[nodiscard]] bool emitCastFixedPointIntegral(PrimType, SourceInfo I); |
| 9461 | #endif |
| 9462 | #if defined(GET_EVAL_IMPL) || defined(GET_LINK_IMPL) |
| 9463 | bool |
| 9464 | #if defined(GET_EVAL_IMPL) |
| 9465 | EvalEmitter |
| 9466 | #else |
| 9467 | ByteCodeEmitter |
| 9468 | #endif |
| 9469 | ::emitCastFixedPointIntegral(PrimType T0, SourceInfo I) { |
| 9470 | switch (T0) { |
| 9471 | case PT_Sint8: |
| 9472 | return emitCastFixedPointIntegralSint8(I); |
| 9473 | case PT_Uint8: |
| 9474 | return emitCastFixedPointIntegralUint8(I); |
| 9475 | case PT_Sint16: |
| 9476 | return emitCastFixedPointIntegralSint16(I); |
| 9477 | case PT_Uint16: |
| 9478 | return emitCastFixedPointIntegralUint16(I); |
| 9479 | case PT_Sint32: |
| 9480 | return emitCastFixedPointIntegralSint32(I); |
| 9481 | case PT_Uint32: |
| 9482 | return emitCastFixedPointIntegralUint32(I); |
| 9483 | case PT_Sint64: |
| 9484 | return emitCastFixedPointIntegralSint64(I); |
| 9485 | case PT_Uint64: |
| 9486 | return emitCastFixedPointIntegralUint64(I); |
| 9487 | default: llvm_unreachable("invalid type: emitCastFixedPointIntegral" ); |
| 9488 | } |
| 9489 | llvm_unreachable("invalid enum value" ); |
| 9490 | } |
| 9491 | #endif |
| 9492 | #ifdef GET_LINK_IMPL |
| 9493 | bool ByteCodeEmitter::emitCastFixedPointIntegralSint8(SourceInfo L) { |
| 9494 | return emitOp<>(OP_CastFixedPointIntegralSint8, L); |
| 9495 | } |
| 9496 | bool ByteCodeEmitter::emitCastFixedPointIntegralUint8(SourceInfo L) { |
| 9497 | return emitOp<>(OP_CastFixedPointIntegralUint8, L); |
| 9498 | } |
| 9499 | bool ByteCodeEmitter::emitCastFixedPointIntegralSint16(SourceInfo L) { |
| 9500 | return emitOp<>(OP_CastFixedPointIntegralSint16, L); |
| 9501 | } |
| 9502 | bool ByteCodeEmitter::emitCastFixedPointIntegralUint16(SourceInfo L) { |
| 9503 | return emitOp<>(OP_CastFixedPointIntegralUint16, L); |
| 9504 | } |
| 9505 | bool ByteCodeEmitter::emitCastFixedPointIntegralSint32(SourceInfo L) { |
| 9506 | return emitOp<>(OP_CastFixedPointIntegralSint32, L); |
| 9507 | } |
| 9508 | bool ByteCodeEmitter::emitCastFixedPointIntegralUint32(SourceInfo L) { |
| 9509 | return emitOp<>(OP_CastFixedPointIntegralUint32, L); |
| 9510 | } |
| 9511 | bool ByteCodeEmitter::emitCastFixedPointIntegralSint64(SourceInfo L) { |
| 9512 | return emitOp<>(OP_CastFixedPointIntegralSint64, L); |
| 9513 | } |
| 9514 | bool ByteCodeEmitter::emitCastFixedPointIntegralUint64(SourceInfo L) { |
| 9515 | return emitOp<>(OP_CastFixedPointIntegralUint64, L); |
| 9516 | } |
| 9517 | #endif |
| 9518 | #ifdef GET_EVAL_IMPL |
| 9519 | bool EvalEmitter::emitCastFixedPointIntegralSint8(SourceInfo L) { |
| 9520 | if (!isActive()) return true; |
| 9521 | CurrentSource = L; |
| 9522 | return CastFixedPointIntegral<PT_Sint8>(S, CodePtr()); |
| 9523 | } |
| 9524 | bool EvalEmitter::emitCastFixedPointIntegralUint8(SourceInfo L) { |
| 9525 | if (!isActive()) return true; |
| 9526 | CurrentSource = L; |
| 9527 | return CastFixedPointIntegral<PT_Uint8>(S, CodePtr()); |
| 9528 | } |
| 9529 | bool EvalEmitter::emitCastFixedPointIntegralSint16(SourceInfo L) { |
| 9530 | if (!isActive()) return true; |
| 9531 | CurrentSource = L; |
| 9532 | return CastFixedPointIntegral<PT_Sint16>(S, CodePtr()); |
| 9533 | } |
| 9534 | bool EvalEmitter::emitCastFixedPointIntegralUint16(SourceInfo L) { |
| 9535 | if (!isActive()) return true; |
| 9536 | CurrentSource = L; |
| 9537 | return CastFixedPointIntegral<PT_Uint16>(S, CodePtr()); |
| 9538 | } |
| 9539 | bool EvalEmitter::emitCastFixedPointIntegralSint32(SourceInfo L) { |
| 9540 | if (!isActive()) return true; |
| 9541 | CurrentSource = L; |
| 9542 | return CastFixedPointIntegral<PT_Sint32>(S, CodePtr()); |
| 9543 | } |
| 9544 | bool EvalEmitter::emitCastFixedPointIntegralUint32(SourceInfo L) { |
| 9545 | if (!isActive()) return true; |
| 9546 | CurrentSource = L; |
| 9547 | return CastFixedPointIntegral<PT_Uint32>(S, CodePtr()); |
| 9548 | } |
| 9549 | bool EvalEmitter::emitCastFixedPointIntegralSint64(SourceInfo L) { |
| 9550 | if (!isActive()) return true; |
| 9551 | CurrentSource = L; |
| 9552 | return CastFixedPointIntegral<PT_Sint64>(S, CodePtr()); |
| 9553 | } |
| 9554 | bool EvalEmitter::emitCastFixedPointIntegralUint64(SourceInfo L) { |
| 9555 | if (!isActive()) return true; |
| 9556 | CurrentSource = L; |
| 9557 | return CastFixedPointIntegral<PT_Uint64>(S, CodePtr()); |
| 9558 | } |
| 9559 | #endif |
| 9560 | #ifdef GET_OPCODE_NAMES |
| 9561 | OP_CastFloatingFixedPoint, |
| 9562 | #endif |
| 9563 | #ifdef GET_INTERPFN_LIST |
| 9564 | &Interp_CastFloatingFixedPoint, |
| 9565 | #endif |
| 9566 | #ifdef GET_INTERPFN_DISPATCHERS |
| 9567 | PRESERVE_NONE |
| 9568 | static bool Interp_CastFloatingFixedPoint(InterpState &S) { |
| 9569 | { |
| 9570 | CodePtr OpPC = S.PC; |
| 9571 | const auto V0 = ReadArg<uint32_t>(S, S.PC); |
| 9572 | if (!CastFloatingFixedPoint(S, OpPC, V0)) return false; |
| 9573 | } |
| 9574 | #if USE_TAILCALLS |
| 9575 | MUSTTAIL return InterpNext(S); |
| 9576 | #else |
| 9577 | return true; |
| 9578 | #endif |
| 9579 | } |
| 9580 | #endif |
| 9581 | #ifdef GET_DISASM |
| 9582 | case OP_CastFloatingFixedPoint: |
| 9583 | Text.Op = PrintName("CastFloatingFixedPoint" ); |
| 9584 | Text.Args.push_back(printArg<uint32_t>(PC)); |
| 9585 | break; |
| 9586 | #endif |
| 9587 | #if defined(GET_EVAL_PROTO) || defined(GET_LINK_PROTO) |
| 9588 | bool emitCastFloatingFixedPoint( uint32_t , SourceInfo); |
| 9589 | #endif |
| 9590 | #ifdef GET_LINK_IMPL |
| 9591 | bool ByteCodeEmitter::emitCastFloatingFixedPoint( uint32_t A0, SourceInfo L) { |
| 9592 | return emitOp<uint32_t>(OP_CastFloatingFixedPoint, A0, L); |
| 9593 | } |
| 9594 | #endif |
| 9595 | #ifdef GET_EVAL_IMPL |
| 9596 | bool EvalEmitter::emitCastFloatingFixedPoint( uint32_t A0, SourceInfo L) { |
| 9597 | if (!isActive()) return true; |
| 9598 | CurrentSource = L; |
| 9599 | return CastFloatingFixedPoint(S, CodePtr(), A0); |
| 9600 | } |
| 9601 | #endif |
| 9602 | #ifdef GET_OPCODE_NAMES |
| 9603 | OP_CastFloatingIntegralSint8, |
| 9604 | OP_CastFloatingIntegralUint8, |
| 9605 | OP_CastFloatingIntegralSint16, |
| 9606 | OP_CastFloatingIntegralUint16, |
| 9607 | OP_CastFloatingIntegralSint32, |
| 9608 | OP_CastFloatingIntegralUint32, |
| 9609 | OP_CastFloatingIntegralSint64, |
| 9610 | OP_CastFloatingIntegralUint64, |
| 9611 | OP_CastFloatingIntegralBool, |
| 9612 | #endif |
| 9613 | #ifdef GET_INTERPFN_LIST |
| 9614 | &Interp_CastFloatingIntegralSint8, |
| 9615 | &Interp_CastFloatingIntegralUint8, |
| 9616 | &Interp_CastFloatingIntegralSint16, |
| 9617 | &Interp_CastFloatingIntegralUint16, |
| 9618 | &Interp_CastFloatingIntegralSint32, |
| 9619 | &Interp_CastFloatingIntegralUint32, |
| 9620 | &Interp_CastFloatingIntegralSint64, |
| 9621 | &Interp_CastFloatingIntegralUint64, |
| 9622 | &Interp_CastFloatingIntegralBool, |
| 9623 | #endif |
| 9624 | #ifdef GET_INTERPFN_DISPATCHERS |
| 9625 | PRESERVE_NONE |
| 9626 | static bool Interp_CastFloatingIntegralSint8(InterpState &S) { |
| 9627 | { |
| 9628 | CodePtr OpPC = S.PC; |
| 9629 | const auto V0 = ReadArg<uint32_t>(S, S.PC); |
| 9630 | if (!CastFloatingIntegral<PT_Sint8>(S, OpPC, V0)) return false; |
| 9631 | } |
| 9632 | #if USE_TAILCALLS |
| 9633 | MUSTTAIL return InterpNext(S); |
| 9634 | #else |
| 9635 | return true; |
| 9636 | #endif |
| 9637 | } |
| 9638 | PRESERVE_NONE |
| 9639 | static bool Interp_CastFloatingIntegralUint8(InterpState &S) { |
| 9640 | { |
| 9641 | CodePtr OpPC = S.PC; |
| 9642 | const auto V0 = ReadArg<uint32_t>(S, S.PC); |
| 9643 | if (!CastFloatingIntegral<PT_Uint8>(S, OpPC, V0)) return false; |
| 9644 | } |
| 9645 | #if USE_TAILCALLS |
| 9646 | MUSTTAIL return InterpNext(S); |
| 9647 | #else |
| 9648 | return true; |
| 9649 | #endif |
| 9650 | } |
| 9651 | PRESERVE_NONE |
| 9652 | static bool Interp_CastFloatingIntegralSint16(InterpState &S) { |
| 9653 | { |
| 9654 | CodePtr OpPC = S.PC; |
| 9655 | const auto V0 = ReadArg<uint32_t>(S, S.PC); |
| 9656 | if (!CastFloatingIntegral<PT_Sint16>(S, OpPC, V0)) return false; |
| 9657 | } |
| 9658 | #if USE_TAILCALLS |
| 9659 | MUSTTAIL return InterpNext(S); |
| 9660 | #else |
| 9661 | return true; |
| 9662 | #endif |
| 9663 | } |
| 9664 | PRESERVE_NONE |
| 9665 | static bool Interp_CastFloatingIntegralUint16(InterpState &S) { |
| 9666 | { |
| 9667 | CodePtr OpPC = S.PC; |
| 9668 | const auto V0 = ReadArg<uint32_t>(S, S.PC); |
| 9669 | if (!CastFloatingIntegral<PT_Uint16>(S, OpPC, V0)) return false; |
| 9670 | } |
| 9671 | #if USE_TAILCALLS |
| 9672 | MUSTTAIL return InterpNext(S); |
| 9673 | #else |
| 9674 | return true; |
| 9675 | #endif |
| 9676 | } |
| 9677 | PRESERVE_NONE |
| 9678 | static bool Interp_CastFloatingIntegralSint32(InterpState &S) { |
| 9679 | { |
| 9680 | CodePtr OpPC = S.PC; |
| 9681 | const auto V0 = ReadArg<uint32_t>(S, S.PC); |
| 9682 | if (!CastFloatingIntegral<PT_Sint32>(S, OpPC, V0)) return false; |
| 9683 | } |
| 9684 | #if USE_TAILCALLS |
| 9685 | MUSTTAIL return InterpNext(S); |
| 9686 | #else |
| 9687 | return true; |
| 9688 | #endif |
| 9689 | } |
| 9690 | PRESERVE_NONE |
| 9691 | static bool Interp_CastFloatingIntegralUint32(InterpState &S) { |
| 9692 | { |
| 9693 | CodePtr OpPC = S.PC; |
| 9694 | const auto V0 = ReadArg<uint32_t>(S, S.PC); |
| 9695 | if (!CastFloatingIntegral<PT_Uint32>(S, OpPC, V0)) return false; |
| 9696 | } |
| 9697 | #if USE_TAILCALLS |
| 9698 | MUSTTAIL return InterpNext(S); |
| 9699 | #else |
| 9700 | return true; |
| 9701 | #endif |
| 9702 | } |
| 9703 | PRESERVE_NONE |
| 9704 | static bool Interp_CastFloatingIntegralSint64(InterpState &S) { |
| 9705 | { |
| 9706 | CodePtr OpPC = S.PC; |
| 9707 | const auto V0 = ReadArg<uint32_t>(S, S.PC); |
| 9708 | if (!CastFloatingIntegral<PT_Sint64>(S, OpPC, V0)) return false; |
| 9709 | } |
| 9710 | #if USE_TAILCALLS |
| 9711 | MUSTTAIL return InterpNext(S); |
| 9712 | #else |
| 9713 | return true; |
| 9714 | #endif |
| 9715 | } |
| 9716 | PRESERVE_NONE |
| 9717 | static bool Interp_CastFloatingIntegralUint64(InterpState &S) { |
| 9718 | { |
| 9719 | CodePtr OpPC = S.PC; |
| 9720 | const auto V0 = ReadArg<uint32_t>(S, S.PC); |
| 9721 | if (!CastFloatingIntegral<PT_Uint64>(S, OpPC, V0)) return false; |
| 9722 | } |
| 9723 | #if USE_TAILCALLS |
| 9724 | MUSTTAIL return InterpNext(S); |
| 9725 | #else |
| 9726 | return true; |
| 9727 | #endif |
| 9728 | } |
| 9729 | PRESERVE_NONE |
| 9730 | static bool Interp_CastFloatingIntegralBool(InterpState &S) { |
| 9731 | { |
| 9732 | CodePtr OpPC = S.PC; |
| 9733 | const auto V0 = ReadArg<uint32_t>(S, S.PC); |
| 9734 | if (!CastFloatingIntegral<PT_Bool>(S, OpPC, V0)) return false; |
| 9735 | } |
| 9736 | #if USE_TAILCALLS |
| 9737 | MUSTTAIL return InterpNext(S); |
| 9738 | #else |
| 9739 | return true; |
| 9740 | #endif |
| 9741 | } |
| 9742 | #endif |
| 9743 | #ifdef GET_DISASM |
| 9744 | case OP_CastFloatingIntegralSint8: |
| 9745 | Text.Op = PrintName("CastFloatingIntegralSint8" ); |
| 9746 | Text.Args.push_back(printArg<uint32_t>(PC)); |
| 9747 | break; |
| 9748 | case OP_CastFloatingIntegralUint8: |
| 9749 | Text.Op = PrintName("CastFloatingIntegralUint8" ); |
| 9750 | Text.Args.push_back(printArg<uint32_t>(PC)); |
| 9751 | break; |
| 9752 | case OP_CastFloatingIntegralSint16: |
| 9753 | Text.Op = PrintName("CastFloatingIntegralSint16" ); |
| 9754 | Text.Args.push_back(printArg<uint32_t>(PC)); |
| 9755 | break; |
| 9756 | case OP_CastFloatingIntegralUint16: |
| 9757 | Text.Op = PrintName("CastFloatingIntegralUint16" ); |
| 9758 | Text.Args.push_back(printArg<uint32_t>(PC)); |
| 9759 | break; |
| 9760 | case OP_CastFloatingIntegralSint32: |
| 9761 | Text.Op = PrintName("CastFloatingIntegralSint32" ); |
| 9762 | Text.Args.push_back(printArg<uint32_t>(PC)); |
| 9763 | break; |
| 9764 | case OP_CastFloatingIntegralUint32: |
| 9765 | Text.Op = PrintName("CastFloatingIntegralUint32" ); |
| 9766 | Text.Args.push_back(printArg<uint32_t>(PC)); |
| 9767 | break; |
| 9768 | case OP_CastFloatingIntegralSint64: |
| 9769 | Text.Op = PrintName("CastFloatingIntegralSint64" ); |
| 9770 | Text.Args.push_back(printArg<uint32_t>(PC)); |
| 9771 | break; |
| 9772 | case OP_CastFloatingIntegralUint64: |
| 9773 | Text.Op = PrintName("CastFloatingIntegralUint64" ); |
| 9774 | Text.Args.push_back(printArg<uint32_t>(PC)); |
| 9775 | break; |
| 9776 | case OP_CastFloatingIntegralBool: |
| 9777 | Text.Op = PrintName("CastFloatingIntegralBool" ); |
| 9778 | Text.Args.push_back(printArg<uint32_t>(PC)); |
| 9779 | break; |
| 9780 | #endif |
| 9781 | #if defined(GET_EVAL_PROTO) || defined(GET_LINK_PROTO) |
| 9782 | bool emitCastFloatingIntegralSint8( uint32_t , SourceInfo); |
| 9783 | bool emitCastFloatingIntegralUint8( uint32_t , SourceInfo); |
| 9784 | bool emitCastFloatingIntegralSint16( uint32_t , SourceInfo); |
| 9785 | bool emitCastFloatingIntegralUint16( uint32_t , SourceInfo); |
| 9786 | bool emitCastFloatingIntegralSint32( uint32_t , SourceInfo); |
| 9787 | bool emitCastFloatingIntegralUint32( uint32_t , SourceInfo); |
| 9788 | bool emitCastFloatingIntegralSint64( uint32_t , SourceInfo); |
| 9789 | bool emitCastFloatingIntegralUint64( uint32_t , SourceInfo); |
| 9790 | bool emitCastFloatingIntegralBool( uint32_t , SourceInfo); |
| 9791 | #endif |
| 9792 | #if defined(GET_EVAL_PROTO) || defined(GET_LINK_PROTO) |
| 9793 | [[nodiscard]] bool emitCastFloatingIntegral(PrimType, uint32_t, SourceInfo I); |
| 9794 | #endif |
| 9795 | #if defined(GET_EVAL_IMPL) || defined(GET_LINK_IMPL) |
| 9796 | bool |
| 9797 | #if defined(GET_EVAL_IMPL) |
| 9798 | EvalEmitter |
| 9799 | #else |
| 9800 | ByteCodeEmitter |
| 9801 | #endif |
| 9802 | ::emitCastFloatingIntegral(PrimType T0, uint32_t A0, SourceInfo I) { |
| 9803 | switch (T0) { |
| 9804 | case PT_Sint8: |
| 9805 | return emitCastFloatingIntegralSint8(A0, I); |
| 9806 | case PT_Uint8: |
| 9807 | return emitCastFloatingIntegralUint8(A0, I); |
| 9808 | case PT_Sint16: |
| 9809 | return emitCastFloatingIntegralSint16(A0, I); |
| 9810 | case PT_Uint16: |
| 9811 | return emitCastFloatingIntegralUint16(A0, I); |
| 9812 | case PT_Sint32: |
| 9813 | return emitCastFloatingIntegralSint32(A0, I); |
| 9814 | case PT_Uint32: |
| 9815 | return emitCastFloatingIntegralUint32(A0, I); |
| 9816 | case PT_Sint64: |
| 9817 | return emitCastFloatingIntegralSint64(A0, I); |
| 9818 | case PT_Uint64: |
| 9819 | return emitCastFloatingIntegralUint64(A0, I); |
| 9820 | case PT_Bool: |
| 9821 | return emitCastFloatingIntegralBool(A0, I); |
| 9822 | default: llvm_unreachable("invalid type: emitCastFloatingIntegral" ); |
| 9823 | } |
| 9824 | llvm_unreachable("invalid enum value" ); |
| 9825 | } |
| 9826 | #endif |
| 9827 | #ifdef GET_LINK_IMPL |
| 9828 | bool ByteCodeEmitter::emitCastFloatingIntegralSint8( uint32_t A0, SourceInfo L) { |
| 9829 | return emitOp<uint32_t>(OP_CastFloatingIntegralSint8, A0, L); |
| 9830 | } |
| 9831 | bool ByteCodeEmitter::emitCastFloatingIntegralUint8( uint32_t A0, SourceInfo L) { |
| 9832 | return emitOp<uint32_t>(OP_CastFloatingIntegralUint8, A0, L); |
| 9833 | } |
| 9834 | bool ByteCodeEmitter::emitCastFloatingIntegralSint16( uint32_t A0, SourceInfo L) { |
| 9835 | return emitOp<uint32_t>(OP_CastFloatingIntegralSint16, A0, L); |
| 9836 | } |
| 9837 | bool ByteCodeEmitter::emitCastFloatingIntegralUint16( uint32_t A0, SourceInfo L) { |
| 9838 | return emitOp<uint32_t>(OP_CastFloatingIntegralUint16, A0, L); |
| 9839 | } |
| 9840 | bool ByteCodeEmitter::emitCastFloatingIntegralSint32( uint32_t A0, SourceInfo L) { |
| 9841 | return emitOp<uint32_t>(OP_CastFloatingIntegralSint32, A0, L); |
| 9842 | } |
| 9843 | bool ByteCodeEmitter::emitCastFloatingIntegralUint32( uint32_t A0, SourceInfo L) { |
| 9844 | return emitOp<uint32_t>(OP_CastFloatingIntegralUint32, A0, L); |
| 9845 | } |
| 9846 | bool ByteCodeEmitter::emitCastFloatingIntegralSint64( uint32_t A0, SourceInfo L) { |
| 9847 | return emitOp<uint32_t>(OP_CastFloatingIntegralSint64, A0, L); |
| 9848 | } |
| 9849 | bool ByteCodeEmitter::emitCastFloatingIntegralUint64( uint32_t A0, SourceInfo L) { |
| 9850 | return emitOp<uint32_t>(OP_CastFloatingIntegralUint64, A0, L); |
| 9851 | } |
| 9852 | bool ByteCodeEmitter::emitCastFloatingIntegralBool( uint32_t A0, SourceInfo L) { |
| 9853 | return emitOp<uint32_t>(OP_CastFloatingIntegralBool, A0, L); |
| 9854 | } |
| 9855 | #endif |
| 9856 | #ifdef GET_EVAL_IMPL |
| 9857 | bool EvalEmitter::emitCastFloatingIntegralSint8( uint32_t A0, SourceInfo L) { |
| 9858 | if (!isActive()) return true; |
| 9859 | CurrentSource = L; |
| 9860 | return CastFloatingIntegral<PT_Sint8>(S, CodePtr(), A0); |
| 9861 | } |
| 9862 | bool EvalEmitter::emitCastFloatingIntegralUint8( uint32_t A0, SourceInfo L) { |
| 9863 | if (!isActive()) return true; |
| 9864 | CurrentSource = L; |
| 9865 | return CastFloatingIntegral<PT_Uint8>(S, CodePtr(), A0); |
| 9866 | } |
| 9867 | bool EvalEmitter::emitCastFloatingIntegralSint16( uint32_t A0, SourceInfo L) { |
| 9868 | if (!isActive()) return true; |
| 9869 | CurrentSource = L; |
| 9870 | return CastFloatingIntegral<PT_Sint16>(S, CodePtr(), A0); |
| 9871 | } |
| 9872 | bool EvalEmitter::emitCastFloatingIntegralUint16( uint32_t A0, SourceInfo L) { |
| 9873 | if (!isActive()) return true; |
| 9874 | CurrentSource = L; |
| 9875 | return CastFloatingIntegral<PT_Uint16>(S, CodePtr(), A0); |
| 9876 | } |
| 9877 | bool EvalEmitter::emitCastFloatingIntegralSint32( uint32_t A0, SourceInfo L) { |
| 9878 | if (!isActive()) return true; |
| 9879 | CurrentSource = L; |
| 9880 | return CastFloatingIntegral<PT_Sint32>(S, CodePtr(), A0); |
| 9881 | } |
| 9882 | bool EvalEmitter::emitCastFloatingIntegralUint32( uint32_t A0, SourceInfo L) { |
| 9883 | if (!isActive()) return true; |
| 9884 | CurrentSource = L; |
| 9885 | return CastFloatingIntegral<PT_Uint32>(S, CodePtr(), A0); |
| 9886 | } |
| 9887 | bool EvalEmitter::emitCastFloatingIntegralSint64( uint32_t A0, SourceInfo L) { |
| 9888 | if (!isActive()) return true; |
| 9889 | CurrentSource = L; |
| 9890 | return CastFloatingIntegral<PT_Sint64>(S, CodePtr(), A0); |
| 9891 | } |
| 9892 | bool EvalEmitter::emitCastFloatingIntegralUint64( uint32_t A0, SourceInfo L) { |
| 9893 | if (!isActive()) return true; |
| 9894 | CurrentSource = L; |
| 9895 | return CastFloatingIntegral<PT_Uint64>(S, CodePtr(), A0); |
| 9896 | } |
| 9897 | bool EvalEmitter::emitCastFloatingIntegralBool( uint32_t A0, SourceInfo L) { |
| 9898 | if (!isActive()) return true; |
| 9899 | CurrentSource = L; |
| 9900 | return CastFloatingIntegral<PT_Bool>(S, CodePtr(), A0); |
| 9901 | } |
| 9902 | #endif |
| 9903 | #ifdef GET_OPCODE_NAMES |
| 9904 | OP_CastFloatingIntegralAP, |
| 9905 | #endif |
| 9906 | #ifdef GET_INTERPFN_LIST |
| 9907 | &Interp_CastFloatingIntegralAP, |
| 9908 | #endif |
| 9909 | #ifdef GET_INTERPFN_DISPATCHERS |
| 9910 | PRESERVE_NONE |
| 9911 | static bool Interp_CastFloatingIntegralAP(InterpState &S) { |
| 9912 | { |
| 9913 | CodePtr OpPC = S.PC; |
| 9914 | const auto V0 = ReadArg<uint32_t>(S, S.PC); |
| 9915 | const auto V1 = ReadArg<uint32_t>(S, S.PC); |
| 9916 | if (!CastFloatingIntegralAP(S, OpPC, V0, V1)) return false; |
| 9917 | } |
| 9918 | #if USE_TAILCALLS |
| 9919 | MUSTTAIL return InterpNext(S); |
| 9920 | #else |
| 9921 | return true; |
| 9922 | #endif |
| 9923 | } |
| 9924 | #endif |
| 9925 | #ifdef GET_DISASM |
| 9926 | case OP_CastFloatingIntegralAP: |
| 9927 | Text.Op = PrintName("CastFloatingIntegralAP" ); |
| 9928 | Text.Args.push_back(printArg<uint32_t>(PC)); |
| 9929 | Text.Args.push_back(printArg<uint32_t>(PC)); |
| 9930 | break; |
| 9931 | #endif |
| 9932 | #if defined(GET_EVAL_PROTO) || defined(GET_LINK_PROTO) |
| 9933 | bool emitCastFloatingIntegralAP( uint32_t , uint32_t , SourceInfo); |
| 9934 | #endif |
| 9935 | #ifdef GET_LINK_IMPL |
| 9936 | bool ByteCodeEmitter::emitCastFloatingIntegralAP( uint32_t A0, uint32_t A1, SourceInfo L) { |
| 9937 | return emitOp<uint32_t, uint32_t>(OP_CastFloatingIntegralAP, A0, A1, L); |
| 9938 | } |
| 9939 | #endif |
| 9940 | #ifdef GET_EVAL_IMPL |
| 9941 | bool EvalEmitter::emitCastFloatingIntegralAP( uint32_t A0, uint32_t A1, SourceInfo L) { |
| 9942 | if (!isActive()) return true; |
| 9943 | CurrentSource = L; |
| 9944 | return CastFloatingIntegralAP(S, CodePtr(), A0, A1); |
| 9945 | } |
| 9946 | #endif |
| 9947 | #ifdef GET_OPCODE_NAMES |
| 9948 | OP_CastFloatingIntegralAPS, |
| 9949 | #endif |
| 9950 | #ifdef GET_INTERPFN_LIST |
| 9951 | &Interp_CastFloatingIntegralAPS, |
| 9952 | #endif |
| 9953 | #ifdef GET_INTERPFN_DISPATCHERS |
| 9954 | PRESERVE_NONE |
| 9955 | static bool Interp_CastFloatingIntegralAPS(InterpState &S) { |
| 9956 | { |
| 9957 | CodePtr OpPC = S.PC; |
| 9958 | const auto V0 = ReadArg<uint32_t>(S, S.PC); |
| 9959 | const auto V1 = ReadArg<uint32_t>(S, S.PC); |
| 9960 | if (!CastFloatingIntegralAPS(S, OpPC, V0, V1)) return false; |
| 9961 | } |
| 9962 | #if USE_TAILCALLS |
| 9963 | MUSTTAIL return InterpNext(S); |
| 9964 | #else |
| 9965 | return true; |
| 9966 | #endif |
| 9967 | } |
| 9968 | #endif |
| 9969 | #ifdef GET_DISASM |
| 9970 | case OP_CastFloatingIntegralAPS: |
| 9971 | Text.Op = PrintName("CastFloatingIntegralAPS" ); |
| 9972 | Text.Args.push_back(printArg<uint32_t>(PC)); |
| 9973 | Text.Args.push_back(printArg<uint32_t>(PC)); |
| 9974 | break; |
| 9975 | #endif |
| 9976 | #if defined(GET_EVAL_PROTO) || defined(GET_LINK_PROTO) |
| 9977 | bool emitCastFloatingIntegralAPS( uint32_t , uint32_t , SourceInfo); |
| 9978 | #endif |
| 9979 | #ifdef GET_LINK_IMPL |
| 9980 | bool ByteCodeEmitter::emitCastFloatingIntegralAPS( uint32_t A0, uint32_t A1, SourceInfo L) { |
| 9981 | return emitOp<uint32_t, uint32_t>(OP_CastFloatingIntegralAPS, A0, A1, L); |
| 9982 | } |
| 9983 | #endif |
| 9984 | #ifdef GET_EVAL_IMPL |
| 9985 | bool EvalEmitter::emitCastFloatingIntegralAPS( uint32_t A0, uint32_t A1, SourceInfo L) { |
| 9986 | if (!isActive()) return true; |
| 9987 | CurrentSource = L; |
| 9988 | return CastFloatingIntegralAPS(S, CodePtr(), A0, A1); |
| 9989 | } |
| 9990 | #endif |
| 9991 | #ifdef GET_OPCODE_NAMES |
| 9992 | OP_CastIntegralFixedPointSint8, |
| 9993 | OP_CastIntegralFixedPointUint8, |
| 9994 | OP_CastIntegralFixedPointSint16, |
| 9995 | OP_CastIntegralFixedPointUint16, |
| 9996 | OP_CastIntegralFixedPointSint32, |
| 9997 | OP_CastIntegralFixedPointUint32, |
| 9998 | OP_CastIntegralFixedPointSint64, |
| 9999 | OP_CastIntegralFixedPointUint64, |
| 10000 | OP_CastIntegralFixedPointIntAP, |
| 10001 | OP_CastIntegralFixedPointIntAPS, |
| 10002 | OP_CastIntegralFixedPointBool, |
| 10003 | #endif |
| 10004 | #ifdef GET_INTERPFN_LIST |
| 10005 | &Interp_CastIntegralFixedPointSint8, |
| 10006 | &Interp_CastIntegralFixedPointUint8, |
| 10007 | &Interp_CastIntegralFixedPointSint16, |
| 10008 | &Interp_CastIntegralFixedPointUint16, |
| 10009 | &Interp_CastIntegralFixedPointSint32, |
| 10010 | &Interp_CastIntegralFixedPointUint32, |
| 10011 | &Interp_CastIntegralFixedPointSint64, |
| 10012 | &Interp_CastIntegralFixedPointUint64, |
| 10013 | &Interp_CastIntegralFixedPointIntAP, |
| 10014 | &Interp_CastIntegralFixedPointIntAPS, |
| 10015 | &Interp_CastIntegralFixedPointBool, |
| 10016 | #endif |
| 10017 | #ifdef GET_INTERPFN_DISPATCHERS |
| 10018 | PRESERVE_NONE |
| 10019 | static bool Interp_CastIntegralFixedPointSint8(InterpState &S) { |
| 10020 | { |
| 10021 | CodePtr OpPC = S.PC; |
| 10022 | const auto V0 = ReadArg<uint32_t>(S, S.PC); |
| 10023 | if (!CastIntegralFixedPoint<PT_Sint8>(S, OpPC, V0)) return false; |
| 10024 | } |
| 10025 | #if USE_TAILCALLS |
| 10026 | MUSTTAIL return InterpNext(S); |
| 10027 | #else |
| 10028 | return true; |
| 10029 | #endif |
| 10030 | } |
| 10031 | PRESERVE_NONE |
| 10032 | static bool Interp_CastIntegralFixedPointUint8(InterpState &S) { |
| 10033 | { |
| 10034 | CodePtr OpPC = S.PC; |
| 10035 | const auto V0 = ReadArg<uint32_t>(S, S.PC); |
| 10036 | if (!CastIntegralFixedPoint<PT_Uint8>(S, OpPC, V0)) return false; |
| 10037 | } |
| 10038 | #if USE_TAILCALLS |
| 10039 | MUSTTAIL return InterpNext(S); |
| 10040 | #else |
| 10041 | return true; |
| 10042 | #endif |
| 10043 | } |
| 10044 | PRESERVE_NONE |
| 10045 | static bool Interp_CastIntegralFixedPointSint16(InterpState &S) { |
| 10046 | { |
| 10047 | CodePtr OpPC = S.PC; |
| 10048 | const auto V0 = ReadArg<uint32_t>(S, S.PC); |
| 10049 | if (!CastIntegralFixedPoint<PT_Sint16>(S, OpPC, V0)) return false; |
| 10050 | } |
| 10051 | #if USE_TAILCALLS |
| 10052 | MUSTTAIL return InterpNext(S); |
| 10053 | #else |
| 10054 | return true; |
| 10055 | #endif |
| 10056 | } |
| 10057 | PRESERVE_NONE |
| 10058 | static bool Interp_CastIntegralFixedPointUint16(InterpState &S) { |
| 10059 | { |
| 10060 | CodePtr OpPC = S.PC; |
| 10061 | const auto V0 = ReadArg<uint32_t>(S, S.PC); |
| 10062 | if (!CastIntegralFixedPoint<PT_Uint16>(S, OpPC, V0)) return false; |
| 10063 | } |
| 10064 | #if USE_TAILCALLS |
| 10065 | MUSTTAIL return InterpNext(S); |
| 10066 | #else |
| 10067 | return true; |
| 10068 | #endif |
| 10069 | } |
| 10070 | PRESERVE_NONE |
| 10071 | static bool Interp_CastIntegralFixedPointSint32(InterpState &S) { |
| 10072 | { |
| 10073 | CodePtr OpPC = S.PC; |
| 10074 | const auto V0 = ReadArg<uint32_t>(S, S.PC); |
| 10075 | if (!CastIntegralFixedPoint<PT_Sint32>(S, OpPC, V0)) return false; |
| 10076 | } |
| 10077 | #if USE_TAILCALLS |
| 10078 | MUSTTAIL return InterpNext(S); |
| 10079 | #else |
| 10080 | return true; |
| 10081 | #endif |
| 10082 | } |
| 10083 | PRESERVE_NONE |
| 10084 | static bool Interp_CastIntegralFixedPointUint32(InterpState &S) { |
| 10085 | { |
| 10086 | CodePtr OpPC = S.PC; |
| 10087 | const auto V0 = ReadArg<uint32_t>(S, S.PC); |
| 10088 | if (!CastIntegralFixedPoint<PT_Uint32>(S, OpPC, V0)) return false; |
| 10089 | } |
| 10090 | #if USE_TAILCALLS |
| 10091 | MUSTTAIL return InterpNext(S); |
| 10092 | #else |
| 10093 | return true; |
| 10094 | #endif |
| 10095 | } |
| 10096 | PRESERVE_NONE |
| 10097 | static bool Interp_CastIntegralFixedPointSint64(InterpState &S) { |
| 10098 | { |
| 10099 | CodePtr OpPC = S.PC; |
| 10100 | const auto V0 = ReadArg<uint32_t>(S, S.PC); |
| 10101 | if (!CastIntegralFixedPoint<PT_Sint64>(S, OpPC, V0)) return false; |
| 10102 | } |
| 10103 | #if USE_TAILCALLS |
| 10104 | MUSTTAIL return InterpNext(S); |
| 10105 | #else |
| 10106 | return true; |
| 10107 | #endif |
| 10108 | } |
| 10109 | PRESERVE_NONE |
| 10110 | static bool Interp_CastIntegralFixedPointUint64(InterpState &S) { |
| 10111 | { |
| 10112 | CodePtr OpPC = S.PC; |
| 10113 | const auto V0 = ReadArg<uint32_t>(S, S.PC); |
| 10114 | if (!CastIntegralFixedPoint<PT_Uint64>(S, OpPC, V0)) return false; |
| 10115 | } |
| 10116 | #if USE_TAILCALLS |
| 10117 | MUSTTAIL return InterpNext(S); |
| 10118 | #else |
| 10119 | return true; |
| 10120 | #endif |
| 10121 | } |
| 10122 | PRESERVE_NONE |
| 10123 | static bool Interp_CastIntegralFixedPointIntAP(InterpState &S) { |
| 10124 | { |
| 10125 | CodePtr OpPC = S.PC; |
| 10126 | const auto V0 = ReadArg<uint32_t>(S, S.PC); |
| 10127 | if (!CastIntegralFixedPoint<PT_IntAP>(S, OpPC, V0)) return false; |
| 10128 | } |
| 10129 | #if USE_TAILCALLS |
| 10130 | MUSTTAIL return InterpNext(S); |
| 10131 | #else |
| 10132 | return true; |
| 10133 | #endif |
| 10134 | } |
| 10135 | PRESERVE_NONE |
| 10136 | static bool Interp_CastIntegralFixedPointIntAPS(InterpState &S) { |
| 10137 | { |
| 10138 | CodePtr OpPC = S.PC; |
| 10139 | const auto V0 = ReadArg<uint32_t>(S, S.PC); |
| 10140 | if (!CastIntegralFixedPoint<PT_IntAPS>(S, OpPC, V0)) return false; |
| 10141 | } |
| 10142 | #if USE_TAILCALLS |
| 10143 | MUSTTAIL return InterpNext(S); |
| 10144 | #else |
| 10145 | return true; |
| 10146 | #endif |
| 10147 | } |
| 10148 | PRESERVE_NONE |
| 10149 | static bool Interp_CastIntegralFixedPointBool(InterpState &S) { |
| 10150 | { |
| 10151 | CodePtr OpPC = S.PC; |
| 10152 | const auto V0 = ReadArg<uint32_t>(S, S.PC); |
| 10153 | if (!CastIntegralFixedPoint<PT_Bool>(S, OpPC, V0)) return false; |
| 10154 | } |
| 10155 | #if USE_TAILCALLS |
| 10156 | MUSTTAIL return InterpNext(S); |
| 10157 | #else |
| 10158 | return true; |
| 10159 | #endif |
| 10160 | } |
| 10161 | #endif |
| 10162 | #ifdef GET_DISASM |
| 10163 | case OP_CastIntegralFixedPointSint8: |
| 10164 | Text.Op = PrintName("CastIntegralFixedPointSint8" ); |
| 10165 | Text.Args.push_back(printArg<uint32_t>(PC)); |
| 10166 | break; |
| 10167 | case OP_CastIntegralFixedPointUint8: |
| 10168 | Text.Op = PrintName("CastIntegralFixedPointUint8" ); |
| 10169 | Text.Args.push_back(printArg<uint32_t>(PC)); |
| 10170 | break; |
| 10171 | case OP_CastIntegralFixedPointSint16: |
| 10172 | Text.Op = PrintName("CastIntegralFixedPointSint16" ); |
| 10173 | Text.Args.push_back(printArg<uint32_t>(PC)); |
| 10174 | break; |
| 10175 | case OP_CastIntegralFixedPointUint16: |
| 10176 | Text.Op = PrintName("CastIntegralFixedPointUint16" ); |
| 10177 | Text.Args.push_back(printArg<uint32_t>(PC)); |
| 10178 | break; |
| 10179 | case OP_CastIntegralFixedPointSint32: |
| 10180 | Text.Op = PrintName("CastIntegralFixedPointSint32" ); |
| 10181 | Text.Args.push_back(printArg<uint32_t>(PC)); |
| 10182 | break; |
| 10183 | case OP_CastIntegralFixedPointUint32: |
| 10184 | Text.Op = PrintName("CastIntegralFixedPointUint32" ); |
| 10185 | Text.Args.push_back(printArg<uint32_t>(PC)); |
| 10186 | break; |
| 10187 | case OP_CastIntegralFixedPointSint64: |
| 10188 | Text.Op = PrintName("CastIntegralFixedPointSint64" ); |
| 10189 | Text.Args.push_back(printArg<uint32_t>(PC)); |
| 10190 | break; |
| 10191 | case OP_CastIntegralFixedPointUint64: |
| 10192 | Text.Op = PrintName("CastIntegralFixedPointUint64" ); |
| 10193 | Text.Args.push_back(printArg<uint32_t>(PC)); |
| 10194 | break; |
| 10195 | case OP_CastIntegralFixedPointIntAP: |
| 10196 | Text.Op = PrintName("CastIntegralFixedPointIntAP" ); |
| 10197 | Text.Args.push_back(printArg<uint32_t>(PC)); |
| 10198 | break; |
| 10199 | case OP_CastIntegralFixedPointIntAPS: |
| 10200 | Text.Op = PrintName("CastIntegralFixedPointIntAPS" ); |
| 10201 | Text.Args.push_back(printArg<uint32_t>(PC)); |
| 10202 | break; |
| 10203 | case OP_CastIntegralFixedPointBool: |
| 10204 | Text.Op = PrintName("CastIntegralFixedPointBool" ); |
| 10205 | Text.Args.push_back(printArg<uint32_t>(PC)); |
| 10206 | break; |
| 10207 | #endif |
| 10208 | #if defined(GET_EVAL_PROTO) || defined(GET_LINK_PROTO) |
| 10209 | bool emitCastIntegralFixedPointSint8( uint32_t , SourceInfo); |
| 10210 | bool emitCastIntegralFixedPointUint8( uint32_t , SourceInfo); |
| 10211 | bool emitCastIntegralFixedPointSint16( uint32_t , SourceInfo); |
| 10212 | bool emitCastIntegralFixedPointUint16( uint32_t , SourceInfo); |
| 10213 | bool emitCastIntegralFixedPointSint32( uint32_t , SourceInfo); |
| 10214 | bool emitCastIntegralFixedPointUint32( uint32_t , SourceInfo); |
| 10215 | bool emitCastIntegralFixedPointSint64( uint32_t , SourceInfo); |
| 10216 | bool emitCastIntegralFixedPointUint64( uint32_t , SourceInfo); |
| 10217 | bool emitCastIntegralFixedPointIntAP( uint32_t , SourceInfo); |
| 10218 | bool emitCastIntegralFixedPointIntAPS( uint32_t , SourceInfo); |
| 10219 | bool emitCastIntegralFixedPointBool( uint32_t , SourceInfo); |
| 10220 | #endif |
| 10221 | #if defined(GET_EVAL_PROTO) || defined(GET_LINK_PROTO) |
| 10222 | [[nodiscard]] bool emitCastIntegralFixedPoint(PrimType, uint32_t, SourceInfo I); |
| 10223 | #endif |
| 10224 | #if defined(GET_EVAL_IMPL) || defined(GET_LINK_IMPL) |
| 10225 | bool |
| 10226 | #if defined(GET_EVAL_IMPL) |
| 10227 | EvalEmitter |
| 10228 | #else |
| 10229 | ByteCodeEmitter |
| 10230 | #endif |
| 10231 | ::emitCastIntegralFixedPoint(PrimType T0, uint32_t A0, SourceInfo I) { |
| 10232 | switch (T0) { |
| 10233 | case PT_Sint8: |
| 10234 | return emitCastIntegralFixedPointSint8(A0, I); |
| 10235 | case PT_Uint8: |
| 10236 | return emitCastIntegralFixedPointUint8(A0, I); |
| 10237 | case PT_Sint16: |
| 10238 | return emitCastIntegralFixedPointSint16(A0, I); |
| 10239 | case PT_Uint16: |
| 10240 | return emitCastIntegralFixedPointUint16(A0, I); |
| 10241 | case PT_Sint32: |
| 10242 | return emitCastIntegralFixedPointSint32(A0, I); |
| 10243 | case PT_Uint32: |
| 10244 | return emitCastIntegralFixedPointUint32(A0, I); |
| 10245 | case PT_Sint64: |
| 10246 | return emitCastIntegralFixedPointSint64(A0, I); |
| 10247 | case PT_Uint64: |
| 10248 | return emitCastIntegralFixedPointUint64(A0, I); |
| 10249 | case PT_IntAP: |
| 10250 | return emitCastIntegralFixedPointIntAP(A0, I); |
| 10251 | case PT_IntAPS: |
| 10252 | return emitCastIntegralFixedPointIntAPS(A0, I); |
| 10253 | case PT_Bool: |
| 10254 | return emitCastIntegralFixedPointBool(A0, I); |
| 10255 | default: llvm_unreachable("invalid type: emitCastIntegralFixedPoint" ); |
| 10256 | } |
| 10257 | llvm_unreachable("invalid enum value" ); |
| 10258 | } |
| 10259 | #endif |
| 10260 | #ifdef GET_LINK_IMPL |
| 10261 | bool ByteCodeEmitter::emitCastIntegralFixedPointSint8( uint32_t A0, SourceInfo L) { |
| 10262 | return emitOp<uint32_t>(OP_CastIntegralFixedPointSint8, A0, L); |
| 10263 | } |
| 10264 | bool ByteCodeEmitter::emitCastIntegralFixedPointUint8( uint32_t A0, SourceInfo L) { |
| 10265 | return emitOp<uint32_t>(OP_CastIntegralFixedPointUint8, A0, L); |
| 10266 | } |
| 10267 | bool ByteCodeEmitter::emitCastIntegralFixedPointSint16( uint32_t A0, SourceInfo L) { |
| 10268 | return emitOp<uint32_t>(OP_CastIntegralFixedPointSint16, A0, L); |
| 10269 | } |
| 10270 | bool ByteCodeEmitter::emitCastIntegralFixedPointUint16( uint32_t A0, SourceInfo L) { |
| 10271 | return emitOp<uint32_t>(OP_CastIntegralFixedPointUint16, A0, L); |
| 10272 | } |
| 10273 | bool ByteCodeEmitter::emitCastIntegralFixedPointSint32( uint32_t A0, SourceInfo L) { |
| 10274 | return emitOp<uint32_t>(OP_CastIntegralFixedPointSint32, A0, L); |
| 10275 | } |
| 10276 | bool ByteCodeEmitter::emitCastIntegralFixedPointUint32( uint32_t A0, SourceInfo L) { |
| 10277 | return emitOp<uint32_t>(OP_CastIntegralFixedPointUint32, A0, L); |
| 10278 | } |
| 10279 | bool ByteCodeEmitter::emitCastIntegralFixedPointSint64( uint32_t A0, SourceInfo L) { |
| 10280 | return emitOp<uint32_t>(OP_CastIntegralFixedPointSint64, A0, L); |
| 10281 | } |
| 10282 | bool ByteCodeEmitter::emitCastIntegralFixedPointUint64( uint32_t A0, SourceInfo L) { |
| 10283 | return emitOp<uint32_t>(OP_CastIntegralFixedPointUint64, A0, L); |
| 10284 | } |
| 10285 | bool ByteCodeEmitter::emitCastIntegralFixedPointIntAP( uint32_t A0, SourceInfo L) { |
| 10286 | return emitOp<uint32_t>(OP_CastIntegralFixedPointIntAP, A0, L); |
| 10287 | } |
| 10288 | bool ByteCodeEmitter::emitCastIntegralFixedPointIntAPS( uint32_t A0, SourceInfo L) { |
| 10289 | return emitOp<uint32_t>(OP_CastIntegralFixedPointIntAPS, A0, L); |
| 10290 | } |
| 10291 | bool ByteCodeEmitter::emitCastIntegralFixedPointBool( uint32_t A0, SourceInfo L) { |
| 10292 | return emitOp<uint32_t>(OP_CastIntegralFixedPointBool, A0, L); |
| 10293 | } |
| 10294 | #endif |
| 10295 | #ifdef GET_EVAL_IMPL |
| 10296 | bool EvalEmitter::emitCastIntegralFixedPointSint8( uint32_t A0, SourceInfo L) { |
| 10297 | if (!isActive()) return true; |
| 10298 | CurrentSource = L; |
| 10299 | return CastIntegralFixedPoint<PT_Sint8>(S, CodePtr(), A0); |
| 10300 | } |
| 10301 | bool EvalEmitter::emitCastIntegralFixedPointUint8( uint32_t A0, SourceInfo L) { |
| 10302 | if (!isActive()) return true; |
| 10303 | CurrentSource = L; |
| 10304 | return CastIntegralFixedPoint<PT_Uint8>(S, CodePtr(), A0); |
| 10305 | } |
| 10306 | bool EvalEmitter::emitCastIntegralFixedPointSint16( uint32_t A0, SourceInfo L) { |
| 10307 | if (!isActive()) return true; |
| 10308 | CurrentSource = L; |
| 10309 | return CastIntegralFixedPoint<PT_Sint16>(S, CodePtr(), A0); |
| 10310 | } |
| 10311 | bool EvalEmitter::emitCastIntegralFixedPointUint16( uint32_t A0, SourceInfo L) { |
| 10312 | if (!isActive()) return true; |
| 10313 | CurrentSource = L; |
| 10314 | return CastIntegralFixedPoint<PT_Uint16>(S, CodePtr(), A0); |
| 10315 | } |
| 10316 | bool EvalEmitter::emitCastIntegralFixedPointSint32( uint32_t A0, SourceInfo L) { |
| 10317 | if (!isActive()) return true; |
| 10318 | CurrentSource = L; |
| 10319 | return CastIntegralFixedPoint<PT_Sint32>(S, CodePtr(), A0); |
| 10320 | } |
| 10321 | bool EvalEmitter::emitCastIntegralFixedPointUint32( uint32_t A0, SourceInfo L) { |
| 10322 | if (!isActive()) return true; |
| 10323 | CurrentSource = L; |
| 10324 | return CastIntegralFixedPoint<PT_Uint32>(S, CodePtr(), A0); |
| 10325 | } |
| 10326 | bool EvalEmitter::emitCastIntegralFixedPointSint64( uint32_t A0, SourceInfo L) { |
| 10327 | if (!isActive()) return true; |
| 10328 | CurrentSource = L; |
| 10329 | return CastIntegralFixedPoint<PT_Sint64>(S, CodePtr(), A0); |
| 10330 | } |
| 10331 | bool EvalEmitter::emitCastIntegralFixedPointUint64( uint32_t A0, SourceInfo L) { |
| 10332 | if (!isActive()) return true; |
| 10333 | CurrentSource = L; |
| 10334 | return CastIntegralFixedPoint<PT_Uint64>(S, CodePtr(), A0); |
| 10335 | } |
| 10336 | bool EvalEmitter::emitCastIntegralFixedPointIntAP( uint32_t A0, SourceInfo L) { |
| 10337 | if (!isActive()) return true; |
| 10338 | CurrentSource = L; |
| 10339 | return CastIntegralFixedPoint<PT_IntAP>(S, CodePtr(), A0); |
| 10340 | } |
| 10341 | bool EvalEmitter::emitCastIntegralFixedPointIntAPS( uint32_t A0, SourceInfo L) { |
| 10342 | if (!isActive()) return true; |
| 10343 | CurrentSource = L; |
| 10344 | return CastIntegralFixedPoint<PT_IntAPS>(S, CodePtr(), A0); |
| 10345 | } |
| 10346 | bool EvalEmitter::emitCastIntegralFixedPointBool( uint32_t A0, SourceInfo L) { |
| 10347 | if (!isActive()) return true; |
| 10348 | CurrentSource = L; |
| 10349 | return CastIntegralFixedPoint<PT_Bool>(S, CodePtr(), A0); |
| 10350 | } |
| 10351 | #endif |
| 10352 | #ifdef GET_OPCODE_NAMES |
| 10353 | OP_CastIntegralFloatingSint8, |
| 10354 | OP_CastIntegralFloatingUint8, |
| 10355 | OP_CastIntegralFloatingSint16, |
| 10356 | OP_CastIntegralFloatingUint16, |
| 10357 | OP_CastIntegralFloatingSint32, |
| 10358 | OP_CastIntegralFloatingUint32, |
| 10359 | OP_CastIntegralFloatingSint64, |
| 10360 | OP_CastIntegralFloatingUint64, |
| 10361 | OP_CastIntegralFloatingIntAP, |
| 10362 | OP_CastIntegralFloatingIntAPS, |
| 10363 | OP_CastIntegralFloatingBool, |
| 10364 | OP_CastIntegralFloatingFixedPoint, |
| 10365 | #endif |
| 10366 | #ifdef GET_INTERPFN_LIST |
| 10367 | &Interp_CastIntegralFloatingSint8, |
| 10368 | &Interp_CastIntegralFloatingUint8, |
| 10369 | &Interp_CastIntegralFloatingSint16, |
| 10370 | &Interp_CastIntegralFloatingUint16, |
| 10371 | &Interp_CastIntegralFloatingSint32, |
| 10372 | &Interp_CastIntegralFloatingUint32, |
| 10373 | &Interp_CastIntegralFloatingSint64, |
| 10374 | &Interp_CastIntegralFloatingUint64, |
| 10375 | &Interp_CastIntegralFloatingIntAP, |
| 10376 | &Interp_CastIntegralFloatingIntAPS, |
| 10377 | &Interp_CastIntegralFloatingBool, |
| 10378 | &Interp_CastIntegralFloatingFixedPoint, |
| 10379 | #endif |
| 10380 | #ifdef GET_INTERPFN_DISPATCHERS |
| 10381 | PRESERVE_NONE |
| 10382 | static bool Interp_CastIntegralFloatingSint8(InterpState &S) { |
| 10383 | { |
| 10384 | CodePtr OpPC = S.PC; |
| 10385 | const auto V0 = ReadArg<const llvm::fltSemantics *>(S, S.PC); |
| 10386 | const auto V1 = ReadArg<uint32_t>(S, S.PC); |
| 10387 | if (!CastIntegralFloating<PT_Sint8>(S, OpPC, V0, V1)) return false; |
| 10388 | } |
| 10389 | #if USE_TAILCALLS |
| 10390 | MUSTTAIL return InterpNext(S); |
| 10391 | #else |
| 10392 | return true; |
| 10393 | #endif |
| 10394 | } |
| 10395 | PRESERVE_NONE |
| 10396 | static bool Interp_CastIntegralFloatingUint8(InterpState &S) { |
| 10397 | { |
| 10398 | CodePtr OpPC = S.PC; |
| 10399 | const auto V0 = ReadArg<const llvm::fltSemantics *>(S, S.PC); |
| 10400 | const auto V1 = ReadArg<uint32_t>(S, S.PC); |
| 10401 | if (!CastIntegralFloating<PT_Uint8>(S, OpPC, V0, V1)) return false; |
| 10402 | } |
| 10403 | #if USE_TAILCALLS |
| 10404 | MUSTTAIL return InterpNext(S); |
| 10405 | #else |
| 10406 | return true; |
| 10407 | #endif |
| 10408 | } |
| 10409 | PRESERVE_NONE |
| 10410 | static bool Interp_CastIntegralFloatingSint16(InterpState &S) { |
| 10411 | { |
| 10412 | CodePtr OpPC = S.PC; |
| 10413 | const auto V0 = ReadArg<const llvm::fltSemantics *>(S, S.PC); |
| 10414 | const auto V1 = ReadArg<uint32_t>(S, S.PC); |
| 10415 | if (!CastIntegralFloating<PT_Sint16>(S, OpPC, V0, V1)) return false; |
| 10416 | } |
| 10417 | #if USE_TAILCALLS |
| 10418 | MUSTTAIL return InterpNext(S); |
| 10419 | #else |
| 10420 | return true; |
| 10421 | #endif |
| 10422 | } |
| 10423 | PRESERVE_NONE |
| 10424 | static bool Interp_CastIntegralFloatingUint16(InterpState &S) { |
| 10425 | { |
| 10426 | CodePtr OpPC = S.PC; |
| 10427 | const auto V0 = ReadArg<const llvm::fltSemantics *>(S, S.PC); |
| 10428 | const auto V1 = ReadArg<uint32_t>(S, S.PC); |
| 10429 | if (!CastIntegralFloating<PT_Uint16>(S, OpPC, V0, V1)) return false; |
| 10430 | } |
| 10431 | #if USE_TAILCALLS |
| 10432 | MUSTTAIL return InterpNext(S); |
| 10433 | #else |
| 10434 | return true; |
| 10435 | #endif |
| 10436 | } |
| 10437 | PRESERVE_NONE |
| 10438 | static bool Interp_CastIntegralFloatingSint32(InterpState &S) { |
| 10439 | { |
| 10440 | CodePtr OpPC = S.PC; |
| 10441 | const auto V0 = ReadArg<const llvm::fltSemantics *>(S, S.PC); |
| 10442 | const auto V1 = ReadArg<uint32_t>(S, S.PC); |
| 10443 | if (!CastIntegralFloating<PT_Sint32>(S, OpPC, V0, V1)) return false; |
| 10444 | } |
| 10445 | #if USE_TAILCALLS |
| 10446 | MUSTTAIL return InterpNext(S); |
| 10447 | #else |
| 10448 | return true; |
| 10449 | #endif |
| 10450 | } |
| 10451 | PRESERVE_NONE |
| 10452 | static bool Interp_CastIntegralFloatingUint32(InterpState &S) { |
| 10453 | { |
| 10454 | CodePtr OpPC = S.PC; |
| 10455 | const auto V0 = ReadArg<const llvm::fltSemantics *>(S, S.PC); |
| 10456 | const auto V1 = ReadArg<uint32_t>(S, S.PC); |
| 10457 | if (!CastIntegralFloating<PT_Uint32>(S, OpPC, V0, V1)) return false; |
| 10458 | } |
| 10459 | #if USE_TAILCALLS |
| 10460 | MUSTTAIL return InterpNext(S); |
| 10461 | #else |
| 10462 | return true; |
| 10463 | #endif |
| 10464 | } |
| 10465 | PRESERVE_NONE |
| 10466 | static bool Interp_CastIntegralFloatingSint64(InterpState &S) { |
| 10467 | { |
| 10468 | CodePtr OpPC = S.PC; |
| 10469 | const auto V0 = ReadArg<const llvm::fltSemantics *>(S, S.PC); |
| 10470 | const auto V1 = ReadArg<uint32_t>(S, S.PC); |
| 10471 | if (!CastIntegralFloating<PT_Sint64>(S, OpPC, V0, V1)) return false; |
| 10472 | } |
| 10473 | #if USE_TAILCALLS |
| 10474 | MUSTTAIL return InterpNext(S); |
| 10475 | #else |
| 10476 | return true; |
| 10477 | #endif |
| 10478 | } |
| 10479 | PRESERVE_NONE |
| 10480 | static bool Interp_CastIntegralFloatingUint64(InterpState &S) { |
| 10481 | { |
| 10482 | CodePtr OpPC = S.PC; |
| 10483 | const auto V0 = ReadArg<const llvm::fltSemantics *>(S, S.PC); |
| 10484 | const auto V1 = ReadArg<uint32_t>(S, S.PC); |
| 10485 | if (!CastIntegralFloating<PT_Uint64>(S, OpPC, V0, V1)) return false; |
| 10486 | } |
| 10487 | #if USE_TAILCALLS |
| 10488 | MUSTTAIL return InterpNext(S); |
| 10489 | #else |
| 10490 | return true; |
| 10491 | #endif |
| 10492 | } |
| 10493 | PRESERVE_NONE |
| 10494 | static bool Interp_CastIntegralFloatingIntAP(InterpState &S) { |
| 10495 | { |
| 10496 | CodePtr OpPC = S.PC; |
| 10497 | const auto V0 = ReadArg<const llvm::fltSemantics *>(S, S.PC); |
| 10498 | const auto V1 = ReadArg<uint32_t>(S, S.PC); |
| 10499 | if (!CastIntegralFloating<PT_IntAP>(S, OpPC, V0, V1)) return false; |
| 10500 | } |
| 10501 | #if USE_TAILCALLS |
| 10502 | MUSTTAIL return InterpNext(S); |
| 10503 | #else |
| 10504 | return true; |
| 10505 | #endif |
| 10506 | } |
| 10507 | PRESERVE_NONE |
| 10508 | static bool Interp_CastIntegralFloatingIntAPS(InterpState &S) { |
| 10509 | { |
| 10510 | CodePtr OpPC = S.PC; |
| 10511 | const auto V0 = ReadArg<const llvm::fltSemantics *>(S, S.PC); |
| 10512 | const auto V1 = ReadArg<uint32_t>(S, S.PC); |
| 10513 | if (!CastIntegralFloating<PT_IntAPS>(S, OpPC, V0, V1)) return false; |
| 10514 | } |
| 10515 | #if USE_TAILCALLS |
| 10516 | MUSTTAIL return InterpNext(S); |
| 10517 | #else |
| 10518 | return true; |
| 10519 | #endif |
| 10520 | } |
| 10521 | PRESERVE_NONE |
| 10522 | static bool Interp_CastIntegralFloatingBool(InterpState &S) { |
| 10523 | { |
| 10524 | CodePtr OpPC = S.PC; |
| 10525 | const auto V0 = ReadArg<const llvm::fltSemantics *>(S, S.PC); |
| 10526 | const auto V1 = ReadArg<uint32_t>(S, S.PC); |
| 10527 | if (!CastIntegralFloating<PT_Bool>(S, OpPC, V0, V1)) return false; |
| 10528 | } |
| 10529 | #if USE_TAILCALLS |
| 10530 | MUSTTAIL return InterpNext(S); |
| 10531 | #else |
| 10532 | return true; |
| 10533 | #endif |
| 10534 | } |
| 10535 | PRESERVE_NONE |
| 10536 | static bool Interp_CastIntegralFloatingFixedPoint(InterpState &S) { |
| 10537 | { |
| 10538 | CodePtr OpPC = S.PC; |
| 10539 | const auto V0 = ReadArg<const llvm::fltSemantics *>(S, S.PC); |
| 10540 | const auto V1 = ReadArg<uint32_t>(S, S.PC); |
| 10541 | if (!CastIntegralFloating<PT_FixedPoint>(S, OpPC, V0, V1)) return false; |
| 10542 | } |
| 10543 | #if USE_TAILCALLS |
| 10544 | MUSTTAIL return InterpNext(S); |
| 10545 | #else |
| 10546 | return true; |
| 10547 | #endif |
| 10548 | } |
| 10549 | #endif |
| 10550 | #ifdef GET_DISASM |
| 10551 | case OP_CastIntegralFloatingSint8: |
| 10552 | Text.Op = PrintName("CastIntegralFloatingSint8" ); |
| 10553 | Text.Args.push_back(printArg<const llvm::fltSemantics *>(PC)); |
| 10554 | Text.Args.push_back(printArg<uint32_t>(PC)); |
| 10555 | break; |
| 10556 | case OP_CastIntegralFloatingUint8: |
| 10557 | Text.Op = PrintName("CastIntegralFloatingUint8" ); |
| 10558 | Text.Args.push_back(printArg<const llvm::fltSemantics *>(PC)); |
| 10559 | Text.Args.push_back(printArg<uint32_t>(PC)); |
| 10560 | break; |
| 10561 | case OP_CastIntegralFloatingSint16: |
| 10562 | Text.Op = PrintName("CastIntegralFloatingSint16" ); |
| 10563 | Text.Args.push_back(printArg<const llvm::fltSemantics *>(PC)); |
| 10564 | Text.Args.push_back(printArg<uint32_t>(PC)); |
| 10565 | break; |
| 10566 | case OP_CastIntegralFloatingUint16: |
| 10567 | Text.Op = PrintName("CastIntegralFloatingUint16" ); |
| 10568 | Text.Args.push_back(printArg<const llvm::fltSemantics *>(PC)); |
| 10569 | Text.Args.push_back(printArg<uint32_t>(PC)); |
| 10570 | break; |
| 10571 | case OP_CastIntegralFloatingSint32: |
| 10572 | Text.Op = PrintName("CastIntegralFloatingSint32" ); |
| 10573 | Text.Args.push_back(printArg<const llvm::fltSemantics *>(PC)); |
| 10574 | Text.Args.push_back(printArg<uint32_t>(PC)); |
| 10575 | break; |
| 10576 | case OP_CastIntegralFloatingUint32: |
| 10577 | Text.Op = PrintName("CastIntegralFloatingUint32" ); |
| 10578 | Text.Args.push_back(printArg<const llvm::fltSemantics *>(PC)); |
| 10579 | Text.Args.push_back(printArg<uint32_t>(PC)); |
| 10580 | break; |
| 10581 | case OP_CastIntegralFloatingSint64: |
| 10582 | Text.Op = PrintName("CastIntegralFloatingSint64" ); |
| 10583 | Text.Args.push_back(printArg<const llvm::fltSemantics *>(PC)); |
| 10584 | Text.Args.push_back(printArg<uint32_t>(PC)); |
| 10585 | break; |
| 10586 | case OP_CastIntegralFloatingUint64: |
| 10587 | Text.Op = PrintName("CastIntegralFloatingUint64" ); |
| 10588 | Text.Args.push_back(printArg<const llvm::fltSemantics *>(PC)); |
| 10589 | Text.Args.push_back(printArg<uint32_t>(PC)); |
| 10590 | break; |
| 10591 | case OP_CastIntegralFloatingIntAP: |
| 10592 | Text.Op = PrintName("CastIntegralFloatingIntAP" ); |
| 10593 | Text.Args.push_back(printArg<const llvm::fltSemantics *>(PC)); |
| 10594 | Text.Args.push_back(printArg<uint32_t>(PC)); |
| 10595 | break; |
| 10596 | case OP_CastIntegralFloatingIntAPS: |
| 10597 | Text.Op = PrintName("CastIntegralFloatingIntAPS" ); |
| 10598 | Text.Args.push_back(printArg<const llvm::fltSemantics *>(PC)); |
| 10599 | Text.Args.push_back(printArg<uint32_t>(PC)); |
| 10600 | break; |
| 10601 | case OP_CastIntegralFloatingBool: |
| 10602 | Text.Op = PrintName("CastIntegralFloatingBool" ); |
| 10603 | Text.Args.push_back(printArg<const llvm::fltSemantics *>(PC)); |
| 10604 | Text.Args.push_back(printArg<uint32_t>(PC)); |
| 10605 | break; |
| 10606 | case OP_CastIntegralFloatingFixedPoint: |
| 10607 | Text.Op = PrintName("CastIntegralFloatingFixedPoint" ); |
| 10608 | Text.Args.push_back(printArg<const llvm::fltSemantics *>(PC)); |
| 10609 | Text.Args.push_back(printArg<uint32_t>(PC)); |
| 10610 | break; |
| 10611 | #endif |
| 10612 | #if defined(GET_EVAL_PROTO) || defined(GET_LINK_PROTO) |
| 10613 | bool emitCastIntegralFloatingSint8( const llvm::fltSemantics * , uint32_t , SourceInfo); |
| 10614 | bool emitCastIntegralFloatingUint8( const llvm::fltSemantics * , uint32_t , SourceInfo); |
| 10615 | bool emitCastIntegralFloatingSint16( const llvm::fltSemantics * , uint32_t , SourceInfo); |
| 10616 | bool emitCastIntegralFloatingUint16( const llvm::fltSemantics * , uint32_t , SourceInfo); |
| 10617 | bool emitCastIntegralFloatingSint32( const llvm::fltSemantics * , uint32_t , SourceInfo); |
| 10618 | bool emitCastIntegralFloatingUint32( const llvm::fltSemantics * , uint32_t , SourceInfo); |
| 10619 | bool emitCastIntegralFloatingSint64( const llvm::fltSemantics * , uint32_t , SourceInfo); |
| 10620 | bool emitCastIntegralFloatingUint64( const llvm::fltSemantics * , uint32_t , SourceInfo); |
| 10621 | bool emitCastIntegralFloatingIntAP( const llvm::fltSemantics * , uint32_t , SourceInfo); |
| 10622 | bool emitCastIntegralFloatingIntAPS( const llvm::fltSemantics * , uint32_t , SourceInfo); |
| 10623 | bool emitCastIntegralFloatingBool( const llvm::fltSemantics * , uint32_t , SourceInfo); |
| 10624 | bool emitCastIntegralFloatingFixedPoint( const llvm::fltSemantics * , uint32_t , SourceInfo); |
| 10625 | #endif |
| 10626 | #if defined(GET_EVAL_PROTO) || defined(GET_LINK_PROTO) |
| 10627 | [[nodiscard]] bool emitCastIntegralFloating(PrimType, const llvm::fltSemantics *, uint32_t, SourceInfo I); |
| 10628 | #endif |
| 10629 | #if defined(GET_EVAL_IMPL) || defined(GET_LINK_IMPL) |
| 10630 | bool |
| 10631 | #if defined(GET_EVAL_IMPL) |
| 10632 | EvalEmitter |
| 10633 | #else |
| 10634 | ByteCodeEmitter |
| 10635 | #endif |
| 10636 | ::emitCastIntegralFloating(PrimType T0, const llvm::fltSemantics * A0, uint32_t A1, SourceInfo I) { |
| 10637 | switch (T0) { |
| 10638 | case PT_Sint8: |
| 10639 | return emitCastIntegralFloatingSint8(A0, A1, I); |
| 10640 | case PT_Uint8: |
| 10641 | return emitCastIntegralFloatingUint8(A0, A1, I); |
| 10642 | case PT_Sint16: |
| 10643 | return emitCastIntegralFloatingSint16(A0, A1, I); |
| 10644 | case PT_Uint16: |
| 10645 | return emitCastIntegralFloatingUint16(A0, A1, I); |
| 10646 | case PT_Sint32: |
| 10647 | return emitCastIntegralFloatingSint32(A0, A1, I); |
| 10648 | case PT_Uint32: |
| 10649 | return emitCastIntegralFloatingUint32(A0, A1, I); |
| 10650 | case PT_Sint64: |
| 10651 | return emitCastIntegralFloatingSint64(A0, A1, I); |
| 10652 | case PT_Uint64: |
| 10653 | return emitCastIntegralFloatingUint64(A0, A1, I); |
| 10654 | case PT_IntAP: |
| 10655 | return emitCastIntegralFloatingIntAP(A0, A1, I); |
| 10656 | case PT_IntAPS: |
| 10657 | return emitCastIntegralFloatingIntAPS(A0, A1, I); |
| 10658 | case PT_Bool: |
| 10659 | return emitCastIntegralFloatingBool(A0, A1, I); |
| 10660 | case PT_FixedPoint: |
| 10661 | return emitCastIntegralFloatingFixedPoint(A0, A1, I); |
| 10662 | default: llvm_unreachable("invalid type: emitCastIntegralFloating" ); |
| 10663 | } |
| 10664 | llvm_unreachable("invalid enum value" ); |
| 10665 | } |
| 10666 | #endif |
| 10667 | #ifdef GET_LINK_IMPL |
| 10668 | bool ByteCodeEmitter::emitCastIntegralFloatingSint8( const llvm::fltSemantics * A0, uint32_t A1, SourceInfo L) { |
| 10669 | return emitOp<const llvm::fltSemantics *, uint32_t>(OP_CastIntegralFloatingSint8, A0, A1, L); |
| 10670 | } |
| 10671 | bool ByteCodeEmitter::emitCastIntegralFloatingUint8( const llvm::fltSemantics * A0, uint32_t A1, SourceInfo L) { |
| 10672 | return emitOp<const llvm::fltSemantics *, uint32_t>(OP_CastIntegralFloatingUint8, A0, A1, L); |
| 10673 | } |
| 10674 | bool ByteCodeEmitter::emitCastIntegralFloatingSint16( const llvm::fltSemantics * A0, uint32_t A1, SourceInfo L) { |
| 10675 | return emitOp<const llvm::fltSemantics *, uint32_t>(OP_CastIntegralFloatingSint16, A0, A1, L); |
| 10676 | } |
| 10677 | bool ByteCodeEmitter::emitCastIntegralFloatingUint16( const llvm::fltSemantics * A0, uint32_t A1, SourceInfo L) { |
| 10678 | return emitOp<const llvm::fltSemantics *, uint32_t>(OP_CastIntegralFloatingUint16, A0, A1, L); |
| 10679 | } |
| 10680 | bool ByteCodeEmitter::emitCastIntegralFloatingSint32( const llvm::fltSemantics * A0, uint32_t A1, SourceInfo L) { |
| 10681 | return emitOp<const llvm::fltSemantics *, uint32_t>(OP_CastIntegralFloatingSint32, A0, A1, L); |
| 10682 | } |
| 10683 | bool ByteCodeEmitter::emitCastIntegralFloatingUint32( const llvm::fltSemantics * A0, uint32_t A1, SourceInfo L) { |
| 10684 | return emitOp<const llvm::fltSemantics *, uint32_t>(OP_CastIntegralFloatingUint32, A0, A1, L); |
| 10685 | } |
| 10686 | bool ByteCodeEmitter::emitCastIntegralFloatingSint64( const llvm::fltSemantics * A0, uint32_t A1, SourceInfo L) { |
| 10687 | return emitOp<const llvm::fltSemantics *, uint32_t>(OP_CastIntegralFloatingSint64, A0, A1, L); |
| 10688 | } |
| 10689 | bool ByteCodeEmitter::emitCastIntegralFloatingUint64( const llvm::fltSemantics * A0, uint32_t A1, SourceInfo L) { |
| 10690 | return emitOp<const llvm::fltSemantics *, uint32_t>(OP_CastIntegralFloatingUint64, A0, A1, L); |
| 10691 | } |
| 10692 | bool ByteCodeEmitter::emitCastIntegralFloatingIntAP( const llvm::fltSemantics * A0, uint32_t A1, SourceInfo L) { |
| 10693 | return emitOp<const llvm::fltSemantics *, uint32_t>(OP_CastIntegralFloatingIntAP, A0, A1, L); |
| 10694 | } |
| 10695 | bool ByteCodeEmitter::emitCastIntegralFloatingIntAPS( const llvm::fltSemantics * A0, uint32_t A1, SourceInfo L) { |
| 10696 | return emitOp<const llvm::fltSemantics *, uint32_t>(OP_CastIntegralFloatingIntAPS, A0, A1, L); |
| 10697 | } |
| 10698 | bool ByteCodeEmitter::emitCastIntegralFloatingBool( const llvm::fltSemantics * A0, uint32_t A1, SourceInfo L) { |
| 10699 | return emitOp<const llvm::fltSemantics *, uint32_t>(OP_CastIntegralFloatingBool, A0, A1, L); |
| 10700 | } |
| 10701 | bool ByteCodeEmitter::emitCastIntegralFloatingFixedPoint( const llvm::fltSemantics * A0, uint32_t A1, SourceInfo L) { |
| 10702 | return emitOp<const llvm::fltSemantics *, uint32_t>(OP_CastIntegralFloatingFixedPoint, A0, A1, L); |
| 10703 | } |
| 10704 | #endif |
| 10705 | #ifdef GET_EVAL_IMPL |
| 10706 | bool EvalEmitter::emitCastIntegralFloatingSint8( const llvm::fltSemantics * A0, uint32_t A1, SourceInfo L) { |
| 10707 | if (!isActive()) return true; |
| 10708 | CurrentSource = L; |
| 10709 | return CastIntegralFloating<PT_Sint8>(S, CodePtr(), A0, A1); |
| 10710 | } |
| 10711 | bool EvalEmitter::emitCastIntegralFloatingUint8( const llvm::fltSemantics * A0, uint32_t A1, SourceInfo L) { |
| 10712 | if (!isActive()) return true; |
| 10713 | CurrentSource = L; |
| 10714 | return CastIntegralFloating<PT_Uint8>(S, CodePtr(), A0, A1); |
| 10715 | } |
| 10716 | bool EvalEmitter::emitCastIntegralFloatingSint16( const llvm::fltSemantics * A0, uint32_t A1, SourceInfo L) { |
| 10717 | if (!isActive()) return true; |
| 10718 | CurrentSource = L; |
| 10719 | return CastIntegralFloating<PT_Sint16>(S, CodePtr(), A0, A1); |
| 10720 | } |
| 10721 | bool EvalEmitter::emitCastIntegralFloatingUint16( const llvm::fltSemantics * A0, uint32_t A1, SourceInfo L) { |
| 10722 | if (!isActive()) return true; |
| 10723 | CurrentSource = L; |
| 10724 | return CastIntegralFloating<PT_Uint16>(S, CodePtr(), A0, A1); |
| 10725 | } |
| 10726 | bool EvalEmitter::emitCastIntegralFloatingSint32( const llvm::fltSemantics * A0, uint32_t A1, SourceInfo L) { |
| 10727 | if (!isActive()) return true; |
| 10728 | CurrentSource = L; |
| 10729 | return CastIntegralFloating<PT_Sint32>(S, CodePtr(), A0, A1); |
| 10730 | } |
| 10731 | bool EvalEmitter::emitCastIntegralFloatingUint32( const llvm::fltSemantics * A0, uint32_t A1, SourceInfo L) { |
| 10732 | if (!isActive()) return true; |
| 10733 | CurrentSource = L; |
| 10734 | return CastIntegralFloating<PT_Uint32>(S, CodePtr(), A0, A1); |
| 10735 | } |
| 10736 | bool EvalEmitter::emitCastIntegralFloatingSint64( const llvm::fltSemantics * A0, uint32_t A1, SourceInfo L) { |
| 10737 | if (!isActive()) return true; |
| 10738 | CurrentSource = L; |
| 10739 | return CastIntegralFloating<PT_Sint64>(S, CodePtr(), A0, A1); |
| 10740 | } |
| 10741 | bool EvalEmitter::emitCastIntegralFloatingUint64( const llvm::fltSemantics * A0, uint32_t A1, SourceInfo L) { |
| 10742 | if (!isActive()) return true; |
| 10743 | CurrentSource = L; |
| 10744 | return CastIntegralFloating<PT_Uint64>(S, CodePtr(), A0, A1); |
| 10745 | } |
| 10746 | bool EvalEmitter::emitCastIntegralFloatingIntAP( const llvm::fltSemantics * A0, uint32_t A1, SourceInfo L) { |
| 10747 | if (!isActive()) return true; |
| 10748 | CurrentSource = L; |
| 10749 | return CastIntegralFloating<PT_IntAP>(S, CodePtr(), A0, A1); |
| 10750 | } |
| 10751 | bool EvalEmitter::emitCastIntegralFloatingIntAPS( const llvm::fltSemantics * A0, uint32_t A1, SourceInfo L) { |
| 10752 | if (!isActive()) return true; |
| 10753 | CurrentSource = L; |
| 10754 | return CastIntegralFloating<PT_IntAPS>(S, CodePtr(), A0, A1); |
| 10755 | } |
| 10756 | bool EvalEmitter::emitCastIntegralFloatingBool( const llvm::fltSemantics * A0, uint32_t A1, SourceInfo L) { |
| 10757 | if (!isActive()) return true; |
| 10758 | CurrentSource = L; |
| 10759 | return CastIntegralFloating<PT_Bool>(S, CodePtr(), A0, A1); |
| 10760 | } |
| 10761 | bool EvalEmitter::emitCastIntegralFloatingFixedPoint( const llvm::fltSemantics * A0, uint32_t A1, SourceInfo L) { |
| 10762 | if (!isActive()) return true; |
| 10763 | CurrentSource = L; |
| 10764 | return CastIntegralFloating<PT_FixedPoint>(S, CodePtr(), A0, A1); |
| 10765 | } |
| 10766 | #endif |
| 10767 | #ifdef GET_OPCODE_NAMES |
| 10768 | OP_CastMemberPtrBasePop, |
| 10769 | #endif |
| 10770 | #ifdef GET_INTERPFN_LIST |
| 10771 | &Interp_CastMemberPtrBasePop, |
| 10772 | #endif |
| 10773 | #ifdef GET_INTERPFN_DISPATCHERS |
| 10774 | PRESERVE_NONE |
| 10775 | static bool Interp_CastMemberPtrBasePop(InterpState &S) { |
| 10776 | { |
| 10777 | const auto V0 = ReadArg<int32_t>(S, S.PC); |
| 10778 | const auto V1 = ReadArg<const RecordDecl *>(S, S.PC); |
| 10779 | if (!CastMemberPtrBasePop(S, V0, V1)) return false; |
| 10780 | } |
| 10781 | #if USE_TAILCALLS |
| 10782 | MUSTTAIL return InterpNext(S); |
| 10783 | #else |
| 10784 | return true; |
| 10785 | #endif |
| 10786 | } |
| 10787 | #endif |
| 10788 | #ifdef GET_DISASM |
| 10789 | case OP_CastMemberPtrBasePop: |
| 10790 | Text.Op = PrintName("CastMemberPtrBasePop" ); |
| 10791 | Text.Args.push_back(printArg<int32_t>(PC)); |
| 10792 | Text.Args.push_back(printArg<const RecordDecl *>(PC)); |
| 10793 | break; |
| 10794 | #endif |
| 10795 | #if defined(GET_EVAL_PROTO) || defined(GET_LINK_PROTO) |
| 10796 | bool emitCastMemberPtrBasePop( int32_t , const RecordDecl * , SourceInfo); |
| 10797 | #endif |
| 10798 | #ifdef GET_LINK_IMPL |
| 10799 | bool ByteCodeEmitter::emitCastMemberPtrBasePop( int32_t A0, const RecordDecl * A1, SourceInfo L) { |
| 10800 | return emitOp<int32_t, const RecordDecl *>(OP_CastMemberPtrBasePop, A0, A1, L); |
| 10801 | } |
| 10802 | #endif |
| 10803 | #ifdef GET_EVAL_IMPL |
| 10804 | bool EvalEmitter::emitCastMemberPtrBasePop( int32_t A0, const RecordDecl * A1, SourceInfo L) { |
| 10805 | if (!isActive()) return true; |
| 10806 | CurrentSource = L; |
| 10807 | return CastMemberPtrBasePop(S, A0, A1); |
| 10808 | } |
| 10809 | #endif |
| 10810 | #ifdef GET_OPCODE_NAMES |
| 10811 | OP_CastMemberPtrDerivedPop, |
| 10812 | #endif |
| 10813 | #ifdef GET_INTERPFN_LIST |
| 10814 | &Interp_CastMemberPtrDerivedPop, |
| 10815 | #endif |
| 10816 | #ifdef GET_INTERPFN_DISPATCHERS |
| 10817 | PRESERVE_NONE |
| 10818 | static bool Interp_CastMemberPtrDerivedPop(InterpState &S) { |
| 10819 | { |
| 10820 | const auto V0 = ReadArg<int32_t>(S, S.PC); |
| 10821 | const auto V1 = ReadArg<const RecordDecl *>(S, S.PC); |
| 10822 | if (!CastMemberPtrDerivedPop(S, V0, V1)) return false; |
| 10823 | } |
| 10824 | #if USE_TAILCALLS |
| 10825 | MUSTTAIL return InterpNext(S); |
| 10826 | #else |
| 10827 | return true; |
| 10828 | #endif |
| 10829 | } |
| 10830 | #endif |
| 10831 | #ifdef GET_DISASM |
| 10832 | case OP_CastMemberPtrDerivedPop: |
| 10833 | Text.Op = PrintName("CastMemberPtrDerivedPop" ); |
| 10834 | Text.Args.push_back(printArg<int32_t>(PC)); |
| 10835 | Text.Args.push_back(printArg<const RecordDecl *>(PC)); |
| 10836 | break; |
| 10837 | #endif |
| 10838 | #if defined(GET_EVAL_PROTO) || defined(GET_LINK_PROTO) |
| 10839 | bool emitCastMemberPtrDerivedPop( int32_t , const RecordDecl * , SourceInfo); |
| 10840 | #endif |
| 10841 | #ifdef GET_LINK_IMPL |
| 10842 | bool ByteCodeEmitter::emitCastMemberPtrDerivedPop( int32_t A0, const RecordDecl * A1, SourceInfo L) { |
| 10843 | return emitOp<int32_t, const RecordDecl *>(OP_CastMemberPtrDerivedPop, A0, A1, L); |
| 10844 | } |
| 10845 | #endif |
| 10846 | #ifdef GET_EVAL_IMPL |
| 10847 | bool EvalEmitter::emitCastMemberPtrDerivedPop( int32_t A0, const RecordDecl * A1, SourceInfo L) { |
| 10848 | if (!isActive()) return true; |
| 10849 | CurrentSource = L; |
| 10850 | return CastMemberPtrDerivedPop(S, A0, A1); |
| 10851 | } |
| 10852 | #endif |
| 10853 | #ifdef GET_OPCODE_NAMES |
| 10854 | OP_CastMemberPtrPtr, |
| 10855 | #endif |
| 10856 | #ifdef GET_INTERPFN_LIST |
| 10857 | &Interp_CastMemberPtrPtr, |
| 10858 | #endif |
| 10859 | #ifdef GET_INTERPFN_DISPATCHERS |
| 10860 | PRESERVE_NONE |
| 10861 | static bool Interp_CastMemberPtrPtr(InterpState &S) { |
| 10862 | if (!CastMemberPtrPtr(S, S.PC)) return false; |
| 10863 | #if USE_TAILCALLS |
| 10864 | MUSTTAIL return InterpNext(S); |
| 10865 | #else |
| 10866 | return true; |
| 10867 | #endif |
| 10868 | } |
| 10869 | #endif |
| 10870 | #ifdef GET_DISASM |
| 10871 | case OP_CastMemberPtrPtr: |
| 10872 | Text.Op = PrintName("CastMemberPtrPtr" ); |
| 10873 | break; |
| 10874 | #endif |
| 10875 | #if defined(GET_EVAL_PROTO) || defined(GET_LINK_PROTO) |
| 10876 | bool emitCastMemberPtrPtr(SourceInfo); |
| 10877 | #endif |
| 10878 | #ifdef GET_LINK_IMPL |
| 10879 | bool ByteCodeEmitter::emitCastMemberPtrPtr(SourceInfo L) { |
| 10880 | return emitOp<>(OP_CastMemberPtrPtr, L); |
| 10881 | } |
| 10882 | #endif |
| 10883 | #ifdef GET_EVAL_IMPL |
| 10884 | bool EvalEmitter::emitCastMemberPtrPtr(SourceInfo L) { |
| 10885 | if (!isActive()) return true; |
| 10886 | CurrentSource = L; |
| 10887 | return CastMemberPtrPtr(S, CodePtr()); |
| 10888 | } |
| 10889 | #endif |
| 10890 | #ifdef GET_OPCODE_NAMES |
| 10891 | OP_CastPointerIntegralSint8, |
| 10892 | OP_CastPointerIntegralUint8, |
| 10893 | OP_CastPointerIntegralSint16, |
| 10894 | OP_CastPointerIntegralUint16, |
| 10895 | OP_CastPointerIntegralSint32, |
| 10896 | OP_CastPointerIntegralUint32, |
| 10897 | OP_CastPointerIntegralSint64, |
| 10898 | OP_CastPointerIntegralUint64, |
| 10899 | OP_CastPointerIntegralBool, |
| 10900 | #endif |
| 10901 | #ifdef GET_INTERPFN_LIST |
| 10902 | &Interp_CastPointerIntegralSint8, |
| 10903 | &Interp_CastPointerIntegralUint8, |
| 10904 | &Interp_CastPointerIntegralSint16, |
| 10905 | &Interp_CastPointerIntegralUint16, |
| 10906 | &Interp_CastPointerIntegralSint32, |
| 10907 | &Interp_CastPointerIntegralUint32, |
| 10908 | &Interp_CastPointerIntegralSint64, |
| 10909 | &Interp_CastPointerIntegralUint64, |
| 10910 | &Interp_CastPointerIntegralBool, |
| 10911 | #endif |
| 10912 | #ifdef GET_INTERPFN_DISPATCHERS |
| 10913 | PRESERVE_NONE |
| 10914 | static bool Interp_CastPointerIntegralSint8(InterpState &S) { |
| 10915 | if (!CastPointerIntegral<PT_Sint8>(S, S.PC)) return false; |
| 10916 | #if USE_TAILCALLS |
| 10917 | MUSTTAIL return InterpNext(S); |
| 10918 | #else |
| 10919 | return true; |
| 10920 | #endif |
| 10921 | } |
| 10922 | PRESERVE_NONE |
| 10923 | static bool Interp_CastPointerIntegralUint8(InterpState &S) { |
| 10924 | if (!CastPointerIntegral<PT_Uint8>(S, S.PC)) return false; |
| 10925 | #if USE_TAILCALLS |
| 10926 | MUSTTAIL return InterpNext(S); |
| 10927 | #else |
| 10928 | return true; |
| 10929 | #endif |
| 10930 | } |
| 10931 | PRESERVE_NONE |
| 10932 | static bool Interp_CastPointerIntegralSint16(InterpState &S) { |
| 10933 | if (!CastPointerIntegral<PT_Sint16>(S, S.PC)) return false; |
| 10934 | #if USE_TAILCALLS |
| 10935 | MUSTTAIL return InterpNext(S); |
| 10936 | #else |
| 10937 | return true; |
| 10938 | #endif |
| 10939 | } |
| 10940 | PRESERVE_NONE |
| 10941 | static bool Interp_CastPointerIntegralUint16(InterpState &S) { |
| 10942 | if (!CastPointerIntegral<PT_Uint16>(S, S.PC)) return false; |
| 10943 | #if USE_TAILCALLS |
| 10944 | MUSTTAIL return InterpNext(S); |
| 10945 | #else |
| 10946 | return true; |
| 10947 | #endif |
| 10948 | } |
| 10949 | PRESERVE_NONE |
| 10950 | static bool Interp_CastPointerIntegralSint32(InterpState &S) { |
| 10951 | if (!CastPointerIntegral<PT_Sint32>(S, S.PC)) return false; |
| 10952 | #if USE_TAILCALLS |
| 10953 | MUSTTAIL return InterpNext(S); |
| 10954 | #else |
| 10955 | return true; |
| 10956 | #endif |
| 10957 | } |
| 10958 | PRESERVE_NONE |
| 10959 | static bool Interp_CastPointerIntegralUint32(InterpState &S) { |
| 10960 | if (!CastPointerIntegral<PT_Uint32>(S, S.PC)) return false; |
| 10961 | #if USE_TAILCALLS |
| 10962 | MUSTTAIL return InterpNext(S); |
| 10963 | #else |
| 10964 | return true; |
| 10965 | #endif |
| 10966 | } |
| 10967 | PRESERVE_NONE |
| 10968 | static bool Interp_CastPointerIntegralSint64(InterpState &S) { |
| 10969 | if (!CastPointerIntegral<PT_Sint64>(S, S.PC)) return false; |
| 10970 | #if USE_TAILCALLS |
| 10971 | MUSTTAIL return InterpNext(S); |
| 10972 | #else |
| 10973 | return true; |
| 10974 | #endif |
| 10975 | } |
| 10976 | PRESERVE_NONE |
| 10977 | static bool Interp_CastPointerIntegralUint64(InterpState &S) { |
| 10978 | if (!CastPointerIntegral<PT_Uint64>(S, S.PC)) return false; |
| 10979 | #if USE_TAILCALLS |
| 10980 | MUSTTAIL return InterpNext(S); |
| 10981 | #else |
| 10982 | return true; |
| 10983 | #endif |
| 10984 | } |
| 10985 | PRESERVE_NONE |
| 10986 | static bool Interp_CastPointerIntegralBool(InterpState &S) { |
| 10987 | if (!CastPointerIntegral<PT_Bool>(S, S.PC)) return false; |
| 10988 | #if USE_TAILCALLS |
| 10989 | MUSTTAIL return InterpNext(S); |
| 10990 | #else |
| 10991 | return true; |
| 10992 | #endif |
| 10993 | } |
| 10994 | #endif |
| 10995 | #ifdef GET_DISASM |
| 10996 | case OP_CastPointerIntegralSint8: |
| 10997 | Text.Op = PrintName("CastPointerIntegralSint8" ); |
| 10998 | break; |
| 10999 | case OP_CastPointerIntegralUint8: |
| 11000 | Text.Op = PrintName("CastPointerIntegralUint8" ); |
| 11001 | break; |
| 11002 | case OP_CastPointerIntegralSint16: |
| 11003 | Text.Op = PrintName("CastPointerIntegralSint16" ); |
| 11004 | break; |
| 11005 | case OP_CastPointerIntegralUint16: |
| 11006 | Text.Op = PrintName("CastPointerIntegralUint16" ); |
| 11007 | break; |
| 11008 | case OP_CastPointerIntegralSint32: |
| 11009 | Text.Op = PrintName("CastPointerIntegralSint32" ); |
| 11010 | break; |
| 11011 | case OP_CastPointerIntegralUint32: |
| 11012 | Text.Op = PrintName("CastPointerIntegralUint32" ); |
| 11013 | break; |
| 11014 | case OP_CastPointerIntegralSint64: |
| 11015 | Text.Op = PrintName("CastPointerIntegralSint64" ); |
| 11016 | break; |
| 11017 | case OP_CastPointerIntegralUint64: |
| 11018 | Text.Op = PrintName("CastPointerIntegralUint64" ); |
| 11019 | break; |
| 11020 | case OP_CastPointerIntegralBool: |
| 11021 | Text.Op = PrintName("CastPointerIntegralBool" ); |
| 11022 | break; |
| 11023 | #endif |
| 11024 | #if defined(GET_EVAL_PROTO) || defined(GET_LINK_PROTO) |
| 11025 | bool emitCastPointerIntegralSint8(SourceInfo); |
| 11026 | bool emitCastPointerIntegralUint8(SourceInfo); |
| 11027 | bool emitCastPointerIntegralSint16(SourceInfo); |
| 11028 | bool emitCastPointerIntegralUint16(SourceInfo); |
| 11029 | bool emitCastPointerIntegralSint32(SourceInfo); |
| 11030 | bool emitCastPointerIntegralUint32(SourceInfo); |
| 11031 | bool emitCastPointerIntegralSint64(SourceInfo); |
| 11032 | bool emitCastPointerIntegralUint64(SourceInfo); |
| 11033 | bool emitCastPointerIntegralBool(SourceInfo); |
| 11034 | #endif |
| 11035 | #if defined(GET_EVAL_PROTO) || defined(GET_LINK_PROTO) |
| 11036 | [[nodiscard]] bool emitCastPointerIntegral(PrimType, SourceInfo I); |
| 11037 | #endif |
| 11038 | #if defined(GET_EVAL_IMPL) || defined(GET_LINK_IMPL) |
| 11039 | bool |
| 11040 | #if defined(GET_EVAL_IMPL) |
| 11041 | EvalEmitter |
| 11042 | #else |
| 11043 | ByteCodeEmitter |
| 11044 | #endif |
| 11045 | ::emitCastPointerIntegral(PrimType T0, SourceInfo I) { |
| 11046 | switch (T0) { |
| 11047 | case PT_Sint8: |
| 11048 | return emitCastPointerIntegralSint8(I); |
| 11049 | case PT_Uint8: |
| 11050 | return emitCastPointerIntegralUint8(I); |
| 11051 | case PT_Sint16: |
| 11052 | return emitCastPointerIntegralSint16(I); |
| 11053 | case PT_Uint16: |
| 11054 | return emitCastPointerIntegralUint16(I); |
| 11055 | case PT_Sint32: |
| 11056 | return emitCastPointerIntegralSint32(I); |
| 11057 | case PT_Uint32: |
| 11058 | return emitCastPointerIntegralUint32(I); |
| 11059 | case PT_Sint64: |
| 11060 | return emitCastPointerIntegralSint64(I); |
| 11061 | case PT_Uint64: |
| 11062 | return emitCastPointerIntegralUint64(I); |
| 11063 | case PT_Bool: |
| 11064 | return emitCastPointerIntegralBool(I); |
| 11065 | default: llvm_unreachable("invalid type: emitCastPointerIntegral" ); |
| 11066 | } |
| 11067 | llvm_unreachable("invalid enum value" ); |
| 11068 | } |
| 11069 | #endif |
| 11070 | #ifdef GET_LINK_IMPL |
| 11071 | bool ByteCodeEmitter::emitCastPointerIntegralSint8(SourceInfo L) { |
| 11072 | return emitOp<>(OP_CastPointerIntegralSint8, L); |
| 11073 | } |
| 11074 | bool ByteCodeEmitter::emitCastPointerIntegralUint8(SourceInfo L) { |
| 11075 | return emitOp<>(OP_CastPointerIntegralUint8, L); |
| 11076 | } |
| 11077 | bool ByteCodeEmitter::emitCastPointerIntegralSint16(SourceInfo L) { |
| 11078 | return emitOp<>(OP_CastPointerIntegralSint16, L); |
| 11079 | } |
| 11080 | bool ByteCodeEmitter::emitCastPointerIntegralUint16(SourceInfo L) { |
| 11081 | return emitOp<>(OP_CastPointerIntegralUint16, L); |
| 11082 | } |
| 11083 | bool ByteCodeEmitter::emitCastPointerIntegralSint32(SourceInfo L) { |
| 11084 | return emitOp<>(OP_CastPointerIntegralSint32, L); |
| 11085 | } |
| 11086 | bool ByteCodeEmitter::emitCastPointerIntegralUint32(SourceInfo L) { |
| 11087 | return emitOp<>(OP_CastPointerIntegralUint32, L); |
| 11088 | } |
| 11089 | bool ByteCodeEmitter::emitCastPointerIntegralSint64(SourceInfo L) { |
| 11090 | return emitOp<>(OP_CastPointerIntegralSint64, L); |
| 11091 | } |
| 11092 | bool ByteCodeEmitter::emitCastPointerIntegralUint64(SourceInfo L) { |
| 11093 | return emitOp<>(OP_CastPointerIntegralUint64, L); |
| 11094 | } |
| 11095 | bool ByteCodeEmitter::emitCastPointerIntegralBool(SourceInfo L) { |
| 11096 | return emitOp<>(OP_CastPointerIntegralBool, L); |
| 11097 | } |
| 11098 | #endif |
| 11099 | #ifdef GET_EVAL_IMPL |
| 11100 | bool EvalEmitter::emitCastPointerIntegralSint8(SourceInfo L) { |
| 11101 | if (!isActive()) return true; |
| 11102 | CurrentSource = L; |
| 11103 | return CastPointerIntegral<PT_Sint8>(S, CodePtr()); |
| 11104 | } |
| 11105 | bool EvalEmitter::emitCastPointerIntegralUint8(SourceInfo L) { |
| 11106 | if (!isActive()) return true; |
| 11107 | CurrentSource = L; |
| 11108 | return CastPointerIntegral<PT_Uint8>(S, CodePtr()); |
| 11109 | } |
| 11110 | bool EvalEmitter::emitCastPointerIntegralSint16(SourceInfo L) { |
| 11111 | if (!isActive()) return true; |
| 11112 | CurrentSource = L; |
| 11113 | return CastPointerIntegral<PT_Sint16>(S, CodePtr()); |
| 11114 | } |
| 11115 | bool EvalEmitter::emitCastPointerIntegralUint16(SourceInfo L) { |
| 11116 | if (!isActive()) return true; |
| 11117 | CurrentSource = L; |
| 11118 | return CastPointerIntegral<PT_Uint16>(S, CodePtr()); |
| 11119 | } |
| 11120 | bool EvalEmitter::emitCastPointerIntegralSint32(SourceInfo L) { |
| 11121 | if (!isActive()) return true; |
| 11122 | CurrentSource = L; |
| 11123 | return CastPointerIntegral<PT_Sint32>(S, CodePtr()); |
| 11124 | } |
| 11125 | bool EvalEmitter::emitCastPointerIntegralUint32(SourceInfo L) { |
| 11126 | if (!isActive()) return true; |
| 11127 | CurrentSource = L; |
| 11128 | return CastPointerIntegral<PT_Uint32>(S, CodePtr()); |
| 11129 | } |
| 11130 | bool EvalEmitter::emitCastPointerIntegralSint64(SourceInfo L) { |
| 11131 | if (!isActive()) return true; |
| 11132 | CurrentSource = L; |
| 11133 | return CastPointerIntegral<PT_Sint64>(S, CodePtr()); |
| 11134 | } |
| 11135 | bool EvalEmitter::emitCastPointerIntegralUint64(SourceInfo L) { |
| 11136 | if (!isActive()) return true; |
| 11137 | CurrentSource = L; |
| 11138 | return CastPointerIntegral<PT_Uint64>(S, CodePtr()); |
| 11139 | } |
| 11140 | bool EvalEmitter::emitCastPointerIntegralBool(SourceInfo L) { |
| 11141 | if (!isActive()) return true; |
| 11142 | CurrentSource = L; |
| 11143 | return CastPointerIntegral<PT_Bool>(S, CodePtr()); |
| 11144 | } |
| 11145 | #endif |
| 11146 | #ifdef GET_OPCODE_NAMES |
| 11147 | OP_CastPointerIntegralAP, |
| 11148 | #endif |
| 11149 | #ifdef GET_INTERPFN_LIST |
| 11150 | &Interp_CastPointerIntegralAP, |
| 11151 | #endif |
| 11152 | #ifdef GET_INTERPFN_DISPATCHERS |
| 11153 | PRESERVE_NONE |
| 11154 | static bool Interp_CastPointerIntegralAP(InterpState &S) { |
| 11155 | { |
| 11156 | CodePtr OpPC = S.PC; |
| 11157 | const auto V0 = ReadArg<uint32_t>(S, S.PC); |
| 11158 | if (!CastPointerIntegralAP(S, OpPC, V0)) return false; |
| 11159 | } |
| 11160 | #if USE_TAILCALLS |
| 11161 | MUSTTAIL return InterpNext(S); |
| 11162 | #else |
| 11163 | return true; |
| 11164 | #endif |
| 11165 | } |
| 11166 | #endif |
| 11167 | #ifdef GET_DISASM |
| 11168 | case OP_CastPointerIntegralAP: |
| 11169 | Text.Op = PrintName("CastPointerIntegralAP" ); |
| 11170 | Text.Args.push_back(printArg<uint32_t>(PC)); |
| 11171 | break; |
| 11172 | #endif |
| 11173 | #if defined(GET_EVAL_PROTO) || defined(GET_LINK_PROTO) |
| 11174 | bool emitCastPointerIntegralAP( uint32_t , SourceInfo); |
| 11175 | #endif |
| 11176 | #ifdef GET_LINK_IMPL |
| 11177 | bool ByteCodeEmitter::emitCastPointerIntegralAP( uint32_t A0, SourceInfo L) { |
| 11178 | return emitOp<uint32_t>(OP_CastPointerIntegralAP, A0, L); |
| 11179 | } |
| 11180 | #endif |
| 11181 | #ifdef GET_EVAL_IMPL |
| 11182 | bool EvalEmitter::emitCastPointerIntegralAP( uint32_t A0, SourceInfo L) { |
| 11183 | if (!isActive()) return true; |
| 11184 | CurrentSource = L; |
| 11185 | return CastPointerIntegralAP(S, CodePtr(), A0); |
| 11186 | } |
| 11187 | #endif |
| 11188 | #ifdef GET_OPCODE_NAMES |
| 11189 | OP_CastPointerIntegralAPS, |
| 11190 | #endif |
| 11191 | #ifdef GET_INTERPFN_LIST |
| 11192 | &Interp_CastPointerIntegralAPS, |
| 11193 | #endif |
| 11194 | #ifdef GET_INTERPFN_DISPATCHERS |
| 11195 | PRESERVE_NONE |
| 11196 | static bool Interp_CastPointerIntegralAPS(InterpState &S) { |
| 11197 | { |
| 11198 | CodePtr OpPC = S.PC; |
| 11199 | const auto V0 = ReadArg<uint32_t>(S, S.PC); |
| 11200 | if (!CastPointerIntegralAPS(S, OpPC, V0)) return false; |
| 11201 | } |
| 11202 | #if USE_TAILCALLS |
| 11203 | MUSTTAIL return InterpNext(S); |
| 11204 | #else |
| 11205 | return true; |
| 11206 | #endif |
| 11207 | } |
| 11208 | #endif |
| 11209 | #ifdef GET_DISASM |
| 11210 | case OP_CastPointerIntegralAPS: |
| 11211 | Text.Op = PrintName("CastPointerIntegralAPS" ); |
| 11212 | Text.Args.push_back(printArg<uint32_t>(PC)); |
| 11213 | break; |
| 11214 | #endif |
| 11215 | #if defined(GET_EVAL_PROTO) || defined(GET_LINK_PROTO) |
| 11216 | bool emitCastPointerIntegralAPS( uint32_t , SourceInfo); |
| 11217 | #endif |
| 11218 | #ifdef GET_LINK_IMPL |
| 11219 | bool ByteCodeEmitter::emitCastPointerIntegralAPS( uint32_t A0, SourceInfo L) { |
| 11220 | return emitOp<uint32_t>(OP_CastPointerIntegralAPS, A0, L); |
| 11221 | } |
| 11222 | #endif |
| 11223 | #ifdef GET_EVAL_IMPL |
| 11224 | bool EvalEmitter::emitCastPointerIntegralAPS( uint32_t A0, SourceInfo L) { |
| 11225 | if (!isActive()) return true; |
| 11226 | CurrentSource = L; |
| 11227 | return CastPointerIntegralAPS(S, CodePtr(), A0); |
| 11228 | } |
| 11229 | #endif |
| 11230 | #ifdef GET_OPCODE_NAMES |
| 11231 | OP_CheckAllocations, |
| 11232 | #endif |
| 11233 | #ifdef GET_INTERPFN_LIST |
| 11234 | &Interp_CheckAllocations, |
| 11235 | #endif |
| 11236 | #ifdef GET_INTERPFN_DISPATCHERS |
| 11237 | PRESERVE_NONE |
| 11238 | static bool Interp_CheckAllocations(InterpState &S) { |
| 11239 | if (!CheckAllocations(S)) return false; |
| 11240 | #if USE_TAILCALLS |
| 11241 | MUSTTAIL return InterpNext(S); |
| 11242 | #else |
| 11243 | return true; |
| 11244 | #endif |
| 11245 | } |
| 11246 | #endif |
| 11247 | #ifdef GET_DISASM |
| 11248 | case OP_CheckAllocations: |
| 11249 | Text.Op = PrintName("CheckAllocations" ); |
| 11250 | break; |
| 11251 | #endif |
| 11252 | #if defined(GET_EVAL_PROTO) || defined(GET_LINK_PROTO) |
| 11253 | bool emitCheckAllocations(SourceInfo); |
| 11254 | #endif |
| 11255 | #ifdef GET_LINK_IMPL |
| 11256 | bool ByteCodeEmitter::emitCheckAllocations(SourceInfo L) { |
| 11257 | return emitOp<>(OP_CheckAllocations, L); |
| 11258 | } |
| 11259 | #endif |
| 11260 | #ifdef GET_EVAL_IMPL |
| 11261 | bool EvalEmitter::emitCheckAllocations(SourceInfo L) { |
| 11262 | if (!isActive()) return true; |
| 11263 | CurrentSource = L; |
| 11264 | return CheckAllocations(S); |
| 11265 | } |
| 11266 | #endif |
| 11267 | #ifdef GET_OPCODE_NAMES |
| 11268 | OP_CheckArrayDestSize, |
| 11269 | #endif |
| 11270 | #ifdef GET_INTERPFN_LIST |
| 11271 | &Interp_CheckArrayDestSize, |
| 11272 | #endif |
| 11273 | #ifdef GET_INTERPFN_DISPATCHERS |
| 11274 | PRESERVE_NONE |
| 11275 | static bool Interp_CheckArrayDestSize(InterpState &S) { |
| 11276 | { |
| 11277 | CodePtr OpPC = S.PC; |
| 11278 | const auto V0 = ReadArg<uint64_t>(S, S.PC); |
| 11279 | if (!CheckArrayDestSize(S, OpPC, V0)) return false; |
| 11280 | } |
| 11281 | #if USE_TAILCALLS |
| 11282 | MUSTTAIL return InterpNext(S); |
| 11283 | #else |
| 11284 | return true; |
| 11285 | #endif |
| 11286 | } |
| 11287 | #endif |
| 11288 | #ifdef GET_DISASM |
| 11289 | case OP_CheckArrayDestSize: |
| 11290 | Text.Op = PrintName("CheckArrayDestSize" ); |
| 11291 | Text.Args.push_back(printArg<uint64_t>(PC)); |
| 11292 | break; |
| 11293 | #endif |
| 11294 | #if defined(GET_EVAL_PROTO) || defined(GET_LINK_PROTO) |
| 11295 | bool emitCheckArrayDestSize( uint64_t , SourceInfo); |
| 11296 | #endif |
| 11297 | #ifdef GET_LINK_IMPL |
| 11298 | bool ByteCodeEmitter::emitCheckArrayDestSize( uint64_t A0, SourceInfo L) { |
| 11299 | return emitOp<uint64_t>(OP_CheckArrayDestSize, A0, L); |
| 11300 | } |
| 11301 | #endif |
| 11302 | #ifdef GET_EVAL_IMPL |
| 11303 | bool EvalEmitter::emitCheckArrayDestSize( uint64_t A0, SourceInfo L) { |
| 11304 | if (!isActive()) return true; |
| 11305 | CurrentSource = L; |
| 11306 | return CheckArrayDestSize(S, CodePtr(), A0); |
| 11307 | } |
| 11308 | #endif |
| 11309 | #ifdef GET_OPCODE_NAMES |
| 11310 | OP_CheckArraySize, |
| 11311 | #endif |
| 11312 | #ifdef GET_INTERPFN_LIST |
| 11313 | &Interp_CheckArraySize, |
| 11314 | #endif |
| 11315 | #ifdef GET_INTERPFN_DISPATCHERS |
| 11316 | PRESERVE_NONE |
| 11317 | static bool Interp_CheckArraySize(InterpState &S) { |
| 11318 | { |
| 11319 | CodePtr OpPC = S.PC; |
| 11320 | const auto V0 = ReadArg<uint64_t>(S, S.PC); |
| 11321 | if (!CheckArraySize(S, OpPC, V0)) return false; |
| 11322 | } |
| 11323 | #if USE_TAILCALLS |
| 11324 | MUSTTAIL return InterpNext(S); |
| 11325 | #else |
| 11326 | return true; |
| 11327 | #endif |
| 11328 | } |
| 11329 | #endif |
| 11330 | #ifdef GET_DISASM |
| 11331 | case OP_CheckArraySize: |
| 11332 | Text.Op = PrintName("CheckArraySize" ); |
| 11333 | Text.Args.push_back(printArg<uint64_t>(PC)); |
| 11334 | break; |
| 11335 | #endif |
| 11336 | #if defined(GET_EVAL_PROTO) || defined(GET_LINK_PROTO) |
| 11337 | bool emitCheckArraySize( uint64_t , SourceInfo); |
| 11338 | #endif |
| 11339 | #ifdef GET_LINK_IMPL |
| 11340 | bool ByteCodeEmitter::emitCheckArraySize( uint64_t A0, SourceInfo L) { |
| 11341 | return emitOp<uint64_t>(OP_CheckArraySize, A0, L); |
| 11342 | } |
| 11343 | #endif |
| 11344 | #ifdef GET_EVAL_IMPL |
| 11345 | bool EvalEmitter::emitCheckArraySize( uint64_t A0, SourceInfo L) { |
| 11346 | if (!isActive()) return true; |
| 11347 | CurrentSource = L; |
| 11348 | return CheckArraySize(S, CodePtr(), A0); |
| 11349 | } |
| 11350 | #endif |
| 11351 | #ifdef GET_OPCODE_NAMES |
| 11352 | OP_CheckBitCast, |
| 11353 | #endif |
| 11354 | #ifdef GET_INTERPFN_LIST |
| 11355 | &Interp_CheckBitCast, |
| 11356 | #endif |
| 11357 | #ifdef GET_INTERPFN_DISPATCHERS |
| 11358 | PRESERVE_NONE |
| 11359 | static bool Interp_CheckBitCast(InterpState &S) { |
| 11360 | { |
| 11361 | CodePtr OpPC = S.PC; |
| 11362 | const auto V0 = ReadArg<const Type *>(S, S.PC); |
| 11363 | const auto V1 = ReadArg<bool>(S, S.PC); |
| 11364 | if (!CheckBitCast(S, OpPC, V0, V1)) return false; |
| 11365 | } |
| 11366 | #if USE_TAILCALLS |
| 11367 | MUSTTAIL return InterpNext(S); |
| 11368 | #else |
| 11369 | return true; |
| 11370 | #endif |
| 11371 | } |
| 11372 | #endif |
| 11373 | #ifdef GET_DISASM |
| 11374 | case OP_CheckBitCast: |
| 11375 | Text.Op = PrintName("CheckBitCast" ); |
| 11376 | Text.Args.push_back(printArg<const Type *>(PC)); |
| 11377 | Text.Args.push_back(printArg<bool>(PC)); |
| 11378 | break; |
| 11379 | #endif |
| 11380 | #if defined(GET_EVAL_PROTO) || defined(GET_LINK_PROTO) |
| 11381 | bool emitCheckBitCast( const Type * , bool , SourceInfo); |
| 11382 | #endif |
| 11383 | #ifdef GET_LINK_IMPL |
| 11384 | bool ByteCodeEmitter::emitCheckBitCast( const Type * A0, bool A1, SourceInfo L) { |
| 11385 | return emitOp<const Type *, bool>(OP_CheckBitCast, A0, A1, L); |
| 11386 | } |
| 11387 | #endif |
| 11388 | #ifdef GET_EVAL_IMPL |
| 11389 | bool EvalEmitter::emitCheckBitCast( const Type * A0, bool A1, SourceInfo L) { |
| 11390 | if (!isActive()) return true; |
| 11391 | CurrentSource = L; |
| 11392 | return CheckBitCast(S, CodePtr(), A0, A1); |
| 11393 | } |
| 11394 | #endif |
| 11395 | #ifdef GET_OPCODE_NAMES |
| 11396 | OP_CheckDecl, |
| 11397 | #endif |
| 11398 | #ifdef GET_INTERPFN_LIST |
| 11399 | &Interp_CheckDecl, |
| 11400 | #endif |
| 11401 | #ifdef GET_INTERPFN_DISPATCHERS |
| 11402 | PRESERVE_NONE |
| 11403 | static bool Interp_CheckDecl(InterpState &S) { |
| 11404 | { |
| 11405 | const auto V0 = ReadArg<const VarDecl*>(S, S.PC); |
| 11406 | if (!CheckDecl(S, V0)) return false; |
| 11407 | } |
| 11408 | #if USE_TAILCALLS |
| 11409 | MUSTTAIL return InterpNext(S); |
| 11410 | #else |
| 11411 | return true; |
| 11412 | #endif |
| 11413 | } |
| 11414 | #endif |
| 11415 | #ifdef GET_DISASM |
| 11416 | case OP_CheckDecl: |
| 11417 | Text.Op = PrintName("CheckDecl" ); |
| 11418 | Text.Args.push_back(printArg<const VarDecl*>(PC)); |
| 11419 | break; |
| 11420 | #endif |
| 11421 | #if defined(GET_EVAL_PROTO) || defined(GET_LINK_PROTO) |
| 11422 | bool emitCheckDecl( const VarDecl* , SourceInfo); |
| 11423 | #endif |
| 11424 | #ifdef GET_LINK_IMPL |
| 11425 | bool ByteCodeEmitter::emitCheckDecl( const VarDecl* A0, SourceInfo L) { |
| 11426 | return emitOp<const VarDecl*>(OP_CheckDecl, A0, L); |
| 11427 | } |
| 11428 | #endif |
| 11429 | #ifdef GET_EVAL_IMPL |
| 11430 | bool EvalEmitter::emitCheckDecl( const VarDecl* A0, SourceInfo L) { |
| 11431 | if (!isActive()) return true; |
| 11432 | CurrentSource = L; |
| 11433 | return CheckDecl(S, A0); |
| 11434 | } |
| 11435 | #endif |
| 11436 | #ifdef GET_OPCODE_NAMES |
| 11437 | OP_CheckDestruction, |
| 11438 | #endif |
| 11439 | #ifdef GET_INTERPFN_LIST |
| 11440 | &Interp_CheckDestruction, |
| 11441 | #endif |
| 11442 | #ifdef GET_INTERPFN_DISPATCHERS |
| 11443 | PRESERVE_NONE |
| 11444 | static bool Interp_CheckDestruction(InterpState &S) { |
| 11445 | if (!CheckDestruction(S, S.PC)) return false; |
| 11446 | #if USE_TAILCALLS |
| 11447 | MUSTTAIL return InterpNext(S); |
| 11448 | #else |
| 11449 | return true; |
| 11450 | #endif |
| 11451 | } |
| 11452 | #endif |
| 11453 | #ifdef GET_DISASM |
| 11454 | case OP_CheckDestruction: |
| 11455 | Text.Op = PrintName("CheckDestruction" ); |
| 11456 | break; |
| 11457 | #endif |
| 11458 | #if defined(GET_EVAL_PROTO) || defined(GET_LINK_PROTO) |
| 11459 | bool emitCheckDestruction(SourceInfo); |
| 11460 | #endif |
| 11461 | #ifdef GET_LINK_IMPL |
| 11462 | bool ByteCodeEmitter::emitCheckDestruction(SourceInfo L) { |
| 11463 | return emitOp<>(OP_CheckDestruction, L); |
| 11464 | } |
| 11465 | #endif |
| 11466 | #ifdef GET_EVAL_IMPL |
| 11467 | bool EvalEmitter::emitCheckDestruction(SourceInfo L) { |
| 11468 | if (!isActive()) return true; |
| 11469 | CurrentSource = L; |
| 11470 | return CheckDestruction(S, CodePtr()); |
| 11471 | } |
| 11472 | #endif |
| 11473 | #ifdef GET_OPCODE_NAMES |
| 11474 | OP_CheckEnumValueSint8, |
| 11475 | OP_CheckEnumValueUint8, |
| 11476 | OP_CheckEnumValueSint16, |
| 11477 | OP_CheckEnumValueUint16, |
| 11478 | OP_CheckEnumValueSint32, |
| 11479 | OP_CheckEnumValueUint32, |
| 11480 | OP_CheckEnumValueSint64, |
| 11481 | OP_CheckEnumValueUint64, |
| 11482 | OP_CheckEnumValueIntAP, |
| 11483 | OP_CheckEnumValueIntAPS, |
| 11484 | OP_CheckEnumValueBool, |
| 11485 | #endif |
| 11486 | #ifdef GET_INTERPFN_LIST |
| 11487 | &Interp_CheckEnumValueSint8, |
| 11488 | &Interp_CheckEnumValueUint8, |
| 11489 | &Interp_CheckEnumValueSint16, |
| 11490 | &Interp_CheckEnumValueUint16, |
| 11491 | &Interp_CheckEnumValueSint32, |
| 11492 | &Interp_CheckEnumValueUint32, |
| 11493 | &Interp_CheckEnumValueSint64, |
| 11494 | &Interp_CheckEnumValueUint64, |
| 11495 | &Interp_CheckEnumValueIntAP, |
| 11496 | &Interp_CheckEnumValueIntAPS, |
| 11497 | &Interp_CheckEnumValueBool, |
| 11498 | #endif |
| 11499 | #ifdef GET_INTERPFN_DISPATCHERS |
| 11500 | PRESERVE_NONE |
| 11501 | static bool Interp_CheckEnumValueSint8(InterpState &S) { |
| 11502 | { |
| 11503 | CodePtr OpPC = S.PC; |
| 11504 | const auto V0 = ReadArg<const EnumDecl *>(S, S.PC); |
| 11505 | CheckEnumValue<PT_Sint8>(S, OpPC, V0); |
| 11506 | } |
| 11507 | #if USE_TAILCALLS |
| 11508 | MUSTTAIL return InterpNext(S); |
| 11509 | #else |
| 11510 | return true; |
| 11511 | #endif |
| 11512 | } |
| 11513 | PRESERVE_NONE |
| 11514 | static bool Interp_CheckEnumValueUint8(InterpState &S) { |
| 11515 | { |
| 11516 | CodePtr OpPC = S.PC; |
| 11517 | const auto V0 = ReadArg<const EnumDecl *>(S, S.PC); |
| 11518 | CheckEnumValue<PT_Uint8>(S, OpPC, V0); |
| 11519 | } |
| 11520 | #if USE_TAILCALLS |
| 11521 | MUSTTAIL return InterpNext(S); |
| 11522 | #else |
| 11523 | return true; |
| 11524 | #endif |
| 11525 | } |
| 11526 | PRESERVE_NONE |
| 11527 | static bool Interp_CheckEnumValueSint16(InterpState &S) { |
| 11528 | { |
| 11529 | CodePtr OpPC = S.PC; |
| 11530 | const auto V0 = ReadArg<const EnumDecl *>(S, S.PC); |
| 11531 | CheckEnumValue<PT_Sint16>(S, OpPC, V0); |
| 11532 | } |
| 11533 | #if USE_TAILCALLS |
| 11534 | MUSTTAIL return InterpNext(S); |
| 11535 | #else |
| 11536 | return true; |
| 11537 | #endif |
| 11538 | } |
| 11539 | PRESERVE_NONE |
| 11540 | static bool Interp_CheckEnumValueUint16(InterpState &S) { |
| 11541 | { |
| 11542 | CodePtr OpPC = S.PC; |
| 11543 | const auto V0 = ReadArg<const EnumDecl *>(S, S.PC); |
| 11544 | CheckEnumValue<PT_Uint16>(S, OpPC, V0); |
| 11545 | } |
| 11546 | #if USE_TAILCALLS |
| 11547 | MUSTTAIL return InterpNext(S); |
| 11548 | #else |
| 11549 | return true; |
| 11550 | #endif |
| 11551 | } |
| 11552 | PRESERVE_NONE |
| 11553 | static bool Interp_CheckEnumValueSint32(InterpState &S) { |
| 11554 | { |
| 11555 | CodePtr OpPC = S.PC; |
| 11556 | const auto V0 = ReadArg<const EnumDecl *>(S, S.PC); |
| 11557 | CheckEnumValue<PT_Sint32>(S, OpPC, V0); |
| 11558 | } |
| 11559 | #if USE_TAILCALLS |
| 11560 | MUSTTAIL return InterpNext(S); |
| 11561 | #else |
| 11562 | return true; |
| 11563 | #endif |
| 11564 | } |
| 11565 | PRESERVE_NONE |
| 11566 | static bool Interp_CheckEnumValueUint32(InterpState &S) { |
| 11567 | { |
| 11568 | CodePtr OpPC = S.PC; |
| 11569 | const auto V0 = ReadArg<const EnumDecl *>(S, S.PC); |
| 11570 | CheckEnumValue<PT_Uint32>(S, OpPC, V0); |
| 11571 | } |
| 11572 | #if USE_TAILCALLS |
| 11573 | MUSTTAIL return InterpNext(S); |
| 11574 | #else |
| 11575 | return true; |
| 11576 | #endif |
| 11577 | } |
| 11578 | PRESERVE_NONE |
| 11579 | static bool Interp_CheckEnumValueSint64(InterpState &S) { |
| 11580 | { |
| 11581 | CodePtr OpPC = S.PC; |
| 11582 | const auto V0 = ReadArg<const EnumDecl *>(S, S.PC); |
| 11583 | CheckEnumValue<PT_Sint64>(S, OpPC, V0); |
| 11584 | } |
| 11585 | #if USE_TAILCALLS |
| 11586 | MUSTTAIL return InterpNext(S); |
| 11587 | #else |
| 11588 | return true; |
| 11589 | #endif |
| 11590 | } |
| 11591 | PRESERVE_NONE |
| 11592 | static bool Interp_CheckEnumValueUint64(InterpState &S) { |
| 11593 | { |
| 11594 | CodePtr OpPC = S.PC; |
| 11595 | const auto V0 = ReadArg<const EnumDecl *>(S, S.PC); |
| 11596 | CheckEnumValue<PT_Uint64>(S, OpPC, V0); |
| 11597 | } |
| 11598 | #if USE_TAILCALLS |
| 11599 | MUSTTAIL return InterpNext(S); |
| 11600 | #else |
| 11601 | return true; |
| 11602 | #endif |
| 11603 | } |
| 11604 | PRESERVE_NONE |
| 11605 | static bool Interp_CheckEnumValueIntAP(InterpState &S) { |
| 11606 | { |
| 11607 | CodePtr OpPC = S.PC; |
| 11608 | const auto V0 = ReadArg<const EnumDecl *>(S, S.PC); |
| 11609 | CheckEnumValue<PT_IntAP>(S, OpPC, V0); |
| 11610 | } |
| 11611 | #if USE_TAILCALLS |
| 11612 | MUSTTAIL return InterpNext(S); |
| 11613 | #else |
| 11614 | return true; |
| 11615 | #endif |
| 11616 | } |
| 11617 | PRESERVE_NONE |
| 11618 | static bool Interp_CheckEnumValueIntAPS(InterpState &S) { |
| 11619 | { |
| 11620 | CodePtr OpPC = S.PC; |
| 11621 | const auto V0 = ReadArg<const EnumDecl *>(S, S.PC); |
| 11622 | CheckEnumValue<PT_IntAPS>(S, OpPC, V0); |
| 11623 | } |
| 11624 | #if USE_TAILCALLS |
| 11625 | MUSTTAIL return InterpNext(S); |
| 11626 | #else |
| 11627 | return true; |
| 11628 | #endif |
| 11629 | } |
| 11630 | PRESERVE_NONE |
| 11631 | static bool Interp_CheckEnumValueBool(InterpState &S) { |
| 11632 | { |
| 11633 | CodePtr OpPC = S.PC; |
| 11634 | const auto V0 = ReadArg<const EnumDecl *>(S, S.PC); |
| 11635 | CheckEnumValue<PT_Bool>(S, OpPC, V0); |
| 11636 | } |
| 11637 | #if USE_TAILCALLS |
| 11638 | MUSTTAIL return InterpNext(S); |
| 11639 | #else |
| 11640 | return true; |
| 11641 | #endif |
| 11642 | } |
| 11643 | #endif |
| 11644 | #ifdef GET_DISASM |
| 11645 | case OP_CheckEnumValueSint8: |
| 11646 | Text.Op = PrintName("CheckEnumValueSint8" ); |
| 11647 | Text.Args.push_back(printArg<const EnumDecl *>(PC)); |
| 11648 | break; |
| 11649 | case OP_CheckEnumValueUint8: |
| 11650 | Text.Op = PrintName("CheckEnumValueUint8" ); |
| 11651 | Text.Args.push_back(printArg<const EnumDecl *>(PC)); |
| 11652 | break; |
| 11653 | case OP_CheckEnumValueSint16: |
| 11654 | Text.Op = PrintName("CheckEnumValueSint16" ); |
| 11655 | Text.Args.push_back(printArg<const EnumDecl *>(PC)); |
| 11656 | break; |
| 11657 | case OP_CheckEnumValueUint16: |
| 11658 | Text.Op = PrintName("CheckEnumValueUint16" ); |
| 11659 | Text.Args.push_back(printArg<const EnumDecl *>(PC)); |
| 11660 | break; |
| 11661 | case OP_CheckEnumValueSint32: |
| 11662 | Text.Op = PrintName("CheckEnumValueSint32" ); |
| 11663 | Text.Args.push_back(printArg<const EnumDecl *>(PC)); |
| 11664 | break; |
| 11665 | case OP_CheckEnumValueUint32: |
| 11666 | Text.Op = PrintName("CheckEnumValueUint32" ); |
| 11667 | Text.Args.push_back(printArg<const EnumDecl *>(PC)); |
| 11668 | break; |
| 11669 | case OP_CheckEnumValueSint64: |
| 11670 | Text.Op = PrintName("CheckEnumValueSint64" ); |
| 11671 | Text.Args.push_back(printArg<const EnumDecl *>(PC)); |
| 11672 | break; |
| 11673 | case OP_CheckEnumValueUint64: |
| 11674 | Text.Op = PrintName("CheckEnumValueUint64" ); |
| 11675 | Text.Args.push_back(printArg<const EnumDecl *>(PC)); |
| 11676 | break; |
| 11677 | case OP_CheckEnumValueIntAP: |
| 11678 | Text.Op = PrintName("CheckEnumValueIntAP" ); |
| 11679 | Text.Args.push_back(printArg<const EnumDecl *>(PC)); |
| 11680 | break; |
| 11681 | case OP_CheckEnumValueIntAPS: |
| 11682 | Text.Op = PrintName("CheckEnumValueIntAPS" ); |
| 11683 | Text.Args.push_back(printArg<const EnumDecl *>(PC)); |
| 11684 | break; |
| 11685 | case OP_CheckEnumValueBool: |
| 11686 | Text.Op = PrintName("CheckEnumValueBool" ); |
| 11687 | Text.Args.push_back(printArg<const EnumDecl *>(PC)); |
| 11688 | break; |
| 11689 | #endif |
| 11690 | #if defined(GET_EVAL_PROTO) || defined(GET_LINK_PROTO) |
| 11691 | bool emitCheckEnumValueSint8( const EnumDecl * , SourceInfo); |
| 11692 | bool emitCheckEnumValueUint8( const EnumDecl * , SourceInfo); |
| 11693 | bool emitCheckEnumValueSint16( const EnumDecl * , SourceInfo); |
| 11694 | bool emitCheckEnumValueUint16( const EnumDecl * , SourceInfo); |
| 11695 | bool emitCheckEnumValueSint32( const EnumDecl * , SourceInfo); |
| 11696 | bool emitCheckEnumValueUint32( const EnumDecl * , SourceInfo); |
| 11697 | bool emitCheckEnumValueSint64( const EnumDecl * , SourceInfo); |
| 11698 | bool emitCheckEnumValueUint64( const EnumDecl * , SourceInfo); |
| 11699 | bool emitCheckEnumValueIntAP( const EnumDecl * , SourceInfo); |
| 11700 | bool emitCheckEnumValueIntAPS( const EnumDecl * , SourceInfo); |
| 11701 | bool emitCheckEnumValueBool( const EnumDecl * , SourceInfo); |
| 11702 | #endif |
| 11703 | #if defined(GET_EVAL_PROTO) || defined(GET_LINK_PROTO) |
| 11704 | [[nodiscard]] bool emitCheckEnumValue(PrimType, const EnumDecl *, SourceInfo I); |
| 11705 | #endif |
| 11706 | #if defined(GET_EVAL_IMPL) || defined(GET_LINK_IMPL) |
| 11707 | bool |
| 11708 | #if defined(GET_EVAL_IMPL) |
| 11709 | EvalEmitter |
| 11710 | #else |
| 11711 | ByteCodeEmitter |
| 11712 | #endif |
| 11713 | ::emitCheckEnumValue(PrimType T0, const EnumDecl * A0, SourceInfo I) { |
| 11714 | switch (T0) { |
| 11715 | case PT_Sint8: |
| 11716 | return emitCheckEnumValueSint8(A0, I); |
| 11717 | case PT_Uint8: |
| 11718 | return emitCheckEnumValueUint8(A0, I); |
| 11719 | case PT_Sint16: |
| 11720 | return emitCheckEnumValueSint16(A0, I); |
| 11721 | case PT_Uint16: |
| 11722 | return emitCheckEnumValueUint16(A0, I); |
| 11723 | case PT_Sint32: |
| 11724 | return emitCheckEnumValueSint32(A0, I); |
| 11725 | case PT_Uint32: |
| 11726 | return emitCheckEnumValueUint32(A0, I); |
| 11727 | case PT_Sint64: |
| 11728 | return emitCheckEnumValueSint64(A0, I); |
| 11729 | case PT_Uint64: |
| 11730 | return emitCheckEnumValueUint64(A0, I); |
| 11731 | case PT_IntAP: |
| 11732 | return emitCheckEnumValueIntAP(A0, I); |
| 11733 | case PT_IntAPS: |
| 11734 | return emitCheckEnumValueIntAPS(A0, I); |
| 11735 | case PT_Bool: |
| 11736 | return emitCheckEnumValueBool(A0, I); |
| 11737 | default: llvm_unreachable("invalid type: emitCheckEnumValue" ); |
| 11738 | } |
| 11739 | llvm_unreachable("invalid enum value" ); |
| 11740 | } |
| 11741 | #endif |
| 11742 | #ifdef GET_LINK_IMPL |
| 11743 | bool ByteCodeEmitter::emitCheckEnumValueSint8( const EnumDecl * A0, SourceInfo L) { |
| 11744 | return emitOp<const EnumDecl *>(OP_CheckEnumValueSint8, A0, L); |
| 11745 | } |
| 11746 | bool ByteCodeEmitter::emitCheckEnumValueUint8( const EnumDecl * A0, SourceInfo L) { |
| 11747 | return emitOp<const EnumDecl *>(OP_CheckEnumValueUint8, A0, L); |
| 11748 | } |
| 11749 | bool ByteCodeEmitter::emitCheckEnumValueSint16( const EnumDecl * A0, SourceInfo L) { |
| 11750 | return emitOp<const EnumDecl *>(OP_CheckEnumValueSint16, A0, L); |
| 11751 | } |
| 11752 | bool ByteCodeEmitter::emitCheckEnumValueUint16( const EnumDecl * A0, SourceInfo L) { |
| 11753 | return emitOp<const EnumDecl *>(OP_CheckEnumValueUint16, A0, L); |
| 11754 | } |
| 11755 | bool ByteCodeEmitter::emitCheckEnumValueSint32( const EnumDecl * A0, SourceInfo L) { |
| 11756 | return emitOp<const EnumDecl *>(OP_CheckEnumValueSint32, A0, L); |
| 11757 | } |
| 11758 | bool ByteCodeEmitter::emitCheckEnumValueUint32( const EnumDecl * A0, SourceInfo L) { |
| 11759 | return emitOp<const EnumDecl *>(OP_CheckEnumValueUint32, A0, L); |
| 11760 | } |
| 11761 | bool ByteCodeEmitter::emitCheckEnumValueSint64( const EnumDecl * A0, SourceInfo L) { |
| 11762 | return emitOp<const EnumDecl *>(OP_CheckEnumValueSint64, A0, L); |
| 11763 | } |
| 11764 | bool ByteCodeEmitter::emitCheckEnumValueUint64( const EnumDecl * A0, SourceInfo L) { |
| 11765 | return emitOp<const EnumDecl *>(OP_CheckEnumValueUint64, A0, L); |
| 11766 | } |
| 11767 | bool ByteCodeEmitter::emitCheckEnumValueIntAP( const EnumDecl * A0, SourceInfo L) { |
| 11768 | return emitOp<const EnumDecl *>(OP_CheckEnumValueIntAP, A0, L); |
| 11769 | } |
| 11770 | bool ByteCodeEmitter::emitCheckEnumValueIntAPS( const EnumDecl * A0, SourceInfo L) { |
| 11771 | return emitOp<const EnumDecl *>(OP_CheckEnumValueIntAPS, A0, L); |
| 11772 | } |
| 11773 | bool ByteCodeEmitter::emitCheckEnumValueBool( const EnumDecl * A0, SourceInfo L) { |
| 11774 | return emitOp<const EnumDecl *>(OP_CheckEnumValueBool, A0, L); |
| 11775 | } |
| 11776 | #endif |
| 11777 | #ifdef GET_EVAL_IMPL |
| 11778 | bool EvalEmitter::emitCheckEnumValueSint8( const EnumDecl * A0, SourceInfo L) { |
| 11779 | if (!isActive()) return true; |
| 11780 | CurrentSource = L; |
| 11781 | return CheckEnumValue<PT_Sint8>(S, CodePtr(), A0); |
| 11782 | } |
| 11783 | bool EvalEmitter::emitCheckEnumValueUint8( const EnumDecl * A0, SourceInfo L) { |
| 11784 | if (!isActive()) return true; |
| 11785 | CurrentSource = L; |
| 11786 | return CheckEnumValue<PT_Uint8>(S, CodePtr(), A0); |
| 11787 | } |
| 11788 | bool EvalEmitter::emitCheckEnumValueSint16( const EnumDecl * A0, SourceInfo L) { |
| 11789 | if (!isActive()) return true; |
| 11790 | CurrentSource = L; |
| 11791 | return CheckEnumValue<PT_Sint16>(S, CodePtr(), A0); |
| 11792 | } |
| 11793 | bool EvalEmitter::emitCheckEnumValueUint16( const EnumDecl * A0, SourceInfo L) { |
| 11794 | if (!isActive()) return true; |
| 11795 | CurrentSource = L; |
| 11796 | return CheckEnumValue<PT_Uint16>(S, CodePtr(), A0); |
| 11797 | } |
| 11798 | bool EvalEmitter::emitCheckEnumValueSint32( const EnumDecl * A0, SourceInfo L) { |
| 11799 | if (!isActive()) return true; |
| 11800 | CurrentSource = L; |
| 11801 | return CheckEnumValue<PT_Sint32>(S, CodePtr(), A0); |
| 11802 | } |
| 11803 | bool EvalEmitter::emitCheckEnumValueUint32( const EnumDecl * A0, SourceInfo L) { |
| 11804 | if (!isActive()) return true; |
| 11805 | CurrentSource = L; |
| 11806 | return CheckEnumValue<PT_Uint32>(S, CodePtr(), A0); |
| 11807 | } |
| 11808 | bool EvalEmitter::emitCheckEnumValueSint64( const EnumDecl * A0, SourceInfo L) { |
| 11809 | if (!isActive()) return true; |
| 11810 | CurrentSource = L; |
| 11811 | return CheckEnumValue<PT_Sint64>(S, CodePtr(), A0); |
| 11812 | } |
| 11813 | bool EvalEmitter::emitCheckEnumValueUint64( const EnumDecl * A0, SourceInfo L) { |
| 11814 | if (!isActive()) return true; |
| 11815 | CurrentSource = L; |
| 11816 | return CheckEnumValue<PT_Uint64>(S, CodePtr(), A0); |
| 11817 | } |
| 11818 | bool EvalEmitter::emitCheckEnumValueIntAP( const EnumDecl * A0, SourceInfo L) { |
| 11819 | if (!isActive()) return true; |
| 11820 | CurrentSource = L; |
| 11821 | return CheckEnumValue<PT_IntAP>(S, CodePtr(), A0); |
| 11822 | } |
| 11823 | bool EvalEmitter::emitCheckEnumValueIntAPS( const EnumDecl * A0, SourceInfo L) { |
| 11824 | if (!isActive()) return true; |
| 11825 | CurrentSource = L; |
| 11826 | return CheckEnumValue<PT_IntAPS>(S, CodePtr(), A0); |
| 11827 | } |
| 11828 | bool EvalEmitter::emitCheckEnumValueBool( const EnumDecl * A0, SourceInfo L) { |
| 11829 | if (!isActive()) return true; |
| 11830 | CurrentSource = L; |
| 11831 | return CheckEnumValue<PT_Bool>(S, CodePtr(), A0); |
| 11832 | } |
| 11833 | #endif |
| 11834 | #ifdef GET_OPCODE_NAMES |
| 11835 | OP_CheckFunctionDecl, |
| 11836 | #endif |
| 11837 | #ifdef GET_INTERPFN_LIST |
| 11838 | &Interp_CheckFunctionDecl, |
| 11839 | #endif |
| 11840 | #ifdef GET_INTERPFN_DISPATCHERS |
| 11841 | PRESERVE_NONE |
| 11842 | static bool Interp_CheckFunctionDecl(InterpState &S) { |
| 11843 | { |
| 11844 | CodePtr OpPC = S.PC; |
| 11845 | const auto V0 = ReadArg<const FunctionDecl *>(S, S.PC); |
| 11846 | if (!CheckFunctionDecl(S, OpPC, V0)) return false; |
| 11847 | } |
| 11848 | #if USE_TAILCALLS |
| 11849 | MUSTTAIL return InterpNext(S); |
| 11850 | #else |
| 11851 | return true; |
| 11852 | #endif |
| 11853 | } |
| 11854 | #endif |
| 11855 | #ifdef GET_DISASM |
| 11856 | case OP_CheckFunctionDecl: |
| 11857 | Text.Op = PrintName("CheckFunctionDecl" ); |
| 11858 | Text.Args.push_back(printArg<const FunctionDecl *>(PC)); |
| 11859 | break; |
| 11860 | #endif |
| 11861 | #if defined(GET_EVAL_PROTO) || defined(GET_LINK_PROTO) |
| 11862 | bool emitCheckFunctionDecl( const FunctionDecl * , SourceInfo); |
| 11863 | #endif |
| 11864 | #ifdef GET_LINK_IMPL |
| 11865 | bool ByteCodeEmitter::emitCheckFunctionDecl( const FunctionDecl * A0, SourceInfo L) { |
| 11866 | return emitOp<const FunctionDecl *>(OP_CheckFunctionDecl, A0, L); |
| 11867 | } |
| 11868 | #endif |
| 11869 | #ifdef GET_EVAL_IMPL |
| 11870 | bool EvalEmitter::emitCheckFunctionDecl( const FunctionDecl * A0, SourceInfo L) { |
| 11871 | if (!isActive()) return true; |
| 11872 | CurrentSource = L; |
| 11873 | return CheckFunctionDecl(S, CodePtr(), A0); |
| 11874 | } |
| 11875 | #endif |
| 11876 | #ifdef GET_OPCODE_NAMES |
| 11877 | OP_CheckLiteralType, |
| 11878 | #endif |
| 11879 | #ifdef GET_INTERPFN_LIST |
| 11880 | &Interp_CheckLiteralType, |
| 11881 | #endif |
| 11882 | #ifdef GET_INTERPFN_DISPATCHERS |
| 11883 | PRESERVE_NONE |
| 11884 | static bool Interp_CheckLiteralType(InterpState &S) { |
| 11885 | { |
| 11886 | CodePtr OpPC = S.PC; |
| 11887 | const auto V0 = ReadArg<const Type *>(S, S.PC); |
| 11888 | if (!CheckLiteralType(S, OpPC, V0)) return false; |
| 11889 | } |
| 11890 | #if USE_TAILCALLS |
| 11891 | MUSTTAIL return InterpNext(S); |
| 11892 | #else |
| 11893 | return true; |
| 11894 | #endif |
| 11895 | } |
| 11896 | #endif |
| 11897 | #ifdef GET_DISASM |
| 11898 | case OP_CheckLiteralType: |
| 11899 | Text.Op = PrintName("CheckLiteralType" ); |
| 11900 | Text.Args.push_back(printArg<const Type *>(PC)); |
| 11901 | break; |
| 11902 | #endif |
| 11903 | #if defined(GET_EVAL_PROTO) || defined(GET_LINK_PROTO) |
| 11904 | bool emitCheckLiteralType( const Type * , SourceInfo); |
| 11905 | #endif |
| 11906 | #ifdef GET_LINK_IMPL |
| 11907 | bool ByteCodeEmitter::emitCheckLiteralType( const Type * A0, SourceInfo L) { |
| 11908 | return emitOp<const Type *>(OP_CheckLiteralType, A0, L); |
| 11909 | } |
| 11910 | #endif |
| 11911 | #ifdef GET_EVAL_IMPL |
| 11912 | bool EvalEmitter::emitCheckLiteralType( const Type * A0, SourceInfo L) { |
| 11913 | if (!isActive()) return true; |
| 11914 | CurrentSource = L; |
| 11915 | return CheckLiteralType(S, CodePtr(), A0); |
| 11916 | } |
| 11917 | #endif |
| 11918 | #ifdef GET_OPCODE_NAMES |
| 11919 | OP_CheckNewTypeMismatch, |
| 11920 | #endif |
| 11921 | #ifdef GET_INTERPFN_LIST |
| 11922 | &Interp_CheckNewTypeMismatch, |
| 11923 | #endif |
| 11924 | #ifdef GET_INTERPFN_DISPATCHERS |
| 11925 | PRESERVE_NONE |
| 11926 | static bool Interp_CheckNewTypeMismatch(InterpState &S) { |
| 11927 | { |
| 11928 | CodePtr OpPC = S.PC; |
| 11929 | const auto V0 = ReadArg<const Expr *>(S, S.PC); |
| 11930 | if (!CheckNewTypeMismatch(S, OpPC, V0)) return false; |
| 11931 | } |
| 11932 | #if USE_TAILCALLS |
| 11933 | MUSTTAIL return InterpNext(S); |
| 11934 | #else |
| 11935 | return true; |
| 11936 | #endif |
| 11937 | } |
| 11938 | #endif |
| 11939 | #ifdef GET_DISASM |
| 11940 | case OP_CheckNewTypeMismatch: |
| 11941 | Text.Op = PrintName("CheckNewTypeMismatch" ); |
| 11942 | Text.Args.push_back(printArg<const Expr *>(PC)); |
| 11943 | break; |
| 11944 | #endif |
| 11945 | #if defined(GET_EVAL_PROTO) || defined(GET_LINK_PROTO) |
| 11946 | bool emitCheckNewTypeMismatch( const Expr * , SourceInfo); |
| 11947 | #endif |
| 11948 | #ifdef GET_LINK_IMPL |
| 11949 | bool ByteCodeEmitter::emitCheckNewTypeMismatch( const Expr * A0, SourceInfo L) { |
| 11950 | return emitOp<const Expr *>(OP_CheckNewTypeMismatch, A0, L); |
| 11951 | } |
| 11952 | #endif |
| 11953 | #ifdef GET_EVAL_IMPL |
| 11954 | bool EvalEmitter::emitCheckNewTypeMismatch( const Expr * A0, SourceInfo L) { |
| 11955 | if (!isActive()) return true; |
| 11956 | CurrentSource = L; |
| 11957 | return CheckNewTypeMismatch(S, CodePtr(), A0); |
| 11958 | } |
| 11959 | #endif |
| 11960 | #ifdef GET_OPCODE_NAMES |
| 11961 | OP_CheckNewTypeMismatchArraySint8, |
| 11962 | OP_CheckNewTypeMismatchArrayUint8, |
| 11963 | OP_CheckNewTypeMismatchArraySint16, |
| 11964 | OP_CheckNewTypeMismatchArrayUint16, |
| 11965 | OP_CheckNewTypeMismatchArraySint32, |
| 11966 | OP_CheckNewTypeMismatchArrayUint32, |
| 11967 | OP_CheckNewTypeMismatchArraySint64, |
| 11968 | OP_CheckNewTypeMismatchArrayUint64, |
| 11969 | OP_CheckNewTypeMismatchArrayIntAP, |
| 11970 | OP_CheckNewTypeMismatchArrayIntAPS, |
| 11971 | #endif |
| 11972 | #ifdef GET_INTERPFN_LIST |
| 11973 | &Interp_CheckNewTypeMismatchArraySint8, |
| 11974 | &Interp_CheckNewTypeMismatchArrayUint8, |
| 11975 | &Interp_CheckNewTypeMismatchArraySint16, |
| 11976 | &Interp_CheckNewTypeMismatchArrayUint16, |
| 11977 | &Interp_CheckNewTypeMismatchArraySint32, |
| 11978 | &Interp_CheckNewTypeMismatchArrayUint32, |
| 11979 | &Interp_CheckNewTypeMismatchArraySint64, |
| 11980 | &Interp_CheckNewTypeMismatchArrayUint64, |
| 11981 | &Interp_CheckNewTypeMismatchArrayIntAP, |
| 11982 | &Interp_CheckNewTypeMismatchArrayIntAPS, |
| 11983 | #endif |
| 11984 | #ifdef GET_INTERPFN_DISPATCHERS |
| 11985 | PRESERVE_NONE |
| 11986 | static bool Interp_CheckNewTypeMismatchArraySint8(InterpState &S) { |
| 11987 | { |
| 11988 | CodePtr OpPC = S.PC; |
| 11989 | const auto V0 = ReadArg<const Expr *>(S, S.PC); |
| 11990 | if (!CheckNewTypeMismatchArray<PT_Sint8>(S, OpPC, V0)) return false; |
| 11991 | } |
| 11992 | #if USE_TAILCALLS |
| 11993 | MUSTTAIL return InterpNext(S); |
| 11994 | #else |
| 11995 | return true; |
| 11996 | #endif |
| 11997 | } |
| 11998 | PRESERVE_NONE |
| 11999 | static bool Interp_CheckNewTypeMismatchArrayUint8(InterpState &S) { |
| 12000 | { |
| 12001 | CodePtr OpPC = S.PC; |
| 12002 | const auto V0 = ReadArg<const Expr *>(S, S.PC); |
| 12003 | if (!CheckNewTypeMismatchArray<PT_Uint8>(S, OpPC, V0)) return false; |
| 12004 | } |
| 12005 | #if USE_TAILCALLS |
| 12006 | MUSTTAIL return InterpNext(S); |
| 12007 | #else |
| 12008 | return true; |
| 12009 | #endif |
| 12010 | } |
| 12011 | PRESERVE_NONE |
| 12012 | static bool Interp_CheckNewTypeMismatchArraySint16(InterpState &S) { |
| 12013 | { |
| 12014 | CodePtr OpPC = S.PC; |
| 12015 | const auto V0 = ReadArg<const Expr *>(S, S.PC); |
| 12016 | if (!CheckNewTypeMismatchArray<PT_Sint16>(S, OpPC, V0)) return false; |
| 12017 | } |
| 12018 | #if USE_TAILCALLS |
| 12019 | MUSTTAIL return InterpNext(S); |
| 12020 | #else |
| 12021 | return true; |
| 12022 | #endif |
| 12023 | } |
| 12024 | PRESERVE_NONE |
| 12025 | static bool Interp_CheckNewTypeMismatchArrayUint16(InterpState &S) { |
| 12026 | { |
| 12027 | CodePtr OpPC = S.PC; |
| 12028 | const auto V0 = ReadArg<const Expr *>(S, S.PC); |
| 12029 | if (!CheckNewTypeMismatchArray<PT_Uint16>(S, OpPC, V0)) return false; |
| 12030 | } |
| 12031 | #if USE_TAILCALLS |
| 12032 | MUSTTAIL return InterpNext(S); |
| 12033 | #else |
| 12034 | return true; |
| 12035 | #endif |
| 12036 | } |
| 12037 | PRESERVE_NONE |
| 12038 | static bool Interp_CheckNewTypeMismatchArraySint32(InterpState &S) { |
| 12039 | { |
| 12040 | CodePtr OpPC = S.PC; |
| 12041 | const auto V0 = ReadArg<const Expr *>(S, S.PC); |
| 12042 | if (!CheckNewTypeMismatchArray<PT_Sint32>(S, OpPC, V0)) return false; |
| 12043 | } |
| 12044 | #if USE_TAILCALLS |
| 12045 | MUSTTAIL return InterpNext(S); |
| 12046 | #else |
| 12047 | return true; |
| 12048 | #endif |
| 12049 | } |
| 12050 | PRESERVE_NONE |
| 12051 | static bool Interp_CheckNewTypeMismatchArrayUint32(InterpState &S) { |
| 12052 | { |
| 12053 | CodePtr OpPC = S.PC; |
| 12054 | const auto V0 = ReadArg<const Expr *>(S, S.PC); |
| 12055 | if (!CheckNewTypeMismatchArray<PT_Uint32>(S, OpPC, V0)) return false; |
| 12056 | } |
| 12057 | #if USE_TAILCALLS |
| 12058 | MUSTTAIL return InterpNext(S); |
| 12059 | #else |
| 12060 | return true; |
| 12061 | #endif |
| 12062 | } |
| 12063 | PRESERVE_NONE |
| 12064 | static bool Interp_CheckNewTypeMismatchArraySint64(InterpState &S) { |
| 12065 | { |
| 12066 | CodePtr OpPC = S.PC; |
| 12067 | const auto V0 = ReadArg<const Expr *>(S, S.PC); |
| 12068 | if (!CheckNewTypeMismatchArray<PT_Sint64>(S, OpPC, V0)) return false; |
| 12069 | } |
| 12070 | #if USE_TAILCALLS |
| 12071 | MUSTTAIL return InterpNext(S); |
| 12072 | #else |
| 12073 | return true; |
| 12074 | #endif |
| 12075 | } |
| 12076 | PRESERVE_NONE |
| 12077 | static bool Interp_CheckNewTypeMismatchArrayUint64(InterpState &S) { |
| 12078 | { |
| 12079 | CodePtr OpPC = S.PC; |
| 12080 | const auto V0 = ReadArg<const Expr *>(S, S.PC); |
| 12081 | if (!CheckNewTypeMismatchArray<PT_Uint64>(S, OpPC, V0)) return false; |
| 12082 | } |
| 12083 | #if USE_TAILCALLS |
| 12084 | MUSTTAIL return InterpNext(S); |
| 12085 | #else |
| 12086 | return true; |
| 12087 | #endif |
| 12088 | } |
| 12089 | PRESERVE_NONE |
| 12090 | static bool Interp_CheckNewTypeMismatchArrayIntAP(InterpState &S) { |
| 12091 | { |
| 12092 | CodePtr OpPC = S.PC; |
| 12093 | const auto V0 = ReadArg<const Expr *>(S, S.PC); |
| 12094 | if (!CheckNewTypeMismatchArray<PT_IntAP>(S, OpPC, V0)) return false; |
| 12095 | } |
| 12096 | #if USE_TAILCALLS |
| 12097 | MUSTTAIL return InterpNext(S); |
| 12098 | #else |
| 12099 | return true; |
| 12100 | #endif |
| 12101 | } |
| 12102 | PRESERVE_NONE |
| 12103 | static bool Interp_CheckNewTypeMismatchArrayIntAPS(InterpState &S) { |
| 12104 | { |
| 12105 | CodePtr OpPC = S.PC; |
| 12106 | const auto V0 = ReadArg<const Expr *>(S, S.PC); |
| 12107 | if (!CheckNewTypeMismatchArray<PT_IntAPS>(S, OpPC, V0)) return false; |
| 12108 | } |
| 12109 | #if USE_TAILCALLS |
| 12110 | MUSTTAIL return InterpNext(S); |
| 12111 | #else |
| 12112 | return true; |
| 12113 | #endif |
| 12114 | } |
| 12115 | #endif |
| 12116 | #ifdef GET_DISASM |
| 12117 | case OP_CheckNewTypeMismatchArraySint8: |
| 12118 | Text.Op = PrintName("CheckNewTypeMismatchArraySint8" ); |
| 12119 | Text.Args.push_back(printArg<const Expr *>(PC)); |
| 12120 | break; |
| 12121 | case OP_CheckNewTypeMismatchArrayUint8: |
| 12122 | Text.Op = PrintName("CheckNewTypeMismatchArrayUint8" ); |
| 12123 | Text.Args.push_back(printArg<const Expr *>(PC)); |
| 12124 | break; |
| 12125 | case OP_CheckNewTypeMismatchArraySint16: |
| 12126 | Text.Op = PrintName("CheckNewTypeMismatchArraySint16" ); |
| 12127 | Text.Args.push_back(printArg<const Expr *>(PC)); |
| 12128 | break; |
| 12129 | case OP_CheckNewTypeMismatchArrayUint16: |
| 12130 | Text.Op = PrintName("CheckNewTypeMismatchArrayUint16" ); |
| 12131 | Text.Args.push_back(printArg<const Expr *>(PC)); |
| 12132 | break; |
| 12133 | case OP_CheckNewTypeMismatchArraySint32: |
| 12134 | Text.Op = PrintName("CheckNewTypeMismatchArraySint32" ); |
| 12135 | Text.Args.push_back(printArg<const Expr *>(PC)); |
| 12136 | break; |
| 12137 | case OP_CheckNewTypeMismatchArrayUint32: |
| 12138 | Text.Op = PrintName("CheckNewTypeMismatchArrayUint32" ); |
| 12139 | Text.Args.push_back(printArg<const Expr *>(PC)); |
| 12140 | break; |
| 12141 | case OP_CheckNewTypeMismatchArraySint64: |
| 12142 | Text.Op = PrintName("CheckNewTypeMismatchArraySint64" ); |
| 12143 | Text.Args.push_back(printArg<const Expr *>(PC)); |
| 12144 | break; |
| 12145 | case OP_CheckNewTypeMismatchArrayUint64: |
| 12146 | Text.Op = PrintName("CheckNewTypeMismatchArrayUint64" ); |
| 12147 | Text.Args.push_back(printArg<const Expr *>(PC)); |
| 12148 | break; |
| 12149 | case OP_CheckNewTypeMismatchArrayIntAP: |
| 12150 | Text.Op = PrintName("CheckNewTypeMismatchArrayIntAP" ); |
| 12151 | Text.Args.push_back(printArg<const Expr *>(PC)); |
| 12152 | break; |
| 12153 | case OP_CheckNewTypeMismatchArrayIntAPS: |
| 12154 | Text.Op = PrintName("CheckNewTypeMismatchArrayIntAPS" ); |
| 12155 | Text.Args.push_back(printArg<const Expr *>(PC)); |
| 12156 | break; |
| 12157 | #endif |
| 12158 | #if defined(GET_EVAL_PROTO) || defined(GET_LINK_PROTO) |
| 12159 | bool emitCheckNewTypeMismatchArraySint8( const Expr * , SourceInfo); |
| 12160 | bool emitCheckNewTypeMismatchArrayUint8( const Expr * , SourceInfo); |
| 12161 | bool emitCheckNewTypeMismatchArraySint16( const Expr * , SourceInfo); |
| 12162 | bool emitCheckNewTypeMismatchArrayUint16( const Expr * , SourceInfo); |
| 12163 | bool emitCheckNewTypeMismatchArraySint32( const Expr * , SourceInfo); |
| 12164 | bool emitCheckNewTypeMismatchArrayUint32( const Expr * , SourceInfo); |
| 12165 | bool emitCheckNewTypeMismatchArraySint64( const Expr * , SourceInfo); |
| 12166 | bool emitCheckNewTypeMismatchArrayUint64( const Expr * , SourceInfo); |
| 12167 | bool emitCheckNewTypeMismatchArrayIntAP( const Expr * , SourceInfo); |
| 12168 | bool emitCheckNewTypeMismatchArrayIntAPS( const Expr * , SourceInfo); |
| 12169 | #endif |
| 12170 | #if defined(GET_EVAL_PROTO) || defined(GET_LINK_PROTO) |
| 12171 | [[nodiscard]] bool emitCheckNewTypeMismatchArray(PrimType, const Expr *, SourceInfo I); |
| 12172 | #endif |
| 12173 | #if defined(GET_EVAL_IMPL) || defined(GET_LINK_IMPL) |
| 12174 | bool |
| 12175 | #if defined(GET_EVAL_IMPL) |
| 12176 | EvalEmitter |
| 12177 | #else |
| 12178 | ByteCodeEmitter |
| 12179 | #endif |
| 12180 | ::emitCheckNewTypeMismatchArray(PrimType T0, const Expr * A0, SourceInfo I) { |
| 12181 | switch (T0) { |
| 12182 | case PT_Sint8: |
| 12183 | return emitCheckNewTypeMismatchArraySint8(A0, I); |
| 12184 | case PT_Uint8: |
| 12185 | return emitCheckNewTypeMismatchArrayUint8(A0, I); |
| 12186 | case PT_Sint16: |
| 12187 | return emitCheckNewTypeMismatchArraySint16(A0, I); |
| 12188 | case PT_Uint16: |
| 12189 | return emitCheckNewTypeMismatchArrayUint16(A0, I); |
| 12190 | case PT_Sint32: |
| 12191 | return emitCheckNewTypeMismatchArraySint32(A0, I); |
| 12192 | case PT_Uint32: |
| 12193 | return emitCheckNewTypeMismatchArrayUint32(A0, I); |
| 12194 | case PT_Sint64: |
| 12195 | return emitCheckNewTypeMismatchArraySint64(A0, I); |
| 12196 | case PT_Uint64: |
| 12197 | return emitCheckNewTypeMismatchArrayUint64(A0, I); |
| 12198 | case PT_IntAP: |
| 12199 | return emitCheckNewTypeMismatchArrayIntAP(A0, I); |
| 12200 | case PT_IntAPS: |
| 12201 | return emitCheckNewTypeMismatchArrayIntAPS(A0, I); |
| 12202 | default: llvm_unreachable("invalid type: emitCheckNewTypeMismatchArray" ); |
| 12203 | } |
| 12204 | llvm_unreachable("invalid enum value" ); |
| 12205 | } |
| 12206 | #endif |
| 12207 | #ifdef GET_LINK_IMPL |
| 12208 | bool ByteCodeEmitter::emitCheckNewTypeMismatchArraySint8( const Expr * A0, SourceInfo L) { |
| 12209 | return emitOp<const Expr *>(OP_CheckNewTypeMismatchArraySint8, A0, L); |
| 12210 | } |
| 12211 | bool ByteCodeEmitter::emitCheckNewTypeMismatchArrayUint8( const Expr * A0, SourceInfo L) { |
| 12212 | return emitOp<const Expr *>(OP_CheckNewTypeMismatchArrayUint8, A0, L); |
| 12213 | } |
| 12214 | bool ByteCodeEmitter::emitCheckNewTypeMismatchArraySint16( const Expr * A0, SourceInfo L) { |
| 12215 | return emitOp<const Expr *>(OP_CheckNewTypeMismatchArraySint16, A0, L); |
| 12216 | } |
| 12217 | bool ByteCodeEmitter::emitCheckNewTypeMismatchArrayUint16( const Expr * A0, SourceInfo L) { |
| 12218 | return emitOp<const Expr *>(OP_CheckNewTypeMismatchArrayUint16, A0, L); |
| 12219 | } |
| 12220 | bool ByteCodeEmitter::emitCheckNewTypeMismatchArraySint32( const Expr * A0, SourceInfo L) { |
| 12221 | return emitOp<const Expr *>(OP_CheckNewTypeMismatchArraySint32, A0, L); |
| 12222 | } |
| 12223 | bool ByteCodeEmitter::emitCheckNewTypeMismatchArrayUint32( const Expr * A0, SourceInfo L) { |
| 12224 | return emitOp<const Expr *>(OP_CheckNewTypeMismatchArrayUint32, A0, L); |
| 12225 | } |
| 12226 | bool ByteCodeEmitter::emitCheckNewTypeMismatchArraySint64( const Expr * A0, SourceInfo L) { |
| 12227 | return emitOp<const Expr *>(OP_CheckNewTypeMismatchArraySint64, A0, L); |
| 12228 | } |
| 12229 | bool ByteCodeEmitter::emitCheckNewTypeMismatchArrayUint64( const Expr * A0, SourceInfo L) { |
| 12230 | return emitOp<const Expr *>(OP_CheckNewTypeMismatchArrayUint64, A0, L); |
| 12231 | } |
| 12232 | bool ByteCodeEmitter::emitCheckNewTypeMismatchArrayIntAP( const Expr * A0, SourceInfo L) { |
| 12233 | return emitOp<const Expr *>(OP_CheckNewTypeMismatchArrayIntAP, A0, L); |
| 12234 | } |
| 12235 | bool ByteCodeEmitter::emitCheckNewTypeMismatchArrayIntAPS( const Expr * A0, SourceInfo L) { |
| 12236 | return emitOp<const Expr *>(OP_CheckNewTypeMismatchArrayIntAPS, A0, L); |
| 12237 | } |
| 12238 | #endif |
| 12239 | #ifdef GET_EVAL_IMPL |
| 12240 | bool EvalEmitter::emitCheckNewTypeMismatchArraySint8( const Expr * A0, SourceInfo L) { |
| 12241 | if (!isActive()) return true; |
| 12242 | CurrentSource = L; |
| 12243 | return CheckNewTypeMismatchArray<PT_Sint8>(S, CodePtr(), A0); |
| 12244 | } |
| 12245 | bool EvalEmitter::emitCheckNewTypeMismatchArrayUint8( const Expr * A0, SourceInfo L) { |
| 12246 | if (!isActive()) return true; |
| 12247 | CurrentSource = L; |
| 12248 | return CheckNewTypeMismatchArray<PT_Uint8>(S, CodePtr(), A0); |
| 12249 | } |
| 12250 | bool EvalEmitter::emitCheckNewTypeMismatchArraySint16( const Expr * A0, SourceInfo L) { |
| 12251 | if (!isActive()) return true; |
| 12252 | CurrentSource = L; |
| 12253 | return CheckNewTypeMismatchArray<PT_Sint16>(S, CodePtr(), A0); |
| 12254 | } |
| 12255 | bool EvalEmitter::emitCheckNewTypeMismatchArrayUint16( const Expr * A0, SourceInfo L) { |
| 12256 | if (!isActive()) return true; |
| 12257 | CurrentSource = L; |
| 12258 | return CheckNewTypeMismatchArray<PT_Uint16>(S, CodePtr(), A0); |
| 12259 | } |
| 12260 | bool EvalEmitter::emitCheckNewTypeMismatchArraySint32( const Expr * A0, SourceInfo L) { |
| 12261 | if (!isActive()) return true; |
| 12262 | CurrentSource = L; |
| 12263 | return CheckNewTypeMismatchArray<PT_Sint32>(S, CodePtr(), A0); |
| 12264 | } |
| 12265 | bool EvalEmitter::emitCheckNewTypeMismatchArrayUint32( const Expr * A0, SourceInfo L) { |
| 12266 | if (!isActive()) return true; |
| 12267 | CurrentSource = L; |
| 12268 | return CheckNewTypeMismatchArray<PT_Uint32>(S, CodePtr(), A0); |
| 12269 | } |
| 12270 | bool EvalEmitter::emitCheckNewTypeMismatchArraySint64( const Expr * A0, SourceInfo L) { |
| 12271 | if (!isActive()) return true; |
| 12272 | CurrentSource = L; |
| 12273 | return CheckNewTypeMismatchArray<PT_Sint64>(S, CodePtr(), A0); |
| 12274 | } |
| 12275 | bool EvalEmitter::emitCheckNewTypeMismatchArrayUint64( const Expr * A0, SourceInfo L) { |
| 12276 | if (!isActive()) return true; |
| 12277 | CurrentSource = L; |
| 12278 | return CheckNewTypeMismatchArray<PT_Uint64>(S, CodePtr(), A0); |
| 12279 | } |
| 12280 | bool EvalEmitter::emitCheckNewTypeMismatchArrayIntAP( const Expr * A0, SourceInfo L) { |
| 12281 | if (!isActive()) return true; |
| 12282 | CurrentSource = L; |
| 12283 | return CheckNewTypeMismatchArray<PT_IntAP>(S, CodePtr(), A0); |
| 12284 | } |
| 12285 | bool EvalEmitter::emitCheckNewTypeMismatchArrayIntAPS( const Expr * A0, SourceInfo L) { |
| 12286 | if (!isActive()) return true; |
| 12287 | CurrentSource = L; |
| 12288 | return CheckNewTypeMismatchArray<PT_IntAPS>(S, CodePtr(), A0); |
| 12289 | } |
| 12290 | #endif |
| 12291 | #ifdef GET_OPCODE_NAMES |
| 12292 | OP_CheckNonNullArgPtr, |
| 12293 | OP_CheckNonNullArgMemberPtr, |
| 12294 | #endif |
| 12295 | #ifdef GET_INTERPFN_LIST |
| 12296 | &Interp_CheckNonNullArgPtr, |
| 12297 | &Interp_CheckNonNullArgMemberPtr, |
| 12298 | #endif |
| 12299 | #ifdef GET_INTERPFN_DISPATCHERS |
| 12300 | PRESERVE_NONE |
| 12301 | static bool Interp_CheckNonNullArgPtr(InterpState &S) { |
| 12302 | if (!CheckNonNullArg<PT_Ptr>(S, S.PC)) return false; |
| 12303 | #if USE_TAILCALLS |
| 12304 | MUSTTAIL return InterpNext(S); |
| 12305 | #else |
| 12306 | return true; |
| 12307 | #endif |
| 12308 | } |
| 12309 | PRESERVE_NONE |
| 12310 | static bool Interp_CheckNonNullArgMemberPtr(InterpState &S) { |
| 12311 | if (!CheckNonNullArg<PT_MemberPtr>(S, S.PC)) return false; |
| 12312 | #if USE_TAILCALLS |
| 12313 | MUSTTAIL return InterpNext(S); |
| 12314 | #else |
| 12315 | return true; |
| 12316 | #endif |
| 12317 | } |
| 12318 | #endif |
| 12319 | #ifdef GET_DISASM |
| 12320 | case OP_CheckNonNullArgPtr: |
| 12321 | Text.Op = PrintName("CheckNonNullArgPtr" ); |
| 12322 | break; |
| 12323 | case OP_CheckNonNullArgMemberPtr: |
| 12324 | Text.Op = PrintName("CheckNonNullArgMemberPtr" ); |
| 12325 | break; |
| 12326 | #endif |
| 12327 | #if defined(GET_EVAL_PROTO) || defined(GET_LINK_PROTO) |
| 12328 | bool emitCheckNonNullArgPtr(SourceInfo); |
| 12329 | bool emitCheckNonNullArgMemberPtr(SourceInfo); |
| 12330 | #endif |
| 12331 | #if defined(GET_EVAL_PROTO) || defined(GET_LINK_PROTO) |
| 12332 | [[nodiscard]] bool emitCheckNonNullArg(PrimType, SourceInfo I); |
| 12333 | #endif |
| 12334 | #if defined(GET_EVAL_IMPL) || defined(GET_LINK_IMPL) |
| 12335 | bool |
| 12336 | #if defined(GET_EVAL_IMPL) |
| 12337 | EvalEmitter |
| 12338 | #else |
| 12339 | ByteCodeEmitter |
| 12340 | #endif |
| 12341 | ::emitCheckNonNullArg(PrimType T0, SourceInfo I) { |
| 12342 | switch (T0) { |
| 12343 | case PT_Ptr: |
| 12344 | return emitCheckNonNullArgPtr(I); |
| 12345 | case PT_MemberPtr: |
| 12346 | return emitCheckNonNullArgMemberPtr(I); |
| 12347 | default: llvm_unreachable("invalid type: emitCheckNonNullArg" ); |
| 12348 | } |
| 12349 | llvm_unreachable("invalid enum value" ); |
| 12350 | } |
| 12351 | #endif |
| 12352 | #ifdef GET_LINK_IMPL |
| 12353 | bool ByteCodeEmitter::emitCheckNonNullArgPtr(SourceInfo L) { |
| 12354 | return emitOp<>(OP_CheckNonNullArgPtr, L); |
| 12355 | } |
| 12356 | bool ByteCodeEmitter::emitCheckNonNullArgMemberPtr(SourceInfo L) { |
| 12357 | return emitOp<>(OP_CheckNonNullArgMemberPtr, L); |
| 12358 | } |
| 12359 | #endif |
| 12360 | #ifdef GET_EVAL_IMPL |
| 12361 | bool EvalEmitter::emitCheckNonNullArgPtr(SourceInfo L) { |
| 12362 | if (!isActive()) return true; |
| 12363 | CurrentSource = L; |
| 12364 | return CheckNonNullArg<PT_Ptr>(S, CodePtr()); |
| 12365 | } |
| 12366 | bool EvalEmitter::emitCheckNonNullArgMemberPtr(SourceInfo L) { |
| 12367 | if (!isActive()) return true; |
| 12368 | CurrentSource = L; |
| 12369 | return CheckNonNullArg<PT_MemberPtr>(S, CodePtr()); |
| 12370 | } |
| 12371 | #endif |
| 12372 | #ifdef GET_OPCODE_NAMES |
| 12373 | OP_CheckNull, |
| 12374 | #endif |
| 12375 | #ifdef GET_INTERPFN_LIST |
| 12376 | &Interp_CheckNull, |
| 12377 | #endif |
| 12378 | #ifdef GET_INTERPFN_DISPATCHERS |
| 12379 | PRESERVE_NONE |
| 12380 | static bool Interp_CheckNull(InterpState &S) { |
| 12381 | if (!CheckNull(S, S.PC)) return false; |
| 12382 | #if USE_TAILCALLS |
| 12383 | MUSTTAIL return InterpNext(S); |
| 12384 | #else |
| 12385 | return true; |
| 12386 | #endif |
| 12387 | } |
| 12388 | #endif |
| 12389 | #ifdef GET_DISASM |
| 12390 | case OP_CheckNull: |
| 12391 | Text.Op = PrintName("CheckNull" ); |
| 12392 | break; |
| 12393 | #endif |
| 12394 | #if defined(GET_EVAL_PROTO) || defined(GET_LINK_PROTO) |
| 12395 | bool emitCheckNull(SourceInfo); |
| 12396 | #endif |
| 12397 | #ifdef GET_LINK_IMPL |
| 12398 | bool ByteCodeEmitter::emitCheckNull(SourceInfo L) { |
| 12399 | return emitOp<>(OP_CheckNull, L); |
| 12400 | } |
| 12401 | #endif |
| 12402 | #ifdef GET_EVAL_IMPL |
| 12403 | bool EvalEmitter::emitCheckNull(SourceInfo L) { |
| 12404 | if (!isActive()) return true; |
| 12405 | CurrentSource = L; |
| 12406 | return CheckNull(S, CodePtr()); |
| 12407 | } |
| 12408 | #endif |
| 12409 | #ifdef GET_OPCODE_NAMES |
| 12410 | OP_CheckPlacementNew, |
| 12411 | #endif |
| 12412 | #ifdef GET_INTERPFN_LIST |
| 12413 | &Interp_CheckPlacementNew, |
| 12414 | #endif |
| 12415 | #ifdef GET_INTERPFN_DISPATCHERS |
| 12416 | PRESERVE_NONE |
| 12417 | static bool Interp_CheckPlacementNew(InterpState &S) { |
| 12418 | { |
| 12419 | CodePtr OpPC = S.PC; |
| 12420 | const auto V0 = ReadArg<const Expr *>(S, S.PC); |
| 12421 | if (!CheckPlacementNew(S, OpPC, V0)) return false; |
| 12422 | } |
| 12423 | #if USE_TAILCALLS |
| 12424 | MUSTTAIL return InterpNext(S); |
| 12425 | #else |
| 12426 | return true; |
| 12427 | #endif |
| 12428 | } |
| 12429 | #endif |
| 12430 | #ifdef GET_DISASM |
| 12431 | case OP_CheckPlacementNew: |
| 12432 | Text.Op = PrintName("CheckPlacementNew" ); |
| 12433 | Text.Args.push_back(printArg<const Expr *>(PC)); |
| 12434 | break; |
| 12435 | #endif |
| 12436 | #if defined(GET_EVAL_PROTO) || defined(GET_LINK_PROTO) |
| 12437 | bool emitCheckPlacementNew( const Expr * , SourceInfo); |
| 12438 | #endif |
| 12439 | #ifdef GET_LINK_IMPL |
| 12440 | bool ByteCodeEmitter::emitCheckPlacementNew( const Expr * A0, SourceInfo L) { |
| 12441 | return emitOp<const Expr *>(OP_CheckPlacementNew, A0, L); |
| 12442 | } |
| 12443 | #endif |
| 12444 | #ifdef GET_EVAL_IMPL |
| 12445 | bool EvalEmitter::emitCheckPlacementNew( const Expr * A0, SourceInfo L) { |
| 12446 | if (!isActive()) return true; |
| 12447 | CurrentSource = L; |
| 12448 | return CheckPlacementNew(S, CodePtr(), A0); |
| 12449 | } |
| 12450 | #endif |
| 12451 | #ifdef GET_OPCODE_NAMES |
| 12452 | OP_CheckPseudoDtor, |
| 12453 | #endif |
| 12454 | #ifdef GET_INTERPFN_LIST |
| 12455 | &Interp_CheckPseudoDtor, |
| 12456 | #endif |
| 12457 | #ifdef GET_INTERPFN_DISPATCHERS |
| 12458 | PRESERVE_NONE |
| 12459 | static bool Interp_CheckPseudoDtor(InterpState &S) { |
| 12460 | CheckPseudoDtor(S, S.PC); |
| 12461 | #if USE_TAILCALLS |
| 12462 | MUSTTAIL return InterpNext(S); |
| 12463 | #else |
| 12464 | return true; |
| 12465 | #endif |
| 12466 | } |
| 12467 | #endif |
| 12468 | #ifdef GET_DISASM |
| 12469 | case OP_CheckPseudoDtor: |
| 12470 | Text.Op = PrintName("CheckPseudoDtor" ); |
| 12471 | break; |
| 12472 | #endif |
| 12473 | #if defined(GET_EVAL_PROTO) || defined(GET_LINK_PROTO) |
| 12474 | bool emitCheckPseudoDtor(SourceInfo); |
| 12475 | #endif |
| 12476 | #ifdef GET_LINK_IMPL |
| 12477 | bool ByteCodeEmitter::emitCheckPseudoDtor(SourceInfo L) { |
| 12478 | return emitOp<>(OP_CheckPseudoDtor, L); |
| 12479 | } |
| 12480 | #endif |
| 12481 | #ifdef GET_EVAL_IMPL |
| 12482 | bool EvalEmitter::emitCheckPseudoDtor(SourceInfo L) { |
| 12483 | if (!isActive()) return true; |
| 12484 | CurrentSource = L; |
| 12485 | return CheckPseudoDtor(S, CodePtr()); |
| 12486 | } |
| 12487 | #endif |
| 12488 | #ifdef GET_OPCODE_NAMES |
| 12489 | OP_CheckRefInit, |
| 12490 | #endif |
| 12491 | #ifdef GET_INTERPFN_LIST |
| 12492 | &Interp_CheckRefInit, |
| 12493 | #endif |
| 12494 | #ifdef GET_INTERPFN_DISPATCHERS |
| 12495 | PRESERVE_NONE |
| 12496 | static bool Interp_CheckRefInit(InterpState &S) { |
| 12497 | if (!CheckRefInit(S, S.PC)) return false; |
| 12498 | #if USE_TAILCALLS |
| 12499 | MUSTTAIL return InterpNext(S); |
| 12500 | #else |
| 12501 | return true; |
| 12502 | #endif |
| 12503 | } |
| 12504 | #endif |
| 12505 | #ifdef GET_DISASM |
| 12506 | case OP_CheckRefInit: |
| 12507 | Text.Op = PrintName("CheckRefInit" ); |
| 12508 | break; |
| 12509 | #endif |
| 12510 | #if defined(GET_EVAL_PROTO) || defined(GET_LINK_PROTO) |
| 12511 | bool emitCheckRefInit(SourceInfo); |
| 12512 | #endif |
| 12513 | #ifdef GET_LINK_IMPL |
| 12514 | bool ByteCodeEmitter::emitCheckRefInit(SourceInfo L) { |
| 12515 | return emitOp<>(OP_CheckRefInit, L); |
| 12516 | } |
| 12517 | #endif |
| 12518 | #ifdef GET_EVAL_IMPL |
| 12519 | bool EvalEmitter::emitCheckRefInit(SourceInfo L) { |
| 12520 | if (!isActive()) return true; |
| 12521 | CurrentSource = L; |
| 12522 | return CheckRefInit(S, CodePtr()); |
| 12523 | } |
| 12524 | #endif |
| 12525 | #ifdef GET_OPCODE_NAMES |
| 12526 | OP_CompSint8, |
| 12527 | OP_CompUint8, |
| 12528 | OP_CompSint16, |
| 12529 | OP_CompUint16, |
| 12530 | OP_CompSint32, |
| 12531 | OP_CompUint32, |
| 12532 | OP_CompSint64, |
| 12533 | OP_CompUint64, |
| 12534 | OP_CompIntAP, |
| 12535 | OP_CompIntAPS, |
| 12536 | #endif |
| 12537 | #ifdef GET_INTERPFN_LIST |
| 12538 | &Interp_CompSint8, |
| 12539 | &Interp_CompUint8, |
| 12540 | &Interp_CompSint16, |
| 12541 | &Interp_CompUint16, |
| 12542 | &Interp_CompSint32, |
| 12543 | &Interp_CompUint32, |
| 12544 | &Interp_CompSint64, |
| 12545 | &Interp_CompUint64, |
| 12546 | &Interp_CompIntAP, |
| 12547 | &Interp_CompIntAPS, |
| 12548 | #endif |
| 12549 | #ifdef GET_INTERPFN_DISPATCHERS |
| 12550 | PRESERVE_NONE |
| 12551 | static bool Interp_CompSint8(InterpState &S) { |
| 12552 | if (!Comp<PT_Sint8>(S)) return false; |
| 12553 | #if USE_TAILCALLS |
| 12554 | MUSTTAIL return InterpNext(S); |
| 12555 | #else |
| 12556 | return true; |
| 12557 | #endif |
| 12558 | } |
| 12559 | PRESERVE_NONE |
| 12560 | static bool Interp_CompUint8(InterpState &S) { |
| 12561 | if (!Comp<PT_Uint8>(S)) return false; |
| 12562 | #if USE_TAILCALLS |
| 12563 | MUSTTAIL return InterpNext(S); |
| 12564 | #else |
| 12565 | return true; |
| 12566 | #endif |
| 12567 | } |
| 12568 | PRESERVE_NONE |
| 12569 | static bool Interp_CompSint16(InterpState &S) { |
| 12570 | if (!Comp<PT_Sint16>(S)) return false; |
| 12571 | #if USE_TAILCALLS |
| 12572 | MUSTTAIL return InterpNext(S); |
| 12573 | #else |
| 12574 | return true; |
| 12575 | #endif |
| 12576 | } |
| 12577 | PRESERVE_NONE |
| 12578 | static bool Interp_CompUint16(InterpState &S) { |
| 12579 | if (!Comp<PT_Uint16>(S)) return false; |
| 12580 | #if USE_TAILCALLS |
| 12581 | MUSTTAIL return InterpNext(S); |
| 12582 | #else |
| 12583 | return true; |
| 12584 | #endif |
| 12585 | } |
| 12586 | PRESERVE_NONE |
| 12587 | static bool Interp_CompSint32(InterpState &S) { |
| 12588 | if (!Comp<PT_Sint32>(S)) return false; |
| 12589 | #if USE_TAILCALLS |
| 12590 | MUSTTAIL return InterpNext(S); |
| 12591 | #else |
| 12592 | return true; |
| 12593 | #endif |
| 12594 | } |
| 12595 | PRESERVE_NONE |
| 12596 | static bool Interp_CompUint32(InterpState &S) { |
| 12597 | if (!Comp<PT_Uint32>(S)) return false; |
| 12598 | #if USE_TAILCALLS |
| 12599 | MUSTTAIL return InterpNext(S); |
| 12600 | #else |
| 12601 | return true; |
| 12602 | #endif |
| 12603 | } |
| 12604 | PRESERVE_NONE |
| 12605 | static bool Interp_CompSint64(InterpState &S) { |
| 12606 | if (!Comp<PT_Sint64>(S)) return false; |
| 12607 | #if USE_TAILCALLS |
| 12608 | MUSTTAIL return InterpNext(S); |
| 12609 | #else |
| 12610 | return true; |
| 12611 | #endif |
| 12612 | } |
| 12613 | PRESERVE_NONE |
| 12614 | static bool Interp_CompUint64(InterpState &S) { |
| 12615 | if (!Comp<PT_Uint64>(S)) return false; |
| 12616 | #if USE_TAILCALLS |
| 12617 | MUSTTAIL return InterpNext(S); |
| 12618 | #else |
| 12619 | return true; |
| 12620 | #endif |
| 12621 | } |
| 12622 | PRESERVE_NONE |
| 12623 | static bool Interp_CompIntAP(InterpState &S) { |
| 12624 | if (!Comp<PT_IntAP>(S)) return false; |
| 12625 | #if USE_TAILCALLS |
| 12626 | MUSTTAIL return InterpNext(S); |
| 12627 | #else |
| 12628 | return true; |
| 12629 | #endif |
| 12630 | } |
| 12631 | PRESERVE_NONE |
| 12632 | static bool Interp_CompIntAPS(InterpState &S) { |
| 12633 | if (!Comp<PT_IntAPS>(S)) return false; |
| 12634 | #if USE_TAILCALLS |
| 12635 | MUSTTAIL return InterpNext(S); |
| 12636 | #else |
| 12637 | return true; |
| 12638 | #endif |
| 12639 | } |
| 12640 | #endif |
| 12641 | #ifdef GET_DISASM |
| 12642 | case OP_CompSint8: |
| 12643 | Text.Op = PrintName("CompSint8" ); |
| 12644 | break; |
| 12645 | case OP_CompUint8: |
| 12646 | Text.Op = PrintName("CompUint8" ); |
| 12647 | break; |
| 12648 | case OP_CompSint16: |
| 12649 | Text.Op = PrintName("CompSint16" ); |
| 12650 | break; |
| 12651 | case OP_CompUint16: |
| 12652 | Text.Op = PrintName("CompUint16" ); |
| 12653 | break; |
| 12654 | case OP_CompSint32: |
| 12655 | Text.Op = PrintName("CompSint32" ); |
| 12656 | break; |
| 12657 | case OP_CompUint32: |
| 12658 | Text.Op = PrintName("CompUint32" ); |
| 12659 | break; |
| 12660 | case OP_CompSint64: |
| 12661 | Text.Op = PrintName("CompSint64" ); |
| 12662 | break; |
| 12663 | case OP_CompUint64: |
| 12664 | Text.Op = PrintName("CompUint64" ); |
| 12665 | break; |
| 12666 | case OP_CompIntAP: |
| 12667 | Text.Op = PrintName("CompIntAP" ); |
| 12668 | break; |
| 12669 | case OP_CompIntAPS: |
| 12670 | Text.Op = PrintName("CompIntAPS" ); |
| 12671 | break; |
| 12672 | #endif |
| 12673 | #if defined(GET_EVAL_PROTO) || defined(GET_LINK_PROTO) |
| 12674 | bool emitCompSint8(SourceInfo); |
| 12675 | bool emitCompUint8(SourceInfo); |
| 12676 | bool emitCompSint16(SourceInfo); |
| 12677 | bool emitCompUint16(SourceInfo); |
| 12678 | bool emitCompSint32(SourceInfo); |
| 12679 | bool emitCompUint32(SourceInfo); |
| 12680 | bool emitCompSint64(SourceInfo); |
| 12681 | bool emitCompUint64(SourceInfo); |
| 12682 | bool emitCompIntAP(SourceInfo); |
| 12683 | bool emitCompIntAPS(SourceInfo); |
| 12684 | #endif |
| 12685 | #if defined(GET_EVAL_PROTO) || defined(GET_LINK_PROTO) |
| 12686 | [[nodiscard]] bool emitComp(PrimType, SourceInfo I); |
| 12687 | #endif |
| 12688 | #if defined(GET_EVAL_IMPL) || defined(GET_LINK_IMPL) |
| 12689 | bool |
| 12690 | #if defined(GET_EVAL_IMPL) |
| 12691 | EvalEmitter |
| 12692 | #else |
| 12693 | ByteCodeEmitter |
| 12694 | #endif |
| 12695 | ::emitComp(PrimType T0, SourceInfo I) { |
| 12696 | switch (T0) { |
| 12697 | case PT_Sint8: |
| 12698 | return emitCompSint8(I); |
| 12699 | case PT_Uint8: |
| 12700 | return emitCompUint8(I); |
| 12701 | case PT_Sint16: |
| 12702 | return emitCompSint16(I); |
| 12703 | case PT_Uint16: |
| 12704 | return emitCompUint16(I); |
| 12705 | case PT_Sint32: |
| 12706 | return emitCompSint32(I); |
| 12707 | case PT_Uint32: |
| 12708 | return emitCompUint32(I); |
| 12709 | case PT_Sint64: |
| 12710 | return emitCompSint64(I); |
| 12711 | case PT_Uint64: |
| 12712 | return emitCompUint64(I); |
| 12713 | case PT_IntAP: |
| 12714 | return emitCompIntAP(I); |
| 12715 | case PT_IntAPS: |
| 12716 | return emitCompIntAPS(I); |
| 12717 | default: llvm_unreachable("invalid type: emitComp" ); |
| 12718 | } |
| 12719 | llvm_unreachable("invalid enum value" ); |
| 12720 | } |
| 12721 | #endif |
| 12722 | #ifdef GET_LINK_IMPL |
| 12723 | bool ByteCodeEmitter::emitCompSint8(SourceInfo L) { |
| 12724 | return emitOp<>(OP_CompSint8, L); |
| 12725 | } |
| 12726 | bool ByteCodeEmitter::emitCompUint8(SourceInfo L) { |
| 12727 | return emitOp<>(OP_CompUint8, L); |
| 12728 | } |
| 12729 | bool ByteCodeEmitter::emitCompSint16(SourceInfo L) { |
| 12730 | return emitOp<>(OP_CompSint16, L); |
| 12731 | } |
| 12732 | bool ByteCodeEmitter::emitCompUint16(SourceInfo L) { |
| 12733 | return emitOp<>(OP_CompUint16, L); |
| 12734 | } |
| 12735 | bool ByteCodeEmitter::emitCompSint32(SourceInfo L) { |
| 12736 | return emitOp<>(OP_CompSint32, L); |
| 12737 | } |
| 12738 | bool ByteCodeEmitter::emitCompUint32(SourceInfo L) { |
| 12739 | return emitOp<>(OP_CompUint32, L); |
| 12740 | } |
| 12741 | bool ByteCodeEmitter::emitCompSint64(SourceInfo L) { |
| 12742 | return emitOp<>(OP_CompSint64, L); |
| 12743 | } |
| 12744 | bool ByteCodeEmitter::emitCompUint64(SourceInfo L) { |
| 12745 | return emitOp<>(OP_CompUint64, L); |
| 12746 | } |
| 12747 | bool ByteCodeEmitter::emitCompIntAP(SourceInfo L) { |
| 12748 | return emitOp<>(OP_CompIntAP, L); |
| 12749 | } |
| 12750 | bool ByteCodeEmitter::emitCompIntAPS(SourceInfo L) { |
| 12751 | return emitOp<>(OP_CompIntAPS, L); |
| 12752 | } |
| 12753 | #endif |
| 12754 | #ifdef GET_EVAL_IMPL |
| 12755 | bool EvalEmitter::emitCompSint8(SourceInfo L) { |
| 12756 | if (!isActive()) return true; |
| 12757 | CurrentSource = L; |
| 12758 | return Comp<PT_Sint8>(S); |
| 12759 | } |
| 12760 | bool EvalEmitter::emitCompUint8(SourceInfo L) { |
| 12761 | if (!isActive()) return true; |
| 12762 | CurrentSource = L; |
| 12763 | return Comp<PT_Uint8>(S); |
| 12764 | } |
| 12765 | bool EvalEmitter::emitCompSint16(SourceInfo L) { |
| 12766 | if (!isActive()) return true; |
| 12767 | CurrentSource = L; |
| 12768 | return Comp<PT_Sint16>(S); |
| 12769 | } |
| 12770 | bool EvalEmitter::emitCompUint16(SourceInfo L) { |
| 12771 | if (!isActive()) return true; |
| 12772 | CurrentSource = L; |
| 12773 | return Comp<PT_Uint16>(S); |
| 12774 | } |
| 12775 | bool EvalEmitter::emitCompSint32(SourceInfo L) { |
| 12776 | if (!isActive()) return true; |
| 12777 | CurrentSource = L; |
| 12778 | return Comp<PT_Sint32>(S); |
| 12779 | } |
| 12780 | bool EvalEmitter::emitCompUint32(SourceInfo L) { |
| 12781 | if (!isActive()) return true; |
| 12782 | CurrentSource = L; |
| 12783 | return Comp<PT_Uint32>(S); |
| 12784 | } |
| 12785 | bool EvalEmitter::emitCompSint64(SourceInfo L) { |
| 12786 | if (!isActive()) return true; |
| 12787 | CurrentSource = L; |
| 12788 | return Comp<PT_Sint64>(S); |
| 12789 | } |
| 12790 | bool EvalEmitter::emitCompUint64(SourceInfo L) { |
| 12791 | if (!isActive()) return true; |
| 12792 | CurrentSource = L; |
| 12793 | return Comp<PT_Uint64>(S); |
| 12794 | } |
| 12795 | bool EvalEmitter::emitCompIntAP(SourceInfo L) { |
| 12796 | if (!isActive()) return true; |
| 12797 | CurrentSource = L; |
| 12798 | return Comp<PT_IntAP>(S); |
| 12799 | } |
| 12800 | bool EvalEmitter::emitCompIntAPS(SourceInfo L) { |
| 12801 | if (!isActive()) return true; |
| 12802 | CurrentSource = L; |
| 12803 | return Comp<PT_IntAPS>(S); |
| 12804 | } |
| 12805 | #endif |
| 12806 | #ifdef GET_OPCODE_NAMES |
| 12807 | OP_ConstBool, |
| 12808 | #endif |
| 12809 | #ifdef GET_INTERPFN_LIST |
| 12810 | &Interp_ConstBool, |
| 12811 | #endif |
| 12812 | #ifdef GET_INTERPFN_DISPATCHERS |
| 12813 | PRESERVE_NONE |
| 12814 | static bool Interp_ConstBool(InterpState &S) { |
| 12815 | { |
| 12816 | const auto V0 = ReadArg<bool>(S, S.PC); |
| 12817 | Const<PT_Bool>(S, V0); |
| 12818 | } |
| 12819 | #if USE_TAILCALLS |
| 12820 | MUSTTAIL return InterpNext(S); |
| 12821 | #else |
| 12822 | return true; |
| 12823 | #endif |
| 12824 | } |
| 12825 | #endif |
| 12826 | #ifdef GET_DISASM |
| 12827 | case OP_ConstBool: |
| 12828 | Text.Op = PrintName("ConstBool" ); |
| 12829 | Text.Args.push_back(printArg<bool>(PC)); |
| 12830 | break; |
| 12831 | #endif |
| 12832 | #if defined(GET_EVAL_PROTO) || defined(GET_LINK_PROTO) |
| 12833 | bool emitConstBool( bool , SourceInfo); |
| 12834 | #endif |
| 12835 | #ifdef GET_LINK_IMPL |
| 12836 | bool ByteCodeEmitter::emitConstBool( bool A0, SourceInfo L) { |
| 12837 | return emitOp<bool>(OP_ConstBool, A0, L); |
| 12838 | } |
| 12839 | #endif |
| 12840 | #ifdef GET_EVAL_IMPL |
| 12841 | bool EvalEmitter::emitConstBool( bool A0, SourceInfo L) { |
| 12842 | if (!isActive()) return true; |
| 12843 | CurrentSource = L; |
| 12844 | return Const<PT_Bool>(S, A0); |
| 12845 | } |
| 12846 | #endif |
| 12847 | #ifdef GET_OPCODE_NAMES |
| 12848 | OP_ConstFixedPoint, |
| 12849 | #endif |
| 12850 | #ifdef GET_INTERPFN_LIST |
| 12851 | &Interp_ConstFixedPoint, |
| 12852 | #endif |
| 12853 | #ifdef GET_INTERPFN_DISPATCHERS |
| 12854 | PRESERVE_NONE |
| 12855 | static bool Interp_ConstFixedPoint(InterpState &S) { |
| 12856 | { |
| 12857 | const auto &V0 = ReadArg<FixedPoint>(S, S.PC); |
| 12858 | Const<PT_FixedPoint>(S, V0); |
| 12859 | } |
| 12860 | #if USE_TAILCALLS |
| 12861 | MUSTTAIL return InterpNext(S); |
| 12862 | #else |
| 12863 | return true; |
| 12864 | #endif |
| 12865 | } |
| 12866 | #endif |
| 12867 | #ifdef GET_DISASM |
| 12868 | case OP_ConstFixedPoint: |
| 12869 | Text.Op = PrintName("ConstFixedPoint" ); |
| 12870 | Text.Args.push_back(printArg<FixedPoint>(PC)); |
| 12871 | break; |
| 12872 | #endif |
| 12873 | #if defined(GET_EVAL_PROTO) || defined(GET_LINK_PROTO) |
| 12874 | bool emitConstFixedPoint(const FixedPoint &, SourceInfo); |
| 12875 | #endif |
| 12876 | #ifdef GET_LINK_IMPL |
| 12877 | bool ByteCodeEmitter::emitConstFixedPoint(const FixedPoint &A0, SourceInfo L) { |
| 12878 | return emitOp<FixedPoint>(OP_ConstFixedPoint, A0, L); |
| 12879 | } |
| 12880 | #endif |
| 12881 | #ifdef GET_EVAL_IMPL |
| 12882 | bool EvalEmitter::emitConstFixedPoint(const FixedPoint &A0, SourceInfo L) { |
| 12883 | if (!isActive()) return true; |
| 12884 | CurrentSource = L; |
| 12885 | return Const<PT_FixedPoint>(S, A0); |
| 12886 | } |
| 12887 | #endif |
| 12888 | #ifdef GET_OPCODE_NAMES |
| 12889 | OP_ConstFloat, |
| 12890 | #endif |
| 12891 | #ifdef GET_INTERPFN_LIST |
| 12892 | &Interp_ConstFloat, |
| 12893 | #endif |
| 12894 | #ifdef GET_INTERPFN_DISPATCHERS |
| 12895 | PRESERVE_NONE |
| 12896 | static bool Interp_ConstFloat(InterpState &S) { |
| 12897 | { |
| 12898 | const auto &V0 = ReadArg<Floating>(S, S.PC); |
| 12899 | ConstFloat(S, V0); |
| 12900 | } |
| 12901 | #if USE_TAILCALLS |
| 12902 | MUSTTAIL return InterpNext(S); |
| 12903 | #else |
| 12904 | return true; |
| 12905 | #endif |
| 12906 | } |
| 12907 | #endif |
| 12908 | #ifdef GET_DISASM |
| 12909 | case OP_ConstFloat: |
| 12910 | Text.Op = PrintName("ConstFloat" ); |
| 12911 | Text.Args.push_back(printArg<Floating>(PC)); |
| 12912 | break; |
| 12913 | #endif |
| 12914 | #if defined(GET_EVAL_PROTO) || defined(GET_LINK_PROTO) |
| 12915 | bool emitConstFloat(const Floating &, SourceInfo); |
| 12916 | #endif |
| 12917 | #ifdef GET_LINK_IMPL |
| 12918 | bool ByteCodeEmitter::emitConstFloat(const Floating &A0, SourceInfo L) { |
| 12919 | return emitOp<Floating>(OP_ConstFloat, A0, L); |
| 12920 | } |
| 12921 | #endif |
| 12922 | #ifdef GET_EVAL_IMPL |
| 12923 | bool EvalEmitter::emitConstFloat(const Floating &A0, SourceInfo L) { |
| 12924 | if (!isActive()) return true; |
| 12925 | CurrentSource = L; |
| 12926 | return ConstFloat(S, A0); |
| 12927 | } |
| 12928 | #endif |
| 12929 | #ifdef GET_OPCODE_NAMES |
| 12930 | OP_ConstIntAP, |
| 12931 | #endif |
| 12932 | #ifdef GET_INTERPFN_LIST |
| 12933 | &Interp_ConstIntAP, |
| 12934 | #endif |
| 12935 | #ifdef GET_INTERPFN_DISPATCHERS |
| 12936 | PRESERVE_NONE |
| 12937 | static bool Interp_ConstIntAP(InterpState &S) { |
| 12938 | { |
| 12939 | const auto &V0 = ReadArg<IntegralAP<false>>(S, S.PC); |
| 12940 | Const<PT_IntAP>(S, V0); |
| 12941 | } |
| 12942 | #if USE_TAILCALLS |
| 12943 | MUSTTAIL return InterpNext(S); |
| 12944 | #else |
| 12945 | return true; |
| 12946 | #endif |
| 12947 | } |
| 12948 | #endif |
| 12949 | #ifdef GET_DISASM |
| 12950 | case OP_ConstIntAP: |
| 12951 | Text.Op = PrintName("ConstIntAP" ); |
| 12952 | Text.Args.push_back(printArg<IntegralAP<false>>(PC)); |
| 12953 | break; |
| 12954 | #endif |
| 12955 | #if defined(GET_EVAL_PROTO) || defined(GET_LINK_PROTO) |
| 12956 | bool emitConstIntAP(const IntegralAP<false> &, SourceInfo); |
| 12957 | #endif |
| 12958 | #ifdef GET_LINK_IMPL |
| 12959 | bool ByteCodeEmitter::emitConstIntAP(const IntegralAP<false> &A0, SourceInfo L) { |
| 12960 | return emitOp<IntegralAP<false>>(OP_ConstIntAP, A0, L); |
| 12961 | } |
| 12962 | #endif |
| 12963 | #ifdef GET_EVAL_IMPL |
| 12964 | bool EvalEmitter::emitConstIntAP(const IntegralAP<false> &A0, SourceInfo L) { |
| 12965 | if (!isActive()) return true; |
| 12966 | CurrentSource = L; |
| 12967 | return Const<PT_IntAP>(S, A0); |
| 12968 | } |
| 12969 | #endif |
| 12970 | #ifdef GET_OPCODE_NAMES |
| 12971 | OP_ConstIntAPS, |
| 12972 | #endif |
| 12973 | #ifdef GET_INTERPFN_LIST |
| 12974 | &Interp_ConstIntAPS, |
| 12975 | #endif |
| 12976 | #ifdef GET_INTERPFN_DISPATCHERS |
| 12977 | PRESERVE_NONE |
| 12978 | static bool Interp_ConstIntAPS(InterpState &S) { |
| 12979 | { |
| 12980 | const auto &V0 = ReadArg<IntegralAP<true>>(S, S.PC); |
| 12981 | Const<PT_IntAPS>(S, V0); |
| 12982 | } |
| 12983 | #if USE_TAILCALLS |
| 12984 | MUSTTAIL return InterpNext(S); |
| 12985 | #else |
| 12986 | return true; |
| 12987 | #endif |
| 12988 | } |
| 12989 | #endif |
| 12990 | #ifdef GET_DISASM |
| 12991 | case OP_ConstIntAPS: |
| 12992 | Text.Op = PrintName("ConstIntAPS" ); |
| 12993 | Text.Args.push_back(printArg<IntegralAP<true>>(PC)); |
| 12994 | break; |
| 12995 | #endif |
| 12996 | #if defined(GET_EVAL_PROTO) || defined(GET_LINK_PROTO) |
| 12997 | bool emitConstIntAPS(const IntegralAP<true> &, SourceInfo); |
| 12998 | #endif |
| 12999 | #ifdef GET_LINK_IMPL |
| 13000 | bool ByteCodeEmitter::emitConstIntAPS(const IntegralAP<true> &A0, SourceInfo L) { |
| 13001 | return emitOp<IntegralAP<true>>(OP_ConstIntAPS, A0, L); |
| 13002 | } |
| 13003 | #endif |
| 13004 | #ifdef GET_EVAL_IMPL |
| 13005 | bool EvalEmitter::emitConstIntAPS(const IntegralAP<true> &A0, SourceInfo L) { |
| 13006 | if (!isActive()) return true; |
| 13007 | CurrentSource = L; |
| 13008 | return Const<PT_IntAPS>(S, A0); |
| 13009 | } |
| 13010 | #endif |
| 13011 | #ifdef GET_OPCODE_NAMES |
| 13012 | OP_ConstSint8, |
| 13013 | #endif |
| 13014 | #ifdef GET_INTERPFN_LIST |
| 13015 | &Interp_ConstSint8, |
| 13016 | #endif |
| 13017 | #ifdef GET_INTERPFN_DISPATCHERS |
| 13018 | PRESERVE_NONE |
| 13019 | static bool Interp_ConstSint8(InterpState &S) { |
| 13020 | { |
| 13021 | const auto V0 = ReadArg<int8_t>(S, S.PC); |
| 13022 | Const<PT_Sint8>(S, V0); |
| 13023 | } |
| 13024 | #if USE_TAILCALLS |
| 13025 | MUSTTAIL return InterpNext(S); |
| 13026 | #else |
| 13027 | return true; |
| 13028 | #endif |
| 13029 | } |
| 13030 | #endif |
| 13031 | #ifdef GET_DISASM |
| 13032 | case OP_ConstSint8: |
| 13033 | Text.Op = PrintName("ConstSint8" ); |
| 13034 | Text.Args.push_back(printArg<int8_t>(PC)); |
| 13035 | break; |
| 13036 | #endif |
| 13037 | #if defined(GET_EVAL_PROTO) || defined(GET_LINK_PROTO) |
| 13038 | bool emitConstSint8( int8_t , SourceInfo); |
| 13039 | #endif |
| 13040 | #ifdef GET_LINK_IMPL |
| 13041 | bool ByteCodeEmitter::emitConstSint8( int8_t A0, SourceInfo L) { |
| 13042 | return emitOp<int8_t>(OP_ConstSint8, A0, L); |
| 13043 | } |
| 13044 | #endif |
| 13045 | #ifdef GET_EVAL_IMPL |
| 13046 | bool EvalEmitter::emitConstSint8( int8_t A0, SourceInfo L) { |
| 13047 | if (!isActive()) return true; |
| 13048 | CurrentSource = L; |
| 13049 | return Const<PT_Sint8>(S, A0); |
| 13050 | } |
| 13051 | #endif |
| 13052 | #ifdef GET_OPCODE_NAMES |
| 13053 | OP_ConstSint16, |
| 13054 | #endif |
| 13055 | #ifdef GET_INTERPFN_LIST |
| 13056 | &Interp_ConstSint16, |
| 13057 | #endif |
| 13058 | #ifdef GET_INTERPFN_DISPATCHERS |
| 13059 | PRESERVE_NONE |
| 13060 | static bool Interp_ConstSint16(InterpState &S) { |
| 13061 | { |
| 13062 | const auto V0 = ReadArg<int16_t>(S, S.PC); |
| 13063 | Const<PT_Sint16>(S, V0); |
| 13064 | } |
| 13065 | #if USE_TAILCALLS |
| 13066 | MUSTTAIL return InterpNext(S); |
| 13067 | #else |
| 13068 | return true; |
| 13069 | #endif |
| 13070 | } |
| 13071 | #endif |
| 13072 | #ifdef GET_DISASM |
| 13073 | case OP_ConstSint16: |
| 13074 | Text.Op = PrintName("ConstSint16" ); |
| 13075 | Text.Args.push_back(printArg<int16_t>(PC)); |
| 13076 | break; |
| 13077 | #endif |
| 13078 | #if defined(GET_EVAL_PROTO) || defined(GET_LINK_PROTO) |
| 13079 | bool emitConstSint16( int16_t , SourceInfo); |
| 13080 | #endif |
| 13081 | #ifdef GET_LINK_IMPL |
| 13082 | bool ByteCodeEmitter::emitConstSint16( int16_t A0, SourceInfo L) { |
| 13083 | return emitOp<int16_t>(OP_ConstSint16, A0, L); |
| 13084 | } |
| 13085 | #endif |
| 13086 | #ifdef GET_EVAL_IMPL |
| 13087 | bool EvalEmitter::emitConstSint16( int16_t A0, SourceInfo L) { |
| 13088 | if (!isActive()) return true; |
| 13089 | CurrentSource = L; |
| 13090 | return Const<PT_Sint16>(S, A0); |
| 13091 | } |
| 13092 | #endif |
| 13093 | #ifdef GET_OPCODE_NAMES |
| 13094 | OP_ConstSint32, |
| 13095 | #endif |
| 13096 | #ifdef GET_INTERPFN_LIST |
| 13097 | &Interp_ConstSint32, |
| 13098 | #endif |
| 13099 | #ifdef GET_INTERPFN_DISPATCHERS |
| 13100 | PRESERVE_NONE |
| 13101 | static bool Interp_ConstSint32(InterpState &S) { |
| 13102 | { |
| 13103 | const auto V0 = ReadArg<int32_t>(S, S.PC); |
| 13104 | Const<PT_Sint32>(S, V0); |
| 13105 | } |
| 13106 | #if USE_TAILCALLS |
| 13107 | MUSTTAIL return InterpNext(S); |
| 13108 | #else |
| 13109 | return true; |
| 13110 | #endif |
| 13111 | } |
| 13112 | #endif |
| 13113 | #ifdef GET_DISASM |
| 13114 | case OP_ConstSint32: |
| 13115 | Text.Op = PrintName("ConstSint32" ); |
| 13116 | Text.Args.push_back(printArg<int32_t>(PC)); |
| 13117 | break; |
| 13118 | #endif |
| 13119 | #if defined(GET_EVAL_PROTO) || defined(GET_LINK_PROTO) |
| 13120 | bool emitConstSint32( int32_t , SourceInfo); |
| 13121 | #endif |
| 13122 | #ifdef GET_LINK_IMPL |
| 13123 | bool ByteCodeEmitter::emitConstSint32( int32_t A0, SourceInfo L) { |
| 13124 | return emitOp<int32_t>(OP_ConstSint32, A0, L); |
| 13125 | } |
| 13126 | #endif |
| 13127 | #ifdef GET_EVAL_IMPL |
| 13128 | bool EvalEmitter::emitConstSint32( int32_t A0, SourceInfo L) { |
| 13129 | if (!isActive()) return true; |
| 13130 | CurrentSource = L; |
| 13131 | return Const<PT_Sint32>(S, A0); |
| 13132 | } |
| 13133 | #endif |
| 13134 | #ifdef GET_OPCODE_NAMES |
| 13135 | OP_ConstSint64, |
| 13136 | #endif |
| 13137 | #ifdef GET_INTERPFN_LIST |
| 13138 | &Interp_ConstSint64, |
| 13139 | #endif |
| 13140 | #ifdef GET_INTERPFN_DISPATCHERS |
| 13141 | PRESERVE_NONE |
| 13142 | static bool Interp_ConstSint64(InterpState &S) { |
| 13143 | { |
| 13144 | const auto V0 = ReadArg<int64_t>(S, S.PC); |
| 13145 | Const<PT_Sint64>(S, V0); |
| 13146 | } |
| 13147 | #if USE_TAILCALLS |
| 13148 | MUSTTAIL return InterpNext(S); |
| 13149 | #else |
| 13150 | return true; |
| 13151 | #endif |
| 13152 | } |
| 13153 | #endif |
| 13154 | #ifdef GET_DISASM |
| 13155 | case OP_ConstSint64: |
| 13156 | Text.Op = PrintName("ConstSint64" ); |
| 13157 | Text.Args.push_back(printArg<int64_t>(PC)); |
| 13158 | break; |
| 13159 | #endif |
| 13160 | #if defined(GET_EVAL_PROTO) || defined(GET_LINK_PROTO) |
| 13161 | bool emitConstSint64( int64_t , SourceInfo); |
| 13162 | #endif |
| 13163 | #ifdef GET_LINK_IMPL |
| 13164 | bool ByteCodeEmitter::emitConstSint64( int64_t A0, SourceInfo L) { |
| 13165 | return emitOp<int64_t>(OP_ConstSint64, A0, L); |
| 13166 | } |
| 13167 | #endif |
| 13168 | #ifdef GET_EVAL_IMPL |
| 13169 | bool EvalEmitter::emitConstSint64( int64_t A0, SourceInfo L) { |
| 13170 | if (!isActive()) return true; |
| 13171 | CurrentSource = L; |
| 13172 | return Const<PT_Sint64>(S, A0); |
| 13173 | } |
| 13174 | #endif |
| 13175 | #ifdef GET_OPCODE_NAMES |
| 13176 | OP_ConstUint8, |
| 13177 | #endif |
| 13178 | #ifdef GET_INTERPFN_LIST |
| 13179 | &Interp_ConstUint8, |
| 13180 | #endif |
| 13181 | #ifdef GET_INTERPFN_DISPATCHERS |
| 13182 | PRESERVE_NONE |
| 13183 | static bool Interp_ConstUint8(InterpState &S) { |
| 13184 | { |
| 13185 | const auto V0 = ReadArg<uint8_t>(S, S.PC); |
| 13186 | Const<PT_Uint8>(S, V0); |
| 13187 | } |
| 13188 | #if USE_TAILCALLS |
| 13189 | MUSTTAIL return InterpNext(S); |
| 13190 | #else |
| 13191 | return true; |
| 13192 | #endif |
| 13193 | } |
| 13194 | #endif |
| 13195 | #ifdef GET_DISASM |
| 13196 | case OP_ConstUint8: |
| 13197 | Text.Op = PrintName("ConstUint8" ); |
| 13198 | Text.Args.push_back(printArg<uint8_t>(PC)); |
| 13199 | break; |
| 13200 | #endif |
| 13201 | #if defined(GET_EVAL_PROTO) || defined(GET_LINK_PROTO) |
| 13202 | bool emitConstUint8( uint8_t , SourceInfo); |
| 13203 | #endif |
| 13204 | #ifdef GET_LINK_IMPL |
| 13205 | bool ByteCodeEmitter::emitConstUint8( uint8_t A0, SourceInfo L) { |
| 13206 | return emitOp<uint8_t>(OP_ConstUint8, A0, L); |
| 13207 | } |
| 13208 | #endif |
| 13209 | #ifdef GET_EVAL_IMPL |
| 13210 | bool EvalEmitter::emitConstUint8( uint8_t A0, SourceInfo L) { |
| 13211 | if (!isActive()) return true; |
| 13212 | CurrentSource = L; |
| 13213 | return Const<PT_Uint8>(S, A0); |
| 13214 | } |
| 13215 | #endif |
| 13216 | #ifdef GET_OPCODE_NAMES |
| 13217 | OP_ConstUint16, |
| 13218 | #endif |
| 13219 | #ifdef GET_INTERPFN_LIST |
| 13220 | &Interp_ConstUint16, |
| 13221 | #endif |
| 13222 | #ifdef GET_INTERPFN_DISPATCHERS |
| 13223 | PRESERVE_NONE |
| 13224 | static bool Interp_ConstUint16(InterpState &S) { |
| 13225 | { |
| 13226 | const auto V0 = ReadArg<uint16_t>(S, S.PC); |
| 13227 | Const<PT_Uint16>(S, V0); |
| 13228 | } |
| 13229 | #if USE_TAILCALLS |
| 13230 | MUSTTAIL return InterpNext(S); |
| 13231 | #else |
| 13232 | return true; |
| 13233 | #endif |
| 13234 | } |
| 13235 | #endif |
| 13236 | #ifdef GET_DISASM |
| 13237 | case OP_ConstUint16: |
| 13238 | Text.Op = PrintName("ConstUint16" ); |
| 13239 | Text.Args.push_back(printArg<uint16_t>(PC)); |
| 13240 | break; |
| 13241 | #endif |
| 13242 | #if defined(GET_EVAL_PROTO) || defined(GET_LINK_PROTO) |
| 13243 | bool emitConstUint16( uint16_t , SourceInfo); |
| 13244 | #endif |
| 13245 | #ifdef GET_LINK_IMPL |
| 13246 | bool ByteCodeEmitter::emitConstUint16( uint16_t A0, SourceInfo L) { |
| 13247 | return emitOp<uint16_t>(OP_ConstUint16, A0, L); |
| 13248 | } |
| 13249 | #endif |
| 13250 | #ifdef GET_EVAL_IMPL |
| 13251 | bool EvalEmitter::emitConstUint16( uint16_t A0, SourceInfo L) { |
| 13252 | if (!isActive()) return true; |
| 13253 | CurrentSource = L; |
| 13254 | return Const<PT_Uint16>(S, A0); |
| 13255 | } |
| 13256 | #endif |
| 13257 | #ifdef GET_OPCODE_NAMES |
| 13258 | OP_ConstUint32, |
| 13259 | #endif |
| 13260 | #ifdef GET_INTERPFN_LIST |
| 13261 | &Interp_ConstUint32, |
| 13262 | #endif |
| 13263 | #ifdef GET_INTERPFN_DISPATCHERS |
| 13264 | PRESERVE_NONE |
| 13265 | static bool Interp_ConstUint32(InterpState &S) { |
| 13266 | { |
| 13267 | const auto V0 = ReadArg<uint32_t>(S, S.PC); |
| 13268 | Const<PT_Uint32>(S, V0); |
| 13269 | } |
| 13270 | #if USE_TAILCALLS |
| 13271 | MUSTTAIL return InterpNext(S); |
| 13272 | #else |
| 13273 | return true; |
| 13274 | #endif |
| 13275 | } |
| 13276 | #endif |
| 13277 | #ifdef GET_DISASM |
| 13278 | case OP_ConstUint32: |
| 13279 | Text.Op = PrintName("ConstUint32" ); |
| 13280 | Text.Args.push_back(printArg<uint32_t>(PC)); |
| 13281 | break; |
| 13282 | #endif |
| 13283 | #if defined(GET_EVAL_PROTO) || defined(GET_LINK_PROTO) |
| 13284 | bool emitConstUint32( uint32_t , SourceInfo); |
| 13285 | #endif |
| 13286 | #ifdef GET_LINK_IMPL |
| 13287 | bool ByteCodeEmitter::emitConstUint32( uint32_t A0, SourceInfo L) { |
| 13288 | return emitOp<uint32_t>(OP_ConstUint32, A0, L); |
| 13289 | } |
| 13290 | #endif |
| 13291 | #ifdef GET_EVAL_IMPL |
| 13292 | bool EvalEmitter::emitConstUint32( uint32_t A0, SourceInfo L) { |
| 13293 | if (!isActive()) return true; |
| 13294 | CurrentSource = L; |
| 13295 | return Const<PT_Uint32>(S, A0); |
| 13296 | } |
| 13297 | #endif |
| 13298 | #ifdef GET_OPCODE_NAMES |
| 13299 | OP_ConstUint64, |
| 13300 | #endif |
| 13301 | #ifdef GET_INTERPFN_LIST |
| 13302 | &Interp_ConstUint64, |
| 13303 | #endif |
| 13304 | #ifdef GET_INTERPFN_DISPATCHERS |
| 13305 | PRESERVE_NONE |
| 13306 | static bool Interp_ConstUint64(InterpState &S) { |
| 13307 | { |
| 13308 | const auto V0 = ReadArg<uint64_t>(S, S.PC); |
| 13309 | Const<PT_Uint64>(S, V0); |
| 13310 | } |
| 13311 | #if USE_TAILCALLS |
| 13312 | MUSTTAIL return InterpNext(S); |
| 13313 | #else |
| 13314 | return true; |
| 13315 | #endif |
| 13316 | } |
| 13317 | #endif |
| 13318 | #ifdef GET_DISASM |
| 13319 | case OP_ConstUint64: |
| 13320 | Text.Op = PrintName("ConstUint64" ); |
| 13321 | Text.Args.push_back(printArg<uint64_t>(PC)); |
| 13322 | break; |
| 13323 | #endif |
| 13324 | #if defined(GET_EVAL_PROTO) || defined(GET_LINK_PROTO) |
| 13325 | bool emitConstUint64( uint64_t , SourceInfo); |
| 13326 | #endif |
| 13327 | #ifdef GET_LINK_IMPL |
| 13328 | bool ByteCodeEmitter::emitConstUint64( uint64_t A0, SourceInfo L) { |
| 13329 | return emitOp<uint64_t>(OP_ConstUint64, A0, L); |
| 13330 | } |
| 13331 | #endif |
| 13332 | #ifdef GET_EVAL_IMPL |
| 13333 | bool EvalEmitter::emitConstUint64( uint64_t A0, SourceInfo L) { |
| 13334 | if (!isActive()) return true; |
| 13335 | CurrentSource = L; |
| 13336 | return Const<PT_Uint64>(S, A0); |
| 13337 | } |
| 13338 | #endif |
| 13339 | #ifdef GET_OPCODE_NAMES |
| 13340 | OP_CopyArraySint8, |
| 13341 | OP_CopyArrayUint8, |
| 13342 | OP_CopyArraySint16, |
| 13343 | OP_CopyArrayUint16, |
| 13344 | OP_CopyArraySint32, |
| 13345 | OP_CopyArrayUint32, |
| 13346 | OP_CopyArraySint64, |
| 13347 | OP_CopyArrayUint64, |
| 13348 | OP_CopyArrayIntAP, |
| 13349 | OP_CopyArrayIntAPS, |
| 13350 | OP_CopyArrayBool, |
| 13351 | OP_CopyArrayFixedPoint, |
| 13352 | OP_CopyArrayPtr, |
| 13353 | OP_CopyArrayMemberPtr, |
| 13354 | OP_CopyArrayFloat, |
| 13355 | OP_CopyArrayReflect, |
| 13356 | #endif |
| 13357 | #ifdef GET_INTERPFN_LIST |
| 13358 | &Interp_CopyArraySint8, |
| 13359 | &Interp_CopyArrayUint8, |
| 13360 | &Interp_CopyArraySint16, |
| 13361 | &Interp_CopyArrayUint16, |
| 13362 | &Interp_CopyArraySint32, |
| 13363 | &Interp_CopyArrayUint32, |
| 13364 | &Interp_CopyArraySint64, |
| 13365 | &Interp_CopyArrayUint64, |
| 13366 | &Interp_CopyArrayIntAP, |
| 13367 | &Interp_CopyArrayIntAPS, |
| 13368 | &Interp_CopyArrayBool, |
| 13369 | &Interp_CopyArrayFixedPoint, |
| 13370 | &Interp_CopyArrayPtr, |
| 13371 | &Interp_CopyArrayMemberPtr, |
| 13372 | &Interp_CopyArrayFloat, |
| 13373 | &Interp_CopyArrayReflect, |
| 13374 | #endif |
| 13375 | #ifdef GET_INTERPFN_DISPATCHERS |
| 13376 | PRESERVE_NONE |
| 13377 | static bool Interp_CopyArraySint8(InterpState &S) { |
| 13378 | { |
| 13379 | CodePtr OpPC = S.PC; |
| 13380 | const auto V0 = ReadArg<uint32_t>(S, S.PC); |
| 13381 | const auto V1 = ReadArg<uint32_t>(S, S.PC); |
| 13382 | const auto V2 = ReadArg<uint32_t>(S, S.PC); |
| 13383 | if (!CopyArray<PT_Sint8>(S, OpPC, V0, V1, V2)) return false; |
| 13384 | } |
| 13385 | #if USE_TAILCALLS |
| 13386 | MUSTTAIL return InterpNext(S); |
| 13387 | #else |
| 13388 | return true; |
| 13389 | #endif |
| 13390 | } |
| 13391 | PRESERVE_NONE |
| 13392 | static bool Interp_CopyArrayUint8(InterpState &S) { |
| 13393 | { |
| 13394 | CodePtr OpPC = S.PC; |
| 13395 | const auto V0 = ReadArg<uint32_t>(S, S.PC); |
| 13396 | const auto V1 = ReadArg<uint32_t>(S, S.PC); |
| 13397 | const auto V2 = ReadArg<uint32_t>(S, S.PC); |
| 13398 | if (!CopyArray<PT_Uint8>(S, OpPC, V0, V1, V2)) return false; |
| 13399 | } |
| 13400 | #if USE_TAILCALLS |
| 13401 | MUSTTAIL return InterpNext(S); |
| 13402 | #else |
| 13403 | return true; |
| 13404 | #endif |
| 13405 | } |
| 13406 | PRESERVE_NONE |
| 13407 | static bool Interp_CopyArraySint16(InterpState &S) { |
| 13408 | { |
| 13409 | CodePtr OpPC = S.PC; |
| 13410 | const auto V0 = ReadArg<uint32_t>(S, S.PC); |
| 13411 | const auto V1 = ReadArg<uint32_t>(S, S.PC); |
| 13412 | const auto V2 = ReadArg<uint32_t>(S, S.PC); |
| 13413 | if (!CopyArray<PT_Sint16>(S, OpPC, V0, V1, V2)) return false; |
| 13414 | } |
| 13415 | #if USE_TAILCALLS |
| 13416 | MUSTTAIL return InterpNext(S); |
| 13417 | #else |
| 13418 | return true; |
| 13419 | #endif |
| 13420 | } |
| 13421 | PRESERVE_NONE |
| 13422 | static bool Interp_CopyArrayUint16(InterpState &S) { |
| 13423 | { |
| 13424 | CodePtr OpPC = S.PC; |
| 13425 | const auto V0 = ReadArg<uint32_t>(S, S.PC); |
| 13426 | const auto V1 = ReadArg<uint32_t>(S, S.PC); |
| 13427 | const auto V2 = ReadArg<uint32_t>(S, S.PC); |
| 13428 | if (!CopyArray<PT_Uint16>(S, OpPC, V0, V1, V2)) return false; |
| 13429 | } |
| 13430 | #if USE_TAILCALLS |
| 13431 | MUSTTAIL return InterpNext(S); |
| 13432 | #else |
| 13433 | return true; |
| 13434 | #endif |
| 13435 | } |
| 13436 | PRESERVE_NONE |
| 13437 | static bool Interp_CopyArraySint32(InterpState &S) { |
| 13438 | { |
| 13439 | CodePtr OpPC = S.PC; |
| 13440 | const auto V0 = ReadArg<uint32_t>(S, S.PC); |
| 13441 | const auto V1 = ReadArg<uint32_t>(S, S.PC); |
| 13442 | const auto V2 = ReadArg<uint32_t>(S, S.PC); |
| 13443 | if (!CopyArray<PT_Sint32>(S, OpPC, V0, V1, V2)) return false; |
| 13444 | } |
| 13445 | #if USE_TAILCALLS |
| 13446 | MUSTTAIL return InterpNext(S); |
| 13447 | #else |
| 13448 | return true; |
| 13449 | #endif |
| 13450 | } |
| 13451 | PRESERVE_NONE |
| 13452 | static bool Interp_CopyArrayUint32(InterpState &S) { |
| 13453 | { |
| 13454 | CodePtr OpPC = S.PC; |
| 13455 | const auto V0 = ReadArg<uint32_t>(S, S.PC); |
| 13456 | const auto V1 = ReadArg<uint32_t>(S, S.PC); |
| 13457 | const auto V2 = ReadArg<uint32_t>(S, S.PC); |
| 13458 | if (!CopyArray<PT_Uint32>(S, OpPC, V0, V1, V2)) return false; |
| 13459 | } |
| 13460 | #if USE_TAILCALLS |
| 13461 | MUSTTAIL return InterpNext(S); |
| 13462 | #else |
| 13463 | return true; |
| 13464 | #endif |
| 13465 | } |
| 13466 | PRESERVE_NONE |
| 13467 | static bool Interp_CopyArraySint64(InterpState &S) { |
| 13468 | { |
| 13469 | CodePtr OpPC = S.PC; |
| 13470 | const auto V0 = ReadArg<uint32_t>(S, S.PC); |
| 13471 | const auto V1 = ReadArg<uint32_t>(S, S.PC); |
| 13472 | const auto V2 = ReadArg<uint32_t>(S, S.PC); |
| 13473 | if (!CopyArray<PT_Sint64>(S, OpPC, V0, V1, V2)) return false; |
| 13474 | } |
| 13475 | #if USE_TAILCALLS |
| 13476 | MUSTTAIL return InterpNext(S); |
| 13477 | #else |
| 13478 | return true; |
| 13479 | #endif |
| 13480 | } |
| 13481 | PRESERVE_NONE |
| 13482 | static bool Interp_CopyArrayUint64(InterpState &S) { |
| 13483 | { |
| 13484 | CodePtr OpPC = S.PC; |
| 13485 | const auto V0 = ReadArg<uint32_t>(S, S.PC); |
| 13486 | const auto V1 = ReadArg<uint32_t>(S, S.PC); |
| 13487 | const auto V2 = ReadArg<uint32_t>(S, S.PC); |
| 13488 | if (!CopyArray<PT_Uint64>(S, OpPC, V0, V1, V2)) return false; |
| 13489 | } |
| 13490 | #if USE_TAILCALLS |
| 13491 | MUSTTAIL return InterpNext(S); |
| 13492 | #else |
| 13493 | return true; |
| 13494 | #endif |
| 13495 | } |
| 13496 | PRESERVE_NONE |
| 13497 | static bool Interp_CopyArrayIntAP(InterpState &S) { |
| 13498 | { |
| 13499 | CodePtr OpPC = S.PC; |
| 13500 | const auto V0 = ReadArg<uint32_t>(S, S.PC); |
| 13501 | const auto V1 = ReadArg<uint32_t>(S, S.PC); |
| 13502 | const auto V2 = ReadArg<uint32_t>(S, S.PC); |
| 13503 | if (!CopyArray<PT_IntAP>(S, OpPC, V0, V1, V2)) return false; |
| 13504 | } |
| 13505 | #if USE_TAILCALLS |
| 13506 | MUSTTAIL return InterpNext(S); |
| 13507 | #else |
| 13508 | return true; |
| 13509 | #endif |
| 13510 | } |
| 13511 | PRESERVE_NONE |
| 13512 | static bool Interp_CopyArrayIntAPS(InterpState &S) { |
| 13513 | { |
| 13514 | CodePtr OpPC = S.PC; |
| 13515 | const auto V0 = ReadArg<uint32_t>(S, S.PC); |
| 13516 | const auto V1 = ReadArg<uint32_t>(S, S.PC); |
| 13517 | const auto V2 = ReadArg<uint32_t>(S, S.PC); |
| 13518 | if (!CopyArray<PT_IntAPS>(S, OpPC, V0, V1, V2)) return false; |
| 13519 | } |
| 13520 | #if USE_TAILCALLS |
| 13521 | MUSTTAIL return InterpNext(S); |
| 13522 | #else |
| 13523 | return true; |
| 13524 | #endif |
| 13525 | } |
| 13526 | PRESERVE_NONE |
| 13527 | static bool Interp_CopyArrayBool(InterpState &S) { |
| 13528 | { |
| 13529 | CodePtr OpPC = S.PC; |
| 13530 | const auto V0 = ReadArg<uint32_t>(S, S.PC); |
| 13531 | const auto V1 = ReadArg<uint32_t>(S, S.PC); |
| 13532 | const auto V2 = ReadArg<uint32_t>(S, S.PC); |
| 13533 | if (!CopyArray<PT_Bool>(S, OpPC, V0, V1, V2)) return false; |
| 13534 | } |
| 13535 | #if USE_TAILCALLS |
| 13536 | MUSTTAIL return InterpNext(S); |
| 13537 | #else |
| 13538 | return true; |
| 13539 | #endif |
| 13540 | } |
| 13541 | PRESERVE_NONE |
| 13542 | static bool Interp_CopyArrayFixedPoint(InterpState &S) { |
| 13543 | { |
| 13544 | CodePtr OpPC = S.PC; |
| 13545 | const auto V0 = ReadArg<uint32_t>(S, S.PC); |
| 13546 | const auto V1 = ReadArg<uint32_t>(S, S.PC); |
| 13547 | const auto V2 = ReadArg<uint32_t>(S, S.PC); |
| 13548 | if (!CopyArray<PT_FixedPoint>(S, OpPC, V0, V1, V2)) return false; |
| 13549 | } |
| 13550 | #if USE_TAILCALLS |
| 13551 | MUSTTAIL return InterpNext(S); |
| 13552 | #else |
| 13553 | return true; |
| 13554 | #endif |
| 13555 | } |
| 13556 | PRESERVE_NONE |
| 13557 | static bool Interp_CopyArrayPtr(InterpState &S) { |
| 13558 | { |
| 13559 | CodePtr OpPC = S.PC; |
| 13560 | const auto V0 = ReadArg<uint32_t>(S, S.PC); |
| 13561 | const auto V1 = ReadArg<uint32_t>(S, S.PC); |
| 13562 | const auto V2 = ReadArg<uint32_t>(S, S.PC); |
| 13563 | if (!CopyArray<PT_Ptr>(S, OpPC, V0, V1, V2)) return false; |
| 13564 | } |
| 13565 | #if USE_TAILCALLS |
| 13566 | MUSTTAIL return InterpNext(S); |
| 13567 | #else |
| 13568 | return true; |
| 13569 | #endif |
| 13570 | } |
| 13571 | PRESERVE_NONE |
| 13572 | static bool Interp_CopyArrayMemberPtr(InterpState &S) { |
| 13573 | { |
| 13574 | CodePtr OpPC = S.PC; |
| 13575 | const auto V0 = ReadArg<uint32_t>(S, S.PC); |
| 13576 | const auto V1 = ReadArg<uint32_t>(S, S.PC); |
| 13577 | const auto V2 = ReadArg<uint32_t>(S, S.PC); |
| 13578 | if (!CopyArray<PT_MemberPtr>(S, OpPC, V0, V1, V2)) return false; |
| 13579 | } |
| 13580 | #if USE_TAILCALLS |
| 13581 | MUSTTAIL return InterpNext(S); |
| 13582 | #else |
| 13583 | return true; |
| 13584 | #endif |
| 13585 | } |
| 13586 | PRESERVE_NONE |
| 13587 | static bool Interp_CopyArrayFloat(InterpState &S) { |
| 13588 | { |
| 13589 | CodePtr OpPC = S.PC; |
| 13590 | const auto V0 = ReadArg<uint32_t>(S, S.PC); |
| 13591 | const auto V1 = ReadArg<uint32_t>(S, S.PC); |
| 13592 | const auto V2 = ReadArg<uint32_t>(S, S.PC); |
| 13593 | if (!CopyArray<PT_Float>(S, OpPC, V0, V1, V2)) return false; |
| 13594 | } |
| 13595 | #if USE_TAILCALLS |
| 13596 | MUSTTAIL return InterpNext(S); |
| 13597 | #else |
| 13598 | return true; |
| 13599 | #endif |
| 13600 | } |
| 13601 | PRESERVE_NONE |
| 13602 | static bool Interp_CopyArrayReflect(InterpState &S) { |
| 13603 | { |
| 13604 | CodePtr OpPC = S.PC; |
| 13605 | const auto V0 = ReadArg<uint32_t>(S, S.PC); |
| 13606 | const auto V1 = ReadArg<uint32_t>(S, S.PC); |
| 13607 | const auto V2 = ReadArg<uint32_t>(S, S.PC); |
| 13608 | if (!CopyArray<PT_Reflect>(S, OpPC, V0, V1, V2)) return false; |
| 13609 | } |
| 13610 | #if USE_TAILCALLS |
| 13611 | MUSTTAIL return InterpNext(S); |
| 13612 | #else |
| 13613 | return true; |
| 13614 | #endif |
| 13615 | } |
| 13616 | #endif |
| 13617 | #ifdef GET_DISASM |
| 13618 | case OP_CopyArraySint8: |
| 13619 | Text.Op = PrintName("CopyArraySint8" ); |
| 13620 | Text.Args.push_back(printArg<uint32_t>(PC)); |
| 13621 | Text.Args.push_back(printArg<uint32_t>(PC)); |
| 13622 | Text.Args.push_back(printArg<uint32_t>(PC)); |
| 13623 | break; |
| 13624 | case OP_CopyArrayUint8: |
| 13625 | Text.Op = PrintName("CopyArrayUint8" ); |
| 13626 | Text.Args.push_back(printArg<uint32_t>(PC)); |
| 13627 | Text.Args.push_back(printArg<uint32_t>(PC)); |
| 13628 | Text.Args.push_back(printArg<uint32_t>(PC)); |
| 13629 | break; |
| 13630 | case OP_CopyArraySint16: |
| 13631 | Text.Op = PrintName("CopyArraySint16" ); |
| 13632 | Text.Args.push_back(printArg<uint32_t>(PC)); |
| 13633 | Text.Args.push_back(printArg<uint32_t>(PC)); |
| 13634 | Text.Args.push_back(printArg<uint32_t>(PC)); |
| 13635 | break; |
| 13636 | case OP_CopyArrayUint16: |
| 13637 | Text.Op = PrintName("CopyArrayUint16" ); |
| 13638 | Text.Args.push_back(printArg<uint32_t>(PC)); |
| 13639 | Text.Args.push_back(printArg<uint32_t>(PC)); |
| 13640 | Text.Args.push_back(printArg<uint32_t>(PC)); |
| 13641 | break; |
| 13642 | case OP_CopyArraySint32: |
| 13643 | Text.Op = PrintName("CopyArraySint32" ); |
| 13644 | Text.Args.push_back(printArg<uint32_t>(PC)); |
| 13645 | Text.Args.push_back(printArg<uint32_t>(PC)); |
| 13646 | Text.Args.push_back(printArg<uint32_t>(PC)); |
| 13647 | break; |
| 13648 | case OP_CopyArrayUint32: |
| 13649 | Text.Op = PrintName("CopyArrayUint32" ); |
| 13650 | Text.Args.push_back(printArg<uint32_t>(PC)); |
| 13651 | Text.Args.push_back(printArg<uint32_t>(PC)); |
| 13652 | Text.Args.push_back(printArg<uint32_t>(PC)); |
| 13653 | break; |
| 13654 | case OP_CopyArraySint64: |
| 13655 | Text.Op = PrintName("CopyArraySint64" ); |
| 13656 | Text.Args.push_back(printArg<uint32_t>(PC)); |
| 13657 | Text.Args.push_back(printArg<uint32_t>(PC)); |
| 13658 | Text.Args.push_back(printArg<uint32_t>(PC)); |
| 13659 | break; |
| 13660 | case OP_CopyArrayUint64: |
| 13661 | Text.Op = PrintName("CopyArrayUint64" ); |
| 13662 | Text.Args.push_back(printArg<uint32_t>(PC)); |
| 13663 | Text.Args.push_back(printArg<uint32_t>(PC)); |
| 13664 | Text.Args.push_back(printArg<uint32_t>(PC)); |
| 13665 | break; |
| 13666 | case OP_CopyArrayIntAP: |
| 13667 | Text.Op = PrintName("CopyArrayIntAP" ); |
| 13668 | Text.Args.push_back(printArg<uint32_t>(PC)); |
| 13669 | Text.Args.push_back(printArg<uint32_t>(PC)); |
| 13670 | Text.Args.push_back(printArg<uint32_t>(PC)); |
| 13671 | break; |
| 13672 | case OP_CopyArrayIntAPS: |
| 13673 | Text.Op = PrintName("CopyArrayIntAPS" ); |
| 13674 | Text.Args.push_back(printArg<uint32_t>(PC)); |
| 13675 | Text.Args.push_back(printArg<uint32_t>(PC)); |
| 13676 | Text.Args.push_back(printArg<uint32_t>(PC)); |
| 13677 | break; |
| 13678 | case OP_CopyArrayBool: |
| 13679 | Text.Op = PrintName("CopyArrayBool" ); |
| 13680 | Text.Args.push_back(printArg<uint32_t>(PC)); |
| 13681 | Text.Args.push_back(printArg<uint32_t>(PC)); |
| 13682 | Text.Args.push_back(printArg<uint32_t>(PC)); |
| 13683 | break; |
| 13684 | case OP_CopyArrayFixedPoint: |
| 13685 | Text.Op = PrintName("CopyArrayFixedPoint" ); |
| 13686 | Text.Args.push_back(printArg<uint32_t>(PC)); |
| 13687 | Text.Args.push_back(printArg<uint32_t>(PC)); |
| 13688 | Text.Args.push_back(printArg<uint32_t>(PC)); |
| 13689 | break; |
| 13690 | case OP_CopyArrayPtr: |
| 13691 | Text.Op = PrintName("CopyArrayPtr" ); |
| 13692 | Text.Args.push_back(printArg<uint32_t>(PC)); |
| 13693 | Text.Args.push_back(printArg<uint32_t>(PC)); |
| 13694 | Text.Args.push_back(printArg<uint32_t>(PC)); |
| 13695 | break; |
| 13696 | case OP_CopyArrayMemberPtr: |
| 13697 | Text.Op = PrintName("CopyArrayMemberPtr" ); |
| 13698 | Text.Args.push_back(printArg<uint32_t>(PC)); |
| 13699 | Text.Args.push_back(printArg<uint32_t>(PC)); |
| 13700 | Text.Args.push_back(printArg<uint32_t>(PC)); |
| 13701 | break; |
| 13702 | case OP_CopyArrayFloat: |
| 13703 | Text.Op = PrintName("CopyArrayFloat" ); |
| 13704 | Text.Args.push_back(printArg<uint32_t>(PC)); |
| 13705 | Text.Args.push_back(printArg<uint32_t>(PC)); |
| 13706 | Text.Args.push_back(printArg<uint32_t>(PC)); |
| 13707 | break; |
| 13708 | case OP_CopyArrayReflect: |
| 13709 | Text.Op = PrintName("CopyArrayReflect" ); |
| 13710 | Text.Args.push_back(printArg<uint32_t>(PC)); |
| 13711 | Text.Args.push_back(printArg<uint32_t>(PC)); |
| 13712 | Text.Args.push_back(printArg<uint32_t>(PC)); |
| 13713 | break; |
| 13714 | #endif |
| 13715 | #if defined(GET_EVAL_PROTO) || defined(GET_LINK_PROTO) |
| 13716 | bool emitCopyArraySint8( uint32_t , uint32_t , uint32_t , SourceInfo); |
| 13717 | bool emitCopyArrayUint8( uint32_t , uint32_t , uint32_t , SourceInfo); |
| 13718 | bool emitCopyArraySint16( uint32_t , uint32_t , uint32_t , SourceInfo); |
| 13719 | bool emitCopyArrayUint16( uint32_t , uint32_t , uint32_t , SourceInfo); |
| 13720 | bool emitCopyArraySint32( uint32_t , uint32_t , uint32_t , SourceInfo); |
| 13721 | bool emitCopyArrayUint32( uint32_t , uint32_t , uint32_t , SourceInfo); |
| 13722 | bool emitCopyArraySint64( uint32_t , uint32_t , uint32_t , SourceInfo); |
| 13723 | bool emitCopyArrayUint64( uint32_t , uint32_t , uint32_t , SourceInfo); |
| 13724 | bool emitCopyArrayIntAP( uint32_t , uint32_t , uint32_t , SourceInfo); |
| 13725 | bool emitCopyArrayIntAPS( uint32_t , uint32_t , uint32_t , SourceInfo); |
| 13726 | bool emitCopyArrayBool( uint32_t , uint32_t , uint32_t , SourceInfo); |
| 13727 | bool emitCopyArrayFixedPoint( uint32_t , uint32_t , uint32_t , SourceInfo); |
| 13728 | bool emitCopyArrayPtr( uint32_t , uint32_t , uint32_t , SourceInfo); |
| 13729 | bool emitCopyArrayMemberPtr( uint32_t , uint32_t , uint32_t , SourceInfo); |
| 13730 | bool emitCopyArrayFloat( uint32_t , uint32_t , uint32_t , SourceInfo); |
| 13731 | bool emitCopyArrayReflect( uint32_t , uint32_t , uint32_t , SourceInfo); |
| 13732 | #endif |
| 13733 | #if defined(GET_EVAL_PROTO) || defined(GET_LINK_PROTO) |
| 13734 | [[nodiscard]] bool emitCopyArray(PrimType, uint32_t, uint32_t, uint32_t, SourceInfo I); |
| 13735 | #endif |
| 13736 | #if defined(GET_EVAL_IMPL) || defined(GET_LINK_IMPL) |
| 13737 | bool |
| 13738 | #if defined(GET_EVAL_IMPL) |
| 13739 | EvalEmitter |
| 13740 | #else |
| 13741 | ByteCodeEmitter |
| 13742 | #endif |
| 13743 | ::emitCopyArray(PrimType T0, uint32_t A0, uint32_t A1, uint32_t A2, SourceInfo I) { |
| 13744 | switch (T0) { |
| 13745 | case PT_Sint8: |
| 13746 | return emitCopyArraySint8(A0, A1, A2, I); |
| 13747 | case PT_Uint8: |
| 13748 | return emitCopyArrayUint8(A0, A1, A2, I); |
| 13749 | case PT_Sint16: |
| 13750 | return emitCopyArraySint16(A0, A1, A2, I); |
| 13751 | case PT_Uint16: |
| 13752 | return emitCopyArrayUint16(A0, A1, A2, I); |
| 13753 | case PT_Sint32: |
| 13754 | return emitCopyArraySint32(A0, A1, A2, I); |
| 13755 | case PT_Uint32: |
| 13756 | return emitCopyArrayUint32(A0, A1, A2, I); |
| 13757 | case PT_Sint64: |
| 13758 | return emitCopyArraySint64(A0, A1, A2, I); |
| 13759 | case PT_Uint64: |
| 13760 | return emitCopyArrayUint64(A0, A1, A2, I); |
| 13761 | case PT_IntAP: |
| 13762 | return emitCopyArrayIntAP(A0, A1, A2, I); |
| 13763 | case PT_IntAPS: |
| 13764 | return emitCopyArrayIntAPS(A0, A1, A2, I); |
| 13765 | case PT_Bool: |
| 13766 | return emitCopyArrayBool(A0, A1, A2, I); |
| 13767 | case PT_FixedPoint: |
| 13768 | return emitCopyArrayFixedPoint(A0, A1, A2, I); |
| 13769 | case PT_Ptr: |
| 13770 | return emitCopyArrayPtr(A0, A1, A2, I); |
| 13771 | case PT_MemberPtr: |
| 13772 | return emitCopyArrayMemberPtr(A0, A1, A2, I); |
| 13773 | case PT_Float: |
| 13774 | return emitCopyArrayFloat(A0, A1, A2, I); |
| 13775 | case PT_Reflect: |
| 13776 | return emitCopyArrayReflect(A0, A1, A2, I); |
| 13777 | } |
| 13778 | llvm_unreachable("invalid enum value" ); |
| 13779 | } |
| 13780 | #endif |
| 13781 | #ifdef GET_LINK_IMPL |
| 13782 | bool ByteCodeEmitter::emitCopyArraySint8( uint32_t A0, uint32_t A1, uint32_t A2, SourceInfo L) { |
| 13783 | return emitOp<uint32_t, uint32_t, uint32_t>(OP_CopyArraySint8, A0, A1, A2, L); |
| 13784 | } |
| 13785 | bool ByteCodeEmitter::emitCopyArrayUint8( uint32_t A0, uint32_t A1, uint32_t A2, SourceInfo L) { |
| 13786 | return emitOp<uint32_t, uint32_t, uint32_t>(OP_CopyArrayUint8, A0, A1, A2, L); |
| 13787 | } |
| 13788 | bool ByteCodeEmitter::emitCopyArraySint16( uint32_t A0, uint32_t A1, uint32_t A2, SourceInfo L) { |
| 13789 | return emitOp<uint32_t, uint32_t, uint32_t>(OP_CopyArraySint16, A0, A1, A2, L); |
| 13790 | } |
| 13791 | bool ByteCodeEmitter::emitCopyArrayUint16( uint32_t A0, uint32_t A1, uint32_t A2, SourceInfo L) { |
| 13792 | return emitOp<uint32_t, uint32_t, uint32_t>(OP_CopyArrayUint16, A0, A1, A2, L); |
| 13793 | } |
| 13794 | bool ByteCodeEmitter::emitCopyArraySint32( uint32_t A0, uint32_t A1, uint32_t A2, SourceInfo L) { |
| 13795 | return emitOp<uint32_t, uint32_t, uint32_t>(OP_CopyArraySint32, A0, A1, A2, L); |
| 13796 | } |
| 13797 | bool ByteCodeEmitter::emitCopyArrayUint32( uint32_t A0, uint32_t A1, uint32_t A2, SourceInfo L) { |
| 13798 | return emitOp<uint32_t, uint32_t, uint32_t>(OP_CopyArrayUint32, A0, A1, A2, L); |
| 13799 | } |
| 13800 | bool ByteCodeEmitter::emitCopyArraySint64( uint32_t A0, uint32_t A1, uint32_t A2, SourceInfo L) { |
| 13801 | return emitOp<uint32_t, uint32_t, uint32_t>(OP_CopyArraySint64, A0, A1, A2, L); |
| 13802 | } |
| 13803 | bool ByteCodeEmitter::emitCopyArrayUint64( uint32_t A0, uint32_t A1, uint32_t A2, SourceInfo L) { |
| 13804 | return emitOp<uint32_t, uint32_t, uint32_t>(OP_CopyArrayUint64, A0, A1, A2, L); |
| 13805 | } |
| 13806 | bool ByteCodeEmitter::emitCopyArrayIntAP( uint32_t A0, uint32_t A1, uint32_t A2, SourceInfo L) { |
| 13807 | return emitOp<uint32_t, uint32_t, uint32_t>(OP_CopyArrayIntAP, A0, A1, A2, L); |
| 13808 | } |
| 13809 | bool ByteCodeEmitter::emitCopyArrayIntAPS( uint32_t A0, uint32_t A1, uint32_t A2, SourceInfo L) { |
| 13810 | return emitOp<uint32_t, uint32_t, uint32_t>(OP_CopyArrayIntAPS, A0, A1, A2, L); |
| 13811 | } |
| 13812 | bool ByteCodeEmitter::emitCopyArrayBool( uint32_t A0, uint32_t A1, uint32_t A2, SourceInfo L) { |
| 13813 | return emitOp<uint32_t, uint32_t, uint32_t>(OP_CopyArrayBool, A0, A1, A2, L); |
| 13814 | } |
| 13815 | bool ByteCodeEmitter::emitCopyArrayFixedPoint( uint32_t A0, uint32_t A1, uint32_t A2, SourceInfo L) { |
| 13816 | return emitOp<uint32_t, uint32_t, uint32_t>(OP_CopyArrayFixedPoint, A0, A1, A2, L); |
| 13817 | } |
| 13818 | bool ByteCodeEmitter::emitCopyArrayPtr( uint32_t A0, uint32_t A1, uint32_t A2, SourceInfo L) { |
| 13819 | return emitOp<uint32_t, uint32_t, uint32_t>(OP_CopyArrayPtr, A0, A1, A2, L); |
| 13820 | } |
| 13821 | bool ByteCodeEmitter::emitCopyArrayMemberPtr( uint32_t A0, uint32_t A1, uint32_t A2, SourceInfo L) { |
| 13822 | return emitOp<uint32_t, uint32_t, uint32_t>(OP_CopyArrayMemberPtr, A0, A1, A2, L); |
| 13823 | } |
| 13824 | bool ByteCodeEmitter::emitCopyArrayFloat( uint32_t A0, uint32_t A1, uint32_t A2, SourceInfo L) { |
| 13825 | return emitOp<uint32_t, uint32_t, uint32_t>(OP_CopyArrayFloat, A0, A1, A2, L); |
| 13826 | } |
| 13827 | bool ByteCodeEmitter::emitCopyArrayReflect( uint32_t A0, uint32_t A1, uint32_t A2, SourceInfo L) { |
| 13828 | return emitOp<uint32_t, uint32_t, uint32_t>(OP_CopyArrayReflect, A0, A1, A2, L); |
| 13829 | } |
| 13830 | #endif |
| 13831 | #ifdef GET_EVAL_IMPL |
| 13832 | bool EvalEmitter::emitCopyArraySint8( uint32_t A0, uint32_t A1, uint32_t A2, SourceInfo L) { |
| 13833 | if (!isActive()) return true; |
| 13834 | CurrentSource = L; |
| 13835 | return CopyArray<PT_Sint8>(S, CodePtr(), A0, A1, A2); |
| 13836 | } |
| 13837 | bool EvalEmitter::emitCopyArrayUint8( uint32_t A0, uint32_t A1, uint32_t A2, SourceInfo L) { |
| 13838 | if (!isActive()) return true; |
| 13839 | CurrentSource = L; |
| 13840 | return CopyArray<PT_Uint8>(S, CodePtr(), A0, A1, A2); |
| 13841 | } |
| 13842 | bool EvalEmitter::emitCopyArraySint16( uint32_t A0, uint32_t A1, uint32_t A2, SourceInfo L) { |
| 13843 | if (!isActive()) return true; |
| 13844 | CurrentSource = L; |
| 13845 | return CopyArray<PT_Sint16>(S, CodePtr(), A0, A1, A2); |
| 13846 | } |
| 13847 | bool EvalEmitter::emitCopyArrayUint16( uint32_t A0, uint32_t A1, uint32_t A2, SourceInfo L) { |
| 13848 | if (!isActive()) return true; |
| 13849 | CurrentSource = L; |
| 13850 | return CopyArray<PT_Uint16>(S, CodePtr(), A0, A1, A2); |
| 13851 | } |
| 13852 | bool EvalEmitter::emitCopyArraySint32( uint32_t A0, uint32_t A1, uint32_t A2, SourceInfo L) { |
| 13853 | if (!isActive()) return true; |
| 13854 | CurrentSource = L; |
| 13855 | return CopyArray<PT_Sint32>(S, CodePtr(), A0, A1, A2); |
| 13856 | } |
| 13857 | bool EvalEmitter::emitCopyArrayUint32( uint32_t A0, uint32_t A1, uint32_t A2, SourceInfo L) { |
| 13858 | if (!isActive()) return true; |
| 13859 | CurrentSource = L; |
| 13860 | return CopyArray<PT_Uint32>(S, CodePtr(), A0, A1, A2); |
| 13861 | } |
| 13862 | bool EvalEmitter::emitCopyArraySint64( uint32_t A0, uint32_t A1, uint32_t A2, SourceInfo L) { |
| 13863 | if (!isActive()) return true; |
| 13864 | CurrentSource = L; |
| 13865 | return CopyArray<PT_Sint64>(S, CodePtr(), A0, A1, A2); |
| 13866 | } |
| 13867 | bool EvalEmitter::emitCopyArrayUint64( uint32_t A0, uint32_t A1, uint32_t A2, SourceInfo L) { |
| 13868 | if (!isActive()) return true; |
| 13869 | CurrentSource = L; |
| 13870 | return CopyArray<PT_Uint64>(S, CodePtr(), A0, A1, A2); |
| 13871 | } |
| 13872 | bool EvalEmitter::emitCopyArrayIntAP( uint32_t A0, uint32_t A1, uint32_t A2, SourceInfo L) { |
| 13873 | if (!isActive()) return true; |
| 13874 | CurrentSource = L; |
| 13875 | return CopyArray<PT_IntAP>(S, CodePtr(), A0, A1, A2); |
| 13876 | } |
| 13877 | bool EvalEmitter::emitCopyArrayIntAPS( uint32_t A0, uint32_t A1, uint32_t A2, SourceInfo L) { |
| 13878 | if (!isActive()) return true; |
| 13879 | CurrentSource = L; |
| 13880 | return CopyArray<PT_IntAPS>(S, CodePtr(), A0, A1, A2); |
| 13881 | } |
| 13882 | bool EvalEmitter::emitCopyArrayBool( uint32_t A0, uint32_t A1, uint32_t A2, SourceInfo L) { |
| 13883 | if (!isActive()) return true; |
| 13884 | CurrentSource = L; |
| 13885 | return CopyArray<PT_Bool>(S, CodePtr(), A0, A1, A2); |
| 13886 | } |
| 13887 | bool EvalEmitter::emitCopyArrayFixedPoint( uint32_t A0, uint32_t A1, uint32_t A2, SourceInfo L) { |
| 13888 | if (!isActive()) return true; |
| 13889 | CurrentSource = L; |
| 13890 | return CopyArray<PT_FixedPoint>(S, CodePtr(), A0, A1, A2); |
| 13891 | } |
| 13892 | bool EvalEmitter::emitCopyArrayPtr( uint32_t A0, uint32_t A1, uint32_t A2, SourceInfo L) { |
| 13893 | if (!isActive()) return true; |
| 13894 | CurrentSource = L; |
| 13895 | return CopyArray<PT_Ptr>(S, CodePtr(), A0, A1, A2); |
| 13896 | } |
| 13897 | bool EvalEmitter::emitCopyArrayMemberPtr( uint32_t A0, uint32_t A1, uint32_t A2, SourceInfo L) { |
| 13898 | if (!isActive()) return true; |
| 13899 | CurrentSource = L; |
| 13900 | return CopyArray<PT_MemberPtr>(S, CodePtr(), A0, A1, A2); |
| 13901 | } |
| 13902 | bool EvalEmitter::emitCopyArrayFloat( uint32_t A0, uint32_t A1, uint32_t A2, SourceInfo L) { |
| 13903 | if (!isActive()) return true; |
| 13904 | CurrentSource = L; |
| 13905 | return CopyArray<PT_Float>(S, CodePtr(), A0, A1, A2); |
| 13906 | } |
| 13907 | bool EvalEmitter::emitCopyArrayReflect( uint32_t A0, uint32_t A1, uint32_t A2, SourceInfo L) { |
| 13908 | if (!isActive()) return true; |
| 13909 | CurrentSource = L; |
| 13910 | return CopyArray<PT_Reflect>(S, CodePtr(), A0, A1, A2); |
| 13911 | } |
| 13912 | #endif |
| 13913 | #ifdef GET_OPCODE_NAMES |
| 13914 | OP_CopyMemberPtrPath, |
| 13915 | #endif |
| 13916 | #ifdef GET_INTERPFN_LIST |
| 13917 | &Interp_CopyMemberPtrPath, |
| 13918 | #endif |
| 13919 | #ifdef GET_INTERPFN_DISPATCHERS |
| 13920 | PRESERVE_NONE |
| 13921 | static bool Interp_CopyMemberPtrPath(InterpState &S) { |
| 13922 | { |
| 13923 | const auto V0 = ReadArg<const RecordDecl *>(S, S.PC); |
| 13924 | const auto V1 = ReadArg<bool>(S, S.PC); |
| 13925 | CopyMemberPtrPath(S, V0, V1); |
| 13926 | } |
| 13927 | #if USE_TAILCALLS |
| 13928 | MUSTTAIL return InterpNext(S); |
| 13929 | #else |
| 13930 | return true; |
| 13931 | #endif |
| 13932 | } |
| 13933 | #endif |
| 13934 | #ifdef GET_DISASM |
| 13935 | case OP_CopyMemberPtrPath: |
| 13936 | Text.Op = PrintName("CopyMemberPtrPath" ); |
| 13937 | Text.Args.push_back(printArg<const RecordDecl *>(PC)); |
| 13938 | Text.Args.push_back(printArg<bool>(PC)); |
| 13939 | break; |
| 13940 | #endif |
| 13941 | #if defined(GET_EVAL_PROTO) || defined(GET_LINK_PROTO) |
| 13942 | bool emitCopyMemberPtrPath( const RecordDecl * , bool , SourceInfo); |
| 13943 | #endif |
| 13944 | #ifdef GET_LINK_IMPL |
| 13945 | bool ByteCodeEmitter::emitCopyMemberPtrPath( const RecordDecl * A0, bool A1, SourceInfo L) { |
| 13946 | return emitOp<const RecordDecl *, bool>(OP_CopyMemberPtrPath, A0, A1, L); |
| 13947 | } |
| 13948 | #endif |
| 13949 | #ifdef GET_EVAL_IMPL |
| 13950 | bool EvalEmitter::emitCopyMemberPtrPath( const RecordDecl * A0, bool A1, SourceInfo L) { |
| 13951 | if (!isActive()) return true; |
| 13952 | CurrentSource = L; |
| 13953 | return CopyMemberPtrPath(S, A0, A1); |
| 13954 | } |
| 13955 | #endif |
| 13956 | #ifdef GET_OPCODE_NAMES |
| 13957 | OP_CtorCheck, |
| 13958 | #endif |
| 13959 | #ifdef GET_INTERPFN_LIST |
| 13960 | &Interp_CtorCheck, |
| 13961 | #endif |
| 13962 | #ifdef GET_INTERPFN_DISPATCHERS |
| 13963 | PRESERVE_NONE |
| 13964 | static bool Interp_CtorCheck(InterpState &S) { |
| 13965 | if (!CtorCheck(S)) return false; |
| 13966 | #if USE_TAILCALLS |
| 13967 | MUSTTAIL return InterpNext(S); |
| 13968 | #else |
| 13969 | return true; |
| 13970 | #endif |
| 13971 | } |
| 13972 | #endif |
| 13973 | #ifdef GET_DISASM |
| 13974 | case OP_CtorCheck: |
| 13975 | Text.Op = PrintName("CtorCheck" ); |
| 13976 | break; |
| 13977 | #endif |
| 13978 | #if defined(GET_EVAL_PROTO) || defined(GET_LINK_PROTO) |
| 13979 | bool emitCtorCheck(SourceInfo); |
| 13980 | #endif |
| 13981 | #ifdef GET_LINK_IMPL |
| 13982 | bool ByteCodeEmitter::emitCtorCheck(SourceInfo L) { |
| 13983 | return emitOp<>(OP_CtorCheck, L); |
| 13984 | } |
| 13985 | #endif |
| 13986 | #ifdef GET_EVAL_IMPL |
| 13987 | bool EvalEmitter::emitCtorCheck(SourceInfo L) { |
| 13988 | if (!isActive()) return true; |
| 13989 | CurrentSource = L; |
| 13990 | return CtorCheck(S); |
| 13991 | } |
| 13992 | #endif |
| 13993 | #ifdef GET_OPCODE_NAMES |
| 13994 | OP_DecSint8, |
| 13995 | OP_DecUint8, |
| 13996 | OP_DecSint16, |
| 13997 | OP_DecUint16, |
| 13998 | OP_DecSint32, |
| 13999 | OP_DecUint32, |
| 14000 | OP_DecSint64, |
| 14001 | OP_DecUint64, |
| 14002 | OP_DecIntAP, |
| 14003 | OP_DecIntAPS, |
| 14004 | OP_DecBool, |
| 14005 | OP_DecFixedPoint, |
| 14006 | #endif |
| 14007 | #ifdef GET_INTERPFN_LIST |
| 14008 | &Interp_DecSint8, |
| 14009 | &Interp_DecUint8, |
| 14010 | &Interp_DecSint16, |
| 14011 | &Interp_DecUint16, |
| 14012 | &Interp_DecSint32, |
| 14013 | &Interp_DecUint32, |
| 14014 | &Interp_DecSint64, |
| 14015 | &Interp_DecUint64, |
| 14016 | &Interp_DecIntAP, |
| 14017 | &Interp_DecIntAPS, |
| 14018 | &Interp_DecBool, |
| 14019 | &Interp_DecFixedPoint, |
| 14020 | #endif |
| 14021 | #ifdef GET_INTERPFN_DISPATCHERS |
| 14022 | PRESERVE_NONE |
| 14023 | static bool Interp_DecSint8(InterpState &S) { |
| 14024 | { |
| 14025 | CodePtr OpPC = S.PC; |
| 14026 | const auto V0 = ReadArg<bool>(S, S.PC); |
| 14027 | if (!Dec<PT_Sint8>(S, OpPC, V0)) return false; |
| 14028 | } |
| 14029 | #if USE_TAILCALLS |
| 14030 | MUSTTAIL return InterpNext(S); |
| 14031 | #else |
| 14032 | return true; |
| 14033 | #endif |
| 14034 | } |
| 14035 | PRESERVE_NONE |
| 14036 | static bool Interp_DecUint8(InterpState &S) { |
| 14037 | { |
| 14038 | CodePtr OpPC = S.PC; |
| 14039 | const auto V0 = ReadArg<bool>(S, S.PC); |
| 14040 | if (!Dec<PT_Uint8>(S, OpPC, V0)) return false; |
| 14041 | } |
| 14042 | #if USE_TAILCALLS |
| 14043 | MUSTTAIL return InterpNext(S); |
| 14044 | #else |
| 14045 | return true; |
| 14046 | #endif |
| 14047 | } |
| 14048 | PRESERVE_NONE |
| 14049 | static bool Interp_DecSint16(InterpState &S) { |
| 14050 | { |
| 14051 | CodePtr OpPC = S.PC; |
| 14052 | const auto V0 = ReadArg<bool>(S, S.PC); |
| 14053 | if (!Dec<PT_Sint16>(S, OpPC, V0)) return false; |
| 14054 | } |
| 14055 | #if USE_TAILCALLS |
| 14056 | MUSTTAIL return InterpNext(S); |
| 14057 | #else |
| 14058 | return true; |
| 14059 | #endif |
| 14060 | } |
| 14061 | PRESERVE_NONE |
| 14062 | static bool Interp_DecUint16(InterpState &S) { |
| 14063 | { |
| 14064 | CodePtr OpPC = S.PC; |
| 14065 | const auto V0 = ReadArg<bool>(S, S.PC); |
| 14066 | if (!Dec<PT_Uint16>(S, OpPC, V0)) return false; |
| 14067 | } |
| 14068 | #if USE_TAILCALLS |
| 14069 | MUSTTAIL return InterpNext(S); |
| 14070 | #else |
| 14071 | return true; |
| 14072 | #endif |
| 14073 | } |
| 14074 | PRESERVE_NONE |
| 14075 | static bool Interp_DecSint32(InterpState &S) { |
| 14076 | { |
| 14077 | CodePtr OpPC = S.PC; |
| 14078 | const auto V0 = ReadArg<bool>(S, S.PC); |
| 14079 | if (!Dec<PT_Sint32>(S, OpPC, V0)) return false; |
| 14080 | } |
| 14081 | #if USE_TAILCALLS |
| 14082 | MUSTTAIL return InterpNext(S); |
| 14083 | #else |
| 14084 | return true; |
| 14085 | #endif |
| 14086 | } |
| 14087 | PRESERVE_NONE |
| 14088 | static bool Interp_DecUint32(InterpState &S) { |
| 14089 | { |
| 14090 | CodePtr OpPC = S.PC; |
| 14091 | const auto V0 = ReadArg<bool>(S, S.PC); |
| 14092 | if (!Dec<PT_Uint32>(S, OpPC, V0)) return false; |
| 14093 | } |
| 14094 | #if USE_TAILCALLS |
| 14095 | MUSTTAIL return InterpNext(S); |
| 14096 | #else |
| 14097 | return true; |
| 14098 | #endif |
| 14099 | } |
| 14100 | PRESERVE_NONE |
| 14101 | static bool Interp_DecSint64(InterpState &S) { |
| 14102 | { |
| 14103 | CodePtr OpPC = S.PC; |
| 14104 | const auto V0 = ReadArg<bool>(S, S.PC); |
| 14105 | if (!Dec<PT_Sint64>(S, OpPC, V0)) return false; |
| 14106 | } |
| 14107 | #if USE_TAILCALLS |
| 14108 | MUSTTAIL return InterpNext(S); |
| 14109 | #else |
| 14110 | return true; |
| 14111 | #endif |
| 14112 | } |
| 14113 | PRESERVE_NONE |
| 14114 | static bool Interp_DecUint64(InterpState &S) { |
| 14115 | { |
| 14116 | CodePtr OpPC = S.PC; |
| 14117 | const auto V0 = ReadArg<bool>(S, S.PC); |
| 14118 | if (!Dec<PT_Uint64>(S, OpPC, V0)) return false; |
| 14119 | } |
| 14120 | #if USE_TAILCALLS |
| 14121 | MUSTTAIL return InterpNext(S); |
| 14122 | #else |
| 14123 | return true; |
| 14124 | #endif |
| 14125 | } |
| 14126 | PRESERVE_NONE |
| 14127 | static bool Interp_DecIntAP(InterpState &S) { |
| 14128 | { |
| 14129 | CodePtr OpPC = S.PC; |
| 14130 | const auto V0 = ReadArg<bool>(S, S.PC); |
| 14131 | if (!Dec<PT_IntAP>(S, OpPC, V0)) return false; |
| 14132 | } |
| 14133 | #if USE_TAILCALLS |
| 14134 | MUSTTAIL return InterpNext(S); |
| 14135 | #else |
| 14136 | return true; |
| 14137 | #endif |
| 14138 | } |
| 14139 | PRESERVE_NONE |
| 14140 | static bool Interp_DecIntAPS(InterpState &S) { |
| 14141 | { |
| 14142 | CodePtr OpPC = S.PC; |
| 14143 | const auto V0 = ReadArg<bool>(S, S.PC); |
| 14144 | if (!Dec<PT_IntAPS>(S, OpPC, V0)) return false; |
| 14145 | } |
| 14146 | #if USE_TAILCALLS |
| 14147 | MUSTTAIL return InterpNext(S); |
| 14148 | #else |
| 14149 | return true; |
| 14150 | #endif |
| 14151 | } |
| 14152 | PRESERVE_NONE |
| 14153 | static bool Interp_DecBool(InterpState &S) { |
| 14154 | { |
| 14155 | CodePtr OpPC = S.PC; |
| 14156 | const auto V0 = ReadArg<bool>(S, S.PC); |
| 14157 | if (!Dec<PT_Bool>(S, OpPC, V0)) return false; |
| 14158 | } |
| 14159 | #if USE_TAILCALLS |
| 14160 | MUSTTAIL return InterpNext(S); |
| 14161 | #else |
| 14162 | return true; |
| 14163 | #endif |
| 14164 | } |
| 14165 | PRESERVE_NONE |
| 14166 | static bool Interp_DecFixedPoint(InterpState &S) { |
| 14167 | { |
| 14168 | CodePtr OpPC = S.PC; |
| 14169 | const auto V0 = ReadArg<bool>(S, S.PC); |
| 14170 | if (!Dec<PT_FixedPoint>(S, OpPC, V0)) return false; |
| 14171 | } |
| 14172 | #if USE_TAILCALLS |
| 14173 | MUSTTAIL return InterpNext(S); |
| 14174 | #else |
| 14175 | return true; |
| 14176 | #endif |
| 14177 | } |
| 14178 | #endif |
| 14179 | #ifdef GET_DISASM |
| 14180 | case OP_DecSint8: |
| 14181 | Text.Op = PrintName("DecSint8" ); |
| 14182 | Text.Args.push_back(printArg<bool>(PC)); |
| 14183 | break; |
| 14184 | case OP_DecUint8: |
| 14185 | Text.Op = PrintName("DecUint8" ); |
| 14186 | Text.Args.push_back(printArg<bool>(PC)); |
| 14187 | break; |
| 14188 | case OP_DecSint16: |
| 14189 | Text.Op = PrintName("DecSint16" ); |
| 14190 | Text.Args.push_back(printArg<bool>(PC)); |
| 14191 | break; |
| 14192 | case OP_DecUint16: |
| 14193 | Text.Op = PrintName("DecUint16" ); |
| 14194 | Text.Args.push_back(printArg<bool>(PC)); |
| 14195 | break; |
| 14196 | case OP_DecSint32: |
| 14197 | Text.Op = PrintName("DecSint32" ); |
| 14198 | Text.Args.push_back(printArg<bool>(PC)); |
| 14199 | break; |
| 14200 | case OP_DecUint32: |
| 14201 | Text.Op = PrintName("DecUint32" ); |
| 14202 | Text.Args.push_back(printArg<bool>(PC)); |
| 14203 | break; |
| 14204 | case OP_DecSint64: |
| 14205 | Text.Op = PrintName("DecSint64" ); |
| 14206 | Text.Args.push_back(printArg<bool>(PC)); |
| 14207 | break; |
| 14208 | case OP_DecUint64: |
| 14209 | Text.Op = PrintName("DecUint64" ); |
| 14210 | Text.Args.push_back(printArg<bool>(PC)); |
| 14211 | break; |
| 14212 | case OP_DecIntAP: |
| 14213 | Text.Op = PrintName("DecIntAP" ); |
| 14214 | Text.Args.push_back(printArg<bool>(PC)); |
| 14215 | break; |
| 14216 | case OP_DecIntAPS: |
| 14217 | Text.Op = PrintName("DecIntAPS" ); |
| 14218 | Text.Args.push_back(printArg<bool>(PC)); |
| 14219 | break; |
| 14220 | case OP_DecBool: |
| 14221 | Text.Op = PrintName("DecBool" ); |
| 14222 | Text.Args.push_back(printArg<bool>(PC)); |
| 14223 | break; |
| 14224 | case OP_DecFixedPoint: |
| 14225 | Text.Op = PrintName("DecFixedPoint" ); |
| 14226 | Text.Args.push_back(printArg<bool>(PC)); |
| 14227 | break; |
| 14228 | #endif |
| 14229 | #if defined(GET_EVAL_PROTO) || defined(GET_LINK_PROTO) |
| 14230 | bool emitDecSint8( bool , SourceInfo); |
| 14231 | bool emitDecUint8( bool , SourceInfo); |
| 14232 | bool emitDecSint16( bool , SourceInfo); |
| 14233 | bool emitDecUint16( bool , SourceInfo); |
| 14234 | bool emitDecSint32( bool , SourceInfo); |
| 14235 | bool emitDecUint32( bool , SourceInfo); |
| 14236 | bool emitDecSint64( bool , SourceInfo); |
| 14237 | bool emitDecUint64( bool , SourceInfo); |
| 14238 | bool emitDecIntAP( bool , SourceInfo); |
| 14239 | bool emitDecIntAPS( bool , SourceInfo); |
| 14240 | bool emitDecBool( bool , SourceInfo); |
| 14241 | bool emitDecFixedPoint( bool , SourceInfo); |
| 14242 | #endif |
| 14243 | #if defined(GET_EVAL_PROTO) || defined(GET_LINK_PROTO) |
| 14244 | [[nodiscard]] bool emitDec(PrimType, bool, SourceInfo I); |
| 14245 | #endif |
| 14246 | #if defined(GET_EVAL_IMPL) || defined(GET_LINK_IMPL) |
| 14247 | bool |
| 14248 | #if defined(GET_EVAL_IMPL) |
| 14249 | EvalEmitter |
| 14250 | #else |
| 14251 | ByteCodeEmitter |
| 14252 | #endif |
| 14253 | ::emitDec(PrimType T0, bool A0, SourceInfo I) { |
| 14254 | switch (T0) { |
| 14255 | case PT_Sint8: |
| 14256 | return emitDecSint8(A0, I); |
| 14257 | case PT_Uint8: |
| 14258 | return emitDecUint8(A0, I); |
| 14259 | case PT_Sint16: |
| 14260 | return emitDecSint16(A0, I); |
| 14261 | case PT_Uint16: |
| 14262 | return emitDecUint16(A0, I); |
| 14263 | case PT_Sint32: |
| 14264 | return emitDecSint32(A0, I); |
| 14265 | case PT_Uint32: |
| 14266 | return emitDecUint32(A0, I); |
| 14267 | case PT_Sint64: |
| 14268 | return emitDecSint64(A0, I); |
| 14269 | case PT_Uint64: |
| 14270 | return emitDecUint64(A0, I); |
| 14271 | case PT_IntAP: |
| 14272 | return emitDecIntAP(A0, I); |
| 14273 | case PT_IntAPS: |
| 14274 | return emitDecIntAPS(A0, I); |
| 14275 | case PT_Bool: |
| 14276 | return emitDecBool(A0, I); |
| 14277 | case PT_FixedPoint: |
| 14278 | return emitDecFixedPoint(A0, I); |
| 14279 | default: llvm_unreachable("invalid type: emitDec" ); |
| 14280 | } |
| 14281 | llvm_unreachable("invalid enum value" ); |
| 14282 | } |
| 14283 | #endif |
| 14284 | #ifdef GET_LINK_IMPL |
| 14285 | bool ByteCodeEmitter::emitDecSint8( bool A0, SourceInfo L) { |
| 14286 | return emitOp<bool>(OP_DecSint8, A0, L); |
| 14287 | } |
| 14288 | bool ByteCodeEmitter::emitDecUint8( bool A0, SourceInfo L) { |
| 14289 | return emitOp<bool>(OP_DecUint8, A0, L); |
| 14290 | } |
| 14291 | bool ByteCodeEmitter::emitDecSint16( bool A0, SourceInfo L) { |
| 14292 | return emitOp<bool>(OP_DecSint16, A0, L); |
| 14293 | } |
| 14294 | bool ByteCodeEmitter::emitDecUint16( bool A0, SourceInfo L) { |
| 14295 | return emitOp<bool>(OP_DecUint16, A0, L); |
| 14296 | } |
| 14297 | bool ByteCodeEmitter::emitDecSint32( bool A0, SourceInfo L) { |
| 14298 | return emitOp<bool>(OP_DecSint32, A0, L); |
| 14299 | } |
| 14300 | bool ByteCodeEmitter::emitDecUint32( bool A0, SourceInfo L) { |
| 14301 | return emitOp<bool>(OP_DecUint32, A0, L); |
| 14302 | } |
| 14303 | bool ByteCodeEmitter::emitDecSint64( bool A0, SourceInfo L) { |
| 14304 | return emitOp<bool>(OP_DecSint64, A0, L); |
| 14305 | } |
| 14306 | bool ByteCodeEmitter::emitDecUint64( bool A0, SourceInfo L) { |
| 14307 | return emitOp<bool>(OP_DecUint64, A0, L); |
| 14308 | } |
| 14309 | bool ByteCodeEmitter::emitDecIntAP( bool A0, SourceInfo L) { |
| 14310 | return emitOp<bool>(OP_DecIntAP, A0, L); |
| 14311 | } |
| 14312 | bool ByteCodeEmitter::emitDecIntAPS( bool A0, SourceInfo L) { |
| 14313 | return emitOp<bool>(OP_DecIntAPS, A0, L); |
| 14314 | } |
| 14315 | bool ByteCodeEmitter::emitDecBool( bool A0, SourceInfo L) { |
| 14316 | return emitOp<bool>(OP_DecBool, A0, L); |
| 14317 | } |
| 14318 | bool ByteCodeEmitter::emitDecFixedPoint( bool A0, SourceInfo L) { |
| 14319 | return emitOp<bool>(OP_DecFixedPoint, A0, L); |
| 14320 | } |
| 14321 | #endif |
| 14322 | #ifdef GET_EVAL_IMPL |
| 14323 | bool EvalEmitter::emitDecSint8( bool A0, SourceInfo L) { |
| 14324 | if (!isActive()) return true; |
| 14325 | CurrentSource = L; |
| 14326 | return Dec<PT_Sint8>(S, CodePtr(), A0); |
| 14327 | } |
| 14328 | bool EvalEmitter::emitDecUint8( bool A0, SourceInfo L) { |
| 14329 | if (!isActive()) return true; |
| 14330 | CurrentSource = L; |
| 14331 | return Dec<PT_Uint8>(S, CodePtr(), A0); |
| 14332 | } |
| 14333 | bool EvalEmitter::emitDecSint16( bool A0, SourceInfo L) { |
| 14334 | if (!isActive()) return true; |
| 14335 | CurrentSource = L; |
| 14336 | return Dec<PT_Sint16>(S, CodePtr(), A0); |
| 14337 | } |
| 14338 | bool EvalEmitter::emitDecUint16( bool A0, SourceInfo L) { |
| 14339 | if (!isActive()) return true; |
| 14340 | CurrentSource = L; |
| 14341 | return Dec<PT_Uint16>(S, CodePtr(), A0); |
| 14342 | } |
| 14343 | bool EvalEmitter::emitDecSint32( bool A0, SourceInfo L) { |
| 14344 | if (!isActive()) return true; |
| 14345 | CurrentSource = L; |
| 14346 | return Dec<PT_Sint32>(S, CodePtr(), A0); |
| 14347 | } |
| 14348 | bool EvalEmitter::emitDecUint32( bool A0, SourceInfo L) { |
| 14349 | if (!isActive()) return true; |
| 14350 | CurrentSource = L; |
| 14351 | return Dec<PT_Uint32>(S, CodePtr(), A0); |
| 14352 | } |
| 14353 | bool EvalEmitter::emitDecSint64( bool A0, SourceInfo L) { |
| 14354 | if (!isActive()) return true; |
| 14355 | CurrentSource = L; |
| 14356 | return Dec<PT_Sint64>(S, CodePtr(), A0); |
| 14357 | } |
| 14358 | bool EvalEmitter::emitDecUint64( bool A0, SourceInfo L) { |
| 14359 | if (!isActive()) return true; |
| 14360 | CurrentSource = L; |
| 14361 | return Dec<PT_Uint64>(S, CodePtr(), A0); |
| 14362 | } |
| 14363 | bool EvalEmitter::emitDecIntAP( bool A0, SourceInfo L) { |
| 14364 | if (!isActive()) return true; |
| 14365 | CurrentSource = L; |
| 14366 | return Dec<PT_IntAP>(S, CodePtr(), A0); |
| 14367 | } |
| 14368 | bool EvalEmitter::emitDecIntAPS( bool A0, SourceInfo L) { |
| 14369 | if (!isActive()) return true; |
| 14370 | CurrentSource = L; |
| 14371 | return Dec<PT_IntAPS>(S, CodePtr(), A0); |
| 14372 | } |
| 14373 | bool EvalEmitter::emitDecBool( bool A0, SourceInfo L) { |
| 14374 | if (!isActive()) return true; |
| 14375 | CurrentSource = L; |
| 14376 | return Dec<PT_Bool>(S, CodePtr(), A0); |
| 14377 | } |
| 14378 | bool EvalEmitter::emitDecFixedPoint( bool A0, SourceInfo L) { |
| 14379 | if (!isActive()) return true; |
| 14380 | CurrentSource = L; |
| 14381 | return Dec<PT_FixedPoint>(S, CodePtr(), A0); |
| 14382 | } |
| 14383 | #endif |
| 14384 | #ifdef GET_OPCODE_NAMES |
| 14385 | OP_DecBitfieldSint8, |
| 14386 | OP_DecBitfieldUint8, |
| 14387 | OP_DecBitfieldSint16, |
| 14388 | OP_DecBitfieldUint16, |
| 14389 | OP_DecBitfieldSint32, |
| 14390 | OP_DecBitfieldUint32, |
| 14391 | OP_DecBitfieldSint64, |
| 14392 | OP_DecBitfieldUint64, |
| 14393 | OP_DecBitfieldIntAP, |
| 14394 | OP_DecBitfieldIntAPS, |
| 14395 | OP_DecBitfieldBool, |
| 14396 | OP_DecBitfieldFixedPoint, |
| 14397 | #endif |
| 14398 | #ifdef GET_INTERPFN_LIST |
| 14399 | &Interp_DecBitfieldSint8, |
| 14400 | &Interp_DecBitfieldUint8, |
| 14401 | &Interp_DecBitfieldSint16, |
| 14402 | &Interp_DecBitfieldUint16, |
| 14403 | &Interp_DecBitfieldSint32, |
| 14404 | &Interp_DecBitfieldUint32, |
| 14405 | &Interp_DecBitfieldSint64, |
| 14406 | &Interp_DecBitfieldUint64, |
| 14407 | &Interp_DecBitfieldIntAP, |
| 14408 | &Interp_DecBitfieldIntAPS, |
| 14409 | &Interp_DecBitfieldBool, |
| 14410 | &Interp_DecBitfieldFixedPoint, |
| 14411 | #endif |
| 14412 | #ifdef GET_INTERPFN_DISPATCHERS |
| 14413 | PRESERVE_NONE |
| 14414 | static bool Interp_DecBitfieldSint8(InterpState &S) { |
| 14415 | { |
| 14416 | CodePtr OpPC = S.PC; |
| 14417 | const auto V0 = ReadArg<bool>(S, S.PC); |
| 14418 | const auto V1 = ReadArg<uint32_t>(S, S.PC); |
| 14419 | if (!DecBitfield<PT_Sint8>(S, OpPC, V0, V1)) return false; |
| 14420 | } |
| 14421 | #if USE_TAILCALLS |
| 14422 | MUSTTAIL return InterpNext(S); |
| 14423 | #else |
| 14424 | return true; |
| 14425 | #endif |
| 14426 | } |
| 14427 | PRESERVE_NONE |
| 14428 | static bool Interp_DecBitfieldUint8(InterpState &S) { |
| 14429 | { |
| 14430 | CodePtr OpPC = S.PC; |
| 14431 | const auto V0 = ReadArg<bool>(S, S.PC); |
| 14432 | const auto V1 = ReadArg<uint32_t>(S, S.PC); |
| 14433 | if (!DecBitfield<PT_Uint8>(S, OpPC, V0, V1)) return false; |
| 14434 | } |
| 14435 | #if USE_TAILCALLS |
| 14436 | MUSTTAIL return InterpNext(S); |
| 14437 | #else |
| 14438 | return true; |
| 14439 | #endif |
| 14440 | } |
| 14441 | PRESERVE_NONE |
| 14442 | static bool Interp_DecBitfieldSint16(InterpState &S) { |
| 14443 | { |
| 14444 | CodePtr OpPC = S.PC; |
| 14445 | const auto V0 = ReadArg<bool>(S, S.PC); |
| 14446 | const auto V1 = ReadArg<uint32_t>(S, S.PC); |
| 14447 | if (!DecBitfield<PT_Sint16>(S, OpPC, V0, V1)) return false; |
| 14448 | } |
| 14449 | #if USE_TAILCALLS |
| 14450 | MUSTTAIL return InterpNext(S); |
| 14451 | #else |
| 14452 | return true; |
| 14453 | #endif |
| 14454 | } |
| 14455 | PRESERVE_NONE |
| 14456 | static bool Interp_DecBitfieldUint16(InterpState &S) { |
| 14457 | { |
| 14458 | CodePtr OpPC = S.PC; |
| 14459 | const auto V0 = ReadArg<bool>(S, S.PC); |
| 14460 | const auto V1 = ReadArg<uint32_t>(S, S.PC); |
| 14461 | if (!DecBitfield<PT_Uint16>(S, OpPC, V0, V1)) return false; |
| 14462 | } |
| 14463 | #if USE_TAILCALLS |
| 14464 | MUSTTAIL return InterpNext(S); |
| 14465 | #else |
| 14466 | return true; |
| 14467 | #endif |
| 14468 | } |
| 14469 | PRESERVE_NONE |
| 14470 | static bool Interp_DecBitfieldSint32(InterpState &S) { |
| 14471 | { |
| 14472 | CodePtr OpPC = S.PC; |
| 14473 | const auto V0 = ReadArg<bool>(S, S.PC); |
| 14474 | const auto V1 = ReadArg<uint32_t>(S, S.PC); |
| 14475 | if (!DecBitfield<PT_Sint32>(S, OpPC, V0, V1)) return false; |
| 14476 | } |
| 14477 | #if USE_TAILCALLS |
| 14478 | MUSTTAIL return InterpNext(S); |
| 14479 | #else |
| 14480 | return true; |
| 14481 | #endif |
| 14482 | } |
| 14483 | PRESERVE_NONE |
| 14484 | static bool Interp_DecBitfieldUint32(InterpState &S) { |
| 14485 | { |
| 14486 | CodePtr OpPC = S.PC; |
| 14487 | const auto V0 = ReadArg<bool>(S, S.PC); |
| 14488 | const auto V1 = ReadArg<uint32_t>(S, S.PC); |
| 14489 | if (!DecBitfield<PT_Uint32>(S, OpPC, V0, V1)) return false; |
| 14490 | } |
| 14491 | #if USE_TAILCALLS |
| 14492 | MUSTTAIL return InterpNext(S); |
| 14493 | #else |
| 14494 | return true; |
| 14495 | #endif |
| 14496 | } |
| 14497 | PRESERVE_NONE |
| 14498 | static bool Interp_DecBitfieldSint64(InterpState &S) { |
| 14499 | { |
| 14500 | CodePtr OpPC = S.PC; |
| 14501 | const auto V0 = ReadArg<bool>(S, S.PC); |
| 14502 | const auto V1 = ReadArg<uint32_t>(S, S.PC); |
| 14503 | if (!DecBitfield<PT_Sint64>(S, OpPC, V0, V1)) return false; |
| 14504 | } |
| 14505 | #if USE_TAILCALLS |
| 14506 | MUSTTAIL return InterpNext(S); |
| 14507 | #else |
| 14508 | return true; |
| 14509 | #endif |
| 14510 | } |
| 14511 | PRESERVE_NONE |
| 14512 | static bool Interp_DecBitfieldUint64(InterpState &S) { |
| 14513 | { |
| 14514 | CodePtr OpPC = S.PC; |
| 14515 | const auto V0 = ReadArg<bool>(S, S.PC); |
| 14516 | const auto V1 = ReadArg<uint32_t>(S, S.PC); |
| 14517 | if (!DecBitfield<PT_Uint64>(S, OpPC, V0, V1)) return false; |
| 14518 | } |
| 14519 | #if USE_TAILCALLS |
| 14520 | MUSTTAIL return InterpNext(S); |
| 14521 | #else |
| 14522 | return true; |
| 14523 | #endif |
| 14524 | } |
| 14525 | PRESERVE_NONE |
| 14526 | static bool Interp_DecBitfieldIntAP(InterpState &S) { |
| 14527 | { |
| 14528 | CodePtr OpPC = S.PC; |
| 14529 | const auto V0 = ReadArg<bool>(S, S.PC); |
| 14530 | const auto V1 = ReadArg<uint32_t>(S, S.PC); |
| 14531 | if (!DecBitfield<PT_IntAP>(S, OpPC, V0, V1)) return false; |
| 14532 | } |
| 14533 | #if USE_TAILCALLS |
| 14534 | MUSTTAIL return InterpNext(S); |
| 14535 | #else |
| 14536 | return true; |
| 14537 | #endif |
| 14538 | } |
| 14539 | PRESERVE_NONE |
| 14540 | static bool Interp_DecBitfieldIntAPS(InterpState &S) { |
| 14541 | { |
| 14542 | CodePtr OpPC = S.PC; |
| 14543 | const auto V0 = ReadArg<bool>(S, S.PC); |
| 14544 | const auto V1 = ReadArg<uint32_t>(S, S.PC); |
| 14545 | if (!DecBitfield<PT_IntAPS>(S, OpPC, V0, V1)) return false; |
| 14546 | } |
| 14547 | #if USE_TAILCALLS |
| 14548 | MUSTTAIL return InterpNext(S); |
| 14549 | #else |
| 14550 | return true; |
| 14551 | #endif |
| 14552 | } |
| 14553 | PRESERVE_NONE |
| 14554 | static bool Interp_DecBitfieldBool(InterpState &S) { |
| 14555 | { |
| 14556 | CodePtr OpPC = S.PC; |
| 14557 | const auto V0 = ReadArg<bool>(S, S.PC); |
| 14558 | const auto V1 = ReadArg<uint32_t>(S, S.PC); |
| 14559 | if (!DecBitfield<PT_Bool>(S, OpPC, V0, V1)) return false; |
| 14560 | } |
| 14561 | #if USE_TAILCALLS |
| 14562 | MUSTTAIL return InterpNext(S); |
| 14563 | #else |
| 14564 | return true; |
| 14565 | #endif |
| 14566 | } |
| 14567 | PRESERVE_NONE |
| 14568 | static bool Interp_DecBitfieldFixedPoint(InterpState &S) { |
| 14569 | { |
| 14570 | CodePtr OpPC = S.PC; |
| 14571 | const auto V0 = ReadArg<bool>(S, S.PC); |
| 14572 | const auto V1 = ReadArg<uint32_t>(S, S.PC); |
| 14573 | if (!DecBitfield<PT_FixedPoint>(S, OpPC, V0, V1)) return false; |
| 14574 | } |
| 14575 | #if USE_TAILCALLS |
| 14576 | MUSTTAIL return InterpNext(S); |
| 14577 | #else |
| 14578 | return true; |
| 14579 | #endif |
| 14580 | } |
| 14581 | #endif |
| 14582 | #ifdef GET_DISASM |
| 14583 | case OP_DecBitfieldSint8: |
| 14584 | Text.Op = PrintName("DecBitfieldSint8" ); |
| 14585 | Text.Args.push_back(printArg<bool>(PC)); |
| 14586 | Text.Args.push_back(printArg<uint32_t>(PC)); |
| 14587 | break; |
| 14588 | case OP_DecBitfieldUint8: |
| 14589 | Text.Op = PrintName("DecBitfieldUint8" ); |
| 14590 | Text.Args.push_back(printArg<bool>(PC)); |
| 14591 | Text.Args.push_back(printArg<uint32_t>(PC)); |
| 14592 | break; |
| 14593 | case OP_DecBitfieldSint16: |
| 14594 | Text.Op = PrintName("DecBitfieldSint16" ); |
| 14595 | Text.Args.push_back(printArg<bool>(PC)); |
| 14596 | Text.Args.push_back(printArg<uint32_t>(PC)); |
| 14597 | break; |
| 14598 | case OP_DecBitfieldUint16: |
| 14599 | Text.Op = PrintName("DecBitfieldUint16" ); |
| 14600 | Text.Args.push_back(printArg<bool>(PC)); |
| 14601 | Text.Args.push_back(printArg<uint32_t>(PC)); |
| 14602 | break; |
| 14603 | case OP_DecBitfieldSint32: |
| 14604 | Text.Op = PrintName("DecBitfieldSint32" ); |
| 14605 | Text.Args.push_back(printArg<bool>(PC)); |
| 14606 | Text.Args.push_back(printArg<uint32_t>(PC)); |
| 14607 | break; |
| 14608 | case OP_DecBitfieldUint32: |
| 14609 | Text.Op = PrintName("DecBitfieldUint32" ); |
| 14610 | Text.Args.push_back(printArg<bool>(PC)); |
| 14611 | Text.Args.push_back(printArg<uint32_t>(PC)); |
| 14612 | break; |
| 14613 | case OP_DecBitfieldSint64: |
| 14614 | Text.Op = PrintName("DecBitfieldSint64" ); |
| 14615 | Text.Args.push_back(printArg<bool>(PC)); |
| 14616 | Text.Args.push_back(printArg<uint32_t>(PC)); |
| 14617 | break; |
| 14618 | case OP_DecBitfieldUint64: |
| 14619 | Text.Op = PrintName("DecBitfieldUint64" ); |
| 14620 | Text.Args.push_back(printArg<bool>(PC)); |
| 14621 | Text.Args.push_back(printArg<uint32_t>(PC)); |
| 14622 | break; |
| 14623 | case OP_DecBitfieldIntAP: |
| 14624 | Text.Op = PrintName("DecBitfieldIntAP" ); |
| 14625 | Text.Args.push_back(printArg<bool>(PC)); |
| 14626 | Text.Args.push_back(printArg<uint32_t>(PC)); |
| 14627 | break; |
| 14628 | case OP_DecBitfieldIntAPS: |
| 14629 | Text.Op = PrintName("DecBitfieldIntAPS" ); |
| 14630 | Text.Args.push_back(printArg<bool>(PC)); |
| 14631 | Text.Args.push_back(printArg<uint32_t>(PC)); |
| 14632 | break; |
| 14633 | case OP_DecBitfieldBool: |
| 14634 | Text.Op = PrintName("DecBitfieldBool" ); |
| 14635 | Text.Args.push_back(printArg<bool>(PC)); |
| 14636 | Text.Args.push_back(printArg<uint32_t>(PC)); |
| 14637 | break; |
| 14638 | case OP_DecBitfieldFixedPoint: |
| 14639 | Text.Op = PrintName("DecBitfieldFixedPoint" ); |
| 14640 | Text.Args.push_back(printArg<bool>(PC)); |
| 14641 | Text.Args.push_back(printArg<uint32_t>(PC)); |
| 14642 | break; |
| 14643 | #endif |
| 14644 | #if defined(GET_EVAL_PROTO) || defined(GET_LINK_PROTO) |
| 14645 | bool emitDecBitfieldSint8( bool , uint32_t , SourceInfo); |
| 14646 | bool emitDecBitfieldUint8( bool , uint32_t , SourceInfo); |
| 14647 | bool emitDecBitfieldSint16( bool , uint32_t , SourceInfo); |
| 14648 | bool emitDecBitfieldUint16( bool , uint32_t , SourceInfo); |
| 14649 | bool emitDecBitfieldSint32( bool , uint32_t , SourceInfo); |
| 14650 | bool emitDecBitfieldUint32( bool , uint32_t , SourceInfo); |
| 14651 | bool emitDecBitfieldSint64( bool , uint32_t , SourceInfo); |
| 14652 | bool emitDecBitfieldUint64( bool , uint32_t , SourceInfo); |
| 14653 | bool emitDecBitfieldIntAP( bool , uint32_t , SourceInfo); |
| 14654 | bool emitDecBitfieldIntAPS( bool , uint32_t , SourceInfo); |
| 14655 | bool emitDecBitfieldBool( bool , uint32_t , SourceInfo); |
| 14656 | bool emitDecBitfieldFixedPoint( bool , uint32_t , SourceInfo); |
| 14657 | #endif |
| 14658 | #if defined(GET_EVAL_PROTO) || defined(GET_LINK_PROTO) |
| 14659 | [[nodiscard]] bool emitDecBitfield(PrimType, bool, uint32_t, SourceInfo I); |
| 14660 | #endif |
| 14661 | #if defined(GET_EVAL_IMPL) || defined(GET_LINK_IMPL) |
| 14662 | bool |
| 14663 | #if defined(GET_EVAL_IMPL) |
| 14664 | EvalEmitter |
| 14665 | #else |
| 14666 | ByteCodeEmitter |
| 14667 | #endif |
| 14668 | ::emitDecBitfield(PrimType T0, bool A0, uint32_t A1, SourceInfo I) { |
| 14669 | switch (T0) { |
| 14670 | case PT_Sint8: |
| 14671 | return emitDecBitfieldSint8(A0, A1, I); |
| 14672 | case PT_Uint8: |
| 14673 | return emitDecBitfieldUint8(A0, A1, I); |
| 14674 | case PT_Sint16: |
| 14675 | return emitDecBitfieldSint16(A0, A1, I); |
| 14676 | case PT_Uint16: |
| 14677 | return emitDecBitfieldUint16(A0, A1, I); |
| 14678 | case PT_Sint32: |
| 14679 | return emitDecBitfieldSint32(A0, A1, I); |
| 14680 | case PT_Uint32: |
| 14681 | return emitDecBitfieldUint32(A0, A1, I); |
| 14682 | case PT_Sint64: |
| 14683 | return emitDecBitfieldSint64(A0, A1, I); |
| 14684 | case PT_Uint64: |
| 14685 | return emitDecBitfieldUint64(A0, A1, I); |
| 14686 | case PT_IntAP: |
| 14687 | return emitDecBitfieldIntAP(A0, A1, I); |
| 14688 | case PT_IntAPS: |
| 14689 | return emitDecBitfieldIntAPS(A0, A1, I); |
| 14690 | case PT_Bool: |
| 14691 | return emitDecBitfieldBool(A0, A1, I); |
| 14692 | case PT_FixedPoint: |
| 14693 | return emitDecBitfieldFixedPoint(A0, A1, I); |
| 14694 | default: llvm_unreachable("invalid type: emitDecBitfield" ); |
| 14695 | } |
| 14696 | llvm_unreachable("invalid enum value" ); |
| 14697 | } |
| 14698 | #endif |
| 14699 | #ifdef GET_LINK_IMPL |
| 14700 | bool ByteCodeEmitter::emitDecBitfieldSint8( bool A0, uint32_t A1, SourceInfo L) { |
| 14701 | return emitOp<bool, uint32_t>(OP_DecBitfieldSint8, A0, A1, L); |
| 14702 | } |
| 14703 | bool ByteCodeEmitter::emitDecBitfieldUint8( bool A0, uint32_t A1, SourceInfo L) { |
| 14704 | return emitOp<bool, uint32_t>(OP_DecBitfieldUint8, A0, A1, L); |
| 14705 | } |
| 14706 | bool ByteCodeEmitter::emitDecBitfieldSint16( bool A0, uint32_t A1, SourceInfo L) { |
| 14707 | return emitOp<bool, uint32_t>(OP_DecBitfieldSint16, A0, A1, L); |
| 14708 | } |
| 14709 | bool ByteCodeEmitter::emitDecBitfieldUint16( bool A0, uint32_t A1, SourceInfo L) { |
| 14710 | return emitOp<bool, uint32_t>(OP_DecBitfieldUint16, A0, A1, L); |
| 14711 | } |
| 14712 | bool ByteCodeEmitter::emitDecBitfieldSint32( bool A0, uint32_t A1, SourceInfo L) { |
| 14713 | return emitOp<bool, uint32_t>(OP_DecBitfieldSint32, A0, A1, L); |
| 14714 | } |
| 14715 | bool ByteCodeEmitter::emitDecBitfieldUint32( bool A0, uint32_t A1, SourceInfo L) { |
| 14716 | return emitOp<bool, uint32_t>(OP_DecBitfieldUint32, A0, A1, L); |
| 14717 | } |
| 14718 | bool ByteCodeEmitter::emitDecBitfieldSint64( bool A0, uint32_t A1, SourceInfo L) { |
| 14719 | return emitOp<bool, uint32_t>(OP_DecBitfieldSint64, A0, A1, L); |
| 14720 | } |
| 14721 | bool ByteCodeEmitter::emitDecBitfieldUint64( bool A0, uint32_t A1, SourceInfo L) { |
| 14722 | return emitOp<bool, uint32_t>(OP_DecBitfieldUint64, A0, A1, L); |
| 14723 | } |
| 14724 | bool ByteCodeEmitter::emitDecBitfieldIntAP( bool A0, uint32_t A1, SourceInfo L) { |
| 14725 | return emitOp<bool, uint32_t>(OP_DecBitfieldIntAP, A0, A1, L); |
| 14726 | } |
| 14727 | bool ByteCodeEmitter::emitDecBitfieldIntAPS( bool A0, uint32_t A1, SourceInfo L) { |
| 14728 | return emitOp<bool, uint32_t>(OP_DecBitfieldIntAPS, A0, A1, L); |
| 14729 | } |
| 14730 | bool ByteCodeEmitter::emitDecBitfieldBool( bool A0, uint32_t A1, SourceInfo L) { |
| 14731 | return emitOp<bool, uint32_t>(OP_DecBitfieldBool, A0, A1, L); |
| 14732 | } |
| 14733 | bool ByteCodeEmitter::emitDecBitfieldFixedPoint( bool A0, uint32_t A1, SourceInfo L) { |
| 14734 | return emitOp<bool, uint32_t>(OP_DecBitfieldFixedPoint, A0, A1, L); |
| 14735 | } |
| 14736 | #endif |
| 14737 | #ifdef GET_EVAL_IMPL |
| 14738 | bool EvalEmitter::emitDecBitfieldSint8( bool A0, uint32_t A1, SourceInfo L) { |
| 14739 | if (!isActive()) return true; |
| 14740 | CurrentSource = L; |
| 14741 | return DecBitfield<PT_Sint8>(S, CodePtr(), A0, A1); |
| 14742 | } |
| 14743 | bool EvalEmitter::emitDecBitfieldUint8( bool A0, uint32_t A1, SourceInfo L) { |
| 14744 | if (!isActive()) return true; |
| 14745 | CurrentSource = L; |
| 14746 | return DecBitfield<PT_Uint8>(S, CodePtr(), A0, A1); |
| 14747 | } |
| 14748 | bool EvalEmitter::emitDecBitfieldSint16( bool A0, uint32_t A1, SourceInfo L) { |
| 14749 | if (!isActive()) return true; |
| 14750 | CurrentSource = L; |
| 14751 | return DecBitfield<PT_Sint16>(S, CodePtr(), A0, A1); |
| 14752 | } |
| 14753 | bool EvalEmitter::emitDecBitfieldUint16( bool A0, uint32_t A1, SourceInfo L) { |
| 14754 | if (!isActive()) return true; |
| 14755 | CurrentSource = L; |
| 14756 | return DecBitfield<PT_Uint16>(S, CodePtr(), A0, A1); |
| 14757 | } |
| 14758 | bool EvalEmitter::emitDecBitfieldSint32( bool A0, uint32_t A1, SourceInfo L) { |
| 14759 | if (!isActive()) return true; |
| 14760 | CurrentSource = L; |
| 14761 | return DecBitfield<PT_Sint32>(S, CodePtr(), A0, A1); |
| 14762 | } |
| 14763 | bool EvalEmitter::emitDecBitfieldUint32( bool A0, uint32_t A1, SourceInfo L) { |
| 14764 | if (!isActive()) return true; |
| 14765 | CurrentSource = L; |
| 14766 | return DecBitfield<PT_Uint32>(S, CodePtr(), A0, A1); |
| 14767 | } |
| 14768 | bool EvalEmitter::emitDecBitfieldSint64( bool A0, uint32_t A1, SourceInfo L) { |
| 14769 | if (!isActive()) return true; |
| 14770 | CurrentSource = L; |
| 14771 | return DecBitfield<PT_Sint64>(S, CodePtr(), A0, A1); |
| 14772 | } |
| 14773 | bool EvalEmitter::emitDecBitfieldUint64( bool A0, uint32_t A1, SourceInfo L) { |
| 14774 | if (!isActive()) return true; |
| 14775 | CurrentSource = L; |
| 14776 | return DecBitfield<PT_Uint64>(S, CodePtr(), A0, A1); |
| 14777 | } |
| 14778 | bool EvalEmitter::emitDecBitfieldIntAP( bool A0, uint32_t A1, SourceInfo L) { |
| 14779 | if (!isActive()) return true; |
| 14780 | CurrentSource = L; |
| 14781 | return DecBitfield<PT_IntAP>(S, CodePtr(), A0, A1); |
| 14782 | } |
| 14783 | bool EvalEmitter::emitDecBitfieldIntAPS( bool A0, uint32_t A1, SourceInfo L) { |
| 14784 | if (!isActive()) return true; |
| 14785 | CurrentSource = L; |
| 14786 | return DecBitfield<PT_IntAPS>(S, CodePtr(), A0, A1); |
| 14787 | } |
| 14788 | bool EvalEmitter::emitDecBitfieldBool( bool A0, uint32_t A1, SourceInfo L) { |
| 14789 | if (!isActive()) return true; |
| 14790 | CurrentSource = L; |
| 14791 | return DecBitfield<PT_Bool>(S, CodePtr(), A0, A1); |
| 14792 | } |
| 14793 | bool EvalEmitter::emitDecBitfieldFixedPoint( bool A0, uint32_t A1, SourceInfo L) { |
| 14794 | if (!isActive()) return true; |
| 14795 | CurrentSource = L; |
| 14796 | return DecBitfield<PT_FixedPoint>(S, CodePtr(), A0, A1); |
| 14797 | } |
| 14798 | #endif |
| 14799 | #ifdef GET_OPCODE_NAMES |
| 14800 | OP_DecPopSint8, |
| 14801 | OP_DecPopUint8, |
| 14802 | OP_DecPopSint16, |
| 14803 | OP_DecPopUint16, |
| 14804 | OP_DecPopSint32, |
| 14805 | OP_DecPopUint32, |
| 14806 | OP_DecPopSint64, |
| 14807 | OP_DecPopUint64, |
| 14808 | OP_DecPopIntAP, |
| 14809 | OP_DecPopIntAPS, |
| 14810 | OP_DecPopBool, |
| 14811 | OP_DecPopFixedPoint, |
| 14812 | #endif |
| 14813 | #ifdef GET_INTERPFN_LIST |
| 14814 | &Interp_DecPopSint8, |
| 14815 | &Interp_DecPopUint8, |
| 14816 | &Interp_DecPopSint16, |
| 14817 | &Interp_DecPopUint16, |
| 14818 | &Interp_DecPopSint32, |
| 14819 | &Interp_DecPopUint32, |
| 14820 | &Interp_DecPopSint64, |
| 14821 | &Interp_DecPopUint64, |
| 14822 | &Interp_DecPopIntAP, |
| 14823 | &Interp_DecPopIntAPS, |
| 14824 | &Interp_DecPopBool, |
| 14825 | &Interp_DecPopFixedPoint, |
| 14826 | #endif |
| 14827 | #ifdef GET_INTERPFN_DISPATCHERS |
| 14828 | PRESERVE_NONE |
| 14829 | static bool Interp_DecPopSint8(InterpState &S) { |
| 14830 | { |
| 14831 | CodePtr OpPC = S.PC; |
| 14832 | const auto V0 = ReadArg<bool>(S, S.PC); |
| 14833 | if (!DecPop<PT_Sint8>(S, OpPC, V0)) return false; |
| 14834 | } |
| 14835 | #if USE_TAILCALLS |
| 14836 | MUSTTAIL return InterpNext(S); |
| 14837 | #else |
| 14838 | return true; |
| 14839 | #endif |
| 14840 | } |
| 14841 | PRESERVE_NONE |
| 14842 | static bool Interp_DecPopUint8(InterpState &S) { |
| 14843 | { |
| 14844 | CodePtr OpPC = S.PC; |
| 14845 | const auto V0 = ReadArg<bool>(S, S.PC); |
| 14846 | if (!DecPop<PT_Uint8>(S, OpPC, V0)) return false; |
| 14847 | } |
| 14848 | #if USE_TAILCALLS |
| 14849 | MUSTTAIL return InterpNext(S); |
| 14850 | #else |
| 14851 | return true; |
| 14852 | #endif |
| 14853 | } |
| 14854 | PRESERVE_NONE |
| 14855 | static bool Interp_DecPopSint16(InterpState &S) { |
| 14856 | { |
| 14857 | CodePtr OpPC = S.PC; |
| 14858 | const auto V0 = ReadArg<bool>(S, S.PC); |
| 14859 | if (!DecPop<PT_Sint16>(S, OpPC, V0)) return false; |
| 14860 | } |
| 14861 | #if USE_TAILCALLS |
| 14862 | MUSTTAIL return InterpNext(S); |
| 14863 | #else |
| 14864 | return true; |
| 14865 | #endif |
| 14866 | } |
| 14867 | PRESERVE_NONE |
| 14868 | static bool Interp_DecPopUint16(InterpState &S) { |
| 14869 | { |
| 14870 | CodePtr OpPC = S.PC; |
| 14871 | const auto V0 = ReadArg<bool>(S, S.PC); |
| 14872 | if (!DecPop<PT_Uint16>(S, OpPC, V0)) return false; |
| 14873 | } |
| 14874 | #if USE_TAILCALLS |
| 14875 | MUSTTAIL return InterpNext(S); |
| 14876 | #else |
| 14877 | return true; |
| 14878 | #endif |
| 14879 | } |
| 14880 | PRESERVE_NONE |
| 14881 | static bool Interp_DecPopSint32(InterpState &S) { |
| 14882 | { |
| 14883 | CodePtr OpPC = S.PC; |
| 14884 | const auto V0 = ReadArg<bool>(S, S.PC); |
| 14885 | if (!DecPop<PT_Sint32>(S, OpPC, V0)) return false; |
| 14886 | } |
| 14887 | #if USE_TAILCALLS |
| 14888 | MUSTTAIL return InterpNext(S); |
| 14889 | #else |
| 14890 | return true; |
| 14891 | #endif |
| 14892 | } |
| 14893 | PRESERVE_NONE |
| 14894 | static bool Interp_DecPopUint32(InterpState &S) { |
| 14895 | { |
| 14896 | CodePtr OpPC = S.PC; |
| 14897 | const auto V0 = ReadArg<bool>(S, S.PC); |
| 14898 | if (!DecPop<PT_Uint32>(S, OpPC, V0)) return false; |
| 14899 | } |
| 14900 | #if USE_TAILCALLS |
| 14901 | MUSTTAIL return InterpNext(S); |
| 14902 | #else |
| 14903 | return true; |
| 14904 | #endif |
| 14905 | } |
| 14906 | PRESERVE_NONE |
| 14907 | static bool Interp_DecPopSint64(InterpState &S) { |
| 14908 | { |
| 14909 | CodePtr OpPC = S.PC; |
| 14910 | const auto V0 = ReadArg<bool>(S, S.PC); |
| 14911 | if (!DecPop<PT_Sint64>(S, OpPC, V0)) return false; |
| 14912 | } |
| 14913 | #if USE_TAILCALLS |
| 14914 | MUSTTAIL return InterpNext(S); |
| 14915 | #else |
| 14916 | return true; |
| 14917 | #endif |
| 14918 | } |
| 14919 | PRESERVE_NONE |
| 14920 | static bool Interp_DecPopUint64(InterpState &S) { |
| 14921 | { |
| 14922 | CodePtr OpPC = S.PC; |
| 14923 | const auto V0 = ReadArg<bool>(S, S.PC); |
| 14924 | if (!DecPop<PT_Uint64>(S, OpPC, V0)) return false; |
| 14925 | } |
| 14926 | #if USE_TAILCALLS |
| 14927 | MUSTTAIL return InterpNext(S); |
| 14928 | #else |
| 14929 | return true; |
| 14930 | #endif |
| 14931 | } |
| 14932 | PRESERVE_NONE |
| 14933 | static bool Interp_DecPopIntAP(InterpState &S) { |
| 14934 | { |
| 14935 | CodePtr OpPC = S.PC; |
| 14936 | const auto V0 = ReadArg<bool>(S, S.PC); |
| 14937 | if (!DecPop<PT_IntAP>(S, OpPC, V0)) return false; |
| 14938 | } |
| 14939 | #if USE_TAILCALLS |
| 14940 | MUSTTAIL return InterpNext(S); |
| 14941 | #else |
| 14942 | return true; |
| 14943 | #endif |
| 14944 | } |
| 14945 | PRESERVE_NONE |
| 14946 | static bool Interp_DecPopIntAPS(InterpState &S) { |
| 14947 | { |
| 14948 | CodePtr OpPC = S.PC; |
| 14949 | const auto V0 = ReadArg<bool>(S, S.PC); |
| 14950 | if (!DecPop<PT_IntAPS>(S, OpPC, V0)) return false; |
| 14951 | } |
| 14952 | #if USE_TAILCALLS |
| 14953 | MUSTTAIL return InterpNext(S); |
| 14954 | #else |
| 14955 | return true; |
| 14956 | #endif |
| 14957 | } |
| 14958 | PRESERVE_NONE |
| 14959 | static bool Interp_DecPopBool(InterpState &S) { |
| 14960 | { |
| 14961 | CodePtr OpPC = S.PC; |
| 14962 | const auto V0 = ReadArg<bool>(S, S.PC); |
| 14963 | if (!DecPop<PT_Bool>(S, OpPC, V0)) return false; |
| 14964 | } |
| 14965 | #if USE_TAILCALLS |
| 14966 | MUSTTAIL return InterpNext(S); |
| 14967 | #else |
| 14968 | return true; |
| 14969 | #endif |
| 14970 | } |
| 14971 | PRESERVE_NONE |
| 14972 | static bool Interp_DecPopFixedPoint(InterpState &S) { |
| 14973 | { |
| 14974 | CodePtr OpPC = S.PC; |
| 14975 | const auto V0 = ReadArg<bool>(S, S.PC); |
| 14976 | if (!DecPop<PT_FixedPoint>(S, OpPC, V0)) return false; |
| 14977 | } |
| 14978 | #if USE_TAILCALLS |
| 14979 | MUSTTAIL return InterpNext(S); |
| 14980 | #else |
| 14981 | return true; |
| 14982 | #endif |
| 14983 | } |
| 14984 | #endif |
| 14985 | #ifdef GET_DISASM |
| 14986 | case OP_DecPopSint8: |
| 14987 | Text.Op = PrintName("DecPopSint8" ); |
| 14988 | Text.Args.push_back(printArg<bool>(PC)); |
| 14989 | break; |
| 14990 | case OP_DecPopUint8: |
| 14991 | Text.Op = PrintName("DecPopUint8" ); |
| 14992 | Text.Args.push_back(printArg<bool>(PC)); |
| 14993 | break; |
| 14994 | case OP_DecPopSint16: |
| 14995 | Text.Op = PrintName("DecPopSint16" ); |
| 14996 | Text.Args.push_back(printArg<bool>(PC)); |
| 14997 | break; |
| 14998 | case OP_DecPopUint16: |
| 14999 | Text.Op = PrintName("DecPopUint16" ); |
| 15000 | Text.Args.push_back(printArg<bool>(PC)); |
| 15001 | break; |
| 15002 | case OP_DecPopSint32: |
| 15003 | Text.Op = PrintName("DecPopSint32" ); |
| 15004 | Text.Args.push_back(printArg<bool>(PC)); |
| 15005 | break; |
| 15006 | case OP_DecPopUint32: |
| 15007 | Text.Op = PrintName("DecPopUint32" ); |
| 15008 | Text.Args.push_back(printArg<bool>(PC)); |
| 15009 | break; |
| 15010 | case OP_DecPopSint64: |
| 15011 | Text.Op = PrintName("DecPopSint64" ); |
| 15012 | Text.Args.push_back(printArg<bool>(PC)); |
| 15013 | break; |
| 15014 | case OP_DecPopUint64: |
| 15015 | Text.Op = PrintName("DecPopUint64" ); |
| 15016 | Text.Args.push_back(printArg<bool>(PC)); |
| 15017 | break; |
| 15018 | case OP_DecPopIntAP: |
| 15019 | Text.Op = PrintName("DecPopIntAP" ); |
| 15020 | Text.Args.push_back(printArg<bool>(PC)); |
| 15021 | break; |
| 15022 | case OP_DecPopIntAPS: |
| 15023 | Text.Op = PrintName("DecPopIntAPS" ); |
| 15024 | Text.Args.push_back(printArg<bool>(PC)); |
| 15025 | break; |
| 15026 | case OP_DecPopBool: |
| 15027 | Text.Op = PrintName("DecPopBool" ); |
| 15028 | Text.Args.push_back(printArg<bool>(PC)); |
| 15029 | break; |
| 15030 | case OP_DecPopFixedPoint: |
| 15031 | Text.Op = PrintName("DecPopFixedPoint" ); |
| 15032 | Text.Args.push_back(printArg<bool>(PC)); |
| 15033 | break; |
| 15034 | #endif |
| 15035 | #if defined(GET_EVAL_PROTO) || defined(GET_LINK_PROTO) |
| 15036 | bool emitDecPopSint8( bool , SourceInfo); |
| 15037 | bool emitDecPopUint8( bool , SourceInfo); |
| 15038 | bool emitDecPopSint16( bool , SourceInfo); |
| 15039 | bool emitDecPopUint16( bool , SourceInfo); |
| 15040 | bool emitDecPopSint32( bool , SourceInfo); |
| 15041 | bool emitDecPopUint32( bool , SourceInfo); |
| 15042 | bool emitDecPopSint64( bool , SourceInfo); |
| 15043 | bool emitDecPopUint64( bool , SourceInfo); |
| 15044 | bool emitDecPopIntAP( bool , SourceInfo); |
| 15045 | bool emitDecPopIntAPS( bool , SourceInfo); |
| 15046 | bool emitDecPopBool( bool , SourceInfo); |
| 15047 | bool emitDecPopFixedPoint( bool , SourceInfo); |
| 15048 | #endif |
| 15049 | #if defined(GET_EVAL_PROTO) || defined(GET_LINK_PROTO) |
| 15050 | [[nodiscard]] bool emitDecPop(PrimType, bool, SourceInfo I); |
| 15051 | #endif |
| 15052 | #if defined(GET_EVAL_IMPL) || defined(GET_LINK_IMPL) |
| 15053 | bool |
| 15054 | #if defined(GET_EVAL_IMPL) |
| 15055 | EvalEmitter |
| 15056 | #else |
| 15057 | ByteCodeEmitter |
| 15058 | #endif |
| 15059 | ::emitDecPop(PrimType T0, bool A0, SourceInfo I) { |
| 15060 | switch (T0) { |
| 15061 | case PT_Sint8: |
| 15062 | return emitDecPopSint8(A0, I); |
| 15063 | case PT_Uint8: |
| 15064 | return emitDecPopUint8(A0, I); |
| 15065 | case PT_Sint16: |
| 15066 | return emitDecPopSint16(A0, I); |
| 15067 | case PT_Uint16: |
| 15068 | return emitDecPopUint16(A0, I); |
| 15069 | case PT_Sint32: |
| 15070 | return emitDecPopSint32(A0, I); |
| 15071 | case PT_Uint32: |
| 15072 | return emitDecPopUint32(A0, I); |
| 15073 | case PT_Sint64: |
| 15074 | return emitDecPopSint64(A0, I); |
| 15075 | case PT_Uint64: |
| 15076 | return emitDecPopUint64(A0, I); |
| 15077 | case PT_IntAP: |
| 15078 | return emitDecPopIntAP(A0, I); |
| 15079 | case PT_IntAPS: |
| 15080 | return emitDecPopIntAPS(A0, I); |
| 15081 | case PT_Bool: |
| 15082 | return emitDecPopBool(A0, I); |
| 15083 | case PT_FixedPoint: |
| 15084 | return emitDecPopFixedPoint(A0, I); |
| 15085 | default: llvm_unreachable("invalid type: emitDecPop" ); |
| 15086 | } |
| 15087 | llvm_unreachable("invalid enum value" ); |
| 15088 | } |
| 15089 | #endif |
| 15090 | #ifdef GET_LINK_IMPL |
| 15091 | bool ByteCodeEmitter::emitDecPopSint8( bool A0, SourceInfo L) { |
| 15092 | return emitOp<bool>(OP_DecPopSint8, A0, L); |
| 15093 | } |
| 15094 | bool ByteCodeEmitter::emitDecPopUint8( bool A0, SourceInfo L) { |
| 15095 | return emitOp<bool>(OP_DecPopUint8, A0, L); |
| 15096 | } |
| 15097 | bool ByteCodeEmitter::emitDecPopSint16( bool A0, SourceInfo L) { |
| 15098 | return emitOp<bool>(OP_DecPopSint16, A0, L); |
| 15099 | } |
| 15100 | bool ByteCodeEmitter::emitDecPopUint16( bool A0, SourceInfo L) { |
| 15101 | return emitOp<bool>(OP_DecPopUint16, A0, L); |
| 15102 | } |
| 15103 | bool ByteCodeEmitter::emitDecPopSint32( bool A0, SourceInfo L) { |
| 15104 | return emitOp<bool>(OP_DecPopSint32, A0, L); |
| 15105 | } |
| 15106 | bool ByteCodeEmitter::emitDecPopUint32( bool A0, SourceInfo L) { |
| 15107 | return emitOp<bool>(OP_DecPopUint32, A0, L); |
| 15108 | } |
| 15109 | bool ByteCodeEmitter::emitDecPopSint64( bool A0, SourceInfo L) { |
| 15110 | return emitOp<bool>(OP_DecPopSint64, A0, L); |
| 15111 | } |
| 15112 | bool ByteCodeEmitter::emitDecPopUint64( bool A0, SourceInfo L) { |
| 15113 | return emitOp<bool>(OP_DecPopUint64, A0, L); |
| 15114 | } |
| 15115 | bool ByteCodeEmitter::emitDecPopIntAP( bool A0, SourceInfo L) { |
| 15116 | return emitOp<bool>(OP_DecPopIntAP, A0, L); |
| 15117 | } |
| 15118 | bool ByteCodeEmitter::emitDecPopIntAPS( bool A0, SourceInfo L) { |
| 15119 | return emitOp<bool>(OP_DecPopIntAPS, A0, L); |
| 15120 | } |
| 15121 | bool ByteCodeEmitter::emitDecPopBool( bool A0, SourceInfo L) { |
| 15122 | return emitOp<bool>(OP_DecPopBool, A0, L); |
| 15123 | } |
| 15124 | bool ByteCodeEmitter::emitDecPopFixedPoint( bool A0, SourceInfo L) { |
| 15125 | return emitOp<bool>(OP_DecPopFixedPoint, A0, L); |
| 15126 | } |
| 15127 | #endif |
| 15128 | #ifdef GET_EVAL_IMPL |
| 15129 | bool EvalEmitter::emitDecPopSint8( bool A0, SourceInfo L) { |
| 15130 | if (!isActive()) return true; |
| 15131 | CurrentSource = L; |
| 15132 | return DecPop<PT_Sint8>(S, CodePtr(), A0); |
| 15133 | } |
| 15134 | bool EvalEmitter::emitDecPopUint8( bool A0, SourceInfo L) { |
| 15135 | if (!isActive()) return true; |
| 15136 | CurrentSource = L; |
| 15137 | return DecPop<PT_Uint8>(S, CodePtr(), A0); |
| 15138 | } |
| 15139 | bool EvalEmitter::emitDecPopSint16( bool A0, SourceInfo L) { |
| 15140 | if (!isActive()) return true; |
| 15141 | CurrentSource = L; |
| 15142 | return DecPop<PT_Sint16>(S, CodePtr(), A0); |
| 15143 | } |
| 15144 | bool EvalEmitter::emitDecPopUint16( bool A0, SourceInfo L) { |
| 15145 | if (!isActive()) return true; |
| 15146 | CurrentSource = L; |
| 15147 | return DecPop<PT_Uint16>(S, CodePtr(), A0); |
| 15148 | } |
| 15149 | bool EvalEmitter::emitDecPopSint32( bool A0, SourceInfo L) { |
| 15150 | if (!isActive()) return true; |
| 15151 | CurrentSource = L; |
| 15152 | return DecPop<PT_Sint32>(S, CodePtr(), A0); |
| 15153 | } |
| 15154 | bool EvalEmitter::emitDecPopUint32( bool A0, SourceInfo L) { |
| 15155 | if (!isActive()) return true; |
| 15156 | CurrentSource = L; |
| 15157 | return DecPop<PT_Uint32>(S, CodePtr(), A0); |
| 15158 | } |
| 15159 | bool EvalEmitter::emitDecPopSint64( bool A0, SourceInfo L) { |
| 15160 | if (!isActive()) return true; |
| 15161 | CurrentSource = L; |
| 15162 | return DecPop<PT_Sint64>(S, CodePtr(), A0); |
| 15163 | } |
| 15164 | bool EvalEmitter::emitDecPopUint64( bool A0, SourceInfo L) { |
| 15165 | if (!isActive()) return true; |
| 15166 | CurrentSource = L; |
| 15167 | return DecPop<PT_Uint64>(S, CodePtr(), A0); |
| 15168 | } |
| 15169 | bool EvalEmitter::emitDecPopIntAP( bool A0, SourceInfo L) { |
| 15170 | if (!isActive()) return true; |
| 15171 | CurrentSource = L; |
| 15172 | return DecPop<PT_IntAP>(S, CodePtr(), A0); |
| 15173 | } |
| 15174 | bool EvalEmitter::emitDecPopIntAPS( bool A0, SourceInfo L) { |
| 15175 | if (!isActive()) return true; |
| 15176 | CurrentSource = L; |
| 15177 | return DecPop<PT_IntAPS>(S, CodePtr(), A0); |
| 15178 | } |
| 15179 | bool EvalEmitter::emitDecPopBool( bool A0, SourceInfo L) { |
| 15180 | if (!isActive()) return true; |
| 15181 | CurrentSource = L; |
| 15182 | return DecPop<PT_Bool>(S, CodePtr(), A0); |
| 15183 | } |
| 15184 | bool EvalEmitter::emitDecPopFixedPoint( bool A0, SourceInfo L) { |
| 15185 | if (!isActive()) return true; |
| 15186 | CurrentSource = L; |
| 15187 | return DecPop<PT_FixedPoint>(S, CodePtr(), A0); |
| 15188 | } |
| 15189 | #endif |
| 15190 | #ifdef GET_OPCODE_NAMES |
| 15191 | OP_DecPopBitfieldSint8, |
| 15192 | OP_DecPopBitfieldUint8, |
| 15193 | OP_DecPopBitfieldSint16, |
| 15194 | OP_DecPopBitfieldUint16, |
| 15195 | OP_DecPopBitfieldSint32, |
| 15196 | OP_DecPopBitfieldUint32, |
| 15197 | OP_DecPopBitfieldSint64, |
| 15198 | OP_DecPopBitfieldUint64, |
| 15199 | OP_DecPopBitfieldIntAP, |
| 15200 | OP_DecPopBitfieldIntAPS, |
| 15201 | OP_DecPopBitfieldBool, |
| 15202 | OP_DecPopBitfieldFixedPoint, |
| 15203 | #endif |
| 15204 | #ifdef GET_INTERPFN_LIST |
| 15205 | &Interp_DecPopBitfieldSint8, |
| 15206 | &Interp_DecPopBitfieldUint8, |
| 15207 | &Interp_DecPopBitfieldSint16, |
| 15208 | &Interp_DecPopBitfieldUint16, |
| 15209 | &Interp_DecPopBitfieldSint32, |
| 15210 | &Interp_DecPopBitfieldUint32, |
| 15211 | &Interp_DecPopBitfieldSint64, |
| 15212 | &Interp_DecPopBitfieldUint64, |
| 15213 | &Interp_DecPopBitfieldIntAP, |
| 15214 | &Interp_DecPopBitfieldIntAPS, |
| 15215 | &Interp_DecPopBitfieldBool, |
| 15216 | &Interp_DecPopBitfieldFixedPoint, |
| 15217 | #endif |
| 15218 | #ifdef GET_INTERPFN_DISPATCHERS |
| 15219 | PRESERVE_NONE |
| 15220 | static bool Interp_DecPopBitfieldSint8(InterpState &S) { |
| 15221 | { |
| 15222 | CodePtr OpPC = S.PC; |
| 15223 | const auto V0 = ReadArg<bool>(S, S.PC); |
| 15224 | const auto V1 = ReadArg<uint32_t>(S, S.PC); |
| 15225 | if (!DecPopBitfield<PT_Sint8>(S, OpPC, V0, V1)) return false; |
| 15226 | } |
| 15227 | #if USE_TAILCALLS |
| 15228 | MUSTTAIL return InterpNext(S); |
| 15229 | #else |
| 15230 | return true; |
| 15231 | #endif |
| 15232 | } |
| 15233 | PRESERVE_NONE |
| 15234 | static bool Interp_DecPopBitfieldUint8(InterpState &S) { |
| 15235 | { |
| 15236 | CodePtr OpPC = S.PC; |
| 15237 | const auto V0 = ReadArg<bool>(S, S.PC); |
| 15238 | const auto V1 = ReadArg<uint32_t>(S, S.PC); |
| 15239 | if (!DecPopBitfield<PT_Uint8>(S, OpPC, V0, V1)) return false; |
| 15240 | } |
| 15241 | #if USE_TAILCALLS |
| 15242 | MUSTTAIL return InterpNext(S); |
| 15243 | #else |
| 15244 | return true; |
| 15245 | #endif |
| 15246 | } |
| 15247 | PRESERVE_NONE |
| 15248 | static bool Interp_DecPopBitfieldSint16(InterpState &S) { |
| 15249 | { |
| 15250 | CodePtr OpPC = S.PC; |
| 15251 | const auto V0 = ReadArg<bool>(S, S.PC); |
| 15252 | const auto V1 = ReadArg<uint32_t>(S, S.PC); |
| 15253 | if (!DecPopBitfield<PT_Sint16>(S, OpPC, V0, V1)) return false; |
| 15254 | } |
| 15255 | #if USE_TAILCALLS |
| 15256 | MUSTTAIL return InterpNext(S); |
| 15257 | #else |
| 15258 | return true; |
| 15259 | #endif |
| 15260 | } |
| 15261 | PRESERVE_NONE |
| 15262 | static bool Interp_DecPopBitfieldUint16(InterpState &S) { |
| 15263 | { |
| 15264 | CodePtr OpPC = S.PC; |
| 15265 | const auto V0 = ReadArg<bool>(S, S.PC); |
| 15266 | const auto V1 = ReadArg<uint32_t>(S, S.PC); |
| 15267 | if (!DecPopBitfield<PT_Uint16>(S, OpPC, V0, V1)) return false; |
| 15268 | } |
| 15269 | #if USE_TAILCALLS |
| 15270 | MUSTTAIL return InterpNext(S); |
| 15271 | #else |
| 15272 | return true; |
| 15273 | #endif |
| 15274 | } |
| 15275 | PRESERVE_NONE |
| 15276 | static bool Interp_DecPopBitfieldSint32(InterpState &S) { |
| 15277 | { |
| 15278 | CodePtr OpPC = S.PC; |
| 15279 | const auto V0 = ReadArg<bool>(S, S.PC); |
| 15280 | const auto V1 = ReadArg<uint32_t>(S, S.PC); |
| 15281 | if (!DecPopBitfield<PT_Sint32>(S, OpPC, V0, V1)) return false; |
| 15282 | } |
| 15283 | #if USE_TAILCALLS |
| 15284 | MUSTTAIL return InterpNext(S); |
| 15285 | #else |
| 15286 | return true; |
| 15287 | #endif |
| 15288 | } |
| 15289 | PRESERVE_NONE |
| 15290 | static bool Interp_DecPopBitfieldUint32(InterpState &S) { |
| 15291 | { |
| 15292 | CodePtr OpPC = S.PC; |
| 15293 | const auto V0 = ReadArg<bool>(S, S.PC); |
| 15294 | const auto V1 = ReadArg<uint32_t>(S, S.PC); |
| 15295 | if (!DecPopBitfield<PT_Uint32>(S, OpPC, V0, V1)) return false; |
| 15296 | } |
| 15297 | #if USE_TAILCALLS |
| 15298 | MUSTTAIL return InterpNext(S); |
| 15299 | #else |
| 15300 | return true; |
| 15301 | #endif |
| 15302 | } |
| 15303 | PRESERVE_NONE |
| 15304 | static bool Interp_DecPopBitfieldSint64(InterpState &S) { |
| 15305 | { |
| 15306 | CodePtr OpPC = S.PC; |
| 15307 | const auto V0 = ReadArg<bool>(S, S.PC); |
| 15308 | const auto V1 = ReadArg<uint32_t>(S, S.PC); |
| 15309 | if (!DecPopBitfield<PT_Sint64>(S, OpPC, V0, V1)) return false; |
| 15310 | } |
| 15311 | #if USE_TAILCALLS |
| 15312 | MUSTTAIL return InterpNext(S); |
| 15313 | #else |
| 15314 | return true; |
| 15315 | #endif |
| 15316 | } |
| 15317 | PRESERVE_NONE |
| 15318 | static bool Interp_DecPopBitfieldUint64(InterpState &S) { |
| 15319 | { |
| 15320 | CodePtr OpPC = S.PC; |
| 15321 | const auto V0 = ReadArg<bool>(S, S.PC); |
| 15322 | const auto V1 = ReadArg<uint32_t>(S, S.PC); |
| 15323 | if (!DecPopBitfield<PT_Uint64>(S, OpPC, V0, V1)) return false; |
| 15324 | } |
| 15325 | #if USE_TAILCALLS |
| 15326 | MUSTTAIL return InterpNext(S); |
| 15327 | #else |
| 15328 | return true; |
| 15329 | #endif |
| 15330 | } |
| 15331 | PRESERVE_NONE |
| 15332 | static bool Interp_DecPopBitfieldIntAP(InterpState &S) { |
| 15333 | { |
| 15334 | CodePtr OpPC = S.PC; |
| 15335 | const auto V0 = ReadArg<bool>(S, S.PC); |
| 15336 | const auto V1 = ReadArg<uint32_t>(S, S.PC); |
| 15337 | if (!DecPopBitfield<PT_IntAP>(S, OpPC, V0, V1)) return false; |
| 15338 | } |
| 15339 | #if USE_TAILCALLS |
| 15340 | MUSTTAIL return InterpNext(S); |
| 15341 | #else |
| 15342 | return true; |
| 15343 | #endif |
| 15344 | } |
| 15345 | PRESERVE_NONE |
| 15346 | static bool Interp_DecPopBitfieldIntAPS(InterpState &S) { |
| 15347 | { |
| 15348 | CodePtr OpPC = S.PC; |
| 15349 | const auto V0 = ReadArg<bool>(S, S.PC); |
| 15350 | const auto V1 = ReadArg<uint32_t>(S, S.PC); |
| 15351 | if (!DecPopBitfield<PT_IntAPS>(S, OpPC, V0, V1)) return false; |
| 15352 | } |
| 15353 | #if USE_TAILCALLS |
| 15354 | MUSTTAIL return InterpNext(S); |
| 15355 | #else |
| 15356 | return true; |
| 15357 | #endif |
| 15358 | } |
| 15359 | PRESERVE_NONE |
| 15360 | static bool Interp_DecPopBitfieldBool(InterpState &S) { |
| 15361 | { |
| 15362 | CodePtr OpPC = S.PC; |
| 15363 | const auto V0 = ReadArg<bool>(S, S.PC); |
| 15364 | const auto V1 = ReadArg<uint32_t>(S, S.PC); |
| 15365 | if (!DecPopBitfield<PT_Bool>(S, OpPC, V0, V1)) return false; |
| 15366 | } |
| 15367 | #if USE_TAILCALLS |
| 15368 | MUSTTAIL return InterpNext(S); |
| 15369 | #else |
| 15370 | return true; |
| 15371 | #endif |
| 15372 | } |
| 15373 | PRESERVE_NONE |
| 15374 | static bool Interp_DecPopBitfieldFixedPoint(InterpState &S) { |
| 15375 | { |
| 15376 | CodePtr OpPC = S.PC; |
| 15377 | const auto V0 = ReadArg<bool>(S, S.PC); |
| 15378 | const auto V1 = ReadArg<uint32_t>(S, S.PC); |
| 15379 | if (!DecPopBitfield<PT_FixedPoint>(S, OpPC, V0, V1)) return false; |
| 15380 | } |
| 15381 | #if USE_TAILCALLS |
| 15382 | MUSTTAIL return InterpNext(S); |
| 15383 | #else |
| 15384 | return true; |
| 15385 | #endif |
| 15386 | } |
| 15387 | #endif |
| 15388 | #ifdef GET_DISASM |
| 15389 | case OP_DecPopBitfieldSint8: |
| 15390 | Text.Op = PrintName("DecPopBitfieldSint8" ); |
| 15391 | Text.Args.push_back(printArg<bool>(PC)); |
| 15392 | Text.Args.push_back(printArg<uint32_t>(PC)); |
| 15393 | break; |
| 15394 | case OP_DecPopBitfieldUint8: |
| 15395 | Text.Op = PrintName("DecPopBitfieldUint8" ); |
| 15396 | Text.Args.push_back(printArg<bool>(PC)); |
| 15397 | Text.Args.push_back(printArg<uint32_t>(PC)); |
| 15398 | break; |
| 15399 | case OP_DecPopBitfieldSint16: |
| 15400 | Text.Op = PrintName("DecPopBitfieldSint16" ); |
| 15401 | Text.Args.push_back(printArg<bool>(PC)); |
| 15402 | Text.Args.push_back(printArg<uint32_t>(PC)); |
| 15403 | break; |
| 15404 | case OP_DecPopBitfieldUint16: |
| 15405 | Text.Op = PrintName("DecPopBitfieldUint16" ); |
| 15406 | Text.Args.push_back(printArg<bool>(PC)); |
| 15407 | Text.Args.push_back(printArg<uint32_t>(PC)); |
| 15408 | break; |
| 15409 | case OP_DecPopBitfieldSint32: |
| 15410 | Text.Op = PrintName("DecPopBitfieldSint32" ); |
| 15411 | Text.Args.push_back(printArg<bool>(PC)); |
| 15412 | Text.Args.push_back(printArg<uint32_t>(PC)); |
| 15413 | break; |
| 15414 | case OP_DecPopBitfieldUint32: |
| 15415 | Text.Op = PrintName("DecPopBitfieldUint32" ); |
| 15416 | Text.Args.push_back(printArg<bool>(PC)); |
| 15417 | Text.Args.push_back(printArg<uint32_t>(PC)); |
| 15418 | break; |
| 15419 | case OP_DecPopBitfieldSint64: |
| 15420 | Text.Op = PrintName("DecPopBitfieldSint64" ); |
| 15421 | Text.Args.push_back(printArg<bool>(PC)); |
| 15422 | Text.Args.push_back(printArg<uint32_t>(PC)); |
| 15423 | break; |
| 15424 | case OP_DecPopBitfieldUint64: |
| 15425 | Text.Op = PrintName("DecPopBitfieldUint64" ); |
| 15426 | Text.Args.push_back(printArg<bool>(PC)); |
| 15427 | Text.Args.push_back(printArg<uint32_t>(PC)); |
| 15428 | break; |
| 15429 | case OP_DecPopBitfieldIntAP: |
| 15430 | Text.Op = PrintName("DecPopBitfieldIntAP" ); |
| 15431 | Text.Args.push_back(printArg<bool>(PC)); |
| 15432 | Text.Args.push_back(printArg<uint32_t>(PC)); |
| 15433 | break; |
| 15434 | case OP_DecPopBitfieldIntAPS: |
| 15435 | Text.Op = PrintName("DecPopBitfieldIntAPS" ); |
| 15436 | Text.Args.push_back(printArg<bool>(PC)); |
| 15437 | Text.Args.push_back(printArg<uint32_t>(PC)); |
| 15438 | break; |
| 15439 | case OP_DecPopBitfieldBool: |
| 15440 | Text.Op = PrintName("DecPopBitfieldBool" ); |
| 15441 | Text.Args.push_back(printArg<bool>(PC)); |
| 15442 | Text.Args.push_back(printArg<uint32_t>(PC)); |
| 15443 | break; |
| 15444 | case OP_DecPopBitfieldFixedPoint: |
| 15445 | Text.Op = PrintName("DecPopBitfieldFixedPoint" ); |
| 15446 | Text.Args.push_back(printArg<bool>(PC)); |
| 15447 | Text.Args.push_back(printArg<uint32_t>(PC)); |
| 15448 | break; |
| 15449 | #endif |
| 15450 | #if defined(GET_EVAL_PROTO) || defined(GET_LINK_PROTO) |
| 15451 | bool emitDecPopBitfieldSint8( bool , uint32_t , SourceInfo); |
| 15452 | bool emitDecPopBitfieldUint8( bool , uint32_t , SourceInfo); |
| 15453 | bool emitDecPopBitfieldSint16( bool , uint32_t , SourceInfo); |
| 15454 | bool emitDecPopBitfieldUint16( bool , uint32_t , SourceInfo); |
| 15455 | bool emitDecPopBitfieldSint32( bool , uint32_t , SourceInfo); |
| 15456 | bool emitDecPopBitfieldUint32( bool , uint32_t , SourceInfo); |
| 15457 | bool emitDecPopBitfieldSint64( bool , uint32_t , SourceInfo); |
| 15458 | bool emitDecPopBitfieldUint64( bool , uint32_t , SourceInfo); |
| 15459 | bool emitDecPopBitfieldIntAP( bool , uint32_t , SourceInfo); |
| 15460 | bool emitDecPopBitfieldIntAPS( bool , uint32_t , SourceInfo); |
| 15461 | bool emitDecPopBitfieldBool( bool , uint32_t , SourceInfo); |
| 15462 | bool emitDecPopBitfieldFixedPoint( bool , uint32_t , SourceInfo); |
| 15463 | #endif |
| 15464 | #if defined(GET_EVAL_PROTO) || defined(GET_LINK_PROTO) |
| 15465 | [[nodiscard]] bool emitDecPopBitfield(PrimType, bool, uint32_t, SourceInfo I); |
| 15466 | #endif |
| 15467 | #if defined(GET_EVAL_IMPL) || defined(GET_LINK_IMPL) |
| 15468 | bool |
| 15469 | #if defined(GET_EVAL_IMPL) |
| 15470 | EvalEmitter |
| 15471 | #else |
| 15472 | ByteCodeEmitter |
| 15473 | #endif |
| 15474 | ::emitDecPopBitfield(PrimType T0, bool A0, uint32_t A1, SourceInfo I) { |
| 15475 | switch (T0) { |
| 15476 | case PT_Sint8: |
| 15477 | return emitDecPopBitfieldSint8(A0, A1, I); |
| 15478 | case PT_Uint8: |
| 15479 | return emitDecPopBitfieldUint8(A0, A1, I); |
| 15480 | case PT_Sint16: |
| 15481 | return emitDecPopBitfieldSint16(A0, A1, I); |
| 15482 | case PT_Uint16: |
| 15483 | return emitDecPopBitfieldUint16(A0, A1, I); |
| 15484 | case PT_Sint32: |
| 15485 | return emitDecPopBitfieldSint32(A0, A1, I); |
| 15486 | case PT_Uint32: |
| 15487 | return emitDecPopBitfieldUint32(A0, A1, I); |
| 15488 | case PT_Sint64: |
| 15489 | return emitDecPopBitfieldSint64(A0, A1, I); |
| 15490 | case PT_Uint64: |
| 15491 | return emitDecPopBitfieldUint64(A0, A1, I); |
| 15492 | case PT_IntAP: |
| 15493 | return emitDecPopBitfieldIntAP(A0, A1, I); |
| 15494 | case PT_IntAPS: |
| 15495 | return emitDecPopBitfieldIntAPS(A0, A1, I); |
| 15496 | case PT_Bool: |
| 15497 | return emitDecPopBitfieldBool(A0, A1, I); |
| 15498 | case PT_FixedPoint: |
| 15499 | return emitDecPopBitfieldFixedPoint(A0, A1, I); |
| 15500 | default: llvm_unreachable("invalid type: emitDecPopBitfield" ); |
| 15501 | } |
| 15502 | llvm_unreachable("invalid enum value" ); |
| 15503 | } |
| 15504 | #endif |
| 15505 | #ifdef GET_LINK_IMPL |
| 15506 | bool ByteCodeEmitter::emitDecPopBitfieldSint8( bool A0, uint32_t A1, SourceInfo L) { |
| 15507 | return emitOp<bool, uint32_t>(OP_DecPopBitfieldSint8, A0, A1, L); |
| 15508 | } |
| 15509 | bool ByteCodeEmitter::emitDecPopBitfieldUint8( bool A0, uint32_t A1, SourceInfo L) { |
| 15510 | return emitOp<bool, uint32_t>(OP_DecPopBitfieldUint8, A0, A1, L); |
| 15511 | } |
| 15512 | bool ByteCodeEmitter::emitDecPopBitfieldSint16( bool A0, uint32_t A1, SourceInfo L) { |
| 15513 | return emitOp<bool, uint32_t>(OP_DecPopBitfieldSint16, A0, A1, L); |
| 15514 | } |
| 15515 | bool ByteCodeEmitter::emitDecPopBitfieldUint16( bool A0, uint32_t A1, SourceInfo L) { |
| 15516 | return emitOp<bool, uint32_t>(OP_DecPopBitfieldUint16, A0, A1, L); |
| 15517 | } |
| 15518 | bool ByteCodeEmitter::emitDecPopBitfieldSint32( bool A0, uint32_t A1, SourceInfo L) { |
| 15519 | return emitOp<bool, uint32_t>(OP_DecPopBitfieldSint32, A0, A1, L); |
| 15520 | } |
| 15521 | bool ByteCodeEmitter::emitDecPopBitfieldUint32( bool A0, uint32_t A1, SourceInfo L) { |
| 15522 | return emitOp<bool, uint32_t>(OP_DecPopBitfieldUint32, A0, A1, L); |
| 15523 | } |
| 15524 | bool ByteCodeEmitter::emitDecPopBitfieldSint64( bool A0, uint32_t A1, SourceInfo L) { |
| 15525 | return emitOp<bool, uint32_t>(OP_DecPopBitfieldSint64, A0, A1, L); |
| 15526 | } |
| 15527 | bool ByteCodeEmitter::emitDecPopBitfieldUint64( bool A0, uint32_t A1, SourceInfo L) { |
| 15528 | return emitOp<bool, uint32_t>(OP_DecPopBitfieldUint64, A0, A1, L); |
| 15529 | } |
| 15530 | bool ByteCodeEmitter::emitDecPopBitfieldIntAP( bool A0, uint32_t A1, SourceInfo L) { |
| 15531 | return emitOp<bool, uint32_t>(OP_DecPopBitfieldIntAP, A0, A1, L); |
| 15532 | } |
| 15533 | bool ByteCodeEmitter::emitDecPopBitfieldIntAPS( bool A0, uint32_t A1, SourceInfo L) { |
| 15534 | return emitOp<bool, uint32_t>(OP_DecPopBitfieldIntAPS, A0, A1, L); |
| 15535 | } |
| 15536 | bool ByteCodeEmitter::emitDecPopBitfieldBool( bool A0, uint32_t A1, SourceInfo L) { |
| 15537 | return emitOp<bool, uint32_t>(OP_DecPopBitfieldBool, A0, A1, L); |
| 15538 | } |
| 15539 | bool ByteCodeEmitter::emitDecPopBitfieldFixedPoint( bool A0, uint32_t A1, SourceInfo L) { |
| 15540 | return emitOp<bool, uint32_t>(OP_DecPopBitfieldFixedPoint, A0, A1, L); |
| 15541 | } |
| 15542 | #endif |
| 15543 | #ifdef GET_EVAL_IMPL |
| 15544 | bool EvalEmitter::emitDecPopBitfieldSint8( bool A0, uint32_t A1, SourceInfo L) { |
| 15545 | if (!isActive()) return true; |
| 15546 | CurrentSource = L; |
| 15547 | return DecPopBitfield<PT_Sint8>(S, CodePtr(), A0, A1); |
| 15548 | } |
| 15549 | bool EvalEmitter::emitDecPopBitfieldUint8( bool A0, uint32_t A1, SourceInfo L) { |
| 15550 | if (!isActive()) return true; |
| 15551 | CurrentSource = L; |
| 15552 | return DecPopBitfield<PT_Uint8>(S, CodePtr(), A0, A1); |
| 15553 | } |
| 15554 | bool EvalEmitter::emitDecPopBitfieldSint16( bool A0, uint32_t A1, SourceInfo L) { |
| 15555 | if (!isActive()) return true; |
| 15556 | CurrentSource = L; |
| 15557 | return DecPopBitfield<PT_Sint16>(S, CodePtr(), A0, A1); |
| 15558 | } |
| 15559 | bool EvalEmitter::emitDecPopBitfieldUint16( bool A0, uint32_t A1, SourceInfo L) { |
| 15560 | if (!isActive()) return true; |
| 15561 | CurrentSource = L; |
| 15562 | return DecPopBitfield<PT_Uint16>(S, CodePtr(), A0, A1); |
| 15563 | } |
| 15564 | bool EvalEmitter::emitDecPopBitfieldSint32( bool A0, uint32_t A1, SourceInfo L) { |
| 15565 | if (!isActive()) return true; |
| 15566 | CurrentSource = L; |
| 15567 | return DecPopBitfield<PT_Sint32>(S, CodePtr(), A0, A1); |
| 15568 | } |
| 15569 | bool EvalEmitter::emitDecPopBitfieldUint32( bool A0, uint32_t A1, SourceInfo L) { |
| 15570 | if (!isActive()) return true; |
| 15571 | CurrentSource = L; |
| 15572 | return DecPopBitfield<PT_Uint32>(S, CodePtr(), A0, A1); |
| 15573 | } |
| 15574 | bool EvalEmitter::emitDecPopBitfieldSint64( bool A0, uint32_t A1, SourceInfo L) { |
| 15575 | if (!isActive()) return true; |
| 15576 | CurrentSource = L; |
| 15577 | return DecPopBitfield<PT_Sint64>(S, CodePtr(), A0, A1); |
| 15578 | } |
| 15579 | bool EvalEmitter::emitDecPopBitfieldUint64( bool A0, uint32_t A1, SourceInfo L) { |
| 15580 | if (!isActive()) return true; |
| 15581 | CurrentSource = L; |
| 15582 | return DecPopBitfield<PT_Uint64>(S, CodePtr(), A0, A1); |
| 15583 | } |
| 15584 | bool EvalEmitter::emitDecPopBitfieldIntAP( bool A0, uint32_t A1, SourceInfo L) { |
| 15585 | if (!isActive()) return true; |
| 15586 | CurrentSource = L; |
| 15587 | return DecPopBitfield<PT_IntAP>(S, CodePtr(), A0, A1); |
| 15588 | } |
| 15589 | bool EvalEmitter::emitDecPopBitfieldIntAPS( bool A0, uint32_t A1, SourceInfo L) { |
| 15590 | if (!isActive()) return true; |
| 15591 | CurrentSource = L; |
| 15592 | return DecPopBitfield<PT_IntAPS>(S, CodePtr(), A0, A1); |
| 15593 | } |
| 15594 | bool EvalEmitter::emitDecPopBitfieldBool( bool A0, uint32_t A1, SourceInfo L) { |
| 15595 | if (!isActive()) return true; |
| 15596 | CurrentSource = L; |
| 15597 | return DecPopBitfield<PT_Bool>(S, CodePtr(), A0, A1); |
| 15598 | } |
| 15599 | bool EvalEmitter::emitDecPopBitfieldFixedPoint( bool A0, uint32_t A1, SourceInfo L) { |
| 15600 | if (!isActive()) return true; |
| 15601 | CurrentSource = L; |
| 15602 | return DecPopBitfield<PT_FixedPoint>(S, CodePtr(), A0, A1); |
| 15603 | } |
| 15604 | #endif |
| 15605 | #ifdef GET_OPCODE_NAMES |
| 15606 | OP_DecPtr, |
| 15607 | #endif |
| 15608 | #ifdef GET_INTERPFN_LIST |
| 15609 | &Interp_DecPtr, |
| 15610 | #endif |
| 15611 | #ifdef GET_INTERPFN_DISPATCHERS |
| 15612 | PRESERVE_NONE |
| 15613 | static bool Interp_DecPtr(InterpState &S) { |
| 15614 | if (!DecPtr(S, S.PC)) return false; |
| 15615 | #if USE_TAILCALLS |
| 15616 | MUSTTAIL return InterpNext(S); |
| 15617 | #else |
| 15618 | return true; |
| 15619 | #endif |
| 15620 | } |
| 15621 | #endif |
| 15622 | #ifdef GET_DISASM |
| 15623 | case OP_DecPtr: |
| 15624 | Text.Op = PrintName("DecPtr" ); |
| 15625 | break; |
| 15626 | #endif |
| 15627 | #if defined(GET_EVAL_PROTO) || defined(GET_LINK_PROTO) |
| 15628 | bool emitDecPtr(SourceInfo); |
| 15629 | #endif |
| 15630 | #ifdef GET_LINK_IMPL |
| 15631 | bool ByteCodeEmitter::emitDecPtr(SourceInfo L) { |
| 15632 | return emitOp<>(OP_DecPtr, L); |
| 15633 | } |
| 15634 | #endif |
| 15635 | #ifdef GET_EVAL_IMPL |
| 15636 | bool EvalEmitter::emitDecPtr(SourceInfo L) { |
| 15637 | if (!isActive()) return true; |
| 15638 | CurrentSource = L; |
| 15639 | return DecPtr(S, CodePtr()); |
| 15640 | } |
| 15641 | #endif |
| 15642 | #ifdef GET_OPCODE_NAMES |
| 15643 | OP_DecayPtrPtrPtr, |
| 15644 | OP_DecayPtrPtrMemberPtr, |
| 15645 | OP_DecayPtrMemberPtrPtr, |
| 15646 | OP_DecayPtrMemberPtrMemberPtr, |
| 15647 | #endif |
| 15648 | #ifdef GET_INTERPFN_LIST |
| 15649 | &Interp_DecayPtrPtrPtr, |
| 15650 | &Interp_DecayPtrPtrMemberPtr, |
| 15651 | &Interp_DecayPtrMemberPtrPtr, |
| 15652 | &Interp_DecayPtrMemberPtrMemberPtr, |
| 15653 | #endif |
| 15654 | #ifdef GET_INTERPFN_DISPATCHERS |
| 15655 | PRESERVE_NONE |
| 15656 | static bool Interp_DecayPtrPtrPtr(InterpState &S) { |
| 15657 | if (!DecayPtr<PT_Ptr, PT_Ptr>(S)) return false; |
| 15658 | #if USE_TAILCALLS |
| 15659 | MUSTTAIL return InterpNext(S); |
| 15660 | #else |
| 15661 | return true; |
| 15662 | #endif |
| 15663 | } |
| 15664 | PRESERVE_NONE |
| 15665 | static bool Interp_DecayPtrPtrMemberPtr(InterpState &S) { |
| 15666 | if (!DecayPtr<PT_Ptr, PT_MemberPtr>(S)) return false; |
| 15667 | #if USE_TAILCALLS |
| 15668 | MUSTTAIL return InterpNext(S); |
| 15669 | #else |
| 15670 | return true; |
| 15671 | #endif |
| 15672 | } |
| 15673 | PRESERVE_NONE |
| 15674 | static bool Interp_DecayPtrMemberPtrPtr(InterpState &S) { |
| 15675 | if (!DecayPtr<PT_MemberPtr, PT_Ptr>(S)) return false; |
| 15676 | #if USE_TAILCALLS |
| 15677 | MUSTTAIL return InterpNext(S); |
| 15678 | #else |
| 15679 | return true; |
| 15680 | #endif |
| 15681 | } |
| 15682 | PRESERVE_NONE |
| 15683 | static bool Interp_DecayPtrMemberPtrMemberPtr(InterpState &S) { |
| 15684 | if (!DecayPtr<PT_MemberPtr, PT_MemberPtr>(S)) return false; |
| 15685 | #if USE_TAILCALLS |
| 15686 | MUSTTAIL return InterpNext(S); |
| 15687 | #else |
| 15688 | return true; |
| 15689 | #endif |
| 15690 | } |
| 15691 | #endif |
| 15692 | #ifdef GET_DISASM |
| 15693 | case OP_DecayPtrPtrPtr: |
| 15694 | Text.Op = PrintName("DecayPtrPtrPtr" ); |
| 15695 | break; |
| 15696 | case OP_DecayPtrPtrMemberPtr: |
| 15697 | Text.Op = PrintName("DecayPtrPtrMemberPtr" ); |
| 15698 | break; |
| 15699 | case OP_DecayPtrMemberPtrPtr: |
| 15700 | Text.Op = PrintName("DecayPtrMemberPtrPtr" ); |
| 15701 | break; |
| 15702 | case OP_DecayPtrMemberPtrMemberPtr: |
| 15703 | Text.Op = PrintName("DecayPtrMemberPtrMemberPtr" ); |
| 15704 | break; |
| 15705 | #endif |
| 15706 | #if defined(GET_EVAL_PROTO) || defined(GET_LINK_PROTO) |
| 15707 | bool emitDecayPtrPtrPtr(SourceInfo); |
| 15708 | bool emitDecayPtrPtrMemberPtr(SourceInfo); |
| 15709 | bool emitDecayPtrMemberPtrPtr(SourceInfo); |
| 15710 | bool emitDecayPtrMemberPtrMemberPtr(SourceInfo); |
| 15711 | #endif |
| 15712 | #if defined(GET_EVAL_PROTO) || defined(GET_LINK_PROTO) |
| 15713 | [[nodiscard]] bool emitDecayPtr(PrimType, PrimType, SourceInfo I); |
| 15714 | #endif |
| 15715 | #if defined(GET_EVAL_IMPL) || defined(GET_LINK_IMPL) |
| 15716 | bool |
| 15717 | #if defined(GET_EVAL_IMPL) |
| 15718 | EvalEmitter |
| 15719 | #else |
| 15720 | ByteCodeEmitter |
| 15721 | #endif |
| 15722 | ::emitDecayPtr(PrimType T0, PrimType T1, SourceInfo I) { |
| 15723 | switch (T0) { |
| 15724 | case PT_Ptr: |
| 15725 | switch (T1) { |
| 15726 | case PT_Ptr: |
| 15727 | return emitDecayPtrPtrPtr(I); |
| 15728 | case PT_MemberPtr: |
| 15729 | return emitDecayPtrPtrMemberPtr(I); |
| 15730 | default: llvm_unreachable("invalid type: emitDecayPtr" ); |
| 15731 | } |
| 15732 | llvm_unreachable("invalid enum value" ); |
| 15733 | case PT_MemberPtr: |
| 15734 | switch (T1) { |
| 15735 | case PT_Ptr: |
| 15736 | return emitDecayPtrMemberPtrPtr(I); |
| 15737 | case PT_MemberPtr: |
| 15738 | return emitDecayPtrMemberPtrMemberPtr(I); |
| 15739 | default: llvm_unreachable("invalid type: emitDecayPtr" ); |
| 15740 | } |
| 15741 | llvm_unreachable("invalid enum value" ); |
| 15742 | default: llvm_unreachable("invalid type: emitDecayPtr" ); |
| 15743 | } |
| 15744 | llvm_unreachable("invalid enum value" ); |
| 15745 | } |
| 15746 | #endif |
| 15747 | #ifdef GET_LINK_IMPL |
| 15748 | bool ByteCodeEmitter::emitDecayPtrPtrPtr(SourceInfo L) { |
| 15749 | return emitOp<>(OP_DecayPtrPtrPtr, L); |
| 15750 | } |
| 15751 | bool ByteCodeEmitter::emitDecayPtrPtrMemberPtr(SourceInfo L) { |
| 15752 | return emitOp<>(OP_DecayPtrPtrMemberPtr, L); |
| 15753 | } |
| 15754 | bool ByteCodeEmitter::emitDecayPtrMemberPtrPtr(SourceInfo L) { |
| 15755 | return emitOp<>(OP_DecayPtrMemberPtrPtr, L); |
| 15756 | } |
| 15757 | bool ByteCodeEmitter::emitDecayPtrMemberPtrMemberPtr(SourceInfo L) { |
| 15758 | return emitOp<>(OP_DecayPtrMemberPtrMemberPtr, L); |
| 15759 | } |
| 15760 | #endif |
| 15761 | #ifdef GET_EVAL_IMPL |
| 15762 | bool EvalEmitter::emitDecayPtrPtrPtr(SourceInfo L) { |
| 15763 | if (!isActive()) return true; |
| 15764 | CurrentSource = L; |
| 15765 | return DecayPtr<PT_Ptr, PT_Ptr>(S); |
| 15766 | } |
| 15767 | bool EvalEmitter::emitDecayPtrPtrMemberPtr(SourceInfo L) { |
| 15768 | if (!isActive()) return true; |
| 15769 | CurrentSource = L; |
| 15770 | return DecayPtr<PT_Ptr, PT_MemberPtr>(S); |
| 15771 | } |
| 15772 | bool EvalEmitter::emitDecayPtrMemberPtrPtr(SourceInfo L) { |
| 15773 | if (!isActive()) return true; |
| 15774 | CurrentSource = L; |
| 15775 | return DecayPtr<PT_MemberPtr, PT_Ptr>(S); |
| 15776 | } |
| 15777 | bool EvalEmitter::emitDecayPtrMemberPtrMemberPtr(SourceInfo L) { |
| 15778 | if (!isActive()) return true; |
| 15779 | CurrentSource = L; |
| 15780 | return DecayPtr<PT_MemberPtr, PT_MemberPtr>(S); |
| 15781 | } |
| 15782 | #endif |
| 15783 | #ifdef GET_OPCODE_NAMES |
| 15784 | OP_Decf, |
| 15785 | #endif |
| 15786 | #ifdef GET_INTERPFN_LIST |
| 15787 | &Interp_Decf, |
| 15788 | #endif |
| 15789 | #ifdef GET_INTERPFN_DISPATCHERS |
| 15790 | PRESERVE_NONE |
| 15791 | static bool Interp_Decf(InterpState &S) { |
| 15792 | { |
| 15793 | CodePtr OpPC = S.PC; |
| 15794 | const auto V0 = ReadArg<uint32_t>(S, S.PC); |
| 15795 | if (!Decf(S, OpPC, V0)) return false; |
| 15796 | } |
| 15797 | #if USE_TAILCALLS |
| 15798 | MUSTTAIL return InterpNext(S); |
| 15799 | #else |
| 15800 | return true; |
| 15801 | #endif |
| 15802 | } |
| 15803 | #endif |
| 15804 | #ifdef GET_DISASM |
| 15805 | case OP_Decf: |
| 15806 | Text.Op = PrintName("Decf" ); |
| 15807 | Text.Args.push_back(printArg<uint32_t>(PC)); |
| 15808 | break; |
| 15809 | #endif |
| 15810 | #if defined(GET_EVAL_PROTO) || defined(GET_LINK_PROTO) |
| 15811 | bool emitDecf( uint32_t , SourceInfo); |
| 15812 | #endif |
| 15813 | #ifdef GET_LINK_IMPL |
| 15814 | bool ByteCodeEmitter::emitDecf( uint32_t A0, SourceInfo L) { |
| 15815 | return emitOp<uint32_t>(OP_Decf, A0, L); |
| 15816 | } |
| 15817 | #endif |
| 15818 | #ifdef GET_EVAL_IMPL |
| 15819 | bool EvalEmitter::emitDecf( uint32_t A0, SourceInfo L) { |
| 15820 | if (!isActive()) return true; |
| 15821 | CurrentSource = L; |
| 15822 | return Decf(S, CodePtr(), A0); |
| 15823 | } |
| 15824 | #endif |
| 15825 | #ifdef GET_OPCODE_NAMES |
| 15826 | OP_DecfPop, |
| 15827 | #endif |
| 15828 | #ifdef GET_INTERPFN_LIST |
| 15829 | &Interp_DecfPop, |
| 15830 | #endif |
| 15831 | #ifdef GET_INTERPFN_DISPATCHERS |
| 15832 | PRESERVE_NONE |
| 15833 | static bool Interp_DecfPop(InterpState &S) { |
| 15834 | { |
| 15835 | CodePtr OpPC = S.PC; |
| 15836 | const auto V0 = ReadArg<uint32_t>(S, S.PC); |
| 15837 | if (!DecfPop(S, OpPC, V0)) return false; |
| 15838 | } |
| 15839 | #if USE_TAILCALLS |
| 15840 | MUSTTAIL return InterpNext(S); |
| 15841 | #else |
| 15842 | return true; |
| 15843 | #endif |
| 15844 | } |
| 15845 | #endif |
| 15846 | #ifdef GET_DISASM |
| 15847 | case OP_DecfPop: |
| 15848 | Text.Op = PrintName("DecfPop" ); |
| 15849 | Text.Args.push_back(printArg<uint32_t>(PC)); |
| 15850 | break; |
| 15851 | #endif |
| 15852 | #if defined(GET_EVAL_PROTO) || defined(GET_LINK_PROTO) |
| 15853 | bool emitDecfPop( uint32_t , SourceInfo); |
| 15854 | #endif |
| 15855 | #ifdef GET_LINK_IMPL |
| 15856 | bool ByteCodeEmitter::emitDecfPop( uint32_t A0, SourceInfo L) { |
| 15857 | return emitOp<uint32_t>(OP_DecfPop, A0, L); |
| 15858 | } |
| 15859 | #endif |
| 15860 | #ifdef GET_EVAL_IMPL |
| 15861 | bool EvalEmitter::emitDecfPop( uint32_t A0, SourceInfo L) { |
| 15862 | if (!isActive()) return true; |
| 15863 | CurrentSource = L; |
| 15864 | return DecfPop(S, CodePtr(), A0); |
| 15865 | } |
| 15866 | #endif |
| 15867 | #ifdef GET_OPCODE_NAMES |
| 15868 | OP_DefaultInit, |
| 15869 | #endif |
| 15870 | #ifdef GET_INTERPFN_LIST |
| 15871 | &Interp_DefaultInit, |
| 15872 | #endif |
| 15873 | #ifdef GET_INTERPFN_DISPATCHERS |
| 15874 | PRESERVE_NONE |
| 15875 | static bool Interp_DefaultInit(InterpState &S) { |
| 15876 | { |
| 15877 | CodePtr OpPC = S.PC; |
| 15878 | const auto V0 = ReadArg<const CXXConstructorDecl *>(S, S.PC); |
| 15879 | if (!DefaultInit(S, OpPC, V0)) return false; |
| 15880 | } |
| 15881 | #if USE_TAILCALLS |
| 15882 | MUSTTAIL return InterpNext(S); |
| 15883 | #else |
| 15884 | return true; |
| 15885 | #endif |
| 15886 | } |
| 15887 | #endif |
| 15888 | #ifdef GET_DISASM |
| 15889 | case OP_DefaultInit: |
| 15890 | Text.Op = PrintName("DefaultInit" ); |
| 15891 | Text.Args.push_back(printArg<const CXXConstructorDecl *>(PC)); |
| 15892 | break; |
| 15893 | #endif |
| 15894 | #if defined(GET_EVAL_PROTO) || defined(GET_LINK_PROTO) |
| 15895 | bool emitDefaultInit( const CXXConstructorDecl * , SourceInfo); |
| 15896 | #endif |
| 15897 | #ifdef GET_LINK_IMPL |
| 15898 | bool ByteCodeEmitter::emitDefaultInit( const CXXConstructorDecl * A0, SourceInfo L) { |
| 15899 | return emitOp<const CXXConstructorDecl *>(OP_DefaultInit, A0, L); |
| 15900 | } |
| 15901 | #endif |
| 15902 | #ifdef GET_EVAL_IMPL |
| 15903 | bool EvalEmitter::emitDefaultInit( const CXXConstructorDecl * A0, SourceInfo L) { |
| 15904 | if (!isActive()) return true; |
| 15905 | CurrentSource = L; |
| 15906 | return DefaultInit(S, CodePtr(), A0); |
| 15907 | } |
| 15908 | #endif |
| 15909 | #ifdef GET_OPCODE_NAMES |
| 15910 | OP_Destroy, |
| 15911 | #endif |
| 15912 | #ifdef GET_INTERPFN_LIST |
| 15913 | &Interp_Destroy, |
| 15914 | #endif |
| 15915 | #ifdef GET_INTERPFN_DISPATCHERS |
| 15916 | PRESERVE_NONE |
| 15917 | static bool Interp_Destroy(InterpState &S) { |
| 15918 | { |
| 15919 | CodePtr OpPC = S.PC; |
| 15920 | const auto V0 = ReadArg<uint32_t>(S, S.PC); |
| 15921 | if (!Destroy(S, OpPC, V0)) return false; |
| 15922 | } |
| 15923 | #if USE_TAILCALLS |
| 15924 | MUSTTAIL return InterpNext(S); |
| 15925 | #else |
| 15926 | return true; |
| 15927 | #endif |
| 15928 | } |
| 15929 | #endif |
| 15930 | #ifdef GET_DISASM |
| 15931 | case OP_Destroy: |
| 15932 | Text.Op = PrintName("Destroy" ); |
| 15933 | Text.Args.push_back(printArg<uint32_t>(PC)); |
| 15934 | break; |
| 15935 | #endif |
| 15936 | #if defined(GET_EVAL_PROTO) || defined(GET_LINK_PROTO) |
| 15937 | bool emitDestroy( uint32_t , SourceInfo); |
| 15938 | #endif |
| 15939 | #ifdef GET_LINK_IMPL |
| 15940 | bool ByteCodeEmitter::emitDestroy( uint32_t A0, SourceInfo L) { |
| 15941 | return emitOp<uint32_t>(OP_Destroy, A0, L); |
| 15942 | } |
| 15943 | #endif |
| 15944 | #ifdef GET_OPCODE_NAMES |
| 15945 | OP_DiagTypeid, |
| 15946 | #endif |
| 15947 | #ifdef GET_INTERPFN_LIST |
| 15948 | &Interp_DiagTypeid, |
| 15949 | #endif |
| 15950 | #ifdef GET_INTERPFN_DISPATCHERS |
| 15951 | PRESERVE_NONE |
| 15952 | static bool Interp_DiagTypeid(InterpState &S) { |
| 15953 | if (!DiagTypeid(S, S.PC)) return false; |
| 15954 | #if USE_TAILCALLS |
| 15955 | MUSTTAIL return InterpNext(S); |
| 15956 | #else |
| 15957 | return true; |
| 15958 | #endif |
| 15959 | } |
| 15960 | #endif |
| 15961 | #ifdef GET_DISASM |
| 15962 | case OP_DiagTypeid: |
| 15963 | Text.Op = PrintName("DiagTypeid" ); |
| 15964 | break; |
| 15965 | #endif |
| 15966 | #if defined(GET_EVAL_PROTO) || defined(GET_LINK_PROTO) |
| 15967 | bool emitDiagTypeid(SourceInfo); |
| 15968 | #endif |
| 15969 | #ifdef GET_LINK_IMPL |
| 15970 | bool ByteCodeEmitter::emitDiagTypeid(SourceInfo L) { |
| 15971 | return emitOp<>(OP_DiagTypeid, L); |
| 15972 | } |
| 15973 | #endif |
| 15974 | #ifdef GET_EVAL_IMPL |
| 15975 | bool EvalEmitter::emitDiagTypeid(SourceInfo L) { |
| 15976 | if (!isActive()) return true; |
| 15977 | CurrentSource = L; |
| 15978 | return DiagTypeid(S, CodePtr()); |
| 15979 | } |
| 15980 | #endif |
| 15981 | #ifdef GET_OPCODE_NAMES |
| 15982 | OP_DivSint8, |
| 15983 | OP_DivUint8, |
| 15984 | OP_DivSint16, |
| 15985 | OP_DivUint16, |
| 15986 | OP_DivSint32, |
| 15987 | OP_DivUint32, |
| 15988 | OP_DivSint64, |
| 15989 | OP_DivUint64, |
| 15990 | OP_DivIntAP, |
| 15991 | OP_DivIntAPS, |
| 15992 | OP_DivFixedPoint, |
| 15993 | #endif |
| 15994 | #ifdef GET_INTERPFN_LIST |
| 15995 | &Interp_DivSint8, |
| 15996 | &Interp_DivUint8, |
| 15997 | &Interp_DivSint16, |
| 15998 | &Interp_DivUint16, |
| 15999 | &Interp_DivSint32, |
| 16000 | &Interp_DivUint32, |
| 16001 | &Interp_DivSint64, |
| 16002 | &Interp_DivUint64, |
| 16003 | &Interp_DivIntAP, |
| 16004 | &Interp_DivIntAPS, |
| 16005 | &Interp_DivFixedPoint, |
| 16006 | #endif |
| 16007 | #ifdef GET_INTERPFN_DISPATCHERS |
| 16008 | PRESERVE_NONE |
| 16009 | static bool Interp_DivSint8(InterpState &S) { |
| 16010 | if (!Div<PT_Sint8>(S, S.PC)) return false; |
| 16011 | #if USE_TAILCALLS |
| 16012 | MUSTTAIL return InterpNext(S); |
| 16013 | #else |
| 16014 | return true; |
| 16015 | #endif |
| 16016 | } |
| 16017 | PRESERVE_NONE |
| 16018 | static bool Interp_DivUint8(InterpState &S) { |
| 16019 | if (!Div<PT_Uint8>(S, S.PC)) return false; |
| 16020 | #if USE_TAILCALLS |
| 16021 | MUSTTAIL return InterpNext(S); |
| 16022 | #else |
| 16023 | return true; |
| 16024 | #endif |
| 16025 | } |
| 16026 | PRESERVE_NONE |
| 16027 | static bool Interp_DivSint16(InterpState &S) { |
| 16028 | if (!Div<PT_Sint16>(S, S.PC)) return false; |
| 16029 | #if USE_TAILCALLS |
| 16030 | MUSTTAIL return InterpNext(S); |
| 16031 | #else |
| 16032 | return true; |
| 16033 | #endif |
| 16034 | } |
| 16035 | PRESERVE_NONE |
| 16036 | static bool Interp_DivUint16(InterpState &S) { |
| 16037 | if (!Div<PT_Uint16>(S, S.PC)) return false; |
| 16038 | #if USE_TAILCALLS |
| 16039 | MUSTTAIL return InterpNext(S); |
| 16040 | #else |
| 16041 | return true; |
| 16042 | #endif |
| 16043 | } |
| 16044 | PRESERVE_NONE |
| 16045 | static bool Interp_DivSint32(InterpState &S) { |
| 16046 | if (!Div<PT_Sint32>(S, S.PC)) return false; |
| 16047 | #if USE_TAILCALLS |
| 16048 | MUSTTAIL return InterpNext(S); |
| 16049 | #else |
| 16050 | return true; |
| 16051 | #endif |
| 16052 | } |
| 16053 | PRESERVE_NONE |
| 16054 | static bool Interp_DivUint32(InterpState &S) { |
| 16055 | if (!Div<PT_Uint32>(S, S.PC)) return false; |
| 16056 | #if USE_TAILCALLS |
| 16057 | MUSTTAIL return InterpNext(S); |
| 16058 | #else |
| 16059 | return true; |
| 16060 | #endif |
| 16061 | } |
| 16062 | PRESERVE_NONE |
| 16063 | static bool Interp_DivSint64(InterpState &S) { |
| 16064 | if (!Div<PT_Sint64>(S, S.PC)) return false; |
| 16065 | #if USE_TAILCALLS |
| 16066 | MUSTTAIL return InterpNext(S); |
| 16067 | #else |
| 16068 | return true; |
| 16069 | #endif |
| 16070 | } |
| 16071 | PRESERVE_NONE |
| 16072 | static bool Interp_DivUint64(InterpState &S) { |
| 16073 | if (!Div<PT_Uint64>(S, S.PC)) return false; |
| 16074 | #if USE_TAILCALLS |
| 16075 | MUSTTAIL return InterpNext(S); |
| 16076 | #else |
| 16077 | return true; |
| 16078 | #endif |
| 16079 | } |
| 16080 | PRESERVE_NONE |
| 16081 | static bool Interp_DivIntAP(InterpState &S) { |
| 16082 | if (!Div<PT_IntAP>(S, S.PC)) return false; |
| 16083 | #if USE_TAILCALLS |
| 16084 | MUSTTAIL return InterpNext(S); |
| 16085 | #else |
| 16086 | return true; |
| 16087 | #endif |
| 16088 | } |
| 16089 | PRESERVE_NONE |
| 16090 | static bool Interp_DivIntAPS(InterpState &S) { |
| 16091 | if (!Div<PT_IntAPS>(S, S.PC)) return false; |
| 16092 | #if USE_TAILCALLS |
| 16093 | MUSTTAIL return InterpNext(S); |
| 16094 | #else |
| 16095 | return true; |
| 16096 | #endif |
| 16097 | } |
| 16098 | PRESERVE_NONE |
| 16099 | static bool Interp_DivFixedPoint(InterpState &S) { |
| 16100 | if (!Div<PT_FixedPoint>(S, S.PC)) return false; |
| 16101 | #if USE_TAILCALLS |
| 16102 | MUSTTAIL return InterpNext(S); |
| 16103 | #else |
| 16104 | return true; |
| 16105 | #endif |
| 16106 | } |
| 16107 | #endif |
| 16108 | #ifdef GET_DISASM |
| 16109 | case OP_DivSint8: |
| 16110 | Text.Op = PrintName("DivSint8" ); |
| 16111 | break; |
| 16112 | case OP_DivUint8: |
| 16113 | Text.Op = PrintName("DivUint8" ); |
| 16114 | break; |
| 16115 | case OP_DivSint16: |
| 16116 | Text.Op = PrintName("DivSint16" ); |
| 16117 | break; |
| 16118 | case OP_DivUint16: |
| 16119 | Text.Op = PrintName("DivUint16" ); |
| 16120 | break; |
| 16121 | case OP_DivSint32: |
| 16122 | Text.Op = PrintName("DivSint32" ); |
| 16123 | break; |
| 16124 | case OP_DivUint32: |
| 16125 | Text.Op = PrintName("DivUint32" ); |
| 16126 | break; |
| 16127 | case OP_DivSint64: |
| 16128 | Text.Op = PrintName("DivSint64" ); |
| 16129 | break; |
| 16130 | case OP_DivUint64: |
| 16131 | Text.Op = PrintName("DivUint64" ); |
| 16132 | break; |
| 16133 | case OP_DivIntAP: |
| 16134 | Text.Op = PrintName("DivIntAP" ); |
| 16135 | break; |
| 16136 | case OP_DivIntAPS: |
| 16137 | Text.Op = PrintName("DivIntAPS" ); |
| 16138 | break; |
| 16139 | case OP_DivFixedPoint: |
| 16140 | Text.Op = PrintName("DivFixedPoint" ); |
| 16141 | break; |
| 16142 | #endif |
| 16143 | #if defined(GET_EVAL_PROTO) || defined(GET_LINK_PROTO) |
| 16144 | bool emitDivSint8(SourceInfo); |
| 16145 | bool emitDivUint8(SourceInfo); |
| 16146 | bool emitDivSint16(SourceInfo); |
| 16147 | bool emitDivUint16(SourceInfo); |
| 16148 | bool emitDivSint32(SourceInfo); |
| 16149 | bool emitDivUint32(SourceInfo); |
| 16150 | bool emitDivSint64(SourceInfo); |
| 16151 | bool emitDivUint64(SourceInfo); |
| 16152 | bool emitDivIntAP(SourceInfo); |
| 16153 | bool emitDivIntAPS(SourceInfo); |
| 16154 | bool emitDivFixedPoint(SourceInfo); |
| 16155 | #endif |
| 16156 | #if defined(GET_EVAL_PROTO) || defined(GET_LINK_PROTO) |
| 16157 | [[nodiscard]] bool emitDiv(PrimType, SourceInfo I); |
| 16158 | #endif |
| 16159 | #if defined(GET_EVAL_IMPL) || defined(GET_LINK_IMPL) |
| 16160 | bool |
| 16161 | #if defined(GET_EVAL_IMPL) |
| 16162 | EvalEmitter |
| 16163 | #else |
| 16164 | ByteCodeEmitter |
| 16165 | #endif |
| 16166 | ::emitDiv(PrimType T0, SourceInfo I) { |
| 16167 | switch (T0) { |
| 16168 | case PT_Sint8: |
| 16169 | return emitDivSint8(I); |
| 16170 | case PT_Uint8: |
| 16171 | return emitDivUint8(I); |
| 16172 | case PT_Sint16: |
| 16173 | return emitDivSint16(I); |
| 16174 | case PT_Uint16: |
| 16175 | return emitDivUint16(I); |
| 16176 | case PT_Sint32: |
| 16177 | return emitDivSint32(I); |
| 16178 | case PT_Uint32: |
| 16179 | return emitDivUint32(I); |
| 16180 | case PT_Sint64: |
| 16181 | return emitDivSint64(I); |
| 16182 | case PT_Uint64: |
| 16183 | return emitDivUint64(I); |
| 16184 | case PT_IntAP: |
| 16185 | return emitDivIntAP(I); |
| 16186 | case PT_IntAPS: |
| 16187 | return emitDivIntAPS(I); |
| 16188 | case PT_FixedPoint: |
| 16189 | return emitDivFixedPoint(I); |
| 16190 | default: llvm_unreachable("invalid type: emitDiv" ); |
| 16191 | } |
| 16192 | llvm_unreachable("invalid enum value" ); |
| 16193 | } |
| 16194 | #endif |
| 16195 | #ifdef GET_LINK_IMPL |
| 16196 | bool ByteCodeEmitter::emitDivSint8(SourceInfo L) { |
| 16197 | return emitOp<>(OP_DivSint8, L); |
| 16198 | } |
| 16199 | bool ByteCodeEmitter::emitDivUint8(SourceInfo L) { |
| 16200 | return emitOp<>(OP_DivUint8, L); |
| 16201 | } |
| 16202 | bool ByteCodeEmitter::emitDivSint16(SourceInfo L) { |
| 16203 | return emitOp<>(OP_DivSint16, L); |
| 16204 | } |
| 16205 | bool ByteCodeEmitter::emitDivUint16(SourceInfo L) { |
| 16206 | return emitOp<>(OP_DivUint16, L); |
| 16207 | } |
| 16208 | bool ByteCodeEmitter::emitDivSint32(SourceInfo L) { |
| 16209 | return emitOp<>(OP_DivSint32, L); |
| 16210 | } |
| 16211 | bool ByteCodeEmitter::emitDivUint32(SourceInfo L) { |
| 16212 | return emitOp<>(OP_DivUint32, L); |
| 16213 | } |
| 16214 | bool ByteCodeEmitter::emitDivSint64(SourceInfo L) { |
| 16215 | return emitOp<>(OP_DivSint64, L); |
| 16216 | } |
| 16217 | bool ByteCodeEmitter::emitDivUint64(SourceInfo L) { |
| 16218 | return emitOp<>(OP_DivUint64, L); |
| 16219 | } |
| 16220 | bool ByteCodeEmitter::emitDivIntAP(SourceInfo L) { |
| 16221 | return emitOp<>(OP_DivIntAP, L); |
| 16222 | } |
| 16223 | bool ByteCodeEmitter::emitDivIntAPS(SourceInfo L) { |
| 16224 | return emitOp<>(OP_DivIntAPS, L); |
| 16225 | } |
| 16226 | bool ByteCodeEmitter::emitDivFixedPoint(SourceInfo L) { |
| 16227 | return emitOp<>(OP_DivFixedPoint, L); |
| 16228 | } |
| 16229 | #endif |
| 16230 | #ifdef GET_EVAL_IMPL |
| 16231 | bool EvalEmitter::emitDivSint8(SourceInfo L) { |
| 16232 | if (!isActive()) return true; |
| 16233 | CurrentSource = L; |
| 16234 | return Div<PT_Sint8>(S, CodePtr()); |
| 16235 | } |
| 16236 | bool EvalEmitter::emitDivUint8(SourceInfo L) { |
| 16237 | if (!isActive()) return true; |
| 16238 | CurrentSource = L; |
| 16239 | return Div<PT_Uint8>(S, CodePtr()); |
| 16240 | } |
| 16241 | bool EvalEmitter::emitDivSint16(SourceInfo L) { |
| 16242 | if (!isActive()) return true; |
| 16243 | CurrentSource = L; |
| 16244 | return Div<PT_Sint16>(S, CodePtr()); |
| 16245 | } |
| 16246 | bool EvalEmitter::emitDivUint16(SourceInfo L) { |
| 16247 | if (!isActive()) return true; |
| 16248 | CurrentSource = L; |
| 16249 | return Div<PT_Uint16>(S, CodePtr()); |
| 16250 | } |
| 16251 | bool EvalEmitter::emitDivSint32(SourceInfo L) { |
| 16252 | if (!isActive()) return true; |
| 16253 | CurrentSource = L; |
| 16254 | return Div<PT_Sint32>(S, CodePtr()); |
| 16255 | } |
| 16256 | bool EvalEmitter::emitDivUint32(SourceInfo L) { |
| 16257 | if (!isActive()) return true; |
| 16258 | CurrentSource = L; |
| 16259 | return Div<PT_Uint32>(S, CodePtr()); |
| 16260 | } |
| 16261 | bool EvalEmitter::emitDivSint64(SourceInfo L) { |
| 16262 | if (!isActive()) return true; |
| 16263 | CurrentSource = L; |
| 16264 | return Div<PT_Sint64>(S, CodePtr()); |
| 16265 | } |
| 16266 | bool EvalEmitter::emitDivUint64(SourceInfo L) { |
| 16267 | if (!isActive()) return true; |
| 16268 | CurrentSource = L; |
| 16269 | return Div<PT_Uint64>(S, CodePtr()); |
| 16270 | } |
| 16271 | bool EvalEmitter::emitDivIntAP(SourceInfo L) { |
| 16272 | if (!isActive()) return true; |
| 16273 | CurrentSource = L; |
| 16274 | return Div<PT_IntAP>(S, CodePtr()); |
| 16275 | } |
| 16276 | bool EvalEmitter::emitDivIntAPS(SourceInfo L) { |
| 16277 | if (!isActive()) return true; |
| 16278 | CurrentSource = L; |
| 16279 | return Div<PT_IntAPS>(S, CodePtr()); |
| 16280 | } |
| 16281 | bool EvalEmitter::emitDivFixedPoint(SourceInfo L) { |
| 16282 | if (!isActive()) return true; |
| 16283 | CurrentSource = L; |
| 16284 | return Div<PT_FixedPoint>(S, CodePtr()); |
| 16285 | } |
| 16286 | #endif |
| 16287 | #ifdef GET_OPCODE_NAMES |
| 16288 | OP_DivcSint8, |
| 16289 | OP_DivcUint8, |
| 16290 | OP_DivcSint16, |
| 16291 | OP_DivcUint16, |
| 16292 | OP_DivcSint32, |
| 16293 | OP_DivcUint32, |
| 16294 | OP_DivcSint64, |
| 16295 | OP_DivcUint64, |
| 16296 | OP_DivcIntAP, |
| 16297 | OP_DivcIntAPS, |
| 16298 | OP_DivcFloat, |
| 16299 | #endif |
| 16300 | #ifdef GET_INTERPFN_LIST |
| 16301 | &Interp_DivcSint8, |
| 16302 | &Interp_DivcUint8, |
| 16303 | &Interp_DivcSint16, |
| 16304 | &Interp_DivcUint16, |
| 16305 | &Interp_DivcSint32, |
| 16306 | &Interp_DivcUint32, |
| 16307 | &Interp_DivcSint64, |
| 16308 | &Interp_DivcUint64, |
| 16309 | &Interp_DivcIntAP, |
| 16310 | &Interp_DivcIntAPS, |
| 16311 | &Interp_DivcFloat, |
| 16312 | #endif |
| 16313 | #ifdef GET_INTERPFN_DISPATCHERS |
| 16314 | PRESERVE_NONE |
| 16315 | static bool Interp_DivcSint8(InterpState &S) { |
| 16316 | if (!Divc<PT_Sint8>(S, S.PC)) return false; |
| 16317 | #if USE_TAILCALLS |
| 16318 | MUSTTAIL return InterpNext(S); |
| 16319 | #else |
| 16320 | return true; |
| 16321 | #endif |
| 16322 | } |
| 16323 | PRESERVE_NONE |
| 16324 | static bool Interp_DivcUint8(InterpState &S) { |
| 16325 | if (!Divc<PT_Uint8>(S, S.PC)) return false; |
| 16326 | #if USE_TAILCALLS |
| 16327 | MUSTTAIL return InterpNext(S); |
| 16328 | #else |
| 16329 | return true; |
| 16330 | #endif |
| 16331 | } |
| 16332 | PRESERVE_NONE |
| 16333 | static bool Interp_DivcSint16(InterpState &S) { |
| 16334 | if (!Divc<PT_Sint16>(S, S.PC)) return false; |
| 16335 | #if USE_TAILCALLS |
| 16336 | MUSTTAIL return InterpNext(S); |
| 16337 | #else |
| 16338 | return true; |
| 16339 | #endif |
| 16340 | } |
| 16341 | PRESERVE_NONE |
| 16342 | static bool Interp_DivcUint16(InterpState &S) { |
| 16343 | if (!Divc<PT_Uint16>(S, S.PC)) return false; |
| 16344 | #if USE_TAILCALLS |
| 16345 | MUSTTAIL return InterpNext(S); |
| 16346 | #else |
| 16347 | return true; |
| 16348 | #endif |
| 16349 | } |
| 16350 | PRESERVE_NONE |
| 16351 | static bool Interp_DivcSint32(InterpState &S) { |
| 16352 | if (!Divc<PT_Sint32>(S, S.PC)) return false; |
| 16353 | #if USE_TAILCALLS |
| 16354 | MUSTTAIL return InterpNext(S); |
| 16355 | #else |
| 16356 | return true; |
| 16357 | #endif |
| 16358 | } |
| 16359 | PRESERVE_NONE |
| 16360 | static bool Interp_DivcUint32(InterpState &S) { |
| 16361 | if (!Divc<PT_Uint32>(S, S.PC)) return false; |
| 16362 | #if USE_TAILCALLS |
| 16363 | MUSTTAIL return InterpNext(S); |
| 16364 | #else |
| 16365 | return true; |
| 16366 | #endif |
| 16367 | } |
| 16368 | PRESERVE_NONE |
| 16369 | static bool Interp_DivcSint64(InterpState &S) { |
| 16370 | if (!Divc<PT_Sint64>(S, S.PC)) return false; |
| 16371 | #if USE_TAILCALLS |
| 16372 | MUSTTAIL return InterpNext(S); |
| 16373 | #else |
| 16374 | return true; |
| 16375 | #endif |
| 16376 | } |
| 16377 | PRESERVE_NONE |
| 16378 | static bool Interp_DivcUint64(InterpState &S) { |
| 16379 | if (!Divc<PT_Uint64>(S, S.PC)) return false; |
| 16380 | #if USE_TAILCALLS |
| 16381 | MUSTTAIL return InterpNext(S); |
| 16382 | #else |
| 16383 | return true; |
| 16384 | #endif |
| 16385 | } |
| 16386 | PRESERVE_NONE |
| 16387 | static bool Interp_DivcIntAP(InterpState &S) { |
| 16388 | if (!Divc<PT_IntAP>(S, S.PC)) return false; |
| 16389 | #if USE_TAILCALLS |
| 16390 | MUSTTAIL return InterpNext(S); |
| 16391 | #else |
| 16392 | return true; |
| 16393 | #endif |
| 16394 | } |
| 16395 | PRESERVE_NONE |
| 16396 | static bool Interp_DivcIntAPS(InterpState &S) { |
| 16397 | if (!Divc<PT_IntAPS>(S, S.PC)) return false; |
| 16398 | #if USE_TAILCALLS |
| 16399 | MUSTTAIL return InterpNext(S); |
| 16400 | #else |
| 16401 | return true; |
| 16402 | #endif |
| 16403 | } |
| 16404 | PRESERVE_NONE |
| 16405 | static bool Interp_DivcFloat(InterpState &S) { |
| 16406 | if (!Divc<PT_Float>(S, S.PC)) return false; |
| 16407 | #if USE_TAILCALLS |
| 16408 | MUSTTAIL return InterpNext(S); |
| 16409 | #else |
| 16410 | return true; |
| 16411 | #endif |
| 16412 | } |
| 16413 | #endif |
| 16414 | #ifdef GET_DISASM |
| 16415 | case OP_DivcSint8: |
| 16416 | Text.Op = PrintName("DivcSint8" ); |
| 16417 | break; |
| 16418 | case OP_DivcUint8: |
| 16419 | Text.Op = PrintName("DivcUint8" ); |
| 16420 | break; |
| 16421 | case OP_DivcSint16: |
| 16422 | Text.Op = PrintName("DivcSint16" ); |
| 16423 | break; |
| 16424 | case OP_DivcUint16: |
| 16425 | Text.Op = PrintName("DivcUint16" ); |
| 16426 | break; |
| 16427 | case OP_DivcSint32: |
| 16428 | Text.Op = PrintName("DivcSint32" ); |
| 16429 | break; |
| 16430 | case OP_DivcUint32: |
| 16431 | Text.Op = PrintName("DivcUint32" ); |
| 16432 | break; |
| 16433 | case OP_DivcSint64: |
| 16434 | Text.Op = PrintName("DivcSint64" ); |
| 16435 | break; |
| 16436 | case OP_DivcUint64: |
| 16437 | Text.Op = PrintName("DivcUint64" ); |
| 16438 | break; |
| 16439 | case OP_DivcIntAP: |
| 16440 | Text.Op = PrintName("DivcIntAP" ); |
| 16441 | break; |
| 16442 | case OP_DivcIntAPS: |
| 16443 | Text.Op = PrintName("DivcIntAPS" ); |
| 16444 | break; |
| 16445 | case OP_DivcFloat: |
| 16446 | Text.Op = PrintName("DivcFloat" ); |
| 16447 | break; |
| 16448 | #endif |
| 16449 | #if defined(GET_EVAL_PROTO) || defined(GET_LINK_PROTO) |
| 16450 | bool emitDivcSint8(SourceInfo); |
| 16451 | bool emitDivcUint8(SourceInfo); |
| 16452 | bool emitDivcSint16(SourceInfo); |
| 16453 | bool emitDivcUint16(SourceInfo); |
| 16454 | bool emitDivcSint32(SourceInfo); |
| 16455 | bool emitDivcUint32(SourceInfo); |
| 16456 | bool emitDivcSint64(SourceInfo); |
| 16457 | bool emitDivcUint64(SourceInfo); |
| 16458 | bool emitDivcIntAP(SourceInfo); |
| 16459 | bool emitDivcIntAPS(SourceInfo); |
| 16460 | bool emitDivcFloat(SourceInfo); |
| 16461 | #endif |
| 16462 | #if defined(GET_EVAL_PROTO) || defined(GET_LINK_PROTO) |
| 16463 | [[nodiscard]] bool emitDivc(PrimType, SourceInfo I); |
| 16464 | #endif |
| 16465 | #if defined(GET_EVAL_IMPL) || defined(GET_LINK_IMPL) |
| 16466 | bool |
| 16467 | #if defined(GET_EVAL_IMPL) |
| 16468 | EvalEmitter |
| 16469 | #else |
| 16470 | ByteCodeEmitter |
| 16471 | #endif |
| 16472 | ::emitDivc(PrimType T0, SourceInfo I) { |
| 16473 | switch (T0) { |
| 16474 | case PT_Sint8: |
| 16475 | return emitDivcSint8(I); |
| 16476 | case PT_Uint8: |
| 16477 | return emitDivcUint8(I); |
| 16478 | case PT_Sint16: |
| 16479 | return emitDivcSint16(I); |
| 16480 | case PT_Uint16: |
| 16481 | return emitDivcUint16(I); |
| 16482 | case PT_Sint32: |
| 16483 | return emitDivcSint32(I); |
| 16484 | case PT_Uint32: |
| 16485 | return emitDivcUint32(I); |
| 16486 | case PT_Sint64: |
| 16487 | return emitDivcSint64(I); |
| 16488 | case PT_Uint64: |
| 16489 | return emitDivcUint64(I); |
| 16490 | case PT_IntAP: |
| 16491 | return emitDivcIntAP(I); |
| 16492 | case PT_IntAPS: |
| 16493 | return emitDivcIntAPS(I); |
| 16494 | case PT_Float: |
| 16495 | return emitDivcFloat(I); |
| 16496 | default: llvm_unreachable("invalid type: emitDivc" ); |
| 16497 | } |
| 16498 | llvm_unreachable("invalid enum value" ); |
| 16499 | } |
| 16500 | #endif |
| 16501 | #ifdef GET_LINK_IMPL |
| 16502 | bool ByteCodeEmitter::emitDivcSint8(SourceInfo L) { |
| 16503 | return emitOp<>(OP_DivcSint8, L); |
| 16504 | } |
| 16505 | bool ByteCodeEmitter::emitDivcUint8(SourceInfo L) { |
| 16506 | return emitOp<>(OP_DivcUint8, L); |
| 16507 | } |
| 16508 | bool ByteCodeEmitter::emitDivcSint16(SourceInfo L) { |
| 16509 | return emitOp<>(OP_DivcSint16, L); |
| 16510 | } |
| 16511 | bool ByteCodeEmitter::emitDivcUint16(SourceInfo L) { |
| 16512 | return emitOp<>(OP_DivcUint16, L); |
| 16513 | } |
| 16514 | bool ByteCodeEmitter::emitDivcSint32(SourceInfo L) { |
| 16515 | return emitOp<>(OP_DivcSint32, L); |
| 16516 | } |
| 16517 | bool ByteCodeEmitter::emitDivcUint32(SourceInfo L) { |
| 16518 | return emitOp<>(OP_DivcUint32, L); |
| 16519 | } |
| 16520 | bool ByteCodeEmitter::emitDivcSint64(SourceInfo L) { |
| 16521 | return emitOp<>(OP_DivcSint64, L); |
| 16522 | } |
| 16523 | bool ByteCodeEmitter::emitDivcUint64(SourceInfo L) { |
| 16524 | return emitOp<>(OP_DivcUint64, L); |
| 16525 | } |
| 16526 | bool ByteCodeEmitter::emitDivcIntAP(SourceInfo L) { |
| 16527 | return emitOp<>(OP_DivcIntAP, L); |
| 16528 | } |
| 16529 | bool ByteCodeEmitter::emitDivcIntAPS(SourceInfo L) { |
| 16530 | return emitOp<>(OP_DivcIntAPS, L); |
| 16531 | } |
| 16532 | bool ByteCodeEmitter::emitDivcFloat(SourceInfo L) { |
| 16533 | return emitOp<>(OP_DivcFloat, L); |
| 16534 | } |
| 16535 | #endif |
| 16536 | #ifdef GET_EVAL_IMPL |
| 16537 | bool EvalEmitter::emitDivcSint8(SourceInfo L) { |
| 16538 | if (!isActive()) return true; |
| 16539 | CurrentSource = L; |
| 16540 | return Divc<PT_Sint8>(S, CodePtr()); |
| 16541 | } |
| 16542 | bool EvalEmitter::emitDivcUint8(SourceInfo L) { |
| 16543 | if (!isActive()) return true; |
| 16544 | CurrentSource = L; |
| 16545 | return Divc<PT_Uint8>(S, CodePtr()); |
| 16546 | } |
| 16547 | bool EvalEmitter::emitDivcSint16(SourceInfo L) { |
| 16548 | if (!isActive()) return true; |
| 16549 | CurrentSource = L; |
| 16550 | return Divc<PT_Sint16>(S, CodePtr()); |
| 16551 | } |
| 16552 | bool EvalEmitter::emitDivcUint16(SourceInfo L) { |
| 16553 | if (!isActive()) return true; |
| 16554 | CurrentSource = L; |
| 16555 | return Divc<PT_Uint16>(S, CodePtr()); |
| 16556 | } |
| 16557 | bool EvalEmitter::emitDivcSint32(SourceInfo L) { |
| 16558 | if (!isActive()) return true; |
| 16559 | CurrentSource = L; |
| 16560 | return Divc<PT_Sint32>(S, CodePtr()); |
| 16561 | } |
| 16562 | bool EvalEmitter::emitDivcUint32(SourceInfo L) { |
| 16563 | if (!isActive()) return true; |
| 16564 | CurrentSource = L; |
| 16565 | return Divc<PT_Uint32>(S, CodePtr()); |
| 16566 | } |
| 16567 | bool EvalEmitter::emitDivcSint64(SourceInfo L) { |
| 16568 | if (!isActive()) return true; |
| 16569 | CurrentSource = L; |
| 16570 | return Divc<PT_Sint64>(S, CodePtr()); |
| 16571 | } |
| 16572 | bool EvalEmitter::emitDivcUint64(SourceInfo L) { |
| 16573 | if (!isActive()) return true; |
| 16574 | CurrentSource = L; |
| 16575 | return Divc<PT_Uint64>(S, CodePtr()); |
| 16576 | } |
| 16577 | bool EvalEmitter::emitDivcIntAP(SourceInfo L) { |
| 16578 | if (!isActive()) return true; |
| 16579 | CurrentSource = L; |
| 16580 | return Divc<PT_IntAP>(S, CodePtr()); |
| 16581 | } |
| 16582 | bool EvalEmitter::emitDivcIntAPS(SourceInfo L) { |
| 16583 | if (!isActive()) return true; |
| 16584 | CurrentSource = L; |
| 16585 | return Divc<PT_IntAPS>(S, CodePtr()); |
| 16586 | } |
| 16587 | bool EvalEmitter::emitDivcFloat(SourceInfo L) { |
| 16588 | if (!isActive()) return true; |
| 16589 | CurrentSource = L; |
| 16590 | return Divc<PT_Float>(S, CodePtr()); |
| 16591 | } |
| 16592 | #endif |
| 16593 | #ifdef GET_OPCODE_NAMES |
| 16594 | OP_Divf, |
| 16595 | #endif |
| 16596 | #ifdef GET_INTERPFN_LIST |
| 16597 | &Interp_Divf, |
| 16598 | #endif |
| 16599 | #ifdef GET_INTERPFN_DISPATCHERS |
| 16600 | PRESERVE_NONE |
| 16601 | static bool Interp_Divf(InterpState &S) { |
| 16602 | { |
| 16603 | CodePtr OpPC = S.PC; |
| 16604 | const auto V0 = ReadArg<uint32_t>(S, S.PC); |
| 16605 | if (!Divf(S, OpPC, V0)) return false; |
| 16606 | } |
| 16607 | #if USE_TAILCALLS |
| 16608 | MUSTTAIL return InterpNext(S); |
| 16609 | #else |
| 16610 | return true; |
| 16611 | #endif |
| 16612 | } |
| 16613 | #endif |
| 16614 | #ifdef GET_DISASM |
| 16615 | case OP_Divf: |
| 16616 | Text.Op = PrintName("Divf" ); |
| 16617 | Text.Args.push_back(printArg<uint32_t>(PC)); |
| 16618 | break; |
| 16619 | #endif |
| 16620 | #if defined(GET_EVAL_PROTO) || defined(GET_LINK_PROTO) |
| 16621 | bool emitDivf( uint32_t , SourceInfo); |
| 16622 | #endif |
| 16623 | #ifdef GET_LINK_IMPL |
| 16624 | bool ByteCodeEmitter::emitDivf( uint32_t A0, SourceInfo L) { |
| 16625 | return emitOp<uint32_t>(OP_Divf, A0, L); |
| 16626 | } |
| 16627 | #endif |
| 16628 | #ifdef GET_EVAL_IMPL |
| 16629 | bool EvalEmitter::emitDivf( uint32_t A0, SourceInfo L) { |
| 16630 | if (!isActive()) return true; |
| 16631 | CurrentSource = L; |
| 16632 | return Divf(S, CodePtr(), A0); |
| 16633 | } |
| 16634 | #endif |
| 16635 | #ifdef GET_OPCODE_NAMES |
| 16636 | OP_Dump, |
| 16637 | #endif |
| 16638 | #ifdef GET_INTERPFN_LIST |
| 16639 | &Interp_Dump, |
| 16640 | #endif |
| 16641 | #ifdef GET_INTERPFN_DISPATCHERS |
| 16642 | PRESERVE_NONE |
| 16643 | static bool Interp_Dump(InterpState &S) { |
| 16644 | if (!Dump(S)) return false; |
| 16645 | #if USE_TAILCALLS |
| 16646 | MUSTTAIL return InterpNext(S); |
| 16647 | #else |
| 16648 | return true; |
| 16649 | #endif |
| 16650 | } |
| 16651 | #endif |
| 16652 | #ifdef GET_DISASM |
| 16653 | case OP_Dump: |
| 16654 | Text.Op = PrintName("Dump" ); |
| 16655 | break; |
| 16656 | #endif |
| 16657 | #if defined(GET_EVAL_PROTO) || defined(GET_LINK_PROTO) |
| 16658 | bool emitDump(SourceInfo); |
| 16659 | #endif |
| 16660 | #ifdef GET_LINK_IMPL |
| 16661 | bool ByteCodeEmitter::emitDump(SourceInfo L) { |
| 16662 | return emitOp<>(OP_Dump, L); |
| 16663 | } |
| 16664 | #endif |
| 16665 | #ifdef GET_EVAL_IMPL |
| 16666 | bool EvalEmitter::emitDump(SourceInfo L) { |
| 16667 | if (!isActive()) return true; |
| 16668 | CurrentSource = L; |
| 16669 | return Dump(S); |
| 16670 | } |
| 16671 | #endif |
| 16672 | #ifdef GET_OPCODE_NAMES |
| 16673 | OP_DupSint8, |
| 16674 | OP_DupUint8, |
| 16675 | OP_DupSint16, |
| 16676 | OP_DupUint16, |
| 16677 | OP_DupSint32, |
| 16678 | OP_DupUint32, |
| 16679 | OP_DupSint64, |
| 16680 | OP_DupUint64, |
| 16681 | OP_DupIntAP, |
| 16682 | OP_DupIntAPS, |
| 16683 | OP_DupBool, |
| 16684 | OP_DupFixedPoint, |
| 16685 | OP_DupPtr, |
| 16686 | OP_DupMemberPtr, |
| 16687 | OP_DupFloat, |
| 16688 | OP_DupReflect, |
| 16689 | #endif |
| 16690 | #ifdef GET_INTERPFN_LIST |
| 16691 | &Interp_DupSint8, |
| 16692 | &Interp_DupUint8, |
| 16693 | &Interp_DupSint16, |
| 16694 | &Interp_DupUint16, |
| 16695 | &Interp_DupSint32, |
| 16696 | &Interp_DupUint32, |
| 16697 | &Interp_DupSint64, |
| 16698 | &Interp_DupUint64, |
| 16699 | &Interp_DupIntAP, |
| 16700 | &Interp_DupIntAPS, |
| 16701 | &Interp_DupBool, |
| 16702 | &Interp_DupFixedPoint, |
| 16703 | &Interp_DupPtr, |
| 16704 | &Interp_DupMemberPtr, |
| 16705 | &Interp_DupFloat, |
| 16706 | &Interp_DupReflect, |
| 16707 | #endif |
| 16708 | #ifdef GET_INTERPFN_DISPATCHERS |
| 16709 | PRESERVE_NONE |
| 16710 | static bool Interp_DupSint8(InterpState &S) { |
| 16711 | Dup<PT_Sint8>(S); |
| 16712 | #if USE_TAILCALLS |
| 16713 | MUSTTAIL return InterpNext(S); |
| 16714 | #else |
| 16715 | return true; |
| 16716 | #endif |
| 16717 | } |
| 16718 | PRESERVE_NONE |
| 16719 | static bool Interp_DupUint8(InterpState &S) { |
| 16720 | Dup<PT_Uint8>(S); |
| 16721 | #if USE_TAILCALLS |
| 16722 | MUSTTAIL return InterpNext(S); |
| 16723 | #else |
| 16724 | return true; |
| 16725 | #endif |
| 16726 | } |
| 16727 | PRESERVE_NONE |
| 16728 | static bool Interp_DupSint16(InterpState &S) { |
| 16729 | Dup<PT_Sint16>(S); |
| 16730 | #if USE_TAILCALLS |
| 16731 | MUSTTAIL return InterpNext(S); |
| 16732 | #else |
| 16733 | return true; |
| 16734 | #endif |
| 16735 | } |
| 16736 | PRESERVE_NONE |
| 16737 | static bool Interp_DupUint16(InterpState &S) { |
| 16738 | Dup<PT_Uint16>(S); |
| 16739 | #if USE_TAILCALLS |
| 16740 | MUSTTAIL return InterpNext(S); |
| 16741 | #else |
| 16742 | return true; |
| 16743 | #endif |
| 16744 | } |
| 16745 | PRESERVE_NONE |
| 16746 | static bool Interp_DupSint32(InterpState &S) { |
| 16747 | Dup<PT_Sint32>(S); |
| 16748 | #if USE_TAILCALLS |
| 16749 | MUSTTAIL return InterpNext(S); |
| 16750 | #else |
| 16751 | return true; |
| 16752 | #endif |
| 16753 | } |
| 16754 | PRESERVE_NONE |
| 16755 | static bool Interp_DupUint32(InterpState &S) { |
| 16756 | Dup<PT_Uint32>(S); |
| 16757 | #if USE_TAILCALLS |
| 16758 | MUSTTAIL return InterpNext(S); |
| 16759 | #else |
| 16760 | return true; |
| 16761 | #endif |
| 16762 | } |
| 16763 | PRESERVE_NONE |
| 16764 | static bool Interp_DupSint64(InterpState &S) { |
| 16765 | Dup<PT_Sint64>(S); |
| 16766 | #if USE_TAILCALLS |
| 16767 | MUSTTAIL return InterpNext(S); |
| 16768 | #else |
| 16769 | return true; |
| 16770 | #endif |
| 16771 | } |
| 16772 | PRESERVE_NONE |
| 16773 | static bool Interp_DupUint64(InterpState &S) { |
| 16774 | Dup<PT_Uint64>(S); |
| 16775 | #if USE_TAILCALLS |
| 16776 | MUSTTAIL return InterpNext(S); |
| 16777 | #else |
| 16778 | return true; |
| 16779 | #endif |
| 16780 | } |
| 16781 | PRESERVE_NONE |
| 16782 | static bool Interp_DupIntAP(InterpState &S) { |
| 16783 | Dup<PT_IntAP>(S); |
| 16784 | #if USE_TAILCALLS |
| 16785 | MUSTTAIL return InterpNext(S); |
| 16786 | #else |
| 16787 | return true; |
| 16788 | #endif |
| 16789 | } |
| 16790 | PRESERVE_NONE |
| 16791 | static bool Interp_DupIntAPS(InterpState &S) { |
| 16792 | Dup<PT_IntAPS>(S); |
| 16793 | #if USE_TAILCALLS |
| 16794 | MUSTTAIL return InterpNext(S); |
| 16795 | #else |
| 16796 | return true; |
| 16797 | #endif |
| 16798 | } |
| 16799 | PRESERVE_NONE |
| 16800 | static bool Interp_DupBool(InterpState &S) { |
| 16801 | Dup<PT_Bool>(S); |
| 16802 | #if USE_TAILCALLS |
| 16803 | MUSTTAIL return InterpNext(S); |
| 16804 | #else |
| 16805 | return true; |
| 16806 | #endif |
| 16807 | } |
| 16808 | PRESERVE_NONE |
| 16809 | static bool Interp_DupFixedPoint(InterpState &S) { |
| 16810 | Dup<PT_FixedPoint>(S); |
| 16811 | #if USE_TAILCALLS |
| 16812 | MUSTTAIL return InterpNext(S); |
| 16813 | #else |
| 16814 | return true; |
| 16815 | #endif |
| 16816 | } |
| 16817 | PRESERVE_NONE |
| 16818 | static bool Interp_DupPtr(InterpState &S) { |
| 16819 | Dup<PT_Ptr>(S); |
| 16820 | #if USE_TAILCALLS |
| 16821 | MUSTTAIL return InterpNext(S); |
| 16822 | #else |
| 16823 | return true; |
| 16824 | #endif |
| 16825 | } |
| 16826 | PRESERVE_NONE |
| 16827 | static bool Interp_DupMemberPtr(InterpState &S) { |
| 16828 | Dup<PT_MemberPtr>(S); |
| 16829 | #if USE_TAILCALLS |
| 16830 | MUSTTAIL return InterpNext(S); |
| 16831 | #else |
| 16832 | return true; |
| 16833 | #endif |
| 16834 | } |
| 16835 | PRESERVE_NONE |
| 16836 | static bool Interp_DupFloat(InterpState &S) { |
| 16837 | Dup<PT_Float>(S); |
| 16838 | #if USE_TAILCALLS |
| 16839 | MUSTTAIL return InterpNext(S); |
| 16840 | #else |
| 16841 | return true; |
| 16842 | #endif |
| 16843 | } |
| 16844 | PRESERVE_NONE |
| 16845 | static bool Interp_DupReflect(InterpState &S) { |
| 16846 | Dup<PT_Reflect>(S); |
| 16847 | #if USE_TAILCALLS |
| 16848 | MUSTTAIL return InterpNext(S); |
| 16849 | #else |
| 16850 | return true; |
| 16851 | #endif |
| 16852 | } |
| 16853 | #endif |
| 16854 | #ifdef GET_DISASM |
| 16855 | case OP_DupSint8: |
| 16856 | Text.Op = PrintName("DupSint8" ); |
| 16857 | break; |
| 16858 | case OP_DupUint8: |
| 16859 | Text.Op = PrintName("DupUint8" ); |
| 16860 | break; |
| 16861 | case OP_DupSint16: |
| 16862 | Text.Op = PrintName("DupSint16" ); |
| 16863 | break; |
| 16864 | case OP_DupUint16: |
| 16865 | Text.Op = PrintName("DupUint16" ); |
| 16866 | break; |
| 16867 | case OP_DupSint32: |
| 16868 | Text.Op = PrintName("DupSint32" ); |
| 16869 | break; |
| 16870 | case OP_DupUint32: |
| 16871 | Text.Op = PrintName("DupUint32" ); |
| 16872 | break; |
| 16873 | case OP_DupSint64: |
| 16874 | Text.Op = PrintName("DupSint64" ); |
| 16875 | break; |
| 16876 | case OP_DupUint64: |
| 16877 | Text.Op = PrintName("DupUint64" ); |
| 16878 | break; |
| 16879 | case OP_DupIntAP: |
| 16880 | Text.Op = PrintName("DupIntAP" ); |
| 16881 | break; |
| 16882 | case OP_DupIntAPS: |
| 16883 | Text.Op = PrintName("DupIntAPS" ); |
| 16884 | break; |
| 16885 | case OP_DupBool: |
| 16886 | Text.Op = PrintName("DupBool" ); |
| 16887 | break; |
| 16888 | case OP_DupFixedPoint: |
| 16889 | Text.Op = PrintName("DupFixedPoint" ); |
| 16890 | break; |
| 16891 | case OP_DupPtr: |
| 16892 | Text.Op = PrintName("DupPtr" ); |
| 16893 | break; |
| 16894 | case OP_DupMemberPtr: |
| 16895 | Text.Op = PrintName("DupMemberPtr" ); |
| 16896 | break; |
| 16897 | case OP_DupFloat: |
| 16898 | Text.Op = PrintName("DupFloat" ); |
| 16899 | break; |
| 16900 | case OP_DupReflect: |
| 16901 | Text.Op = PrintName("DupReflect" ); |
| 16902 | break; |
| 16903 | #endif |
| 16904 | #if defined(GET_EVAL_PROTO) || defined(GET_LINK_PROTO) |
| 16905 | bool emitDupSint8(SourceInfo); |
| 16906 | bool emitDupUint8(SourceInfo); |
| 16907 | bool emitDupSint16(SourceInfo); |
| 16908 | bool emitDupUint16(SourceInfo); |
| 16909 | bool emitDupSint32(SourceInfo); |
| 16910 | bool emitDupUint32(SourceInfo); |
| 16911 | bool emitDupSint64(SourceInfo); |
| 16912 | bool emitDupUint64(SourceInfo); |
| 16913 | bool emitDupIntAP(SourceInfo); |
| 16914 | bool emitDupIntAPS(SourceInfo); |
| 16915 | bool emitDupBool(SourceInfo); |
| 16916 | bool emitDupFixedPoint(SourceInfo); |
| 16917 | bool emitDupPtr(SourceInfo); |
| 16918 | bool emitDupMemberPtr(SourceInfo); |
| 16919 | bool emitDupFloat(SourceInfo); |
| 16920 | bool emitDupReflect(SourceInfo); |
| 16921 | #endif |
| 16922 | #if defined(GET_EVAL_PROTO) || defined(GET_LINK_PROTO) |
| 16923 | [[nodiscard]] bool emitDup(PrimType, SourceInfo I); |
| 16924 | #endif |
| 16925 | #if defined(GET_EVAL_IMPL) || defined(GET_LINK_IMPL) |
| 16926 | bool |
| 16927 | #if defined(GET_EVAL_IMPL) |
| 16928 | EvalEmitter |
| 16929 | #else |
| 16930 | ByteCodeEmitter |
| 16931 | #endif |
| 16932 | ::emitDup(PrimType T0, SourceInfo I) { |
| 16933 | switch (T0) { |
| 16934 | case PT_Sint8: |
| 16935 | return emitDupSint8(I); |
| 16936 | case PT_Uint8: |
| 16937 | return emitDupUint8(I); |
| 16938 | case PT_Sint16: |
| 16939 | return emitDupSint16(I); |
| 16940 | case PT_Uint16: |
| 16941 | return emitDupUint16(I); |
| 16942 | case PT_Sint32: |
| 16943 | return emitDupSint32(I); |
| 16944 | case PT_Uint32: |
| 16945 | return emitDupUint32(I); |
| 16946 | case PT_Sint64: |
| 16947 | return emitDupSint64(I); |
| 16948 | case PT_Uint64: |
| 16949 | return emitDupUint64(I); |
| 16950 | case PT_IntAP: |
| 16951 | return emitDupIntAP(I); |
| 16952 | case PT_IntAPS: |
| 16953 | return emitDupIntAPS(I); |
| 16954 | case PT_Bool: |
| 16955 | return emitDupBool(I); |
| 16956 | case PT_FixedPoint: |
| 16957 | return emitDupFixedPoint(I); |
| 16958 | case PT_Ptr: |
| 16959 | return emitDupPtr(I); |
| 16960 | case PT_MemberPtr: |
| 16961 | return emitDupMemberPtr(I); |
| 16962 | case PT_Float: |
| 16963 | return emitDupFloat(I); |
| 16964 | case PT_Reflect: |
| 16965 | return emitDupReflect(I); |
| 16966 | } |
| 16967 | llvm_unreachable("invalid enum value" ); |
| 16968 | } |
| 16969 | #endif |
| 16970 | #ifdef GET_LINK_IMPL |
| 16971 | bool ByteCodeEmitter::emitDupSint8(SourceInfo L) { |
| 16972 | return emitOp<>(OP_DupSint8, L); |
| 16973 | } |
| 16974 | bool ByteCodeEmitter::emitDupUint8(SourceInfo L) { |
| 16975 | return emitOp<>(OP_DupUint8, L); |
| 16976 | } |
| 16977 | bool ByteCodeEmitter::emitDupSint16(SourceInfo L) { |
| 16978 | return emitOp<>(OP_DupSint16, L); |
| 16979 | } |
| 16980 | bool ByteCodeEmitter::emitDupUint16(SourceInfo L) { |
| 16981 | return emitOp<>(OP_DupUint16, L); |
| 16982 | } |
| 16983 | bool ByteCodeEmitter::emitDupSint32(SourceInfo L) { |
| 16984 | return emitOp<>(OP_DupSint32, L); |
| 16985 | } |
| 16986 | bool ByteCodeEmitter::emitDupUint32(SourceInfo L) { |
| 16987 | return emitOp<>(OP_DupUint32, L); |
| 16988 | } |
| 16989 | bool ByteCodeEmitter::emitDupSint64(SourceInfo L) { |
| 16990 | return emitOp<>(OP_DupSint64, L); |
| 16991 | } |
| 16992 | bool ByteCodeEmitter::emitDupUint64(SourceInfo L) { |
| 16993 | return emitOp<>(OP_DupUint64, L); |
| 16994 | } |
| 16995 | bool ByteCodeEmitter::emitDupIntAP(SourceInfo L) { |
| 16996 | return emitOp<>(OP_DupIntAP, L); |
| 16997 | } |
| 16998 | bool ByteCodeEmitter::emitDupIntAPS(SourceInfo L) { |
| 16999 | return emitOp<>(OP_DupIntAPS, L); |
| 17000 | } |
| 17001 | bool ByteCodeEmitter::emitDupBool(SourceInfo L) { |
| 17002 | return emitOp<>(OP_DupBool, L); |
| 17003 | } |
| 17004 | bool ByteCodeEmitter::emitDupFixedPoint(SourceInfo L) { |
| 17005 | return emitOp<>(OP_DupFixedPoint, L); |
| 17006 | } |
| 17007 | bool ByteCodeEmitter::emitDupPtr(SourceInfo L) { |
| 17008 | return emitOp<>(OP_DupPtr, L); |
| 17009 | } |
| 17010 | bool ByteCodeEmitter::emitDupMemberPtr(SourceInfo L) { |
| 17011 | return emitOp<>(OP_DupMemberPtr, L); |
| 17012 | } |
| 17013 | bool ByteCodeEmitter::emitDupFloat(SourceInfo L) { |
| 17014 | return emitOp<>(OP_DupFloat, L); |
| 17015 | } |
| 17016 | bool ByteCodeEmitter::emitDupReflect(SourceInfo L) { |
| 17017 | return emitOp<>(OP_DupReflect, L); |
| 17018 | } |
| 17019 | #endif |
| 17020 | #ifdef GET_EVAL_IMPL |
| 17021 | bool EvalEmitter::emitDupSint8(SourceInfo L) { |
| 17022 | if (!isActive()) return true; |
| 17023 | CurrentSource = L; |
| 17024 | return Dup<PT_Sint8>(S); |
| 17025 | } |
| 17026 | bool EvalEmitter::emitDupUint8(SourceInfo L) { |
| 17027 | if (!isActive()) return true; |
| 17028 | CurrentSource = L; |
| 17029 | return Dup<PT_Uint8>(S); |
| 17030 | } |
| 17031 | bool EvalEmitter::emitDupSint16(SourceInfo L) { |
| 17032 | if (!isActive()) return true; |
| 17033 | CurrentSource = L; |
| 17034 | return Dup<PT_Sint16>(S); |
| 17035 | } |
| 17036 | bool EvalEmitter::emitDupUint16(SourceInfo L) { |
| 17037 | if (!isActive()) return true; |
| 17038 | CurrentSource = L; |
| 17039 | return Dup<PT_Uint16>(S); |
| 17040 | } |
| 17041 | bool EvalEmitter::emitDupSint32(SourceInfo L) { |
| 17042 | if (!isActive()) return true; |
| 17043 | CurrentSource = L; |
| 17044 | return Dup<PT_Sint32>(S); |
| 17045 | } |
| 17046 | bool EvalEmitter::emitDupUint32(SourceInfo L) { |
| 17047 | if (!isActive()) return true; |
| 17048 | CurrentSource = L; |
| 17049 | return Dup<PT_Uint32>(S); |
| 17050 | } |
| 17051 | bool EvalEmitter::emitDupSint64(SourceInfo L) { |
| 17052 | if (!isActive()) return true; |
| 17053 | CurrentSource = L; |
| 17054 | return Dup<PT_Sint64>(S); |
| 17055 | } |
| 17056 | bool EvalEmitter::emitDupUint64(SourceInfo L) { |
| 17057 | if (!isActive()) return true; |
| 17058 | CurrentSource = L; |
| 17059 | return Dup<PT_Uint64>(S); |
| 17060 | } |
| 17061 | bool EvalEmitter::emitDupIntAP(SourceInfo L) { |
| 17062 | if (!isActive()) return true; |
| 17063 | CurrentSource = L; |
| 17064 | return Dup<PT_IntAP>(S); |
| 17065 | } |
| 17066 | bool EvalEmitter::emitDupIntAPS(SourceInfo L) { |
| 17067 | if (!isActive()) return true; |
| 17068 | CurrentSource = L; |
| 17069 | return Dup<PT_IntAPS>(S); |
| 17070 | } |
| 17071 | bool EvalEmitter::emitDupBool(SourceInfo L) { |
| 17072 | if (!isActive()) return true; |
| 17073 | CurrentSource = L; |
| 17074 | return Dup<PT_Bool>(S); |
| 17075 | } |
| 17076 | bool EvalEmitter::emitDupFixedPoint(SourceInfo L) { |
| 17077 | if (!isActive()) return true; |
| 17078 | CurrentSource = L; |
| 17079 | return Dup<PT_FixedPoint>(S); |
| 17080 | } |
| 17081 | bool EvalEmitter::emitDupPtr(SourceInfo L) { |
| 17082 | if (!isActive()) return true; |
| 17083 | CurrentSource = L; |
| 17084 | return Dup<PT_Ptr>(S); |
| 17085 | } |
| 17086 | bool EvalEmitter::emitDupMemberPtr(SourceInfo L) { |
| 17087 | if (!isActive()) return true; |
| 17088 | CurrentSource = L; |
| 17089 | return Dup<PT_MemberPtr>(S); |
| 17090 | } |
| 17091 | bool EvalEmitter::emitDupFloat(SourceInfo L) { |
| 17092 | if (!isActive()) return true; |
| 17093 | CurrentSource = L; |
| 17094 | return Dup<PT_Float>(S); |
| 17095 | } |
| 17096 | bool EvalEmitter::emitDupReflect(SourceInfo L) { |
| 17097 | if (!isActive()) return true; |
| 17098 | CurrentSource = L; |
| 17099 | return Dup<PT_Reflect>(S); |
| 17100 | } |
| 17101 | #endif |
| 17102 | #ifdef GET_OPCODE_NAMES |
| 17103 | OP_DynamicCast, |
| 17104 | #endif |
| 17105 | #ifdef GET_INTERPFN_LIST |
| 17106 | &Interp_DynamicCast, |
| 17107 | #endif |
| 17108 | #ifdef GET_INTERPFN_DISPATCHERS |
| 17109 | PRESERVE_NONE |
| 17110 | static bool Interp_DynamicCast(InterpState &S) { |
| 17111 | { |
| 17112 | CodePtr OpPC = S.PC; |
| 17113 | const auto V0 = ReadArg<const Type *>(S, S.PC); |
| 17114 | const auto V1 = ReadArg<bool>(S, S.PC); |
| 17115 | if (!DynamicCast(S, OpPC, V0, V1)) return false; |
| 17116 | } |
| 17117 | #if USE_TAILCALLS |
| 17118 | MUSTTAIL return InterpNext(S); |
| 17119 | #else |
| 17120 | return true; |
| 17121 | #endif |
| 17122 | } |
| 17123 | #endif |
| 17124 | #ifdef GET_DISASM |
| 17125 | case OP_DynamicCast: |
| 17126 | Text.Op = PrintName("DynamicCast" ); |
| 17127 | Text.Args.push_back(printArg<const Type *>(PC)); |
| 17128 | Text.Args.push_back(printArg<bool>(PC)); |
| 17129 | break; |
| 17130 | #endif |
| 17131 | #if defined(GET_EVAL_PROTO) || defined(GET_LINK_PROTO) |
| 17132 | bool emitDynamicCast( const Type * , bool , SourceInfo); |
| 17133 | #endif |
| 17134 | #ifdef GET_LINK_IMPL |
| 17135 | bool ByteCodeEmitter::emitDynamicCast( const Type * A0, bool A1, SourceInfo L) { |
| 17136 | return emitOp<const Type *, bool>(OP_DynamicCast, A0, A1, L); |
| 17137 | } |
| 17138 | #endif |
| 17139 | #ifdef GET_EVAL_IMPL |
| 17140 | bool EvalEmitter::emitDynamicCast( const Type * A0, bool A1, SourceInfo L) { |
| 17141 | if (!isActive()) return true; |
| 17142 | CurrentSource = L; |
| 17143 | return DynamicCast(S, CodePtr(), A0, A1); |
| 17144 | } |
| 17145 | #endif |
| 17146 | #ifdef GET_OPCODE_NAMES |
| 17147 | OP_EQSint8, |
| 17148 | OP_EQUint8, |
| 17149 | OP_EQSint16, |
| 17150 | OP_EQUint16, |
| 17151 | OP_EQSint32, |
| 17152 | OP_EQUint32, |
| 17153 | OP_EQSint64, |
| 17154 | OP_EQUint64, |
| 17155 | OP_EQIntAP, |
| 17156 | OP_EQIntAPS, |
| 17157 | OP_EQBool, |
| 17158 | OP_EQFixedPoint, |
| 17159 | OP_EQPtr, |
| 17160 | OP_EQMemberPtr, |
| 17161 | OP_EQFloat, |
| 17162 | OP_EQReflect, |
| 17163 | #endif |
| 17164 | #ifdef GET_INTERPFN_LIST |
| 17165 | &Interp_EQSint8, |
| 17166 | &Interp_EQUint8, |
| 17167 | &Interp_EQSint16, |
| 17168 | &Interp_EQUint16, |
| 17169 | &Interp_EQSint32, |
| 17170 | &Interp_EQUint32, |
| 17171 | &Interp_EQSint64, |
| 17172 | &Interp_EQUint64, |
| 17173 | &Interp_EQIntAP, |
| 17174 | &Interp_EQIntAPS, |
| 17175 | &Interp_EQBool, |
| 17176 | &Interp_EQFixedPoint, |
| 17177 | &Interp_EQPtr, |
| 17178 | &Interp_EQMemberPtr, |
| 17179 | &Interp_EQFloat, |
| 17180 | &Interp_EQReflect, |
| 17181 | #endif |
| 17182 | #ifdef GET_INTERPFN_DISPATCHERS |
| 17183 | PRESERVE_NONE |
| 17184 | static bool Interp_EQSint8(InterpState &S) { |
| 17185 | if (!EQ<PT_Sint8>(S, S.PC)) return false; |
| 17186 | #if USE_TAILCALLS |
| 17187 | MUSTTAIL return InterpNext(S); |
| 17188 | #else |
| 17189 | return true; |
| 17190 | #endif |
| 17191 | } |
| 17192 | PRESERVE_NONE |
| 17193 | static bool Interp_EQUint8(InterpState &S) { |
| 17194 | if (!EQ<PT_Uint8>(S, S.PC)) return false; |
| 17195 | #if USE_TAILCALLS |
| 17196 | MUSTTAIL return InterpNext(S); |
| 17197 | #else |
| 17198 | return true; |
| 17199 | #endif |
| 17200 | } |
| 17201 | PRESERVE_NONE |
| 17202 | static bool Interp_EQSint16(InterpState &S) { |
| 17203 | if (!EQ<PT_Sint16>(S, S.PC)) return false; |
| 17204 | #if USE_TAILCALLS |
| 17205 | MUSTTAIL return InterpNext(S); |
| 17206 | #else |
| 17207 | return true; |
| 17208 | #endif |
| 17209 | } |
| 17210 | PRESERVE_NONE |
| 17211 | static bool Interp_EQUint16(InterpState &S) { |
| 17212 | if (!EQ<PT_Uint16>(S, S.PC)) return false; |
| 17213 | #if USE_TAILCALLS |
| 17214 | MUSTTAIL return InterpNext(S); |
| 17215 | #else |
| 17216 | return true; |
| 17217 | #endif |
| 17218 | } |
| 17219 | PRESERVE_NONE |
| 17220 | static bool Interp_EQSint32(InterpState &S) { |
| 17221 | if (!EQ<PT_Sint32>(S, S.PC)) return false; |
| 17222 | #if USE_TAILCALLS |
| 17223 | MUSTTAIL return InterpNext(S); |
| 17224 | #else |
| 17225 | return true; |
| 17226 | #endif |
| 17227 | } |
| 17228 | PRESERVE_NONE |
| 17229 | static bool Interp_EQUint32(InterpState &S) { |
| 17230 | if (!EQ<PT_Uint32>(S, S.PC)) return false; |
| 17231 | #if USE_TAILCALLS |
| 17232 | MUSTTAIL return InterpNext(S); |
| 17233 | #else |
| 17234 | return true; |
| 17235 | #endif |
| 17236 | } |
| 17237 | PRESERVE_NONE |
| 17238 | static bool Interp_EQSint64(InterpState &S) { |
| 17239 | if (!EQ<PT_Sint64>(S, S.PC)) return false; |
| 17240 | #if USE_TAILCALLS |
| 17241 | MUSTTAIL return InterpNext(S); |
| 17242 | #else |
| 17243 | return true; |
| 17244 | #endif |
| 17245 | } |
| 17246 | PRESERVE_NONE |
| 17247 | static bool Interp_EQUint64(InterpState &S) { |
| 17248 | if (!EQ<PT_Uint64>(S, S.PC)) return false; |
| 17249 | #if USE_TAILCALLS |
| 17250 | MUSTTAIL return InterpNext(S); |
| 17251 | #else |
| 17252 | return true; |
| 17253 | #endif |
| 17254 | } |
| 17255 | PRESERVE_NONE |
| 17256 | static bool Interp_EQIntAP(InterpState &S) { |
| 17257 | if (!EQ<PT_IntAP>(S, S.PC)) return false; |
| 17258 | #if USE_TAILCALLS |
| 17259 | MUSTTAIL return InterpNext(S); |
| 17260 | #else |
| 17261 | return true; |
| 17262 | #endif |
| 17263 | } |
| 17264 | PRESERVE_NONE |
| 17265 | static bool Interp_EQIntAPS(InterpState &S) { |
| 17266 | if (!EQ<PT_IntAPS>(S, S.PC)) return false; |
| 17267 | #if USE_TAILCALLS |
| 17268 | MUSTTAIL return InterpNext(S); |
| 17269 | #else |
| 17270 | return true; |
| 17271 | #endif |
| 17272 | } |
| 17273 | PRESERVE_NONE |
| 17274 | static bool Interp_EQBool(InterpState &S) { |
| 17275 | if (!EQ<PT_Bool>(S, S.PC)) return false; |
| 17276 | #if USE_TAILCALLS |
| 17277 | MUSTTAIL return InterpNext(S); |
| 17278 | #else |
| 17279 | return true; |
| 17280 | #endif |
| 17281 | } |
| 17282 | PRESERVE_NONE |
| 17283 | static bool Interp_EQFixedPoint(InterpState &S) { |
| 17284 | if (!EQ<PT_FixedPoint>(S, S.PC)) return false; |
| 17285 | #if USE_TAILCALLS |
| 17286 | MUSTTAIL return InterpNext(S); |
| 17287 | #else |
| 17288 | return true; |
| 17289 | #endif |
| 17290 | } |
| 17291 | PRESERVE_NONE |
| 17292 | static bool Interp_EQPtr(InterpState &S) { |
| 17293 | if (!EQ<PT_Ptr>(S, S.PC)) return false; |
| 17294 | #if USE_TAILCALLS |
| 17295 | MUSTTAIL return InterpNext(S); |
| 17296 | #else |
| 17297 | return true; |
| 17298 | #endif |
| 17299 | } |
| 17300 | PRESERVE_NONE |
| 17301 | static bool Interp_EQMemberPtr(InterpState &S) { |
| 17302 | if (!EQ<PT_MemberPtr>(S, S.PC)) return false; |
| 17303 | #if USE_TAILCALLS |
| 17304 | MUSTTAIL return InterpNext(S); |
| 17305 | #else |
| 17306 | return true; |
| 17307 | #endif |
| 17308 | } |
| 17309 | PRESERVE_NONE |
| 17310 | static bool Interp_EQFloat(InterpState &S) { |
| 17311 | if (!EQ<PT_Float>(S, S.PC)) return false; |
| 17312 | #if USE_TAILCALLS |
| 17313 | MUSTTAIL return InterpNext(S); |
| 17314 | #else |
| 17315 | return true; |
| 17316 | #endif |
| 17317 | } |
| 17318 | PRESERVE_NONE |
| 17319 | static bool Interp_EQReflect(InterpState &S) { |
| 17320 | if (!EQ<PT_Reflect>(S, S.PC)) return false; |
| 17321 | #if USE_TAILCALLS |
| 17322 | MUSTTAIL return InterpNext(S); |
| 17323 | #else |
| 17324 | return true; |
| 17325 | #endif |
| 17326 | } |
| 17327 | #endif |
| 17328 | #ifdef GET_DISASM |
| 17329 | case OP_EQSint8: |
| 17330 | Text.Op = PrintName("EQSint8" ); |
| 17331 | break; |
| 17332 | case OP_EQUint8: |
| 17333 | Text.Op = PrintName("EQUint8" ); |
| 17334 | break; |
| 17335 | case OP_EQSint16: |
| 17336 | Text.Op = PrintName("EQSint16" ); |
| 17337 | break; |
| 17338 | case OP_EQUint16: |
| 17339 | Text.Op = PrintName("EQUint16" ); |
| 17340 | break; |
| 17341 | case OP_EQSint32: |
| 17342 | Text.Op = PrintName("EQSint32" ); |
| 17343 | break; |
| 17344 | case OP_EQUint32: |
| 17345 | Text.Op = PrintName("EQUint32" ); |
| 17346 | break; |
| 17347 | case OP_EQSint64: |
| 17348 | Text.Op = PrintName("EQSint64" ); |
| 17349 | break; |
| 17350 | case OP_EQUint64: |
| 17351 | Text.Op = PrintName("EQUint64" ); |
| 17352 | break; |
| 17353 | case OP_EQIntAP: |
| 17354 | Text.Op = PrintName("EQIntAP" ); |
| 17355 | break; |
| 17356 | case OP_EQIntAPS: |
| 17357 | Text.Op = PrintName("EQIntAPS" ); |
| 17358 | break; |
| 17359 | case OP_EQBool: |
| 17360 | Text.Op = PrintName("EQBool" ); |
| 17361 | break; |
| 17362 | case OP_EQFixedPoint: |
| 17363 | Text.Op = PrintName("EQFixedPoint" ); |
| 17364 | break; |
| 17365 | case OP_EQPtr: |
| 17366 | Text.Op = PrintName("EQPtr" ); |
| 17367 | break; |
| 17368 | case OP_EQMemberPtr: |
| 17369 | Text.Op = PrintName("EQMemberPtr" ); |
| 17370 | break; |
| 17371 | case OP_EQFloat: |
| 17372 | Text.Op = PrintName("EQFloat" ); |
| 17373 | break; |
| 17374 | case OP_EQReflect: |
| 17375 | Text.Op = PrintName("EQReflect" ); |
| 17376 | break; |
| 17377 | #endif |
| 17378 | #if defined(GET_EVAL_PROTO) || defined(GET_LINK_PROTO) |
| 17379 | bool emitEQSint8(SourceInfo); |
| 17380 | bool emitEQUint8(SourceInfo); |
| 17381 | bool emitEQSint16(SourceInfo); |
| 17382 | bool emitEQUint16(SourceInfo); |
| 17383 | bool emitEQSint32(SourceInfo); |
| 17384 | bool emitEQUint32(SourceInfo); |
| 17385 | bool emitEQSint64(SourceInfo); |
| 17386 | bool emitEQUint64(SourceInfo); |
| 17387 | bool emitEQIntAP(SourceInfo); |
| 17388 | bool emitEQIntAPS(SourceInfo); |
| 17389 | bool emitEQBool(SourceInfo); |
| 17390 | bool emitEQFixedPoint(SourceInfo); |
| 17391 | bool emitEQPtr(SourceInfo); |
| 17392 | bool emitEQMemberPtr(SourceInfo); |
| 17393 | bool emitEQFloat(SourceInfo); |
| 17394 | bool emitEQReflect(SourceInfo); |
| 17395 | #endif |
| 17396 | #if defined(GET_EVAL_PROTO) || defined(GET_LINK_PROTO) |
| 17397 | [[nodiscard]] bool emitEQ(PrimType, SourceInfo I); |
| 17398 | #endif |
| 17399 | #if defined(GET_EVAL_IMPL) || defined(GET_LINK_IMPL) |
| 17400 | bool |
| 17401 | #if defined(GET_EVAL_IMPL) |
| 17402 | EvalEmitter |
| 17403 | #else |
| 17404 | ByteCodeEmitter |
| 17405 | #endif |
| 17406 | ::emitEQ(PrimType T0, SourceInfo I) { |
| 17407 | switch (T0) { |
| 17408 | case PT_Sint8: |
| 17409 | return emitEQSint8(I); |
| 17410 | case PT_Uint8: |
| 17411 | return emitEQUint8(I); |
| 17412 | case PT_Sint16: |
| 17413 | return emitEQSint16(I); |
| 17414 | case PT_Uint16: |
| 17415 | return emitEQUint16(I); |
| 17416 | case PT_Sint32: |
| 17417 | return emitEQSint32(I); |
| 17418 | case PT_Uint32: |
| 17419 | return emitEQUint32(I); |
| 17420 | case PT_Sint64: |
| 17421 | return emitEQSint64(I); |
| 17422 | case PT_Uint64: |
| 17423 | return emitEQUint64(I); |
| 17424 | case PT_IntAP: |
| 17425 | return emitEQIntAP(I); |
| 17426 | case PT_IntAPS: |
| 17427 | return emitEQIntAPS(I); |
| 17428 | case PT_Bool: |
| 17429 | return emitEQBool(I); |
| 17430 | case PT_FixedPoint: |
| 17431 | return emitEQFixedPoint(I); |
| 17432 | case PT_Ptr: |
| 17433 | return emitEQPtr(I); |
| 17434 | case PT_MemberPtr: |
| 17435 | return emitEQMemberPtr(I); |
| 17436 | case PT_Float: |
| 17437 | return emitEQFloat(I); |
| 17438 | case PT_Reflect: |
| 17439 | return emitEQReflect(I); |
| 17440 | } |
| 17441 | llvm_unreachable("invalid enum value" ); |
| 17442 | } |
| 17443 | #endif |
| 17444 | #ifdef GET_LINK_IMPL |
| 17445 | bool ByteCodeEmitter::emitEQSint8(SourceInfo L) { |
| 17446 | return emitOp<>(OP_EQSint8, L); |
| 17447 | } |
| 17448 | bool ByteCodeEmitter::emitEQUint8(SourceInfo L) { |
| 17449 | return emitOp<>(OP_EQUint8, L); |
| 17450 | } |
| 17451 | bool ByteCodeEmitter::emitEQSint16(SourceInfo L) { |
| 17452 | return emitOp<>(OP_EQSint16, L); |
| 17453 | } |
| 17454 | bool ByteCodeEmitter::emitEQUint16(SourceInfo L) { |
| 17455 | return emitOp<>(OP_EQUint16, L); |
| 17456 | } |
| 17457 | bool ByteCodeEmitter::emitEQSint32(SourceInfo L) { |
| 17458 | return emitOp<>(OP_EQSint32, L); |
| 17459 | } |
| 17460 | bool ByteCodeEmitter::emitEQUint32(SourceInfo L) { |
| 17461 | return emitOp<>(OP_EQUint32, L); |
| 17462 | } |
| 17463 | bool ByteCodeEmitter::emitEQSint64(SourceInfo L) { |
| 17464 | return emitOp<>(OP_EQSint64, L); |
| 17465 | } |
| 17466 | bool ByteCodeEmitter::emitEQUint64(SourceInfo L) { |
| 17467 | return emitOp<>(OP_EQUint64, L); |
| 17468 | } |
| 17469 | bool ByteCodeEmitter::emitEQIntAP(SourceInfo L) { |
| 17470 | return emitOp<>(OP_EQIntAP, L); |
| 17471 | } |
| 17472 | bool ByteCodeEmitter::emitEQIntAPS(SourceInfo L) { |
| 17473 | return emitOp<>(OP_EQIntAPS, L); |
| 17474 | } |
| 17475 | bool ByteCodeEmitter::emitEQBool(SourceInfo L) { |
| 17476 | return emitOp<>(OP_EQBool, L); |
| 17477 | } |
| 17478 | bool ByteCodeEmitter::emitEQFixedPoint(SourceInfo L) { |
| 17479 | return emitOp<>(OP_EQFixedPoint, L); |
| 17480 | } |
| 17481 | bool ByteCodeEmitter::emitEQPtr(SourceInfo L) { |
| 17482 | return emitOp<>(OP_EQPtr, L); |
| 17483 | } |
| 17484 | bool ByteCodeEmitter::emitEQMemberPtr(SourceInfo L) { |
| 17485 | return emitOp<>(OP_EQMemberPtr, L); |
| 17486 | } |
| 17487 | bool ByteCodeEmitter::emitEQFloat(SourceInfo L) { |
| 17488 | return emitOp<>(OP_EQFloat, L); |
| 17489 | } |
| 17490 | bool ByteCodeEmitter::emitEQReflect(SourceInfo L) { |
| 17491 | return emitOp<>(OP_EQReflect, L); |
| 17492 | } |
| 17493 | #endif |
| 17494 | #ifdef GET_EVAL_IMPL |
| 17495 | bool EvalEmitter::emitEQSint8(SourceInfo L) { |
| 17496 | if (!isActive()) return true; |
| 17497 | CurrentSource = L; |
| 17498 | return EQ<PT_Sint8>(S, CodePtr()); |
| 17499 | } |
| 17500 | bool EvalEmitter::emitEQUint8(SourceInfo L) { |
| 17501 | if (!isActive()) return true; |
| 17502 | CurrentSource = L; |
| 17503 | return EQ<PT_Uint8>(S, CodePtr()); |
| 17504 | } |
| 17505 | bool EvalEmitter::emitEQSint16(SourceInfo L) { |
| 17506 | if (!isActive()) return true; |
| 17507 | CurrentSource = L; |
| 17508 | return EQ<PT_Sint16>(S, CodePtr()); |
| 17509 | } |
| 17510 | bool EvalEmitter::emitEQUint16(SourceInfo L) { |
| 17511 | if (!isActive()) return true; |
| 17512 | CurrentSource = L; |
| 17513 | return EQ<PT_Uint16>(S, CodePtr()); |
| 17514 | } |
| 17515 | bool EvalEmitter::emitEQSint32(SourceInfo L) { |
| 17516 | if (!isActive()) return true; |
| 17517 | CurrentSource = L; |
| 17518 | return EQ<PT_Sint32>(S, CodePtr()); |
| 17519 | } |
| 17520 | bool EvalEmitter::emitEQUint32(SourceInfo L) { |
| 17521 | if (!isActive()) return true; |
| 17522 | CurrentSource = L; |
| 17523 | return EQ<PT_Uint32>(S, CodePtr()); |
| 17524 | } |
| 17525 | bool EvalEmitter::emitEQSint64(SourceInfo L) { |
| 17526 | if (!isActive()) return true; |
| 17527 | CurrentSource = L; |
| 17528 | return EQ<PT_Sint64>(S, CodePtr()); |
| 17529 | } |
| 17530 | bool EvalEmitter::emitEQUint64(SourceInfo L) { |
| 17531 | if (!isActive()) return true; |
| 17532 | CurrentSource = L; |
| 17533 | return EQ<PT_Uint64>(S, CodePtr()); |
| 17534 | } |
| 17535 | bool EvalEmitter::emitEQIntAP(SourceInfo L) { |
| 17536 | if (!isActive()) return true; |
| 17537 | CurrentSource = L; |
| 17538 | return EQ<PT_IntAP>(S, CodePtr()); |
| 17539 | } |
| 17540 | bool EvalEmitter::emitEQIntAPS(SourceInfo L) { |
| 17541 | if (!isActive()) return true; |
| 17542 | CurrentSource = L; |
| 17543 | return EQ<PT_IntAPS>(S, CodePtr()); |
| 17544 | } |
| 17545 | bool EvalEmitter::emitEQBool(SourceInfo L) { |
| 17546 | if (!isActive()) return true; |
| 17547 | CurrentSource = L; |
| 17548 | return EQ<PT_Bool>(S, CodePtr()); |
| 17549 | } |
| 17550 | bool EvalEmitter::emitEQFixedPoint(SourceInfo L) { |
| 17551 | if (!isActive()) return true; |
| 17552 | CurrentSource = L; |
| 17553 | return EQ<PT_FixedPoint>(S, CodePtr()); |
| 17554 | } |
| 17555 | bool EvalEmitter::emitEQPtr(SourceInfo L) { |
| 17556 | if (!isActive()) return true; |
| 17557 | CurrentSource = L; |
| 17558 | return EQ<PT_Ptr>(S, CodePtr()); |
| 17559 | } |
| 17560 | bool EvalEmitter::emitEQMemberPtr(SourceInfo L) { |
| 17561 | if (!isActive()) return true; |
| 17562 | CurrentSource = L; |
| 17563 | return EQ<PT_MemberPtr>(S, CodePtr()); |
| 17564 | } |
| 17565 | bool EvalEmitter::emitEQFloat(SourceInfo L) { |
| 17566 | if (!isActive()) return true; |
| 17567 | CurrentSource = L; |
| 17568 | return EQ<PT_Float>(S, CodePtr()); |
| 17569 | } |
| 17570 | bool EvalEmitter::emitEQReflect(SourceInfo L) { |
| 17571 | if (!isActive()) return true; |
| 17572 | CurrentSource = L; |
| 17573 | return EQ<PT_Reflect>(S, CodePtr()); |
| 17574 | } |
| 17575 | #endif |
| 17576 | #ifdef GET_OPCODE_NAMES |
| 17577 | OP_EnableLocal, |
| 17578 | #endif |
| 17579 | #ifdef GET_INTERPFN_LIST |
| 17580 | &Interp_EnableLocal, |
| 17581 | #endif |
| 17582 | #ifdef GET_INTERPFN_DISPATCHERS |
| 17583 | PRESERVE_NONE |
| 17584 | static bool Interp_EnableLocal(InterpState &S) { |
| 17585 | { |
| 17586 | const auto V0 = ReadArg<uint32_t>(S, S.PC); |
| 17587 | EnableLocal(S, V0); |
| 17588 | } |
| 17589 | #if USE_TAILCALLS |
| 17590 | MUSTTAIL return InterpNext(S); |
| 17591 | #else |
| 17592 | return true; |
| 17593 | #endif |
| 17594 | } |
| 17595 | #endif |
| 17596 | #ifdef GET_DISASM |
| 17597 | case OP_EnableLocal: |
| 17598 | Text.Op = PrintName("EnableLocal" ); |
| 17599 | Text.Args.push_back(printArg<uint32_t>(PC)); |
| 17600 | break; |
| 17601 | #endif |
| 17602 | #if defined(GET_EVAL_PROTO) || defined(GET_LINK_PROTO) |
| 17603 | bool emitEnableLocal( uint32_t , SourceInfo); |
| 17604 | #endif |
| 17605 | #ifdef GET_LINK_IMPL |
| 17606 | bool ByteCodeEmitter::emitEnableLocal( uint32_t A0, SourceInfo L) { |
| 17607 | return emitOp<uint32_t>(OP_EnableLocal, A0, L); |
| 17608 | } |
| 17609 | #endif |
| 17610 | #ifdef GET_OPCODE_NAMES |
| 17611 | OP_EndInit, |
| 17612 | #endif |
| 17613 | #ifdef GET_INTERPFN_LIST |
| 17614 | &Interp_EndInit, |
| 17615 | #endif |
| 17616 | #ifdef GET_INTERPFN_DISPATCHERS |
| 17617 | PRESERVE_NONE |
| 17618 | static bool Interp_EndInit(InterpState &S) { |
| 17619 | EndInit(S); |
| 17620 | #if USE_TAILCALLS |
| 17621 | MUSTTAIL return InterpNext(S); |
| 17622 | #else |
| 17623 | return true; |
| 17624 | #endif |
| 17625 | } |
| 17626 | #endif |
| 17627 | #ifdef GET_DISASM |
| 17628 | case OP_EndInit: |
| 17629 | Text.Op = PrintName("EndInit" ); |
| 17630 | break; |
| 17631 | #endif |
| 17632 | #if defined(GET_EVAL_PROTO) || defined(GET_LINK_PROTO) |
| 17633 | bool emitEndInit(SourceInfo); |
| 17634 | #endif |
| 17635 | #ifdef GET_LINK_IMPL |
| 17636 | bool ByteCodeEmitter::emitEndInit(SourceInfo L) { |
| 17637 | return emitOp<>(OP_EndInit, L); |
| 17638 | } |
| 17639 | #endif |
| 17640 | #ifdef GET_EVAL_IMPL |
| 17641 | bool EvalEmitter::emitEndInit(SourceInfo L) { |
| 17642 | if (!isActive()) return true; |
| 17643 | CurrentSource = L; |
| 17644 | return EndInit(S); |
| 17645 | } |
| 17646 | #endif |
| 17647 | #ifdef GET_OPCODE_NAMES |
| 17648 | OP_EndLifetime, |
| 17649 | #endif |
| 17650 | #ifdef GET_INTERPFN_LIST |
| 17651 | &Interp_EndLifetime, |
| 17652 | #endif |
| 17653 | #ifdef GET_INTERPFN_DISPATCHERS |
| 17654 | PRESERVE_NONE |
| 17655 | static bool Interp_EndLifetime(InterpState &S) { |
| 17656 | if (!EndLifetime(S, S.PC)) return false; |
| 17657 | #if USE_TAILCALLS |
| 17658 | MUSTTAIL return InterpNext(S); |
| 17659 | #else |
| 17660 | return true; |
| 17661 | #endif |
| 17662 | } |
| 17663 | #endif |
| 17664 | #ifdef GET_DISASM |
| 17665 | case OP_EndLifetime: |
| 17666 | Text.Op = PrintName("EndLifetime" ); |
| 17667 | break; |
| 17668 | #endif |
| 17669 | #if defined(GET_EVAL_PROTO) || defined(GET_LINK_PROTO) |
| 17670 | bool emitEndLifetime(SourceInfo); |
| 17671 | #endif |
| 17672 | #ifdef GET_LINK_IMPL |
| 17673 | bool ByteCodeEmitter::emitEndLifetime(SourceInfo L) { |
| 17674 | return emitOp<>(OP_EndLifetime, L); |
| 17675 | } |
| 17676 | #endif |
| 17677 | #ifdef GET_EVAL_IMPL |
| 17678 | bool EvalEmitter::emitEndLifetime(SourceInfo L) { |
| 17679 | if (!isActive()) return true; |
| 17680 | CurrentSource = L; |
| 17681 | return EndLifetime(S, CodePtr()); |
| 17682 | } |
| 17683 | #endif |
| 17684 | #ifdef GET_OPCODE_NAMES |
| 17685 | OP_EndSpeculation, |
| 17686 | #endif |
| 17687 | #ifdef GET_INTERPFN_LIST |
| 17688 | &Interp_EndSpeculation, |
| 17689 | #endif |
| 17690 | #ifdef GET_INTERPFN_DISPATCHERS |
| 17691 | PRESERVE_NONE |
| 17692 | static bool Interp_EndSpeculation(InterpState &S) { |
| 17693 | MUSTTAIL return EndSpeculation(S); |
| 17694 | } |
| 17695 | #endif |
| 17696 | #ifdef GET_DISASM |
| 17697 | case OP_EndSpeculation: |
| 17698 | Text.Op = PrintName("EndSpeculation" ); |
| 17699 | break; |
| 17700 | #endif |
| 17701 | #if defined(GET_EVAL_PROTO) || defined(GET_LINK_PROTO) |
| 17702 | bool emitEndSpeculation(SourceInfo); |
| 17703 | #endif |
| 17704 | #ifdef GET_LINK_IMPL |
| 17705 | bool ByteCodeEmitter::emitEndSpeculation(SourceInfo L) { |
| 17706 | return emitOp<>(OP_EndSpeculation, L); |
| 17707 | } |
| 17708 | #endif |
| 17709 | #ifdef GET_EVAL_IMPL |
| 17710 | bool EvalEmitter::emitEndSpeculation(SourceInfo L) { |
| 17711 | if (!isActive()) return true; |
| 17712 | CurrentSource = L; |
| 17713 | return EndSpeculation(S); |
| 17714 | } |
| 17715 | #endif |
| 17716 | #ifdef GET_OPCODE_NAMES |
| 17717 | OP_Error, |
| 17718 | #endif |
| 17719 | #ifdef GET_INTERPFN_LIST |
| 17720 | &Interp_Error, |
| 17721 | #endif |
| 17722 | #ifdef GET_INTERPFN_DISPATCHERS |
| 17723 | PRESERVE_NONE |
| 17724 | static bool Interp_Error(InterpState &S) { |
| 17725 | if (!Error(S)) return false; |
| 17726 | #if USE_TAILCALLS |
| 17727 | MUSTTAIL return InterpNext(S); |
| 17728 | #else |
| 17729 | return true; |
| 17730 | #endif |
| 17731 | } |
| 17732 | #endif |
| 17733 | #ifdef GET_DISASM |
| 17734 | case OP_Error: |
| 17735 | Text.Op = PrintName("Error" ); |
| 17736 | break; |
| 17737 | #endif |
| 17738 | #if defined(GET_EVAL_PROTO) || defined(GET_LINK_PROTO) |
| 17739 | bool emitError(SourceInfo); |
| 17740 | #endif |
| 17741 | #ifdef GET_LINK_IMPL |
| 17742 | bool ByteCodeEmitter::emitError(SourceInfo L) { |
| 17743 | return emitOp<>(OP_Error, L); |
| 17744 | } |
| 17745 | #endif |
| 17746 | #ifdef GET_EVAL_IMPL |
| 17747 | bool EvalEmitter::emitError(SourceInfo L) { |
| 17748 | if (!isActive()) return true; |
| 17749 | CurrentSource = L; |
| 17750 | return Error(S); |
| 17751 | } |
| 17752 | #endif |
| 17753 | #ifdef GET_OPCODE_NAMES |
| 17754 | OP_ExpandPtr, |
| 17755 | #endif |
| 17756 | #ifdef GET_INTERPFN_LIST |
| 17757 | &Interp_ExpandPtr, |
| 17758 | #endif |
| 17759 | #ifdef GET_INTERPFN_DISPATCHERS |
| 17760 | PRESERVE_NONE |
| 17761 | static bool Interp_ExpandPtr(InterpState &S) { |
| 17762 | ExpandPtr(S); |
| 17763 | #if USE_TAILCALLS |
| 17764 | MUSTTAIL return InterpNext(S); |
| 17765 | #else |
| 17766 | return true; |
| 17767 | #endif |
| 17768 | } |
| 17769 | #endif |
| 17770 | #ifdef GET_DISASM |
| 17771 | case OP_ExpandPtr: |
| 17772 | Text.Op = PrintName("ExpandPtr" ); |
| 17773 | break; |
| 17774 | #endif |
| 17775 | #if defined(GET_EVAL_PROTO) || defined(GET_LINK_PROTO) |
| 17776 | bool emitExpandPtr(SourceInfo); |
| 17777 | #endif |
| 17778 | #ifdef GET_LINK_IMPL |
| 17779 | bool ByteCodeEmitter::emitExpandPtr(SourceInfo L) { |
| 17780 | return emitOp<>(OP_ExpandPtr, L); |
| 17781 | } |
| 17782 | #endif |
| 17783 | #ifdef GET_EVAL_IMPL |
| 17784 | bool EvalEmitter::emitExpandPtr(SourceInfo L) { |
| 17785 | if (!isActive()) return true; |
| 17786 | CurrentSource = L; |
| 17787 | return ExpandPtr(S); |
| 17788 | } |
| 17789 | #endif |
| 17790 | #ifdef GET_OPCODE_NAMES |
| 17791 | OP_FinishInit, |
| 17792 | #endif |
| 17793 | #ifdef GET_INTERPFN_LIST |
| 17794 | &Interp_FinishInit, |
| 17795 | #endif |
| 17796 | #ifdef GET_INTERPFN_DISPATCHERS |
| 17797 | PRESERVE_NONE |
| 17798 | static bool Interp_FinishInit(InterpState &S) { |
| 17799 | FinishInit(S); |
| 17800 | #if USE_TAILCALLS |
| 17801 | MUSTTAIL return InterpNext(S); |
| 17802 | #else |
| 17803 | return true; |
| 17804 | #endif |
| 17805 | } |
| 17806 | #endif |
| 17807 | #ifdef GET_DISASM |
| 17808 | case OP_FinishInit: |
| 17809 | Text.Op = PrintName("FinishInit" ); |
| 17810 | break; |
| 17811 | #endif |
| 17812 | #if defined(GET_EVAL_PROTO) || defined(GET_LINK_PROTO) |
| 17813 | bool emitFinishInit(SourceInfo); |
| 17814 | #endif |
| 17815 | #ifdef GET_LINK_IMPL |
| 17816 | bool ByteCodeEmitter::emitFinishInit(SourceInfo L) { |
| 17817 | return emitOp<>(OP_FinishInit, L); |
| 17818 | } |
| 17819 | #endif |
| 17820 | #ifdef GET_EVAL_IMPL |
| 17821 | bool EvalEmitter::emitFinishInit(SourceInfo L) { |
| 17822 | if (!isActive()) return true; |
| 17823 | CurrentSource = L; |
| 17824 | return FinishInit(S); |
| 17825 | } |
| 17826 | #endif |
| 17827 | #ifdef GET_OPCODE_NAMES |
| 17828 | OP_FinishInitActivate, |
| 17829 | #endif |
| 17830 | #ifdef GET_INTERPFN_LIST |
| 17831 | &Interp_FinishInitActivate, |
| 17832 | #endif |
| 17833 | #ifdef GET_INTERPFN_DISPATCHERS |
| 17834 | PRESERVE_NONE |
| 17835 | static bool Interp_FinishInitActivate(InterpState &S) { |
| 17836 | FinishInitActivate(S); |
| 17837 | #if USE_TAILCALLS |
| 17838 | MUSTTAIL return InterpNext(S); |
| 17839 | #else |
| 17840 | return true; |
| 17841 | #endif |
| 17842 | } |
| 17843 | #endif |
| 17844 | #ifdef GET_DISASM |
| 17845 | case OP_FinishInitActivate: |
| 17846 | Text.Op = PrintName("FinishInitActivate" ); |
| 17847 | break; |
| 17848 | #endif |
| 17849 | #if defined(GET_EVAL_PROTO) || defined(GET_LINK_PROTO) |
| 17850 | bool emitFinishInitActivate(SourceInfo); |
| 17851 | #endif |
| 17852 | #ifdef GET_LINK_IMPL |
| 17853 | bool ByteCodeEmitter::emitFinishInitActivate(SourceInfo L) { |
| 17854 | return emitOp<>(OP_FinishInitActivate, L); |
| 17855 | } |
| 17856 | #endif |
| 17857 | #ifdef GET_EVAL_IMPL |
| 17858 | bool EvalEmitter::emitFinishInitActivate(SourceInfo L) { |
| 17859 | if (!isActive()) return true; |
| 17860 | CurrentSource = L; |
| 17861 | return FinishInitActivate(S); |
| 17862 | } |
| 17863 | #endif |
| 17864 | #ifdef GET_OPCODE_NAMES |
| 17865 | OP_FinishInitActivatePop, |
| 17866 | #endif |
| 17867 | #ifdef GET_INTERPFN_LIST |
| 17868 | &Interp_FinishInitActivatePop, |
| 17869 | #endif |
| 17870 | #ifdef GET_INTERPFN_DISPATCHERS |
| 17871 | PRESERVE_NONE |
| 17872 | static bool Interp_FinishInitActivatePop(InterpState &S) { |
| 17873 | FinishInitActivatePop(S); |
| 17874 | #if USE_TAILCALLS |
| 17875 | MUSTTAIL return InterpNext(S); |
| 17876 | #else |
| 17877 | return true; |
| 17878 | #endif |
| 17879 | } |
| 17880 | #endif |
| 17881 | #ifdef GET_DISASM |
| 17882 | case OP_FinishInitActivatePop: |
| 17883 | Text.Op = PrintName("FinishInitActivatePop" ); |
| 17884 | break; |
| 17885 | #endif |
| 17886 | #if defined(GET_EVAL_PROTO) || defined(GET_LINK_PROTO) |
| 17887 | bool emitFinishInitActivatePop(SourceInfo); |
| 17888 | #endif |
| 17889 | #ifdef GET_LINK_IMPL |
| 17890 | bool ByteCodeEmitter::emitFinishInitActivatePop(SourceInfo L) { |
| 17891 | return emitOp<>(OP_FinishInitActivatePop, L); |
| 17892 | } |
| 17893 | #endif |
| 17894 | #ifdef GET_EVAL_IMPL |
| 17895 | bool EvalEmitter::emitFinishInitActivatePop(SourceInfo L) { |
| 17896 | if (!isActive()) return true; |
| 17897 | CurrentSource = L; |
| 17898 | return FinishInitActivatePop(S); |
| 17899 | } |
| 17900 | #endif |
| 17901 | #ifdef GET_OPCODE_NAMES |
| 17902 | OP_FinishInitGlobal, |
| 17903 | #endif |
| 17904 | #ifdef GET_INTERPFN_LIST |
| 17905 | &Interp_FinishInitGlobal, |
| 17906 | #endif |
| 17907 | #ifdef GET_INTERPFN_DISPATCHERS |
| 17908 | PRESERVE_NONE |
| 17909 | static bool Interp_FinishInitGlobal(InterpState &S) { |
| 17910 | FinishInitGlobal(S); |
| 17911 | #if USE_TAILCALLS |
| 17912 | MUSTTAIL return InterpNext(S); |
| 17913 | #else |
| 17914 | return true; |
| 17915 | #endif |
| 17916 | } |
| 17917 | #endif |
| 17918 | #ifdef GET_DISASM |
| 17919 | case OP_FinishInitGlobal: |
| 17920 | Text.Op = PrintName("FinishInitGlobal" ); |
| 17921 | break; |
| 17922 | #endif |
| 17923 | #if defined(GET_EVAL_PROTO) || defined(GET_LINK_PROTO) |
| 17924 | bool emitFinishInitGlobal(SourceInfo); |
| 17925 | #endif |
| 17926 | #ifdef GET_LINK_IMPL |
| 17927 | bool ByteCodeEmitter::emitFinishInitGlobal(SourceInfo L) { |
| 17928 | return emitOp<>(OP_FinishInitGlobal, L); |
| 17929 | } |
| 17930 | #endif |
| 17931 | #ifdef GET_EVAL_IMPL |
| 17932 | bool EvalEmitter::emitFinishInitGlobal(SourceInfo L) { |
| 17933 | if (!isActive()) return true; |
| 17934 | CurrentSource = L; |
| 17935 | return FinishInitGlobal(S); |
| 17936 | } |
| 17937 | #endif |
| 17938 | #ifdef GET_OPCODE_NAMES |
| 17939 | OP_FinishInitPop, |
| 17940 | #endif |
| 17941 | #ifdef GET_INTERPFN_LIST |
| 17942 | &Interp_FinishInitPop, |
| 17943 | #endif |
| 17944 | #ifdef GET_INTERPFN_DISPATCHERS |
| 17945 | PRESERVE_NONE |
| 17946 | static bool Interp_FinishInitPop(InterpState &S) { |
| 17947 | FinishInitPop(S); |
| 17948 | #if USE_TAILCALLS |
| 17949 | MUSTTAIL return InterpNext(S); |
| 17950 | #else |
| 17951 | return true; |
| 17952 | #endif |
| 17953 | } |
| 17954 | #endif |
| 17955 | #ifdef GET_DISASM |
| 17956 | case OP_FinishInitPop: |
| 17957 | Text.Op = PrintName("FinishInitPop" ); |
| 17958 | break; |
| 17959 | #endif |
| 17960 | #if defined(GET_EVAL_PROTO) || defined(GET_LINK_PROTO) |
| 17961 | bool emitFinishInitPop(SourceInfo); |
| 17962 | #endif |
| 17963 | #ifdef GET_LINK_IMPL |
| 17964 | bool ByteCodeEmitter::emitFinishInitPop(SourceInfo L) { |
| 17965 | return emitOp<>(OP_FinishInitPop, L); |
| 17966 | } |
| 17967 | #endif |
| 17968 | #ifdef GET_EVAL_IMPL |
| 17969 | bool EvalEmitter::emitFinishInitPop(SourceInfo L) { |
| 17970 | if (!isActive()) return true; |
| 17971 | CurrentSource = L; |
| 17972 | return FinishInitPop(S); |
| 17973 | } |
| 17974 | #endif |
| 17975 | #ifdef GET_OPCODE_NAMES |
| 17976 | OP_FlipSint8Sint8, |
| 17977 | OP_FlipSint8Uint8, |
| 17978 | OP_FlipSint8Sint16, |
| 17979 | OP_FlipSint8Uint16, |
| 17980 | OP_FlipSint8Sint32, |
| 17981 | OP_FlipSint8Uint32, |
| 17982 | OP_FlipSint8Sint64, |
| 17983 | OP_FlipSint8Uint64, |
| 17984 | OP_FlipSint8IntAP, |
| 17985 | OP_FlipSint8IntAPS, |
| 17986 | OP_FlipSint8Bool, |
| 17987 | OP_FlipSint8FixedPoint, |
| 17988 | OP_FlipSint8Ptr, |
| 17989 | OP_FlipSint8MemberPtr, |
| 17990 | OP_FlipSint8Float, |
| 17991 | OP_FlipSint8Reflect, |
| 17992 | OP_FlipUint8Sint8, |
| 17993 | OP_FlipUint8Uint8, |
| 17994 | OP_FlipUint8Sint16, |
| 17995 | OP_FlipUint8Uint16, |
| 17996 | OP_FlipUint8Sint32, |
| 17997 | OP_FlipUint8Uint32, |
| 17998 | OP_FlipUint8Sint64, |
| 17999 | OP_FlipUint8Uint64, |
| 18000 | OP_FlipUint8IntAP, |
| 18001 | OP_FlipUint8IntAPS, |
| 18002 | OP_FlipUint8Bool, |
| 18003 | OP_FlipUint8FixedPoint, |
| 18004 | OP_FlipUint8Ptr, |
| 18005 | OP_FlipUint8MemberPtr, |
| 18006 | OP_FlipUint8Float, |
| 18007 | OP_FlipUint8Reflect, |
| 18008 | OP_FlipSint16Sint8, |
| 18009 | OP_FlipSint16Uint8, |
| 18010 | OP_FlipSint16Sint16, |
| 18011 | OP_FlipSint16Uint16, |
| 18012 | OP_FlipSint16Sint32, |
| 18013 | OP_FlipSint16Uint32, |
| 18014 | OP_FlipSint16Sint64, |
| 18015 | OP_FlipSint16Uint64, |
| 18016 | OP_FlipSint16IntAP, |
| 18017 | OP_FlipSint16IntAPS, |
| 18018 | OP_FlipSint16Bool, |
| 18019 | OP_FlipSint16FixedPoint, |
| 18020 | OP_FlipSint16Ptr, |
| 18021 | OP_FlipSint16MemberPtr, |
| 18022 | OP_FlipSint16Float, |
| 18023 | OP_FlipSint16Reflect, |
| 18024 | OP_FlipUint16Sint8, |
| 18025 | OP_FlipUint16Uint8, |
| 18026 | OP_FlipUint16Sint16, |
| 18027 | OP_FlipUint16Uint16, |
| 18028 | OP_FlipUint16Sint32, |
| 18029 | OP_FlipUint16Uint32, |
| 18030 | OP_FlipUint16Sint64, |
| 18031 | OP_FlipUint16Uint64, |
| 18032 | OP_FlipUint16IntAP, |
| 18033 | OP_FlipUint16IntAPS, |
| 18034 | OP_FlipUint16Bool, |
| 18035 | OP_FlipUint16FixedPoint, |
| 18036 | OP_FlipUint16Ptr, |
| 18037 | OP_FlipUint16MemberPtr, |
| 18038 | OP_FlipUint16Float, |
| 18039 | OP_FlipUint16Reflect, |
| 18040 | OP_FlipSint32Sint8, |
| 18041 | OP_FlipSint32Uint8, |
| 18042 | OP_FlipSint32Sint16, |
| 18043 | OP_FlipSint32Uint16, |
| 18044 | OP_FlipSint32Sint32, |
| 18045 | OP_FlipSint32Uint32, |
| 18046 | OP_FlipSint32Sint64, |
| 18047 | OP_FlipSint32Uint64, |
| 18048 | OP_FlipSint32IntAP, |
| 18049 | OP_FlipSint32IntAPS, |
| 18050 | OP_FlipSint32Bool, |
| 18051 | OP_FlipSint32FixedPoint, |
| 18052 | OP_FlipSint32Ptr, |
| 18053 | OP_FlipSint32MemberPtr, |
| 18054 | OP_FlipSint32Float, |
| 18055 | OP_FlipSint32Reflect, |
| 18056 | OP_FlipUint32Sint8, |
| 18057 | OP_FlipUint32Uint8, |
| 18058 | OP_FlipUint32Sint16, |
| 18059 | OP_FlipUint32Uint16, |
| 18060 | OP_FlipUint32Sint32, |
| 18061 | OP_FlipUint32Uint32, |
| 18062 | OP_FlipUint32Sint64, |
| 18063 | OP_FlipUint32Uint64, |
| 18064 | OP_FlipUint32IntAP, |
| 18065 | OP_FlipUint32IntAPS, |
| 18066 | OP_FlipUint32Bool, |
| 18067 | OP_FlipUint32FixedPoint, |
| 18068 | OP_FlipUint32Ptr, |
| 18069 | OP_FlipUint32MemberPtr, |
| 18070 | OP_FlipUint32Float, |
| 18071 | OP_FlipUint32Reflect, |
| 18072 | OP_FlipSint64Sint8, |
| 18073 | OP_FlipSint64Uint8, |
| 18074 | OP_FlipSint64Sint16, |
| 18075 | OP_FlipSint64Uint16, |
| 18076 | OP_FlipSint64Sint32, |
| 18077 | OP_FlipSint64Uint32, |
| 18078 | OP_FlipSint64Sint64, |
| 18079 | OP_FlipSint64Uint64, |
| 18080 | OP_FlipSint64IntAP, |
| 18081 | OP_FlipSint64IntAPS, |
| 18082 | OP_FlipSint64Bool, |
| 18083 | OP_FlipSint64FixedPoint, |
| 18084 | OP_FlipSint64Ptr, |
| 18085 | OP_FlipSint64MemberPtr, |
| 18086 | OP_FlipSint64Float, |
| 18087 | OP_FlipSint64Reflect, |
| 18088 | OP_FlipUint64Sint8, |
| 18089 | OP_FlipUint64Uint8, |
| 18090 | OP_FlipUint64Sint16, |
| 18091 | OP_FlipUint64Uint16, |
| 18092 | OP_FlipUint64Sint32, |
| 18093 | OP_FlipUint64Uint32, |
| 18094 | OP_FlipUint64Sint64, |
| 18095 | OP_FlipUint64Uint64, |
| 18096 | OP_FlipUint64IntAP, |
| 18097 | OP_FlipUint64IntAPS, |
| 18098 | OP_FlipUint64Bool, |
| 18099 | OP_FlipUint64FixedPoint, |
| 18100 | OP_FlipUint64Ptr, |
| 18101 | OP_FlipUint64MemberPtr, |
| 18102 | OP_FlipUint64Float, |
| 18103 | OP_FlipUint64Reflect, |
| 18104 | OP_FlipIntAPSint8, |
| 18105 | OP_FlipIntAPUint8, |
| 18106 | OP_FlipIntAPSint16, |
| 18107 | OP_FlipIntAPUint16, |
| 18108 | OP_FlipIntAPSint32, |
| 18109 | OP_FlipIntAPUint32, |
| 18110 | OP_FlipIntAPSint64, |
| 18111 | OP_FlipIntAPUint64, |
| 18112 | OP_FlipIntAPIntAP, |
| 18113 | OP_FlipIntAPIntAPS, |
| 18114 | OP_FlipIntAPBool, |
| 18115 | OP_FlipIntAPFixedPoint, |
| 18116 | OP_FlipIntAPPtr, |
| 18117 | OP_FlipIntAPMemberPtr, |
| 18118 | OP_FlipIntAPFloat, |
| 18119 | OP_FlipIntAPReflect, |
| 18120 | OP_FlipIntAPSSint8, |
| 18121 | OP_FlipIntAPSUint8, |
| 18122 | OP_FlipIntAPSSint16, |
| 18123 | OP_FlipIntAPSUint16, |
| 18124 | OP_FlipIntAPSSint32, |
| 18125 | OP_FlipIntAPSUint32, |
| 18126 | OP_FlipIntAPSSint64, |
| 18127 | OP_FlipIntAPSUint64, |
| 18128 | OP_FlipIntAPSIntAP, |
| 18129 | OP_FlipIntAPSIntAPS, |
| 18130 | OP_FlipIntAPSBool, |
| 18131 | OP_FlipIntAPSFixedPoint, |
| 18132 | OP_FlipIntAPSPtr, |
| 18133 | OP_FlipIntAPSMemberPtr, |
| 18134 | OP_FlipIntAPSFloat, |
| 18135 | OP_FlipIntAPSReflect, |
| 18136 | OP_FlipBoolSint8, |
| 18137 | OP_FlipBoolUint8, |
| 18138 | OP_FlipBoolSint16, |
| 18139 | OP_FlipBoolUint16, |
| 18140 | OP_FlipBoolSint32, |
| 18141 | OP_FlipBoolUint32, |
| 18142 | OP_FlipBoolSint64, |
| 18143 | OP_FlipBoolUint64, |
| 18144 | OP_FlipBoolIntAP, |
| 18145 | OP_FlipBoolIntAPS, |
| 18146 | OP_FlipBoolBool, |
| 18147 | OP_FlipBoolFixedPoint, |
| 18148 | OP_FlipBoolPtr, |
| 18149 | OP_FlipBoolMemberPtr, |
| 18150 | OP_FlipBoolFloat, |
| 18151 | OP_FlipBoolReflect, |
| 18152 | OP_FlipFixedPointSint8, |
| 18153 | OP_FlipFixedPointUint8, |
| 18154 | OP_FlipFixedPointSint16, |
| 18155 | OP_FlipFixedPointUint16, |
| 18156 | OP_FlipFixedPointSint32, |
| 18157 | OP_FlipFixedPointUint32, |
| 18158 | OP_FlipFixedPointSint64, |
| 18159 | OP_FlipFixedPointUint64, |
| 18160 | OP_FlipFixedPointIntAP, |
| 18161 | OP_FlipFixedPointIntAPS, |
| 18162 | OP_FlipFixedPointBool, |
| 18163 | OP_FlipFixedPointFixedPoint, |
| 18164 | OP_FlipFixedPointPtr, |
| 18165 | OP_FlipFixedPointMemberPtr, |
| 18166 | OP_FlipFixedPointFloat, |
| 18167 | OP_FlipFixedPointReflect, |
| 18168 | OP_FlipPtrSint8, |
| 18169 | OP_FlipPtrUint8, |
| 18170 | OP_FlipPtrSint16, |
| 18171 | OP_FlipPtrUint16, |
| 18172 | OP_FlipPtrSint32, |
| 18173 | OP_FlipPtrUint32, |
| 18174 | OP_FlipPtrSint64, |
| 18175 | OP_FlipPtrUint64, |
| 18176 | OP_FlipPtrIntAP, |
| 18177 | OP_FlipPtrIntAPS, |
| 18178 | OP_FlipPtrBool, |
| 18179 | OP_FlipPtrFixedPoint, |
| 18180 | OP_FlipPtrPtr, |
| 18181 | OP_FlipPtrMemberPtr, |
| 18182 | OP_FlipPtrFloat, |
| 18183 | OP_FlipPtrReflect, |
| 18184 | OP_FlipMemberPtrSint8, |
| 18185 | OP_FlipMemberPtrUint8, |
| 18186 | OP_FlipMemberPtrSint16, |
| 18187 | OP_FlipMemberPtrUint16, |
| 18188 | OP_FlipMemberPtrSint32, |
| 18189 | OP_FlipMemberPtrUint32, |
| 18190 | OP_FlipMemberPtrSint64, |
| 18191 | OP_FlipMemberPtrUint64, |
| 18192 | OP_FlipMemberPtrIntAP, |
| 18193 | OP_FlipMemberPtrIntAPS, |
| 18194 | OP_FlipMemberPtrBool, |
| 18195 | OP_FlipMemberPtrFixedPoint, |
| 18196 | OP_FlipMemberPtrPtr, |
| 18197 | OP_FlipMemberPtrMemberPtr, |
| 18198 | OP_FlipMemberPtrFloat, |
| 18199 | OP_FlipMemberPtrReflect, |
| 18200 | OP_FlipFloatSint8, |
| 18201 | OP_FlipFloatUint8, |
| 18202 | OP_FlipFloatSint16, |
| 18203 | OP_FlipFloatUint16, |
| 18204 | OP_FlipFloatSint32, |
| 18205 | OP_FlipFloatUint32, |
| 18206 | OP_FlipFloatSint64, |
| 18207 | OP_FlipFloatUint64, |
| 18208 | OP_FlipFloatIntAP, |
| 18209 | OP_FlipFloatIntAPS, |
| 18210 | OP_FlipFloatBool, |
| 18211 | OP_FlipFloatFixedPoint, |
| 18212 | OP_FlipFloatPtr, |
| 18213 | OP_FlipFloatMemberPtr, |
| 18214 | OP_FlipFloatFloat, |
| 18215 | OP_FlipFloatReflect, |
| 18216 | OP_FlipReflectSint8, |
| 18217 | OP_FlipReflectUint8, |
| 18218 | OP_FlipReflectSint16, |
| 18219 | OP_FlipReflectUint16, |
| 18220 | OP_FlipReflectSint32, |
| 18221 | OP_FlipReflectUint32, |
| 18222 | OP_FlipReflectSint64, |
| 18223 | OP_FlipReflectUint64, |
| 18224 | OP_FlipReflectIntAP, |
| 18225 | OP_FlipReflectIntAPS, |
| 18226 | OP_FlipReflectBool, |
| 18227 | OP_FlipReflectFixedPoint, |
| 18228 | OP_FlipReflectPtr, |
| 18229 | OP_FlipReflectMemberPtr, |
| 18230 | OP_FlipReflectFloat, |
| 18231 | OP_FlipReflectReflect, |
| 18232 | #endif |
| 18233 | #ifdef GET_INTERPFN_LIST |
| 18234 | &Interp_FlipSint8Sint8, |
| 18235 | &Interp_FlipSint8Uint8, |
| 18236 | &Interp_FlipSint8Sint16, |
| 18237 | &Interp_FlipSint8Uint16, |
| 18238 | &Interp_FlipSint8Sint32, |
| 18239 | &Interp_FlipSint8Uint32, |
| 18240 | &Interp_FlipSint8Sint64, |
| 18241 | &Interp_FlipSint8Uint64, |
| 18242 | &Interp_FlipSint8IntAP, |
| 18243 | &Interp_FlipSint8IntAPS, |
| 18244 | &Interp_FlipSint8Bool, |
| 18245 | &Interp_FlipSint8FixedPoint, |
| 18246 | &Interp_FlipSint8Ptr, |
| 18247 | &Interp_FlipSint8MemberPtr, |
| 18248 | &Interp_FlipSint8Float, |
| 18249 | &Interp_FlipSint8Reflect, |
| 18250 | &Interp_FlipUint8Sint8, |
| 18251 | &Interp_FlipUint8Uint8, |
| 18252 | &Interp_FlipUint8Sint16, |
| 18253 | &Interp_FlipUint8Uint16, |
| 18254 | &Interp_FlipUint8Sint32, |
| 18255 | &Interp_FlipUint8Uint32, |
| 18256 | &Interp_FlipUint8Sint64, |
| 18257 | &Interp_FlipUint8Uint64, |
| 18258 | &Interp_FlipUint8IntAP, |
| 18259 | &Interp_FlipUint8IntAPS, |
| 18260 | &Interp_FlipUint8Bool, |
| 18261 | &Interp_FlipUint8FixedPoint, |
| 18262 | &Interp_FlipUint8Ptr, |
| 18263 | &Interp_FlipUint8MemberPtr, |
| 18264 | &Interp_FlipUint8Float, |
| 18265 | &Interp_FlipUint8Reflect, |
| 18266 | &Interp_FlipSint16Sint8, |
| 18267 | &Interp_FlipSint16Uint8, |
| 18268 | &Interp_FlipSint16Sint16, |
| 18269 | &Interp_FlipSint16Uint16, |
| 18270 | &Interp_FlipSint16Sint32, |
| 18271 | &Interp_FlipSint16Uint32, |
| 18272 | &Interp_FlipSint16Sint64, |
| 18273 | &Interp_FlipSint16Uint64, |
| 18274 | &Interp_FlipSint16IntAP, |
| 18275 | &Interp_FlipSint16IntAPS, |
| 18276 | &Interp_FlipSint16Bool, |
| 18277 | &Interp_FlipSint16FixedPoint, |
| 18278 | &Interp_FlipSint16Ptr, |
| 18279 | &Interp_FlipSint16MemberPtr, |
| 18280 | &Interp_FlipSint16Float, |
| 18281 | &Interp_FlipSint16Reflect, |
| 18282 | &Interp_FlipUint16Sint8, |
| 18283 | &Interp_FlipUint16Uint8, |
| 18284 | &Interp_FlipUint16Sint16, |
| 18285 | &Interp_FlipUint16Uint16, |
| 18286 | &Interp_FlipUint16Sint32, |
| 18287 | &Interp_FlipUint16Uint32, |
| 18288 | &Interp_FlipUint16Sint64, |
| 18289 | &Interp_FlipUint16Uint64, |
| 18290 | &Interp_FlipUint16IntAP, |
| 18291 | &Interp_FlipUint16IntAPS, |
| 18292 | &Interp_FlipUint16Bool, |
| 18293 | &Interp_FlipUint16FixedPoint, |
| 18294 | &Interp_FlipUint16Ptr, |
| 18295 | &Interp_FlipUint16MemberPtr, |
| 18296 | &Interp_FlipUint16Float, |
| 18297 | &Interp_FlipUint16Reflect, |
| 18298 | &Interp_FlipSint32Sint8, |
| 18299 | &Interp_FlipSint32Uint8, |
| 18300 | &Interp_FlipSint32Sint16, |
| 18301 | &Interp_FlipSint32Uint16, |
| 18302 | &Interp_FlipSint32Sint32, |
| 18303 | &Interp_FlipSint32Uint32, |
| 18304 | &Interp_FlipSint32Sint64, |
| 18305 | &Interp_FlipSint32Uint64, |
| 18306 | &Interp_FlipSint32IntAP, |
| 18307 | &Interp_FlipSint32IntAPS, |
| 18308 | &Interp_FlipSint32Bool, |
| 18309 | &Interp_FlipSint32FixedPoint, |
| 18310 | &Interp_FlipSint32Ptr, |
| 18311 | &Interp_FlipSint32MemberPtr, |
| 18312 | &Interp_FlipSint32Float, |
| 18313 | &Interp_FlipSint32Reflect, |
| 18314 | &Interp_FlipUint32Sint8, |
| 18315 | &Interp_FlipUint32Uint8, |
| 18316 | &Interp_FlipUint32Sint16, |
| 18317 | &Interp_FlipUint32Uint16, |
| 18318 | &Interp_FlipUint32Sint32, |
| 18319 | &Interp_FlipUint32Uint32, |
| 18320 | &Interp_FlipUint32Sint64, |
| 18321 | &Interp_FlipUint32Uint64, |
| 18322 | &Interp_FlipUint32IntAP, |
| 18323 | &Interp_FlipUint32IntAPS, |
| 18324 | &Interp_FlipUint32Bool, |
| 18325 | &Interp_FlipUint32FixedPoint, |
| 18326 | &Interp_FlipUint32Ptr, |
| 18327 | &Interp_FlipUint32MemberPtr, |
| 18328 | &Interp_FlipUint32Float, |
| 18329 | &Interp_FlipUint32Reflect, |
| 18330 | &Interp_FlipSint64Sint8, |
| 18331 | &Interp_FlipSint64Uint8, |
| 18332 | &Interp_FlipSint64Sint16, |
| 18333 | &Interp_FlipSint64Uint16, |
| 18334 | &Interp_FlipSint64Sint32, |
| 18335 | &Interp_FlipSint64Uint32, |
| 18336 | &Interp_FlipSint64Sint64, |
| 18337 | &Interp_FlipSint64Uint64, |
| 18338 | &Interp_FlipSint64IntAP, |
| 18339 | &Interp_FlipSint64IntAPS, |
| 18340 | &Interp_FlipSint64Bool, |
| 18341 | &Interp_FlipSint64FixedPoint, |
| 18342 | &Interp_FlipSint64Ptr, |
| 18343 | &Interp_FlipSint64MemberPtr, |
| 18344 | &Interp_FlipSint64Float, |
| 18345 | &Interp_FlipSint64Reflect, |
| 18346 | &Interp_FlipUint64Sint8, |
| 18347 | &Interp_FlipUint64Uint8, |
| 18348 | &Interp_FlipUint64Sint16, |
| 18349 | &Interp_FlipUint64Uint16, |
| 18350 | &Interp_FlipUint64Sint32, |
| 18351 | &Interp_FlipUint64Uint32, |
| 18352 | &Interp_FlipUint64Sint64, |
| 18353 | &Interp_FlipUint64Uint64, |
| 18354 | &Interp_FlipUint64IntAP, |
| 18355 | &Interp_FlipUint64IntAPS, |
| 18356 | &Interp_FlipUint64Bool, |
| 18357 | &Interp_FlipUint64FixedPoint, |
| 18358 | &Interp_FlipUint64Ptr, |
| 18359 | &Interp_FlipUint64MemberPtr, |
| 18360 | &Interp_FlipUint64Float, |
| 18361 | &Interp_FlipUint64Reflect, |
| 18362 | &Interp_FlipIntAPSint8, |
| 18363 | &Interp_FlipIntAPUint8, |
| 18364 | &Interp_FlipIntAPSint16, |
| 18365 | &Interp_FlipIntAPUint16, |
| 18366 | &Interp_FlipIntAPSint32, |
| 18367 | &Interp_FlipIntAPUint32, |
| 18368 | &Interp_FlipIntAPSint64, |
| 18369 | &Interp_FlipIntAPUint64, |
| 18370 | &Interp_FlipIntAPIntAP, |
| 18371 | &Interp_FlipIntAPIntAPS, |
| 18372 | &Interp_FlipIntAPBool, |
| 18373 | &Interp_FlipIntAPFixedPoint, |
| 18374 | &Interp_FlipIntAPPtr, |
| 18375 | &Interp_FlipIntAPMemberPtr, |
| 18376 | &Interp_FlipIntAPFloat, |
| 18377 | &Interp_FlipIntAPReflect, |
| 18378 | &Interp_FlipIntAPSSint8, |
| 18379 | &Interp_FlipIntAPSUint8, |
| 18380 | &Interp_FlipIntAPSSint16, |
| 18381 | &Interp_FlipIntAPSUint16, |
| 18382 | &Interp_FlipIntAPSSint32, |
| 18383 | &Interp_FlipIntAPSUint32, |
| 18384 | &Interp_FlipIntAPSSint64, |
| 18385 | &Interp_FlipIntAPSUint64, |
| 18386 | &Interp_FlipIntAPSIntAP, |
| 18387 | &Interp_FlipIntAPSIntAPS, |
| 18388 | &Interp_FlipIntAPSBool, |
| 18389 | &Interp_FlipIntAPSFixedPoint, |
| 18390 | &Interp_FlipIntAPSPtr, |
| 18391 | &Interp_FlipIntAPSMemberPtr, |
| 18392 | &Interp_FlipIntAPSFloat, |
| 18393 | &Interp_FlipIntAPSReflect, |
| 18394 | &Interp_FlipBoolSint8, |
| 18395 | &Interp_FlipBoolUint8, |
| 18396 | &Interp_FlipBoolSint16, |
| 18397 | &Interp_FlipBoolUint16, |
| 18398 | &Interp_FlipBoolSint32, |
| 18399 | &Interp_FlipBoolUint32, |
| 18400 | &Interp_FlipBoolSint64, |
| 18401 | &Interp_FlipBoolUint64, |
| 18402 | &Interp_FlipBoolIntAP, |
| 18403 | &Interp_FlipBoolIntAPS, |
| 18404 | &Interp_FlipBoolBool, |
| 18405 | &Interp_FlipBoolFixedPoint, |
| 18406 | &Interp_FlipBoolPtr, |
| 18407 | &Interp_FlipBoolMemberPtr, |
| 18408 | &Interp_FlipBoolFloat, |
| 18409 | &Interp_FlipBoolReflect, |
| 18410 | &Interp_FlipFixedPointSint8, |
| 18411 | &Interp_FlipFixedPointUint8, |
| 18412 | &Interp_FlipFixedPointSint16, |
| 18413 | &Interp_FlipFixedPointUint16, |
| 18414 | &Interp_FlipFixedPointSint32, |
| 18415 | &Interp_FlipFixedPointUint32, |
| 18416 | &Interp_FlipFixedPointSint64, |
| 18417 | &Interp_FlipFixedPointUint64, |
| 18418 | &Interp_FlipFixedPointIntAP, |
| 18419 | &Interp_FlipFixedPointIntAPS, |
| 18420 | &Interp_FlipFixedPointBool, |
| 18421 | &Interp_FlipFixedPointFixedPoint, |
| 18422 | &Interp_FlipFixedPointPtr, |
| 18423 | &Interp_FlipFixedPointMemberPtr, |
| 18424 | &Interp_FlipFixedPointFloat, |
| 18425 | &Interp_FlipFixedPointReflect, |
| 18426 | &Interp_FlipPtrSint8, |
| 18427 | &Interp_FlipPtrUint8, |
| 18428 | &Interp_FlipPtrSint16, |
| 18429 | &Interp_FlipPtrUint16, |
| 18430 | &Interp_FlipPtrSint32, |
| 18431 | &Interp_FlipPtrUint32, |
| 18432 | &Interp_FlipPtrSint64, |
| 18433 | &Interp_FlipPtrUint64, |
| 18434 | &Interp_FlipPtrIntAP, |
| 18435 | &Interp_FlipPtrIntAPS, |
| 18436 | &Interp_FlipPtrBool, |
| 18437 | &Interp_FlipPtrFixedPoint, |
| 18438 | &Interp_FlipPtrPtr, |
| 18439 | &Interp_FlipPtrMemberPtr, |
| 18440 | &Interp_FlipPtrFloat, |
| 18441 | &Interp_FlipPtrReflect, |
| 18442 | &Interp_FlipMemberPtrSint8, |
| 18443 | &Interp_FlipMemberPtrUint8, |
| 18444 | &Interp_FlipMemberPtrSint16, |
| 18445 | &Interp_FlipMemberPtrUint16, |
| 18446 | &Interp_FlipMemberPtrSint32, |
| 18447 | &Interp_FlipMemberPtrUint32, |
| 18448 | &Interp_FlipMemberPtrSint64, |
| 18449 | &Interp_FlipMemberPtrUint64, |
| 18450 | &Interp_FlipMemberPtrIntAP, |
| 18451 | &Interp_FlipMemberPtrIntAPS, |
| 18452 | &Interp_FlipMemberPtrBool, |
| 18453 | &Interp_FlipMemberPtrFixedPoint, |
| 18454 | &Interp_FlipMemberPtrPtr, |
| 18455 | &Interp_FlipMemberPtrMemberPtr, |
| 18456 | &Interp_FlipMemberPtrFloat, |
| 18457 | &Interp_FlipMemberPtrReflect, |
| 18458 | &Interp_FlipFloatSint8, |
| 18459 | &Interp_FlipFloatUint8, |
| 18460 | &Interp_FlipFloatSint16, |
| 18461 | &Interp_FlipFloatUint16, |
| 18462 | &Interp_FlipFloatSint32, |
| 18463 | &Interp_FlipFloatUint32, |
| 18464 | &Interp_FlipFloatSint64, |
| 18465 | &Interp_FlipFloatUint64, |
| 18466 | &Interp_FlipFloatIntAP, |
| 18467 | &Interp_FlipFloatIntAPS, |
| 18468 | &Interp_FlipFloatBool, |
| 18469 | &Interp_FlipFloatFixedPoint, |
| 18470 | &Interp_FlipFloatPtr, |
| 18471 | &Interp_FlipFloatMemberPtr, |
| 18472 | &Interp_FlipFloatFloat, |
| 18473 | &Interp_FlipFloatReflect, |
| 18474 | &Interp_FlipReflectSint8, |
| 18475 | &Interp_FlipReflectUint8, |
| 18476 | &Interp_FlipReflectSint16, |
| 18477 | &Interp_FlipReflectUint16, |
| 18478 | &Interp_FlipReflectSint32, |
| 18479 | &Interp_FlipReflectUint32, |
| 18480 | &Interp_FlipReflectSint64, |
| 18481 | &Interp_FlipReflectUint64, |
| 18482 | &Interp_FlipReflectIntAP, |
| 18483 | &Interp_FlipReflectIntAPS, |
| 18484 | &Interp_FlipReflectBool, |
| 18485 | &Interp_FlipReflectFixedPoint, |
| 18486 | &Interp_FlipReflectPtr, |
| 18487 | &Interp_FlipReflectMemberPtr, |
| 18488 | &Interp_FlipReflectFloat, |
| 18489 | &Interp_FlipReflectReflect, |
| 18490 | #endif |
| 18491 | #ifdef GET_INTERPFN_DISPATCHERS |
| 18492 | PRESERVE_NONE |
| 18493 | static bool Interp_FlipSint8Sint8(InterpState &S) { |
| 18494 | Flip<PT_Sint8, PT_Sint8>(S); |
| 18495 | #if USE_TAILCALLS |
| 18496 | MUSTTAIL return InterpNext(S); |
| 18497 | #else |
| 18498 | return true; |
| 18499 | #endif |
| 18500 | } |
| 18501 | PRESERVE_NONE |
| 18502 | static bool Interp_FlipSint8Uint8(InterpState &S) { |
| 18503 | Flip<PT_Sint8, PT_Uint8>(S); |
| 18504 | #if USE_TAILCALLS |
| 18505 | MUSTTAIL return InterpNext(S); |
| 18506 | #else |
| 18507 | return true; |
| 18508 | #endif |
| 18509 | } |
| 18510 | PRESERVE_NONE |
| 18511 | static bool Interp_FlipSint8Sint16(InterpState &S) { |
| 18512 | Flip<PT_Sint8, PT_Sint16>(S); |
| 18513 | #if USE_TAILCALLS |
| 18514 | MUSTTAIL return InterpNext(S); |
| 18515 | #else |
| 18516 | return true; |
| 18517 | #endif |
| 18518 | } |
| 18519 | PRESERVE_NONE |
| 18520 | static bool Interp_FlipSint8Uint16(InterpState &S) { |
| 18521 | Flip<PT_Sint8, PT_Uint16>(S); |
| 18522 | #if USE_TAILCALLS |
| 18523 | MUSTTAIL return InterpNext(S); |
| 18524 | #else |
| 18525 | return true; |
| 18526 | #endif |
| 18527 | } |
| 18528 | PRESERVE_NONE |
| 18529 | static bool Interp_FlipSint8Sint32(InterpState &S) { |
| 18530 | Flip<PT_Sint8, PT_Sint32>(S); |
| 18531 | #if USE_TAILCALLS |
| 18532 | MUSTTAIL return InterpNext(S); |
| 18533 | #else |
| 18534 | return true; |
| 18535 | #endif |
| 18536 | } |
| 18537 | PRESERVE_NONE |
| 18538 | static bool Interp_FlipSint8Uint32(InterpState &S) { |
| 18539 | Flip<PT_Sint8, PT_Uint32>(S); |
| 18540 | #if USE_TAILCALLS |
| 18541 | MUSTTAIL return InterpNext(S); |
| 18542 | #else |
| 18543 | return true; |
| 18544 | #endif |
| 18545 | } |
| 18546 | PRESERVE_NONE |
| 18547 | static bool Interp_FlipSint8Sint64(InterpState &S) { |
| 18548 | Flip<PT_Sint8, PT_Sint64>(S); |
| 18549 | #if USE_TAILCALLS |
| 18550 | MUSTTAIL return InterpNext(S); |
| 18551 | #else |
| 18552 | return true; |
| 18553 | #endif |
| 18554 | } |
| 18555 | PRESERVE_NONE |
| 18556 | static bool Interp_FlipSint8Uint64(InterpState &S) { |
| 18557 | Flip<PT_Sint8, PT_Uint64>(S); |
| 18558 | #if USE_TAILCALLS |
| 18559 | MUSTTAIL return InterpNext(S); |
| 18560 | #else |
| 18561 | return true; |
| 18562 | #endif |
| 18563 | } |
| 18564 | PRESERVE_NONE |
| 18565 | static bool Interp_FlipSint8IntAP(InterpState &S) { |
| 18566 | Flip<PT_Sint8, PT_IntAP>(S); |
| 18567 | #if USE_TAILCALLS |
| 18568 | MUSTTAIL return InterpNext(S); |
| 18569 | #else |
| 18570 | return true; |
| 18571 | #endif |
| 18572 | } |
| 18573 | PRESERVE_NONE |
| 18574 | static bool Interp_FlipSint8IntAPS(InterpState &S) { |
| 18575 | Flip<PT_Sint8, PT_IntAPS>(S); |
| 18576 | #if USE_TAILCALLS |
| 18577 | MUSTTAIL return InterpNext(S); |
| 18578 | #else |
| 18579 | return true; |
| 18580 | #endif |
| 18581 | } |
| 18582 | PRESERVE_NONE |
| 18583 | static bool Interp_FlipSint8Bool(InterpState &S) { |
| 18584 | Flip<PT_Sint8, PT_Bool>(S); |
| 18585 | #if USE_TAILCALLS |
| 18586 | MUSTTAIL return InterpNext(S); |
| 18587 | #else |
| 18588 | return true; |
| 18589 | #endif |
| 18590 | } |
| 18591 | PRESERVE_NONE |
| 18592 | static bool Interp_FlipSint8FixedPoint(InterpState &S) { |
| 18593 | Flip<PT_Sint8, PT_FixedPoint>(S); |
| 18594 | #if USE_TAILCALLS |
| 18595 | MUSTTAIL return InterpNext(S); |
| 18596 | #else |
| 18597 | return true; |
| 18598 | #endif |
| 18599 | } |
| 18600 | PRESERVE_NONE |
| 18601 | static bool Interp_FlipSint8Ptr(InterpState &S) { |
| 18602 | Flip<PT_Sint8, PT_Ptr>(S); |
| 18603 | #if USE_TAILCALLS |
| 18604 | MUSTTAIL return InterpNext(S); |
| 18605 | #else |
| 18606 | return true; |
| 18607 | #endif |
| 18608 | } |
| 18609 | PRESERVE_NONE |
| 18610 | static bool Interp_FlipSint8MemberPtr(InterpState &S) { |
| 18611 | Flip<PT_Sint8, PT_MemberPtr>(S); |
| 18612 | #if USE_TAILCALLS |
| 18613 | MUSTTAIL return InterpNext(S); |
| 18614 | #else |
| 18615 | return true; |
| 18616 | #endif |
| 18617 | } |
| 18618 | PRESERVE_NONE |
| 18619 | static bool Interp_FlipSint8Float(InterpState &S) { |
| 18620 | Flip<PT_Sint8, PT_Float>(S); |
| 18621 | #if USE_TAILCALLS |
| 18622 | MUSTTAIL return InterpNext(S); |
| 18623 | #else |
| 18624 | return true; |
| 18625 | #endif |
| 18626 | } |
| 18627 | PRESERVE_NONE |
| 18628 | static bool Interp_FlipSint8Reflect(InterpState &S) { |
| 18629 | Flip<PT_Sint8, PT_Reflect>(S); |
| 18630 | #if USE_TAILCALLS |
| 18631 | MUSTTAIL return InterpNext(S); |
| 18632 | #else |
| 18633 | return true; |
| 18634 | #endif |
| 18635 | } |
| 18636 | PRESERVE_NONE |
| 18637 | static bool Interp_FlipUint8Sint8(InterpState &S) { |
| 18638 | Flip<PT_Uint8, PT_Sint8>(S); |
| 18639 | #if USE_TAILCALLS |
| 18640 | MUSTTAIL return InterpNext(S); |
| 18641 | #else |
| 18642 | return true; |
| 18643 | #endif |
| 18644 | } |
| 18645 | PRESERVE_NONE |
| 18646 | static bool Interp_FlipUint8Uint8(InterpState &S) { |
| 18647 | Flip<PT_Uint8, PT_Uint8>(S); |
| 18648 | #if USE_TAILCALLS |
| 18649 | MUSTTAIL return InterpNext(S); |
| 18650 | #else |
| 18651 | return true; |
| 18652 | #endif |
| 18653 | } |
| 18654 | PRESERVE_NONE |
| 18655 | static bool Interp_FlipUint8Sint16(InterpState &S) { |
| 18656 | Flip<PT_Uint8, PT_Sint16>(S); |
| 18657 | #if USE_TAILCALLS |
| 18658 | MUSTTAIL return InterpNext(S); |
| 18659 | #else |
| 18660 | return true; |
| 18661 | #endif |
| 18662 | } |
| 18663 | PRESERVE_NONE |
| 18664 | static bool Interp_FlipUint8Uint16(InterpState &S) { |
| 18665 | Flip<PT_Uint8, PT_Uint16>(S); |
| 18666 | #if USE_TAILCALLS |
| 18667 | MUSTTAIL return InterpNext(S); |
| 18668 | #else |
| 18669 | return true; |
| 18670 | #endif |
| 18671 | } |
| 18672 | PRESERVE_NONE |
| 18673 | static bool Interp_FlipUint8Sint32(InterpState &S) { |
| 18674 | Flip<PT_Uint8, PT_Sint32>(S); |
| 18675 | #if USE_TAILCALLS |
| 18676 | MUSTTAIL return InterpNext(S); |
| 18677 | #else |
| 18678 | return true; |
| 18679 | #endif |
| 18680 | } |
| 18681 | PRESERVE_NONE |
| 18682 | static bool Interp_FlipUint8Uint32(InterpState &S) { |
| 18683 | Flip<PT_Uint8, PT_Uint32>(S); |
| 18684 | #if USE_TAILCALLS |
| 18685 | MUSTTAIL return InterpNext(S); |
| 18686 | #else |
| 18687 | return true; |
| 18688 | #endif |
| 18689 | } |
| 18690 | PRESERVE_NONE |
| 18691 | static bool Interp_FlipUint8Sint64(InterpState &S) { |
| 18692 | Flip<PT_Uint8, PT_Sint64>(S); |
| 18693 | #if USE_TAILCALLS |
| 18694 | MUSTTAIL return InterpNext(S); |
| 18695 | #else |
| 18696 | return true; |
| 18697 | #endif |
| 18698 | } |
| 18699 | PRESERVE_NONE |
| 18700 | static bool Interp_FlipUint8Uint64(InterpState &S) { |
| 18701 | Flip<PT_Uint8, PT_Uint64>(S); |
| 18702 | #if USE_TAILCALLS |
| 18703 | MUSTTAIL return InterpNext(S); |
| 18704 | #else |
| 18705 | return true; |
| 18706 | #endif |
| 18707 | } |
| 18708 | PRESERVE_NONE |
| 18709 | static bool Interp_FlipUint8IntAP(InterpState &S) { |
| 18710 | Flip<PT_Uint8, PT_IntAP>(S); |
| 18711 | #if USE_TAILCALLS |
| 18712 | MUSTTAIL return InterpNext(S); |
| 18713 | #else |
| 18714 | return true; |
| 18715 | #endif |
| 18716 | } |
| 18717 | PRESERVE_NONE |
| 18718 | static bool Interp_FlipUint8IntAPS(InterpState &S) { |
| 18719 | Flip<PT_Uint8, PT_IntAPS>(S); |
| 18720 | #if USE_TAILCALLS |
| 18721 | MUSTTAIL return InterpNext(S); |
| 18722 | #else |
| 18723 | return true; |
| 18724 | #endif |
| 18725 | } |
| 18726 | PRESERVE_NONE |
| 18727 | static bool Interp_FlipUint8Bool(InterpState &S) { |
| 18728 | Flip<PT_Uint8, PT_Bool>(S); |
| 18729 | #if USE_TAILCALLS |
| 18730 | MUSTTAIL return InterpNext(S); |
| 18731 | #else |
| 18732 | return true; |
| 18733 | #endif |
| 18734 | } |
| 18735 | PRESERVE_NONE |
| 18736 | static bool Interp_FlipUint8FixedPoint(InterpState &S) { |
| 18737 | Flip<PT_Uint8, PT_FixedPoint>(S); |
| 18738 | #if USE_TAILCALLS |
| 18739 | MUSTTAIL return InterpNext(S); |
| 18740 | #else |
| 18741 | return true; |
| 18742 | #endif |
| 18743 | } |
| 18744 | PRESERVE_NONE |
| 18745 | static bool Interp_FlipUint8Ptr(InterpState &S) { |
| 18746 | Flip<PT_Uint8, PT_Ptr>(S); |
| 18747 | #if USE_TAILCALLS |
| 18748 | MUSTTAIL return InterpNext(S); |
| 18749 | #else |
| 18750 | return true; |
| 18751 | #endif |
| 18752 | } |
| 18753 | PRESERVE_NONE |
| 18754 | static bool Interp_FlipUint8MemberPtr(InterpState &S) { |
| 18755 | Flip<PT_Uint8, PT_MemberPtr>(S); |
| 18756 | #if USE_TAILCALLS |
| 18757 | MUSTTAIL return InterpNext(S); |
| 18758 | #else |
| 18759 | return true; |
| 18760 | #endif |
| 18761 | } |
| 18762 | PRESERVE_NONE |
| 18763 | static bool Interp_FlipUint8Float(InterpState &S) { |
| 18764 | Flip<PT_Uint8, PT_Float>(S); |
| 18765 | #if USE_TAILCALLS |
| 18766 | MUSTTAIL return InterpNext(S); |
| 18767 | #else |
| 18768 | return true; |
| 18769 | #endif |
| 18770 | } |
| 18771 | PRESERVE_NONE |
| 18772 | static bool Interp_FlipUint8Reflect(InterpState &S) { |
| 18773 | Flip<PT_Uint8, PT_Reflect>(S); |
| 18774 | #if USE_TAILCALLS |
| 18775 | MUSTTAIL return InterpNext(S); |
| 18776 | #else |
| 18777 | return true; |
| 18778 | #endif |
| 18779 | } |
| 18780 | PRESERVE_NONE |
| 18781 | static bool Interp_FlipSint16Sint8(InterpState &S) { |
| 18782 | Flip<PT_Sint16, PT_Sint8>(S); |
| 18783 | #if USE_TAILCALLS |
| 18784 | MUSTTAIL return InterpNext(S); |
| 18785 | #else |
| 18786 | return true; |
| 18787 | #endif |
| 18788 | } |
| 18789 | PRESERVE_NONE |
| 18790 | static bool Interp_FlipSint16Uint8(InterpState &S) { |
| 18791 | Flip<PT_Sint16, PT_Uint8>(S); |
| 18792 | #if USE_TAILCALLS |
| 18793 | MUSTTAIL return InterpNext(S); |
| 18794 | #else |
| 18795 | return true; |
| 18796 | #endif |
| 18797 | } |
| 18798 | PRESERVE_NONE |
| 18799 | static bool Interp_FlipSint16Sint16(InterpState &S) { |
| 18800 | Flip<PT_Sint16, PT_Sint16>(S); |
| 18801 | #if USE_TAILCALLS |
| 18802 | MUSTTAIL return InterpNext(S); |
| 18803 | #else |
| 18804 | return true; |
| 18805 | #endif |
| 18806 | } |
| 18807 | PRESERVE_NONE |
| 18808 | static bool Interp_FlipSint16Uint16(InterpState &S) { |
| 18809 | Flip<PT_Sint16, PT_Uint16>(S); |
| 18810 | #if USE_TAILCALLS |
| 18811 | MUSTTAIL return InterpNext(S); |
| 18812 | #else |
| 18813 | return true; |
| 18814 | #endif |
| 18815 | } |
| 18816 | PRESERVE_NONE |
| 18817 | static bool Interp_FlipSint16Sint32(InterpState &S) { |
| 18818 | Flip<PT_Sint16, PT_Sint32>(S); |
| 18819 | #if USE_TAILCALLS |
| 18820 | MUSTTAIL return InterpNext(S); |
| 18821 | #else |
| 18822 | return true; |
| 18823 | #endif |
| 18824 | } |
| 18825 | PRESERVE_NONE |
| 18826 | static bool Interp_FlipSint16Uint32(InterpState &S) { |
| 18827 | Flip<PT_Sint16, PT_Uint32>(S); |
| 18828 | #if USE_TAILCALLS |
| 18829 | MUSTTAIL return InterpNext(S); |
| 18830 | #else |
| 18831 | return true; |
| 18832 | #endif |
| 18833 | } |
| 18834 | PRESERVE_NONE |
| 18835 | static bool Interp_FlipSint16Sint64(InterpState &S) { |
| 18836 | Flip<PT_Sint16, PT_Sint64>(S); |
| 18837 | #if USE_TAILCALLS |
| 18838 | MUSTTAIL return InterpNext(S); |
| 18839 | #else |
| 18840 | return true; |
| 18841 | #endif |
| 18842 | } |
| 18843 | PRESERVE_NONE |
| 18844 | static bool Interp_FlipSint16Uint64(InterpState &S) { |
| 18845 | Flip<PT_Sint16, PT_Uint64>(S); |
| 18846 | #if USE_TAILCALLS |
| 18847 | MUSTTAIL return InterpNext(S); |
| 18848 | #else |
| 18849 | return true; |
| 18850 | #endif |
| 18851 | } |
| 18852 | PRESERVE_NONE |
| 18853 | static bool Interp_FlipSint16IntAP(InterpState &S) { |
| 18854 | Flip<PT_Sint16, PT_IntAP>(S); |
| 18855 | #if USE_TAILCALLS |
| 18856 | MUSTTAIL return InterpNext(S); |
| 18857 | #else |
| 18858 | return true; |
| 18859 | #endif |
| 18860 | } |
| 18861 | PRESERVE_NONE |
| 18862 | static bool Interp_FlipSint16IntAPS(InterpState &S) { |
| 18863 | Flip<PT_Sint16, PT_IntAPS>(S); |
| 18864 | #if USE_TAILCALLS |
| 18865 | MUSTTAIL return InterpNext(S); |
| 18866 | #else |
| 18867 | return true; |
| 18868 | #endif |
| 18869 | } |
| 18870 | PRESERVE_NONE |
| 18871 | static bool Interp_FlipSint16Bool(InterpState &S) { |
| 18872 | Flip<PT_Sint16, PT_Bool>(S); |
| 18873 | #if USE_TAILCALLS |
| 18874 | MUSTTAIL return InterpNext(S); |
| 18875 | #else |
| 18876 | return true; |
| 18877 | #endif |
| 18878 | } |
| 18879 | PRESERVE_NONE |
| 18880 | static bool Interp_FlipSint16FixedPoint(InterpState &S) { |
| 18881 | Flip<PT_Sint16, PT_FixedPoint>(S); |
| 18882 | #if USE_TAILCALLS |
| 18883 | MUSTTAIL return InterpNext(S); |
| 18884 | #else |
| 18885 | return true; |
| 18886 | #endif |
| 18887 | } |
| 18888 | PRESERVE_NONE |
| 18889 | static bool Interp_FlipSint16Ptr(InterpState &S) { |
| 18890 | Flip<PT_Sint16, PT_Ptr>(S); |
| 18891 | #if USE_TAILCALLS |
| 18892 | MUSTTAIL return InterpNext(S); |
| 18893 | #else |
| 18894 | return true; |
| 18895 | #endif |
| 18896 | } |
| 18897 | PRESERVE_NONE |
| 18898 | static bool Interp_FlipSint16MemberPtr(InterpState &S) { |
| 18899 | Flip<PT_Sint16, PT_MemberPtr>(S); |
| 18900 | #if USE_TAILCALLS |
| 18901 | MUSTTAIL return InterpNext(S); |
| 18902 | #else |
| 18903 | return true; |
| 18904 | #endif |
| 18905 | } |
| 18906 | PRESERVE_NONE |
| 18907 | static bool Interp_FlipSint16Float(InterpState &S) { |
| 18908 | Flip<PT_Sint16, PT_Float>(S); |
| 18909 | #if USE_TAILCALLS |
| 18910 | MUSTTAIL return InterpNext(S); |
| 18911 | #else |
| 18912 | return true; |
| 18913 | #endif |
| 18914 | } |
| 18915 | PRESERVE_NONE |
| 18916 | static bool Interp_FlipSint16Reflect(InterpState &S) { |
| 18917 | Flip<PT_Sint16, PT_Reflect>(S); |
| 18918 | #if USE_TAILCALLS |
| 18919 | MUSTTAIL return InterpNext(S); |
| 18920 | #else |
| 18921 | return true; |
| 18922 | #endif |
| 18923 | } |
| 18924 | PRESERVE_NONE |
| 18925 | static bool Interp_FlipUint16Sint8(InterpState &S) { |
| 18926 | Flip<PT_Uint16, PT_Sint8>(S); |
| 18927 | #if USE_TAILCALLS |
| 18928 | MUSTTAIL return InterpNext(S); |
| 18929 | #else |
| 18930 | return true; |
| 18931 | #endif |
| 18932 | } |
| 18933 | PRESERVE_NONE |
| 18934 | static bool Interp_FlipUint16Uint8(InterpState &S) { |
| 18935 | Flip<PT_Uint16, PT_Uint8>(S); |
| 18936 | #if USE_TAILCALLS |
| 18937 | MUSTTAIL return InterpNext(S); |
| 18938 | #else |
| 18939 | return true; |
| 18940 | #endif |
| 18941 | } |
| 18942 | PRESERVE_NONE |
| 18943 | static bool Interp_FlipUint16Sint16(InterpState &S) { |
| 18944 | Flip<PT_Uint16, PT_Sint16>(S); |
| 18945 | #if USE_TAILCALLS |
| 18946 | MUSTTAIL return InterpNext(S); |
| 18947 | #else |
| 18948 | return true; |
| 18949 | #endif |
| 18950 | } |
| 18951 | PRESERVE_NONE |
| 18952 | static bool Interp_FlipUint16Uint16(InterpState &S) { |
| 18953 | Flip<PT_Uint16, PT_Uint16>(S); |
| 18954 | #if USE_TAILCALLS |
| 18955 | MUSTTAIL return InterpNext(S); |
| 18956 | #else |
| 18957 | return true; |
| 18958 | #endif |
| 18959 | } |
| 18960 | PRESERVE_NONE |
| 18961 | static bool Interp_FlipUint16Sint32(InterpState &S) { |
| 18962 | Flip<PT_Uint16, PT_Sint32>(S); |
| 18963 | #if USE_TAILCALLS |
| 18964 | MUSTTAIL return InterpNext(S); |
| 18965 | #else |
| 18966 | return true; |
| 18967 | #endif |
| 18968 | } |
| 18969 | PRESERVE_NONE |
| 18970 | static bool Interp_FlipUint16Uint32(InterpState &S) { |
| 18971 | Flip<PT_Uint16, PT_Uint32>(S); |
| 18972 | #if USE_TAILCALLS |
| 18973 | MUSTTAIL return InterpNext(S); |
| 18974 | #else |
| 18975 | return true; |
| 18976 | #endif |
| 18977 | } |
| 18978 | PRESERVE_NONE |
| 18979 | static bool Interp_FlipUint16Sint64(InterpState &S) { |
| 18980 | Flip<PT_Uint16, PT_Sint64>(S); |
| 18981 | #if USE_TAILCALLS |
| 18982 | MUSTTAIL return InterpNext(S); |
| 18983 | #else |
| 18984 | return true; |
| 18985 | #endif |
| 18986 | } |
| 18987 | PRESERVE_NONE |
| 18988 | static bool Interp_FlipUint16Uint64(InterpState &S) { |
| 18989 | Flip<PT_Uint16, PT_Uint64>(S); |
| 18990 | #if USE_TAILCALLS |
| 18991 | MUSTTAIL return InterpNext(S); |
| 18992 | #else |
| 18993 | return true; |
| 18994 | #endif |
| 18995 | } |
| 18996 | PRESERVE_NONE |
| 18997 | static bool Interp_FlipUint16IntAP(InterpState &S) { |
| 18998 | Flip<PT_Uint16, PT_IntAP>(S); |
| 18999 | #if USE_TAILCALLS |
| 19000 | MUSTTAIL return InterpNext(S); |
| 19001 | #else |
| 19002 | return true; |
| 19003 | #endif |
| 19004 | } |
| 19005 | PRESERVE_NONE |
| 19006 | static bool Interp_FlipUint16IntAPS(InterpState &S) { |
| 19007 | Flip<PT_Uint16, PT_IntAPS>(S); |
| 19008 | #if USE_TAILCALLS |
| 19009 | MUSTTAIL return InterpNext(S); |
| 19010 | #else |
| 19011 | return true; |
| 19012 | #endif |
| 19013 | } |
| 19014 | PRESERVE_NONE |
| 19015 | static bool Interp_FlipUint16Bool(InterpState &S) { |
| 19016 | Flip<PT_Uint16, PT_Bool>(S); |
| 19017 | #if USE_TAILCALLS |
| 19018 | MUSTTAIL return InterpNext(S); |
| 19019 | #else |
| 19020 | return true; |
| 19021 | #endif |
| 19022 | } |
| 19023 | PRESERVE_NONE |
| 19024 | static bool Interp_FlipUint16FixedPoint(InterpState &S) { |
| 19025 | Flip<PT_Uint16, PT_FixedPoint>(S); |
| 19026 | #if USE_TAILCALLS |
| 19027 | MUSTTAIL return InterpNext(S); |
| 19028 | #else |
| 19029 | return true; |
| 19030 | #endif |
| 19031 | } |
| 19032 | PRESERVE_NONE |
| 19033 | static bool Interp_FlipUint16Ptr(InterpState &S) { |
| 19034 | Flip<PT_Uint16, PT_Ptr>(S); |
| 19035 | #if USE_TAILCALLS |
| 19036 | MUSTTAIL return InterpNext(S); |
| 19037 | #else |
| 19038 | return true; |
| 19039 | #endif |
| 19040 | } |
| 19041 | PRESERVE_NONE |
| 19042 | static bool Interp_FlipUint16MemberPtr(InterpState &S) { |
| 19043 | Flip<PT_Uint16, PT_MemberPtr>(S); |
| 19044 | #if USE_TAILCALLS |
| 19045 | MUSTTAIL return InterpNext(S); |
| 19046 | #else |
| 19047 | return true; |
| 19048 | #endif |
| 19049 | } |
| 19050 | PRESERVE_NONE |
| 19051 | static bool Interp_FlipUint16Float(InterpState &S) { |
| 19052 | Flip<PT_Uint16, PT_Float>(S); |
| 19053 | #if USE_TAILCALLS |
| 19054 | MUSTTAIL return InterpNext(S); |
| 19055 | #else |
| 19056 | return true; |
| 19057 | #endif |
| 19058 | } |
| 19059 | PRESERVE_NONE |
| 19060 | static bool Interp_FlipUint16Reflect(InterpState &S) { |
| 19061 | Flip<PT_Uint16, PT_Reflect>(S); |
| 19062 | #if USE_TAILCALLS |
| 19063 | MUSTTAIL return InterpNext(S); |
| 19064 | #else |
| 19065 | return true; |
| 19066 | #endif |
| 19067 | } |
| 19068 | PRESERVE_NONE |
| 19069 | static bool Interp_FlipSint32Sint8(InterpState &S) { |
| 19070 | Flip<PT_Sint32, PT_Sint8>(S); |
| 19071 | #if USE_TAILCALLS |
| 19072 | MUSTTAIL return InterpNext(S); |
| 19073 | #else |
| 19074 | return true; |
| 19075 | #endif |
| 19076 | } |
| 19077 | PRESERVE_NONE |
| 19078 | static bool Interp_FlipSint32Uint8(InterpState &S) { |
| 19079 | Flip<PT_Sint32, PT_Uint8>(S); |
| 19080 | #if USE_TAILCALLS |
| 19081 | MUSTTAIL return InterpNext(S); |
| 19082 | #else |
| 19083 | return true; |
| 19084 | #endif |
| 19085 | } |
| 19086 | PRESERVE_NONE |
| 19087 | static bool Interp_FlipSint32Sint16(InterpState &S) { |
| 19088 | Flip<PT_Sint32, PT_Sint16>(S); |
| 19089 | #if USE_TAILCALLS |
| 19090 | MUSTTAIL return InterpNext(S); |
| 19091 | #else |
| 19092 | return true; |
| 19093 | #endif |
| 19094 | } |
| 19095 | PRESERVE_NONE |
| 19096 | static bool Interp_FlipSint32Uint16(InterpState &S) { |
| 19097 | Flip<PT_Sint32, PT_Uint16>(S); |
| 19098 | #if USE_TAILCALLS |
| 19099 | MUSTTAIL return InterpNext(S); |
| 19100 | #else |
| 19101 | return true; |
| 19102 | #endif |
| 19103 | } |
| 19104 | PRESERVE_NONE |
| 19105 | static bool Interp_FlipSint32Sint32(InterpState &S) { |
| 19106 | Flip<PT_Sint32, PT_Sint32>(S); |
| 19107 | #if USE_TAILCALLS |
| 19108 | MUSTTAIL return InterpNext(S); |
| 19109 | #else |
| 19110 | return true; |
| 19111 | #endif |
| 19112 | } |
| 19113 | PRESERVE_NONE |
| 19114 | static bool Interp_FlipSint32Uint32(InterpState &S) { |
| 19115 | Flip<PT_Sint32, PT_Uint32>(S); |
| 19116 | #if USE_TAILCALLS |
| 19117 | MUSTTAIL return InterpNext(S); |
| 19118 | #else |
| 19119 | return true; |
| 19120 | #endif |
| 19121 | } |
| 19122 | PRESERVE_NONE |
| 19123 | static bool Interp_FlipSint32Sint64(InterpState &S) { |
| 19124 | Flip<PT_Sint32, PT_Sint64>(S); |
| 19125 | #if USE_TAILCALLS |
| 19126 | MUSTTAIL return InterpNext(S); |
| 19127 | #else |
| 19128 | return true; |
| 19129 | #endif |
| 19130 | } |
| 19131 | PRESERVE_NONE |
| 19132 | static bool Interp_FlipSint32Uint64(InterpState &S) { |
| 19133 | Flip<PT_Sint32, PT_Uint64>(S); |
| 19134 | #if USE_TAILCALLS |
| 19135 | MUSTTAIL return InterpNext(S); |
| 19136 | #else |
| 19137 | return true; |
| 19138 | #endif |
| 19139 | } |
| 19140 | PRESERVE_NONE |
| 19141 | static bool Interp_FlipSint32IntAP(InterpState &S) { |
| 19142 | Flip<PT_Sint32, PT_IntAP>(S); |
| 19143 | #if USE_TAILCALLS |
| 19144 | MUSTTAIL return InterpNext(S); |
| 19145 | #else |
| 19146 | return true; |
| 19147 | #endif |
| 19148 | } |
| 19149 | PRESERVE_NONE |
| 19150 | static bool Interp_FlipSint32IntAPS(InterpState &S) { |
| 19151 | Flip<PT_Sint32, PT_IntAPS>(S); |
| 19152 | #if USE_TAILCALLS |
| 19153 | MUSTTAIL return InterpNext(S); |
| 19154 | #else |
| 19155 | return true; |
| 19156 | #endif |
| 19157 | } |
| 19158 | PRESERVE_NONE |
| 19159 | static bool Interp_FlipSint32Bool(InterpState &S) { |
| 19160 | Flip<PT_Sint32, PT_Bool>(S); |
| 19161 | #if USE_TAILCALLS |
| 19162 | MUSTTAIL return InterpNext(S); |
| 19163 | #else |
| 19164 | return true; |
| 19165 | #endif |
| 19166 | } |
| 19167 | PRESERVE_NONE |
| 19168 | static bool Interp_FlipSint32FixedPoint(InterpState &S) { |
| 19169 | Flip<PT_Sint32, PT_FixedPoint>(S); |
| 19170 | #if USE_TAILCALLS |
| 19171 | MUSTTAIL return InterpNext(S); |
| 19172 | #else |
| 19173 | return true; |
| 19174 | #endif |
| 19175 | } |
| 19176 | PRESERVE_NONE |
| 19177 | static bool Interp_FlipSint32Ptr(InterpState &S) { |
| 19178 | Flip<PT_Sint32, PT_Ptr>(S); |
| 19179 | #if USE_TAILCALLS |
| 19180 | MUSTTAIL return InterpNext(S); |
| 19181 | #else |
| 19182 | return true; |
| 19183 | #endif |
| 19184 | } |
| 19185 | PRESERVE_NONE |
| 19186 | static bool Interp_FlipSint32MemberPtr(InterpState &S) { |
| 19187 | Flip<PT_Sint32, PT_MemberPtr>(S); |
| 19188 | #if USE_TAILCALLS |
| 19189 | MUSTTAIL return InterpNext(S); |
| 19190 | #else |
| 19191 | return true; |
| 19192 | #endif |
| 19193 | } |
| 19194 | PRESERVE_NONE |
| 19195 | static bool Interp_FlipSint32Float(InterpState &S) { |
| 19196 | Flip<PT_Sint32, PT_Float>(S); |
| 19197 | #if USE_TAILCALLS |
| 19198 | MUSTTAIL return InterpNext(S); |
| 19199 | #else |
| 19200 | return true; |
| 19201 | #endif |
| 19202 | } |
| 19203 | PRESERVE_NONE |
| 19204 | static bool Interp_FlipSint32Reflect(InterpState &S) { |
| 19205 | Flip<PT_Sint32, PT_Reflect>(S); |
| 19206 | #if USE_TAILCALLS |
| 19207 | MUSTTAIL return InterpNext(S); |
| 19208 | #else |
| 19209 | return true; |
| 19210 | #endif |
| 19211 | } |
| 19212 | PRESERVE_NONE |
| 19213 | static bool Interp_FlipUint32Sint8(InterpState &S) { |
| 19214 | Flip<PT_Uint32, PT_Sint8>(S); |
| 19215 | #if USE_TAILCALLS |
| 19216 | MUSTTAIL return InterpNext(S); |
| 19217 | #else |
| 19218 | return true; |
| 19219 | #endif |
| 19220 | } |
| 19221 | PRESERVE_NONE |
| 19222 | static bool Interp_FlipUint32Uint8(InterpState &S) { |
| 19223 | Flip<PT_Uint32, PT_Uint8>(S); |
| 19224 | #if USE_TAILCALLS |
| 19225 | MUSTTAIL return InterpNext(S); |
| 19226 | #else |
| 19227 | return true; |
| 19228 | #endif |
| 19229 | } |
| 19230 | PRESERVE_NONE |
| 19231 | static bool Interp_FlipUint32Sint16(InterpState &S) { |
| 19232 | Flip<PT_Uint32, PT_Sint16>(S); |
| 19233 | #if USE_TAILCALLS |
| 19234 | MUSTTAIL return InterpNext(S); |
| 19235 | #else |
| 19236 | return true; |
| 19237 | #endif |
| 19238 | } |
| 19239 | PRESERVE_NONE |
| 19240 | static bool Interp_FlipUint32Uint16(InterpState &S) { |
| 19241 | Flip<PT_Uint32, PT_Uint16>(S); |
| 19242 | #if USE_TAILCALLS |
| 19243 | MUSTTAIL return InterpNext(S); |
| 19244 | #else |
| 19245 | return true; |
| 19246 | #endif |
| 19247 | } |
| 19248 | PRESERVE_NONE |
| 19249 | static bool Interp_FlipUint32Sint32(InterpState &S) { |
| 19250 | Flip<PT_Uint32, PT_Sint32>(S); |
| 19251 | #if USE_TAILCALLS |
| 19252 | MUSTTAIL return InterpNext(S); |
| 19253 | #else |
| 19254 | return true; |
| 19255 | #endif |
| 19256 | } |
| 19257 | PRESERVE_NONE |
| 19258 | static bool Interp_FlipUint32Uint32(InterpState &S) { |
| 19259 | Flip<PT_Uint32, PT_Uint32>(S); |
| 19260 | #if USE_TAILCALLS |
| 19261 | MUSTTAIL return InterpNext(S); |
| 19262 | #else |
| 19263 | return true; |
| 19264 | #endif |
| 19265 | } |
| 19266 | PRESERVE_NONE |
| 19267 | static bool Interp_FlipUint32Sint64(InterpState &S) { |
| 19268 | Flip<PT_Uint32, PT_Sint64>(S); |
| 19269 | #if USE_TAILCALLS |
| 19270 | MUSTTAIL return InterpNext(S); |
| 19271 | #else |
| 19272 | return true; |
| 19273 | #endif |
| 19274 | } |
| 19275 | PRESERVE_NONE |
| 19276 | static bool Interp_FlipUint32Uint64(InterpState &S) { |
| 19277 | Flip<PT_Uint32, PT_Uint64>(S); |
| 19278 | #if USE_TAILCALLS |
| 19279 | MUSTTAIL return InterpNext(S); |
| 19280 | #else |
| 19281 | return true; |
| 19282 | #endif |
| 19283 | } |
| 19284 | PRESERVE_NONE |
| 19285 | static bool Interp_FlipUint32IntAP(InterpState &S) { |
| 19286 | Flip<PT_Uint32, PT_IntAP>(S); |
| 19287 | #if USE_TAILCALLS |
| 19288 | MUSTTAIL return InterpNext(S); |
| 19289 | #else |
| 19290 | return true; |
| 19291 | #endif |
| 19292 | } |
| 19293 | PRESERVE_NONE |
| 19294 | static bool Interp_FlipUint32IntAPS(InterpState &S) { |
| 19295 | Flip<PT_Uint32, PT_IntAPS>(S); |
| 19296 | #if USE_TAILCALLS |
| 19297 | MUSTTAIL return InterpNext(S); |
| 19298 | #else |
| 19299 | return true; |
| 19300 | #endif |
| 19301 | } |
| 19302 | PRESERVE_NONE |
| 19303 | static bool Interp_FlipUint32Bool(InterpState &S) { |
| 19304 | Flip<PT_Uint32, PT_Bool>(S); |
| 19305 | #if USE_TAILCALLS |
| 19306 | MUSTTAIL return InterpNext(S); |
| 19307 | #else |
| 19308 | return true; |
| 19309 | #endif |
| 19310 | } |
| 19311 | PRESERVE_NONE |
| 19312 | static bool Interp_FlipUint32FixedPoint(InterpState &S) { |
| 19313 | Flip<PT_Uint32, PT_FixedPoint>(S); |
| 19314 | #if USE_TAILCALLS |
| 19315 | MUSTTAIL return InterpNext(S); |
| 19316 | #else |
| 19317 | return true; |
| 19318 | #endif |
| 19319 | } |
| 19320 | PRESERVE_NONE |
| 19321 | static bool Interp_FlipUint32Ptr(InterpState &S) { |
| 19322 | Flip<PT_Uint32, PT_Ptr>(S); |
| 19323 | #if USE_TAILCALLS |
| 19324 | MUSTTAIL return InterpNext(S); |
| 19325 | #else |
| 19326 | return true; |
| 19327 | #endif |
| 19328 | } |
| 19329 | PRESERVE_NONE |
| 19330 | static bool Interp_FlipUint32MemberPtr(InterpState &S) { |
| 19331 | Flip<PT_Uint32, PT_MemberPtr>(S); |
| 19332 | #if USE_TAILCALLS |
| 19333 | MUSTTAIL return InterpNext(S); |
| 19334 | #else |
| 19335 | return true; |
| 19336 | #endif |
| 19337 | } |
| 19338 | PRESERVE_NONE |
| 19339 | static bool Interp_FlipUint32Float(InterpState &S) { |
| 19340 | Flip<PT_Uint32, PT_Float>(S); |
| 19341 | #if USE_TAILCALLS |
| 19342 | MUSTTAIL return InterpNext(S); |
| 19343 | #else |
| 19344 | return true; |
| 19345 | #endif |
| 19346 | } |
| 19347 | PRESERVE_NONE |
| 19348 | static bool Interp_FlipUint32Reflect(InterpState &S) { |
| 19349 | Flip<PT_Uint32, PT_Reflect>(S); |
| 19350 | #if USE_TAILCALLS |
| 19351 | MUSTTAIL return InterpNext(S); |
| 19352 | #else |
| 19353 | return true; |
| 19354 | #endif |
| 19355 | } |
| 19356 | PRESERVE_NONE |
| 19357 | static bool Interp_FlipSint64Sint8(InterpState &S) { |
| 19358 | Flip<PT_Sint64, PT_Sint8>(S); |
| 19359 | #if USE_TAILCALLS |
| 19360 | MUSTTAIL return InterpNext(S); |
| 19361 | #else |
| 19362 | return true; |
| 19363 | #endif |
| 19364 | } |
| 19365 | PRESERVE_NONE |
| 19366 | static bool Interp_FlipSint64Uint8(InterpState &S) { |
| 19367 | Flip<PT_Sint64, PT_Uint8>(S); |
| 19368 | #if USE_TAILCALLS |
| 19369 | MUSTTAIL return InterpNext(S); |
| 19370 | #else |
| 19371 | return true; |
| 19372 | #endif |
| 19373 | } |
| 19374 | PRESERVE_NONE |
| 19375 | static bool Interp_FlipSint64Sint16(InterpState &S) { |
| 19376 | Flip<PT_Sint64, PT_Sint16>(S); |
| 19377 | #if USE_TAILCALLS |
| 19378 | MUSTTAIL return InterpNext(S); |
| 19379 | #else |
| 19380 | return true; |
| 19381 | #endif |
| 19382 | } |
| 19383 | PRESERVE_NONE |
| 19384 | static bool Interp_FlipSint64Uint16(InterpState &S) { |
| 19385 | Flip<PT_Sint64, PT_Uint16>(S); |
| 19386 | #if USE_TAILCALLS |
| 19387 | MUSTTAIL return InterpNext(S); |
| 19388 | #else |
| 19389 | return true; |
| 19390 | #endif |
| 19391 | } |
| 19392 | PRESERVE_NONE |
| 19393 | static bool Interp_FlipSint64Sint32(InterpState &S) { |
| 19394 | Flip<PT_Sint64, PT_Sint32>(S); |
| 19395 | #if USE_TAILCALLS |
| 19396 | MUSTTAIL return InterpNext(S); |
| 19397 | #else |
| 19398 | return true; |
| 19399 | #endif |
| 19400 | } |
| 19401 | PRESERVE_NONE |
| 19402 | static bool Interp_FlipSint64Uint32(InterpState &S) { |
| 19403 | Flip<PT_Sint64, PT_Uint32>(S); |
| 19404 | #if USE_TAILCALLS |
| 19405 | MUSTTAIL return InterpNext(S); |
| 19406 | #else |
| 19407 | return true; |
| 19408 | #endif |
| 19409 | } |
| 19410 | PRESERVE_NONE |
| 19411 | static bool Interp_FlipSint64Sint64(InterpState &S) { |
| 19412 | Flip<PT_Sint64, PT_Sint64>(S); |
| 19413 | #if USE_TAILCALLS |
| 19414 | MUSTTAIL return InterpNext(S); |
| 19415 | #else |
| 19416 | return true; |
| 19417 | #endif |
| 19418 | } |
| 19419 | PRESERVE_NONE |
| 19420 | static bool Interp_FlipSint64Uint64(InterpState &S) { |
| 19421 | Flip<PT_Sint64, PT_Uint64>(S); |
| 19422 | #if USE_TAILCALLS |
| 19423 | MUSTTAIL return InterpNext(S); |
| 19424 | #else |
| 19425 | return true; |
| 19426 | #endif |
| 19427 | } |
| 19428 | PRESERVE_NONE |
| 19429 | static bool Interp_FlipSint64IntAP(InterpState &S) { |
| 19430 | Flip<PT_Sint64, PT_IntAP>(S); |
| 19431 | #if USE_TAILCALLS |
| 19432 | MUSTTAIL return InterpNext(S); |
| 19433 | #else |
| 19434 | return true; |
| 19435 | #endif |
| 19436 | } |
| 19437 | PRESERVE_NONE |
| 19438 | static bool Interp_FlipSint64IntAPS(InterpState &S) { |
| 19439 | Flip<PT_Sint64, PT_IntAPS>(S); |
| 19440 | #if USE_TAILCALLS |
| 19441 | MUSTTAIL return InterpNext(S); |
| 19442 | #else |
| 19443 | return true; |
| 19444 | #endif |
| 19445 | } |
| 19446 | PRESERVE_NONE |
| 19447 | static bool Interp_FlipSint64Bool(InterpState &S) { |
| 19448 | Flip<PT_Sint64, PT_Bool>(S); |
| 19449 | #if USE_TAILCALLS |
| 19450 | MUSTTAIL return InterpNext(S); |
| 19451 | #else |
| 19452 | return true; |
| 19453 | #endif |
| 19454 | } |
| 19455 | PRESERVE_NONE |
| 19456 | static bool Interp_FlipSint64FixedPoint(InterpState &S) { |
| 19457 | Flip<PT_Sint64, PT_FixedPoint>(S); |
| 19458 | #if USE_TAILCALLS |
| 19459 | MUSTTAIL return InterpNext(S); |
| 19460 | #else |
| 19461 | return true; |
| 19462 | #endif |
| 19463 | } |
| 19464 | PRESERVE_NONE |
| 19465 | static bool Interp_FlipSint64Ptr(InterpState &S) { |
| 19466 | Flip<PT_Sint64, PT_Ptr>(S); |
| 19467 | #if USE_TAILCALLS |
| 19468 | MUSTTAIL return InterpNext(S); |
| 19469 | #else |
| 19470 | return true; |
| 19471 | #endif |
| 19472 | } |
| 19473 | PRESERVE_NONE |
| 19474 | static bool Interp_FlipSint64MemberPtr(InterpState &S) { |
| 19475 | Flip<PT_Sint64, PT_MemberPtr>(S); |
| 19476 | #if USE_TAILCALLS |
| 19477 | MUSTTAIL return InterpNext(S); |
| 19478 | #else |
| 19479 | return true; |
| 19480 | #endif |
| 19481 | } |
| 19482 | PRESERVE_NONE |
| 19483 | static bool Interp_FlipSint64Float(InterpState &S) { |
| 19484 | Flip<PT_Sint64, PT_Float>(S); |
| 19485 | #if USE_TAILCALLS |
| 19486 | MUSTTAIL return InterpNext(S); |
| 19487 | #else |
| 19488 | return true; |
| 19489 | #endif |
| 19490 | } |
| 19491 | PRESERVE_NONE |
| 19492 | static bool Interp_FlipSint64Reflect(InterpState &S) { |
| 19493 | Flip<PT_Sint64, PT_Reflect>(S); |
| 19494 | #if USE_TAILCALLS |
| 19495 | MUSTTAIL return InterpNext(S); |
| 19496 | #else |
| 19497 | return true; |
| 19498 | #endif |
| 19499 | } |
| 19500 | PRESERVE_NONE |
| 19501 | static bool Interp_FlipUint64Sint8(InterpState &S) { |
| 19502 | Flip<PT_Uint64, PT_Sint8>(S); |
| 19503 | #if USE_TAILCALLS |
| 19504 | MUSTTAIL return InterpNext(S); |
| 19505 | #else |
| 19506 | return true; |
| 19507 | #endif |
| 19508 | } |
| 19509 | PRESERVE_NONE |
| 19510 | static bool Interp_FlipUint64Uint8(InterpState &S) { |
| 19511 | Flip<PT_Uint64, PT_Uint8>(S); |
| 19512 | #if USE_TAILCALLS |
| 19513 | MUSTTAIL return InterpNext(S); |
| 19514 | #else |
| 19515 | return true; |
| 19516 | #endif |
| 19517 | } |
| 19518 | PRESERVE_NONE |
| 19519 | static bool Interp_FlipUint64Sint16(InterpState &S) { |
| 19520 | Flip<PT_Uint64, PT_Sint16>(S); |
| 19521 | #if USE_TAILCALLS |
| 19522 | MUSTTAIL return InterpNext(S); |
| 19523 | #else |
| 19524 | return true; |
| 19525 | #endif |
| 19526 | } |
| 19527 | PRESERVE_NONE |
| 19528 | static bool Interp_FlipUint64Uint16(InterpState &S) { |
| 19529 | Flip<PT_Uint64, PT_Uint16>(S); |
| 19530 | #if USE_TAILCALLS |
| 19531 | MUSTTAIL return InterpNext(S); |
| 19532 | #else |
| 19533 | return true; |
| 19534 | #endif |
| 19535 | } |
| 19536 | PRESERVE_NONE |
| 19537 | static bool Interp_FlipUint64Sint32(InterpState &S) { |
| 19538 | Flip<PT_Uint64, PT_Sint32>(S); |
| 19539 | #if USE_TAILCALLS |
| 19540 | MUSTTAIL return InterpNext(S); |
| 19541 | #else |
| 19542 | return true; |
| 19543 | #endif |
| 19544 | } |
| 19545 | PRESERVE_NONE |
| 19546 | static bool Interp_FlipUint64Uint32(InterpState &S) { |
| 19547 | Flip<PT_Uint64, PT_Uint32>(S); |
| 19548 | #if USE_TAILCALLS |
| 19549 | MUSTTAIL return InterpNext(S); |
| 19550 | #else |
| 19551 | return true; |
| 19552 | #endif |
| 19553 | } |
| 19554 | PRESERVE_NONE |
| 19555 | static bool Interp_FlipUint64Sint64(InterpState &S) { |
| 19556 | Flip<PT_Uint64, PT_Sint64>(S); |
| 19557 | #if USE_TAILCALLS |
| 19558 | MUSTTAIL return InterpNext(S); |
| 19559 | #else |
| 19560 | return true; |
| 19561 | #endif |
| 19562 | } |
| 19563 | PRESERVE_NONE |
| 19564 | static bool Interp_FlipUint64Uint64(InterpState &S) { |
| 19565 | Flip<PT_Uint64, PT_Uint64>(S); |
| 19566 | #if USE_TAILCALLS |
| 19567 | MUSTTAIL return InterpNext(S); |
| 19568 | #else |
| 19569 | return true; |
| 19570 | #endif |
| 19571 | } |
| 19572 | PRESERVE_NONE |
| 19573 | static bool Interp_FlipUint64IntAP(InterpState &S) { |
| 19574 | Flip<PT_Uint64, PT_IntAP>(S); |
| 19575 | #if USE_TAILCALLS |
| 19576 | MUSTTAIL return InterpNext(S); |
| 19577 | #else |
| 19578 | return true; |
| 19579 | #endif |
| 19580 | } |
| 19581 | PRESERVE_NONE |
| 19582 | static bool Interp_FlipUint64IntAPS(InterpState &S) { |
| 19583 | Flip<PT_Uint64, PT_IntAPS>(S); |
| 19584 | #if USE_TAILCALLS |
| 19585 | MUSTTAIL return InterpNext(S); |
| 19586 | #else |
| 19587 | return true; |
| 19588 | #endif |
| 19589 | } |
| 19590 | PRESERVE_NONE |
| 19591 | static bool Interp_FlipUint64Bool(InterpState &S) { |
| 19592 | Flip<PT_Uint64, PT_Bool>(S); |
| 19593 | #if USE_TAILCALLS |
| 19594 | MUSTTAIL return InterpNext(S); |
| 19595 | #else |
| 19596 | return true; |
| 19597 | #endif |
| 19598 | } |
| 19599 | PRESERVE_NONE |
| 19600 | static bool Interp_FlipUint64FixedPoint(InterpState &S) { |
| 19601 | Flip<PT_Uint64, PT_FixedPoint>(S); |
| 19602 | #if USE_TAILCALLS |
| 19603 | MUSTTAIL return InterpNext(S); |
| 19604 | #else |
| 19605 | return true; |
| 19606 | #endif |
| 19607 | } |
| 19608 | PRESERVE_NONE |
| 19609 | static bool Interp_FlipUint64Ptr(InterpState &S) { |
| 19610 | Flip<PT_Uint64, PT_Ptr>(S); |
| 19611 | #if USE_TAILCALLS |
| 19612 | MUSTTAIL return InterpNext(S); |
| 19613 | #else |
| 19614 | return true; |
| 19615 | #endif |
| 19616 | } |
| 19617 | PRESERVE_NONE |
| 19618 | static bool Interp_FlipUint64MemberPtr(InterpState &S) { |
| 19619 | Flip<PT_Uint64, PT_MemberPtr>(S); |
| 19620 | #if USE_TAILCALLS |
| 19621 | MUSTTAIL return InterpNext(S); |
| 19622 | #else |
| 19623 | return true; |
| 19624 | #endif |
| 19625 | } |
| 19626 | PRESERVE_NONE |
| 19627 | static bool Interp_FlipUint64Float(InterpState &S) { |
| 19628 | Flip<PT_Uint64, PT_Float>(S); |
| 19629 | #if USE_TAILCALLS |
| 19630 | MUSTTAIL return InterpNext(S); |
| 19631 | #else |
| 19632 | return true; |
| 19633 | #endif |
| 19634 | } |
| 19635 | PRESERVE_NONE |
| 19636 | static bool Interp_FlipUint64Reflect(InterpState &S) { |
| 19637 | Flip<PT_Uint64, PT_Reflect>(S); |
| 19638 | #if USE_TAILCALLS |
| 19639 | MUSTTAIL return InterpNext(S); |
| 19640 | #else |
| 19641 | return true; |
| 19642 | #endif |
| 19643 | } |
| 19644 | PRESERVE_NONE |
| 19645 | static bool Interp_FlipIntAPSint8(InterpState &S) { |
| 19646 | Flip<PT_IntAP, PT_Sint8>(S); |
| 19647 | #if USE_TAILCALLS |
| 19648 | MUSTTAIL return InterpNext(S); |
| 19649 | #else |
| 19650 | return true; |
| 19651 | #endif |
| 19652 | } |
| 19653 | PRESERVE_NONE |
| 19654 | static bool Interp_FlipIntAPUint8(InterpState &S) { |
| 19655 | Flip<PT_IntAP, PT_Uint8>(S); |
| 19656 | #if USE_TAILCALLS |
| 19657 | MUSTTAIL return InterpNext(S); |
| 19658 | #else |
| 19659 | return true; |
| 19660 | #endif |
| 19661 | } |
| 19662 | PRESERVE_NONE |
| 19663 | static bool Interp_FlipIntAPSint16(InterpState &S) { |
| 19664 | Flip<PT_IntAP, PT_Sint16>(S); |
| 19665 | #if USE_TAILCALLS |
| 19666 | MUSTTAIL return InterpNext(S); |
| 19667 | #else |
| 19668 | return true; |
| 19669 | #endif |
| 19670 | } |
| 19671 | PRESERVE_NONE |
| 19672 | static bool Interp_FlipIntAPUint16(InterpState &S) { |
| 19673 | Flip<PT_IntAP, PT_Uint16>(S); |
| 19674 | #if USE_TAILCALLS |
| 19675 | MUSTTAIL return InterpNext(S); |
| 19676 | #else |
| 19677 | return true; |
| 19678 | #endif |
| 19679 | } |
| 19680 | PRESERVE_NONE |
| 19681 | static bool Interp_FlipIntAPSint32(InterpState &S) { |
| 19682 | Flip<PT_IntAP, PT_Sint32>(S); |
| 19683 | #if USE_TAILCALLS |
| 19684 | MUSTTAIL return InterpNext(S); |
| 19685 | #else |
| 19686 | return true; |
| 19687 | #endif |
| 19688 | } |
| 19689 | PRESERVE_NONE |
| 19690 | static bool Interp_FlipIntAPUint32(InterpState &S) { |
| 19691 | Flip<PT_IntAP, PT_Uint32>(S); |
| 19692 | #if USE_TAILCALLS |
| 19693 | MUSTTAIL return InterpNext(S); |
| 19694 | #else |
| 19695 | return true; |
| 19696 | #endif |
| 19697 | } |
| 19698 | PRESERVE_NONE |
| 19699 | static bool Interp_FlipIntAPSint64(InterpState &S) { |
| 19700 | Flip<PT_IntAP, PT_Sint64>(S); |
| 19701 | #if USE_TAILCALLS |
| 19702 | MUSTTAIL return InterpNext(S); |
| 19703 | #else |
| 19704 | return true; |
| 19705 | #endif |
| 19706 | } |
| 19707 | PRESERVE_NONE |
| 19708 | static bool Interp_FlipIntAPUint64(InterpState &S) { |
| 19709 | Flip<PT_IntAP, PT_Uint64>(S); |
| 19710 | #if USE_TAILCALLS |
| 19711 | MUSTTAIL return InterpNext(S); |
| 19712 | #else |
| 19713 | return true; |
| 19714 | #endif |
| 19715 | } |
| 19716 | PRESERVE_NONE |
| 19717 | static bool Interp_FlipIntAPIntAP(InterpState &S) { |
| 19718 | Flip<PT_IntAP, PT_IntAP>(S); |
| 19719 | #if USE_TAILCALLS |
| 19720 | MUSTTAIL return InterpNext(S); |
| 19721 | #else |
| 19722 | return true; |
| 19723 | #endif |
| 19724 | } |
| 19725 | PRESERVE_NONE |
| 19726 | static bool Interp_FlipIntAPIntAPS(InterpState &S) { |
| 19727 | Flip<PT_IntAP, PT_IntAPS>(S); |
| 19728 | #if USE_TAILCALLS |
| 19729 | MUSTTAIL return InterpNext(S); |
| 19730 | #else |
| 19731 | return true; |
| 19732 | #endif |
| 19733 | } |
| 19734 | PRESERVE_NONE |
| 19735 | static bool Interp_FlipIntAPBool(InterpState &S) { |
| 19736 | Flip<PT_IntAP, PT_Bool>(S); |
| 19737 | #if USE_TAILCALLS |
| 19738 | MUSTTAIL return InterpNext(S); |
| 19739 | #else |
| 19740 | return true; |
| 19741 | #endif |
| 19742 | } |
| 19743 | PRESERVE_NONE |
| 19744 | static bool Interp_FlipIntAPFixedPoint(InterpState &S) { |
| 19745 | Flip<PT_IntAP, PT_FixedPoint>(S); |
| 19746 | #if USE_TAILCALLS |
| 19747 | MUSTTAIL return InterpNext(S); |
| 19748 | #else |
| 19749 | return true; |
| 19750 | #endif |
| 19751 | } |
| 19752 | PRESERVE_NONE |
| 19753 | static bool Interp_FlipIntAPPtr(InterpState &S) { |
| 19754 | Flip<PT_IntAP, PT_Ptr>(S); |
| 19755 | #if USE_TAILCALLS |
| 19756 | MUSTTAIL return InterpNext(S); |
| 19757 | #else |
| 19758 | return true; |
| 19759 | #endif |
| 19760 | } |
| 19761 | PRESERVE_NONE |
| 19762 | static bool Interp_FlipIntAPMemberPtr(InterpState &S) { |
| 19763 | Flip<PT_IntAP, PT_MemberPtr>(S); |
| 19764 | #if USE_TAILCALLS |
| 19765 | MUSTTAIL return InterpNext(S); |
| 19766 | #else |
| 19767 | return true; |
| 19768 | #endif |
| 19769 | } |
| 19770 | PRESERVE_NONE |
| 19771 | static bool Interp_FlipIntAPFloat(InterpState &S) { |
| 19772 | Flip<PT_IntAP, PT_Float>(S); |
| 19773 | #if USE_TAILCALLS |
| 19774 | MUSTTAIL return InterpNext(S); |
| 19775 | #else |
| 19776 | return true; |
| 19777 | #endif |
| 19778 | } |
| 19779 | PRESERVE_NONE |
| 19780 | static bool Interp_FlipIntAPReflect(InterpState &S) { |
| 19781 | Flip<PT_IntAP, PT_Reflect>(S); |
| 19782 | #if USE_TAILCALLS |
| 19783 | MUSTTAIL return InterpNext(S); |
| 19784 | #else |
| 19785 | return true; |
| 19786 | #endif |
| 19787 | } |
| 19788 | PRESERVE_NONE |
| 19789 | static bool Interp_FlipIntAPSSint8(InterpState &S) { |
| 19790 | Flip<PT_IntAPS, PT_Sint8>(S); |
| 19791 | #if USE_TAILCALLS |
| 19792 | MUSTTAIL return InterpNext(S); |
| 19793 | #else |
| 19794 | return true; |
| 19795 | #endif |
| 19796 | } |
| 19797 | PRESERVE_NONE |
| 19798 | static bool Interp_FlipIntAPSUint8(InterpState &S) { |
| 19799 | Flip<PT_IntAPS, PT_Uint8>(S); |
| 19800 | #if USE_TAILCALLS |
| 19801 | MUSTTAIL return InterpNext(S); |
| 19802 | #else |
| 19803 | return true; |
| 19804 | #endif |
| 19805 | } |
| 19806 | PRESERVE_NONE |
| 19807 | static bool Interp_FlipIntAPSSint16(InterpState &S) { |
| 19808 | Flip<PT_IntAPS, PT_Sint16>(S); |
| 19809 | #if USE_TAILCALLS |
| 19810 | MUSTTAIL return InterpNext(S); |
| 19811 | #else |
| 19812 | return true; |
| 19813 | #endif |
| 19814 | } |
| 19815 | PRESERVE_NONE |
| 19816 | static bool Interp_FlipIntAPSUint16(InterpState &S) { |
| 19817 | Flip<PT_IntAPS, PT_Uint16>(S); |
| 19818 | #if USE_TAILCALLS |
| 19819 | MUSTTAIL return InterpNext(S); |
| 19820 | #else |
| 19821 | return true; |
| 19822 | #endif |
| 19823 | } |
| 19824 | PRESERVE_NONE |
| 19825 | static bool Interp_FlipIntAPSSint32(InterpState &S) { |
| 19826 | Flip<PT_IntAPS, PT_Sint32>(S); |
| 19827 | #if USE_TAILCALLS |
| 19828 | MUSTTAIL return InterpNext(S); |
| 19829 | #else |
| 19830 | return true; |
| 19831 | #endif |
| 19832 | } |
| 19833 | PRESERVE_NONE |
| 19834 | static bool Interp_FlipIntAPSUint32(InterpState &S) { |
| 19835 | Flip<PT_IntAPS, PT_Uint32>(S); |
| 19836 | #if USE_TAILCALLS |
| 19837 | MUSTTAIL return InterpNext(S); |
| 19838 | #else |
| 19839 | return true; |
| 19840 | #endif |
| 19841 | } |
| 19842 | PRESERVE_NONE |
| 19843 | static bool Interp_FlipIntAPSSint64(InterpState &S) { |
| 19844 | Flip<PT_IntAPS, PT_Sint64>(S); |
| 19845 | #if USE_TAILCALLS |
| 19846 | MUSTTAIL return InterpNext(S); |
| 19847 | #else |
| 19848 | return true; |
| 19849 | #endif |
| 19850 | } |
| 19851 | PRESERVE_NONE |
| 19852 | static bool Interp_FlipIntAPSUint64(InterpState &S) { |
| 19853 | Flip<PT_IntAPS, PT_Uint64>(S); |
| 19854 | #if USE_TAILCALLS |
| 19855 | MUSTTAIL return InterpNext(S); |
| 19856 | #else |
| 19857 | return true; |
| 19858 | #endif |
| 19859 | } |
| 19860 | PRESERVE_NONE |
| 19861 | static bool Interp_FlipIntAPSIntAP(InterpState &S) { |
| 19862 | Flip<PT_IntAPS, PT_IntAP>(S); |
| 19863 | #if USE_TAILCALLS |
| 19864 | MUSTTAIL return InterpNext(S); |
| 19865 | #else |
| 19866 | return true; |
| 19867 | #endif |
| 19868 | } |
| 19869 | PRESERVE_NONE |
| 19870 | static bool Interp_FlipIntAPSIntAPS(InterpState &S) { |
| 19871 | Flip<PT_IntAPS, PT_IntAPS>(S); |
| 19872 | #if USE_TAILCALLS |
| 19873 | MUSTTAIL return InterpNext(S); |
| 19874 | #else |
| 19875 | return true; |
| 19876 | #endif |
| 19877 | } |
| 19878 | PRESERVE_NONE |
| 19879 | static bool Interp_FlipIntAPSBool(InterpState &S) { |
| 19880 | Flip<PT_IntAPS, PT_Bool>(S); |
| 19881 | #if USE_TAILCALLS |
| 19882 | MUSTTAIL return InterpNext(S); |
| 19883 | #else |
| 19884 | return true; |
| 19885 | #endif |
| 19886 | } |
| 19887 | PRESERVE_NONE |
| 19888 | static bool Interp_FlipIntAPSFixedPoint(InterpState &S) { |
| 19889 | Flip<PT_IntAPS, PT_FixedPoint>(S); |
| 19890 | #if USE_TAILCALLS |
| 19891 | MUSTTAIL return InterpNext(S); |
| 19892 | #else |
| 19893 | return true; |
| 19894 | #endif |
| 19895 | } |
| 19896 | PRESERVE_NONE |
| 19897 | static bool Interp_FlipIntAPSPtr(InterpState &S) { |
| 19898 | Flip<PT_IntAPS, PT_Ptr>(S); |
| 19899 | #if USE_TAILCALLS |
| 19900 | MUSTTAIL return InterpNext(S); |
| 19901 | #else |
| 19902 | return true; |
| 19903 | #endif |
| 19904 | } |
| 19905 | PRESERVE_NONE |
| 19906 | static bool Interp_FlipIntAPSMemberPtr(InterpState &S) { |
| 19907 | Flip<PT_IntAPS, PT_MemberPtr>(S); |
| 19908 | #if USE_TAILCALLS |
| 19909 | MUSTTAIL return InterpNext(S); |
| 19910 | #else |
| 19911 | return true; |
| 19912 | #endif |
| 19913 | } |
| 19914 | PRESERVE_NONE |
| 19915 | static bool Interp_FlipIntAPSFloat(InterpState &S) { |
| 19916 | Flip<PT_IntAPS, PT_Float>(S); |
| 19917 | #if USE_TAILCALLS |
| 19918 | MUSTTAIL return InterpNext(S); |
| 19919 | #else |
| 19920 | return true; |
| 19921 | #endif |
| 19922 | } |
| 19923 | PRESERVE_NONE |
| 19924 | static bool Interp_FlipIntAPSReflect(InterpState &S) { |
| 19925 | Flip<PT_IntAPS, PT_Reflect>(S); |
| 19926 | #if USE_TAILCALLS |
| 19927 | MUSTTAIL return InterpNext(S); |
| 19928 | #else |
| 19929 | return true; |
| 19930 | #endif |
| 19931 | } |
| 19932 | PRESERVE_NONE |
| 19933 | static bool Interp_FlipBoolSint8(InterpState &S) { |
| 19934 | Flip<PT_Bool, PT_Sint8>(S); |
| 19935 | #if USE_TAILCALLS |
| 19936 | MUSTTAIL return InterpNext(S); |
| 19937 | #else |
| 19938 | return true; |
| 19939 | #endif |
| 19940 | } |
| 19941 | PRESERVE_NONE |
| 19942 | static bool Interp_FlipBoolUint8(InterpState &S) { |
| 19943 | Flip<PT_Bool, PT_Uint8>(S); |
| 19944 | #if USE_TAILCALLS |
| 19945 | MUSTTAIL return InterpNext(S); |
| 19946 | #else |
| 19947 | return true; |
| 19948 | #endif |
| 19949 | } |
| 19950 | PRESERVE_NONE |
| 19951 | static bool Interp_FlipBoolSint16(InterpState &S) { |
| 19952 | Flip<PT_Bool, PT_Sint16>(S); |
| 19953 | #if USE_TAILCALLS |
| 19954 | MUSTTAIL return InterpNext(S); |
| 19955 | #else |
| 19956 | return true; |
| 19957 | #endif |
| 19958 | } |
| 19959 | PRESERVE_NONE |
| 19960 | static bool Interp_FlipBoolUint16(InterpState &S) { |
| 19961 | Flip<PT_Bool, PT_Uint16>(S); |
| 19962 | #if USE_TAILCALLS |
| 19963 | MUSTTAIL return InterpNext(S); |
| 19964 | #else |
| 19965 | return true; |
| 19966 | #endif |
| 19967 | } |
| 19968 | PRESERVE_NONE |
| 19969 | static bool Interp_FlipBoolSint32(InterpState &S) { |
| 19970 | Flip<PT_Bool, PT_Sint32>(S); |
| 19971 | #if USE_TAILCALLS |
| 19972 | MUSTTAIL return InterpNext(S); |
| 19973 | #else |
| 19974 | return true; |
| 19975 | #endif |
| 19976 | } |
| 19977 | PRESERVE_NONE |
| 19978 | static bool Interp_FlipBoolUint32(InterpState &S) { |
| 19979 | Flip<PT_Bool, PT_Uint32>(S); |
| 19980 | #if USE_TAILCALLS |
| 19981 | MUSTTAIL return InterpNext(S); |
| 19982 | #else |
| 19983 | return true; |
| 19984 | #endif |
| 19985 | } |
| 19986 | PRESERVE_NONE |
| 19987 | static bool Interp_FlipBoolSint64(InterpState &S) { |
| 19988 | Flip<PT_Bool, PT_Sint64>(S); |
| 19989 | #if USE_TAILCALLS |
| 19990 | MUSTTAIL return InterpNext(S); |
| 19991 | #else |
| 19992 | return true; |
| 19993 | #endif |
| 19994 | } |
| 19995 | PRESERVE_NONE |
| 19996 | static bool Interp_FlipBoolUint64(InterpState &S) { |
| 19997 | Flip<PT_Bool, PT_Uint64>(S); |
| 19998 | #if USE_TAILCALLS |
| 19999 | MUSTTAIL return InterpNext(S); |
| 20000 | #else |
| 20001 | return true; |
| 20002 | #endif |
| 20003 | } |
| 20004 | PRESERVE_NONE |
| 20005 | static bool Interp_FlipBoolIntAP(InterpState &S) { |
| 20006 | Flip<PT_Bool, PT_IntAP>(S); |
| 20007 | #if USE_TAILCALLS |
| 20008 | MUSTTAIL return InterpNext(S); |
| 20009 | #else |
| 20010 | return true; |
| 20011 | #endif |
| 20012 | } |
| 20013 | PRESERVE_NONE |
| 20014 | static bool Interp_FlipBoolIntAPS(InterpState &S) { |
| 20015 | Flip<PT_Bool, PT_IntAPS>(S); |
| 20016 | #if USE_TAILCALLS |
| 20017 | MUSTTAIL return InterpNext(S); |
| 20018 | #else |
| 20019 | return true; |
| 20020 | #endif |
| 20021 | } |
| 20022 | PRESERVE_NONE |
| 20023 | static bool Interp_FlipBoolBool(InterpState &S) { |
| 20024 | Flip<PT_Bool, PT_Bool>(S); |
| 20025 | #if USE_TAILCALLS |
| 20026 | MUSTTAIL return InterpNext(S); |
| 20027 | #else |
| 20028 | return true; |
| 20029 | #endif |
| 20030 | } |
| 20031 | PRESERVE_NONE |
| 20032 | static bool Interp_FlipBoolFixedPoint(InterpState &S) { |
| 20033 | Flip<PT_Bool, PT_FixedPoint>(S); |
| 20034 | #if USE_TAILCALLS |
| 20035 | MUSTTAIL return InterpNext(S); |
| 20036 | #else |
| 20037 | return true; |
| 20038 | #endif |
| 20039 | } |
| 20040 | PRESERVE_NONE |
| 20041 | static bool Interp_FlipBoolPtr(InterpState &S) { |
| 20042 | Flip<PT_Bool, PT_Ptr>(S); |
| 20043 | #if USE_TAILCALLS |
| 20044 | MUSTTAIL return InterpNext(S); |
| 20045 | #else |
| 20046 | return true; |
| 20047 | #endif |
| 20048 | } |
| 20049 | PRESERVE_NONE |
| 20050 | static bool Interp_FlipBoolMemberPtr(InterpState &S) { |
| 20051 | Flip<PT_Bool, PT_MemberPtr>(S); |
| 20052 | #if USE_TAILCALLS |
| 20053 | MUSTTAIL return InterpNext(S); |
| 20054 | #else |
| 20055 | return true; |
| 20056 | #endif |
| 20057 | } |
| 20058 | PRESERVE_NONE |
| 20059 | static bool Interp_FlipBoolFloat(InterpState &S) { |
| 20060 | Flip<PT_Bool, PT_Float>(S); |
| 20061 | #if USE_TAILCALLS |
| 20062 | MUSTTAIL return InterpNext(S); |
| 20063 | #else |
| 20064 | return true; |
| 20065 | #endif |
| 20066 | } |
| 20067 | PRESERVE_NONE |
| 20068 | static bool Interp_FlipBoolReflect(InterpState &S) { |
| 20069 | Flip<PT_Bool, PT_Reflect>(S); |
| 20070 | #if USE_TAILCALLS |
| 20071 | MUSTTAIL return InterpNext(S); |
| 20072 | #else |
| 20073 | return true; |
| 20074 | #endif |
| 20075 | } |
| 20076 | PRESERVE_NONE |
| 20077 | static bool Interp_FlipFixedPointSint8(InterpState &S) { |
| 20078 | Flip<PT_FixedPoint, PT_Sint8>(S); |
| 20079 | #if USE_TAILCALLS |
| 20080 | MUSTTAIL return InterpNext(S); |
| 20081 | #else |
| 20082 | return true; |
| 20083 | #endif |
| 20084 | } |
| 20085 | PRESERVE_NONE |
| 20086 | static bool Interp_FlipFixedPointUint8(InterpState &S) { |
| 20087 | Flip<PT_FixedPoint, PT_Uint8>(S); |
| 20088 | #if USE_TAILCALLS |
| 20089 | MUSTTAIL return InterpNext(S); |
| 20090 | #else |
| 20091 | return true; |
| 20092 | #endif |
| 20093 | } |
| 20094 | PRESERVE_NONE |
| 20095 | static bool Interp_FlipFixedPointSint16(InterpState &S) { |
| 20096 | Flip<PT_FixedPoint, PT_Sint16>(S); |
| 20097 | #if USE_TAILCALLS |
| 20098 | MUSTTAIL return InterpNext(S); |
| 20099 | #else |
| 20100 | return true; |
| 20101 | #endif |
| 20102 | } |
| 20103 | PRESERVE_NONE |
| 20104 | static bool Interp_FlipFixedPointUint16(InterpState &S) { |
| 20105 | Flip<PT_FixedPoint, PT_Uint16>(S); |
| 20106 | #if USE_TAILCALLS |
| 20107 | MUSTTAIL return InterpNext(S); |
| 20108 | #else |
| 20109 | return true; |
| 20110 | #endif |
| 20111 | } |
| 20112 | PRESERVE_NONE |
| 20113 | static bool Interp_FlipFixedPointSint32(InterpState &S) { |
| 20114 | Flip<PT_FixedPoint, PT_Sint32>(S); |
| 20115 | #if USE_TAILCALLS |
| 20116 | MUSTTAIL return InterpNext(S); |
| 20117 | #else |
| 20118 | return true; |
| 20119 | #endif |
| 20120 | } |
| 20121 | PRESERVE_NONE |
| 20122 | static bool Interp_FlipFixedPointUint32(InterpState &S) { |
| 20123 | Flip<PT_FixedPoint, PT_Uint32>(S); |
| 20124 | #if USE_TAILCALLS |
| 20125 | MUSTTAIL return InterpNext(S); |
| 20126 | #else |
| 20127 | return true; |
| 20128 | #endif |
| 20129 | } |
| 20130 | PRESERVE_NONE |
| 20131 | static bool Interp_FlipFixedPointSint64(InterpState &S) { |
| 20132 | Flip<PT_FixedPoint, PT_Sint64>(S); |
| 20133 | #if USE_TAILCALLS |
| 20134 | MUSTTAIL return InterpNext(S); |
| 20135 | #else |
| 20136 | return true; |
| 20137 | #endif |
| 20138 | } |
| 20139 | PRESERVE_NONE |
| 20140 | static bool Interp_FlipFixedPointUint64(InterpState &S) { |
| 20141 | Flip<PT_FixedPoint, PT_Uint64>(S); |
| 20142 | #if USE_TAILCALLS |
| 20143 | MUSTTAIL return InterpNext(S); |
| 20144 | #else |
| 20145 | return true; |
| 20146 | #endif |
| 20147 | } |
| 20148 | PRESERVE_NONE |
| 20149 | static bool Interp_FlipFixedPointIntAP(InterpState &S) { |
| 20150 | Flip<PT_FixedPoint, PT_IntAP>(S); |
| 20151 | #if USE_TAILCALLS |
| 20152 | MUSTTAIL return InterpNext(S); |
| 20153 | #else |
| 20154 | return true; |
| 20155 | #endif |
| 20156 | } |
| 20157 | PRESERVE_NONE |
| 20158 | static bool Interp_FlipFixedPointIntAPS(InterpState &S) { |
| 20159 | Flip<PT_FixedPoint, PT_IntAPS>(S); |
| 20160 | #if USE_TAILCALLS |
| 20161 | MUSTTAIL return InterpNext(S); |
| 20162 | #else |
| 20163 | return true; |
| 20164 | #endif |
| 20165 | } |
| 20166 | PRESERVE_NONE |
| 20167 | static bool Interp_FlipFixedPointBool(InterpState &S) { |
| 20168 | Flip<PT_FixedPoint, PT_Bool>(S); |
| 20169 | #if USE_TAILCALLS |
| 20170 | MUSTTAIL return InterpNext(S); |
| 20171 | #else |
| 20172 | return true; |
| 20173 | #endif |
| 20174 | } |
| 20175 | PRESERVE_NONE |
| 20176 | static bool Interp_FlipFixedPointFixedPoint(InterpState &S) { |
| 20177 | Flip<PT_FixedPoint, PT_FixedPoint>(S); |
| 20178 | #if USE_TAILCALLS |
| 20179 | MUSTTAIL return InterpNext(S); |
| 20180 | #else |
| 20181 | return true; |
| 20182 | #endif |
| 20183 | } |
| 20184 | PRESERVE_NONE |
| 20185 | static bool Interp_FlipFixedPointPtr(InterpState &S) { |
| 20186 | Flip<PT_FixedPoint, PT_Ptr>(S); |
| 20187 | #if USE_TAILCALLS |
| 20188 | MUSTTAIL return InterpNext(S); |
| 20189 | #else |
| 20190 | return true; |
| 20191 | #endif |
| 20192 | } |
| 20193 | PRESERVE_NONE |
| 20194 | static bool Interp_FlipFixedPointMemberPtr(InterpState &S) { |
| 20195 | Flip<PT_FixedPoint, PT_MemberPtr>(S); |
| 20196 | #if USE_TAILCALLS |
| 20197 | MUSTTAIL return InterpNext(S); |
| 20198 | #else |
| 20199 | return true; |
| 20200 | #endif |
| 20201 | } |
| 20202 | PRESERVE_NONE |
| 20203 | static bool Interp_FlipFixedPointFloat(InterpState &S) { |
| 20204 | Flip<PT_FixedPoint, PT_Float>(S); |
| 20205 | #if USE_TAILCALLS |
| 20206 | MUSTTAIL return InterpNext(S); |
| 20207 | #else |
| 20208 | return true; |
| 20209 | #endif |
| 20210 | } |
| 20211 | PRESERVE_NONE |
| 20212 | static bool Interp_FlipFixedPointReflect(InterpState &S) { |
| 20213 | Flip<PT_FixedPoint, PT_Reflect>(S); |
| 20214 | #if USE_TAILCALLS |
| 20215 | MUSTTAIL return InterpNext(S); |
| 20216 | #else |
| 20217 | return true; |
| 20218 | #endif |
| 20219 | } |
| 20220 | PRESERVE_NONE |
| 20221 | static bool Interp_FlipPtrSint8(InterpState &S) { |
| 20222 | Flip<PT_Ptr, PT_Sint8>(S); |
| 20223 | #if USE_TAILCALLS |
| 20224 | MUSTTAIL return InterpNext(S); |
| 20225 | #else |
| 20226 | return true; |
| 20227 | #endif |
| 20228 | } |
| 20229 | PRESERVE_NONE |
| 20230 | static bool Interp_FlipPtrUint8(InterpState &S) { |
| 20231 | Flip<PT_Ptr, PT_Uint8>(S); |
| 20232 | #if USE_TAILCALLS |
| 20233 | MUSTTAIL return InterpNext(S); |
| 20234 | #else |
| 20235 | return true; |
| 20236 | #endif |
| 20237 | } |
| 20238 | PRESERVE_NONE |
| 20239 | static bool Interp_FlipPtrSint16(InterpState &S) { |
| 20240 | Flip<PT_Ptr, PT_Sint16>(S); |
| 20241 | #if USE_TAILCALLS |
| 20242 | MUSTTAIL return InterpNext(S); |
| 20243 | #else |
| 20244 | return true; |
| 20245 | #endif |
| 20246 | } |
| 20247 | PRESERVE_NONE |
| 20248 | static bool Interp_FlipPtrUint16(InterpState &S) { |
| 20249 | Flip<PT_Ptr, PT_Uint16>(S); |
| 20250 | #if USE_TAILCALLS |
| 20251 | MUSTTAIL return InterpNext(S); |
| 20252 | #else |
| 20253 | return true; |
| 20254 | #endif |
| 20255 | } |
| 20256 | PRESERVE_NONE |
| 20257 | static bool Interp_FlipPtrSint32(InterpState &S) { |
| 20258 | Flip<PT_Ptr, PT_Sint32>(S); |
| 20259 | #if USE_TAILCALLS |
| 20260 | MUSTTAIL return InterpNext(S); |
| 20261 | #else |
| 20262 | return true; |
| 20263 | #endif |
| 20264 | } |
| 20265 | PRESERVE_NONE |
| 20266 | static bool Interp_FlipPtrUint32(InterpState &S) { |
| 20267 | Flip<PT_Ptr, PT_Uint32>(S); |
| 20268 | #if USE_TAILCALLS |
| 20269 | MUSTTAIL return InterpNext(S); |
| 20270 | #else |
| 20271 | return true; |
| 20272 | #endif |
| 20273 | } |
| 20274 | PRESERVE_NONE |
| 20275 | static bool Interp_FlipPtrSint64(InterpState &S) { |
| 20276 | Flip<PT_Ptr, PT_Sint64>(S); |
| 20277 | #if USE_TAILCALLS |
| 20278 | MUSTTAIL return InterpNext(S); |
| 20279 | #else |
| 20280 | return true; |
| 20281 | #endif |
| 20282 | } |
| 20283 | PRESERVE_NONE |
| 20284 | static bool Interp_FlipPtrUint64(InterpState &S) { |
| 20285 | Flip<PT_Ptr, PT_Uint64>(S); |
| 20286 | #if USE_TAILCALLS |
| 20287 | MUSTTAIL return InterpNext(S); |
| 20288 | #else |
| 20289 | return true; |
| 20290 | #endif |
| 20291 | } |
| 20292 | PRESERVE_NONE |
| 20293 | static bool Interp_FlipPtrIntAP(InterpState &S) { |
| 20294 | Flip<PT_Ptr, PT_IntAP>(S); |
| 20295 | #if USE_TAILCALLS |
| 20296 | MUSTTAIL return InterpNext(S); |
| 20297 | #else |
| 20298 | return true; |
| 20299 | #endif |
| 20300 | } |
| 20301 | PRESERVE_NONE |
| 20302 | static bool Interp_FlipPtrIntAPS(InterpState &S) { |
| 20303 | Flip<PT_Ptr, PT_IntAPS>(S); |
| 20304 | #if USE_TAILCALLS |
| 20305 | MUSTTAIL return InterpNext(S); |
| 20306 | #else |
| 20307 | return true; |
| 20308 | #endif |
| 20309 | } |
| 20310 | PRESERVE_NONE |
| 20311 | static bool Interp_FlipPtrBool(InterpState &S) { |
| 20312 | Flip<PT_Ptr, PT_Bool>(S); |
| 20313 | #if USE_TAILCALLS |
| 20314 | MUSTTAIL return InterpNext(S); |
| 20315 | #else |
| 20316 | return true; |
| 20317 | #endif |
| 20318 | } |
| 20319 | PRESERVE_NONE |
| 20320 | static bool Interp_FlipPtrFixedPoint(InterpState &S) { |
| 20321 | Flip<PT_Ptr, PT_FixedPoint>(S); |
| 20322 | #if USE_TAILCALLS |
| 20323 | MUSTTAIL return InterpNext(S); |
| 20324 | #else |
| 20325 | return true; |
| 20326 | #endif |
| 20327 | } |
| 20328 | PRESERVE_NONE |
| 20329 | static bool Interp_FlipPtrPtr(InterpState &S) { |
| 20330 | Flip<PT_Ptr, PT_Ptr>(S); |
| 20331 | #if USE_TAILCALLS |
| 20332 | MUSTTAIL return InterpNext(S); |
| 20333 | #else |
| 20334 | return true; |
| 20335 | #endif |
| 20336 | } |
| 20337 | PRESERVE_NONE |
| 20338 | static bool Interp_FlipPtrMemberPtr(InterpState &S) { |
| 20339 | Flip<PT_Ptr, PT_MemberPtr>(S); |
| 20340 | #if USE_TAILCALLS |
| 20341 | MUSTTAIL return InterpNext(S); |
| 20342 | #else |
| 20343 | return true; |
| 20344 | #endif |
| 20345 | } |
| 20346 | PRESERVE_NONE |
| 20347 | static bool Interp_FlipPtrFloat(InterpState &S) { |
| 20348 | Flip<PT_Ptr, PT_Float>(S); |
| 20349 | #if USE_TAILCALLS |
| 20350 | MUSTTAIL return InterpNext(S); |
| 20351 | #else |
| 20352 | return true; |
| 20353 | #endif |
| 20354 | } |
| 20355 | PRESERVE_NONE |
| 20356 | static bool Interp_FlipPtrReflect(InterpState &S) { |
| 20357 | Flip<PT_Ptr, PT_Reflect>(S); |
| 20358 | #if USE_TAILCALLS |
| 20359 | MUSTTAIL return InterpNext(S); |
| 20360 | #else |
| 20361 | return true; |
| 20362 | #endif |
| 20363 | } |
| 20364 | PRESERVE_NONE |
| 20365 | static bool Interp_FlipMemberPtrSint8(InterpState &S) { |
| 20366 | Flip<PT_MemberPtr, PT_Sint8>(S); |
| 20367 | #if USE_TAILCALLS |
| 20368 | MUSTTAIL return InterpNext(S); |
| 20369 | #else |
| 20370 | return true; |
| 20371 | #endif |
| 20372 | } |
| 20373 | PRESERVE_NONE |
| 20374 | static bool Interp_FlipMemberPtrUint8(InterpState &S) { |
| 20375 | Flip<PT_MemberPtr, PT_Uint8>(S); |
| 20376 | #if USE_TAILCALLS |
| 20377 | MUSTTAIL return InterpNext(S); |
| 20378 | #else |
| 20379 | return true; |
| 20380 | #endif |
| 20381 | } |
| 20382 | PRESERVE_NONE |
| 20383 | static bool Interp_FlipMemberPtrSint16(InterpState &S) { |
| 20384 | Flip<PT_MemberPtr, PT_Sint16>(S); |
| 20385 | #if USE_TAILCALLS |
| 20386 | MUSTTAIL return InterpNext(S); |
| 20387 | #else |
| 20388 | return true; |
| 20389 | #endif |
| 20390 | } |
| 20391 | PRESERVE_NONE |
| 20392 | static bool Interp_FlipMemberPtrUint16(InterpState &S) { |
| 20393 | Flip<PT_MemberPtr, PT_Uint16>(S); |
| 20394 | #if USE_TAILCALLS |
| 20395 | MUSTTAIL return InterpNext(S); |
| 20396 | #else |
| 20397 | return true; |
| 20398 | #endif |
| 20399 | } |
| 20400 | PRESERVE_NONE |
| 20401 | static bool Interp_FlipMemberPtrSint32(InterpState &S) { |
| 20402 | Flip<PT_MemberPtr, PT_Sint32>(S); |
| 20403 | #if USE_TAILCALLS |
| 20404 | MUSTTAIL return InterpNext(S); |
| 20405 | #else |
| 20406 | return true; |
| 20407 | #endif |
| 20408 | } |
| 20409 | PRESERVE_NONE |
| 20410 | static bool Interp_FlipMemberPtrUint32(InterpState &S) { |
| 20411 | Flip<PT_MemberPtr, PT_Uint32>(S); |
| 20412 | #if USE_TAILCALLS |
| 20413 | MUSTTAIL return InterpNext(S); |
| 20414 | #else |
| 20415 | return true; |
| 20416 | #endif |
| 20417 | } |
| 20418 | PRESERVE_NONE |
| 20419 | static bool Interp_FlipMemberPtrSint64(InterpState &S) { |
| 20420 | Flip<PT_MemberPtr, PT_Sint64>(S); |
| 20421 | #if USE_TAILCALLS |
| 20422 | MUSTTAIL return InterpNext(S); |
| 20423 | #else |
| 20424 | return true; |
| 20425 | #endif |
| 20426 | } |
| 20427 | PRESERVE_NONE |
| 20428 | static bool Interp_FlipMemberPtrUint64(InterpState &S) { |
| 20429 | Flip<PT_MemberPtr, PT_Uint64>(S); |
| 20430 | #if USE_TAILCALLS |
| 20431 | MUSTTAIL return InterpNext(S); |
| 20432 | #else |
| 20433 | return true; |
| 20434 | #endif |
| 20435 | } |
| 20436 | PRESERVE_NONE |
| 20437 | static bool Interp_FlipMemberPtrIntAP(InterpState &S) { |
| 20438 | Flip<PT_MemberPtr, PT_IntAP>(S); |
| 20439 | #if USE_TAILCALLS |
| 20440 | MUSTTAIL return InterpNext(S); |
| 20441 | #else |
| 20442 | return true; |
| 20443 | #endif |
| 20444 | } |
| 20445 | PRESERVE_NONE |
| 20446 | static bool Interp_FlipMemberPtrIntAPS(InterpState &S) { |
| 20447 | Flip<PT_MemberPtr, PT_IntAPS>(S); |
| 20448 | #if USE_TAILCALLS |
| 20449 | MUSTTAIL return InterpNext(S); |
| 20450 | #else |
| 20451 | return true; |
| 20452 | #endif |
| 20453 | } |
| 20454 | PRESERVE_NONE |
| 20455 | static bool Interp_FlipMemberPtrBool(InterpState &S) { |
| 20456 | Flip<PT_MemberPtr, PT_Bool>(S); |
| 20457 | #if USE_TAILCALLS |
| 20458 | MUSTTAIL return InterpNext(S); |
| 20459 | #else |
| 20460 | return true; |
| 20461 | #endif |
| 20462 | } |
| 20463 | PRESERVE_NONE |
| 20464 | static bool Interp_FlipMemberPtrFixedPoint(InterpState &S) { |
| 20465 | Flip<PT_MemberPtr, PT_FixedPoint>(S); |
| 20466 | #if USE_TAILCALLS |
| 20467 | MUSTTAIL return InterpNext(S); |
| 20468 | #else |
| 20469 | return true; |
| 20470 | #endif |
| 20471 | } |
| 20472 | PRESERVE_NONE |
| 20473 | static bool Interp_FlipMemberPtrPtr(InterpState &S) { |
| 20474 | Flip<PT_MemberPtr, PT_Ptr>(S); |
| 20475 | #if USE_TAILCALLS |
| 20476 | MUSTTAIL return InterpNext(S); |
| 20477 | #else |
| 20478 | return true; |
| 20479 | #endif |
| 20480 | } |
| 20481 | PRESERVE_NONE |
| 20482 | static bool Interp_FlipMemberPtrMemberPtr(InterpState &S) { |
| 20483 | Flip<PT_MemberPtr, PT_MemberPtr>(S); |
| 20484 | #if USE_TAILCALLS |
| 20485 | MUSTTAIL return InterpNext(S); |
| 20486 | #else |
| 20487 | return true; |
| 20488 | #endif |
| 20489 | } |
| 20490 | PRESERVE_NONE |
| 20491 | static bool Interp_FlipMemberPtrFloat(InterpState &S) { |
| 20492 | Flip<PT_MemberPtr, PT_Float>(S); |
| 20493 | #if USE_TAILCALLS |
| 20494 | MUSTTAIL return InterpNext(S); |
| 20495 | #else |
| 20496 | return true; |
| 20497 | #endif |
| 20498 | } |
| 20499 | PRESERVE_NONE |
| 20500 | static bool Interp_FlipMemberPtrReflect(InterpState &S) { |
| 20501 | Flip<PT_MemberPtr, PT_Reflect>(S); |
| 20502 | #if USE_TAILCALLS |
| 20503 | MUSTTAIL return InterpNext(S); |
| 20504 | #else |
| 20505 | return true; |
| 20506 | #endif |
| 20507 | } |
| 20508 | PRESERVE_NONE |
| 20509 | static bool Interp_FlipFloatSint8(InterpState &S) { |
| 20510 | Flip<PT_Float, PT_Sint8>(S); |
| 20511 | #if USE_TAILCALLS |
| 20512 | MUSTTAIL return InterpNext(S); |
| 20513 | #else |
| 20514 | return true; |
| 20515 | #endif |
| 20516 | } |
| 20517 | PRESERVE_NONE |
| 20518 | static bool Interp_FlipFloatUint8(InterpState &S) { |
| 20519 | Flip<PT_Float, PT_Uint8>(S); |
| 20520 | #if USE_TAILCALLS |
| 20521 | MUSTTAIL return InterpNext(S); |
| 20522 | #else |
| 20523 | return true; |
| 20524 | #endif |
| 20525 | } |
| 20526 | PRESERVE_NONE |
| 20527 | static bool Interp_FlipFloatSint16(InterpState &S) { |
| 20528 | Flip<PT_Float, PT_Sint16>(S); |
| 20529 | #if USE_TAILCALLS |
| 20530 | MUSTTAIL return InterpNext(S); |
| 20531 | #else |
| 20532 | return true; |
| 20533 | #endif |
| 20534 | } |
| 20535 | PRESERVE_NONE |
| 20536 | static bool Interp_FlipFloatUint16(InterpState &S) { |
| 20537 | Flip<PT_Float, PT_Uint16>(S); |
| 20538 | #if USE_TAILCALLS |
| 20539 | MUSTTAIL return InterpNext(S); |
| 20540 | #else |
| 20541 | return true; |
| 20542 | #endif |
| 20543 | } |
| 20544 | PRESERVE_NONE |
| 20545 | static bool Interp_FlipFloatSint32(InterpState &S) { |
| 20546 | Flip<PT_Float, PT_Sint32>(S); |
| 20547 | #if USE_TAILCALLS |
| 20548 | MUSTTAIL return InterpNext(S); |
| 20549 | #else |
| 20550 | return true; |
| 20551 | #endif |
| 20552 | } |
| 20553 | PRESERVE_NONE |
| 20554 | static bool Interp_FlipFloatUint32(InterpState &S) { |
| 20555 | Flip<PT_Float, PT_Uint32>(S); |
| 20556 | #if USE_TAILCALLS |
| 20557 | MUSTTAIL return InterpNext(S); |
| 20558 | #else |
| 20559 | return true; |
| 20560 | #endif |
| 20561 | } |
| 20562 | PRESERVE_NONE |
| 20563 | static bool Interp_FlipFloatSint64(InterpState &S) { |
| 20564 | Flip<PT_Float, PT_Sint64>(S); |
| 20565 | #if USE_TAILCALLS |
| 20566 | MUSTTAIL return InterpNext(S); |
| 20567 | #else |
| 20568 | return true; |
| 20569 | #endif |
| 20570 | } |
| 20571 | PRESERVE_NONE |
| 20572 | static bool Interp_FlipFloatUint64(InterpState &S) { |
| 20573 | Flip<PT_Float, PT_Uint64>(S); |
| 20574 | #if USE_TAILCALLS |
| 20575 | MUSTTAIL return InterpNext(S); |
| 20576 | #else |
| 20577 | return true; |
| 20578 | #endif |
| 20579 | } |
| 20580 | PRESERVE_NONE |
| 20581 | static bool Interp_FlipFloatIntAP(InterpState &S) { |
| 20582 | Flip<PT_Float, PT_IntAP>(S); |
| 20583 | #if USE_TAILCALLS |
| 20584 | MUSTTAIL return InterpNext(S); |
| 20585 | #else |
| 20586 | return true; |
| 20587 | #endif |
| 20588 | } |
| 20589 | PRESERVE_NONE |
| 20590 | static bool Interp_FlipFloatIntAPS(InterpState &S) { |
| 20591 | Flip<PT_Float, PT_IntAPS>(S); |
| 20592 | #if USE_TAILCALLS |
| 20593 | MUSTTAIL return InterpNext(S); |
| 20594 | #else |
| 20595 | return true; |
| 20596 | #endif |
| 20597 | } |
| 20598 | PRESERVE_NONE |
| 20599 | static bool Interp_FlipFloatBool(InterpState &S) { |
| 20600 | Flip<PT_Float, PT_Bool>(S); |
| 20601 | #if USE_TAILCALLS |
| 20602 | MUSTTAIL return InterpNext(S); |
| 20603 | #else |
| 20604 | return true; |
| 20605 | #endif |
| 20606 | } |
| 20607 | PRESERVE_NONE |
| 20608 | static bool Interp_FlipFloatFixedPoint(InterpState &S) { |
| 20609 | Flip<PT_Float, PT_FixedPoint>(S); |
| 20610 | #if USE_TAILCALLS |
| 20611 | MUSTTAIL return InterpNext(S); |
| 20612 | #else |
| 20613 | return true; |
| 20614 | #endif |
| 20615 | } |
| 20616 | PRESERVE_NONE |
| 20617 | static bool Interp_FlipFloatPtr(InterpState &S) { |
| 20618 | Flip<PT_Float, PT_Ptr>(S); |
| 20619 | #if USE_TAILCALLS |
| 20620 | MUSTTAIL return InterpNext(S); |
| 20621 | #else |
| 20622 | return true; |
| 20623 | #endif |
| 20624 | } |
| 20625 | PRESERVE_NONE |
| 20626 | static bool Interp_FlipFloatMemberPtr(InterpState &S) { |
| 20627 | Flip<PT_Float, PT_MemberPtr>(S); |
| 20628 | #if USE_TAILCALLS |
| 20629 | MUSTTAIL return InterpNext(S); |
| 20630 | #else |
| 20631 | return true; |
| 20632 | #endif |
| 20633 | } |
| 20634 | PRESERVE_NONE |
| 20635 | static bool Interp_FlipFloatFloat(InterpState &S) { |
| 20636 | Flip<PT_Float, PT_Float>(S); |
| 20637 | #if USE_TAILCALLS |
| 20638 | MUSTTAIL return InterpNext(S); |
| 20639 | #else |
| 20640 | return true; |
| 20641 | #endif |
| 20642 | } |
| 20643 | PRESERVE_NONE |
| 20644 | static bool Interp_FlipFloatReflect(InterpState &S) { |
| 20645 | Flip<PT_Float, PT_Reflect>(S); |
| 20646 | #if USE_TAILCALLS |
| 20647 | MUSTTAIL return InterpNext(S); |
| 20648 | #else |
| 20649 | return true; |
| 20650 | #endif |
| 20651 | } |
| 20652 | PRESERVE_NONE |
| 20653 | static bool Interp_FlipReflectSint8(InterpState &S) { |
| 20654 | Flip<PT_Reflect, PT_Sint8>(S); |
| 20655 | #if USE_TAILCALLS |
| 20656 | MUSTTAIL return InterpNext(S); |
| 20657 | #else |
| 20658 | return true; |
| 20659 | #endif |
| 20660 | } |
| 20661 | PRESERVE_NONE |
| 20662 | static bool Interp_FlipReflectUint8(InterpState &S) { |
| 20663 | Flip<PT_Reflect, PT_Uint8>(S); |
| 20664 | #if USE_TAILCALLS |
| 20665 | MUSTTAIL return InterpNext(S); |
| 20666 | #else |
| 20667 | return true; |
| 20668 | #endif |
| 20669 | } |
| 20670 | PRESERVE_NONE |
| 20671 | static bool Interp_FlipReflectSint16(InterpState &S) { |
| 20672 | Flip<PT_Reflect, PT_Sint16>(S); |
| 20673 | #if USE_TAILCALLS |
| 20674 | MUSTTAIL return InterpNext(S); |
| 20675 | #else |
| 20676 | return true; |
| 20677 | #endif |
| 20678 | } |
| 20679 | PRESERVE_NONE |
| 20680 | static bool Interp_FlipReflectUint16(InterpState &S) { |
| 20681 | Flip<PT_Reflect, PT_Uint16>(S); |
| 20682 | #if USE_TAILCALLS |
| 20683 | MUSTTAIL return InterpNext(S); |
| 20684 | #else |
| 20685 | return true; |
| 20686 | #endif |
| 20687 | } |
| 20688 | PRESERVE_NONE |
| 20689 | static bool Interp_FlipReflectSint32(InterpState &S) { |
| 20690 | Flip<PT_Reflect, PT_Sint32>(S); |
| 20691 | #if USE_TAILCALLS |
| 20692 | MUSTTAIL return InterpNext(S); |
| 20693 | #else |
| 20694 | return true; |
| 20695 | #endif |
| 20696 | } |
| 20697 | PRESERVE_NONE |
| 20698 | static bool Interp_FlipReflectUint32(InterpState &S) { |
| 20699 | Flip<PT_Reflect, PT_Uint32>(S); |
| 20700 | #if USE_TAILCALLS |
| 20701 | MUSTTAIL return InterpNext(S); |
| 20702 | #else |
| 20703 | return true; |
| 20704 | #endif |
| 20705 | } |
| 20706 | PRESERVE_NONE |
| 20707 | static bool Interp_FlipReflectSint64(InterpState &S) { |
| 20708 | Flip<PT_Reflect, PT_Sint64>(S); |
| 20709 | #if USE_TAILCALLS |
| 20710 | MUSTTAIL return InterpNext(S); |
| 20711 | #else |
| 20712 | return true; |
| 20713 | #endif |
| 20714 | } |
| 20715 | PRESERVE_NONE |
| 20716 | static bool Interp_FlipReflectUint64(InterpState &S) { |
| 20717 | Flip<PT_Reflect, PT_Uint64>(S); |
| 20718 | #if USE_TAILCALLS |
| 20719 | MUSTTAIL return InterpNext(S); |
| 20720 | #else |
| 20721 | return true; |
| 20722 | #endif |
| 20723 | } |
| 20724 | PRESERVE_NONE |
| 20725 | static bool Interp_FlipReflectIntAP(InterpState &S) { |
| 20726 | Flip<PT_Reflect, PT_IntAP>(S); |
| 20727 | #if USE_TAILCALLS |
| 20728 | MUSTTAIL return InterpNext(S); |
| 20729 | #else |
| 20730 | return true; |
| 20731 | #endif |
| 20732 | } |
| 20733 | PRESERVE_NONE |
| 20734 | static bool Interp_FlipReflectIntAPS(InterpState &S) { |
| 20735 | Flip<PT_Reflect, PT_IntAPS>(S); |
| 20736 | #if USE_TAILCALLS |
| 20737 | MUSTTAIL return InterpNext(S); |
| 20738 | #else |
| 20739 | return true; |
| 20740 | #endif |
| 20741 | } |
| 20742 | PRESERVE_NONE |
| 20743 | static bool Interp_FlipReflectBool(InterpState &S) { |
| 20744 | Flip<PT_Reflect, PT_Bool>(S); |
| 20745 | #if USE_TAILCALLS |
| 20746 | MUSTTAIL return InterpNext(S); |
| 20747 | #else |
| 20748 | return true; |
| 20749 | #endif |
| 20750 | } |
| 20751 | PRESERVE_NONE |
| 20752 | static bool Interp_FlipReflectFixedPoint(InterpState &S) { |
| 20753 | Flip<PT_Reflect, PT_FixedPoint>(S); |
| 20754 | #if USE_TAILCALLS |
| 20755 | MUSTTAIL return InterpNext(S); |
| 20756 | #else |
| 20757 | return true; |
| 20758 | #endif |
| 20759 | } |
| 20760 | PRESERVE_NONE |
| 20761 | static bool Interp_FlipReflectPtr(InterpState &S) { |
| 20762 | Flip<PT_Reflect, PT_Ptr>(S); |
| 20763 | #if USE_TAILCALLS |
| 20764 | MUSTTAIL return InterpNext(S); |
| 20765 | #else |
| 20766 | return true; |
| 20767 | #endif |
| 20768 | } |
| 20769 | PRESERVE_NONE |
| 20770 | static bool Interp_FlipReflectMemberPtr(InterpState &S) { |
| 20771 | Flip<PT_Reflect, PT_MemberPtr>(S); |
| 20772 | #if USE_TAILCALLS |
| 20773 | MUSTTAIL return InterpNext(S); |
| 20774 | #else |
| 20775 | return true; |
| 20776 | #endif |
| 20777 | } |
| 20778 | PRESERVE_NONE |
| 20779 | static bool Interp_FlipReflectFloat(InterpState &S) { |
| 20780 | Flip<PT_Reflect, PT_Float>(S); |
| 20781 | #if USE_TAILCALLS |
| 20782 | MUSTTAIL return InterpNext(S); |
| 20783 | #else |
| 20784 | return true; |
| 20785 | #endif |
| 20786 | } |
| 20787 | PRESERVE_NONE |
| 20788 | static bool Interp_FlipReflectReflect(InterpState &S) { |
| 20789 | Flip<PT_Reflect, PT_Reflect>(S); |
| 20790 | #if USE_TAILCALLS |
| 20791 | MUSTTAIL return InterpNext(S); |
| 20792 | #else |
| 20793 | return true; |
| 20794 | #endif |
| 20795 | } |
| 20796 | #endif |
| 20797 | #ifdef GET_DISASM |
| 20798 | case OP_FlipSint8Sint8: |
| 20799 | Text.Op = PrintName("FlipSint8Sint8" ); |
| 20800 | break; |
| 20801 | case OP_FlipSint8Uint8: |
| 20802 | Text.Op = PrintName("FlipSint8Uint8" ); |
| 20803 | break; |
| 20804 | case OP_FlipSint8Sint16: |
| 20805 | Text.Op = PrintName("FlipSint8Sint16" ); |
| 20806 | break; |
| 20807 | case OP_FlipSint8Uint16: |
| 20808 | Text.Op = PrintName("FlipSint8Uint16" ); |
| 20809 | break; |
| 20810 | case OP_FlipSint8Sint32: |
| 20811 | Text.Op = PrintName("FlipSint8Sint32" ); |
| 20812 | break; |
| 20813 | case OP_FlipSint8Uint32: |
| 20814 | Text.Op = PrintName("FlipSint8Uint32" ); |
| 20815 | break; |
| 20816 | case OP_FlipSint8Sint64: |
| 20817 | Text.Op = PrintName("FlipSint8Sint64" ); |
| 20818 | break; |
| 20819 | case OP_FlipSint8Uint64: |
| 20820 | Text.Op = PrintName("FlipSint8Uint64" ); |
| 20821 | break; |
| 20822 | case OP_FlipSint8IntAP: |
| 20823 | Text.Op = PrintName("FlipSint8IntAP" ); |
| 20824 | break; |
| 20825 | case OP_FlipSint8IntAPS: |
| 20826 | Text.Op = PrintName("FlipSint8IntAPS" ); |
| 20827 | break; |
| 20828 | case OP_FlipSint8Bool: |
| 20829 | Text.Op = PrintName("FlipSint8Bool" ); |
| 20830 | break; |
| 20831 | case OP_FlipSint8FixedPoint: |
| 20832 | Text.Op = PrintName("FlipSint8FixedPoint" ); |
| 20833 | break; |
| 20834 | case OP_FlipSint8Ptr: |
| 20835 | Text.Op = PrintName("FlipSint8Ptr" ); |
| 20836 | break; |
| 20837 | case OP_FlipSint8MemberPtr: |
| 20838 | Text.Op = PrintName("FlipSint8MemberPtr" ); |
| 20839 | break; |
| 20840 | case OP_FlipSint8Float: |
| 20841 | Text.Op = PrintName("FlipSint8Float" ); |
| 20842 | break; |
| 20843 | case OP_FlipSint8Reflect: |
| 20844 | Text.Op = PrintName("FlipSint8Reflect" ); |
| 20845 | break; |
| 20846 | case OP_FlipUint8Sint8: |
| 20847 | Text.Op = PrintName("FlipUint8Sint8" ); |
| 20848 | break; |
| 20849 | case OP_FlipUint8Uint8: |
| 20850 | Text.Op = PrintName("FlipUint8Uint8" ); |
| 20851 | break; |
| 20852 | case OP_FlipUint8Sint16: |
| 20853 | Text.Op = PrintName("FlipUint8Sint16" ); |
| 20854 | break; |
| 20855 | case OP_FlipUint8Uint16: |
| 20856 | Text.Op = PrintName("FlipUint8Uint16" ); |
| 20857 | break; |
| 20858 | case OP_FlipUint8Sint32: |
| 20859 | Text.Op = PrintName("FlipUint8Sint32" ); |
| 20860 | break; |
| 20861 | case OP_FlipUint8Uint32: |
| 20862 | Text.Op = PrintName("FlipUint8Uint32" ); |
| 20863 | break; |
| 20864 | case OP_FlipUint8Sint64: |
| 20865 | Text.Op = PrintName("FlipUint8Sint64" ); |
| 20866 | break; |
| 20867 | case OP_FlipUint8Uint64: |
| 20868 | Text.Op = PrintName("FlipUint8Uint64" ); |
| 20869 | break; |
| 20870 | case OP_FlipUint8IntAP: |
| 20871 | Text.Op = PrintName("FlipUint8IntAP" ); |
| 20872 | break; |
| 20873 | case OP_FlipUint8IntAPS: |
| 20874 | Text.Op = PrintName("FlipUint8IntAPS" ); |
| 20875 | break; |
| 20876 | case OP_FlipUint8Bool: |
| 20877 | Text.Op = PrintName("FlipUint8Bool" ); |
| 20878 | break; |
| 20879 | case OP_FlipUint8FixedPoint: |
| 20880 | Text.Op = PrintName("FlipUint8FixedPoint" ); |
| 20881 | break; |
| 20882 | case OP_FlipUint8Ptr: |
| 20883 | Text.Op = PrintName("FlipUint8Ptr" ); |
| 20884 | break; |
| 20885 | case OP_FlipUint8MemberPtr: |
| 20886 | Text.Op = PrintName("FlipUint8MemberPtr" ); |
| 20887 | break; |
| 20888 | case OP_FlipUint8Float: |
| 20889 | Text.Op = PrintName("FlipUint8Float" ); |
| 20890 | break; |
| 20891 | case OP_FlipUint8Reflect: |
| 20892 | Text.Op = PrintName("FlipUint8Reflect" ); |
| 20893 | break; |
| 20894 | case OP_FlipSint16Sint8: |
| 20895 | Text.Op = PrintName("FlipSint16Sint8" ); |
| 20896 | break; |
| 20897 | case OP_FlipSint16Uint8: |
| 20898 | Text.Op = PrintName("FlipSint16Uint8" ); |
| 20899 | break; |
| 20900 | case OP_FlipSint16Sint16: |
| 20901 | Text.Op = PrintName("FlipSint16Sint16" ); |
| 20902 | break; |
| 20903 | case OP_FlipSint16Uint16: |
| 20904 | Text.Op = PrintName("FlipSint16Uint16" ); |
| 20905 | break; |
| 20906 | case OP_FlipSint16Sint32: |
| 20907 | Text.Op = PrintName("FlipSint16Sint32" ); |
| 20908 | break; |
| 20909 | case OP_FlipSint16Uint32: |
| 20910 | Text.Op = PrintName("FlipSint16Uint32" ); |
| 20911 | break; |
| 20912 | case OP_FlipSint16Sint64: |
| 20913 | Text.Op = PrintName("FlipSint16Sint64" ); |
| 20914 | break; |
| 20915 | case OP_FlipSint16Uint64: |
| 20916 | Text.Op = PrintName("FlipSint16Uint64" ); |
| 20917 | break; |
| 20918 | case OP_FlipSint16IntAP: |
| 20919 | Text.Op = PrintName("FlipSint16IntAP" ); |
| 20920 | break; |
| 20921 | case OP_FlipSint16IntAPS: |
| 20922 | Text.Op = PrintName("FlipSint16IntAPS" ); |
| 20923 | break; |
| 20924 | case OP_FlipSint16Bool: |
| 20925 | Text.Op = PrintName("FlipSint16Bool" ); |
| 20926 | break; |
| 20927 | case OP_FlipSint16FixedPoint: |
| 20928 | Text.Op = PrintName("FlipSint16FixedPoint" ); |
| 20929 | break; |
| 20930 | case OP_FlipSint16Ptr: |
| 20931 | Text.Op = PrintName("FlipSint16Ptr" ); |
| 20932 | break; |
| 20933 | case OP_FlipSint16MemberPtr: |
| 20934 | Text.Op = PrintName("FlipSint16MemberPtr" ); |
| 20935 | break; |
| 20936 | case OP_FlipSint16Float: |
| 20937 | Text.Op = PrintName("FlipSint16Float" ); |
| 20938 | break; |
| 20939 | case OP_FlipSint16Reflect: |
| 20940 | Text.Op = PrintName("FlipSint16Reflect" ); |
| 20941 | break; |
| 20942 | case OP_FlipUint16Sint8: |
| 20943 | Text.Op = PrintName("FlipUint16Sint8" ); |
| 20944 | break; |
| 20945 | case OP_FlipUint16Uint8: |
| 20946 | Text.Op = PrintName("FlipUint16Uint8" ); |
| 20947 | break; |
| 20948 | case OP_FlipUint16Sint16: |
| 20949 | Text.Op = PrintName("FlipUint16Sint16" ); |
| 20950 | break; |
| 20951 | case OP_FlipUint16Uint16: |
| 20952 | Text.Op = PrintName("FlipUint16Uint16" ); |
| 20953 | break; |
| 20954 | case OP_FlipUint16Sint32: |
| 20955 | Text.Op = PrintName("FlipUint16Sint32" ); |
| 20956 | break; |
| 20957 | case OP_FlipUint16Uint32: |
| 20958 | Text.Op = PrintName("FlipUint16Uint32" ); |
| 20959 | break; |
| 20960 | case OP_FlipUint16Sint64: |
| 20961 | Text.Op = PrintName("FlipUint16Sint64" ); |
| 20962 | break; |
| 20963 | case OP_FlipUint16Uint64: |
| 20964 | Text.Op = PrintName("FlipUint16Uint64" ); |
| 20965 | break; |
| 20966 | case OP_FlipUint16IntAP: |
| 20967 | Text.Op = PrintName("FlipUint16IntAP" ); |
| 20968 | break; |
| 20969 | case OP_FlipUint16IntAPS: |
| 20970 | Text.Op = PrintName("FlipUint16IntAPS" ); |
| 20971 | break; |
| 20972 | case OP_FlipUint16Bool: |
| 20973 | Text.Op = PrintName("FlipUint16Bool" ); |
| 20974 | break; |
| 20975 | case OP_FlipUint16FixedPoint: |
| 20976 | Text.Op = PrintName("FlipUint16FixedPoint" ); |
| 20977 | break; |
| 20978 | case OP_FlipUint16Ptr: |
| 20979 | Text.Op = PrintName("FlipUint16Ptr" ); |
| 20980 | break; |
| 20981 | case OP_FlipUint16MemberPtr: |
| 20982 | Text.Op = PrintName("FlipUint16MemberPtr" ); |
| 20983 | break; |
| 20984 | case OP_FlipUint16Float: |
| 20985 | Text.Op = PrintName("FlipUint16Float" ); |
| 20986 | break; |
| 20987 | case OP_FlipUint16Reflect: |
| 20988 | Text.Op = PrintName("FlipUint16Reflect" ); |
| 20989 | break; |
| 20990 | case OP_FlipSint32Sint8: |
| 20991 | Text.Op = PrintName("FlipSint32Sint8" ); |
| 20992 | break; |
| 20993 | case OP_FlipSint32Uint8: |
| 20994 | Text.Op = PrintName("FlipSint32Uint8" ); |
| 20995 | break; |
| 20996 | case OP_FlipSint32Sint16: |
| 20997 | Text.Op = PrintName("FlipSint32Sint16" ); |
| 20998 | break; |
| 20999 | case OP_FlipSint32Uint16: |
| 21000 | Text.Op = PrintName("FlipSint32Uint16" ); |
| 21001 | break; |
| 21002 | case OP_FlipSint32Sint32: |
| 21003 | Text.Op = PrintName("FlipSint32Sint32" ); |
| 21004 | break; |
| 21005 | case OP_FlipSint32Uint32: |
| 21006 | Text.Op = PrintName("FlipSint32Uint32" ); |
| 21007 | break; |
| 21008 | case OP_FlipSint32Sint64: |
| 21009 | Text.Op = PrintName("FlipSint32Sint64" ); |
| 21010 | break; |
| 21011 | case OP_FlipSint32Uint64: |
| 21012 | Text.Op = PrintName("FlipSint32Uint64" ); |
| 21013 | break; |
| 21014 | case OP_FlipSint32IntAP: |
| 21015 | Text.Op = PrintName("FlipSint32IntAP" ); |
| 21016 | break; |
| 21017 | case OP_FlipSint32IntAPS: |
| 21018 | Text.Op = PrintName("FlipSint32IntAPS" ); |
| 21019 | break; |
| 21020 | case OP_FlipSint32Bool: |
| 21021 | Text.Op = PrintName("FlipSint32Bool" ); |
| 21022 | break; |
| 21023 | case OP_FlipSint32FixedPoint: |
| 21024 | Text.Op = PrintName("FlipSint32FixedPoint" ); |
| 21025 | break; |
| 21026 | case OP_FlipSint32Ptr: |
| 21027 | Text.Op = PrintName("FlipSint32Ptr" ); |
| 21028 | break; |
| 21029 | case OP_FlipSint32MemberPtr: |
| 21030 | Text.Op = PrintName("FlipSint32MemberPtr" ); |
| 21031 | break; |
| 21032 | case OP_FlipSint32Float: |
| 21033 | Text.Op = PrintName("FlipSint32Float" ); |
| 21034 | break; |
| 21035 | case OP_FlipSint32Reflect: |
| 21036 | Text.Op = PrintName("FlipSint32Reflect" ); |
| 21037 | break; |
| 21038 | case OP_FlipUint32Sint8: |
| 21039 | Text.Op = PrintName("FlipUint32Sint8" ); |
| 21040 | break; |
| 21041 | case OP_FlipUint32Uint8: |
| 21042 | Text.Op = PrintName("FlipUint32Uint8" ); |
| 21043 | break; |
| 21044 | case OP_FlipUint32Sint16: |
| 21045 | Text.Op = PrintName("FlipUint32Sint16" ); |
| 21046 | break; |
| 21047 | case OP_FlipUint32Uint16: |
| 21048 | Text.Op = PrintName("FlipUint32Uint16" ); |
| 21049 | break; |
| 21050 | case OP_FlipUint32Sint32: |
| 21051 | Text.Op = PrintName("FlipUint32Sint32" ); |
| 21052 | break; |
| 21053 | case OP_FlipUint32Uint32: |
| 21054 | Text.Op = PrintName("FlipUint32Uint32" ); |
| 21055 | break; |
| 21056 | case OP_FlipUint32Sint64: |
| 21057 | Text.Op = PrintName("FlipUint32Sint64" ); |
| 21058 | break; |
| 21059 | case OP_FlipUint32Uint64: |
| 21060 | Text.Op = PrintName("FlipUint32Uint64" ); |
| 21061 | break; |
| 21062 | case OP_FlipUint32IntAP: |
| 21063 | Text.Op = PrintName("FlipUint32IntAP" ); |
| 21064 | break; |
| 21065 | case OP_FlipUint32IntAPS: |
| 21066 | Text.Op = PrintName("FlipUint32IntAPS" ); |
| 21067 | break; |
| 21068 | case OP_FlipUint32Bool: |
| 21069 | Text.Op = PrintName("FlipUint32Bool" ); |
| 21070 | break; |
| 21071 | case OP_FlipUint32FixedPoint: |
| 21072 | Text.Op = PrintName("FlipUint32FixedPoint" ); |
| 21073 | break; |
| 21074 | case OP_FlipUint32Ptr: |
| 21075 | Text.Op = PrintName("FlipUint32Ptr" ); |
| 21076 | break; |
| 21077 | case OP_FlipUint32MemberPtr: |
| 21078 | Text.Op = PrintName("FlipUint32MemberPtr" ); |
| 21079 | break; |
| 21080 | case OP_FlipUint32Float: |
| 21081 | Text.Op = PrintName("FlipUint32Float" ); |
| 21082 | break; |
| 21083 | case OP_FlipUint32Reflect: |
| 21084 | Text.Op = PrintName("FlipUint32Reflect" ); |
| 21085 | break; |
| 21086 | case OP_FlipSint64Sint8: |
| 21087 | Text.Op = PrintName("FlipSint64Sint8" ); |
| 21088 | break; |
| 21089 | case OP_FlipSint64Uint8: |
| 21090 | Text.Op = PrintName("FlipSint64Uint8" ); |
| 21091 | break; |
| 21092 | case OP_FlipSint64Sint16: |
| 21093 | Text.Op = PrintName("FlipSint64Sint16" ); |
| 21094 | break; |
| 21095 | case OP_FlipSint64Uint16: |
| 21096 | Text.Op = PrintName("FlipSint64Uint16" ); |
| 21097 | break; |
| 21098 | case OP_FlipSint64Sint32: |
| 21099 | Text.Op = PrintName("FlipSint64Sint32" ); |
| 21100 | break; |
| 21101 | case OP_FlipSint64Uint32: |
| 21102 | Text.Op = PrintName("FlipSint64Uint32" ); |
| 21103 | break; |
| 21104 | case OP_FlipSint64Sint64: |
| 21105 | Text.Op = PrintName("FlipSint64Sint64" ); |
| 21106 | break; |
| 21107 | case OP_FlipSint64Uint64: |
| 21108 | Text.Op = PrintName("FlipSint64Uint64" ); |
| 21109 | break; |
| 21110 | case OP_FlipSint64IntAP: |
| 21111 | Text.Op = PrintName("FlipSint64IntAP" ); |
| 21112 | break; |
| 21113 | case OP_FlipSint64IntAPS: |
| 21114 | Text.Op = PrintName("FlipSint64IntAPS" ); |
| 21115 | break; |
| 21116 | case OP_FlipSint64Bool: |
| 21117 | Text.Op = PrintName("FlipSint64Bool" ); |
| 21118 | break; |
| 21119 | case OP_FlipSint64FixedPoint: |
| 21120 | Text.Op = PrintName("FlipSint64FixedPoint" ); |
| 21121 | break; |
| 21122 | case OP_FlipSint64Ptr: |
| 21123 | Text.Op = PrintName("FlipSint64Ptr" ); |
| 21124 | break; |
| 21125 | case OP_FlipSint64MemberPtr: |
| 21126 | Text.Op = PrintName("FlipSint64MemberPtr" ); |
| 21127 | break; |
| 21128 | case OP_FlipSint64Float: |
| 21129 | Text.Op = PrintName("FlipSint64Float" ); |
| 21130 | break; |
| 21131 | case OP_FlipSint64Reflect: |
| 21132 | Text.Op = PrintName("FlipSint64Reflect" ); |
| 21133 | break; |
| 21134 | case OP_FlipUint64Sint8: |
| 21135 | Text.Op = PrintName("FlipUint64Sint8" ); |
| 21136 | break; |
| 21137 | case OP_FlipUint64Uint8: |
| 21138 | Text.Op = PrintName("FlipUint64Uint8" ); |
| 21139 | break; |
| 21140 | case OP_FlipUint64Sint16: |
| 21141 | Text.Op = PrintName("FlipUint64Sint16" ); |
| 21142 | break; |
| 21143 | case OP_FlipUint64Uint16: |
| 21144 | Text.Op = PrintName("FlipUint64Uint16" ); |
| 21145 | break; |
| 21146 | case OP_FlipUint64Sint32: |
| 21147 | Text.Op = PrintName("FlipUint64Sint32" ); |
| 21148 | break; |
| 21149 | case OP_FlipUint64Uint32: |
| 21150 | Text.Op = PrintName("FlipUint64Uint32" ); |
| 21151 | break; |
| 21152 | case OP_FlipUint64Sint64: |
| 21153 | Text.Op = PrintName("FlipUint64Sint64" ); |
| 21154 | break; |
| 21155 | case OP_FlipUint64Uint64: |
| 21156 | Text.Op = PrintName("FlipUint64Uint64" ); |
| 21157 | break; |
| 21158 | case OP_FlipUint64IntAP: |
| 21159 | Text.Op = PrintName("FlipUint64IntAP" ); |
| 21160 | break; |
| 21161 | case OP_FlipUint64IntAPS: |
| 21162 | Text.Op = PrintName("FlipUint64IntAPS" ); |
| 21163 | break; |
| 21164 | case OP_FlipUint64Bool: |
| 21165 | Text.Op = PrintName("FlipUint64Bool" ); |
| 21166 | break; |
| 21167 | case OP_FlipUint64FixedPoint: |
| 21168 | Text.Op = PrintName("FlipUint64FixedPoint" ); |
| 21169 | break; |
| 21170 | case OP_FlipUint64Ptr: |
| 21171 | Text.Op = PrintName("FlipUint64Ptr" ); |
| 21172 | break; |
| 21173 | case OP_FlipUint64MemberPtr: |
| 21174 | Text.Op = PrintName("FlipUint64MemberPtr" ); |
| 21175 | break; |
| 21176 | case OP_FlipUint64Float: |
| 21177 | Text.Op = PrintName("FlipUint64Float" ); |
| 21178 | break; |
| 21179 | case OP_FlipUint64Reflect: |
| 21180 | Text.Op = PrintName("FlipUint64Reflect" ); |
| 21181 | break; |
| 21182 | case OP_FlipIntAPSint8: |
| 21183 | Text.Op = PrintName("FlipIntAPSint8" ); |
| 21184 | break; |
| 21185 | case OP_FlipIntAPUint8: |
| 21186 | Text.Op = PrintName("FlipIntAPUint8" ); |
| 21187 | break; |
| 21188 | case OP_FlipIntAPSint16: |
| 21189 | Text.Op = PrintName("FlipIntAPSint16" ); |
| 21190 | break; |
| 21191 | case OP_FlipIntAPUint16: |
| 21192 | Text.Op = PrintName("FlipIntAPUint16" ); |
| 21193 | break; |
| 21194 | case OP_FlipIntAPSint32: |
| 21195 | Text.Op = PrintName("FlipIntAPSint32" ); |
| 21196 | break; |
| 21197 | case OP_FlipIntAPUint32: |
| 21198 | Text.Op = PrintName("FlipIntAPUint32" ); |
| 21199 | break; |
| 21200 | case OP_FlipIntAPSint64: |
| 21201 | Text.Op = PrintName("FlipIntAPSint64" ); |
| 21202 | break; |
| 21203 | case OP_FlipIntAPUint64: |
| 21204 | Text.Op = PrintName("FlipIntAPUint64" ); |
| 21205 | break; |
| 21206 | case OP_FlipIntAPIntAP: |
| 21207 | Text.Op = PrintName("FlipIntAPIntAP" ); |
| 21208 | break; |
| 21209 | case OP_FlipIntAPIntAPS: |
| 21210 | Text.Op = PrintName("FlipIntAPIntAPS" ); |
| 21211 | break; |
| 21212 | case OP_FlipIntAPBool: |
| 21213 | Text.Op = PrintName("FlipIntAPBool" ); |
| 21214 | break; |
| 21215 | case OP_FlipIntAPFixedPoint: |
| 21216 | Text.Op = PrintName("FlipIntAPFixedPoint" ); |
| 21217 | break; |
| 21218 | case OP_FlipIntAPPtr: |
| 21219 | Text.Op = PrintName("FlipIntAPPtr" ); |
| 21220 | break; |
| 21221 | case OP_FlipIntAPMemberPtr: |
| 21222 | Text.Op = PrintName("FlipIntAPMemberPtr" ); |
| 21223 | break; |
| 21224 | case OP_FlipIntAPFloat: |
| 21225 | Text.Op = PrintName("FlipIntAPFloat" ); |
| 21226 | break; |
| 21227 | case OP_FlipIntAPReflect: |
| 21228 | Text.Op = PrintName("FlipIntAPReflect" ); |
| 21229 | break; |
| 21230 | case OP_FlipIntAPSSint8: |
| 21231 | Text.Op = PrintName("FlipIntAPSSint8" ); |
| 21232 | break; |
| 21233 | case OP_FlipIntAPSUint8: |
| 21234 | Text.Op = PrintName("FlipIntAPSUint8" ); |
| 21235 | break; |
| 21236 | case OP_FlipIntAPSSint16: |
| 21237 | Text.Op = PrintName("FlipIntAPSSint16" ); |
| 21238 | break; |
| 21239 | case OP_FlipIntAPSUint16: |
| 21240 | Text.Op = PrintName("FlipIntAPSUint16" ); |
| 21241 | break; |
| 21242 | case OP_FlipIntAPSSint32: |
| 21243 | Text.Op = PrintName("FlipIntAPSSint32" ); |
| 21244 | break; |
| 21245 | case OP_FlipIntAPSUint32: |
| 21246 | Text.Op = PrintName("FlipIntAPSUint32" ); |
| 21247 | break; |
| 21248 | case OP_FlipIntAPSSint64: |
| 21249 | Text.Op = PrintName("FlipIntAPSSint64" ); |
| 21250 | break; |
| 21251 | case OP_FlipIntAPSUint64: |
| 21252 | Text.Op = PrintName("FlipIntAPSUint64" ); |
| 21253 | break; |
| 21254 | case OP_FlipIntAPSIntAP: |
| 21255 | Text.Op = PrintName("FlipIntAPSIntAP" ); |
| 21256 | break; |
| 21257 | case OP_FlipIntAPSIntAPS: |
| 21258 | Text.Op = PrintName("FlipIntAPSIntAPS" ); |
| 21259 | break; |
| 21260 | case OP_FlipIntAPSBool: |
| 21261 | Text.Op = PrintName("FlipIntAPSBool" ); |
| 21262 | break; |
| 21263 | case OP_FlipIntAPSFixedPoint: |
| 21264 | Text.Op = PrintName("FlipIntAPSFixedPoint" ); |
| 21265 | break; |
| 21266 | case OP_FlipIntAPSPtr: |
| 21267 | Text.Op = PrintName("FlipIntAPSPtr" ); |
| 21268 | break; |
| 21269 | case OP_FlipIntAPSMemberPtr: |
| 21270 | Text.Op = PrintName("FlipIntAPSMemberPtr" ); |
| 21271 | break; |
| 21272 | case OP_FlipIntAPSFloat: |
| 21273 | Text.Op = PrintName("FlipIntAPSFloat" ); |
| 21274 | break; |
| 21275 | case OP_FlipIntAPSReflect: |
| 21276 | Text.Op = PrintName("FlipIntAPSReflect" ); |
| 21277 | break; |
| 21278 | case OP_FlipBoolSint8: |
| 21279 | Text.Op = PrintName("FlipBoolSint8" ); |
| 21280 | break; |
| 21281 | case OP_FlipBoolUint8: |
| 21282 | Text.Op = PrintName("FlipBoolUint8" ); |
| 21283 | break; |
| 21284 | case OP_FlipBoolSint16: |
| 21285 | Text.Op = PrintName("FlipBoolSint16" ); |
| 21286 | break; |
| 21287 | case OP_FlipBoolUint16: |
| 21288 | Text.Op = PrintName("FlipBoolUint16" ); |
| 21289 | break; |
| 21290 | case OP_FlipBoolSint32: |
| 21291 | Text.Op = PrintName("FlipBoolSint32" ); |
| 21292 | break; |
| 21293 | case OP_FlipBoolUint32: |
| 21294 | Text.Op = PrintName("FlipBoolUint32" ); |
| 21295 | break; |
| 21296 | case OP_FlipBoolSint64: |
| 21297 | Text.Op = PrintName("FlipBoolSint64" ); |
| 21298 | break; |
| 21299 | case OP_FlipBoolUint64: |
| 21300 | Text.Op = PrintName("FlipBoolUint64" ); |
| 21301 | break; |
| 21302 | case OP_FlipBoolIntAP: |
| 21303 | Text.Op = PrintName("FlipBoolIntAP" ); |
| 21304 | break; |
| 21305 | case OP_FlipBoolIntAPS: |
| 21306 | Text.Op = PrintName("FlipBoolIntAPS" ); |
| 21307 | break; |
| 21308 | case OP_FlipBoolBool: |
| 21309 | Text.Op = PrintName("FlipBoolBool" ); |
| 21310 | break; |
| 21311 | case OP_FlipBoolFixedPoint: |
| 21312 | Text.Op = PrintName("FlipBoolFixedPoint" ); |
| 21313 | break; |
| 21314 | case OP_FlipBoolPtr: |
| 21315 | Text.Op = PrintName("FlipBoolPtr" ); |
| 21316 | break; |
| 21317 | case OP_FlipBoolMemberPtr: |
| 21318 | Text.Op = PrintName("FlipBoolMemberPtr" ); |
| 21319 | break; |
| 21320 | case OP_FlipBoolFloat: |
| 21321 | Text.Op = PrintName("FlipBoolFloat" ); |
| 21322 | break; |
| 21323 | case OP_FlipBoolReflect: |
| 21324 | Text.Op = PrintName("FlipBoolReflect" ); |
| 21325 | break; |
| 21326 | case OP_FlipFixedPointSint8: |
| 21327 | Text.Op = PrintName("FlipFixedPointSint8" ); |
| 21328 | break; |
| 21329 | case OP_FlipFixedPointUint8: |
| 21330 | Text.Op = PrintName("FlipFixedPointUint8" ); |
| 21331 | break; |
| 21332 | case OP_FlipFixedPointSint16: |
| 21333 | Text.Op = PrintName("FlipFixedPointSint16" ); |
| 21334 | break; |
| 21335 | case OP_FlipFixedPointUint16: |
| 21336 | Text.Op = PrintName("FlipFixedPointUint16" ); |
| 21337 | break; |
| 21338 | case OP_FlipFixedPointSint32: |
| 21339 | Text.Op = PrintName("FlipFixedPointSint32" ); |
| 21340 | break; |
| 21341 | case OP_FlipFixedPointUint32: |
| 21342 | Text.Op = PrintName("FlipFixedPointUint32" ); |
| 21343 | break; |
| 21344 | case OP_FlipFixedPointSint64: |
| 21345 | Text.Op = PrintName("FlipFixedPointSint64" ); |
| 21346 | break; |
| 21347 | case OP_FlipFixedPointUint64: |
| 21348 | Text.Op = PrintName("FlipFixedPointUint64" ); |
| 21349 | break; |
| 21350 | case OP_FlipFixedPointIntAP: |
| 21351 | Text.Op = PrintName("FlipFixedPointIntAP" ); |
| 21352 | break; |
| 21353 | case OP_FlipFixedPointIntAPS: |
| 21354 | Text.Op = PrintName("FlipFixedPointIntAPS" ); |
| 21355 | break; |
| 21356 | case OP_FlipFixedPointBool: |
| 21357 | Text.Op = PrintName("FlipFixedPointBool" ); |
| 21358 | break; |
| 21359 | case OP_FlipFixedPointFixedPoint: |
| 21360 | Text.Op = PrintName("FlipFixedPointFixedPoint" ); |
| 21361 | break; |
| 21362 | case OP_FlipFixedPointPtr: |
| 21363 | Text.Op = PrintName("FlipFixedPointPtr" ); |
| 21364 | break; |
| 21365 | case OP_FlipFixedPointMemberPtr: |
| 21366 | Text.Op = PrintName("FlipFixedPointMemberPtr" ); |
| 21367 | break; |
| 21368 | case OP_FlipFixedPointFloat: |
| 21369 | Text.Op = PrintName("FlipFixedPointFloat" ); |
| 21370 | break; |
| 21371 | case OP_FlipFixedPointReflect: |
| 21372 | Text.Op = PrintName("FlipFixedPointReflect" ); |
| 21373 | break; |
| 21374 | case OP_FlipPtrSint8: |
| 21375 | Text.Op = PrintName("FlipPtrSint8" ); |
| 21376 | break; |
| 21377 | case OP_FlipPtrUint8: |
| 21378 | Text.Op = PrintName("FlipPtrUint8" ); |
| 21379 | break; |
| 21380 | case OP_FlipPtrSint16: |
| 21381 | Text.Op = PrintName("FlipPtrSint16" ); |
| 21382 | break; |
| 21383 | case OP_FlipPtrUint16: |
| 21384 | Text.Op = PrintName("FlipPtrUint16" ); |
| 21385 | break; |
| 21386 | case OP_FlipPtrSint32: |
| 21387 | Text.Op = PrintName("FlipPtrSint32" ); |
| 21388 | break; |
| 21389 | case OP_FlipPtrUint32: |
| 21390 | Text.Op = PrintName("FlipPtrUint32" ); |
| 21391 | break; |
| 21392 | case OP_FlipPtrSint64: |
| 21393 | Text.Op = PrintName("FlipPtrSint64" ); |
| 21394 | break; |
| 21395 | case OP_FlipPtrUint64: |
| 21396 | Text.Op = PrintName("FlipPtrUint64" ); |
| 21397 | break; |
| 21398 | case OP_FlipPtrIntAP: |
| 21399 | Text.Op = PrintName("FlipPtrIntAP" ); |
| 21400 | break; |
| 21401 | case OP_FlipPtrIntAPS: |
| 21402 | Text.Op = PrintName("FlipPtrIntAPS" ); |
| 21403 | break; |
| 21404 | case OP_FlipPtrBool: |
| 21405 | Text.Op = PrintName("FlipPtrBool" ); |
| 21406 | break; |
| 21407 | case OP_FlipPtrFixedPoint: |
| 21408 | Text.Op = PrintName("FlipPtrFixedPoint" ); |
| 21409 | break; |
| 21410 | case OP_FlipPtrPtr: |
| 21411 | Text.Op = PrintName("FlipPtrPtr" ); |
| 21412 | break; |
| 21413 | case OP_FlipPtrMemberPtr: |
| 21414 | Text.Op = PrintName("FlipPtrMemberPtr" ); |
| 21415 | break; |
| 21416 | case OP_FlipPtrFloat: |
| 21417 | Text.Op = PrintName("FlipPtrFloat" ); |
| 21418 | break; |
| 21419 | case OP_FlipPtrReflect: |
| 21420 | Text.Op = PrintName("FlipPtrReflect" ); |
| 21421 | break; |
| 21422 | case OP_FlipMemberPtrSint8: |
| 21423 | Text.Op = PrintName("FlipMemberPtrSint8" ); |
| 21424 | break; |
| 21425 | case OP_FlipMemberPtrUint8: |
| 21426 | Text.Op = PrintName("FlipMemberPtrUint8" ); |
| 21427 | break; |
| 21428 | case OP_FlipMemberPtrSint16: |
| 21429 | Text.Op = PrintName("FlipMemberPtrSint16" ); |
| 21430 | break; |
| 21431 | case OP_FlipMemberPtrUint16: |
| 21432 | Text.Op = PrintName("FlipMemberPtrUint16" ); |
| 21433 | break; |
| 21434 | case OP_FlipMemberPtrSint32: |
| 21435 | Text.Op = PrintName("FlipMemberPtrSint32" ); |
| 21436 | break; |
| 21437 | case OP_FlipMemberPtrUint32: |
| 21438 | Text.Op = PrintName("FlipMemberPtrUint32" ); |
| 21439 | break; |
| 21440 | case OP_FlipMemberPtrSint64: |
| 21441 | Text.Op = PrintName("FlipMemberPtrSint64" ); |
| 21442 | break; |
| 21443 | case OP_FlipMemberPtrUint64: |
| 21444 | Text.Op = PrintName("FlipMemberPtrUint64" ); |
| 21445 | break; |
| 21446 | case OP_FlipMemberPtrIntAP: |
| 21447 | Text.Op = PrintName("FlipMemberPtrIntAP" ); |
| 21448 | break; |
| 21449 | case OP_FlipMemberPtrIntAPS: |
| 21450 | Text.Op = PrintName("FlipMemberPtrIntAPS" ); |
| 21451 | break; |
| 21452 | case OP_FlipMemberPtrBool: |
| 21453 | Text.Op = PrintName("FlipMemberPtrBool" ); |
| 21454 | break; |
| 21455 | case OP_FlipMemberPtrFixedPoint: |
| 21456 | Text.Op = PrintName("FlipMemberPtrFixedPoint" ); |
| 21457 | break; |
| 21458 | case OP_FlipMemberPtrPtr: |
| 21459 | Text.Op = PrintName("FlipMemberPtrPtr" ); |
| 21460 | break; |
| 21461 | case OP_FlipMemberPtrMemberPtr: |
| 21462 | Text.Op = PrintName("FlipMemberPtrMemberPtr" ); |
| 21463 | break; |
| 21464 | case OP_FlipMemberPtrFloat: |
| 21465 | Text.Op = PrintName("FlipMemberPtrFloat" ); |
| 21466 | break; |
| 21467 | case OP_FlipMemberPtrReflect: |
| 21468 | Text.Op = PrintName("FlipMemberPtrReflect" ); |
| 21469 | break; |
| 21470 | case OP_FlipFloatSint8: |
| 21471 | Text.Op = PrintName("FlipFloatSint8" ); |
| 21472 | break; |
| 21473 | case OP_FlipFloatUint8: |
| 21474 | Text.Op = PrintName("FlipFloatUint8" ); |
| 21475 | break; |
| 21476 | case OP_FlipFloatSint16: |
| 21477 | Text.Op = PrintName("FlipFloatSint16" ); |
| 21478 | break; |
| 21479 | case OP_FlipFloatUint16: |
| 21480 | Text.Op = PrintName("FlipFloatUint16" ); |
| 21481 | break; |
| 21482 | case OP_FlipFloatSint32: |
| 21483 | Text.Op = PrintName("FlipFloatSint32" ); |
| 21484 | break; |
| 21485 | case OP_FlipFloatUint32: |
| 21486 | Text.Op = PrintName("FlipFloatUint32" ); |
| 21487 | break; |
| 21488 | case OP_FlipFloatSint64: |
| 21489 | Text.Op = PrintName("FlipFloatSint64" ); |
| 21490 | break; |
| 21491 | case OP_FlipFloatUint64: |
| 21492 | Text.Op = PrintName("FlipFloatUint64" ); |
| 21493 | break; |
| 21494 | case OP_FlipFloatIntAP: |
| 21495 | Text.Op = PrintName("FlipFloatIntAP" ); |
| 21496 | break; |
| 21497 | case OP_FlipFloatIntAPS: |
| 21498 | Text.Op = PrintName("FlipFloatIntAPS" ); |
| 21499 | break; |
| 21500 | case OP_FlipFloatBool: |
| 21501 | Text.Op = PrintName("FlipFloatBool" ); |
| 21502 | break; |
| 21503 | case OP_FlipFloatFixedPoint: |
| 21504 | Text.Op = PrintName("FlipFloatFixedPoint" ); |
| 21505 | break; |
| 21506 | case OP_FlipFloatPtr: |
| 21507 | Text.Op = PrintName("FlipFloatPtr" ); |
| 21508 | break; |
| 21509 | case OP_FlipFloatMemberPtr: |
| 21510 | Text.Op = PrintName("FlipFloatMemberPtr" ); |
| 21511 | break; |
| 21512 | case OP_FlipFloatFloat: |
| 21513 | Text.Op = PrintName("FlipFloatFloat" ); |
| 21514 | break; |
| 21515 | case OP_FlipFloatReflect: |
| 21516 | Text.Op = PrintName("FlipFloatReflect" ); |
| 21517 | break; |
| 21518 | case OP_FlipReflectSint8: |
| 21519 | Text.Op = PrintName("FlipReflectSint8" ); |
| 21520 | break; |
| 21521 | case OP_FlipReflectUint8: |
| 21522 | Text.Op = PrintName("FlipReflectUint8" ); |
| 21523 | break; |
| 21524 | case OP_FlipReflectSint16: |
| 21525 | Text.Op = PrintName("FlipReflectSint16" ); |
| 21526 | break; |
| 21527 | case OP_FlipReflectUint16: |
| 21528 | Text.Op = PrintName("FlipReflectUint16" ); |
| 21529 | break; |
| 21530 | case OP_FlipReflectSint32: |
| 21531 | Text.Op = PrintName("FlipReflectSint32" ); |
| 21532 | break; |
| 21533 | case OP_FlipReflectUint32: |
| 21534 | Text.Op = PrintName("FlipReflectUint32" ); |
| 21535 | break; |
| 21536 | case OP_FlipReflectSint64: |
| 21537 | Text.Op = PrintName("FlipReflectSint64" ); |
| 21538 | break; |
| 21539 | case OP_FlipReflectUint64: |
| 21540 | Text.Op = PrintName("FlipReflectUint64" ); |
| 21541 | break; |
| 21542 | case OP_FlipReflectIntAP: |
| 21543 | Text.Op = PrintName("FlipReflectIntAP" ); |
| 21544 | break; |
| 21545 | case OP_FlipReflectIntAPS: |
| 21546 | Text.Op = PrintName("FlipReflectIntAPS" ); |
| 21547 | break; |
| 21548 | case OP_FlipReflectBool: |
| 21549 | Text.Op = PrintName("FlipReflectBool" ); |
| 21550 | break; |
| 21551 | case OP_FlipReflectFixedPoint: |
| 21552 | Text.Op = PrintName("FlipReflectFixedPoint" ); |
| 21553 | break; |
| 21554 | case OP_FlipReflectPtr: |
| 21555 | Text.Op = PrintName("FlipReflectPtr" ); |
| 21556 | break; |
| 21557 | case OP_FlipReflectMemberPtr: |
| 21558 | Text.Op = PrintName("FlipReflectMemberPtr" ); |
| 21559 | break; |
| 21560 | case OP_FlipReflectFloat: |
| 21561 | Text.Op = PrintName("FlipReflectFloat" ); |
| 21562 | break; |
| 21563 | case OP_FlipReflectReflect: |
| 21564 | Text.Op = PrintName("FlipReflectReflect" ); |
| 21565 | break; |
| 21566 | #endif |
| 21567 | #if defined(GET_EVAL_PROTO) || defined(GET_LINK_PROTO) |
| 21568 | bool emitFlipSint8Sint8(SourceInfo); |
| 21569 | bool emitFlipSint8Uint8(SourceInfo); |
| 21570 | bool emitFlipSint8Sint16(SourceInfo); |
| 21571 | bool emitFlipSint8Uint16(SourceInfo); |
| 21572 | bool emitFlipSint8Sint32(SourceInfo); |
| 21573 | bool emitFlipSint8Uint32(SourceInfo); |
| 21574 | bool emitFlipSint8Sint64(SourceInfo); |
| 21575 | bool emitFlipSint8Uint64(SourceInfo); |
| 21576 | bool emitFlipSint8IntAP(SourceInfo); |
| 21577 | bool emitFlipSint8IntAPS(SourceInfo); |
| 21578 | bool emitFlipSint8Bool(SourceInfo); |
| 21579 | bool emitFlipSint8FixedPoint(SourceInfo); |
| 21580 | bool emitFlipSint8Ptr(SourceInfo); |
| 21581 | bool emitFlipSint8MemberPtr(SourceInfo); |
| 21582 | bool emitFlipSint8Float(SourceInfo); |
| 21583 | bool emitFlipSint8Reflect(SourceInfo); |
| 21584 | bool emitFlipUint8Sint8(SourceInfo); |
| 21585 | bool emitFlipUint8Uint8(SourceInfo); |
| 21586 | bool emitFlipUint8Sint16(SourceInfo); |
| 21587 | bool emitFlipUint8Uint16(SourceInfo); |
| 21588 | bool emitFlipUint8Sint32(SourceInfo); |
| 21589 | bool emitFlipUint8Uint32(SourceInfo); |
| 21590 | bool emitFlipUint8Sint64(SourceInfo); |
| 21591 | bool emitFlipUint8Uint64(SourceInfo); |
| 21592 | bool emitFlipUint8IntAP(SourceInfo); |
| 21593 | bool emitFlipUint8IntAPS(SourceInfo); |
| 21594 | bool emitFlipUint8Bool(SourceInfo); |
| 21595 | bool emitFlipUint8FixedPoint(SourceInfo); |
| 21596 | bool emitFlipUint8Ptr(SourceInfo); |
| 21597 | bool emitFlipUint8MemberPtr(SourceInfo); |
| 21598 | bool emitFlipUint8Float(SourceInfo); |
| 21599 | bool emitFlipUint8Reflect(SourceInfo); |
| 21600 | bool emitFlipSint16Sint8(SourceInfo); |
| 21601 | bool emitFlipSint16Uint8(SourceInfo); |
| 21602 | bool emitFlipSint16Sint16(SourceInfo); |
| 21603 | bool emitFlipSint16Uint16(SourceInfo); |
| 21604 | bool emitFlipSint16Sint32(SourceInfo); |
| 21605 | bool emitFlipSint16Uint32(SourceInfo); |
| 21606 | bool emitFlipSint16Sint64(SourceInfo); |
| 21607 | bool emitFlipSint16Uint64(SourceInfo); |
| 21608 | bool emitFlipSint16IntAP(SourceInfo); |
| 21609 | bool emitFlipSint16IntAPS(SourceInfo); |
| 21610 | bool emitFlipSint16Bool(SourceInfo); |
| 21611 | bool emitFlipSint16FixedPoint(SourceInfo); |
| 21612 | bool emitFlipSint16Ptr(SourceInfo); |
| 21613 | bool emitFlipSint16MemberPtr(SourceInfo); |
| 21614 | bool emitFlipSint16Float(SourceInfo); |
| 21615 | bool emitFlipSint16Reflect(SourceInfo); |
| 21616 | bool emitFlipUint16Sint8(SourceInfo); |
| 21617 | bool emitFlipUint16Uint8(SourceInfo); |
| 21618 | bool emitFlipUint16Sint16(SourceInfo); |
| 21619 | bool emitFlipUint16Uint16(SourceInfo); |
| 21620 | bool emitFlipUint16Sint32(SourceInfo); |
| 21621 | bool emitFlipUint16Uint32(SourceInfo); |
| 21622 | bool emitFlipUint16Sint64(SourceInfo); |
| 21623 | bool emitFlipUint16Uint64(SourceInfo); |
| 21624 | bool emitFlipUint16IntAP(SourceInfo); |
| 21625 | bool emitFlipUint16IntAPS(SourceInfo); |
| 21626 | bool emitFlipUint16Bool(SourceInfo); |
| 21627 | bool emitFlipUint16FixedPoint(SourceInfo); |
| 21628 | bool emitFlipUint16Ptr(SourceInfo); |
| 21629 | bool emitFlipUint16MemberPtr(SourceInfo); |
| 21630 | bool emitFlipUint16Float(SourceInfo); |
| 21631 | bool emitFlipUint16Reflect(SourceInfo); |
| 21632 | bool emitFlipSint32Sint8(SourceInfo); |
| 21633 | bool emitFlipSint32Uint8(SourceInfo); |
| 21634 | bool emitFlipSint32Sint16(SourceInfo); |
| 21635 | bool emitFlipSint32Uint16(SourceInfo); |
| 21636 | bool emitFlipSint32Sint32(SourceInfo); |
| 21637 | bool emitFlipSint32Uint32(SourceInfo); |
| 21638 | bool emitFlipSint32Sint64(SourceInfo); |
| 21639 | bool emitFlipSint32Uint64(SourceInfo); |
| 21640 | bool emitFlipSint32IntAP(SourceInfo); |
| 21641 | bool emitFlipSint32IntAPS(SourceInfo); |
| 21642 | bool emitFlipSint32Bool(SourceInfo); |
| 21643 | bool emitFlipSint32FixedPoint(SourceInfo); |
| 21644 | bool emitFlipSint32Ptr(SourceInfo); |
| 21645 | bool emitFlipSint32MemberPtr(SourceInfo); |
| 21646 | bool emitFlipSint32Float(SourceInfo); |
| 21647 | bool emitFlipSint32Reflect(SourceInfo); |
| 21648 | bool emitFlipUint32Sint8(SourceInfo); |
| 21649 | bool emitFlipUint32Uint8(SourceInfo); |
| 21650 | bool emitFlipUint32Sint16(SourceInfo); |
| 21651 | bool emitFlipUint32Uint16(SourceInfo); |
| 21652 | bool emitFlipUint32Sint32(SourceInfo); |
| 21653 | bool emitFlipUint32Uint32(SourceInfo); |
| 21654 | bool emitFlipUint32Sint64(SourceInfo); |
| 21655 | bool emitFlipUint32Uint64(SourceInfo); |
| 21656 | bool emitFlipUint32IntAP(SourceInfo); |
| 21657 | bool emitFlipUint32IntAPS(SourceInfo); |
| 21658 | bool emitFlipUint32Bool(SourceInfo); |
| 21659 | bool emitFlipUint32FixedPoint(SourceInfo); |
| 21660 | bool emitFlipUint32Ptr(SourceInfo); |
| 21661 | bool emitFlipUint32MemberPtr(SourceInfo); |
| 21662 | bool emitFlipUint32Float(SourceInfo); |
| 21663 | bool emitFlipUint32Reflect(SourceInfo); |
| 21664 | bool emitFlipSint64Sint8(SourceInfo); |
| 21665 | bool emitFlipSint64Uint8(SourceInfo); |
| 21666 | bool emitFlipSint64Sint16(SourceInfo); |
| 21667 | bool emitFlipSint64Uint16(SourceInfo); |
| 21668 | bool emitFlipSint64Sint32(SourceInfo); |
| 21669 | bool emitFlipSint64Uint32(SourceInfo); |
| 21670 | bool emitFlipSint64Sint64(SourceInfo); |
| 21671 | bool emitFlipSint64Uint64(SourceInfo); |
| 21672 | bool emitFlipSint64IntAP(SourceInfo); |
| 21673 | bool emitFlipSint64IntAPS(SourceInfo); |
| 21674 | bool emitFlipSint64Bool(SourceInfo); |
| 21675 | bool emitFlipSint64FixedPoint(SourceInfo); |
| 21676 | bool emitFlipSint64Ptr(SourceInfo); |
| 21677 | bool emitFlipSint64MemberPtr(SourceInfo); |
| 21678 | bool emitFlipSint64Float(SourceInfo); |
| 21679 | bool emitFlipSint64Reflect(SourceInfo); |
| 21680 | bool emitFlipUint64Sint8(SourceInfo); |
| 21681 | bool emitFlipUint64Uint8(SourceInfo); |
| 21682 | bool emitFlipUint64Sint16(SourceInfo); |
| 21683 | bool emitFlipUint64Uint16(SourceInfo); |
| 21684 | bool emitFlipUint64Sint32(SourceInfo); |
| 21685 | bool emitFlipUint64Uint32(SourceInfo); |
| 21686 | bool emitFlipUint64Sint64(SourceInfo); |
| 21687 | bool emitFlipUint64Uint64(SourceInfo); |
| 21688 | bool emitFlipUint64IntAP(SourceInfo); |
| 21689 | bool emitFlipUint64IntAPS(SourceInfo); |
| 21690 | bool emitFlipUint64Bool(SourceInfo); |
| 21691 | bool emitFlipUint64FixedPoint(SourceInfo); |
| 21692 | bool emitFlipUint64Ptr(SourceInfo); |
| 21693 | bool emitFlipUint64MemberPtr(SourceInfo); |
| 21694 | bool emitFlipUint64Float(SourceInfo); |
| 21695 | bool emitFlipUint64Reflect(SourceInfo); |
| 21696 | bool emitFlipIntAPSint8(SourceInfo); |
| 21697 | bool emitFlipIntAPUint8(SourceInfo); |
| 21698 | bool emitFlipIntAPSint16(SourceInfo); |
| 21699 | bool emitFlipIntAPUint16(SourceInfo); |
| 21700 | bool emitFlipIntAPSint32(SourceInfo); |
| 21701 | bool emitFlipIntAPUint32(SourceInfo); |
| 21702 | bool emitFlipIntAPSint64(SourceInfo); |
| 21703 | bool emitFlipIntAPUint64(SourceInfo); |
| 21704 | bool emitFlipIntAPIntAP(SourceInfo); |
| 21705 | bool emitFlipIntAPIntAPS(SourceInfo); |
| 21706 | bool emitFlipIntAPBool(SourceInfo); |
| 21707 | bool emitFlipIntAPFixedPoint(SourceInfo); |
| 21708 | bool emitFlipIntAPPtr(SourceInfo); |
| 21709 | bool emitFlipIntAPMemberPtr(SourceInfo); |
| 21710 | bool emitFlipIntAPFloat(SourceInfo); |
| 21711 | bool emitFlipIntAPReflect(SourceInfo); |
| 21712 | bool emitFlipIntAPSSint8(SourceInfo); |
| 21713 | bool emitFlipIntAPSUint8(SourceInfo); |
| 21714 | bool emitFlipIntAPSSint16(SourceInfo); |
| 21715 | bool emitFlipIntAPSUint16(SourceInfo); |
| 21716 | bool emitFlipIntAPSSint32(SourceInfo); |
| 21717 | bool emitFlipIntAPSUint32(SourceInfo); |
| 21718 | bool emitFlipIntAPSSint64(SourceInfo); |
| 21719 | bool emitFlipIntAPSUint64(SourceInfo); |
| 21720 | bool emitFlipIntAPSIntAP(SourceInfo); |
| 21721 | bool emitFlipIntAPSIntAPS(SourceInfo); |
| 21722 | bool emitFlipIntAPSBool(SourceInfo); |
| 21723 | bool emitFlipIntAPSFixedPoint(SourceInfo); |
| 21724 | bool emitFlipIntAPSPtr(SourceInfo); |
| 21725 | bool emitFlipIntAPSMemberPtr(SourceInfo); |
| 21726 | bool emitFlipIntAPSFloat(SourceInfo); |
| 21727 | bool emitFlipIntAPSReflect(SourceInfo); |
| 21728 | bool emitFlipBoolSint8(SourceInfo); |
| 21729 | bool emitFlipBoolUint8(SourceInfo); |
| 21730 | bool emitFlipBoolSint16(SourceInfo); |
| 21731 | bool emitFlipBoolUint16(SourceInfo); |
| 21732 | bool emitFlipBoolSint32(SourceInfo); |
| 21733 | bool emitFlipBoolUint32(SourceInfo); |
| 21734 | bool emitFlipBoolSint64(SourceInfo); |
| 21735 | bool emitFlipBoolUint64(SourceInfo); |
| 21736 | bool emitFlipBoolIntAP(SourceInfo); |
| 21737 | bool emitFlipBoolIntAPS(SourceInfo); |
| 21738 | bool emitFlipBoolBool(SourceInfo); |
| 21739 | bool emitFlipBoolFixedPoint(SourceInfo); |
| 21740 | bool emitFlipBoolPtr(SourceInfo); |
| 21741 | bool emitFlipBoolMemberPtr(SourceInfo); |
| 21742 | bool emitFlipBoolFloat(SourceInfo); |
| 21743 | bool emitFlipBoolReflect(SourceInfo); |
| 21744 | bool emitFlipFixedPointSint8(SourceInfo); |
| 21745 | bool emitFlipFixedPointUint8(SourceInfo); |
| 21746 | bool emitFlipFixedPointSint16(SourceInfo); |
| 21747 | bool emitFlipFixedPointUint16(SourceInfo); |
| 21748 | bool emitFlipFixedPointSint32(SourceInfo); |
| 21749 | bool emitFlipFixedPointUint32(SourceInfo); |
| 21750 | bool emitFlipFixedPointSint64(SourceInfo); |
| 21751 | bool emitFlipFixedPointUint64(SourceInfo); |
| 21752 | bool emitFlipFixedPointIntAP(SourceInfo); |
| 21753 | bool emitFlipFixedPointIntAPS(SourceInfo); |
| 21754 | bool emitFlipFixedPointBool(SourceInfo); |
| 21755 | bool emitFlipFixedPointFixedPoint(SourceInfo); |
| 21756 | bool emitFlipFixedPointPtr(SourceInfo); |
| 21757 | bool emitFlipFixedPointMemberPtr(SourceInfo); |
| 21758 | bool emitFlipFixedPointFloat(SourceInfo); |
| 21759 | bool emitFlipFixedPointReflect(SourceInfo); |
| 21760 | bool emitFlipPtrSint8(SourceInfo); |
| 21761 | bool emitFlipPtrUint8(SourceInfo); |
| 21762 | bool emitFlipPtrSint16(SourceInfo); |
| 21763 | bool emitFlipPtrUint16(SourceInfo); |
| 21764 | bool emitFlipPtrSint32(SourceInfo); |
| 21765 | bool emitFlipPtrUint32(SourceInfo); |
| 21766 | bool emitFlipPtrSint64(SourceInfo); |
| 21767 | bool emitFlipPtrUint64(SourceInfo); |
| 21768 | bool emitFlipPtrIntAP(SourceInfo); |
| 21769 | bool emitFlipPtrIntAPS(SourceInfo); |
| 21770 | bool emitFlipPtrBool(SourceInfo); |
| 21771 | bool emitFlipPtrFixedPoint(SourceInfo); |
| 21772 | bool emitFlipPtrPtr(SourceInfo); |
| 21773 | bool emitFlipPtrMemberPtr(SourceInfo); |
| 21774 | bool emitFlipPtrFloat(SourceInfo); |
| 21775 | bool emitFlipPtrReflect(SourceInfo); |
| 21776 | bool emitFlipMemberPtrSint8(SourceInfo); |
| 21777 | bool emitFlipMemberPtrUint8(SourceInfo); |
| 21778 | bool emitFlipMemberPtrSint16(SourceInfo); |
| 21779 | bool emitFlipMemberPtrUint16(SourceInfo); |
| 21780 | bool emitFlipMemberPtrSint32(SourceInfo); |
| 21781 | bool emitFlipMemberPtrUint32(SourceInfo); |
| 21782 | bool emitFlipMemberPtrSint64(SourceInfo); |
| 21783 | bool emitFlipMemberPtrUint64(SourceInfo); |
| 21784 | bool emitFlipMemberPtrIntAP(SourceInfo); |
| 21785 | bool emitFlipMemberPtrIntAPS(SourceInfo); |
| 21786 | bool emitFlipMemberPtrBool(SourceInfo); |
| 21787 | bool emitFlipMemberPtrFixedPoint(SourceInfo); |
| 21788 | bool emitFlipMemberPtrPtr(SourceInfo); |
| 21789 | bool emitFlipMemberPtrMemberPtr(SourceInfo); |
| 21790 | bool emitFlipMemberPtrFloat(SourceInfo); |
| 21791 | bool emitFlipMemberPtrReflect(SourceInfo); |
| 21792 | bool emitFlipFloatSint8(SourceInfo); |
| 21793 | bool emitFlipFloatUint8(SourceInfo); |
| 21794 | bool emitFlipFloatSint16(SourceInfo); |
| 21795 | bool emitFlipFloatUint16(SourceInfo); |
| 21796 | bool emitFlipFloatSint32(SourceInfo); |
| 21797 | bool emitFlipFloatUint32(SourceInfo); |
| 21798 | bool emitFlipFloatSint64(SourceInfo); |
| 21799 | bool emitFlipFloatUint64(SourceInfo); |
| 21800 | bool emitFlipFloatIntAP(SourceInfo); |
| 21801 | bool emitFlipFloatIntAPS(SourceInfo); |
| 21802 | bool emitFlipFloatBool(SourceInfo); |
| 21803 | bool emitFlipFloatFixedPoint(SourceInfo); |
| 21804 | bool emitFlipFloatPtr(SourceInfo); |
| 21805 | bool emitFlipFloatMemberPtr(SourceInfo); |
| 21806 | bool emitFlipFloatFloat(SourceInfo); |
| 21807 | bool emitFlipFloatReflect(SourceInfo); |
| 21808 | bool emitFlipReflectSint8(SourceInfo); |
| 21809 | bool emitFlipReflectUint8(SourceInfo); |
| 21810 | bool emitFlipReflectSint16(SourceInfo); |
| 21811 | bool emitFlipReflectUint16(SourceInfo); |
| 21812 | bool emitFlipReflectSint32(SourceInfo); |
| 21813 | bool emitFlipReflectUint32(SourceInfo); |
| 21814 | bool emitFlipReflectSint64(SourceInfo); |
| 21815 | bool emitFlipReflectUint64(SourceInfo); |
| 21816 | bool emitFlipReflectIntAP(SourceInfo); |
| 21817 | bool emitFlipReflectIntAPS(SourceInfo); |
| 21818 | bool emitFlipReflectBool(SourceInfo); |
| 21819 | bool emitFlipReflectFixedPoint(SourceInfo); |
| 21820 | bool emitFlipReflectPtr(SourceInfo); |
| 21821 | bool emitFlipReflectMemberPtr(SourceInfo); |
| 21822 | bool emitFlipReflectFloat(SourceInfo); |
| 21823 | bool emitFlipReflectReflect(SourceInfo); |
| 21824 | #endif |
| 21825 | #if defined(GET_EVAL_PROTO) || defined(GET_LINK_PROTO) |
| 21826 | [[nodiscard]] bool emitFlip(PrimType, PrimType, SourceInfo I); |
| 21827 | #endif |
| 21828 | #if defined(GET_EVAL_IMPL) || defined(GET_LINK_IMPL) |
| 21829 | bool |
| 21830 | #if defined(GET_EVAL_IMPL) |
| 21831 | EvalEmitter |
| 21832 | #else |
| 21833 | ByteCodeEmitter |
| 21834 | #endif |
| 21835 | ::emitFlip(PrimType T0, PrimType T1, SourceInfo I) { |
| 21836 | switch (T0) { |
| 21837 | case PT_Sint8: |
| 21838 | switch (T1) { |
| 21839 | case PT_Sint8: |
| 21840 | return emitFlipSint8Sint8(I); |
| 21841 | case PT_Uint8: |
| 21842 | return emitFlipSint8Uint8(I); |
| 21843 | case PT_Sint16: |
| 21844 | return emitFlipSint8Sint16(I); |
| 21845 | case PT_Uint16: |
| 21846 | return emitFlipSint8Uint16(I); |
| 21847 | case PT_Sint32: |
| 21848 | return emitFlipSint8Sint32(I); |
| 21849 | case PT_Uint32: |
| 21850 | return emitFlipSint8Uint32(I); |
| 21851 | case PT_Sint64: |
| 21852 | return emitFlipSint8Sint64(I); |
| 21853 | case PT_Uint64: |
| 21854 | return emitFlipSint8Uint64(I); |
| 21855 | case PT_IntAP: |
| 21856 | return emitFlipSint8IntAP(I); |
| 21857 | case PT_IntAPS: |
| 21858 | return emitFlipSint8IntAPS(I); |
| 21859 | case PT_Bool: |
| 21860 | return emitFlipSint8Bool(I); |
| 21861 | case PT_FixedPoint: |
| 21862 | return emitFlipSint8FixedPoint(I); |
| 21863 | case PT_Ptr: |
| 21864 | return emitFlipSint8Ptr(I); |
| 21865 | case PT_MemberPtr: |
| 21866 | return emitFlipSint8MemberPtr(I); |
| 21867 | case PT_Float: |
| 21868 | return emitFlipSint8Float(I); |
| 21869 | case PT_Reflect: |
| 21870 | return emitFlipSint8Reflect(I); |
| 21871 | } |
| 21872 | llvm_unreachable("invalid enum value" ); |
| 21873 | case PT_Uint8: |
| 21874 | switch (T1) { |
| 21875 | case PT_Sint8: |
| 21876 | return emitFlipUint8Sint8(I); |
| 21877 | case PT_Uint8: |
| 21878 | return emitFlipUint8Uint8(I); |
| 21879 | case PT_Sint16: |
| 21880 | return emitFlipUint8Sint16(I); |
| 21881 | case PT_Uint16: |
| 21882 | return emitFlipUint8Uint16(I); |
| 21883 | case PT_Sint32: |
| 21884 | return emitFlipUint8Sint32(I); |
| 21885 | case PT_Uint32: |
| 21886 | return emitFlipUint8Uint32(I); |
| 21887 | case PT_Sint64: |
| 21888 | return emitFlipUint8Sint64(I); |
| 21889 | case PT_Uint64: |
| 21890 | return emitFlipUint8Uint64(I); |
| 21891 | case PT_IntAP: |
| 21892 | return emitFlipUint8IntAP(I); |
| 21893 | case PT_IntAPS: |
| 21894 | return emitFlipUint8IntAPS(I); |
| 21895 | case PT_Bool: |
| 21896 | return emitFlipUint8Bool(I); |
| 21897 | case PT_FixedPoint: |
| 21898 | return emitFlipUint8FixedPoint(I); |
| 21899 | case PT_Ptr: |
| 21900 | return emitFlipUint8Ptr(I); |
| 21901 | case PT_MemberPtr: |
| 21902 | return emitFlipUint8MemberPtr(I); |
| 21903 | case PT_Float: |
| 21904 | return emitFlipUint8Float(I); |
| 21905 | case PT_Reflect: |
| 21906 | return emitFlipUint8Reflect(I); |
| 21907 | } |
| 21908 | llvm_unreachable("invalid enum value" ); |
| 21909 | case PT_Sint16: |
| 21910 | switch (T1) { |
| 21911 | case PT_Sint8: |
| 21912 | return emitFlipSint16Sint8(I); |
| 21913 | case PT_Uint8: |
| 21914 | return emitFlipSint16Uint8(I); |
| 21915 | case PT_Sint16: |
| 21916 | return emitFlipSint16Sint16(I); |
| 21917 | case PT_Uint16: |
| 21918 | return emitFlipSint16Uint16(I); |
| 21919 | case PT_Sint32: |
| 21920 | return emitFlipSint16Sint32(I); |
| 21921 | case PT_Uint32: |
| 21922 | return emitFlipSint16Uint32(I); |
| 21923 | case PT_Sint64: |
| 21924 | return emitFlipSint16Sint64(I); |
| 21925 | case PT_Uint64: |
| 21926 | return emitFlipSint16Uint64(I); |
| 21927 | case PT_IntAP: |
| 21928 | return emitFlipSint16IntAP(I); |
| 21929 | case PT_IntAPS: |
| 21930 | return emitFlipSint16IntAPS(I); |
| 21931 | case PT_Bool: |
| 21932 | return emitFlipSint16Bool(I); |
| 21933 | case PT_FixedPoint: |
| 21934 | return emitFlipSint16FixedPoint(I); |
| 21935 | case PT_Ptr: |
| 21936 | return emitFlipSint16Ptr(I); |
| 21937 | case PT_MemberPtr: |
| 21938 | return emitFlipSint16MemberPtr(I); |
| 21939 | case PT_Float: |
| 21940 | return emitFlipSint16Float(I); |
| 21941 | case PT_Reflect: |
| 21942 | return emitFlipSint16Reflect(I); |
| 21943 | } |
| 21944 | llvm_unreachable("invalid enum value" ); |
| 21945 | case PT_Uint16: |
| 21946 | switch (T1) { |
| 21947 | case PT_Sint8: |
| 21948 | return emitFlipUint16Sint8(I); |
| 21949 | case PT_Uint8: |
| 21950 | return emitFlipUint16Uint8(I); |
| 21951 | case PT_Sint16: |
| 21952 | return emitFlipUint16Sint16(I); |
| 21953 | case PT_Uint16: |
| 21954 | return emitFlipUint16Uint16(I); |
| 21955 | case PT_Sint32: |
| 21956 | return emitFlipUint16Sint32(I); |
| 21957 | case PT_Uint32: |
| 21958 | return emitFlipUint16Uint32(I); |
| 21959 | case PT_Sint64: |
| 21960 | return emitFlipUint16Sint64(I); |
| 21961 | case PT_Uint64: |
| 21962 | return emitFlipUint16Uint64(I); |
| 21963 | case PT_IntAP: |
| 21964 | return emitFlipUint16IntAP(I); |
| 21965 | case PT_IntAPS: |
| 21966 | return emitFlipUint16IntAPS(I); |
| 21967 | case PT_Bool: |
| 21968 | return emitFlipUint16Bool(I); |
| 21969 | case PT_FixedPoint: |
| 21970 | return emitFlipUint16FixedPoint(I); |
| 21971 | case PT_Ptr: |
| 21972 | return emitFlipUint16Ptr(I); |
| 21973 | case PT_MemberPtr: |
| 21974 | return emitFlipUint16MemberPtr(I); |
| 21975 | case PT_Float: |
| 21976 | return emitFlipUint16Float(I); |
| 21977 | case PT_Reflect: |
| 21978 | return emitFlipUint16Reflect(I); |
| 21979 | } |
| 21980 | llvm_unreachable("invalid enum value" ); |
| 21981 | case PT_Sint32: |
| 21982 | switch (T1) { |
| 21983 | case PT_Sint8: |
| 21984 | return emitFlipSint32Sint8(I); |
| 21985 | case PT_Uint8: |
| 21986 | return emitFlipSint32Uint8(I); |
| 21987 | case PT_Sint16: |
| 21988 | return emitFlipSint32Sint16(I); |
| 21989 | case PT_Uint16: |
| 21990 | return emitFlipSint32Uint16(I); |
| 21991 | case PT_Sint32: |
| 21992 | return emitFlipSint32Sint32(I); |
| 21993 | case PT_Uint32: |
| 21994 | return emitFlipSint32Uint32(I); |
| 21995 | case PT_Sint64: |
| 21996 | return emitFlipSint32Sint64(I); |
| 21997 | case PT_Uint64: |
| 21998 | return emitFlipSint32Uint64(I); |
| 21999 | case PT_IntAP: |
| 22000 | return emitFlipSint32IntAP(I); |
| 22001 | case PT_IntAPS: |
| 22002 | return emitFlipSint32IntAPS(I); |
| 22003 | case PT_Bool: |
| 22004 | return emitFlipSint32Bool(I); |
| 22005 | case PT_FixedPoint: |
| 22006 | return emitFlipSint32FixedPoint(I); |
| 22007 | case PT_Ptr: |
| 22008 | return emitFlipSint32Ptr(I); |
| 22009 | case PT_MemberPtr: |
| 22010 | return emitFlipSint32MemberPtr(I); |
| 22011 | case PT_Float: |
| 22012 | return emitFlipSint32Float(I); |
| 22013 | case PT_Reflect: |
| 22014 | return emitFlipSint32Reflect(I); |
| 22015 | } |
| 22016 | llvm_unreachable("invalid enum value" ); |
| 22017 | case PT_Uint32: |
| 22018 | switch (T1) { |
| 22019 | case PT_Sint8: |
| 22020 | return emitFlipUint32Sint8(I); |
| 22021 | case PT_Uint8: |
| 22022 | return emitFlipUint32Uint8(I); |
| 22023 | case PT_Sint16: |
| 22024 | return emitFlipUint32Sint16(I); |
| 22025 | case PT_Uint16: |
| 22026 | return emitFlipUint32Uint16(I); |
| 22027 | case PT_Sint32: |
| 22028 | return emitFlipUint32Sint32(I); |
| 22029 | case PT_Uint32: |
| 22030 | return emitFlipUint32Uint32(I); |
| 22031 | case PT_Sint64: |
| 22032 | return emitFlipUint32Sint64(I); |
| 22033 | case PT_Uint64: |
| 22034 | return emitFlipUint32Uint64(I); |
| 22035 | case PT_IntAP: |
| 22036 | return emitFlipUint32IntAP(I); |
| 22037 | case PT_IntAPS: |
| 22038 | return emitFlipUint32IntAPS(I); |
| 22039 | case PT_Bool: |
| 22040 | return emitFlipUint32Bool(I); |
| 22041 | case PT_FixedPoint: |
| 22042 | return emitFlipUint32FixedPoint(I); |
| 22043 | case PT_Ptr: |
| 22044 | return emitFlipUint32Ptr(I); |
| 22045 | case PT_MemberPtr: |
| 22046 | return emitFlipUint32MemberPtr(I); |
| 22047 | case PT_Float: |
| 22048 | return emitFlipUint32Float(I); |
| 22049 | case PT_Reflect: |
| 22050 | return emitFlipUint32Reflect(I); |
| 22051 | } |
| 22052 | llvm_unreachable("invalid enum value" ); |
| 22053 | case PT_Sint64: |
| 22054 | switch (T1) { |
| 22055 | case PT_Sint8: |
| 22056 | return emitFlipSint64Sint8(I); |
| 22057 | case PT_Uint8: |
| 22058 | return emitFlipSint64Uint8(I); |
| 22059 | case PT_Sint16: |
| 22060 | return emitFlipSint64Sint16(I); |
| 22061 | case PT_Uint16: |
| 22062 | return emitFlipSint64Uint16(I); |
| 22063 | case PT_Sint32: |
| 22064 | return emitFlipSint64Sint32(I); |
| 22065 | case PT_Uint32: |
| 22066 | return emitFlipSint64Uint32(I); |
| 22067 | case PT_Sint64: |
| 22068 | return emitFlipSint64Sint64(I); |
| 22069 | case PT_Uint64: |
| 22070 | return emitFlipSint64Uint64(I); |
| 22071 | case PT_IntAP: |
| 22072 | return emitFlipSint64IntAP(I); |
| 22073 | case PT_IntAPS: |
| 22074 | return emitFlipSint64IntAPS(I); |
| 22075 | case PT_Bool: |
| 22076 | return emitFlipSint64Bool(I); |
| 22077 | case PT_FixedPoint: |
| 22078 | return emitFlipSint64FixedPoint(I); |
| 22079 | case PT_Ptr: |
| 22080 | return emitFlipSint64Ptr(I); |
| 22081 | case PT_MemberPtr: |
| 22082 | return emitFlipSint64MemberPtr(I); |
| 22083 | case PT_Float: |
| 22084 | return emitFlipSint64Float(I); |
| 22085 | case PT_Reflect: |
| 22086 | return emitFlipSint64Reflect(I); |
| 22087 | } |
| 22088 | llvm_unreachable("invalid enum value" ); |
| 22089 | case PT_Uint64: |
| 22090 | switch (T1) { |
| 22091 | case PT_Sint8: |
| 22092 | return emitFlipUint64Sint8(I); |
| 22093 | case PT_Uint8: |
| 22094 | return emitFlipUint64Uint8(I); |
| 22095 | case PT_Sint16: |
| 22096 | return emitFlipUint64Sint16(I); |
| 22097 | case PT_Uint16: |
| 22098 | return emitFlipUint64Uint16(I); |
| 22099 | case PT_Sint32: |
| 22100 | return emitFlipUint64Sint32(I); |
| 22101 | case PT_Uint32: |
| 22102 | return emitFlipUint64Uint32(I); |
| 22103 | case PT_Sint64: |
| 22104 | return emitFlipUint64Sint64(I); |
| 22105 | case PT_Uint64: |
| 22106 | return emitFlipUint64Uint64(I); |
| 22107 | case PT_IntAP: |
| 22108 | return emitFlipUint64IntAP(I); |
| 22109 | case PT_IntAPS: |
| 22110 | return emitFlipUint64IntAPS(I); |
| 22111 | case PT_Bool: |
| 22112 | return emitFlipUint64Bool(I); |
| 22113 | case PT_FixedPoint: |
| 22114 | return emitFlipUint64FixedPoint(I); |
| 22115 | case PT_Ptr: |
| 22116 | return emitFlipUint64Ptr(I); |
| 22117 | case PT_MemberPtr: |
| 22118 | return emitFlipUint64MemberPtr(I); |
| 22119 | case PT_Float: |
| 22120 | return emitFlipUint64Float(I); |
| 22121 | case PT_Reflect: |
| 22122 | return emitFlipUint64Reflect(I); |
| 22123 | } |
| 22124 | llvm_unreachable("invalid enum value" ); |
| 22125 | case PT_IntAP: |
| 22126 | switch (T1) { |
| 22127 | case PT_Sint8: |
| 22128 | return emitFlipIntAPSint8(I); |
| 22129 | case PT_Uint8: |
| 22130 | return emitFlipIntAPUint8(I); |
| 22131 | case PT_Sint16: |
| 22132 | return emitFlipIntAPSint16(I); |
| 22133 | case PT_Uint16: |
| 22134 | return emitFlipIntAPUint16(I); |
| 22135 | case PT_Sint32: |
| 22136 | return emitFlipIntAPSint32(I); |
| 22137 | case PT_Uint32: |
| 22138 | return emitFlipIntAPUint32(I); |
| 22139 | case PT_Sint64: |
| 22140 | return emitFlipIntAPSint64(I); |
| 22141 | case PT_Uint64: |
| 22142 | return emitFlipIntAPUint64(I); |
| 22143 | case PT_IntAP: |
| 22144 | return emitFlipIntAPIntAP(I); |
| 22145 | case PT_IntAPS: |
| 22146 | return emitFlipIntAPIntAPS(I); |
| 22147 | case PT_Bool: |
| 22148 | return emitFlipIntAPBool(I); |
| 22149 | case PT_FixedPoint: |
| 22150 | return emitFlipIntAPFixedPoint(I); |
| 22151 | case PT_Ptr: |
| 22152 | return emitFlipIntAPPtr(I); |
| 22153 | case PT_MemberPtr: |
| 22154 | return emitFlipIntAPMemberPtr(I); |
| 22155 | case PT_Float: |
| 22156 | return emitFlipIntAPFloat(I); |
| 22157 | case PT_Reflect: |
| 22158 | return emitFlipIntAPReflect(I); |
| 22159 | } |
| 22160 | llvm_unreachable("invalid enum value" ); |
| 22161 | case PT_IntAPS: |
| 22162 | switch (T1) { |
| 22163 | case PT_Sint8: |
| 22164 | return emitFlipIntAPSSint8(I); |
| 22165 | case PT_Uint8: |
| 22166 | return emitFlipIntAPSUint8(I); |
| 22167 | case PT_Sint16: |
| 22168 | return emitFlipIntAPSSint16(I); |
| 22169 | case PT_Uint16: |
| 22170 | return emitFlipIntAPSUint16(I); |
| 22171 | case PT_Sint32: |
| 22172 | return emitFlipIntAPSSint32(I); |
| 22173 | case PT_Uint32: |
| 22174 | return emitFlipIntAPSUint32(I); |
| 22175 | case PT_Sint64: |
| 22176 | return emitFlipIntAPSSint64(I); |
| 22177 | case PT_Uint64: |
| 22178 | return emitFlipIntAPSUint64(I); |
| 22179 | case PT_IntAP: |
| 22180 | return emitFlipIntAPSIntAP(I); |
| 22181 | case PT_IntAPS: |
| 22182 | return emitFlipIntAPSIntAPS(I); |
| 22183 | case PT_Bool: |
| 22184 | return emitFlipIntAPSBool(I); |
| 22185 | case PT_FixedPoint: |
| 22186 | return emitFlipIntAPSFixedPoint(I); |
| 22187 | case PT_Ptr: |
| 22188 | return emitFlipIntAPSPtr(I); |
| 22189 | case PT_MemberPtr: |
| 22190 | return emitFlipIntAPSMemberPtr(I); |
| 22191 | case PT_Float: |
| 22192 | return emitFlipIntAPSFloat(I); |
| 22193 | case PT_Reflect: |
| 22194 | return emitFlipIntAPSReflect(I); |
| 22195 | } |
| 22196 | llvm_unreachable("invalid enum value" ); |
| 22197 | case PT_Bool: |
| 22198 | switch (T1) { |
| 22199 | case PT_Sint8: |
| 22200 | return emitFlipBoolSint8(I); |
| 22201 | case PT_Uint8: |
| 22202 | return emitFlipBoolUint8(I); |
| 22203 | case PT_Sint16: |
| 22204 | return emitFlipBoolSint16(I); |
| 22205 | case PT_Uint16: |
| 22206 | return emitFlipBoolUint16(I); |
| 22207 | case PT_Sint32: |
| 22208 | return emitFlipBoolSint32(I); |
| 22209 | case PT_Uint32: |
| 22210 | return emitFlipBoolUint32(I); |
| 22211 | case PT_Sint64: |
| 22212 | return emitFlipBoolSint64(I); |
| 22213 | case PT_Uint64: |
| 22214 | return emitFlipBoolUint64(I); |
| 22215 | case PT_IntAP: |
| 22216 | return emitFlipBoolIntAP(I); |
| 22217 | case PT_IntAPS: |
| 22218 | return emitFlipBoolIntAPS(I); |
| 22219 | case PT_Bool: |
| 22220 | return emitFlipBoolBool(I); |
| 22221 | case PT_FixedPoint: |
| 22222 | return emitFlipBoolFixedPoint(I); |
| 22223 | case PT_Ptr: |
| 22224 | return emitFlipBoolPtr(I); |
| 22225 | case PT_MemberPtr: |
| 22226 | return emitFlipBoolMemberPtr(I); |
| 22227 | case PT_Float: |
| 22228 | return emitFlipBoolFloat(I); |
| 22229 | case PT_Reflect: |
| 22230 | return emitFlipBoolReflect(I); |
| 22231 | } |
| 22232 | llvm_unreachable("invalid enum value" ); |
| 22233 | case PT_FixedPoint: |
| 22234 | switch (T1) { |
| 22235 | case PT_Sint8: |
| 22236 | return emitFlipFixedPointSint8(I); |
| 22237 | case PT_Uint8: |
| 22238 | return emitFlipFixedPointUint8(I); |
| 22239 | case PT_Sint16: |
| 22240 | return emitFlipFixedPointSint16(I); |
| 22241 | case PT_Uint16: |
| 22242 | return emitFlipFixedPointUint16(I); |
| 22243 | case PT_Sint32: |
| 22244 | return emitFlipFixedPointSint32(I); |
| 22245 | case PT_Uint32: |
| 22246 | return emitFlipFixedPointUint32(I); |
| 22247 | case PT_Sint64: |
| 22248 | return emitFlipFixedPointSint64(I); |
| 22249 | case PT_Uint64: |
| 22250 | return emitFlipFixedPointUint64(I); |
| 22251 | case PT_IntAP: |
| 22252 | return emitFlipFixedPointIntAP(I); |
| 22253 | case PT_IntAPS: |
| 22254 | return emitFlipFixedPointIntAPS(I); |
| 22255 | case PT_Bool: |
| 22256 | return emitFlipFixedPointBool(I); |
| 22257 | case PT_FixedPoint: |
| 22258 | return emitFlipFixedPointFixedPoint(I); |
| 22259 | case PT_Ptr: |
| 22260 | return emitFlipFixedPointPtr(I); |
| 22261 | case PT_MemberPtr: |
| 22262 | return emitFlipFixedPointMemberPtr(I); |
| 22263 | case PT_Float: |
| 22264 | return emitFlipFixedPointFloat(I); |
| 22265 | case PT_Reflect: |
| 22266 | return emitFlipFixedPointReflect(I); |
| 22267 | } |
| 22268 | llvm_unreachable("invalid enum value" ); |
| 22269 | case PT_Ptr: |
| 22270 | switch (T1) { |
| 22271 | case PT_Sint8: |
| 22272 | return emitFlipPtrSint8(I); |
| 22273 | case PT_Uint8: |
| 22274 | return emitFlipPtrUint8(I); |
| 22275 | case PT_Sint16: |
| 22276 | return emitFlipPtrSint16(I); |
| 22277 | case PT_Uint16: |
| 22278 | return emitFlipPtrUint16(I); |
| 22279 | case PT_Sint32: |
| 22280 | return emitFlipPtrSint32(I); |
| 22281 | case PT_Uint32: |
| 22282 | return emitFlipPtrUint32(I); |
| 22283 | case PT_Sint64: |
| 22284 | return emitFlipPtrSint64(I); |
| 22285 | case PT_Uint64: |
| 22286 | return emitFlipPtrUint64(I); |
| 22287 | case PT_IntAP: |
| 22288 | return emitFlipPtrIntAP(I); |
| 22289 | case PT_IntAPS: |
| 22290 | return emitFlipPtrIntAPS(I); |
| 22291 | case PT_Bool: |
| 22292 | return emitFlipPtrBool(I); |
| 22293 | case PT_FixedPoint: |
| 22294 | return emitFlipPtrFixedPoint(I); |
| 22295 | case PT_Ptr: |
| 22296 | return emitFlipPtrPtr(I); |
| 22297 | case PT_MemberPtr: |
| 22298 | return emitFlipPtrMemberPtr(I); |
| 22299 | case PT_Float: |
| 22300 | return emitFlipPtrFloat(I); |
| 22301 | case PT_Reflect: |
| 22302 | return emitFlipPtrReflect(I); |
| 22303 | } |
| 22304 | llvm_unreachable("invalid enum value" ); |
| 22305 | case PT_MemberPtr: |
| 22306 | switch (T1) { |
| 22307 | case PT_Sint8: |
| 22308 | return emitFlipMemberPtrSint8(I); |
| 22309 | case PT_Uint8: |
| 22310 | return emitFlipMemberPtrUint8(I); |
| 22311 | case PT_Sint16: |
| 22312 | return emitFlipMemberPtrSint16(I); |
| 22313 | case PT_Uint16: |
| 22314 | return emitFlipMemberPtrUint16(I); |
| 22315 | case PT_Sint32: |
| 22316 | return emitFlipMemberPtrSint32(I); |
| 22317 | case PT_Uint32: |
| 22318 | return emitFlipMemberPtrUint32(I); |
| 22319 | case PT_Sint64: |
| 22320 | return emitFlipMemberPtrSint64(I); |
| 22321 | case PT_Uint64: |
| 22322 | return emitFlipMemberPtrUint64(I); |
| 22323 | case PT_IntAP: |
| 22324 | return emitFlipMemberPtrIntAP(I); |
| 22325 | case PT_IntAPS: |
| 22326 | return emitFlipMemberPtrIntAPS(I); |
| 22327 | case PT_Bool: |
| 22328 | return emitFlipMemberPtrBool(I); |
| 22329 | case PT_FixedPoint: |
| 22330 | return emitFlipMemberPtrFixedPoint(I); |
| 22331 | case PT_Ptr: |
| 22332 | return emitFlipMemberPtrPtr(I); |
| 22333 | case PT_MemberPtr: |
| 22334 | return emitFlipMemberPtrMemberPtr(I); |
| 22335 | case PT_Float: |
| 22336 | return emitFlipMemberPtrFloat(I); |
| 22337 | case PT_Reflect: |
| 22338 | return emitFlipMemberPtrReflect(I); |
| 22339 | } |
| 22340 | llvm_unreachable("invalid enum value" ); |
| 22341 | case PT_Float: |
| 22342 | switch (T1) { |
| 22343 | case PT_Sint8: |
| 22344 | return emitFlipFloatSint8(I); |
| 22345 | case PT_Uint8: |
| 22346 | return emitFlipFloatUint8(I); |
| 22347 | case PT_Sint16: |
| 22348 | return emitFlipFloatSint16(I); |
| 22349 | case PT_Uint16: |
| 22350 | return emitFlipFloatUint16(I); |
| 22351 | case PT_Sint32: |
| 22352 | return emitFlipFloatSint32(I); |
| 22353 | case PT_Uint32: |
| 22354 | return emitFlipFloatUint32(I); |
| 22355 | case PT_Sint64: |
| 22356 | return emitFlipFloatSint64(I); |
| 22357 | case PT_Uint64: |
| 22358 | return emitFlipFloatUint64(I); |
| 22359 | case PT_IntAP: |
| 22360 | return emitFlipFloatIntAP(I); |
| 22361 | case PT_IntAPS: |
| 22362 | return emitFlipFloatIntAPS(I); |
| 22363 | case PT_Bool: |
| 22364 | return emitFlipFloatBool(I); |
| 22365 | case PT_FixedPoint: |
| 22366 | return emitFlipFloatFixedPoint(I); |
| 22367 | case PT_Ptr: |
| 22368 | return emitFlipFloatPtr(I); |
| 22369 | case PT_MemberPtr: |
| 22370 | return emitFlipFloatMemberPtr(I); |
| 22371 | case PT_Float: |
| 22372 | return emitFlipFloatFloat(I); |
| 22373 | case PT_Reflect: |
| 22374 | return emitFlipFloatReflect(I); |
| 22375 | } |
| 22376 | llvm_unreachable("invalid enum value" ); |
| 22377 | case PT_Reflect: |
| 22378 | switch (T1) { |
| 22379 | case PT_Sint8: |
| 22380 | return emitFlipReflectSint8(I); |
| 22381 | case PT_Uint8: |
| 22382 | return emitFlipReflectUint8(I); |
| 22383 | case PT_Sint16: |
| 22384 | return emitFlipReflectSint16(I); |
| 22385 | case PT_Uint16: |
| 22386 | return emitFlipReflectUint16(I); |
| 22387 | case PT_Sint32: |
| 22388 | return emitFlipReflectSint32(I); |
| 22389 | case PT_Uint32: |
| 22390 | return emitFlipReflectUint32(I); |
| 22391 | case PT_Sint64: |
| 22392 | return emitFlipReflectSint64(I); |
| 22393 | case PT_Uint64: |
| 22394 | return emitFlipReflectUint64(I); |
| 22395 | case PT_IntAP: |
| 22396 | return emitFlipReflectIntAP(I); |
| 22397 | case PT_IntAPS: |
| 22398 | return emitFlipReflectIntAPS(I); |
| 22399 | case PT_Bool: |
| 22400 | return emitFlipReflectBool(I); |
| 22401 | case PT_FixedPoint: |
| 22402 | return emitFlipReflectFixedPoint(I); |
| 22403 | case PT_Ptr: |
| 22404 | return emitFlipReflectPtr(I); |
| 22405 | case PT_MemberPtr: |
| 22406 | return emitFlipReflectMemberPtr(I); |
| 22407 | case PT_Float: |
| 22408 | return emitFlipReflectFloat(I); |
| 22409 | case PT_Reflect: |
| 22410 | return emitFlipReflectReflect(I); |
| 22411 | } |
| 22412 | llvm_unreachable("invalid enum value" ); |
| 22413 | } |
| 22414 | llvm_unreachable("invalid enum value" ); |
| 22415 | } |
| 22416 | #endif |
| 22417 | #ifdef GET_LINK_IMPL |
| 22418 | bool ByteCodeEmitter::emitFlipSint8Sint8(SourceInfo L) { |
| 22419 | return emitOp<>(OP_FlipSint8Sint8, L); |
| 22420 | } |
| 22421 | bool ByteCodeEmitter::emitFlipSint8Uint8(SourceInfo L) { |
| 22422 | return emitOp<>(OP_FlipSint8Uint8, L); |
| 22423 | } |
| 22424 | bool ByteCodeEmitter::emitFlipSint8Sint16(SourceInfo L) { |
| 22425 | return emitOp<>(OP_FlipSint8Sint16, L); |
| 22426 | } |
| 22427 | bool ByteCodeEmitter::emitFlipSint8Uint16(SourceInfo L) { |
| 22428 | return emitOp<>(OP_FlipSint8Uint16, L); |
| 22429 | } |
| 22430 | bool ByteCodeEmitter::emitFlipSint8Sint32(SourceInfo L) { |
| 22431 | return emitOp<>(OP_FlipSint8Sint32, L); |
| 22432 | } |
| 22433 | bool ByteCodeEmitter::emitFlipSint8Uint32(SourceInfo L) { |
| 22434 | return emitOp<>(OP_FlipSint8Uint32, L); |
| 22435 | } |
| 22436 | bool ByteCodeEmitter::emitFlipSint8Sint64(SourceInfo L) { |
| 22437 | return emitOp<>(OP_FlipSint8Sint64, L); |
| 22438 | } |
| 22439 | bool ByteCodeEmitter::emitFlipSint8Uint64(SourceInfo L) { |
| 22440 | return emitOp<>(OP_FlipSint8Uint64, L); |
| 22441 | } |
| 22442 | bool ByteCodeEmitter::emitFlipSint8IntAP(SourceInfo L) { |
| 22443 | return emitOp<>(OP_FlipSint8IntAP, L); |
| 22444 | } |
| 22445 | bool ByteCodeEmitter::emitFlipSint8IntAPS(SourceInfo L) { |
| 22446 | return emitOp<>(OP_FlipSint8IntAPS, L); |
| 22447 | } |
| 22448 | bool ByteCodeEmitter::emitFlipSint8Bool(SourceInfo L) { |
| 22449 | return emitOp<>(OP_FlipSint8Bool, L); |
| 22450 | } |
| 22451 | bool ByteCodeEmitter::emitFlipSint8FixedPoint(SourceInfo L) { |
| 22452 | return emitOp<>(OP_FlipSint8FixedPoint, L); |
| 22453 | } |
| 22454 | bool ByteCodeEmitter::emitFlipSint8Ptr(SourceInfo L) { |
| 22455 | return emitOp<>(OP_FlipSint8Ptr, L); |
| 22456 | } |
| 22457 | bool ByteCodeEmitter::emitFlipSint8MemberPtr(SourceInfo L) { |
| 22458 | return emitOp<>(OP_FlipSint8MemberPtr, L); |
| 22459 | } |
| 22460 | bool ByteCodeEmitter::emitFlipSint8Float(SourceInfo L) { |
| 22461 | return emitOp<>(OP_FlipSint8Float, L); |
| 22462 | } |
| 22463 | bool ByteCodeEmitter::emitFlipSint8Reflect(SourceInfo L) { |
| 22464 | return emitOp<>(OP_FlipSint8Reflect, L); |
| 22465 | } |
| 22466 | bool ByteCodeEmitter::emitFlipUint8Sint8(SourceInfo L) { |
| 22467 | return emitOp<>(OP_FlipUint8Sint8, L); |
| 22468 | } |
| 22469 | bool ByteCodeEmitter::emitFlipUint8Uint8(SourceInfo L) { |
| 22470 | return emitOp<>(OP_FlipUint8Uint8, L); |
| 22471 | } |
| 22472 | bool ByteCodeEmitter::emitFlipUint8Sint16(SourceInfo L) { |
| 22473 | return emitOp<>(OP_FlipUint8Sint16, L); |
| 22474 | } |
| 22475 | bool ByteCodeEmitter::emitFlipUint8Uint16(SourceInfo L) { |
| 22476 | return emitOp<>(OP_FlipUint8Uint16, L); |
| 22477 | } |
| 22478 | bool ByteCodeEmitter::emitFlipUint8Sint32(SourceInfo L) { |
| 22479 | return emitOp<>(OP_FlipUint8Sint32, L); |
| 22480 | } |
| 22481 | bool ByteCodeEmitter::emitFlipUint8Uint32(SourceInfo L) { |
| 22482 | return emitOp<>(OP_FlipUint8Uint32, L); |
| 22483 | } |
| 22484 | bool ByteCodeEmitter::emitFlipUint8Sint64(SourceInfo L) { |
| 22485 | return emitOp<>(OP_FlipUint8Sint64, L); |
| 22486 | } |
| 22487 | bool ByteCodeEmitter::emitFlipUint8Uint64(SourceInfo L) { |
| 22488 | return emitOp<>(OP_FlipUint8Uint64, L); |
| 22489 | } |
| 22490 | bool ByteCodeEmitter::emitFlipUint8IntAP(SourceInfo L) { |
| 22491 | return emitOp<>(OP_FlipUint8IntAP, L); |
| 22492 | } |
| 22493 | bool ByteCodeEmitter::emitFlipUint8IntAPS(SourceInfo L) { |
| 22494 | return emitOp<>(OP_FlipUint8IntAPS, L); |
| 22495 | } |
| 22496 | bool ByteCodeEmitter::emitFlipUint8Bool(SourceInfo L) { |
| 22497 | return emitOp<>(OP_FlipUint8Bool, L); |
| 22498 | } |
| 22499 | bool ByteCodeEmitter::emitFlipUint8FixedPoint(SourceInfo L) { |
| 22500 | return emitOp<>(OP_FlipUint8FixedPoint, L); |
| 22501 | } |
| 22502 | bool ByteCodeEmitter::emitFlipUint8Ptr(SourceInfo L) { |
| 22503 | return emitOp<>(OP_FlipUint8Ptr, L); |
| 22504 | } |
| 22505 | bool ByteCodeEmitter::emitFlipUint8MemberPtr(SourceInfo L) { |
| 22506 | return emitOp<>(OP_FlipUint8MemberPtr, L); |
| 22507 | } |
| 22508 | bool ByteCodeEmitter::emitFlipUint8Float(SourceInfo L) { |
| 22509 | return emitOp<>(OP_FlipUint8Float, L); |
| 22510 | } |
| 22511 | bool ByteCodeEmitter::emitFlipUint8Reflect(SourceInfo L) { |
| 22512 | return emitOp<>(OP_FlipUint8Reflect, L); |
| 22513 | } |
| 22514 | bool ByteCodeEmitter::emitFlipSint16Sint8(SourceInfo L) { |
| 22515 | return emitOp<>(OP_FlipSint16Sint8, L); |
| 22516 | } |
| 22517 | bool ByteCodeEmitter::emitFlipSint16Uint8(SourceInfo L) { |
| 22518 | return emitOp<>(OP_FlipSint16Uint8, L); |
| 22519 | } |
| 22520 | bool ByteCodeEmitter::emitFlipSint16Sint16(SourceInfo L) { |
| 22521 | return emitOp<>(OP_FlipSint16Sint16, L); |
| 22522 | } |
| 22523 | bool ByteCodeEmitter::emitFlipSint16Uint16(SourceInfo L) { |
| 22524 | return emitOp<>(OP_FlipSint16Uint16, L); |
| 22525 | } |
| 22526 | bool ByteCodeEmitter::emitFlipSint16Sint32(SourceInfo L) { |
| 22527 | return emitOp<>(OP_FlipSint16Sint32, L); |
| 22528 | } |
| 22529 | bool ByteCodeEmitter::emitFlipSint16Uint32(SourceInfo L) { |
| 22530 | return emitOp<>(OP_FlipSint16Uint32, L); |
| 22531 | } |
| 22532 | bool ByteCodeEmitter::emitFlipSint16Sint64(SourceInfo L) { |
| 22533 | return emitOp<>(OP_FlipSint16Sint64, L); |
| 22534 | } |
| 22535 | bool ByteCodeEmitter::emitFlipSint16Uint64(SourceInfo L) { |
| 22536 | return emitOp<>(OP_FlipSint16Uint64, L); |
| 22537 | } |
| 22538 | bool ByteCodeEmitter::emitFlipSint16IntAP(SourceInfo L) { |
| 22539 | return emitOp<>(OP_FlipSint16IntAP, L); |
| 22540 | } |
| 22541 | bool ByteCodeEmitter::emitFlipSint16IntAPS(SourceInfo L) { |
| 22542 | return emitOp<>(OP_FlipSint16IntAPS, L); |
| 22543 | } |
| 22544 | bool ByteCodeEmitter::emitFlipSint16Bool(SourceInfo L) { |
| 22545 | return emitOp<>(OP_FlipSint16Bool, L); |
| 22546 | } |
| 22547 | bool ByteCodeEmitter::emitFlipSint16FixedPoint(SourceInfo L) { |
| 22548 | return emitOp<>(OP_FlipSint16FixedPoint, L); |
| 22549 | } |
| 22550 | bool ByteCodeEmitter::emitFlipSint16Ptr(SourceInfo L) { |
| 22551 | return emitOp<>(OP_FlipSint16Ptr, L); |
| 22552 | } |
| 22553 | bool ByteCodeEmitter::emitFlipSint16MemberPtr(SourceInfo L) { |
| 22554 | return emitOp<>(OP_FlipSint16MemberPtr, L); |
| 22555 | } |
| 22556 | bool ByteCodeEmitter::emitFlipSint16Float(SourceInfo L) { |
| 22557 | return emitOp<>(OP_FlipSint16Float, L); |
| 22558 | } |
| 22559 | bool ByteCodeEmitter::emitFlipSint16Reflect(SourceInfo L) { |
| 22560 | return emitOp<>(OP_FlipSint16Reflect, L); |
| 22561 | } |
| 22562 | bool ByteCodeEmitter::emitFlipUint16Sint8(SourceInfo L) { |
| 22563 | return emitOp<>(OP_FlipUint16Sint8, L); |
| 22564 | } |
| 22565 | bool ByteCodeEmitter::emitFlipUint16Uint8(SourceInfo L) { |
| 22566 | return emitOp<>(OP_FlipUint16Uint8, L); |
| 22567 | } |
| 22568 | bool ByteCodeEmitter::emitFlipUint16Sint16(SourceInfo L) { |
| 22569 | return emitOp<>(OP_FlipUint16Sint16, L); |
| 22570 | } |
| 22571 | bool ByteCodeEmitter::emitFlipUint16Uint16(SourceInfo L) { |
| 22572 | return emitOp<>(OP_FlipUint16Uint16, L); |
| 22573 | } |
| 22574 | bool ByteCodeEmitter::emitFlipUint16Sint32(SourceInfo L) { |
| 22575 | return emitOp<>(OP_FlipUint16Sint32, L); |
| 22576 | } |
| 22577 | bool ByteCodeEmitter::emitFlipUint16Uint32(SourceInfo L) { |
| 22578 | return emitOp<>(OP_FlipUint16Uint32, L); |
| 22579 | } |
| 22580 | bool ByteCodeEmitter::emitFlipUint16Sint64(SourceInfo L) { |
| 22581 | return emitOp<>(OP_FlipUint16Sint64, L); |
| 22582 | } |
| 22583 | bool ByteCodeEmitter::emitFlipUint16Uint64(SourceInfo L) { |
| 22584 | return emitOp<>(OP_FlipUint16Uint64, L); |
| 22585 | } |
| 22586 | bool ByteCodeEmitter::emitFlipUint16IntAP(SourceInfo L) { |
| 22587 | return emitOp<>(OP_FlipUint16IntAP, L); |
| 22588 | } |
| 22589 | bool ByteCodeEmitter::emitFlipUint16IntAPS(SourceInfo L) { |
| 22590 | return emitOp<>(OP_FlipUint16IntAPS, L); |
| 22591 | } |
| 22592 | bool ByteCodeEmitter::emitFlipUint16Bool(SourceInfo L) { |
| 22593 | return emitOp<>(OP_FlipUint16Bool, L); |
| 22594 | } |
| 22595 | bool ByteCodeEmitter::emitFlipUint16FixedPoint(SourceInfo L) { |
| 22596 | return emitOp<>(OP_FlipUint16FixedPoint, L); |
| 22597 | } |
| 22598 | bool ByteCodeEmitter::emitFlipUint16Ptr(SourceInfo L) { |
| 22599 | return emitOp<>(OP_FlipUint16Ptr, L); |
| 22600 | } |
| 22601 | bool ByteCodeEmitter::emitFlipUint16MemberPtr(SourceInfo L) { |
| 22602 | return emitOp<>(OP_FlipUint16MemberPtr, L); |
| 22603 | } |
| 22604 | bool ByteCodeEmitter::emitFlipUint16Float(SourceInfo L) { |
| 22605 | return emitOp<>(OP_FlipUint16Float, L); |
| 22606 | } |
| 22607 | bool ByteCodeEmitter::emitFlipUint16Reflect(SourceInfo L) { |
| 22608 | return emitOp<>(OP_FlipUint16Reflect, L); |
| 22609 | } |
| 22610 | bool ByteCodeEmitter::emitFlipSint32Sint8(SourceInfo L) { |
| 22611 | return emitOp<>(OP_FlipSint32Sint8, L); |
| 22612 | } |
| 22613 | bool ByteCodeEmitter::emitFlipSint32Uint8(SourceInfo L) { |
| 22614 | return emitOp<>(OP_FlipSint32Uint8, L); |
| 22615 | } |
| 22616 | bool ByteCodeEmitter::emitFlipSint32Sint16(SourceInfo L) { |
| 22617 | return emitOp<>(OP_FlipSint32Sint16, L); |
| 22618 | } |
| 22619 | bool ByteCodeEmitter::emitFlipSint32Uint16(SourceInfo L) { |
| 22620 | return emitOp<>(OP_FlipSint32Uint16, L); |
| 22621 | } |
| 22622 | bool ByteCodeEmitter::emitFlipSint32Sint32(SourceInfo L) { |
| 22623 | return emitOp<>(OP_FlipSint32Sint32, L); |
| 22624 | } |
| 22625 | bool ByteCodeEmitter::emitFlipSint32Uint32(SourceInfo L) { |
| 22626 | return emitOp<>(OP_FlipSint32Uint32, L); |
| 22627 | } |
| 22628 | bool ByteCodeEmitter::emitFlipSint32Sint64(SourceInfo L) { |
| 22629 | return emitOp<>(OP_FlipSint32Sint64, L); |
| 22630 | } |
| 22631 | bool ByteCodeEmitter::emitFlipSint32Uint64(SourceInfo L) { |
| 22632 | return emitOp<>(OP_FlipSint32Uint64, L); |
| 22633 | } |
| 22634 | bool ByteCodeEmitter::emitFlipSint32IntAP(SourceInfo L) { |
| 22635 | return emitOp<>(OP_FlipSint32IntAP, L); |
| 22636 | } |
| 22637 | bool ByteCodeEmitter::emitFlipSint32IntAPS(SourceInfo L) { |
| 22638 | return emitOp<>(OP_FlipSint32IntAPS, L); |
| 22639 | } |
| 22640 | bool ByteCodeEmitter::emitFlipSint32Bool(SourceInfo L) { |
| 22641 | return emitOp<>(OP_FlipSint32Bool, L); |
| 22642 | } |
| 22643 | bool ByteCodeEmitter::emitFlipSint32FixedPoint(SourceInfo L) { |
| 22644 | return emitOp<>(OP_FlipSint32FixedPoint, L); |
| 22645 | } |
| 22646 | bool ByteCodeEmitter::emitFlipSint32Ptr(SourceInfo L) { |
| 22647 | return emitOp<>(OP_FlipSint32Ptr, L); |
| 22648 | } |
| 22649 | bool ByteCodeEmitter::emitFlipSint32MemberPtr(SourceInfo L) { |
| 22650 | return emitOp<>(OP_FlipSint32MemberPtr, L); |
| 22651 | } |
| 22652 | bool ByteCodeEmitter::emitFlipSint32Float(SourceInfo L) { |
| 22653 | return emitOp<>(OP_FlipSint32Float, L); |
| 22654 | } |
| 22655 | bool ByteCodeEmitter::emitFlipSint32Reflect(SourceInfo L) { |
| 22656 | return emitOp<>(OP_FlipSint32Reflect, L); |
| 22657 | } |
| 22658 | bool ByteCodeEmitter::emitFlipUint32Sint8(SourceInfo L) { |
| 22659 | return emitOp<>(OP_FlipUint32Sint8, L); |
| 22660 | } |
| 22661 | bool ByteCodeEmitter::emitFlipUint32Uint8(SourceInfo L) { |
| 22662 | return emitOp<>(OP_FlipUint32Uint8, L); |
| 22663 | } |
| 22664 | bool ByteCodeEmitter::emitFlipUint32Sint16(SourceInfo L) { |
| 22665 | return emitOp<>(OP_FlipUint32Sint16, L); |
| 22666 | } |
| 22667 | bool ByteCodeEmitter::emitFlipUint32Uint16(SourceInfo L) { |
| 22668 | return emitOp<>(OP_FlipUint32Uint16, L); |
| 22669 | } |
| 22670 | bool ByteCodeEmitter::emitFlipUint32Sint32(SourceInfo L) { |
| 22671 | return emitOp<>(OP_FlipUint32Sint32, L); |
| 22672 | } |
| 22673 | bool ByteCodeEmitter::emitFlipUint32Uint32(SourceInfo L) { |
| 22674 | return emitOp<>(OP_FlipUint32Uint32, L); |
| 22675 | } |
| 22676 | bool ByteCodeEmitter::emitFlipUint32Sint64(SourceInfo L) { |
| 22677 | return emitOp<>(OP_FlipUint32Sint64, L); |
| 22678 | } |
| 22679 | bool ByteCodeEmitter::emitFlipUint32Uint64(SourceInfo L) { |
| 22680 | return emitOp<>(OP_FlipUint32Uint64, L); |
| 22681 | } |
| 22682 | bool ByteCodeEmitter::emitFlipUint32IntAP(SourceInfo L) { |
| 22683 | return emitOp<>(OP_FlipUint32IntAP, L); |
| 22684 | } |
| 22685 | bool ByteCodeEmitter::emitFlipUint32IntAPS(SourceInfo L) { |
| 22686 | return emitOp<>(OP_FlipUint32IntAPS, L); |
| 22687 | } |
| 22688 | bool ByteCodeEmitter::emitFlipUint32Bool(SourceInfo L) { |
| 22689 | return emitOp<>(OP_FlipUint32Bool, L); |
| 22690 | } |
| 22691 | bool ByteCodeEmitter::emitFlipUint32FixedPoint(SourceInfo L) { |
| 22692 | return emitOp<>(OP_FlipUint32FixedPoint, L); |
| 22693 | } |
| 22694 | bool ByteCodeEmitter::emitFlipUint32Ptr(SourceInfo L) { |
| 22695 | return emitOp<>(OP_FlipUint32Ptr, L); |
| 22696 | } |
| 22697 | bool ByteCodeEmitter::emitFlipUint32MemberPtr(SourceInfo L) { |
| 22698 | return emitOp<>(OP_FlipUint32MemberPtr, L); |
| 22699 | } |
| 22700 | bool ByteCodeEmitter::emitFlipUint32Float(SourceInfo L) { |
| 22701 | return emitOp<>(OP_FlipUint32Float, L); |
| 22702 | } |
| 22703 | bool ByteCodeEmitter::emitFlipUint32Reflect(SourceInfo L) { |
| 22704 | return emitOp<>(OP_FlipUint32Reflect, L); |
| 22705 | } |
| 22706 | bool ByteCodeEmitter::emitFlipSint64Sint8(SourceInfo L) { |
| 22707 | return emitOp<>(OP_FlipSint64Sint8, L); |
| 22708 | } |
| 22709 | bool ByteCodeEmitter::emitFlipSint64Uint8(SourceInfo L) { |
| 22710 | return emitOp<>(OP_FlipSint64Uint8, L); |
| 22711 | } |
| 22712 | bool ByteCodeEmitter::emitFlipSint64Sint16(SourceInfo L) { |
| 22713 | return emitOp<>(OP_FlipSint64Sint16, L); |
| 22714 | } |
| 22715 | bool ByteCodeEmitter::emitFlipSint64Uint16(SourceInfo L) { |
| 22716 | return emitOp<>(OP_FlipSint64Uint16, L); |
| 22717 | } |
| 22718 | bool ByteCodeEmitter::emitFlipSint64Sint32(SourceInfo L) { |
| 22719 | return emitOp<>(OP_FlipSint64Sint32, L); |
| 22720 | } |
| 22721 | bool ByteCodeEmitter::emitFlipSint64Uint32(SourceInfo L) { |
| 22722 | return emitOp<>(OP_FlipSint64Uint32, L); |
| 22723 | } |
| 22724 | bool ByteCodeEmitter::emitFlipSint64Sint64(SourceInfo L) { |
| 22725 | return emitOp<>(OP_FlipSint64Sint64, L); |
| 22726 | } |
| 22727 | bool ByteCodeEmitter::emitFlipSint64Uint64(SourceInfo L) { |
| 22728 | return emitOp<>(OP_FlipSint64Uint64, L); |
| 22729 | } |
| 22730 | bool ByteCodeEmitter::emitFlipSint64IntAP(SourceInfo L) { |
| 22731 | return emitOp<>(OP_FlipSint64IntAP, L); |
| 22732 | } |
| 22733 | bool ByteCodeEmitter::emitFlipSint64IntAPS(SourceInfo L) { |
| 22734 | return emitOp<>(OP_FlipSint64IntAPS, L); |
| 22735 | } |
| 22736 | bool ByteCodeEmitter::emitFlipSint64Bool(SourceInfo L) { |
| 22737 | return emitOp<>(OP_FlipSint64Bool, L); |
| 22738 | } |
| 22739 | bool ByteCodeEmitter::emitFlipSint64FixedPoint(SourceInfo L) { |
| 22740 | return emitOp<>(OP_FlipSint64FixedPoint, L); |
| 22741 | } |
| 22742 | bool ByteCodeEmitter::emitFlipSint64Ptr(SourceInfo L) { |
| 22743 | return emitOp<>(OP_FlipSint64Ptr, L); |
| 22744 | } |
| 22745 | bool ByteCodeEmitter::emitFlipSint64MemberPtr(SourceInfo L) { |
| 22746 | return emitOp<>(OP_FlipSint64MemberPtr, L); |
| 22747 | } |
| 22748 | bool ByteCodeEmitter::emitFlipSint64Float(SourceInfo L) { |
| 22749 | return emitOp<>(OP_FlipSint64Float, L); |
| 22750 | } |
| 22751 | bool ByteCodeEmitter::emitFlipSint64Reflect(SourceInfo L) { |
| 22752 | return emitOp<>(OP_FlipSint64Reflect, L); |
| 22753 | } |
| 22754 | bool ByteCodeEmitter::emitFlipUint64Sint8(SourceInfo L) { |
| 22755 | return emitOp<>(OP_FlipUint64Sint8, L); |
| 22756 | } |
| 22757 | bool ByteCodeEmitter::emitFlipUint64Uint8(SourceInfo L) { |
| 22758 | return emitOp<>(OP_FlipUint64Uint8, L); |
| 22759 | } |
| 22760 | bool ByteCodeEmitter::emitFlipUint64Sint16(SourceInfo L) { |
| 22761 | return emitOp<>(OP_FlipUint64Sint16, L); |
| 22762 | } |
| 22763 | bool ByteCodeEmitter::emitFlipUint64Uint16(SourceInfo L) { |
| 22764 | return emitOp<>(OP_FlipUint64Uint16, L); |
| 22765 | } |
| 22766 | bool ByteCodeEmitter::emitFlipUint64Sint32(SourceInfo L) { |
| 22767 | return emitOp<>(OP_FlipUint64Sint32, L); |
| 22768 | } |
| 22769 | bool ByteCodeEmitter::emitFlipUint64Uint32(SourceInfo L) { |
| 22770 | return emitOp<>(OP_FlipUint64Uint32, L); |
| 22771 | } |
| 22772 | bool ByteCodeEmitter::emitFlipUint64Sint64(SourceInfo L) { |
| 22773 | return emitOp<>(OP_FlipUint64Sint64, L); |
| 22774 | } |
| 22775 | bool ByteCodeEmitter::emitFlipUint64Uint64(SourceInfo L) { |
| 22776 | return emitOp<>(OP_FlipUint64Uint64, L); |
| 22777 | } |
| 22778 | bool ByteCodeEmitter::emitFlipUint64IntAP(SourceInfo L) { |
| 22779 | return emitOp<>(OP_FlipUint64IntAP, L); |
| 22780 | } |
| 22781 | bool ByteCodeEmitter::emitFlipUint64IntAPS(SourceInfo L) { |
| 22782 | return emitOp<>(OP_FlipUint64IntAPS, L); |
| 22783 | } |
| 22784 | bool ByteCodeEmitter::emitFlipUint64Bool(SourceInfo L) { |
| 22785 | return emitOp<>(OP_FlipUint64Bool, L); |
| 22786 | } |
| 22787 | bool ByteCodeEmitter::emitFlipUint64FixedPoint(SourceInfo L) { |
| 22788 | return emitOp<>(OP_FlipUint64FixedPoint, L); |
| 22789 | } |
| 22790 | bool ByteCodeEmitter::emitFlipUint64Ptr(SourceInfo L) { |
| 22791 | return emitOp<>(OP_FlipUint64Ptr, L); |
| 22792 | } |
| 22793 | bool ByteCodeEmitter::emitFlipUint64MemberPtr(SourceInfo L) { |
| 22794 | return emitOp<>(OP_FlipUint64MemberPtr, L); |
| 22795 | } |
| 22796 | bool ByteCodeEmitter::emitFlipUint64Float(SourceInfo L) { |
| 22797 | return emitOp<>(OP_FlipUint64Float, L); |
| 22798 | } |
| 22799 | bool ByteCodeEmitter::emitFlipUint64Reflect(SourceInfo L) { |
| 22800 | return emitOp<>(OP_FlipUint64Reflect, L); |
| 22801 | } |
| 22802 | bool ByteCodeEmitter::emitFlipIntAPSint8(SourceInfo L) { |
| 22803 | return emitOp<>(OP_FlipIntAPSint8, L); |
| 22804 | } |
| 22805 | bool ByteCodeEmitter::emitFlipIntAPUint8(SourceInfo L) { |
| 22806 | return emitOp<>(OP_FlipIntAPUint8, L); |
| 22807 | } |
| 22808 | bool ByteCodeEmitter::emitFlipIntAPSint16(SourceInfo L) { |
| 22809 | return emitOp<>(OP_FlipIntAPSint16, L); |
| 22810 | } |
| 22811 | bool ByteCodeEmitter::emitFlipIntAPUint16(SourceInfo L) { |
| 22812 | return emitOp<>(OP_FlipIntAPUint16, L); |
| 22813 | } |
| 22814 | bool ByteCodeEmitter::emitFlipIntAPSint32(SourceInfo L) { |
| 22815 | return emitOp<>(OP_FlipIntAPSint32, L); |
| 22816 | } |
| 22817 | bool ByteCodeEmitter::emitFlipIntAPUint32(SourceInfo L) { |
| 22818 | return emitOp<>(OP_FlipIntAPUint32, L); |
| 22819 | } |
| 22820 | bool ByteCodeEmitter::emitFlipIntAPSint64(SourceInfo L) { |
| 22821 | return emitOp<>(OP_FlipIntAPSint64, L); |
| 22822 | } |
| 22823 | bool ByteCodeEmitter::emitFlipIntAPUint64(SourceInfo L) { |
| 22824 | return emitOp<>(OP_FlipIntAPUint64, L); |
| 22825 | } |
| 22826 | bool ByteCodeEmitter::emitFlipIntAPIntAP(SourceInfo L) { |
| 22827 | return emitOp<>(OP_FlipIntAPIntAP, L); |
| 22828 | } |
| 22829 | bool ByteCodeEmitter::emitFlipIntAPIntAPS(SourceInfo L) { |
| 22830 | return emitOp<>(OP_FlipIntAPIntAPS, L); |
| 22831 | } |
| 22832 | bool ByteCodeEmitter::emitFlipIntAPBool(SourceInfo L) { |
| 22833 | return emitOp<>(OP_FlipIntAPBool, L); |
| 22834 | } |
| 22835 | bool ByteCodeEmitter::emitFlipIntAPFixedPoint(SourceInfo L) { |
| 22836 | return emitOp<>(OP_FlipIntAPFixedPoint, L); |
| 22837 | } |
| 22838 | bool ByteCodeEmitter::emitFlipIntAPPtr(SourceInfo L) { |
| 22839 | return emitOp<>(OP_FlipIntAPPtr, L); |
| 22840 | } |
| 22841 | bool ByteCodeEmitter::emitFlipIntAPMemberPtr(SourceInfo L) { |
| 22842 | return emitOp<>(OP_FlipIntAPMemberPtr, L); |
| 22843 | } |
| 22844 | bool ByteCodeEmitter::emitFlipIntAPFloat(SourceInfo L) { |
| 22845 | return emitOp<>(OP_FlipIntAPFloat, L); |
| 22846 | } |
| 22847 | bool ByteCodeEmitter::emitFlipIntAPReflect(SourceInfo L) { |
| 22848 | return emitOp<>(OP_FlipIntAPReflect, L); |
| 22849 | } |
| 22850 | bool ByteCodeEmitter::emitFlipIntAPSSint8(SourceInfo L) { |
| 22851 | return emitOp<>(OP_FlipIntAPSSint8, L); |
| 22852 | } |
| 22853 | bool ByteCodeEmitter::emitFlipIntAPSUint8(SourceInfo L) { |
| 22854 | return emitOp<>(OP_FlipIntAPSUint8, L); |
| 22855 | } |
| 22856 | bool ByteCodeEmitter::emitFlipIntAPSSint16(SourceInfo L) { |
| 22857 | return emitOp<>(OP_FlipIntAPSSint16, L); |
| 22858 | } |
| 22859 | bool ByteCodeEmitter::emitFlipIntAPSUint16(SourceInfo L) { |
| 22860 | return emitOp<>(OP_FlipIntAPSUint16, L); |
| 22861 | } |
| 22862 | bool ByteCodeEmitter::emitFlipIntAPSSint32(SourceInfo L) { |
| 22863 | return emitOp<>(OP_FlipIntAPSSint32, L); |
| 22864 | } |
| 22865 | bool ByteCodeEmitter::emitFlipIntAPSUint32(SourceInfo L) { |
| 22866 | return emitOp<>(OP_FlipIntAPSUint32, L); |
| 22867 | } |
| 22868 | bool ByteCodeEmitter::emitFlipIntAPSSint64(SourceInfo L) { |
| 22869 | return emitOp<>(OP_FlipIntAPSSint64, L); |
| 22870 | } |
| 22871 | bool ByteCodeEmitter::emitFlipIntAPSUint64(SourceInfo L) { |
| 22872 | return emitOp<>(OP_FlipIntAPSUint64, L); |
| 22873 | } |
| 22874 | bool ByteCodeEmitter::emitFlipIntAPSIntAP(SourceInfo L) { |
| 22875 | return emitOp<>(OP_FlipIntAPSIntAP, L); |
| 22876 | } |
| 22877 | bool ByteCodeEmitter::emitFlipIntAPSIntAPS(SourceInfo L) { |
| 22878 | return emitOp<>(OP_FlipIntAPSIntAPS, L); |
| 22879 | } |
| 22880 | bool ByteCodeEmitter::emitFlipIntAPSBool(SourceInfo L) { |
| 22881 | return emitOp<>(OP_FlipIntAPSBool, L); |
| 22882 | } |
| 22883 | bool ByteCodeEmitter::emitFlipIntAPSFixedPoint(SourceInfo L) { |
| 22884 | return emitOp<>(OP_FlipIntAPSFixedPoint, L); |
| 22885 | } |
| 22886 | bool ByteCodeEmitter::emitFlipIntAPSPtr(SourceInfo L) { |
| 22887 | return emitOp<>(OP_FlipIntAPSPtr, L); |
| 22888 | } |
| 22889 | bool ByteCodeEmitter::emitFlipIntAPSMemberPtr(SourceInfo L) { |
| 22890 | return emitOp<>(OP_FlipIntAPSMemberPtr, L); |
| 22891 | } |
| 22892 | bool ByteCodeEmitter::emitFlipIntAPSFloat(SourceInfo L) { |
| 22893 | return emitOp<>(OP_FlipIntAPSFloat, L); |
| 22894 | } |
| 22895 | bool ByteCodeEmitter::emitFlipIntAPSReflect(SourceInfo L) { |
| 22896 | return emitOp<>(OP_FlipIntAPSReflect, L); |
| 22897 | } |
| 22898 | bool ByteCodeEmitter::emitFlipBoolSint8(SourceInfo L) { |
| 22899 | return emitOp<>(OP_FlipBoolSint8, L); |
| 22900 | } |
| 22901 | bool ByteCodeEmitter::emitFlipBoolUint8(SourceInfo L) { |
| 22902 | return emitOp<>(OP_FlipBoolUint8, L); |
| 22903 | } |
| 22904 | bool ByteCodeEmitter::emitFlipBoolSint16(SourceInfo L) { |
| 22905 | return emitOp<>(OP_FlipBoolSint16, L); |
| 22906 | } |
| 22907 | bool ByteCodeEmitter::emitFlipBoolUint16(SourceInfo L) { |
| 22908 | return emitOp<>(OP_FlipBoolUint16, L); |
| 22909 | } |
| 22910 | bool ByteCodeEmitter::emitFlipBoolSint32(SourceInfo L) { |
| 22911 | return emitOp<>(OP_FlipBoolSint32, L); |
| 22912 | } |
| 22913 | bool ByteCodeEmitter::emitFlipBoolUint32(SourceInfo L) { |
| 22914 | return emitOp<>(OP_FlipBoolUint32, L); |
| 22915 | } |
| 22916 | bool ByteCodeEmitter::emitFlipBoolSint64(SourceInfo L) { |
| 22917 | return emitOp<>(OP_FlipBoolSint64, L); |
| 22918 | } |
| 22919 | bool ByteCodeEmitter::emitFlipBoolUint64(SourceInfo L) { |
| 22920 | return emitOp<>(OP_FlipBoolUint64, L); |
| 22921 | } |
| 22922 | bool ByteCodeEmitter::emitFlipBoolIntAP(SourceInfo L) { |
| 22923 | return emitOp<>(OP_FlipBoolIntAP, L); |
| 22924 | } |
| 22925 | bool ByteCodeEmitter::emitFlipBoolIntAPS(SourceInfo L) { |
| 22926 | return emitOp<>(OP_FlipBoolIntAPS, L); |
| 22927 | } |
| 22928 | bool ByteCodeEmitter::emitFlipBoolBool(SourceInfo L) { |
| 22929 | return emitOp<>(OP_FlipBoolBool, L); |
| 22930 | } |
| 22931 | bool ByteCodeEmitter::emitFlipBoolFixedPoint(SourceInfo L) { |
| 22932 | return emitOp<>(OP_FlipBoolFixedPoint, L); |
| 22933 | } |
| 22934 | bool ByteCodeEmitter::emitFlipBoolPtr(SourceInfo L) { |
| 22935 | return emitOp<>(OP_FlipBoolPtr, L); |
| 22936 | } |
| 22937 | bool ByteCodeEmitter::emitFlipBoolMemberPtr(SourceInfo L) { |
| 22938 | return emitOp<>(OP_FlipBoolMemberPtr, L); |
| 22939 | } |
| 22940 | bool ByteCodeEmitter::emitFlipBoolFloat(SourceInfo L) { |
| 22941 | return emitOp<>(OP_FlipBoolFloat, L); |
| 22942 | } |
| 22943 | bool ByteCodeEmitter::emitFlipBoolReflect(SourceInfo L) { |
| 22944 | return emitOp<>(OP_FlipBoolReflect, L); |
| 22945 | } |
| 22946 | bool ByteCodeEmitter::emitFlipFixedPointSint8(SourceInfo L) { |
| 22947 | return emitOp<>(OP_FlipFixedPointSint8, L); |
| 22948 | } |
| 22949 | bool ByteCodeEmitter::emitFlipFixedPointUint8(SourceInfo L) { |
| 22950 | return emitOp<>(OP_FlipFixedPointUint8, L); |
| 22951 | } |
| 22952 | bool ByteCodeEmitter::emitFlipFixedPointSint16(SourceInfo L) { |
| 22953 | return emitOp<>(OP_FlipFixedPointSint16, L); |
| 22954 | } |
| 22955 | bool ByteCodeEmitter::emitFlipFixedPointUint16(SourceInfo L) { |
| 22956 | return emitOp<>(OP_FlipFixedPointUint16, L); |
| 22957 | } |
| 22958 | bool ByteCodeEmitter::emitFlipFixedPointSint32(SourceInfo L) { |
| 22959 | return emitOp<>(OP_FlipFixedPointSint32, L); |
| 22960 | } |
| 22961 | bool ByteCodeEmitter::emitFlipFixedPointUint32(SourceInfo L) { |
| 22962 | return emitOp<>(OP_FlipFixedPointUint32, L); |
| 22963 | } |
| 22964 | bool ByteCodeEmitter::emitFlipFixedPointSint64(SourceInfo L) { |
| 22965 | return emitOp<>(OP_FlipFixedPointSint64, L); |
| 22966 | } |
| 22967 | bool ByteCodeEmitter::emitFlipFixedPointUint64(SourceInfo L) { |
| 22968 | return emitOp<>(OP_FlipFixedPointUint64, L); |
| 22969 | } |
| 22970 | bool ByteCodeEmitter::emitFlipFixedPointIntAP(SourceInfo L) { |
| 22971 | return emitOp<>(OP_FlipFixedPointIntAP, L); |
| 22972 | } |
| 22973 | bool ByteCodeEmitter::emitFlipFixedPointIntAPS(SourceInfo L) { |
| 22974 | return emitOp<>(OP_FlipFixedPointIntAPS, L); |
| 22975 | } |
| 22976 | bool ByteCodeEmitter::emitFlipFixedPointBool(SourceInfo L) { |
| 22977 | return emitOp<>(OP_FlipFixedPointBool, L); |
| 22978 | } |
| 22979 | bool ByteCodeEmitter::emitFlipFixedPointFixedPoint(SourceInfo L) { |
| 22980 | return emitOp<>(OP_FlipFixedPointFixedPoint, L); |
| 22981 | } |
| 22982 | bool ByteCodeEmitter::emitFlipFixedPointPtr(SourceInfo L) { |
| 22983 | return emitOp<>(OP_FlipFixedPointPtr, L); |
| 22984 | } |
| 22985 | bool ByteCodeEmitter::emitFlipFixedPointMemberPtr(SourceInfo L) { |
| 22986 | return emitOp<>(OP_FlipFixedPointMemberPtr, L); |
| 22987 | } |
| 22988 | bool ByteCodeEmitter::emitFlipFixedPointFloat(SourceInfo L) { |
| 22989 | return emitOp<>(OP_FlipFixedPointFloat, L); |
| 22990 | } |
| 22991 | bool ByteCodeEmitter::emitFlipFixedPointReflect(SourceInfo L) { |
| 22992 | return emitOp<>(OP_FlipFixedPointReflect, L); |
| 22993 | } |
| 22994 | bool ByteCodeEmitter::emitFlipPtrSint8(SourceInfo L) { |
| 22995 | return emitOp<>(OP_FlipPtrSint8, L); |
| 22996 | } |
| 22997 | bool ByteCodeEmitter::emitFlipPtrUint8(SourceInfo L) { |
| 22998 | return emitOp<>(OP_FlipPtrUint8, L); |
| 22999 | } |
| 23000 | bool ByteCodeEmitter::emitFlipPtrSint16(SourceInfo L) { |
| 23001 | return emitOp<>(OP_FlipPtrSint16, L); |
| 23002 | } |
| 23003 | bool ByteCodeEmitter::emitFlipPtrUint16(SourceInfo L) { |
| 23004 | return emitOp<>(OP_FlipPtrUint16, L); |
| 23005 | } |
| 23006 | bool ByteCodeEmitter::emitFlipPtrSint32(SourceInfo L) { |
| 23007 | return emitOp<>(OP_FlipPtrSint32, L); |
| 23008 | } |
| 23009 | bool ByteCodeEmitter::emitFlipPtrUint32(SourceInfo L) { |
| 23010 | return emitOp<>(OP_FlipPtrUint32, L); |
| 23011 | } |
| 23012 | bool ByteCodeEmitter::emitFlipPtrSint64(SourceInfo L) { |
| 23013 | return emitOp<>(OP_FlipPtrSint64, L); |
| 23014 | } |
| 23015 | bool ByteCodeEmitter::emitFlipPtrUint64(SourceInfo L) { |
| 23016 | return emitOp<>(OP_FlipPtrUint64, L); |
| 23017 | } |
| 23018 | bool ByteCodeEmitter::emitFlipPtrIntAP(SourceInfo L) { |
| 23019 | return emitOp<>(OP_FlipPtrIntAP, L); |
| 23020 | } |
| 23021 | bool ByteCodeEmitter::emitFlipPtrIntAPS(SourceInfo L) { |
| 23022 | return emitOp<>(OP_FlipPtrIntAPS, L); |
| 23023 | } |
| 23024 | bool ByteCodeEmitter::emitFlipPtrBool(SourceInfo L) { |
| 23025 | return emitOp<>(OP_FlipPtrBool, L); |
| 23026 | } |
| 23027 | bool ByteCodeEmitter::emitFlipPtrFixedPoint(SourceInfo L) { |
| 23028 | return emitOp<>(OP_FlipPtrFixedPoint, L); |
| 23029 | } |
| 23030 | bool ByteCodeEmitter::emitFlipPtrPtr(SourceInfo L) { |
| 23031 | return emitOp<>(OP_FlipPtrPtr, L); |
| 23032 | } |
| 23033 | bool ByteCodeEmitter::emitFlipPtrMemberPtr(SourceInfo L) { |
| 23034 | return emitOp<>(OP_FlipPtrMemberPtr, L); |
| 23035 | } |
| 23036 | bool ByteCodeEmitter::emitFlipPtrFloat(SourceInfo L) { |
| 23037 | return emitOp<>(OP_FlipPtrFloat, L); |
| 23038 | } |
| 23039 | bool ByteCodeEmitter::emitFlipPtrReflect(SourceInfo L) { |
| 23040 | return emitOp<>(OP_FlipPtrReflect, L); |
| 23041 | } |
| 23042 | bool ByteCodeEmitter::emitFlipMemberPtrSint8(SourceInfo L) { |
| 23043 | return emitOp<>(OP_FlipMemberPtrSint8, L); |
| 23044 | } |
| 23045 | bool ByteCodeEmitter::emitFlipMemberPtrUint8(SourceInfo L) { |
| 23046 | return emitOp<>(OP_FlipMemberPtrUint8, L); |
| 23047 | } |
| 23048 | bool ByteCodeEmitter::emitFlipMemberPtrSint16(SourceInfo L) { |
| 23049 | return emitOp<>(OP_FlipMemberPtrSint16, L); |
| 23050 | } |
| 23051 | bool ByteCodeEmitter::emitFlipMemberPtrUint16(SourceInfo L) { |
| 23052 | return emitOp<>(OP_FlipMemberPtrUint16, L); |
| 23053 | } |
| 23054 | bool ByteCodeEmitter::emitFlipMemberPtrSint32(SourceInfo L) { |
| 23055 | return emitOp<>(OP_FlipMemberPtrSint32, L); |
| 23056 | } |
| 23057 | bool ByteCodeEmitter::emitFlipMemberPtrUint32(SourceInfo L) { |
| 23058 | return emitOp<>(OP_FlipMemberPtrUint32, L); |
| 23059 | } |
| 23060 | bool ByteCodeEmitter::emitFlipMemberPtrSint64(SourceInfo L) { |
| 23061 | return emitOp<>(OP_FlipMemberPtrSint64, L); |
| 23062 | } |
| 23063 | bool ByteCodeEmitter::emitFlipMemberPtrUint64(SourceInfo L) { |
| 23064 | return emitOp<>(OP_FlipMemberPtrUint64, L); |
| 23065 | } |
| 23066 | bool ByteCodeEmitter::emitFlipMemberPtrIntAP(SourceInfo L) { |
| 23067 | return emitOp<>(OP_FlipMemberPtrIntAP, L); |
| 23068 | } |
| 23069 | bool ByteCodeEmitter::emitFlipMemberPtrIntAPS(SourceInfo L) { |
| 23070 | return emitOp<>(OP_FlipMemberPtrIntAPS, L); |
| 23071 | } |
| 23072 | bool ByteCodeEmitter::emitFlipMemberPtrBool(SourceInfo L) { |
| 23073 | return emitOp<>(OP_FlipMemberPtrBool, L); |
| 23074 | } |
| 23075 | bool ByteCodeEmitter::emitFlipMemberPtrFixedPoint(SourceInfo L) { |
| 23076 | return emitOp<>(OP_FlipMemberPtrFixedPoint, L); |
| 23077 | } |
| 23078 | bool ByteCodeEmitter::emitFlipMemberPtrPtr(SourceInfo L) { |
| 23079 | return emitOp<>(OP_FlipMemberPtrPtr, L); |
| 23080 | } |
| 23081 | bool ByteCodeEmitter::emitFlipMemberPtrMemberPtr(SourceInfo L) { |
| 23082 | return emitOp<>(OP_FlipMemberPtrMemberPtr, L); |
| 23083 | } |
| 23084 | bool ByteCodeEmitter::emitFlipMemberPtrFloat(SourceInfo L) { |
| 23085 | return emitOp<>(OP_FlipMemberPtrFloat, L); |
| 23086 | } |
| 23087 | bool ByteCodeEmitter::emitFlipMemberPtrReflect(SourceInfo L) { |
| 23088 | return emitOp<>(OP_FlipMemberPtrReflect, L); |
| 23089 | } |
| 23090 | bool ByteCodeEmitter::emitFlipFloatSint8(SourceInfo L) { |
| 23091 | return emitOp<>(OP_FlipFloatSint8, L); |
| 23092 | } |
| 23093 | bool ByteCodeEmitter::emitFlipFloatUint8(SourceInfo L) { |
| 23094 | return emitOp<>(OP_FlipFloatUint8, L); |
| 23095 | } |
| 23096 | bool ByteCodeEmitter::emitFlipFloatSint16(SourceInfo L) { |
| 23097 | return emitOp<>(OP_FlipFloatSint16, L); |
| 23098 | } |
| 23099 | bool ByteCodeEmitter::emitFlipFloatUint16(SourceInfo L) { |
| 23100 | return emitOp<>(OP_FlipFloatUint16, L); |
| 23101 | } |
| 23102 | bool ByteCodeEmitter::emitFlipFloatSint32(SourceInfo L) { |
| 23103 | return emitOp<>(OP_FlipFloatSint32, L); |
| 23104 | } |
| 23105 | bool ByteCodeEmitter::emitFlipFloatUint32(SourceInfo L) { |
| 23106 | return emitOp<>(OP_FlipFloatUint32, L); |
| 23107 | } |
| 23108 | bool ByteCodeEmitter::emitFlipFloatSint64(SourceInfo L) { |
| 23109 | return emitOp<>(OP_FlipFloatSint64, L); |
| 23110 | } |
| 23111 | bool ByteCodeEmitter::emitFlipFloatUint64(SourceInfo L) { |
| 23112 | return emitOp<>(OP_FlipFloatUint64, L); |
| 23113 | } |
| 23114 | bool ByteCodeEmitter::emitFlipFloatIntAP(SourceInfo L) { |
| 23115 | return emitOp<>(OP_FlipFloatIntAP, L); |
| 23116 | } |
| 23117 | bool ByteCodeEmitter::emitFlipFloatIntAPS(SourceInfo L) { |
| 23118 | return emitOp<>(OP_FlipFloatIntAPS, L); |
| 23119 | } |
| 23120 | bool ByteCodeEmitter::emitFlipFloatBool(SourceInfo L) { |
| 23121 | return emitOp<>(OP_FlipFloatBool, L); |
| 23122 | } |
| 23123 | bool ByteCodeEmitter::emitFlipFloatFixedPoint(SourceInfo L) { |
| 23124 | return emitOp<>(OP_FlipFloatFixedPoint, L); |
| 23125 | } |
| 23126 | bool ByteCodeEmitter::emitFlipFloatPtr(SourceInfo L) { |
| 23127 | return emitOp<>(OP_FlipFloatPtr, L); |
| 23128 | } |
| 23129 | bool ByteCodeEmitter::emitFlipFloatMemberPtr(SourceInfo L) { |
| 23130 | return emitOp<>(OP_FlipFloatMemberPtr, L); |
| 23131 | } |
| 23132 | bool ByteCodeEmitter::emitFlipFloatFloat(SourceInfo L) { |
| 23133 | return emitOp<>(OP_FlipFloatFloat, L); |
| 23134 | } |
| 23135 | bool ByteCodeEmitter::emitFlipFloatReflect(SourceInfo L) { |
| 23136 | return emitOp<>(OP_FlipFloatReflect, L); |
| 23137 | } |
| 23138 | bool ByteCodeEmitter::emitFlipReflectSint8(SourceInfo L) { |
| 23139 | return emitOp<>(OP_FlipReflectSint8, L); |
| 23140 | } |
| 23141 | bool ByteCodeEmitter::emitFlipReflectUint8(SourceInfo L) { |
| 23142 | return emitOp<>(OP_FlipReflectUint8, L); |
| 23143 | } |
| 23144 | bool ByteCodeEmitter::emitFlipReflectSint16(SourceInfo L) { |
| 23145 | return emitOp<>(OP_FlipReflectSint16, L); |
| 23146 | } |
| 23147 | bool ByteCodeEmitter::emitFlipReflectUint16(SourceInfo L) { |
| 23148 | return emitOp<>(OP_FlipReflectUint16, L); |
| 23149 | } |
| 23150 | bool ByteCodeEmitter::emitFlipReflectSint32(SourceInfo L) { |
| 23151 | return emitOp<>(OP_FlipReflectSint32, L); |
| 23152 | } |
| 23153 | bool ByteCodeEmitter::emitFlipReflectUint32(SourceInfo L) { |
| 23154 | return emitOp<>(OP_FlipReflectUint32, L); |
| 23155 | } |
| 23156 | bool ByteCodeEmitter::emitFlipReflectSint64(SourceInfo L) { |
| 23157 | return emitOp<>(OP_FlipReflectSint64, L); |
| 23158 | } |
| 23159 | bool ByteCodeEmitter::emitFlipReflectUint64(SourceInfo L) { |
| 23160 | return emitOp<>(OP_FlipReflectUint64, L); |
| 23161 | } |
| 23162 | bool ByteCodeEmitter::emitFlipReflectIntAP(SourceInfo L) { |
| 23163 | return emitOp<>(OP_FlipReflectIntAP, L); |
| 23164 | } |
| 23165 | bool ByteCodeEmitter::emitFlipReflectIntAPS(SourceInfo L) { |
| 23166 | return emitOp<>(OP_FlipReflectIntAPS, L); |
| 23167 | } |
| 23168 | bool ByteCodeEmitter::emitFlipReflectBool(SourceInfo L) { |
| 23169 | return emitOp<>(OP_FlipReflectBool, L); |
| 23170 | } |
| 23171 | bool ByteCodeEmitter::emitFlipReflectFixedPoint(SourceInfo L) { |
| 23172 | return emitOp<>(OP_FlipReflectFixedPoint, L); |
| 23173 | } |
| 23174 | bool ByteCodeEmitter::emitFlipReflectPtr(SourceInfo L) { |
| 23175 | return emitOp<>(OP_FlipReflectPtr, L); |
| 23176 | } |
| 23177 | bool ByteCodeEmitter::emitFlipReflectMemberPtr(SourceInfo L) { |
| 23178 | return emitOp<>(OP_FlipReflectMemberPtr, L); |
| 23179 | } |
| 23180 | bool ByteCodeEmitter::emitFlipReflectFloat(SourceInfo L) { |
| 23181 | return emitOp<>(OP_FlipReflectFloat, L); |
| 23182 | } |
| 23183 | bool ByteCodeEmitter::emitFlipReflectReflect(SourceInfo L) { |
| 23184 | return emitOp<>(OP_FlipReflectReflect, L); |
| 23185 | } |
| 23186 | #endif |
| 23187 | #ifdef GET_EVAL_IMPL |
| 23188 | bool EvalEmitter::emitFlipSint8Sint8(SourceInfo L) { |
| 23189 | if (!isActive()) return true; |
| 23190 | CurrentSource = L; |
| 23191 | return Flip<PT_Sint8, PT_Sint8>(S); |
| 23192 | } |
| 23193 | bool EvalEmitter::emitFlipSint8Uint8(SourceInfo L) { |
| 23194 | if (!isActive()) return true; |
| 23195 | CurrentSource = L; |
| 23196 | return Flip<PT_Sint8, PT_Uint8>(S); |
| 23197 | } |
| 23198 | bool EvalEmitter::emitFlipSint8Sint16(SourceInfo L) { |
| 23199 | if (!isActive()) return true; |
| 23200 | CurrentSource = L; |
| 23201 | return Flip<PT_Sint8, PT_Sint16>(S); |
| 23202 | } |
| 23203 | bool EvalEmitter::emitFlipSint8Uint16(SourceInfo L) { |
| 23204 | if (!isActive()) return true; |
| 23205 | CurrentSource = L; |
| 23206 | return Flip<PT_Sint8, PT_Uint16>(S); |
| 23207 | } |
| 23208 | bool EvalEmitter::emitFlipSint8Sint32(SourceInfo L) { |
| 23209 | if (!isActive()) return true; |
| 23210 | CurrentSource = L; |
| 23211 | return Flip<PT_Sint8, PT_Sint32>(S); |
| 23212 | } |
| 23213 | bool EvalEmitter::emitFlipSint8Uint32(SourceInfo L) { |
| 23214 | if (!isActive()) return true; |
| 23215 | CurrentSource = L; |
| 23216 | return Flip<PT_Sint8, PT_Uint32>(S); |
| 23217 | } |
| 23218 | bool EvalEmitter::emitFlipSint8Sint64(SourceInfo L) { |
| 23219 | if (!isActive()) return true; |
| 23220 | CurrentSource = L; |
| 23221 | return Flip<PT_Sint8, PT_Sint64>(S); |
| 23222 | } |
| 23223 | bool EvalEmitter::emitFlipSint8Uint64(SourceInfo L) { |
| 23224 | if (!isActive()) return true; |
| 23225 | CurrentSource = L; |
| 23226 | return Flip<PT_Sint8, PT_Uint64>(S); |
| 23227 | } |
| 23228 | bool EvalEmitter::emitFlipSint8IntAP(SourceInfo L) { |
| 23229 | if (!isActive()) return true; |
| 23230 | CurrentSource = L; |
| 23231 | return Flip<PT_Sint8, PT_IntAP>(S); |
| 23232 | } |
| 23233 | bool EvalEmitter::emitFlipSint8IntAPS(SourceInfo L) { |
| 23234 | if (!isActive()) return true; |
| 23235 | CurrentSource = L; |
| 23236 | return Flip<PT_Sint8, PT_IntAPS>(S); |
| 23237 | } |
| 23238 | bool EvalEmitter::emitFlipSint8Bool(SourceInfo L) { |
| 23239 | if (!isActive()) return true; |
| 23240 | CurrentSource = L; |
| 23241 | return Flip<PT_Sint8, PT_Bool>(S); |
| 23242 | } |
| 23243 | bool EvalEmitter::emitFlipSint8FixedPoint(SourceInfo L) { |
| 23244 | if (!isActive()) return true; |
| 23245 | CurrentSource = L; |
| 23246 | return Flip<PT_Sint8, PT_FixedPoint>(S); |
| 23247 | } |
| 23248 | bool EvalEmitter::emitFlipSint8Ptr(SourceInfo L) { |
| 23249 | if (!isActive()) return true; |
| 23250 | CurrentSource = L; |
| 23251 | return Flip<PT_Sint8, PT_Ptr>(S); |
| 23252 | } |
| 23253 | bool EvalEmitter::emitFlipSint8MemberPtr(SourceInfo L) { |
| 23254 | if (!isActive()) return true; |
| 23255 | CurrentSource = L; |
| 23256 | return Flip<PT_Sint8, PT_MemberPtr>(S); |
| 23257 | } |
| 23258 | bool EvalEmitter::emitFlipSint8Float(SourceInfo L) { |
| 23259 | if (!isActive()) return true; |
| 23260 | CurrentSource = L; |
| 23261 | return Flip<PT_Sint8, PT_Float>(S); |
| 23262 | } |
| 23263 | bool EvalEmitter::emitFlipSint8Reflect(SourceInfo L) { |
| 23264 | if (!isActive()) return true; |
| 23265 | CurrentSource = L; |
| 23266 | return Flip<PT_Sint8, PT_Reflect>(S); |
| 23267 | } |
| 23268 | bool EvalEmitter::emitFlipUint8Sint8(SourceInfo L) { |
| 23269 | if (!isActive()) return true; |
| 23270 | CurrentSource = L; |
| 23271 | return Flip<PT_Uint8, PT_Sint8>(S); |
| 23272 | } |
| 23273 | bool EvalEmitter::emitFlipUint8Uint8(SourceInfo L) { |
| 23274 | if (!isActive()) return true; |
| 23275 | CurrentSource = L; |
| 23276 | return Flip<PT_Uint8, PT_Uint8>(S); |
| 23277 | } |
| 23278 | bool EvalEmitter::emitFlipUint8Sint16(SourceInfo L) { |
| 23279 | if (!isActive()) return true; |
| 23280 | CurrentSource = L; |
| 23281 | return Flip<PT_Uint8, PT_Sint16>(S); |
| 23282 | } |
| 23283 | bool EvalEmitter::emitFlipUint8Uint16(SourceInfo L) { |
| 23284 | if (!isActive()) return true; |
| 23285 | CurrentSource = L; |
| 23286 | return Flip<PT_Uint8, PT_Uint16>(S); |
| 23287 | } |
| 23288 | bool EvalEmitter::emitFlipUint8Sint32(SourceInfo L) { |
| 23289 | if (!isActive()) return true; |
| 23290 | CurrentSource = L; |
| 23291 | return Flip<PT_Uint8, PT_Sint32>(S); |
| 23292 | } |
| 23293 | bool EvalEmitter::emitFlipUint8Uint32(SourceInfo L) { |
| 23294 | if (!isActive()) return true; |
| 23295 | CurrentSource = L; |
| 23296 | return Flip<PT_Uint8, PT_Uint32>(S); |
| 23297 | } |
| 23298 | bool EvalEmitter::emitFlipUint8Sint64(SourceInfo L) { |
| 23299 | if (!isActive()) return true; |
| 23300 | CurrentSource = L; |
| 23301 | return Flip<PT_Uint8, PT_Sint64>(S); |
| 23302 | } |
| 23303 | bool EvalEmitter::emitFlipUint8Uint64(SourceInfo L) { |
| 23304 | if (!isActive()) return true; |
| 23305 | CurrentSource = L; |
| 23306 | return Flip<PT_Uint8, PT_Uint64>(S); |
| 23307 | } |
| 23308 | bool EvalEmitter::emitFlipUint8IntAP(SourceInfo L) { |
| 23309 | if (!isActive()) return true; |
| 23310 | CurrentSource = L; |
| 23311 | return Flip<PT_Uint8, PT_IntAP>(S); |
| 23312 | } |
| 23313 | bool EvalEmitter::emitFlipUint8IntAPS(SourceInfo L) { |
| 23314 | if (!isActive()) return true; |
| 23315 | CurrentSource = L; |
| 23316 | return Flip<PT_Uint8, PT_IntAPS>(S); |
| 23317 | } |
| 23318 | bool EvalEmitter::emitFlipUint8Bool(SourceInfo L) { |
| 23319 | if (!isActive()) return true; |
| 23320 | CurrentSource = L; |
| 23321 | return Flip<PT_Uint8, PT_Bool>(S); |
| 23322 | } |
| 23323 | bool EvalEmitter::emitFlipUint8FixedPoint(SourceInfo L) { |
| 23324 | if (!isActive()) return true; |
| 23325 | CurrentSource = L; |
| 23326 | return Flip<PT_Uint8, PT_FixedPoint>(S); |
| 23327 | } |
| 23328 | bool EvalEmitter::emitFlipUint8Ptr(SourceInfo L) { |
| 23329 | if (!isActive()) return true; |
| 23330 | CurrentSource = L; |
| 23331 | return Flip<PT_Uint8, PT_Ptr>(S); |
| 23332 | } |
| 23333 | bool EvalEmitter::emitFlipUint8MemberPtr(SourceInfo L) { |
| 23334 | if (!isActive()) return true; |
| 23335 | CurrentSource = L; |
| 23336 | return Flip<PT_Uint8, PT_MemberPtr>(S); |
| 23337 | } |
| 23338 | bool EvalEmitter::emitFlipUint8Float(SourceInfo L) { |
| 23339 | if (!isActive()) return true; |
| 23340 | CurrentSource = L; |
| 23341 | return Flip<PT_Uint8, PT_Float>(S); |
| 23342 | } |
| 23343 | bool EvalEmitter::emitFlipUint8Reflect(SourceInfo L) { |
| 23344 | if (!isActive()) return true; |
| 23345 | CurrentSource = L; |
| 23346 | return Flip<PT_Uint8, PT_Reflect>(S); |
| 23347 | } |
| 23348 | bool EvalEmitter::emitFlipSint16Sint8(SourceInfo L) { |
| 23349 | if (!isActive()) return true; |
| 23350 | CurrentSource = L; |
| 23351 | return Flip<PT_Sint16, PT_Sint8>(S); |
| 23352 | } |
| 23353 | bool EvalEmitter::emitFlipSint16Uint8(SourceInfo L) { |
| 23354 | if (!isActive()) return true; |
| 23355 | CurrentSource = L; |
| 23356 | return Flip<PT_Sint16, PT_Uint8>(S); |
| 23357 | } |
| 23358 | bool EvalEmitter::emitFlipSint16Sint16(SourceInfo L) { |
| 23359 | if (!isActive()) return true; |
| 23360 | CurrentSource = L; |
| 23361 | return Flip<PT_Sint16, PT_Sint16>(S); |
| 23362 | } |
| 23363 | bool EvalEmitter::emitFlipSint16Uint16(SourceInfo L) { |
| 23364 | if (!isActive()) return true; |
| 23365 | CurrentSource = L; |
| 23366 | return Flip<PT_Sint16, PT_Uint16>(S); |
| 23367 | } |
| 23368 | bool EvalEmitter::emitFlipSint16Sint32(SourceInfo L) { |
| 23369 | if (!isActive()) return true; |
| 23370 | CurrentSource = L; |
| 23371 | return Flip<PT_Sint16, PT_Sint32>(S); |
| 23372 | } |
| 23373 | bool EvalEmitter::emitFlipSint16Uint32(SourceInfo L) { |
| 23374 | if (!isActive()) return true; |
| 23375 | CurrentSource = L; |
| 23376 | return Flip<PT_Sint16, PT_Uint32>(S); |
| 23377 | } |
| 23378 | bool EvalEmitter::emitFlipSint16Sint64(SourceInfo L) { |
| 23379 | if (!isActive()) return true; |
| 23380 | CurrentSource = L; |
| 23381 | return Flip<PT_Sint16, PT_Sint64>(S); |
| 23382 | } |
| 23383 | bool EvalEmitter::emitFlipSint16Uint64(SourceInfo L) { |
| 23384 | if (!isActive()) return true; |
| 23385 | CurrentSource = L; |
| 23386 | return Flip<PT_Sint16, PT_Uint64>(S); |
| 23387 | } |
| 23388 | bool EvalEmitter::emitFlipSint16IntAP(SourceInfo L) { |
| 23389 | if (!isActive()) return true; |
| 23390 | CurrentSource = L; |
| 23391 | return Flip<PT_Sint16, PT_IntAP>(S); |
| 23392 | } |
| 23393 | bool EvalEmitter::emitFlipSint16IntAPS(SourceInfo L) { |
| 23394 | if (!isActive()) return true; |
| 23395 | CurrentSource = L; |
| 23396 | return Flip<PT_Sint16, PT_IntAPS>(S); |
| 23397 | } |
| 23398 | bool EvalEmitter::emitFlipSint16Bool(SourceInfo L) { |
| 23399 | if (!isActive()) return true; |
| 23400 | CurrentSource = L; |
| 23401 | return Flip<PT_Sint16, PT_Bool>(S); |
| 23402 | } |
| 23403 | bool EvalEmitter::emitFlipSint16FixedPoint(SourceInfo L) { |
| 23404 | if (!isActive()) return true; |
| 23405 | CurrentSource = L; |
| 23406 | return Flip<PT_Sint16, PT_FixedPoint>(S); |
| 23407 | } |
| 23408 | bool EvalEmitter::emitFlipSint16Ptr(SourceInfo L) { |
| 23409 | if (!isActive()) return true; |
| 23410 | CurrentSource = L; |
| 23411 | return Flip<PT_Sint16, PT_Ptr>(S); |
| 23412 | } |
| 23413 | bool EvalEmitter::emitFlipSint16MemberPtr(SourceInfo L) { |
| 23414 | if (!isActive()) return true; |
| 23415 | CurrentSource = L; |
| 23416 | return Flip<PT_Sint16, PT_MemberPtr>(S); |
| 23417 | } |
| 23418 | bool EvalEmitter::emitFlipSint16Float(SourceInfo L) { |
| 23419 | if (!isActive()) return true; |
| 23420 | CurrentSource = L; |
| 23421 | return Flip<PT_Sint16, PT_Float>(S); |
| 23422 | } |
| 23423 | bool EvalEmitter::emitFlipSint16Reflect(SourceInfo L) { |
| 23424 | if (!isActive()) return true; |
| 23425 | CurrentSource = L; |
| 23426 | return Flip<PT_Sint16, PT_Reflect>(S); |
| 23427 | } |
| 23428 | bool EvalEmitter::emitFlipUint16Sint8(SourceInfo L) { |
| 23429 | if (!isActive()) return true; |
| 23430 | CurrentSource = L; |
| 23431 | return Flip<PT_Uint16, PT_Sint8>(S); |
| 23432 | } |
| 23433 | bool EvalEmitter::emitFlipUint16Uint8(SourceInfo L) { |
| 23434 | if (!isActive()) return true; |
| 23435 | CurrentSource = L; |
| 23436 | return Flip<PT_Uint16, PT_Uint8>(S); |
| 23437 | } |
| 23438 | bool EvalEmitter::emitFlipUint16Sint16(SourceInfo L) { |
| 23439 | if (!isActive()) return true; |
| 23440 | CurrentSource = L; |
| 23441 | return Flip<PT_Uint16, PT_Sint16>(S); |
| 23442 | } |
| 23443 | bool EvalEmitter::emitFlipUint16Uint16(SourceInfo L) { |
| 23444 | if (!isActive()) return true; |
| 23445 | CurrentSource = L; |
| 23446 | return Flip<PT_Uint16, PT_Uint16>(S); |
| 23447 | } |
| 23448 | bool EvalEmitter::emitFlipUint16Sint32(SourceInfo L) { |
| 23449 | if (!isActive()) return true; |
| 23450 | CurrentSource = L; |
| 23451 | return Flip<PT_Uint16, PT_Sint32>(S); |
| 23452 | } |
| 23453 | bool EvalEmitter::emitFlipUint16Uint32(SourceInfo L) { |
| 23454 | if (!isActive()) return true; |
| 23455 | CurrentSource = L; |
| 23456 | return Flip<PT_Uint16, PT_Uint32>(S); |
| 23457 | } |
| 23458 | bool EvalEmitter::emitFlipUint16Sint64(SourceInfo L) { |
| 23459 | if (!isActive()) return true; |
| 23460 | CurrentSource = L; |
| 23461 | return Flip<PT_Uint16, PT_Sint64>(S); |
| 23462 | } |
| 23463 | bool EvalEmitter::emitFlipUint16Uint64(SourceInfo L) { |
| 23464 | if (!isActive()) return true; |
| 23465 | CurrentSource = L; |
| 23466 | return Flip<PT_Uint16, PT_Uint64>(S); |
| 23467 | } |
| 23468 | bool EvalEmitter::emitFlipUint16IntAP(SourceInfo L) { |
| 23469 | if (!isActive()) return true; |
| 23470 | CurrentSource = L; |
| 23471 | return Flip<PT_Uint16, PT_IntAP>(S); |
| 23472 | } |
| 23473 | bool EvalEmitter::emitFlipUint16IntAPS(SourceInfo L) { |
| 23474 | if (!isActive()) return true; |
| 23475 | CurrentSource = L; |
| 23476 | return Flip<PT_Uint16, PT_IntAPS>(S); |
| 23477 | } |
| 23478 | bool EvalEmitter::emitFlipUint16Bool(SourceInfo L) { |
| 23479 | if (!isActive()) return true; |
| 23480 | CurrentSource = L; |
| 23481 | return Flip<PT_Uint16, PT_Bool>(S); |
| 23482 | } |
| 23483 | bool EvalEmitter::emitFlipUint16FixedPoint(SourceInfo L) { |
| 23484 | if (!isActive()) return true; |
| 23485 | CurrentSource = L; |
| 23486 | return Flip<PT_Uint16, PT_FixedPoint>(S); |
| 23487 | } |
| 23488 | bool EvalEmitter::emitFlipUint16Ptr(SourceInfo L) { |
| 23489 | if (!isActive()) return true; |
| 23490 | CurrentSource = L; |
| 23491 | return Flip<PT_Uint16, PT_Ptr>(S); |
| 23492 | } |
| 23493 | bool EvalEmitter::emitFlipUint16MemberPtr(SourceInfo L) { |
| 23494 | if (!isActive()) return true; |
| 23495 | CurrentSource = L; |
| 23496 | return Flip<PT_Uint16, PT_MemberPtr>(S); |
| 23497 | } |
| 23498 | bool EvalEmitter::emitFlipUint16Float(SourceInfo L) { |
| 23499 | if (!isActive()) return true; |
| 23500 | CurrentSource = L; |
| 23501 | return Flip<PT_Uint16, PT_Float>(S); |
| 23502 | } |
| 23503 | bool EvalEmitter::emitFlipUint16Reflect(SourceInfo L) { |
| 23504 | if (!isActive()) return true; |
| 23505 | CurrentSource = L; |
| 23506 | return Flip<PT_Uint16, PT_Reflect>(S); |
| 23507 | } |
| 23508 | bool EvalEmitter::emitFlipSint32Sint8(SourceInfo L) { |
| 23509 | if (!isActive()) return true; |
| 23510 | CurrentSource = L; |
| 23511 | return Flip<PT_Sint32, PT_Sint8>(S); |
| 23512 | } |
| 23513 | bool EvalEmitter::emitFlipSint32Uint8(SourceInfo L) { |
| 23514 | if (!isActive()) return true; |
| 23515 | CurrentSource = L; |
| 23516 | return Flip<PT_Sint32, PT_Uint8>(S); |
| 23517 | } |
| 23518 | bool EvalEmitter::emitFlipSint32Sint16(SourceInfo L) { |
| 23519 | if (!isActive()) return true; |
| 23520 | CurrentSource = L; |
| 23521 | return Flip<PT_Sint32, PT_Sint16>(S); |
| 23522 | } |
| 23523 | bool EvalEmitter::emitFlipSint32Uint16(SourceInfo L) { |
| 23524 | if (!isActive()) return true; |
| 23525 | CurrentSource = L; |
| 23526 | return Flip<PT_Sint32, PT_Uint16>(S); |
| 23527 | } |
| 23528 | bool EvalEmitter::emitFlipSint32Sint32(SourceInfo L) { |
| 23529 | if (!isActive()) return true; |
| 23530 | CurrentSource = L; |
| 23531 | return Flip<PT_Sint32, PT_Sint32>(S); |
| 23532 | } |
| 23533 | bool EvalEmitter::emitFlipSint32Uint32(SourceInfo L) { |
| 23534 | if (!isActive()) return true; |
| 23535 | CurrentSource = L; |
| 23536 | return Flip<PT_Sint32, PT_Uint32>(S); |
| 23537 | } |
| 23538 | bool EvalEmitter::emitFlipSint32Sint64(SourceInfo L) { |
| 23539 | if (!isActive()) return true; |
| 23540 | CurrentSource = L; |
| 23541 | return Flip<PT_Sint32, PT_Sint64>(S); |
| 23542 | } |
| 23543 | bool EvalEmitter::emitFlipSint32Uint64(SourceInfo L) { |
| 23544 | if (!isActive()) return true; |
| 23545 | CurrentSource = L; |
| 23546 | return Flip<PT_Sint32, PT_Uint64>(S); |
| 23547 | } |
| 23548 | bool EvalEmitter::emitFlipSint32IntAP(SourceInfo L) { |
| 23549 | if (!isActive()) return true; |
| 23550 | CurrentSource = L; |
| 23551 | return Flip<PT_Sint32, PT_IntAP>(S); |
| 23552 | } |
| 23553 | bool EvalEmitter::emitFlipSint32IntAPS(SourceInfo L) { |
| 23554 | if (!isActive()) return true; |
| 23555 | CurrentSource = L; |
| 23556 | return Flip<PT_Sint32, PT_IntAPS>(S); |
| 23557 | } |
| 23558 | bool EvalEmitter::emitFlipSint32Bool(SourceInfo L) { |
| 23559 | if (!isActive()) return true; |
| 23560 | CurrentSource = L; |
| 23561 | return Flip<PT_Sint32, PT_Bool>(S); |
| 23562 | } |
| 23563 | bool EvalEmitter::emitFlipSint32FixedPoint(SourceInfo L) { |
| 23564 | if (!isActive()) return true; |
| 23565 | CurrentSource = L; |
| 23566 | return Flip<PT_Sint32, PT_FixedPoint>(S); |
| 23567 | } |
| 23568 | bool EvalEmitter::emitFlipSint32Ptr(SourceInfo L) { |
| 23569 | if (!isActive()) return true; |
| 23570 | CurrentSource = L; |
| 23571 | return Flip<PT_Sint32, PT_Ptr>(S); |
| 23572 | } |
| 23573 | bool EvalEmitter::emitFlipSint32MemberPtr(SourceInfo L) { |
| 23574 | if (!isActive()) return true; |
| 23575 | CurrentSource = L; |
| 23576 | return Flip<PT_Sint32, PT_MemberPtr>(S); |
| 23577 | } |
| 23578 | bool EvalEmitter::emitFlipSint32Float(SourceInfo L) { |
| 23579 | if (!isActive()) return true; |
| 23580 | CurrentSource = L; |
| 23581 | return Flip<PT_Sint32, PT_Float>(S); |
| 23582 | } |
| 23583 | bool EvalEmitter::emitFlipSint32Reflect(SourceInfo L) { |
| 23584 | if (!isActive()) return true; |
| 23585 | CurrentSource = L; |
| 23586 | return Flip<PT_Sint32, PT_Reflect>(S); |
| 23587 | } |
| 23588 | bool EvalEmitter::emitFlipUint32Sint8(SourceInfo L) { |
| 23589 | if (!isActive()) return true; |
| 23590 | CurrentSource = L; |
| 23591 | return Flip<PT_Uint32, PT_Sint8>(S); |
| 23592 | } |
| 23593 | bool EvalEmitter::emitFlipUint32Uint8(SourceInfo L) { |
| 23594 | if (!isActive()) return true; |
| 23595 | CurrentSource = L; |
| 23596 | return Flip<PT_Uint32, PT_Uint8>(S); |
| 23597 | } |
| 23598 | bool EvalEmitter::emitFlipUint32Sint16(SourceInfo L) { |
| 23599 | if (!isActive()) return true; |
| 23600 | CurrentSource = L; |
| 23601 | return Flip<PT_Uint32, PT_Sint16>(S); |
| 23602 | } |
| 23603 | bool EvalEmitter::emitFlipUint32Uint16(SourceInfo L) { |
| 23604 | if (!isActive()) return true; |
| 23605 | CurrentSource = L; |
| 23606 | return Flip<PT_Uint32, PT_Uint16>(S); |
| 23607 | } |
| 23608 | bool EvalEmitter::emitFlipUint32Sint32(SourceInfo L) { |
| 23609 | if (!isActive()) return true; |
| 23610 | CurrentSource = L; |
| 23611 | return Flip<PT_Uint32, PT_Sint32>(S); |
| 23612 | } |
| 23613 | bool EvalEmitter::emitFlipUint32Uint32(SourceInfo L) { |
| 23614 | if (!isActive()) return true; |
| 23615 | CurrentSource = L; |
| 23616 | return Flip<PT_Uint32, PT_Uint32>(S); |
| 23617 | } |
| 23618 | bool EvalEmitter::emitFlipUint32Sint64(SourceInfo L) { |
| 23619 | if (!isActive()) return true; |
| 23620 | CurrentSource = L; |
| 23621 | return Flip<PT_Uint32, PT_Sint64>(S); |
| 23622 | } |
| 23623 | bool EvalEmitter::emitFlipUint32Uint64(SourceInfo L) { |
| 23624 | if (!isActive()) return true; |
| 23625 | CurrentSource = L; |
| 23626 | return Flip<PT_Uint32, PT_Uint64>(S); |
| 23627 | } |
| 23628 | bool EvalEmitter::emitFlipUint32IntAP(SourceInfo L) { |
| 23629 | if (!isActive()) return true; |
| 23630 | CurrentSource = L; |
| 23631 | return Flip<PT_Uint32, PT_IntAP>(S); |
| 23632 | } |
| 23633 | bool EvalEmitter::emitFlipUint32IntAPS(SourceInfo L) { |
| 23634 | if (!isActive()) return true; |
| 23635 | CurrentSource = L; |
| 23636 | return Flip<PT_Uint32, PT_IntAPS>(S); |
| 23637 | } |
| 23638 | bool EvalEmitter::emitFlipUint32Bool(SourceInfo L) { |
| 23639 | if (!isActive()) return true; |
| 23640 | CurrentSource = L; |
| 23641 | return Flip<PT_Uint32, PT_Bool>(S); |
| 23642 | } |
| 23643 | bool EvalEmitter::emitFlipUint32FixedPoint(SourceInfo L) { |
| 23644 | if (!isActive()) return true; |
| 23645 | CurrentSource = L; |
| 23646 | return Flip<PT_Uint32, PT_FixedPoint>(S); |
| 23647 | } |
| 23648 | bool EvalEmitter::emitFlipUint32Ptr(SourceInfo L) { |
| 23649 | if (!isActive()) return true; |
| 23650 | CurrentSource = L; |
| 23651 | return Flip<PT_Uint32, PT_Ptr>(S); |
| 23652 | } |
| 23653 | bool EvalEmitter::emitFlipUint32MemberPtr(SourceInfo L) { |
| 23654 | if (!isActive()) return true; |
| 23655 | CurrentSource = L; |
| 23656 | return Flip<PT_Uint32, PT_MemberPtr>(S); |
| 23657 | } |
| 23658 | bool EvalEmitter::emitFlipUint32Float(SourceInfo L) { |
| 23659 | if (!isActive()) return true; |
| 23660 | CurrentSource = L; |
| 23661 | return Flip<PT_Uint32, PT_Float>(S); |
| 23662 | } |
| 23663 | bool EvalEmitter::emitFlipUint32Reflect(SourceInfo L) { |
| 23664 | if (!isActive()) return true; |
| 23665 | CurrentSource = L; |
| 23666 | return Flip<PT_Uint32, PT_Reflect>(S); |
| 23667 | } |
| 23668 | bool EvalEmitter::emitFlipSint64Sint8(SourceInfo L) { |
| 23669 | if (!isActive()) return true; |
| 23670 | CurrentSource = L; |
| 23671 | return Flip<PT_Sint64, PT_Sint8>(S); |
| 23672 | } |
| 23673 | bool EvalEmitter::emitFlipSint64Uint8(SourceInfo L) { |
| 23674 | if (!isActive()) return true; |
| 23675 | CurrentSource = L; |
| 23676 | return Flip<PT_Sint64, PT_Uint8>(S); |
| 23677 | } |
| 23678 | bool EvalEmitter::emitFlipSint64Sint16(SourceInfo L) { |
| 23679 | if (!isActive()) return true; |
| 23680 | CurrentSource = L; |
| 23681 | return Flip<PT_Sint64, PT_Sint16>(S); |
| 23682 | } |
| 23683 | bool EvalEmitter::emitFlipSint64Uint16(SourceInfo L) { |
| 23684 | if (!isActive()) return true; |
| 23685 | CurrentSource = L; |
| 23686 | return Flip<PT_Sint64, PT_Uint16>(S); |
| 23687 | } |
| 23688 | bool EvalEmitter::emitFlipSint64Sint32(SourceInfo L) { |
| 23689 | if (!isActive()) return true; |
| 23690 | CurrentSource = L; |
| 23691 | return Flip<PT_Sint64, PT_Sint32>(S); |
| 23692 | } |
| 23693 | bool EvalEmitter::emitFlipSint64Uint32(SourceInfo L) { |
| 23694 | if (!isActive()) return true; |
| 23695 | CurrentSource = L; |
| 23696 | return Flip<PT_Sint64, PT_Uint32>(S); |
| 23697 | } |
| 23698 | bool EvalEmitter::emitFlipSint64Sint64(SourceInfo L) { |
| 23699 | if (!isActive()) return true; |
| 23700 | CurrentSource = L; |
| 23701 | return Flip<PT_Sint64, PT_Sint64>(S); |
| 23702 | } |
| 23703 | bool EvalEmitter::emitFlipSint64Uint64(SourceInfo L) { |
| 23704 | if (!isActive()) return true; |
| 23705 | CurrentSource = L; |
| 23706 | return Flip<PT_Sint64, PT_Uint64>(S); |
| 23707 | } |
| 23708 | bool EvalEmitter::emitFlipSint64IntAP(SourceInfo L) { |
| 23709 | if (!isActive()) return true; |
| 23710 | CurrentSource = L; |
| 23711 | return Flip<PT_Sint64, PT_IntAP>(S); |
| 23712 | } |
| 23713 | bool EvalEmitter::emitFlipSint64IntAPS(SourceInfo L) { |
| 23714 | if (!isActive()) return true; |
| 23715 | CurrentSource = L; |
| 23716 | return Flip<PT_Sint64, PT_IntAPS>(S); |
| 23717 | } |
| 23718 | bool EvalEmitter::emitFlipSint64Bool(SourceInfo L) { |
| 23719 | if (!isActive()) return true; |
| 23720 | CurrentSource = L; |
| 23721 | return Flip<PT_Sint64, PT_Bool>(S); |
| 23722 | } |
| 23723 | bool EvalEmitter::emitFlipSint64FixedPoint(SourceInfo L) { |
| 23724 | if (!isActive()) return true; |
| 23725 | CurrentSource = L; |
| 23726 | return Flip<PT_Sint64, PT_FixedPoint>(S); |
| 23727 | } |
| 23728 | bool EvalEmitter::emitFlipSint64Ptr(SourceInfo L) { |
| 23729 | if (!isActive()) return true; |
| 23730 | CurrentSource = L; |
| 23731 | return Flip<PT_Sint64, PT_Ptr>(S); |
| 23732 | } |
| 23733 | bool EvalEmitter::emitFlipSint64MemberPtr(SourceInfo L) { |
| 23734 | if (!isActive()) return true; |
| 23735 | CurrentSource = L; |
| 23736 | return Flip<PT_Sint64, PT_MemberPtr>(S); |
| 23737 | } |
| 23738 | bool EvalEmitter::emitFlipSint64Float(SourceInfo L) { |
| 23739 | if (!isActive()) return true; |
| 23740 | CurrentSource = L; |
| 23741 | return Flip<PT_Sint64, PT_Float>(S); |
| 23742 | } |
| 23743 | bool EvalEmitter::emitFlipSint64Reflect(SourceInfo L) { |
| 23744 | if (!isActive()) return true; |
| 23745 | CurrentSource = L; |
| 23746 | return Flip<PT_Sint64, PT_Reflect>(S); |
| 23747 | } |
| 23748 | bool EvalEmitter::emitFlipUint64Sint8(SourceInfo L) { |
| 23749 | if (!isActive()) return true; |
| 23750 | CurrentSource = L; |
| 23751 | return Flip<PT_Uint64, PT_Sint8>(S); |
| 23752 | } |
| 23753 | bool EvalEmitter::emitFlipUint64Uint8(SourceInfo L) { |
| 23754 | if (!isActive()) return true; |
| 23755 | CurrentSource = L; |
| 23756 | return Flip<PT_Uint64, PT_Uint8>(S); |
| 23757 | } |
| 23758 | bool EvalEmitter::emitFlipUint64Sint16(SourceInfo L) { |
| 23759 | if (!isActive()) return true; |
| 23760 | CurrentSource = L; |
| 23761 | return Flip<PT_Uint64, PT_Sint16>(S); |
| 23762 | } |
| 23763 | bool EvalEmitter::emitFlipUint64Uint16(SourceInfo L) { |
| 23764 | if (!isActive()) return true; |
| 23765 | CurrentSource = L; |
| 23766 | return Flip<PT_Uint64, PT_Uint16>(S); |
| 23767 | } |
| 23768 | bool EvalEmitter::emitFlipUint64Sint32(SourceInfo L) { |
| 23769 | if (!isActive()) return true; |
| 23770 | CurrentSource = L; |
| 23771 | return Flip<PT_Uint64, PT_Sint32>(S); |
| 23772 | } |
| 23773 | bool EvalEmitter::emitFlipUint64Uint32(SourceInfo L) { |
| 23774 | if (!isActive()) return true; |
| 23775 | CurrentSource = L; |
| 23776 | return Flip<PT_Uint64, PT_Uint32>(S); |
| 23777 | } |
| 23778 | bool EvalEmitter::emitFlipUint64Sint64(SourceInfo L) { |
| 23779 | if (!isActive()) return true; |
| 23780 | CurrentSource = L; |
| 23781 | return Flip<PT_Uint64, PT_Sint64>(S); |
| 23782 | } |
| 23783 | bool EvalEmitter::emitFlipUint64Uint64(SourceInfo L) { |
| 23784 | if (!isActive()) return true; |
| 23785 | CurrentSource = L; |
| 23786 | return Flip<PT_Uint64, PT_Uint64>(S); |
| 23787 | } |
| 23788 | bool EvalEmitter::emitFlipUint64IntAP(SourceInfo L) { |
| 23789 | if (!isActive()) return true; |
| 23790 | CurrentSource = L; |
| 23791 | return Flip<PT_Uint64, PT_IntAP>(S); |
| 23792 | } |
| 23793 | bool EvalEmitter::emitFlipUint64IntAPS(SourceInfo L) { |
| 23794 | if (!isActive()) return true; |
| 23795 | CurrentSource = L; |
| 23796 | return Flip<PT_Uint64, PT_IntAPS>(S); |
| 23797 | } |
| 23798 | bool EvalEmitter::emitFlipUint64Bool(SourceInfo L) { |
| 23799 | if (!isActive()) return true; |
| 23800 | CurrentSource = L; |
| 23801 | return Flip<PT_Uint64, PT_Bool>(S); |
| 23802 | } |
| 23803 | bool EvalEmitter::emitFlipUint64FixedPoint(SourceInfo L) { |
| 23804 | if (!isActive()) return true; |
| 23805 | CurrentSource = L; |
| 23806 | return Flip<PT_Uint64, PT_FixedPoint>(S); |
| 23807 | } |
| 23808 | bool EvalEmitter::emitFlipUint64Ptr(SourceInfo L) { |
| 23809 | if (!isActive()) return true; |
| 23810 | CurrentSource = L; |
| 23811 | return Flip<PT_Uint64, PT_Ptr>(S); |
| 23812 | } |
| 23813 | bool EvalEmitter::emitFlipUint64MemberPtr(SourceInfo L) { |
| 23814 | if (!isActive()) return true; |
| 23815 | CurrentSource = L; |
| 23816 | return Flip<PT_Uint64, PT_MemberPtr>(S); |
| 23817 | } |
| 23818 | bool EvalEmitter::emitFlipUint64Float(SourceInfo L) { |
| 23819 | if (!isActive()) return true; |
| 23820 | CurrentSource = L; |
| 23821 | return Flip<PT_Uint64, PT_Float>(S); |
| 23822 | } |
| 23823 | bool EvalEmitter::emitFlipUint64Reflect(SourceInfo L) { |
| 23824 | if (!isActive()) return true; |
| 23825 | CurrentSource = L; |
| 23826 | return Flip<PT_Uint64, PT_Reflect>(S); |
| 23827 | } |
| 23828 | bool EvalEmitter::emitFlipIntAPSint8(SourceInfo L) { |
| 23829 | if (!isActive()) return true; |
| 23830 | CurrentSource = L; |
| 23831 | return Flip<PT_IntAP, PT_Sint8>(S); |
| 23832 | } |
| 23833 | bool EvalEmitter::emitFlipIntAPUint8(SourceInfo L) { |
| 23834 | if (!isActive()) return true; |
| 23835 | CurrentSource = L; |
| 23836 | return Flip<PT_IntAP, PT_Uint8>(S); |
| 23837 | } |
| 23838 | bool EvalEmitter::emitFlipIntAPSint16(SourceInfo L) { |
| 23839 | if (!isActive()) return true; |
| 23840 | CurrentSource = L; |
| 23841 | return Flip<PT_IntAP, PT_Sint16>(S); |
| 23842 | } |
| 23843 | bool EvalEmitter::emitFlipIntAPUint16(SourceInfo L) { |
| 23844 | if (!isActive()) return true; |
| 23845 | CurrentSource = L; |
| 23846 | return Flip<PT_IntAP, PT_Uint16>(S); |
| 23847 | } |
| 23848 | bool EvalEmitter::emitFlipIntAPSint32(SourceInfo L) { |
| 23849 | if (!isActive()) return true; |
| 23850 | CurrentSource = L; |
| 23851 | return Flip<PT_IntAP, PT_Sint32>(S); |
| 23852 | } |
| 23853 | bool EvalEmitter::emitFlipIntAPUint32(SourceInfo L) { |
| 23854 | if (!isActive()) return true; |
| 23855 | CurrentSource = L; |
| 23856 | return Flip<PT_IntAP, PT_Uint32>(S); |
| 23857 | } |
| 23858 | bool EvalEmitter::emitFlipIntAPSint64(SourceInfo L) { |
| 23859 | if (!isActive()) return true; |
| 23860 | CurrentSource = L; |
| 23861 | return Flip<PT_IntAP, PT_Sint64>(S); |
| 23862 | } |
| 23863 | bool EvalEmitter::emitFlipIntAPUint64(SourceInfo L) { |
| 23864 | if (!isActive()) return true; |
| 23865 | CurrentSource = L; |
| 23866 | return Flip<PT_IntAP, PT_Uint64>(S); |
| 23867 | } |
| 23868 | bool EvalEmitter::emitFlipIntAPIntAP(SourceInfo L) { |
| 23869 | if (!isActive()) return true; |
| 23870 | CurrentSource = L; |
| 23871 | return Flip<PT_IntAP, PT_IntAP>(S); |
| 23872 | } |
| 23873 | bool EvalEmitter::emitFlipIntAPIntAPS(SourceInfo L) { |
| 23874 | if (!isActive()) return true; |
| 23875 | CurrentSource = L; |
| 23876 | return Flip<PT_IntAP, PT_IntAPS>(S); |
| 23877 | } |
| 23878 | bool EvalEmitter::emitFlipIntAPBool(SourceInfo L) { |
| 23879 | if (!isActive()) return true; |
| 23880 | CurrentSource = L; |
| 23881 | return Flip<PT_IntAP, PT_Bool>(S); |
| 23882 | } |
| 23883 | bool EvalEmitter::emitFlipIntAPFixedPoint(SourceInfo L) { |
| 23884 | if (!isActive()) return true; |
| 23885 | CurrentSource = L; |
| 23886 | return Flip<PT_IntAP, PT_FixedPoint>(S); |
| 23887 | } |
| 23888 | bool EvalEmitter::emitFlipIntAPPtr(SourceInfo L) { |
| 23889 | if (!isActive()) return true; |
| 23890 | CurrentSource = L; |
| 23891 | return Flip<PT_IntAP, PT_Ptr>(S); |
| 23892 | } |
| 23893 | bool EvalEmitter::emitFlipIntAPMemberPtr(SourceInfo L) { |
| 23894 | if (!isActive()) return true; |
| 23895 | CurrentSource = L; |
| 23896 | return Flip<PT_IntAP, PT_MemberPtr>(S); |
| 23897 | } |
| 23898 | bool EvalEmitter::emitFlipIntAPFloat(SourceInfo L) { |
| 23899 | if (!isActive()) return true; |
| 23900 | CurrentSource = L; |
| 23901 | return Flip<PT_IntAP, PT_Float>(S); |
| 23902 | } |
| 23903 | bool EvalEmitter::emitFlipIntAPReflect(SourceInfo L) { |
| 23904 | if (!isActive()) return true; |
| 23905 | CurrentSource = L; |
| 23906 | return Flip<PT_IntAP, PT_Reflect>(S); |
| 23907 | } |
| 23908 | bool EvalEmitter::emitFlipIntAPSSint8(SourceInfo L) { |
| 23909 | if (!isActive()) return true; |
| 23910 | CurrentSource = L; |
| 23911 | return Flip<PT_IntAPS, PT_Sint8>(S); |
| 23912 | } |
| 23913 | bool EvalEmitter::emitFlipIntAPSUint8(SourceInfo L) { |
| 23914 | if (!isActive()) return true; |
| 23915 | CurrentSource = L; |
| 23916 | return Flip<PT_IntAPS, PT_Uint8>(S); |
| 23917 | } |
| 23918 | bool EvalEmitter::emitFlipIntAPSSint16(SourceInfo L) { |
| 23919 | if (!isActive()) return true; |
| 23920 | CurrentSource = L; |
| 23921 | return Flip<PT_IntAPS, PT_Sint16>(S); |
| 23922 | } |
| 23923 | bool EvalEmitter::emitFlipIntAPSUint16(SourceInfo L) { |
| 23924 | if (!isActive()) return true; |
| 23925 | CurrentSource = L; |
| 23926 | return Flip<PT_IntAPS, PT_Uint16>(S); |
| 23927 | } |
| 23928 | bool EvalEmitter::emitFlipIntAPSSint32(SourceInfo L) { |
| 23929 | if (!isActive()) return true; |
| 23930 | CurrentSource = L; |
| 23931 | return Flip<PT_IntAPS, PT_Sint32>(S); |
| 23932 | } |
| 23933 | bool EvalEmitter::emitFlipIntAPSUint32(SourceInfo L) { |
| 23934 | if (!isActive()) return true; |
| 23935 | CurrentSource = L; |
| 23936 | return Flip<PT_IntAPS, PT_Uint32>(S); |
| 23937 | } |
| 23938 | bool EvalEmitter::emitFlipIntAPSSint64(SourceInfo L) { |
| 23939 | if (!isActive()) return true; |
| 23940 | CurrentSource = L; |
| 23941 | return Flip<PT_IntAPS, PT_Sint64>(S); |
| 23942 | } |
| 23943 | bool EvalEmitter::emitFlipIntAPSUint64(SourceInfo L) { |
| 23944 | if (!isActive()) return true; |
| 23945 | CurrentSource = L; |
| 23946 | return Flip<PT_IntAPS, PT_Uint64>(S); |
| 23947 | } |
| 23948 | bool EvalEmitter::emitFlipIntAPSIntAP(SourceInfo L) { |
| 23949 | if (!isActive()) return true; |
| 23950 | CurrentSource = L; |
| 23951 | return Flip<PT_IntAPS, PT_IntAP>(S); |
| 23952 | } |
| 23953 | bool EvalEmitter::emitFlipIntAPSIntAPS(SourceInfo L) { |
| 23954 | if (!isActive()) return true; |
| 23955 | CurrentSource = L; |
| 23956 | return Flip<PT_IntAPS, PT_IntAPS>(S); |
| 23957 | } |
| 23958 | bool EvalEmitter::emitFlipIntAPSBool(SourceInfo L) { |
| 23959 | if (!isActive()) return true; |
| 23960 | CurrentSource = L; |
| 23961 | return Flip<PT_IntAPS, PT_Bool>(S); |
| 23962 | } |
| 23963 | bool EvalEmitter::emitFlipIntAPSFixedPoint(SourceInfo L) { |
| 23964 | if (!isActive()) return true; |
| 23965 | CurrentSource = L; |
| 23966 | return Flip<PT_IntAPS, PT_FixedPoint>(S); |
| 23967 | } |
| 23968 | bool EvalEmitter::emitFlipIntAPSPtr(SourceInfo L) { |
| 23969 | if (!isActive()) return true; |
| 23970 | CurrentSource = L; |
| 23971 | return Flip<PT_IntAPS, PT_Ptr>(S); |
| 23972 | } |
| 23973 | bool EvalEmitter::emitFlipIntAPSMemberPtr(SourceInfo L) { |
| 23974 | if (!isActive()) return true; |
| 23975 | CurrentSource = L; |
| 23976 | return Flip<PT_IntAPS, PT_MemberPtr>(S); |
| 23977 | } |
| 23978 | bool EvalEmitter::emitFlipIntAPSFloat(SourceInfo L) { |
| 23979 | if (!isActive()) return true; |
| 23980 | CurrentSource = L; |
| 23981 | return Flip<PT_IntAPS, PT_Float>(S); |
| 23982 | } |
| 23983 | bool EvalEmitter::emitFlipIntAPSReflect(SourceInfo L) { |
| 23984 | if (!isActive()) return true; |
| 23985 | CurrentSource = L; |
| 23986 | return Flip<PT_IntAPS, PT_Reflect>(S); |
| 23987 | } |
| 23988 | bool EvalEmitter::emitFlipBoolSint8(SourceInfo L) { |
| 23989 | if (!isActive()) return true; |
| 23990 | CurrentSource = L; |
| 23991 | return Flip<PT_Bool, PT_Sint8>(S); |
| 23992 | } |
| 23993 | bool EvalEmitter::emitFlipBoolUint8(SourceInfo L) { |
| 23994 | if (!isActive()) return true; |
| 23995 | CurrentSource = L; |
| 23996 | return Flip<PT_Bool, PT_Uint8>(S); |
| 23997 | } |
| 23998 | bool EvalEmitter::emitFlipBoolSint16(SourceInfo L) { |
| 23999 | if (!isActive()) return true; |
| 24000 | CurrentSource = L; |
| 24001 | return Flip<PT_Bool, PT_Sint16>(S); |
| 24002 | } |
| 24003 | bool EvalEmitter::emitFlipBoolUint16(SourceInfo L) { |
| 24004 | if (!isActive()) return true; |
| 24005 | CurrentSource = L; |
| 24006 | return Flip<PT_Bool, PT_Uint16>(S); |
| 24007 | } |
| 24008 | bool EvalEmitter::emitFlipBoolSint32(SourceInfo L) { |
| 24009 | if (!isActive()) return true; |
| 24010 | CurrentSource = L; |
| 24011 | return Flip<PT_Bool, PT_Sint32>(S); |
| 24012 | } |
| 24013 | bool EvalEmitter::emitFlipBoolUint32(SourceInfo L) { |
| 24014 | if (!isActive()) return true; |
| 24015 | CurrentSource = L; |
| 24016 | return Flip<PT_Bool, PT_Uint32>(S); |
| 24017 | } |
| 24018 | bool EvalEmitter::emitFlipBoolSint64(SourceInfo L) { |
| 24019 | if (!isActive()) return true; |
| 24020 | CurrentSource = L; |
| 24021 | return Flip<PT_Bool, PT_Sint64>(S); |
| 24022 | } |
| 24023 | bool EvalEmitter::emitFlipBoolUint64(SourceInfo L) { |
| 24024 | if (!isActive()) return true; |
| 24025 | CurrentSource = L; |
| 24026 | return Flip<PT_Bool, PT_Uint64>(S); |
| 24027 | } |
| 24028 | bool EvalEmitter::emitFlipBoolIntAP(SourceInfo L) { |
| 24029 | if (!isActive()) return true; |
| 24030 | CurrentSource = L; |
| 24031 | return Flip<PT_Bool, PT_IntAP>(S); |
| 24032 | } |
| 24033 | bool EvalEmitter::emitFlipBoolIntAPS(SourceInfo L) { |
| 24034 | if (!isActive()) return true; |
| 24035 | CurrentSource = L; |
| 24036 | return Flip<PT_Bool, PT_IntAPS>(S); |
| 24037 | } |
| 24038 | bool EvalEmitter::emitFlipBoolBool(SourceInfo L) { |
| 24039 | if (!isActive()) return true; |
| 24040 | CurrentSource = L; |
| 24041 | return Flip<PT_Bool, PT_Bool>(S); |
| 24042 | } |
| 24043 | bool EvalEmitter::emitFlipBoolFixedPoint(SourceInfo L) { |
| 24044 | if (!isActive()) return true; |
| 24045 | CurrentSource = L; |
| 24046 | return Flip<PT_Bool, PT_FixedPoint>(S); |
| 24047 | } |
| 24048 | bool EvalEmitter::emitFlipBoolPtr(SourceInfo L) { |
| 24049 | if (!isActive()) return true; |
| 24050 | CurrentSource = L; |
| 24051 | return Flip<PT_Bool, PT_Ptr>(S); |
| 24052 | } |
| 24053 | bool EvalEmitter::emitFlipBoolMemberPtr(SourceInfo L) { |
| 24054 | if (!isActive()) return true; |
| 24055 | CurrentSource = L; |
| 24056 | return Flip<PT_Bool, PT_MemberPtr>(S); |
| 24057 | } |
| 24058 | bool EvalEmitter::emitFlipBoolFloat(SourceInfo L) { |
| 24059 | if (!isActive()) return true; |
| 24060 | CurrentSource = L; |
| 24061 | return Flip<PT_Bool, PT_Float>(S); |
| 24062 | } |
| 24063 | bool EvalEmitter::emitFlipBoolReflect(SourceInfo L) { |
| 24064 | if (!isActive()) return true; |
| 24065 | CurrentSource = L; |
| 24066 | return Flip<PT_Bool, PT_Reflect>(S); |
| 24067 | } |
| 24068 | bool EvalEmitter::emitFlipFixedPointSint8(SourceInfo L) { |
| 24069 | if (!isActive()) return true; |
| 24070 | CurrentSource = L; |
| 24071 | return Flip<PT_FixedPoint, PT_Sint8>(S); |
| 24072 | } |
| 24073 | bool EvalEmitter::emitFlipFixedPointUint8(SourceInfo L) { |
| 24074 | if (!isActive()) return true; |
| 24075 | CurrentSource = L; |
| 24076 | return Flip<PT_FixedPoint, PT_Uint8>(S); |
| 24077 | } |
| 24078 | bool EvalEmitter::emitFlipFixedPointSint16(SourceInfo L) { |
| 24079 | if (!isActive()) return true; |
| 24080 | CurrentSource = L; |
| 24081 | return Flip<PT_FixedPoint, PT_Sint16>(S); |
| 24082 | } |
| 24083 | bool EvalEmitter::emitFlipFixedPointUint16(SourceInfo L) { |
| 24084 | if (!isActive()) return true; |
| 24085 | CurrentSource = L; |
| 24086 | return Flip<PT_FixedPoint, PT_Uint16>(S); |
| 24087 | } |
| 24088 | bool EvalEmitter::emitFlipFixedPointSint32(SourceInfo L) { |
| 24089 | if (!isActive()) return true; |
| 24090 | CurrentSource = L; |
| 24091 | return Flip<PT_FixedPoint, PT_Sint32>(S); |
| 24092 | } |
| 24093 | bool EvalEmitter::emitFlipFixedPointUint32(SourceInfo L) { |
| 24094 | if (!isActive()) return true; |
| 24095 | CurrentSource = L; |
| 24096 | return Flip<PT_FixedPoint, PT_Uint32>(S); |
| 24097 | } |
| 24098 | bool EvalEmitter::emitFlipFixedPointSint64(SourceInfo L) { |
| 24099 | if (!isActive()) return true; |
| 24100 | CurrentSource = L; |
| 24101 | return Flip<PT_FixedPoint, PT_Sint64>(S); |
| 24102 | } |
| 24103 | bool EvalEmitter::emitFlipFixedPointUint64(SourceInfo L) { |
| 24104 | if (!isActive()) return true; |
| 24105 | CurrentSource = L; |
| 24106 | return Flip<PT_FixedPoint, PT_Uint64>(S); |
| 24107 | } |
| 24108 | bool EvalEmitter::emitFlipFixedPointIntAP(SourceInfo L) { |
| 24109 | if (!isActive()) return true; |
| 24110 | CurrentSource = L; |
| 24111 | return Flip<PT_FixedPoint, PT_IntAP>(S); |
| 24112 | } |
| 24113 | bool EvalEmitter::emitFlipFixedPointIntAPS(SourceInfo L) { |
| 24114 | if (!isActive()) return true; |
| 24115 | CurrentSource = L; |
| 24116 | return Flip<PT_FixedPoint, PT_IntAPS>(S); |
| 24117 | } |
| 24118 | bool EvalEmitter::emitFlipFixedPointBool(SourceInfo L) { |
| 24119 | if (!isActive()) return true; |
| 24120 | CurrentSource = L; |
| 24121 | return Flip<PT_FixedPoint, PT_Bool>(S); |
| 24122 | } |
| 24123 | bool EvalEmitter::emitFlipFixedPointFixedPoint(SourceInfo L) { |
| 24124 | if (!isActive()) return true; |
| 24125 | CurrentSource = L; |
| 24126 | return Flip<PT_FixedPoint, PT_FixedPoint>(S); |
| 24127 | } |
| 24128 | bool EvalEmitter::emitFlipFixedPointPtr(SourceInfo L) { |
| 24129 | if (!isActive()) return true; |
| 24130 | CurrentSource = L; |
| 24131 | return Flip<PT_FixedPoint, PT_Ptr>(S); |
| 24132 | } |
| 24133 | bool EvalEmitter::emitFlipFixedPointMemberPtr(SourceInfo L) { |
| 24134 | if (!isActive()) return true; |
| 24135 | CurrentSource = L; |
| 24136 | return Flip<PT_FixedPoint, PT_MemberPtr>(S); |
| 24137 | } |
| 24138 | bool EvalEmitter::emitFlipFixedPointFloat(SourceInfo L) { |
| 24139 | if (!isActive()) return true; |
| 24140 | CurrentSource = L; |
| 24141 | return Flip<PT_FixedPoint, PT_Float>(S); |
| 24142 | } |
| 24143 | bool EvalEmitter::emitFlipFixedPointReflect(SourceInfo L) { |
| 24144 | if (!isActive()) return true; |
| 24145 | CurrentSource = L; |
| 24146 | return Flip<PT_FixedPoint, PT_Reflect>(S); |
| 24147 | } |
| 24148 | bool EvalEmitter::emitFlipPtrSint8(SourceInfo L) { |
| 24149 | if (!isActive()) return true; |
| 24150 | CurrentSource = L; |
| 24151 | return Flip<PT_Ptr, PT_Sint8>(S); |
| 24152 | } |
| 24153 | bool EvalEmitter::emitFlipPtrUint8(SourceInfo L) { |
| 24154 | if (!isActive()) return true; |
| 24155 | CurrentSource = L; |
| 24156 | return Flip<PT_Ptr, PT_Uint8>(S); |
| 24157 | } |
| 24158 | bool EvalEmitter::emitFlipPtrSint16(SourceInfo L) { |
| 24159 | if (!isActive()) return true; |
| 24160 | CurrentSource = L; |
| 24161 | return Flip<PT_Ptr, PT_Sint16>(S); |
| 24162 | } |
| 24163 | bool EvalEmitter::emitFlipPtrUint16(SourceInfo L) { |
| 24164 | if (!isActive()) return true; |
| 24165 | CurrentSource = L; |
| 24166 | return Flip<PT_Ptr, PT_Uint16>(S); |
| 24167 | } |
| 24168 | bool EvalEmitter::emitFlipPtrSint32(SourceInfo L) { |
| 24169 | if (!isActive()) return true; |
| 24170 | CurrentSource = L; |
| 24171 | return Flip<PT_Ptr, PT_Sint32>(S); |
| 24172 | } |
| 24173 | bool EvalEmitter::emitFlipPtrUint32(SourceInfo L) { |
| 24174 | if (!isActive()) return true; |
| 24175 | CurrentSource = L; |
| 24176 | return Flip<PT_Ptr, PT_Uint32>(S); |
| 24177 | } |
| 24178 | bool EvalEmitter::emitFlipPtrSint64(SourceInfo L) { |
| 24179 | if (!isActive()) return true; |
| 24180 | CurrentSource = L; |
| 24181 | return Flip<PT_Ptr, PT_Sint64>(S); |
| 24182 | } |
| 24183 | bool EvalEmitter::emitFlipPtrUint64(SourceInfo L) { |
| 24184 | if (!isActive()) return true; |
| 24185 | CurrentSource = L; |
| 24186 | return Flip<PT_Ptr, PT_Uint64>(S); |
| 24187 | } |
| 24188 | bool EvalEmitter::emitFlipPtrIntAP(SourceInfo L) { |
| 24189 | if (!isActive()) return true; |
| 24190 | CurrentSource = L; |
| 24191 | return Flip<PT_Ptr, PT_IntAP>(S); |
| 24192 | } |
| 24193 | bool EvalEmitter::emitFlipPtrIntAPS(SourceInfo L) { |
| 24194 | if (!isActive()) return true; |
| 24195 | CurrentSource = L; |
| 24196 | return Flip<PT_Ptr, PT_IntAPS>(S); |
| 24197 | } |
| 24198 | bool EvalEmitter::emitFlipPtrBool(SourceInfo L) { |
| 24199 | if (!isActive()) return true; |
| 24200 | CurrentSource = L; |
| 24201 | return Flip<PT_Ptr, PT_Bool>(S); |
| 24202 | } |
| 24203 | bool EvalEmitter::emitFlipPtrFixedPoint(SourceInfo L) { |
| 24204 | if (!isActive()) return true; |
| 24205 | CurrentSource = L; |
| 24206 | return Flip<PT_Ptr, PT_FixedPoint>(S); |
| 24207 | } |
| 24208 | bool EvalEmitter::emitFlipPtrPtr(SourceInfo L) { |
| 24209 | if (!isActive()) return true; |
| 24210 | CurrentSource = L; |
| 24211 | return Flip<PT_Ptr, PT_Ptr>(S); |
| 24212 | } |
| 24213 | bool EvalEmitter::emitFlipPtrMemberPtr(SourceInfo L) { |
| 24214 | if (!isActive()) return true; |
| 24215 | CurrentSource = L; |
| 24216 | return Flip<PT_Ptr, PT_MemberPtr>(S); |
| 24217 | } |
| 24218 | bool EvalEmitter::emitFlipPtrFloat(SourceInfo L) { |
| 24219 | if (!isActive()) return true; |
| 24220 | CurrentSource = L; |
| 24221 | return Flip<PT_Ptr, PT_Float>(S); |
| 24222 | } |
| 24223 | bool EvalEmitter::emitFlipPtrReflect(SourceInfo L) { |
| 24224 | if (!isActive()) return true; |
| 24225 | CurrentSource = L; |
| 24226 | return Flip<PT_Ptr, PT_Reflect>(S); |
| 24227 | } |
| 24228 | bool EvalEmitter::emitFlipMemberPtrSint8(SourceInfo L) { |
| 24229 | if (!isActive()) return true; |
| 24230 | CurrentSource = L; |
| 24231 | return Flip<PT_MemberPtr, PT_Sint8>(S); |
| 24232 | } |
| 24233 | bool EvalEmitter::emitFlipMemberPtrUint8(SourceInfo L) { |
| 24234 | if (!isActive()) return true; |
| 24235 | CurrentSource = L; |
| 24236 | return Flip<PT_MemberPtr, PT_Uint8>(S); |
| 24237 | } |
| 24238 | bool EvalEmitter::emitFlipMemberPtrSint16(SourceInfo L) { |
| 24239 | if (!isActive()) return true; |
| 24240 | CurrentSource = L; |
| 24241 | return Flip<PT_MemberPtr, PT_Sint16>(S); |
| 24242 | } |
| 24243 | bool EvalEmitter::emitFlipMemberPtrUint16(SourceInfo L) { |
| 24244 | if (!isActive()) return true; |
| 24245 | CurrentSource = L; |
| 24246 | return Flip<PT_MemberPtr, PT_Uint16>(S); |
| 24247 | } |
| 24248 | bool EvalEmitter::emitFlipMemberPtrSint32(SourceInfo L) { |
| 24249 | if (!isActive()) return true; |
| 24250 | CurrentSource = L; |
| 24251 | return Flip<PT_MemberPtr, PT_Sint32>(S); |
| 24252 | } |
| 24253 | bool EvalEmitter::emitFlipMemberPtrUint32(SourceInfo L) { |
| 24254 | if (!isActive()) return true; |
| 24255 | CurrentSource = L; |
| 24256 | return Flip<PT_MemberPtr, PT_Uint32>(S); |
| 24257 | } |
| 24258 | bool EvalEmitter::emitFlipMemberPtrSint64(SourceInfo L) { |
| 24259 | if (!isActive()) return true; |
| 24260 | CurrentSource = L; |
| 24261 | return Flip<PT_MemberPtr, PT_Sint64>(S); |
| 24262 | } |
| 24263 | bool EvalEmitter::emitFlipMemberPtrUint64(SourceInfo L) { |
| 24264 | if (!isActive()) return true; |
| 24265 | CurrentSource = L; |
| 24266 | return Flip<PT_MemberPtr, PT_Uint64>(S); |
| 24267 | } |
| 24268 | bool EvalEmitter::emitFlipMemberPtrIntAP(SourceInfo L) { |
| 24269 | if (!isActive()) return true; |
| 24270 | CurrentSource = L; |
| 24271 | return Flip<PT_MemberPtr, PT_IntAP>(S); |
| 24272 | } |
| 24273 | bool EvalEmitter::emitFlipMemberPtrIntAPS(SourceInfo L) { |
| 24274 | if (!isActive()) return true; |
| 24275 | CurrentSource = L; |
| 24276 | return Flip<PT_MemberPtr, PT_IntAPS>(S); |
| 24277 | } |
| 24278 | bool EvalEmitter::emitFlipMemberPtrBool(SourceInfo L) { |
| 24279 | if (!isActive()) return true; |
| 24280 | CurrentSource = L; |
| 24281 | return Flip<PT_MemberPtr, PT_Bool>(S); |
| 24282 | } |
| 24283 | bool EvalEmitter::emitFlipMemberPtrFixedPoint(SourceInfo L) { |
| 24284 | if (!isActive()) return true; |
| 24285 | CurrentSource = L; |
| 24286 | return Flip<PT_MemberPtr, PT_FixedPoint>(S); |
| 24287 | } |
| 24288 | bool EvalEmitter::emitFlipMemberPtrPtr(SourceInfo L) { |
| 24289 | if (!isActive()) return true; |
| 24290 | CurrentSource = L; |
| 24291 | return Flip<PT_MemberPtr, PT_Ptr>(S); |
| 24292 | } |
| 24293 | bool EvalEmitter::emitFlipMemberPtrMemberPtr(SourceInfo L) { |
| 24294 | if (!isActive()) return true; |
| 24295 | CurrentSource = L; |
| 24296 | return Flip<PT_MemberPtr, PT_MemberPtr>(S); |
| 24297 | } |
| 24298 | bool EvalEmitter::emitFlipMemberPtrFloat(SourceInfo L) { |
| 24299 | if (!isActive()) return true; |
| 24300 | CurrentSource = L; |
| 24301 | return Flip<PT_MemberPtr, PT_Float>(S); |
| 24302 | } |
| 24303 | bool EvalEmitter::emitFlipMemberPtrReflect(SourceInfo L) { |
| 24304 | if (!isActive()) return true; |
| 24305 | CurrentSource = L; |
| 24306 | return Flip<PT_MemberPtr, PT_Reflect>(S); |
| 24307 | } |
| 24308 | bool EvalEmitter::emitFlipFloatSint8(SourceInfo L) { |
| 24309 | if (!isActive()) return true; |
| 24310 | CurrentSource = L; |
| 24311 | return Flip<PT_Float, PT_Sint8>(S); |
| 24312 | } |
| 24313 | bool EvalEmitter::emitFlipFloatUint8(SourceInfo L) { |
| 24314 | if (!isActive()) return true; |
| 24315 | CurrentSource = L; |
| 24316 | return Flip<PT_Float, PT_Uint8>(S); |
| 24317 | } |
| 24318 | bool EvalEmitter::emitFlipFloatSint16(SourceInfo L) { |
| 24319 | if (!isActive()) return true; |
| 24320 | CurrentSource = L; |
| 24321 | return Flip<PT_Float, PT_Sint16>(S); |
| 24322 | } |
| 24323 | bool EvalEmitter::emitFlipFloatUint16(SourceInfo L) { |
| 24324 | if (!isActive()) return true; |
| 24325 | CurrentSource = L; |
| 24326 | return Flip<PT_Float, PT_Uint16>(S); |
| 24327 | } |
| 24328 | bool EvalEmitter::emitFlipFloatSint32(SourceInfo L) { |
| 24329 | if (!isActive()) return true; |
| 24330 | CurrentSource = L; |
| 24331 | return Flip<PT_Float, PT_Sint32>(S); |
| 24332 | } |
| 24333 | bool EvalEmitter::emitFlipFloatUint32(SourceInfo L) { |
| 24334 | if (!isActive()) return true; |
| 24335 | CurrentSource = L; |
| 24336 | return Flip<PT_Float, PT_Uint32>(S); |
| 24337 | } |
| 24338 | bool EvalEmitter::emitFlipFloatSint64(SourceInfo L) { |
| 24339 | if (!isActive()) return true; |
| 24340 | CurrentSource = L; |
| 24341 | return Flip<PT_Float, PT_Sint64>(S); |
| 24342 | } |
| 24343 | bool EvalEmitter::emitFlipFloatUint64(SourceInfo L) { |
| 24344 | if (!isActive()) return true; |
| 24345 | CurrentSource = L; |
| 24346 | return Flip<PT_Float, PT_Uint64>(S); |
| 24347 | } |
| 24348 | bool EvalEmitter::emitFlipFloatIntAP(SourceInfo L) { |
| 24349 | if (!isActive()) return true; |
| 24350 | CurrentSource = L; |
| 24351 | return Flip<PT_Float, PT_IntAP>(S); |
| 24352 | } |
| 24353 | bool EvalEmitter::emitFlipFloatIntAPS(SourceInfo L) { |
| 24354 | if (!isActive()) return true; |
| 24355 | CurrentSource = L; |
| 24356 | return Flip<PT_Float, PT_IntAPS>(S); |
| 24357 | } |
| 24358 | bool EvalEmitter::emitFlipFloatBool(SourceInfo L) { |
| 24359 | if (!isActive()) return true; |
| 24360 | CurrentSource = L; |
| 24361 | return Flip<PT_Float, PT_Bool>(S); |
| 24362 | } |
| 24363 | bool EvalEmitter::emitFlipFloatFixedPoint(SourceInfo L) { |
| 24364 | if (!isActive()) return true; |
| 24365 | CurrentSource = L; |
| 24366 | return Flip<PT_Float, PT_FixedPoint>(S); |
| 24367 | } |
| 24368 | bool EvalEmitter::emitFlipFloatPtr(SourceInfo L) { |
| 24369 | if (!isActive()) return true; |
| 24370 | CurrentSource = L; |
| 24371 | return Flip<PT_Float, PT_Ptr>(S); |
| 24372 | } |
| 24373 | bool EvalEmitter::emitFlipFloatMemberPtr(SourceInfo L) { |
| 24374 | if (!isActive()) return true; |
| 24375 | CurrentSource = L; |
| 24376 | return Flip<PT_Float, PT_MemberPtr>(S); |
| 24377 | } |
| 24378 | bool EvalEmitter::emitFlipFloatFloat(SourceInfo L) { |
| 24379 | if (!isActive()) return true; |
| 24380 | CurrentSource = L; |
| 24381 | return Flip<PT_Float, PT_Float>(S); |
| 24382 | } |
| 24383 | bool EvalEmitter::emitFlipFloatReflect(SourceInfo L) { |
| 24384 | if (!isActive()) return true; |
| 24385 | CurrentSource = L; |
| 24386 | return Flip<PT_Float, PT_Reflect>(S); |
| 24387 | } |
| 24388 | bool EvalEmitter::emitFlipReflectSint8(SourceInfo L) { |
| 24389 | if (!isActive()) return true; |
| 24390 | CurrentSource = L; |
| 24391 | return Flip<PT_Reflect, PT_Sint8>(S); |
| 24392 | } |
| 24393 | bool EvalEmitter::emitFlipReflectUint8(SourceInfo L) { |
| 24394 | if (!isActive()) return true; |
| 24395 | CurrentSource = L; |
| 24396 | return Flip<PT_Reflect, PT_Uint8>(S); |
| 24397 | } |
| 24398 | bool EvalEmitter::emitFlipReflectSint16(SourceInfo L) { |
| 24399 | if (!isActive()) return true; |
| 24400 | CurrentSource = L; |
| 24401 | return Flip<PT_Reflect, PT_Sint16>(S); |
| 24402 | } |
| 24403 | bool EvalEmitter::emitFlipReflectUint16(SourceInfo L) { |
| 24404 | if (!isActive()) return true; |
| 24405 | CurrentSource = L; |
| 24406 | return Flip<PT_Reflect, PT_Uint16>(S); |
| 24407 | } |
| 24408 | bool EvalEmitter::emitFlipReflectSint32(SourceInfo L) { |
| 24409 | if (!isActive()) return true; |
| 24410 | CurrentSource = L; |
| 24411 | return Flip<PT_Reflect, PT_Sint32>(S); |
| 24412 | } |
| 24413 | bool EvalEmitter::emitFlipReflectUint32(SourceInfo L) { |
| 24414 | if (!isActive()) return true; |
| 24415 | CurrentSource = L; |
| 24416 | return Flip<PT_Reflect, PT_Uint32>(S); |
| 24417 | } |
| 24418 | bool EvalEmitter::emitFlipReflectSint64(SourceInfo L) { |
| 24419 | if (!isActive()) return true; |
| 24420 | CurrentSource = L; |
| 24421 | return Flip<PT_Reflect, PT_Sint64>(S); |
| 24422 | } |
| 24423 | bool EvalEmitter::emitFlipReflectUint64(SourceInfo L) { |
| 24424 | if (!isActive()) return true; |
| 24425 | CurrentSource = L; |
| 24426 | return Flip<PT_Reflect, PT_Uint64>(S); |
| 24427 | } |
| 24428 | bool EvalEmitter::emitFlipReflectIntAP(SourceInfo L) { |
| 24429 | if (!isActive()) return true; |
| 24430 | CurrentSource = L; |
| 24431 | return Flip<PT_Reflect, PT_IntAP>(S); |
| 24432 | } |
| 24433 | bool EvalEmitter::emitFlipReflectIntAPS(SourceInfo L) { |
| 24434 | if (!isActive()) return true; |
| 24435 | CurrentSource = L; |
| 24436 | return Flip<PT_Reflect, PT_IntAPS>(S); |
| 24437 | } |
| 24438 | bool EvalEmitter::emitFlipReflectBool(SourceInfo L) { |
| 24439 | if (!isActive()) return true; |
| 24440 | CurrentSource = L; |
| 24441 | return Flip<PT_Reflect, PT_Bool>(S); |
| 24442 | } |
| 24443 | bool EvalEmitter::emitFlipReflectFixedPoint(SourceInfo L) { |
| 24444 | if (!isActive()) return true; |
| 24445 | CurrentSource = L; |
| 24446 | return Flip<PT_Reflect, PT_FixedPoint>(S); |
| 24447 | } |
| 24448 | bool EvalEmitter::emitFlipReflectPtr(SourceInfo L) { |
| 24449 | if (!isActive()) return true; |
| 24450 | CurrentSource = L; |
| 24451 | return Flip<PT_Reflect, PT_Ptr>(S); |
| 24452 | } |
| 24453 | bool EvalEmitter::emitFlipReflectMemberPtr(SourceInfo L) { |
| 24454 | if (!isActive()) return true; |
| 24455 | CurrentSource = L; |
| 24456 | return Flip<PT_Reflect, PT_MemberPtr>(S); |
| 24457 | } |
| 24458 | bool EvalEmitter::emitFlipReflectFloat(SourceInfo L) { |
| 24459 | if (!isActive()) return true; |
| 24460 | CurrentSource = L; |
| 24461 | return Flip<PT_Reflect, PT_Float>(S); |
| 24462 | } |
| 24463 | bool EvalEmitter::emitFlipReflectReflect(SourceInfo L) { |
| 24464 | if (!isActive()) return true; |
| 24465 | CurrentSource = L; |
| 24466 | return Flip<PT_Reflect, PT_Reflect>(S); |
| 24467 | } |
| 24468 | #endif |
| 24469 | #ifdef GET_OPCODE_NAMES |
| 24470 | OP_FnPtrCast, |
| 24471 | #endif |
| 24472 | #ifdef GET_INTERPFN_LIST |
| 24473 | &Interp_FnPtrCast, |
| 24474 | #endif |
| 24475 | #ifdef GET_INTERPFN_DISPATCHERS |
| 24476 | PRESERVE_NONE |
| 24477 | static bool Interp_FnPtrCast(InterpState &S) { |
| 24478 | if (!FnPtrCast(S, S.PC)) return false; |
| 24479 | #if USE_TAILCALLS |
| 24480 | MUSTTAIL return InterpNext(S); |
| 24481 | #else |
| 24482 | return true; |
| 24483 | #endif |
| 24484 | } |
| 24485 | #endif |
| 24486 | #ifdef GET_DISASM |
| 24487 | case OP_FnPtrCast: |
| 24488 | Text.Op = PrintName("FnPtrCast" ); |
| 24489 | break; |
| 24490 | #endif |
| 24491 | #if defined(GET_EVAL_PROTO) || defined(GET_LINK_PROTO) |
| 24492 | bool emitFnPtrCast(SourceInfo); |
| 24493 | #endif |
| 24494 | #ifdef GET_LINK_IMPL |
| 24495 | bool ByteCodeEmitter::emitFnPtrCast(SourceInfo L) { |
| 24496 | return emitOp<>(OP_FnPtrCast, L); |
| 24497 | } |
| 24498 | #endif |
| 24499 | #ifdef GET_EVAL_IMPL |
| 24500 | bool EvalEmitter::emitFnPtrCast(SourceInfo L) { |
| 24501 | if (!isActive()) return true; |
| 24502 | CurrentSource = L; |
| 24503 | return FnPtrCast(S, CodePtr()); |
| 24504 | } |
| 24505 | #endif |
| 24506 | #ifdef GET_OPCODE_NAMES |
| 24507 | OP_Free, |
| 24508 | #endif |
| 24509 | #ifdef GET_INTERPFN_LIST |
| 24510 | &Interp_Free, |
| 24511 | #endif |
| 24512 | #ifdef GET_INTERPFN_DISPATCHERS |
| 24513 | PRESERVE_NONE |
| 24514 | static bool Interp_Free(InterpState &S) { |
| 24515 | { |
| 24516 | CodePtr OpPC = S.PC; |
| 24517 | const auto V0 = ReadArg<bool>(S, S.PC); |
| 24518 | const auto V1 = ReadArg<bool>(S, S.PC); |
| 24519 | if (!Free(S, OpPC, V0, V1)) return false; |
| 24520 | } |
| 24521 | #if USE_TAILCALLS |
| 24522 | MUSTTAIL return InterpNext(S); |
| 24523 | #else |
| 24524 | return true; |
| 24525 | #endif |
| 24526 | } |
| 24527 | #endif |
| 24528 | #ifdef GET_DISASM |
| 24529 | case OP_Free: |
| 24530 | Text.Op = PrintName("Free" ); |
| 24531 | Text.Args.push_back(printArg<bool>(PC)); |
| 24532 | Text.Args.push_back(printArg<bool>(PC)); |
| 24533 | break; |
| 24534 | #endif |
| 24535 | #if defined(GET_EVAL_PROTO) || defined(GET_LINK_PROTO) |
| 24536 | bool emitFree( bool , bool , SourceInfo); |
| 24537 | #endif |
| 24538 | #ifdef GET_LINK_IMPL |
| 24539 | bool ByteCodeEmitter::emitFree( bool A0, bool A1, SourceInfo L) { |
| 24540 | return emitOp<bool, bool>(OP_Free, A0, A1, L); |
| 24541 | } |
| 24542 | #endif |
| 24543 | #ifdef GET_EVAL_IMPL |
| 24544 | bool EvalEmitter::emitFree( bool A0, bool A1, SourceInfo L) { |
| 24545 | if (!isActive()) return true; |
| 24546 | CurrentSource = L; |
| 24547 | return Free(S, CodePtr(), A0, A1); |
| 24548 | } |
| 24549 | #endif |
| 24550 | #ifdef GET_OPCODE_NAMES |
| 24551 | OP_GESint8, |
| 24552 | OP_GEUint8, |
| 24553 | OP_GESint16, |
| 24554 | OP_GEUint16, |
| 24555 | OP_GESint32, |
| 24556 | OP_GEUint32, |
| 24557 | OP_GESint64, |
| 24558 | OP_GEUint64, |
| 24559 | OP_GEIntAP, |
| 24560 | OP_GEIntAPS, |
| 24561 | OP_GEBool, |
| 24562 | OP_GEFixedPoint, |
| 24563 | OP_GEPtr, |
| 24564 | OP_GEFloat, |
| 24565 | #endif |
| 24566 | #ifdef GET_INTERPFN_LIST |
| 24567 | &Interp_GESint8, |
| 24568 | &Interp_GEUint8, |
| 24569 | &Interp_GESint16, |
| 24570 | &Interp_GEUint16, |
| 24571 | &Interp_GESint32, |
| 24572 | &Interp_GEUint32, |
| 24573 | &Interp_GESint64, |
| 24574 | &Interp_GEUint64, |
| 24575 | &Interp_GEIntAP, |
| 24576 | &Interp_GEIntAPS, |
| 24577 | &Interp_GEBool, |
| 24578 | &Interp_GEFixedPoint, |
| 24579 | &Interp_GEPtr, |
| 24580 | &Interp_GEFloat, |
| 24581 | #endif |
| 24582 | #ifdef GET_INTERPFN_DISPATCHERS |
| 24583 | PRESERVE_NONE |
| 24584 | static bool Interp_GESint8(InterpState &S) { |
| 24585 | if (!GE<PT_Sint8>(S, S.PC)) return false; |
| 24586 | #if USE_TAILCALLS |
| 24587 | MUSTTAIL return InterpNext(S); |
| 24588 | #else |
| 24589 | return true; |
| 24590 | #endif |
| 24591 | } |
| 24592 | PRESERVE_NONE |
| 24593 | static bool Interp_GEUint8(InterpState &S) { |
| 24594 | if (!GE<PT_Uint8>(S, S.PC)) return false; |
| 24595 | #if USE_TAILCALLS |
| 24596 | MUSTTAIL return InterpNext(S); |
| 24597 | #else |
| 24598 | return true; |
| 24599 | #endif |
| 24600 | } |
| 24601 | PRESERVE_NONE |
| 24602 | static bool Interp_GESint16(InterpState &S) { |
| 24603 | if (!GE<PT_Sint16>(S, S.PC)) return false; |
| 24604 | #if USE_TAILCALLS |
| 24605 | MUSTTAIL return InterpNext(S); |
| 24606 | #else |
| 24607 | return true; |
| 24608 | #endif |
| 24609 | } |
| 24610 | PRESERVE_NONE |
| 24611 | static bool Interp_GEUint16(InterpState &S) { |
| 24612 | if (!GE<PT_Uint16>(S, S.PC)) return false; |
| 24613 | #if USE_TAILCALLS |
| 24614 | MUSTTAIL return InterpNext(S); |
| 24615 | #else |
| 24616 | return true; |
| 24617 | #endif |
| 24618 | } |
| 24619 | PRESERVE_NONE |
| 24620 | static bool Interp_GESint32(InterpState &S) { |
| 24621 | if (!GE<PT_Sint32>(S, S.PC)) return false; |
| 24622 | #if USE_TAILCALLS |
| 24623 | MUSTTAIL return InterpNext(S); |
| 24624 | #else |
| 24625 | return true; |
| 24626 | #endif |
| 24627 | } |
| 24628 | PRESERVE_NONE |
| 24629 | static bool Interp_GEUint32(InterpState &S) { |
| 24630 | if (!GE<PT_Uint32>(S, S.PC)) return false; |
| 24631 | #if USE_TAILCALLS |
| 24632 | MUSTTAIL return InterpNext(S); |
| 24633 | #else |
| 24634 | return true; |
| 24635 | #endif |
| 24636 | } |
| 24637 | PRESERVE_NONE |
| 24638 | static bool Interp_GESint64(InterpState &S) { |
| 24639 | if (!GE<PT_Sint64>(S, S.PC)) return false; |
| 24640 | #if USE_TAILCALLS |
| 24641 | MUSTTAIL return InterpNext(S); |
| 24642 | #else |
| 24643 | return true; |
| 24644 | #endif |
| 24645 | } |
| 24646 | PRESERVE_NONE |
| 24647 | static bool Interp_GEUint64(InterpState &S) { |
| 24648 | if (!GE<PT_Uint64>(S, S.PC)) return false; |
| 24649 | #if USE_TAILCALLS |
| 24650 | MUSTTAIL return InterpNext(S); |
| 24651 | #else |
| 24652 | return true; |
| 24653 | #endif |
| 24654 | } |
| 24655 | PRESERVE_NONE |
| 24656 | static bool Interp_GEIntAP(InterpState &S) { |
| 24657 | if (!GE<PT_IntAP>(S, S.PC)) return false; |
| 24658 | #if USE_TAILCALLS |
| 24659 | MUSTTAIL return InterpNext(S); |
| 24660 | #else |
| 24661 | return true; |
| 24662 | #endif |
| 24663 | } |
| 24664 | PRESERVE_NONE |
| 24665 | static bool Interp_GEIntAPS(InterpState &S) { |
| 24666 | if (!GE<PT_IntAPS>(S, S.PC)) return false; |
| 24667 | #if USE_TAILCALLS |
| 24668 | MUSTTAIL return InterpNext(S); |
| 24669 | #else |
| 24670 | return true; |
| 24671 | #endif |
| 24672 | } |
| 24673 | PRESERVE_NONE |
| 24674 | static bool Interp_GEBool(InterpState &S) { |
| 24675 | if (!GE<PT_Bool>(S, S.PC)) return false; |
| 24676 | #if USE_TAILCALLS |
| 24677 | MUSTTAIL return InterpNext(S); |
| 24678 | #else |
| 24679 | return true; |
| 24680 | #endif |
| 24681 | } |
| 24682 | PRESERVE_NONE |
| 24683 | static bool Interp_GEFixedPoint(InterpState &S) { |
| 24684 | if (!GE<PT_FixedPoint>(S, S.PC)) return false; |
| 24685 | #if USE_TAILCALLS |
| 24686 | MUSTTAIL return InterpNext(S); |
| 24687 | #else |
| 24688 | return true; |
| 24689 | #endif |
| 24690 | } |
| 24691 | PRESERVE_NONE |
| 24692 | static bool Interp_GEPtr(InterpState &S) { |
| 24693 | if (!GE<PT_Ptr>(S, S.PC)) return false; |
| 24694 | #if USE_TAILCALLS |
| 24695 | MUSTTAIL return InterpNext(S); |
| 24696 | #else |
| 24697 | return true; |
| 24698 | #endif |
| 24699 | } |
| 24700 | PRESERVE_NONE |
| 24701 | static bool Interp_GEFloat(InterpState &S) { |
| 24702 | if (!GE<PT_Float>(S, S.PC)) return false; |
| 24703 | #if USE_TAILCALLS |
| 24704 | MUSTTAIL return InterpNext(S); |
| 24705 | #else |
| 24706 | return true; |
| 24707 | #endif |
| 24708 | } |
| 24709 | #endif |
| 24710 | #ifdef GET_DISASM |
| 24711 | case OP_GESint8: |
| 24712 | Text.Op = PrintName("GESint8" ); |
| 24713 | break; |
| 24714 | case OP_GEUint8: |
| 24715 | Text.Op = PrintName("GEUint8" ); |
| 24716 | break; |
| 24717 | case OP_GESint16: |
| 24718 | Text.Op = PrintName("GESint16" ); |
| 24719 | break; |
| 24720 | case OP_GEUint16: |
| 24721 | Text.Op = PrintName("GEUint16" ); |
| 24722 | break; |
| 24723 | case OP_GESint32: |
| 24724 | Text.Op = PrintName("GESint32" ); |
| 24725 | break; |
| 24726 | case OP_GEUint32: |
| 24727 | Text.Op = PrintName("GEUint32" ); |
| 24728 | break; |
| 24729 | case OP_GESint64: |
| 24730 | Text.Op = PrintName("GESint64" ); |
| 24731 | break; |
| 24732 | case OP_GEUint64: |
| 24733 | Text.Op = PrintName("GEUint64" ); |
| 24734 | break; |
| 24735 | case OP_GEIntAP: |
| 24736 | Text.Op = PrintName("GEIntAP" ); |
| 24737 | break; |
| 24738 | case OP_GEIntAPS: |
| 24739 | Text.Op = PrintName("GEIntAPS" ); |
| 24740 | break; |
| 24741 | case OP_GEBool: |
| 24742 | Text.Op = PrintName("GEBool" ); |
| 24743 | break; |
| 24744 | case OP_GEFixedPoint: |
| 24745 | Text.Op = PrintName("GEFixedPoint" ); |
| 24746 | break; |
| 24747 | case OP_GEPtr: |
| 24748 | Text.Op = PrintName("GEPtr" ); |
| 24749 | break; |
| 24750 | case OP_GEFloat: |
| 24751 | Text.Op = PrintName("GEFloat" ); |
| 24752 | break; |
| 24753 | #endif |
| 24754 | #if defined(GET_EVAL_PROTO) || defined(GET_LINK_PROTO) |
| 24755 | bool emitGESint8(SourceInfo); |
| 24756 | bool emitGEUint8(SourceInfo); |
| 24757 | bool emitGESint16(SourceInfo); |
| 24758 | bool emitGEUint16(SourceInfo); |
| 24759 | bool emitGESint32(SourceInfo); |
| 24760 | bool emitGEUint32(SourceInfo); |
| 24761 | bool emitGESint64(SourceInfo); |
| 24762 | bool emitGEUint64(SourceInfo); |
| 24763 | bool emitGEIntAP(SourceInfo); |
| 24764 | bool emitGEIntAPS(SourceInfo); |
| 24765 | bool emitGEBool(SourceInfo); |
| 24766 | bool emitGEFixedPoint(SourceInfo); |
| 24767 | bool emitGEPtr(SourceInfo); |
| 24768 | bool emitGEFloat(SourceInfo); |
| 24769 | #endif |
| 24770 | #if defined(GET_EVAL_PROTO) || defined(GET_LINK_PROTO) |
| 24771 | [[nodiscard]] bool emitGE(PrimType, SourceInfo I); |
| 24772 | #endif |
| 24773 | #if defined(GET_EVAL_IMPL) || defined(GET_LINK_IMPL) |
| 24774 | bool |
| 24775 | #if defined(GET_EVAL_IMPL) |
| 24776 | EvalEmitter |
| 24777 | #else |
| 24778 | ByteCodeEmitter |
| 24779 | #endif |
| 24780 | ::emitGE(PrimType T0, SourceInfo I) { |
| 24781 | switch (T0) { |
| 24782 | case PT_Sint8: |
| 24783 | return emitGESint8(I); |
| 24784 | case PT_Uint8: |
| 24785 | return emitGEUint8(I); |
| 24786 | case PT_Sint16: |
| 24787 | return emitGESint16(I); |
| 24788 | case PT_Uint16: |
| 24789 | return emitGEUint16(I); |
| 24790 | case PT_Sint32: |
| 24791 | return emitGESint32(I); |
| 24792 | case PT_Uint32: |
| 24793 | return emitGEUint32(I); |
| 24794 | case PT_Sint64: |
| 24795 | return emitGESint64(I); |
| 24796 | case PT_Uint64: |
| 24797 | return emitGEUint64(I); |
| 24798 | case PT_IntAP: |
| 24799 | return emitGEIntAP(I); |
| 24800 | case PT_IntAPS: |
| 24801 | return emitGEIntAPS(I); |
| 24802 | case PT_Bool: |
| 24803 | return emitGEBool(I); |
| 24804 | case PT_FixedPoint: |
| 24805 | return emitGEFixedPoint(I); |
| 24806 | case PT_Ptr: |
| 24807 | return emitGEPtr(I); |
| 24808 | case PT_Float: |
| 24809 | return emitGEFloat(I); |
| 24810 | default: llvm_unreachable("invalid type: emitGE" ); |
| 24811 | } |
| 24812 | llvm_unreachable("invalid enum value" ); |
| 24813 | } |
| 24814 | #endif |
| 24815 | #ifdef GET_LINK_IMPL |
| 24816 | bool ByteCodeEmitter::emitGESint8(SourceInfo L) { |
| 24817 | return emitOp<>(OP_GESint8, L); |
| 24818 | } |
| 24819 | bool ByteCodeEmitter::emitGEUint8(SourceInfo L) { |
| 24820 | return emitOp<>(OP_GEUint8, L); |
| 24821 | } |
| 24822 | bool ByteCodeEmitter::emitGESint16(SourceInfo L) { |
| 24823 | return emitOp<>(OP_GESint16, L); |
| 24824 | } |
| 24825 | bool ByteCodeEmitter::emitGEUint16(SourceInfo L) { |
| 24826 | return emitOp<>(OP_GEUint16, L); |
| 24827 | } |
| 24828 | bool ByteCodeEmitter::emitGESint32(SourceInfo L) { |
| 24829 | return emitOp<>(OP_GESint32, L); |
| 24830 | } |
| 24831 | bool ByteCodeEmitter::emitGEUint32(SourceInfo L) { |
| 24832 | return emitOp<>(OP_GEUint32, L); |
| 24833 | } |
| 24834 | bool ByteCodeEmitter::emitGESint64(SourceInfo L) { |
| 24835 | return emitOp<>(OP_GESint64, L); |
| 24836 | } |
| 24837 | bool ByteCodeEmitter::emitGEUint64(SourceInfo L) { |
| 24838 | return emitOp<>(OP_GEUint64, L); |
| 24839 | } |
| 24840 | bool ByteCodeEmitter::emitGEIntAP(SourceInfo L) { |
| 24841 | return emitOp<>(OP_GEIntAP, L); |
| 24842 | } |
| 24843 | bool ByteCodeEmitter::emitGEIntAPS(SourceInfo L) { |
| 24844 | return emitOp<>(OP_GEIntAPS, L); |
| 24845 | } |
| 24846 | bool ByteCodeEmitter::emitGEBool(SourceInfo L) { |
| 24847 | return emitOp<>(OP_GEBool, L); |
| 24848 | } |
| 24849 | bool ByteCodeEmitter::emitGEFixedPoint(SourceInfo L) { |
| 24850 | return emitOp<>(OP_GEFixedPoint, L); |
| 24851 | } |
| 24852 | bool ByteCodeEmitter::emitGEPtr(SourceInfo L) { |
| 24853 | return emitOp<>(OP_GEPtr, L); |
| 24854 | } |
| 24855 | bool ByteCodeEmitter::emitGEFloat(SourceInfo L) { |
| 24856 | return emitOp<>(OP_GEFloat, L); |
| 24857 | } |
| 24858 | #endif |
| 24859 | #ifdef GET_EVAL_IMPL |
| 24860 | bool EvalEmitter::emitGESint8(SourceInfo L) { |
| 24861 | if (!isActive()) return true; |
| 24862 | CurrentSource = L; |
| 24863 | return GE<PT_Sint8>(S, CodePtr()); |
| 24864 | } |
| 24865 | bool EvalEmitter::emitGEUint8(SourceInfo L) { |
| 24866 | if (!isActive()) return true; |
| 24867 | CurrentSource = L; |
| 24868 | return GE<PT_Uint8>(S, CodePtr()); |
| 24869 | } |
| 24870 | bool EvalEmitter::emitGESint16(SourceInfo L) { |
| 24871 | if (!isActive()) return true; |
| 24872 | CurrentSource = L; |
| 24873 | return GE<PT_Sint16>(S, CodePtr()); |
| 24874 | } |
| 24875 | bool EvalEmitter::emitGEUint16(SourceInfo L) { |
| 24876 | if (!isActive()) return true; |
| 24877 | CurrentSource = L; |
| 24878 | return GE<PT_Uint16>(S, CodePtr()); |
| 24879 | } |
| 24880 | bool EvalEmitter::emitGESint32(SourceInfo L) { |
| 24881 | if (!isActive()) return true; |
| 24882 | CurrentSource = L; |
| 24883 | return GE<PT_Sint32>(S, CodePtr()); |
| 24884 | } |
| 24885 | bool EvalEmitter::emitGEUint32(SourceInfo L) { |
| 24886 | if (!isActive()) return true; |
| 24887 | CurrentSource = L; |
| 24888 | return GE<PT_Uint32>(S, CodePtr()); |
| 24889 | } |
| 24890 | bool EvalEmitter::emitGESint64(SourceInfo L) { |
| 24891 | if (!isActive()) return true; |
| 24892 | CurrentSource = L; |
| 24893 | return GE<PT_Sint64>(S, CodePtr()); |
| 24894 | } |
| 24895 | bool EvalEmitter::emitGEUint64(SourceInfo L) { |
| 24896 | if (!isActive()) return true; |
| 24897 | CurrentSource = L; |
| 24898 | return GE<PT_Uint64>(S, CodePtr()); |
| 24899 | } |
| 24900 | bool EvalEmitter::emitGEIntAP(SourceInfo L) { |
| 24901 | if (!isActive()) return true; |
| 24902 | CurrentSource = L; |
| 24903 | return GE<PT_IntAP>(S, CodePtr()); |
| 24904 | } |
| 24905 | bool EvalEmitter::emitGEIntAPS(SourceInfo L) { |
| 24906 | if (!isActive()) return true; |
| 24907 | CurrentSource = L; |
| 24908 | return GE<PT_IntAPS>(S, CodePtr()); |
| 24909 | } |
| 24910 | bool EvalEmitter::emitGEBool(SourceInfo L) { |
| 24911 | if (!isActive()) return true; |
| 24912 | CurrentSource = L; |
| 24913 | return GE<PT_Bool>(S, CodePtr()); |
| 24914 | } |
| 24915 | bool EvalEmitter::emitGEFixedPoint(SourceInfo L) { |
| 24916 | if (!isActive()) return true; |
| 24917 | CurrentSource = L; |
| 24918 | return GE<PT_FixedPoint>(S, CodePtr()); |
| 24919 | } |
| 24920 | bool EvalEmitter::emitGEPtr(SourceInfo L) { |
| 24921 | if (!isActive()) return true; |
| 24922 | CurrentSource = L; |
| 24923 | return GE<PT_Ptr>(S, CodePtr()); |
| 24924 | } |
| 24925 | bool EvalEmitter::emitGEFloat(SourceInfo L) { |
| 24926 | if (!isActive()) return true; |
| 24927 | CurrentSource = L; |
| 24928 | return GE<PT_Float>(S, CodePtr()); |
| 24929 | } |
| 24930 | #endif |
| 24931 | #ifdef GET_OPCODE_NAMES |
| 24932 | OP_GTSint8, |
| 24933 | OP_GTUint8, |
| 24934 | OP_GTSint16, |
| 24935 | OP_GTUint16, |
| 24936 | OP_GTSint32, |
| 24937 | OP_GTUint32, |
| 24938 | OP_GTSint64, |
| 24939 | OP_GTUint64, |
| 24940 | OP_GTIntAP, |
| 24941 | OP_GTIntAPS, |
| 24942 | OP_GTBool, |
| 24943 | OP_GTFixedPoint, |
| 24944 | OP_GTPtr, |
| 24945 | OP_GTFloat, |
| 24946 | #endif |
| 24947 | #ifdef GET_INTERPFN_LIST |
| 24948 | &Interp_GTSint8, |
| 24949 | &Interp_GTUint8, |
| 24950 | &Interp_GTSint16, |
| 24951 | &Interp_GTUint16, |
| 24952 | &Interp_GTSint32, |
| 24953 | &Interp_GTUint32, |
| 24954 | &Interp_GTSint64, |
| 24955 | &Interp_GTUint64, |
| 24956 | &Interp_GTIntAP, |
| 24957 | &Interp_GTIntAPS, |
| 24958 | &Interp_GTBool, |
| 24959 | &Interp_GTFixedPoint, |
| 24960 | &Interp_GTPtr, |
| 24961 | &Interp_GTFloat, |
| 24962 | #endif |
| 24963 | #ifdef GET_INTERPFN_DISPATCHERS |
| 24964 | PRESERVE_NONE |
| 24965 | static bool Interp_GTSint8(InterpState &S) { |
| 24966 | if (!GT<PT_Sint8>(S, S.PC)) return false; |
| 24967 | #if USE_TAILCALLS |
| 24968 | MUSTTAIL return InterpNext(S); |
| 24969 | #else |
| 24970 | return true; |
| 24971 | #endif |
| 24972 | } |
| 24973 | PRESERVE_NONE |
| 24974 | static bool Interp_GTUint8(InterpState &S) { |
| 24975 | if (!GT<PT_Uint8>(S, S.PC)) return false; |
| 24976 | #if USE_TAILCALLS |
| 24977 | MUSTTAIL return InterpNext(S); |
| 24978 | #else |
| 24979 | return true; |
| 24980 | #endif |
| 24981 | } |
| 24982 | PRESERVE_NONE |
| 24983 | static bool Interp_GTSint16(InterpState &S) { |
| 24984 | if (!GT<PT_Sint16>(S, S.PC)) return false; |
| 24985 | #if USE_TAILCALLS |
| 24986 | MUSTTAIL return InterpNext(S); |
| 24987 | #else |
| 24988 | return true; |
| 24989 | #endif |
| 24990 | } |
| 24991 | PRESERVE_NONE |
| 24992 | static bool Interp_GTUint16(InterpState &S) { |
| 24993 | if (!GT<PT_Uint16>(S, S.PC)) return false; |
| 24994 | #if USE_TAILCALLS |
| 24995 | MUSTTAIL return InterpNext(S); |
| 24996 | #else |
| 24997 | return true; |
| 24998 | #endif |
| 24999 | } |
| 25000 | PRESERVE_NONE |
| 25001 | static bool Interp_GTSint32(InterpState &S) { |
| 25002 | if (!GT<PT_Sint32>(S, S.PC)) return false; |
| 25003 | #if USE_TAILCALLS |
| 25004 | MUSTTAIL return InterpNext(S); |
| 25005 | #else |
| 25006 | return true; |
| 25007 | #endif |
| 25008 | } |
| 25009 | PRESERVE_NONE |
| 25010 | static bool Interp_GTUint32(InterpState &S) { |
| 25011 | if (!GT<PT_Uint32>(S, S.PC)) return false; |
| 25012 | #if USE_TAILCALLS |
| 25013 | MUSTTAIL return InterpNext(S); |
| 25014 | #else |
| 25015 | return true; |
| 25016 | #endif |
| 25017 | } |
| 25018 | PRESERVE_NONE |
| 25019 | static bool Interp_GTSint64(InterpState &S) { |
| 25020 | if (!GT<PT_Sint64>(S, S.PC)) return false; |
| 25021 | #if USE_TAILCALLS |
| 25022 | MUSTTAIL return InterpNext(S); |
| 25023 | #else |
| 25024 | return true; |
| 25025 | #endif |
| 25026 | } |
| 25027 | PRESERVE_NONE |
| 25028 | static bool Interp_GTUint64(InterpState &S) { |
| 25029 | if (!GT<PT_Uint64>(S, S.PC)) return false; |
| 25030 | #if USE_TAILCALLS |
| 25031 | MUSTTAIL return InterpNext(S); |
| 25032 | #else |
| 25033 | return true; |
| 25034 | #endif |
| 25035 | } |
| 25036 | PRESERVE_NONE |
| 25037 | static bool Interp_GTIntAP(InterpState &S) { |
| 25038 | if (!GT<PT_IntAP>(S, S.PC)) return false; |
| 25039 | #if USE_TAILCALLS |
| 25040 | MUSTTAIL return InterpNext(S); |
| 25041 | #else |
| 25042 | return true; |
| 25043 | #endif |
| 25044 | } |
| 25045 | PRESERVE_NONE |
| 25046 | static bool Interp_GTIntAPS(InterpState &S) { |
| 25047 | if (!GT<PT_IntAPS>(S, S.PC)) return false; |
| 25048 | #if USE_TAILCALLS |
| 25049 | MUSTTAIL return InterpNext(S); |
| 25050 | #else |
| 25051 | return true; |
| 25052 | #endif |
| 25053 | } |
| 25054 | PRESERVE_NONE |
| 25055 | static bool Interp_GTBool(InterpState &S) { |
| 25056 | if (!GT<PT_Bool>(S, S.PC)) return false; |
| 25057 | #if USE_TAILCALLS |
| 25058 | MUSTTAIL return InterpNext(S); |
| 25059 | #else |
| 25060 | return true; |
| 25061 | #endif |
| 25062 | } |
| 25063 | PRESERVE_NONE |
| 25064 | static bool Interp_GTFixedPoint(InterpState &S) { |
| 25065 | if (!GT<PT_FixedPoint>(S, S.PC)) return false; |
| 25066 | #if USE_TAILCALLS |
| 25067 | MUSTTAIL return InterpNext(S); |
| 25068 | #else |
| 25069 | return true; |
| 25070 | #endif |
| 25071 | } |
| 25072 | PRESERVE_NONE |
| 25073 | static bool Interp_GTPtr(InterpState &S) { |
| 25074 | if (!GT<PT_Ptr>(S, S.PC)) return false; |
| 25075 | #if USE_TAILCALLS |
| 25076 | MUSTTAIL return InterpNext(S); |
| 25077 | #else |
| 25078 | return true; |
| 25079 | #endif |
| 25080 | } |
| 25081 | PRESERVE_NONE |
| 25082 | static bool Interp_GTFloat(InterpState &S) { |
| 25083 | if (!GT<PT_Float>(S, S.PC)) return false; |
| 25084 | #if USE_TAILCALLS |
| 25085 | MUSTTAIL return InterpNext(S); |
| 25086 | #else |
| 25087 | return true; |
| 25088 | #endif |
| 25089 | } |
| 25090 | #endif |
| 25091 | #ifdef GET_DISASM |
| 25092 | case OP_GTSint8: |
| 25093 | Text.Op = PrintName("GTSint8" ); |
| 25094 | break; |
| 25095 | case OP_GTUint8: |
| 25096 | Text.Op = PrintName("GTUint8" ); |
| 25097 | break; |
| 25098 | case OP_GTSint16: |
| 25099 | Text.Op = PrintName("GTSint16" ); |
| 25100 | break; |
| 25101 | case OP_GTUint16: |
| 25102 | Text.Op = PrintName("GTUint16" ); |
| 25103 | break; |
| 25104 | case OP_GTSint32: |
| 25105 | Text.Op = PrintName("GTSint32" ); |
| 25106 | break; |
| 25107 | case OP_GTUint32: |
| 25108 | Text.Op = PrintName("GTUint32" ); |
| 25109 | break; |
| 25110 | case OP_GTSint64: |
| 25111 | Text.Op = PrintName("GTSint64" ); |
| 25112 | break; |
| 25113 | case OP_GTUint64: |
| 25114 | Text.Op = PrintName("GTUint64" ); |
| 25115 | break; |
| 25116 | case OP_GTIntAP: |
| 25117 | Text.Op = PrintName("GTIntAP" ); |
| 25118 | break; |
| 25119 | case OP_GTIntAPS: |
| 25120 | Text.Op = PrintName("GTIntAPS" ); |
| 25121 | break; |
| 25122 | case OP_GTBool: |
| 25123 | Text.Op = PrintName("GTBool" ); |
| 25124 | break; |
| 25125 | case OP_GTFixedPoint: |
| 25126 | Text.Op = PrintName("GTFixedPoint" ); |
| 25127 | break; |
| 25128 | case OP_GTPtr: |
| 25129 | Text.Op = PrintName("GTPtr" ); |
| 25130 | break; |
| 25131 | case OP_GTFloat: |
| 25132 | Text.Op = PrintName("GTFloat" ); |
| 25133 | break; |
| 25134 | #endif |
| 25135 | #if defined(GET_EVAL_PROTO) || defined(GET_LINK_PROTO) |
| 25136 | bool emitGTSint8(SourceInfo); |
| 25137 | bool emitGTUint8(SourceInfo); |
| 25138 | bool emitGTSint16(SourceInfo); |
| 25139 | bool emitGTUint16(SourceInfo); |
| 25140 | bool emitGTSint32(SourceInfo); |
| 25141 | bool emitGTUint32(SourceInfo); |
| 25142 | bool emitGTSint64(SourceInfo); |
| 25143 | bool emitGTUint64(SourceInfo); |
| 25144 | bool emitGTIntAP(SourceInfo); |
| 25145 | bool emitGTIntAPS(SourceInfo); |
| 25146 | bool emitGTBool(SourceInfo); |
| 25147 | bool emitGTFixedPoint(SourceInfo); |
| 25148 | bool emitGTPtr(SourceInfo); |
| 25149 | bool emitGTFloat(SourceInfo); |
| 25150 | #endif |
| 25151 | #if defined(GET_EVAL_PROTO) || defined(GET_LINK_PROTO) |
| 25152 | [[nodiscard]] bool emitGT(PrimType, SourceInfo I); |
| 25153 | #endif |
| 25154 | #if defined(GET_EVAL_IMPL) || defined(GET_LINK_IMPL) |
| 25155 | bool |
| 25156 | #if defined(GET_EVAL_IMPL) |
| 25157 | EvalEmitter |
| 25158 | #else |
| 25159 | ByteCodeEmitter |
| 25160 | #endif |
| 25161 | ::emitGT(PrimType T0, SourceInfo I) { |
| 25162 | switch (T0) { |
| 25163 | case PT_Sint8: |
| 25164 | return emitGTSint8(I); |
| 25165 | case PT_Uint8: |
| 25166 | return emitGTUint8(I); |
| 25167 | case PT_Sint16: |
| 25168 | return emitGTSint16(I); |
| 25169 | case PT_Uint16: |
| 25170 | return emitGTUint16(I); |
| 25171 | case PT_Sint32: |
| 25172 | return emitGTSint32(I); |
| 25173 | case PT_Uint32: |
| 25174 | return emitGTUint32(I); |
| 25175 | case PT_Sint64: |
| 25176 | return emitGTSint64(I); |
| 25177 | case PT_Uint64: |
| 25178 | return emitGTUint64(I); |
| 25179 | case PT_IntAP: |
| 25180 | return emitGTIntAP(I); |
| 25181 | case PT_IntAPS: |
| 25182 | return emitGTIntAPS(I); |
| 25183 | case PT_Bool: |
| 25184 | return emitGTBool(I); |
| 25185 | case PT_FixedPoint: |
| 25186 | return emitGTFixedPoint(I); |
| 25187 | case PT_Ptr: |
| 25188 | return emitGTPtr(I); |
| 25189 | case PT_Float: |
| 25190 | return emitGTFloat(I); |
| 25191 | default: llvm_unreachable("invalid type: emitGT" ); |
| 25192 | } |
| 25193 | llvm_unreachable("invalid enum value" ); |
| 25194 | } |
| 25195 | #endif |
| 25196 | #ifdef GET_LINK_IMPL |
| 25197 | bool ByteCodeEmitter::emitGTSint8(SourceInfo L) { |
| 25198 | return emitOp<>(OP_GTSint8, L); |
| 25199 | } |
| 25200 | bool ByteCodeEmitter::emitGTUint8(SourceInfo L) { |
| 25201 | return emitOp<>(OP_GTUint8, L); |
| 25202 | } |
| 25203 | bool ByteCodeEmitter::emitGTSint16(SourceInfo L) { |
| 25204 | return emitOp<>(OP_GTSint16, L); |
| 25205 | } |
| 25206 | bool ByteCodeEmitter::emitGTUint16(SourceInfo L) { |
| 25207 | return emitOp<>(OP_GTUint16, L); |
| 25208 | } |
| 25209 | bool ByteCodeEmitter::emitGTSint32(SourceInfo L) { |
| 25210 | return emitOp<>(OP_GTSint32, L); |
| 25211 | } |
| 25212 | bool ByteCodeEmitter::emitGTUint32(SourceInfo L) { |
| 25213 | return emitOp<>(OP_GTUint32, L); |
| 25214 | } |
| 25215 | bool ByteCodeEmitter::emitGTSint64(SourceInfo L) { |
| 25216 | return emitOp<>(OP_GTSint64, L); |
| 25217 | } |
| 25218 | bool ByteCodeEmitter::emitGTUint64(SourceInfo L) { |
| 25219 | return emitOp<>(OP_GTUint64, L); |
| 25220 | } |
| 25221 | bool ByteCodeEmitter::emitGTIntAP(SourceInfo L) { |
| 25222 | return emitOp<>(OP_GTIntAP, L); |
| 25223 | } |
| 25224 | bool ByteCodeEmitter::emitGTIntAPS(SourceInfo L) { |
| 25225 | return emitOp<>(OP_GTIntAPS, L); |
| 25226 | } |
| 25227 | bool ByteCodeEmitter::emitGTBool(SourceInfo L) { |
| 25228 | return emitOp<>(OP_GTBool, L); |
| 25229 | } |
| 25230 | bool ByteCodeEmitter::emitGTFixedPoint(SourceInfo L) { |
| 25231 | return emitOp<>(OP_GTFixedPoint, L); |
| 25232 | } |
| 25233 | bool ByteCodeEmitter::emitGTPtr(SourceInfo L) { |
| 25234 | return emitOp<>(OP_GTPtr, L); |
| 25235 | } |
| 25236 | bool ByteCodeEmitter::emitGTFloat(SourceInfo L) { |
| 25237 | return emitOp<>(OP_GTFloat, L); |
| 25238 | } |
| 25239 | #endif |
| 25240 | #ifdef GET_EVAL_IMPL |
| 25241 | bool EvalEmitter::emitGTSint8(SourceInfo L) { |
| 25242 | if (!isActive()) return true; |
| 25243 | CurrentSource = L; |
| 25244 | return GT<PT_Sint8>(S, CodePtr()); |
| 25245 | } |
| 25246 | bool EvalEmitter::emitGTUint8(SourceInfo L) { |
| 25247 | if (!isActive()) return true; |
| 25248 | CurrentSource = L; |
| 25249 | return GT<PT_Uint8>(S, CodePtr()); |
| 25250 | } |
| 25251 | bool EvalEmitter::emitGTSint16(SourceInfo L) { |
| 25252 | if (!isActive()) return true; |
| 25253 | CurrentSource = L; |
| 25254 | return GT<PT_Sint16>(S, CodePtr()); |
| 25255 | } |
| 25256 | bool EvalEmitter::emitGTUint16(SourceInfo L) { |
| 25257 | if (!isActive()) return true; |
| 25258 | CurrentSource = L; |
| 25259 | return GT<PT_Uint16>(S, CodePtr()); |
| 25260 | } |
| 25261 | bool EvalEmitter::emitGTSint32(SourceInfo L) { |
| 25262 | if (!isActive()) return true; |
| 25263 | CurrentSource = L; |
| 25264 | return GT<PT_Sint32>(S, CodePtr()); |
| 25265 | } |
| 25266 | bool EvalEmitter::emitGTUint32(SourceInfo L) { |
| 25267 | if (!isActive()) return true; |
| 25268 | CurrentSource = L; |
| 25269 | return GT<PT_Uint32>(S, CodePtr()); |
| 25270 | } |
| 25271 | bool EvalEmitter::emitGTSint64(SourceInfo L) { |
| 25272 | if (!isActive()) return true; |
| 25273 | CurrentSource = L; |
| 25274 | return GT<PT_Sint64>(S, CodePtr()); |
| 25275 | } |
| 25276 | bool EvalEmitter::emitGTUint64(SourceInfo L) { |
| 25277 | if (!isActive()) return true; |
| 25278 | CurrentSource = L; |
| 25279 | return GT<PT_Uint64>(S, CodePtr()); |
| 25280 | } |
| 25281 | bool EvalEmitter::emitGTIntAP(SourceInfo L) { |
| 25282 | if (!isActive()) return true; |
| 25283 | CurrentSource = L; |
| 25284 | return GT<PT_IntAP>(S, CodePtr()); |
| 25285 | } |
| 25286 | bool EvalEmitter::emitGTIntAPS(SourceInfo L) { |
| 25287 | if (!isActive()) return true; |
| 25288 | CurrentSource = L; |
| 25289 | return GT<PT_IntAPS>(S, CodePtr()); |
| 25290 | } |
| 25291 | bool EvalEmitter::emitGTBool(SourceInfo L) { |
| 25292 | if (!isActive()) return true; |
| 25293 | CurrentSource = L; |
| 25294 | return GT<PT_Bool>(S, CodePtr()); |
| 25295 | } |
| 25296 | bool EvalEmitter::emitGTFixedPoint(SourceInfo L) { |
| 25297 | if (!isActive()) return true; |
| 25298 | CurrentSource = L; |
| 25299 | return GT<PT_FixedPoint>(S, CodePtr()); |
| 25300 | } |
| 25301 | bool EvalEmitter::emitGTPtr(SourceInfo L) { |
| 25302 | if (!isActive()) return true; |
| 25303 | CurrentSource = L; |
| 25304 | return GT<PT_Ptr>(S, CodePtr()); |
| 25305 | } |
| 25306 | bool EvalEmitter::emitGTFloat(SourceInfo L) { |
| 25307 | if (!isActive()) return true; |
| 25308 | CurrentSource = L; |
| 25309 | return GT<PT_Float>(S, CodePtr()); |
| 25310 | } |
| 25311 | #endif |
| 25312 | #ifdef GET_OPCODE_NAMES |
| 25313 | OP_GetFieldSint8, |
| 25314 | OP_GetFieldUint8, |
| 25315 | OP_GetFieldSint16, |
| 25316 | OP_GetFieldUint16, |
| 25317 | OP_GetFieldSint32, |
| 25318 | OP_GetFieldUint32, |
| 25319 | OP_GetFieldSint64, |
| 25320 | OP_GetFieldUint64, |
| 25321 | OP_GetFieldIntAP, |
| 25322 | OP_GetFieldIntAPS, |
| 25323 | OP_GetFieldBool, |
| 25324 | OP_GetFieldFixedPoint, |
| 25325 | OP_GetFieldPtr, |
| 25326 | OP_GetFieldMemberPtr, |
| 25327 | OP_GetFieldFloat, |
| 25328 | OP_GetFieldReflect, |
| 25329 | #endif |
| 25330 | #ifdef GET_INTERPFN_LIST |
| 25331 | &Interp_GetFieldSint8, |
| 25332 | &Interp_GetFieldUint8, |
| 25333 | &Interp_GetFieldSint16, |
| 25334 | &Interp_GetFieldUint16, |
| 25335 | &Interp_GetFieldSint32, |
| 25336 | &Interp_GetFieldUint32, |
| 25337 | &Interp_GetFieldSint64, |
| 25338 | &Interp_GetFieldUint64, |
| 25339 | &Interp_GetFieldIntAP, |
| 25340 | &Interp_GetFieldIntAPS, |
| 25341 | &Interp_GetFieldBool, |
| 25342 | &Interp_GetFieldFixedPoint, |
| 25343 | &Interp_GetFieldPtr, |
| 25344 | &Interp_GetFieldMemberPtr, |
| 25345 | &Interp_GetFieldFloat, |
| 25346 | &Interp_GetFieldReflect, |
| 25347 | #endif |
| 25348 | #ifdef GET_INTERPFN_DISPATCHERS |
| 25349 | PRESERVE_NONE |
| 25350 | static bool Interp_GetFieldSint8(InterpState &S) { |
| 25351 | { |
| 25352 | CodePtr OpPC = S.PC; |
| 25353 | const auto V0 = ReadArg<uint32_t>(S, S.PC); |
| 25354 | if (!GetField<PT_Sint8>(S, OpPC, V0)) return false; |
| 25355 | } |
| 25356 | #if USE_TAILCALLS |
| 25357 | MUSTTAIL return InterpNext(S); |
| 25358 | #else |
| 25359 | return true; |
| 25360 | #endif |
| 25361 | } |
| 25362 | PRESERVE_NONE |
| 25363 | static bool Interp_GetFieldUint8(InterpState &S) { |
| 25364 | { |
| 25365 | CodePtr OpPC = S.PC; |
| 25366 | const auto V0 = ReadArg<uint32_t>(S, S.PC); |
| 25367 | if (!GetField<PT_Uint8>(S, OpPC, V0)) return false; |
| 25368 | } |
| 25369 | #if USE_TAILCALLS |
| 25370 | MUSTTAIL return InterpNext(S); |
| 25371 | #else |
| 25372 | return true; |
| 25373 | #endif |
| 25374 | } |
| 25375 | PRESERVE_NONE |
| 25376 | static bool Interp_GetFieldSint16(InterpState &S) { |
| 25377 | { |
| 25378 | CodePtr OpPC = S.PC; |
| 25379 | const auto V0 = ReadArg<uint32_t>(S, S.PC); |
| 25380 | if (!GetField<PT_Sint16>(S, OpPC, V0)) return false; |
| 25381 | } |
| 25382 | #if USE_TAILCALLS |
| 25383 | MUSTTAIL return InterpNext(S); |
| 25384 | #else |
| 25385 | return true; |
| 25386 | #endif |
| 25387 | } |
| 25388 | PRESERVE_NONE |
| 25389 | static bool Interp_GetFieldUint16(InterpState &S) { |
| 25390 | { |
| 25391 | CodePtr OpPC = S.PC; |
| 25392 | const auto V0 = ReadArg<uint32_t>(S, S.PC); |
| 25393 | if (!GetField<PT_Uint16>(S, OpPC, V0)) return false; |
| 25394 | } |
| 25395 | #if USE_TAILCALLS |
| 25396 | MUSTTAIL return InterpNext(S); |
| 25397 | #else |
| 25398 | return true; |
| 25399 | #endif |
| 25400 | } |
| 25401 | PRESERVE_NONE |
| 25402 | static bool Interp_GetFieldSint32(InterpState &S) { |
| 25403 | { |
| 25404 | CodePtr OpPC = S.PC; |
| 25405 | const auto V0 = ReadArg<uint32_t>(S, S.PC); |
| 25406 | if (!GetField<PT_Sint32>(S, OpPC, V0)) return false; |
| 25407 | } |
| 25408 | #if USE_TAILCALLS |
| 25409 | MUSTTAIL return InterpNext(S); |
| 25410 | #else |
| 25411 | return true; |
| 25412 | #endif |
| 25413 | } |
| 25414 | PRESERVE_NONE |
| 25415 | static bool Interp_GetFieldUint32(InterpState &S) { |
| 25416 | { |
| 25417 | CodePtr OpPC = S.PC; |
| 25418 | const auto V0 = ReadArg<uint32_t>(S, S.PC); |
| 25419 | if (!GetField<PT_Uint32>(S, OpPC, V0)) return false; |
| 25420 | } |
| 25421 | #if USE_TAILCALLS |
| 25422 | MUSTTAIL return InterpNext(S); |
| 25423 | #else |
| 25424 | return true; |
| 25425 | #endif |
| 25426 | } |
| 25427 | PRESERVE_NONE |
| 25428 | static bool Interp_GetFieldSint64(InterpState &S) { |
| 25429 | { |
| 25430 | CodePtr OpPC = S.PC; |
| 25431 | const auto V0 = ReadArg<uint32_t>(S, S.PC); |
| 25432 | if (!GetField<PT_Sint64>(S, OpPC, V0)) return false; |
| 25433 | } |
| 25434 | #if USE_TAILCALLS |
| 25435 | MUSTTAIL return InterpNext(S); |
| 25436 | #else |
| 25437 | return true; |
| 25438 | #endif |
| 25439 | } |
| 25440 | PRESERVE_NONE |
| 25441 | static bool Interp_GetFieldUint64(InterpState &S) { |
| 25442 | { |
| 25443 | CodePtr OpPC = S.PC; |
| 25444 | const auto V0 = ReadArg<uint32_t>(S, S.PC); |
| 25445 | if (!GetField<PT_Uint64>(S, OpPC, V0)) return false; |
| 25446 | } |
| 25447 | #if USE_TAILCALLS |
| 25448 | MUSTTAIL return InterpNext(S); |
| 25449 | #else |
| 25450 | return true; |
| 25451 | #endif |
| 25452 | } |
| 25453 | PRESERVE_NONE |
| 25454 | static bool Interp_GetFieldIntAP(InterpState &S) { |
| 25455 | { |
| 25456 | CodePtr OpPC = S.PC; |
| 25457 | const auto V0 = ReadArg<uint32_t>(S, S.PC); |
| 25458 | if (!GetField<PT_IntAP>(S, OpPC, V0)) return false; |
| 25459 | } |
| 25460 | #if USE_TAILCALLS |
| 25461 | MUSTTAIL return InterpNext(S); |
| 25462 | #else |
| 25463 | return true; |
| 25464 | #endif |
| 25465 | } |
| 25466 | PRESERVE_NONE |
| 25467 | static bool Interp_GetFieldIntAPS(InterpState &S) { |
| 25468 | { |
| 25469 | CodePtr OpPC = S.PC; |
| 25470 | const auto V0 = ReadArg<uint32_t>(S, S.PC); |
| 25471 | if (!GetField<PT_IntAPS>(S, OpPC, V0)) return false; |
| 25472 | } |
| 25473 | #if USE_TAILCALLS |
| 25474 | MUSTTAIL return InterpNext(S); |
| 25475 | #else |
| 25476 | return true; |
| 25477 | #endif |
| 25478 | } |
| 25479 | PRESERVE_NONE |
| 25480 | static bool Interp_GetFieldBool(InterpState &S) { |
| 25481 | { |
| 25482 | CodePtr OpPC = S.PC; |
| 25483 | const auto V0 = ReadArg<uint32_t>(S, S.PC); |
| 25484 | if (!GetField<PT_Bool>(S, OpPC, V0)) return false; |
| 25485 | } |
| 25486 | #if USE_TAILCALLS |
| 25487 | MUSTTAIL return InterpNext(S); |
| 25488 | #else |
| 25489 | return true; |
| 25490 | #endif |
| 25491 | } |
| 25492 | PRESERVE_NONE |
| 25493 | static bool Interp_GetFieldFixedPoint(InterpState &S) { |
| 25494 | { |
| 25495 | CodePtr OpPC = S.PC; |
| 25496 | const auto V0 = ReadArg<uint32_t>(S, S.PC); |
| 25497 | if (!GetField<PT_FixedPoint>(S, OpPC, V0)) return false; |
| 25498 | } |
| 25499 | #if USE_TAILCALLS |
| 25500 | MUSTTAIL return InterpNext(S); |
| 25501 | #else |
| 25502 | return true; |
| 25503 | #endif |
| 25504 | } |
| 25505 | PRESERVE_NONE |
| 25506 | static bool Interp_GetFieldPtr(InterpState &S) { |
| 25507 | { |
| 25508 | CodePtr OpPC = S.PC; |
| 25509 | const auto V0 = ReadArg<uint32_t>(S, S.PC); |
| 25510 | if (!GetField<PT_Ptr>(S, OpPC, V0)) return false; |
| 25511 | } |
| 25512 | #if USE_TAILCALLS |
| 25513 | MUSTTAIL return InterpNext(S); |
| 25514 | #else |
| 25515 | return true; |
| 25516 | #endif |
| 25517 | } |
| 25518 | PRESERVE_NONE |
| 25519 | static bool Interp_GetFieldMemberPtr(InterpState &S) { |
| 25520 | { |
| 25521 | CodePtr OpPC = S.PC; |
| 25522 | const auto V0 = ReadArg<uint32_t>(S, S.PC); |
| 25523 | if (!GetField<PT_MemberPtr>(S, OpPC, V0)) return false; |
| 25524 | } |
| 25525 | #if USE_TAILCALLS |
| 25526 | MUSTTAIL return InterpNext(S); |
| 25527 | #else |
| 25528 | return true; |
| 25529 | #endif |
| 25530 | } |
| 25531 | PRESERVE_NONE |
| 25532 | static bool Interp_GetFieldFloat(InterpState &S) { |
| 25533 | { |
| 25534 | CodePtr OpPC = S.PC; |
| 25535 | const auto V0 = ReadArg<uint32_t>(S, S.PC); |
| 25536 | if (!GetField<PT_Float>(S, OpPC, V0)) return false; |
| 25537 | } |
| 25538 | #if USE_TAILCALLS |
| 25539 | MUSTTAIL return InterpNext(S); |
| 25540 | #else |
| 25541 | return true; |
| 25542 | #endif |
| 25543 | } |
| 25544 | PRESERVE_NONE |
| 25545 | static bool Interp_GetFieldReflect(InterpState &S) { |
| 25546 | { |
| 25547 | CodePtr OpPC = S.PC; |
| 25548 | const auto V0 = ReadArg<uint32_t>(S, S.PC); |
| 25549 | if (!GetField<PT_Reflect>(S, OpPC, V0)) return false; |
| 25550 | } |
| 25551 | #if USE_TAILCALLS |
| 25552 | MUSTTAIL return InterpNext(S); |
| 25553 | #else |
| 25554 | return true; |
| 25555 | #endif |
| 25556 | } |
| 25557 | #endif |
| 25558 | #ifdef GET_DISASM |
| 25559 | case OP_GetFieldSint8: |
| 25560 | Text.Op = PrintName("GetFieldSint8" ); |
| 25561 | Text.Args.push_back(printArg<uint32_t>(PC)); |
| 25562 | break; |
| 25563 | case OP_GetFieldUint8: |
| 25564 | Text.Op = PrintName("GetFieldUint8" ); |
| 25565 | Text.Args.push_back(printArg<uint32_t>(PC)); |
| 25566 | break; |
| 25567 | case OP_GetFieldSint16: |
| 25568 | Text.Op = PrintName("GetFieldSint16" ); |
| 25569 | Text.Args.push_back(printArg<uint32_t>(PC)); |
| 25570 | break; |
| 25571 | case OP_GetFieldUint16: |
| 25572 | Text.Op = PrintName("GetFieldUint16" ); |
| 25573 | Text.Args.push_back(printArg<uint32_t>(PC)); |
| 25574 | break; |
| 25575 | case OP_GetFieldSint32: |
| 25576 | Text.Op = PrintName("GetFieldSint32" ); |
| 25577 | Text.Args.push_back(printArg<uint32_t>(PC)); |
| 25578 | break; |
| 25579 | case OP_GetFieldUint32: |
| 25580 | Text.Op = PrintName("GetFieldUint32" ); |
| 25581 | Text.Args.push_back(printArg<uint32_t>(PC)); |
| 25582 | break; |
| 25583 | case OP_GetFieldSint64: |
| 25584 | Text.Op = PrintName("GetFieldSint64" ); |
| 25585 | Text.Args.push_back(printArg<uint32_t>(PC)); |
| 25586 | break; |
| 25587 | case OP_GetFieldUint64: |
| 25588 | Text.Op = PrintName("GetFieldUint64" ); |
| 25589 | Text.Args.push_back(printArg<uint32_t>(PC)); |
| 25590 | break; |
| 25591 | case OP_GetFieldIntAP: |
| 25592 | Text.Op = PrintName("GetFieldIntAP" ); |
| 25593 | Text.Args.push_back(printArg<uint32_t>(PC)); |
| 25594 | break; |
| 25595 | case OP_GetFieldIntAPS: |
| 25596 | Text.Op = PrintName("GetFieldIntAPS" ); |
| 25597 | Text.Args.push_back(printArg<uint32_t>(PC)); |
| 25598 | break; |
| 25599 | case OP_GetFieldBool: |
| 25600 | Text.Op = PrintName("GetFieldBool" ); |
| 25601 | Text.Args.push_back(printArg<uint32_t>(PC)); |
| 25602 | break; |
| 25603 | case OP_GetFieldFixedPoint: |
| 25604 | Text.Op = PrintName("GetFieldFixedPoint" ); |
| 25605 | Text.Args.push_back(printArg<uint32_t>(PC)); |
| 25606 | break; |
| 25607 | case OP_GetFieldPtr: |
| 25608 | Text.Op = PrintName("GetFieldPtr" ); |
| 25609 | Text.Args.push_back(printArg<uint32_t>(PC)); |
| 25610 | break; |
| 25611 | case OP_GetFieldMemberPtr: |
| 25612 | Text.Op = PrintName("GetFieldMemberPtr" ); |
| 25613 | Text.Args.push_back(printArg<uint32_t>(PC)); |
| 25614 | break; |
| 25615 | case OP_GetFieldFloat: |
| 25616 | Text.Op = PrintName("GetFieldFloat" ); |
| 25617 | Text.Args.push_back(printArg<uint32_t>(PC)); |
| 25618 | break; |
| 25619 | case OP_GetFieldReflect: |
| 25620 | Text.Op = PrintName("GetFieldReflect" ); |
| 25621 | Text.Args.push_back(printArg<uint32_t>(PC)); |
| 25622 | break; |
| 25623 | #endif |
| 25624 | #if defined(GET_EVAL_PROTO) || defined(GET_LINK_PROTO) |
| 25625 | bool emitGetFieldSint8( uint32_t , SourceInfo); |
| 25626 | bool emitGetFieldUint8( uint32_t , SourceInfo); |
| 25627 | bool emitGetFieldSint16( uint32_t , SourceInfo); |
| 25628 | bool emitGetFieldUint16( uint32_t , SourceInfo); |
| 25629 | bool emitGetFieldSint32( uint32_t , SourceInfo); |
| 25630 | bool emitGetFieldUint32( uint32_t , SourceInfo); |
| 25631 | bool emitGetFieldSint64( uint32_t , SourceInfo); |
| 25632 | bool emitGetFieldUint64( uint32_t , SourceInfo); |
| 25633 | bool emitGetFieldIntAP( uint32_t , SourceInfo); |
| 25634 | bool emitGetFieldIntAPS( uint32_t , SourceInfo); |
| 25635 | bool emitGetFieldBool( uint32_t , SourceInfo); |
| 25636 | bool emitGetFieldFixedPoint( uint32_t , SourceInfo); |
| 25637 | bool emitGetFieldPtr( uint32_t , SourceInfo); |
| 25638 | bool emitGetFieldMemberPtr( uint32_t , SourceInfo); |
| 25639 | bool emitGetFieldFloat( uint32_t , SourceInfo); |
| 25640 | bool emitGetFieldReflect( uint32_t , SourceInfo); |
| 25641 | #endif |
| 25642 | #if defined(GET_EVAL_PROTO) || defined(GET_LINK_PROTO) |
| 25643 | [[nodiscard]] bool emitGetField(PrimType, uint32_t, SourceInfo I); |
| 25644 | #endif |
| 25645 | #if defined(GET_EVAL_IMPL) || defined(GET_LINK_IMPL) |
| 25646 | bool |
| 25647 | #if defined(GET_EVAL_IMPL) |
| 25648 | EvalEmitter |
| 25649 | #else |
| 25650 | ByteCodeEmitter |
| 25651 | #endif |
| 25652 | ::emitGetField(PrimType T0, uint32_t A0, SourceInfo I) { |
| 25653 | switch (T0) { |
| 25654 | case PT_Sint8: |
| 25655 | return emitGetFieldSint8(A0, I); |
| 25656 | case PT_Uint8: |
| 25657 | return emitGetFieldUint8(A0, I); |
| 25658 | case PT_Sint16: |
| 25659 | return emitGetFieldSint16(A0, I); |
| 25660 | case PT_Uint16: |
| 25661 | return emitGetFieldUint16(A0, I); |
| 25662 | case PT_Sint32: |
| 25663 | return emitGetFieldSint32(A0, I); |
| 25664 | case PT_Uint32: |
| 25665 | return emitGetFieldUint32(A0, I); |
| 25666 | case PT_Sint64: |
| 25667 | return emitGetFieldSint64(A0, I); |
| 25668 | case PT_Uint64: |
| 25669 | return emitGetFieldUint64(A0, I); |
| 25670 | case PT_IntAP: |
| 25671 | return emitGetFieldIntAP(A0, I); |
| 25672 | case PT_IntAPS: |
| 25673 | return emitGetFieldIntAPS(A0, I); |
| 25674 | case PT_Bool: |
| 25675 | return emitGetFieldBool(A0, I); |
| 25676 | case PT_FixedPoint: |
| 25677 | return emitGetFieldFixedPoint(A0, I); |
| 25678 | case PT_Ptr: |
| 25679 | return emitGetFieldPtr(A0, I); |
| 25680 | case PT_MemberPtr: |
| 25681 | return emitGetFieldMemberPtr(A0, I); |
| 25682 | case PT_Float: |
| 25683 | return emitGetFieldFloat(A0, I); |
| 25684 | case PT_Reflect: |
| 25685 | return emitGetFieldReflect(A0, I); |
| 25686 | } |
| 25687 | llvm_unreachable("invalid enum value" ); |
| 25688 | } |
| 25689 | #endif |
| 25690 | #ifdef GET_LINK_IMPL |
| 25691 | bool ByteCodeEmitter::emitGetFieldSint8( uint32_t A0, SourceInfo L) { |
| 25692 | return emitOp<uint32_t>(OP_GetFieldSint8, A0, L); |
| 25693 | } |
| 25694 | bool ByteCodeEmitter::emitGetFieldUint8( uint32_t A0, SourceInfo L) { |
| 25695 | return emitOp<uint32_t>(OP_GetFieldUint8, A0, L); |
| 25696 | } |
| 25697 | bool ByteCodeEmitter::emitGetFieldSint16( uint32_t A0, SourceInfo L) { |
| 25698 | return emitOp<uint32_t>(OP_GetFieldSint16, A0, L); |
| 25699 | } |
| 25700 | bool ByteCodeEmitter::emitGetFieldUint16( uint32_t A0, SourceInfo L) { |
| 25701 | return emitOp<uint32_t>(OP_GetFieldUint16, A0, L); |
| 25702 | } |
| 25703 | bool ByteCodeEmitter::emitGetFieldSint32( uint32_t A0, SourceInfo L) { |
| 25704 | return emitOp<uint32_t>(OP_GetFieldSint32, A0, L); |
| 25705 | } |
| 25706 | bool ByteCodeEmitter::emitGetFieldUint32( uint32_t A0, SourceInfo L) { |
| 25707 | return emitOp<uint32_t>(OP_GetFieldUint32, A0, L); |
| 25708 | } |
| 25709 | bool ByteCodeEmitter::emitGetFieldSint64( uint32_t A0, SourceInfo L) { |
| 25710 | return emitOp<uint32_t>(OP_GetFieldSint64, A0, L); |
| 25711 | } |
| 25712 | bool ByteCodeEmitter::emitGetFieldUint64( uint32_t A0, SourceInfo L) { |
| 25713 | return emitOp<uint32_t>(OP_GetFieldUint64, A0, L); |
| 25714 | } |
| 25715 | bool ByteCodeEmitter::emitGetFieldIntAP( uint32_t A0, SourceInfo L) { |
| 25716 | return emitOp<uint32_t>(OP_GetFieldIntAP, A0, L); |
| 25717 | } |
| 25718 | bool ByteCodeEmitter::emitGetFieldIntAPS( uint32_t A0, SourceInfo L) { |
| 25719 | return emitOp<uint32_t>(OP_GetFieldIntAPS, A0, L); |
| 25720 | } |
| 25721 | bool ByteCodeEmitter::emitGetFieldBool( uint32_t A0, SourceInfo L) { |
| 25722 | return emitOp<uint32_t>(OP_GetFieldBool, A0, L); |
| 25723 | } |
| 25724 | bool ByteCodeEmitter::emitGetFieldFixedPoint( uint32_t A0, SourceInfo L) { |
| 25725 | return emitOp<uint32_t>(OP_GetFieldFixedPoint, A0, L); |
| 25726 | } |
| 25727 | bool ByteCodeEmitter::emitGetFieldPtr( uint32_t A0, SourceInfo L) { |
| 25728 | return emitOp<uint32_t>(OP_GetFieldPtr, A0, L); |
| 25729 | } |
| 25730 | bool ByteCodeEmitter::emitGetFieldMemberPtr( uint32_t A0, SourceInfo L) { |
| 25731 | return emitOp<uint32_t>(OP_GetFieldMemberPtr, A0, L); |
| 25732 | } |
| 25733 | bool ByteCodeEmitter::emitGetFieldFloat( uint32_t A0, SourceInfo L) { |
| 25734 | return emitOp<uint32_t>(OP_GetFieldFloat, A0, L); |
| 25735 | } |
| 25736 | bool ByteCodeEmitter::emitGetFieldReflect( uint32_t A0, SourceInfo L) { |
| 25737 | return emitOp<uint32_t>(OP_GetFieldReflect, A0, L); |
| 25738 | } |
| 25739 | #endif |
| 25740 | #ifdef GET_EVAL_IMPL |
| 25741 | bool EvalEmitter::emitGetFieldSint8( uint32_t A0, SourceInfo L) { |
| 25742 | if (!isActive()) return true; |
| 25743 | CurrentSource = L; |
| 25744 | return GetField<PT_Sint8>(S, CodePtr(), A0); |
| 25745 | } |
| 25746 | bool EvalEmitter::emitGetFieldUint8( uint32_t A0, SourceInfo L) { |
| 25747 | if (!isActive()) return true; |
| 25748 | CurrentSource = L; |
| 25749 | return GetField<PT_Uint8>(S, CodePtr(), A0); |
| 25750 | } |
| 25751 | bool EvalEmitter::emitGetFieldSint16( uint32_t A0, SourceInfo L) { |
| 25752 | if (!isActive()) return true; |
| 25753 | CurrentSource = L; |
| 25754 | return GetField<PT_Sint16>(S, CodePtr(), A0); |
| 25755 | } |
| 25756 | bool EvalEmitter::emitGetFieldUint16( uint32_t A0, SourceInfo L) { |
| 25757 | if (!isActive()) return true; |
| 25758 | CurrentSource = L; |
| 25759 | return GetField<PT_Uint16>(S, CodePtr(), A0); |
| 25760 | } |
| 25761 | bool EvalEmitter::emitGetFieldSint32( uint32_t A0, SourceInfo L) { |
| 25762 | if (!isActive()) return true; |
| 25763 | CurrentSource = L; |
| 25764 | return GetField<PT_Sint32>(S, CodePtr(), A0); |
| 25765 | } |
| 25766 | bool EvalEmitter::emitGetFieldUint32( uint32_t A0, SourceInfo L) { |
| 25767 | if (!isActive()) return true; |
| 25768 | CurrentSource = L; |
| 25769 | return GetField<PT_Uint32>(S, CodePtr(), A0); |
| 25770 | } |
| 25771 | bool EvalEmitter::emitGetFieldSint64( uint32_t A0, SourceInfo L) { |
| 25772 | if (!isActive()) return true; |
| 25773 | CurrentSource = L; |
| 25774 | return GetField<PT_Sint64>(S, CodePtr(), A0); |
| 25775 | } |
| 25776 | bool EvalEmitter::emitGetFieldUint64( uint32_t A0, SourceInfo L) { |
| 25777 | if (!isActive()) return true; |
| 25778 | CurrentSource = L; |
| 25779 | return GetField<PT_Uint64>(S, CodePtr(), A0); |
| 25780 | } |
| 25781 | bool EvalEmitter::emitGetFieldIntAP( uint32_t A0, SourceInfo L) { |
| 25782 | if (!isActive()) return true; |
| 25783 | CurrentSource = L; |
| 25784 | return GetField<PT_IntAP>(S, CodePtr(), A0); |
| 25785 | } |
| 25786 | bool EvalEmitter::emitGetFieldIntAPS( uint32_t A0, SourceInfo L) { |
| 25787 | if (!isActive()) return true; |
| 25788 | CurrentSource = L; |
| 25789 | return GetField<PT_IntAPS>(S, CodePtr(), A0); |
| 25790 | } |
| 25791 | bool EvalEmitter::emitGetFieldBool( uint32_t A0, SourceInfo L) { |
| 25792 | if (!isActive()) return true; |
| 25793 | CurrentSource = L; |
| 25794 | return GetField<PT_Bool>(S, CodePtr(), A0); |
| 25795 | } |
| 25796 | bool EvalEmitter::emitGetFieldFixedPoint( uint32_t A0, SourceInfo L) { |
| 25797 | if (!isActive()) return true; |
| 25798 | CurrentSource = L; |
| 25799 | return GetField<PT_FixedPoint>(S, CodePtr(), A0); |
| 25800 | } |
| 25801 | bool EvalEmitter::emitGetFieldPtr( uint32_t A0, SourceInfo L) { |
| 25802 | if (!isActive()) return true; |
| 25803 | CurrentSource = L; |
| 25804 | return GetField<PT_Ptr>(S, CodePtr(), A0); |
| 25805 | } |
| 25806 | bool EvalEmitter::emitGetFieldMemberPtr( uint32_t A0, SourceInfo L) { |
| 25807 | if (!isActive()) return true; |
| 25808 | CurrentSource = L; |
| 25809 | return GetField<PT_MemberPtr>(S, CodePtr(), A0); |
| 25810 | } |
| 25811 | bool EvalEmitter::emitGetFieldFloat( uint32_t A0, SourceInfo L) { |
| 25812 | if (!isActive()) return true; |
| 25813 | CurrentSource = L; |
| 25814 | return GetField<PT_Float>(S, CodePtr(), A0); |
| 25815 | } |
| 25816 | bool EvalEmitter::emitGetFieldReflect( uint32_t A0, SourceInfo L) { |
| 25817 | if (!isActive()) return true; |
| 25818 | CurrentSource = L; |
| 25819 | return GetField<PT_Reflect>(S, CodePtr(), A0); |
| 25820 | } |
| 25821 | #endif |
| 25822 | #ifdef GET_OPCODE_NAMES |
| 25823 | OP_GetFieldPopSint8, |
| 25824 | OP_GetFieldPopUint8, |
| 25825 | OP_GetFieldPopSint16, |
| 25826 | OP_GetFieldPopUint16, |
| 25827 | OP_GetFieldPopSint32, |
| 25828 | OP_GetFieldPopUint32, |
| 25829 | OP_GetFieldPopSint64, |
| 25830 | OP_GetFieldPopUint64, |
| 25831 | OP_GetFieldPopIntAP, |
| 25832 | OP_GetFieldPopIntAPS, |
| 25833 | OP_GetFieldPopBool, |
| 25834 | OP_GetFieldPopFixedPoint, |
| 25835 | OP_GetFieldPopPtr, |
| 25836 | OP_GetFieldPopMemberPtr, |
| 25837 | OP_GetFieldPopFloat, |
| 25838 | OP_GetFieldPopReflect, |
| 25839 | #endif |
| 25840 | #ifdef GET_INTERPFN_LIST |
| 25841 | &Interp_GetFieldPopSint8, |
| 25842 | &Interp_GetFieldPopUint8, |
| 25843 | &Interp_GetFieldPopSint16, |
| 25844 | &Interp_GetFieldPopUint16, |
| 25845 | &Interp_GetFieldPopSint32, |
| 25846 | &Interp_GetFieldPopUint32, |
| 25847 | &Interp_GetFieldPopSint64, |
| 25848 | &Interp_GetFieldPopUint64, |
| 25849 | &Interp_GetFieldPopIntAP, |
| 25850 | &Interp_GetFieldPopIntAPS, |
| 25851 | &Interp_GetFieldPopBool, |
| 25852 | &Interp_GetFieldPopFixedPoint, |
| 25853 | &Interp_GetFieldPopPtr, |
| 25854 | &Interp_GetFieldPopMemberPtr, |
| 25855 | &Interp_GetFieldPopFloat, |
| 25856 | &Interp_GetFieldPopReflect, |
| 25857 | #endif |
| 25858 | #ifdef GET_INTERPFN_DISPATCHERS |
| 25859 | PRESERVE_NONE |
| 25860 | static bool Interp_GetFieldPopSint8(InterpState &S) { |
| 25861 | { |
| 25862 | CodePtr OpPC = S.PC; |
| 25863 | const auto V0 = ReadArg<uint32_t>(S, S.PC); |
| 25864 | if (!GetFieldPop<PT_Sint8>(S, OpPC, V0)) return false; |
| 25865 | } |
| 25866 | #if USE_TAILCALLS |
| 25867 | MUSTTAIL return InterpNext(S); |
| 25868 | #else |
| 25869 | return true; |
| 25870 | #endif |
| 25871 | } |
| 25872 | PRESERVE_NONE |
| 25873 | static bool Interp_GetFieldPopUint8(InterpState &S) { |
| 25874 | { |
| 25875 | CodePtr OpPC = S.PC; |
| 25876 | const auto V0 = ReadArg<uint32_t>(S, S.PC); |
| 25877 | if (!GetFieldPop<PT_Uint8>(S, OpPC, V0)) return false; |
| 25878 | } |
| 25879 | #if USE_TAILCALLS |
| 25880 | MUSTTAIL return InterpNext(S); |
| 25881 | #else |
| 25882 | return true; |
| 25883 | #endif |
| 25884 | } |
| 25885 | PRESERVE_NONE |
| 25886 | static bool Interp_GetFieldPopSint16(InterpState &S) { |
| 25887 | { |
| 25888 | CodePtr OpPC = S.PC; |
| 25889 | const auto V0 = ReadArg<uint32_t>(S, S.PC); |
| 25890 | if (!GetFieldPop<PT_Sint16>(S, OpPC, V0)) return false; |
| 25891 | } |
| 25892 | #if USE_TAILCALLS |
| 25893 | MUSTTAIL return InterpNext(S); |
| 25894 | #else |
| 25895 | return true; |
| 25896 | #endif |
| 25897 | } |
| 25898 | PRESERVE_NONE |
| 25899 | static bool Interp_GetFieldPopUint16(InterpState &S) { |
| 25900 | { |
| 25901 | CodePtr OpPC = S.PC; |
| 25902 | const auto V0 = ReadArg<uint32_t>(S, S.PC); |
| 25903 | if (!GetFieldPop<PT_Uint16>(S, OpPC, V0)) return false; |
| 25904 | } |
| 25905 | #if USE_TAILCALLS |
| 25906 | MUSTTAIL return InterpNext(S); |
| 25907 | #else |
| 25908 | return true; |
| 25909 | #endif |
| 25910 | } |
| 25911 | PRESERVE_NONE |
| 25912 | static bool Interp_GetFieldPopSint32(InterpState &S) { |
| 25913 | { |
| 25914 | CodePtr OpPC = S.PC; |
| 25915 | const auto V0 = ReadArg<uint32_t>(S, S.PC); |
| 25916 | if (!GetFieldPop<PT_Sint32>(S, OpPC, V0)) return false; |
| 25917 | } |
| 25918 | #if USE_TAILCALLS |
| 25919 | MUSTTAIL return InterpNext(S); |
| 25920 | #else |
| 25921 | return true; |
| 25922 | #endif |
| 25923 | } |
| 25924 | PRESERVE_NONE |
| 25925 | static bool Interp_GetFieldPopUint32(InterpState &S) { |
| 25926 | { |
| 25927 | CodePtr OpPC = S.PC; |
| 25928 | const auto V0 = ReadArg<uint32_t>(S, S.PC); |
| 25929 | if (!GetFieldPop<PT_Uint32>(S, OpPC, V0)) return false; |
| 25930 | } |
| 25931 | #if USE_TAILCALLS |
| 25932 | MUSTTAIL return InterpNext(S); |
| 25933 | #else |
| 25934 | return true; |
| 25935 | #endif |
| 25936 | } |
| 25937 | PRESERVE_NONE |
| 25938 | static bool Interp_GetFieldPopSint64(InterpState &S) { |
| 25939 | { |
| 25940 | CodePtr OpPC = S.PC; |
| 25941 | const auto V0 = ReadArg<uint32_t>(S, S.PC); |
| 25942 | if (!GetFieldPop<PT_Sint64>(S, OpPC, V0)) return false; |
| 25943 | } |
| 25944 | #if USE_TAILCALLS |
| 25945 | MUSTTAIL return InterpNext(S); |
| 25946 | #else |
| 25947 | return true; |
| 25948 | #endif |
| 25949 | } |
| 25950 | PRESERVE_NONE |
| 25951 | static bool Interp_GetFieldPopUint64(InterpState &S) { |
| 25952 | { |
| 25953 | CodePtr OpPC = S.PC; |
| 25954 | const auto V0 = ReadArg<uint32_t>(S, S.PC); |
| 25955 | if (!GetFieldPop<PT_Uint64>(S, OpPC, V0)) return false; |
| 25956 | } |
| 25957 | #if USE_TAILCALLS |
| 25958 | MUSTTAIL return InterpNext(S); |
| 25959 | #else |
| 25960 | return true; |
| 25961 | #endif |
| 25962 | } |
| 25963 | PRESERVE_NONE |
| 25964 | static bool Interp_GetFieldPopIntAP(InterpState &S) { |
| 25965 | { |
| 25966 | CodePtr OpPC = S.PC; |
| 25967 | const auto V0 = ReadArg<uint32_t>(S, S.PC); |
| 25968 | if (!GetFieldPop<PT_IntAP>(S, OpPC, V0)) return false; |
| 25969 | } |
| 25970 | #if USE_TAILCALLS |
| 25971 | MUSTTAIL return InterpNext(S); |
| 25972 | #else |
| 25973 | return true; |
| 25974 | #endif |
| 25975 | } |
| 25976 | PRESERVE_NONE |
| 25977 | static bool Interp_GetFieldPopIntAPS(InterpState &S) { |
| 25978 | { |
| 25979 | CodePtr OpPC = S.PC; |
| 25980 | const auto V0 = ReadArg<uint32_t>(S, S.PC); |
| 25981 | if (!GetFieldPop<PT_IntAPS>(S, OpPC, V0)) return false; |
| 25982 | } |
| 25983 | #if USE_TAILCALLS |
| 25984 | MUSTTAIL return InterpNext(S); |
| 25985 | #else |
| 25986 | return true; |
| 25987 | #endif |
| 25988 | } |
| 25989 | PRESERVE_NONE |
| 25990 | static bool Interp_GetFieldPopBool(InterpState &S) { |
| 25991 | { |
| 25992 | CodePtr OpPC = S.PC; |
| 25993 | const auto V0 = ReadArg<uint32_t>(S, S.PC); |
| 25994 | if (!GetFieldPop<PT_Bool>(S, OpPC, V0)) return false; |
| 25995 | } |
| 25996 | #if USE_TAILCALLS |
| 25997 | MUSTTAIL return InterpNext(S); |
| 25998 | #else |
| 25999 | return true; |
| 26000 | #endif |
| 26001 | } |
| 26002 | PRESERVE_NONE |
| 26003 | static bool Interp_GetFieldPopFixedPoint(InterpState &S) { |
| 26004 | { |
| 26005 | CodePtr OpPC = S.PC; |
| 26006 | const auto V0 = ReadArg<uint32_t>(S, S.PC); |
| 26007 | if (!GetFieldPop<PT_FixedPoint>(S, OpPC, V0)) return false; |
| 26008 | } |
| 26009 | #if USE_TAILCALLS |
| 26010 | MUSTTAIL return InterpNext(S); |
| 26011 | #else |
| 26012 | return true; |
| 26013 | #endif |
| 26014 | } |
| 26015 | PRESERVE_NONE |
| 26016 | static bool Interp_GetFieldPopPtr(InterpState &S) { |
| 26017 | { |
| 26018 | CodePtr OpPC = S.PC; |
| 26019 | const auto V0 = ReadArg<uint32_t>(S, S.PC); |
| 26020 | if (!GetFieldPop<PT_Ptr>(S, OpPC, V0)) return false; |
| 26021 | } |
| 26022 | #if USE_TAILCALLS |
| 26023 | MUSTTAIL return InterpNext(S); |
| 26024 | #else |
| 26025 | return true; |
| 26026 | #endif |
| 26027 | } |
| 26028 | PRESERVE_NONE |
| 26029 | static bool Interp_GetFieldPopMemberPtr(InterpState &S) { |
| 26030 | { |
| 26031 | CodePtr OpPC = S.PC; |
| 26032 | const auto V0 = ReadArg<uint32_t>(S, S.PC); |
| 26033 | if (!GetFieldPop<PT_MemberPtr>(S, OpPC, V0)) return false; |
| 26034 | } |
| 26035 | #if USE_TAILCALLS |
| 26036 | MUSTTAIL return InterpNext(S); |
| 26037 | #else |
| 26038 | return true; |
| 26039 | #endif |
| 26040 | } |
| 26041 | PRESERVE_NONE |
| 26042 | static bool Interp_GetFieldPopFloat(InterpState &S) { |
| 26043 | { |
| 26044 | CodePtr OpPC = S.PC; |
| 26045 | const auto V0 = ReadArg<uint32_t>(S, S.PC); |
| 26046 | if (!GetFieldPop<PT_Float>(S, OpPC, V0)) return false; |
| 26047 | } |
| 26048 | #if USE_TAILCALLS |
| 26049 | MUSTTAIL return InterpNext(S); |
| 26050 | #else |
| 26051 | return true; |
| 26052 | #endif |
| 26053 | } |
| 26054 | PRESERVE_NONE |
| 26055 | static bool Interp_GetFieldPopReflect(InterpState &S) { |
| 26056 | { |
| 26057 | CodePtr OpPC = S.PC; |
| 26058 | const auto V0 = ReadArg<uint32_t>(S, S.PC); |
| 26059 | if (!GetFieldPop<PT_Reflect>(S, OpPC, V0)) return false; |
| 26060 | } |
| 26061 | #if USE_TAILCALLS |
| 26062 | MUSTTAIL return InterpNext(S); |
| 26063 | #else |
| 26064 | return true; |
| 26065 | #endif |
| 26066 | } |
| 26067 | #endif |
| 26068 | #ifdef GET_DISASM |
| 26069 | case OP_GetFieldPopSint8: |
| 26070 | Text.Op = PrintName("GetFieldPopSint8" ); |
| 26071 | Text.Args.push_back(printArg<uint32_t>(PC)); |
| 26072 | break; |
| 26073 | case OP_GetFieldPopUint8: |
| 26074 | Text.Op = PrintName("GetFieldPopUint8" ); |
| 26075 | Text.Args.push_back(printArg<uint32_t>(PC)); |
| 26076 | break; |
| 26077 | case OP_GetFieldPopSint16: |
| 26078 | Text.Op = PrintName("GetFieldPopSint16" ); |
| 26079 | Text.Args.push_back(printArg<uint32_t>(PC)); |
| 26080 | break; |
| 26081 | case OP_GetFieldPopUint16: |
| 26082 | Text.Op = PrintName("GetFieldPopUint16" ); |
| 26083 | Text.Args.push_back(printArg<uint32_t>(PC)); |
| 26084 | break; |
| 26085 | case OP_GetFieldPopSint32: |
| 26086 | Text.Op = PrintName("GetFieldPopSint32" ); |
| 26087 | Text.Args.push_back(printArg<uint32_t>(PC)); |
| 26088 | break; |
| 26089 | case OP_GetFieldPopUint32: |
| 26090 | Text.Op = PrintName("GetFieldPopUint32" ); |
| 26091 | Text.Args.push_back(printArg<uint32_t>(PC)); |
| 26092 | break; |
| 26093 | case OP_GetFieldPopSint64: |
| 26094 | Text.Op = PrintName("GetFieldPopSint64" ); |
| 26095 | Text.Args.push_back(printArg<uint32_t>(PC)); |
| 26096 | break; |
| 26097 | case OP_GetFieldPopUint64: |
| 26098 | Text.Op = PrintName("GetFieldPopUint64" ); |
| 26099 | Text.Args.push_back(printArg<uint32_t>(PC)); |
| 26100 | break; |
| 26101 | case OP_GetFieldPopIntAP: |
| 26102 | Text.Op = PrintName("GetFieldPopIntAP" ); |
| 26103 | Text.Args.push_back(printArg<uint32_t>(PC)); |
| 26104 | break; |
| 26105 | case OP_GetFieldPopIntAPS: |
| 26106 | Text.Op = PrintName("GetFieldPopIntAPS" ); |
| 26107 | Text.Args.push_back(printArg<uint32_t>(PC)); |
| 26108 | break; |
| 26109 | case OP_GetFieldPopBool: |
| 26110 | Text.Op = PrintName("GetFieldPopBool" ); |
| 26111 | Text.Args.push_back(printArg<uint32_t>(PC)); |
| 26112 | break; |
| 26113 | case OP_GetFieldPopFixedPoint: |
| 26114 | Text.Op = PrintName("GetFieldPopFixedPoint" ); |
| 26115 | Text.Args.push_back(printArg<uint32_t>(PC)); |
| 26116 | break; |
| 26117 | case OP_GetFieldPopPtr: |
| 26118 | Text.Op = PrintName("GetFieldPopPtr" ); |
| 26119 | Text.Args.push_back(printArg<uint32_t>(PC)); |
| 26120 | break; |
| 26121 | case OP_GetFieldPopMemberPtr: |
| 26122 | Text.Op = PrintName("GetFieldPopMemberPtr" ); |
| 26123 | Text.Args.push_back(printArg<uint32_t>(PC)); |
| 26124 | break; |
| 26125 | case OP_GetFieldPopFloat: |
| 26126 | Text.Op = PrintName("GetFieldPopFloat" ); |
| 26127 | Text.Args.push_back(printArg<uint32_t>(PC)); |
| 26128 | break; |
| 26129 | case OP_GetFieldPopReflect: |
| 26130 | Text.Op = PrintName("GetFieldPopReflect" ); |
| 26131 | Text.Args.push_back(printArg<uint32_t>(PC)); |
| 26132 | break; |
| 26133 | #endif |
| 26134 | #if defined(GET_EVAL_PROTO) || defined(GET_LINK_PROTO) |
| 26135 | bool emitGetFieldPopSint8( uint32_t , SourceInfo); |
| 26136 | bool emitGetFieldPopUint8( uint32_t , SourceInfo); |
| 26137 | bool emitGetFieldPopSint16( uint32_t , SourceInfo); |
| 26138 | bool emitGetFieldPopUint16( uint32_t , SourceInfo); |
| 26139 | bool emitGetFieldPopSint32( uint32_t , SourceInfo); |
| 26140 | bool emitGetFieldPopUint32( uint32_t , SourceInfo); |
| 26141 | bool emitGetFieldPopSint64( uint32_t , SourceInfo); |
| 26142 | bool emitGetFieldPopUint64( uint32_t , SourceInfo); |
| 26143 | bool emitGetFieldPopIntAP( uint32_t , SourceInfo); |
| 26144 | bool emitGetFieldPopIntAPS( uint32_t , SourceInfo); |
| 26145 | bool emitGetFieldPopBool( uint32_t , SourceInfo); |
| 26146 | bool emitGetFieldPopFixedPoint( uint32_t , SourceInfo); |
| 26147 | bool emitGetFieldPopPtr( uint32_t , SourceInfo); |
| 26148 | bool emitGetFieldPopMemberPtr( uint32_t , SourceInfo); |
| 26149 | bool emitGetFieldPopFloat( uint32_t , SourceInfo); |
| 26150 | bool emitGetFieldPopReflect( uint32_t , SourceInfo); |
| 26151 | #endif |
| 26152 | #if defined(GET_EVAL_PROTO) || defined(GET_LINK_PROTO) |
| 26153 | [[nodiscard]] bool emitGetFieldPop(PrimType, uint32_t, SourceInfo I); |
| 26154 | #endif |
| 26155 | #if defined(GET_EVAL_IMPL) || defined(GET_LINK_IMPL) |
| 26156 | bool |
| 26157 | #if defined(GET_EVAL_IMPL) |
| 26158 | EvalEmitter |
| 26159 | #else |
| 26160 | ByteCodeEmitter |
| 26161 | #endif |
| 26162 | ::emitGetFieldPop(PrimType T0, uint32_t A0, SourceInfo I) { |
| 26163 | switch (T0) { |
| 26164 | case PT_Sint8: |
| 26165 | return emitGetFieldPopSint8(A0, I); |
| 26166 | case PT_Uint8: |
| 26167 | return emitGetFieldPopUint8(A0, I); |
| 26168 | case PT_Sint16: |
| 26169 | return emitGetFieldPopSint16(A0, I); |
| 26170 | case PT_Uint16: |
| 26171 | return emitGetFieldPopUint16(A0, I); |
| 26172 | case PT_Sint32: |
| 26173 | return emitGetFieldPopSint32(A0, I); |
| 26174 | case PT_Uint32: |
| 26175 | return emitGetFieldPopUint32(A0, I); |
| 26176 | case PT_Sint64: |
| 26177 | return emitGetFieldPopSint64(A0, I); |
| 26178 | case PT_Uint64: |
| 26179 | return emitGetFieldPopUint64(A0, I); |
| 26180 | case PT_IntAP: |
| 26181 | return emitGetFieldPopIntAP(A0, I); |
| 26182 | case PT_IntAPS: |
| 26183 | return emitGetFieldPopIntAPS(A0, I); |
| 26184 | case PT_Bool: |
| 26185 | return emitGetFieldPopBool(A0, I); |
| 26186 | case PT_FixedPoint: |
| 26187 | return emitGetFieldPopFixedPoint(A0, I); |
| 26188 | case PT_Ptr: |
| 26189 | return emitGetFieldPopPtr(A0, I); |
| 26190 | case PT_MemberPtr: |
| 26191 | return emitGetFieldPopMemberPtr(A0, I); |
| 26192 | case PT_Float: |
| 26193 | return emitGetFieldPopFloat(A0, I); |
| 26194 | case PT_Reflect: |
| 26195 | return emitGetFieldPopReflect(A0, I); |
| 26196 | } |
| 26197 | llvm_unreachable("invalid enum value" ); |
| 26198 | } |
| 26199 | #endif |
| 26200 | #ifdef GET_LINK_IMPL |
| 26201 | bool ByteCodeEmitter::emitGetFieldPopSint8( uint32_t A0, SourceInfo L) { |
| 26202 | return emitOp<uint32_t>(OP_GetFieldPopSint8, A0, L); |
| 26203 | } |
| 26204 | bool ByteCodeEmitter::emitGetFieldPopUint8( uint32_t A0, SourceInfo L) { |
| 26205 | return emitOp<uint32_t>(OP_GetFieldPopUint8, A0, L); |
| 26206 | } |
| 26207 | bool ByteCodeEmitter::emitGetFieldPopSint16( uint32_t A0, SourceInfo L) { |
| 26208 | return emitOp<uint32_t>(OP_GetFieldPopSint16, A0, L); |
| 26209 | } |
| 26210 | bool ByteCodeEmitter::emitGetFieldPopUint16( uint32_t A0, SourceInfo L) { |
| 26211 | return emitOp<uint32_t>(OP_GetFieldPopUint16, A0, L); |
| 26212 | } |
| 26213 | bool ByteCodeEmitter::emitGetFieldPopSint32( uint32_t A0, SourceInfo L) { |
| 26214 | return emitOp<uint32_t>(OP_GetFieldPopSint32, A0, L); |
| 26215 | } |
| 26216 | bool ByteCodeEmitter::emitGetFieldPopUint32( uint32_t A0, SourceInfo L) { |
| 26217 | return emitOp<uint32_t>(OP_GetFieldPopUint32, A0, L); |
| 26218 | } |
| 26219 | bool ByteCodeEmitter::emitGetFieldPopSint64( uint32_t A0, SourceInfo L) { |
| 26220 | return emitOp<uint32_t>(OP_GetFieldPopSint64, A0, L); |
| 26221 | } |
| 26222 | bool ByteCodeEmitter::emitGetFieldPopUint64( uint32_t A0, SourceInfo L) { |
| 26223 | return emitOp<uint32_t>(OP_GetFieldPopUint64, A0, L); |
| 26224 | } |
| 26225 | bool ByteCodeEmitter::emitGetFieldPopIntAP( uint32_t A0, SourceInfo L) { |
| 26226 | return emitOp<uint32_t>(OP_GetFieldPopIntAP, A0, L); |
| 26227 | } |
| 26228 | bool ByteCodeEmitter::emitGetFieldPopIntAPS( uint32_t A0, SourceInfo L) { |
| 26229 | return emitOp<uint32_t>(OP_GetFieldPopIntAPS, A0, L); |
| 26230 | } |
| 26231 | bool ByteCodeEmitter::emitGetFieldPopBool( uint32_t A0, SourceInfo L) { |
| 26232 | return emitOp<uint32_t>(OP_GetFieldPopBool, A0, L); |
| 26233 | } |
| 26234 | bool ByteCodeEmitter::emitGetFieldPopFixedPoint( uint32_t A0, SourceInfo L) { |
| 26235 | return emitOp<uint32_t>(OP_GetFieldPopFixedPoint, A0, L); |
| 26236 | } |
| 26237 | bool ByteCodeEmitter::emitGetFieldPopPtr( uint32_t A0, SourceInfo L) { |
| 26238 | return emitOp<uint32_t>(OP_GetFieldPopPtr, A0, L); |
| 26239 | } |
| 26240 | bool ByteCodeEmitter::emitGetFieldPopMemberPtr( uint32_t A0, SourceInfo L) { |
| 26241 | return emitOp<uint32_t>(OP_GetFieldPopMemberPtr, A0, L); |
| 26242 | } |
| 26243 | bool ByteCodeEmitter::emitGetFieldPopFloat( uint32_t A0, SourceInfo L) { |
| 26244 | return emitOp<uint32_t>(OP_GetFieldPopFloat, A0, L); |
| 26245 | } |
| 26246 | bool ByteCodeEmitter::emitGetFieldPopReflect( uint32_t A0, SourceInfo L) { |
| 26247 | return emitOp<uint32_t>(OP_GetFieldPopReflect, A0, L); |
| 26248 | } |
| 26249 | #endif |
| 26250 | #ifdef GET_EVAL_IMPL |
| 26251 | bool EvalEmitter::emitGetFieldPopSint8( uint32_t A0, SourceInfo L) { |
| 26252 | if (!isActive()) return true; |
| 26253 | CurrentSource = L; |
| 26254 | return GetFieldPop<PT_Sint8>(S, CodePtr(), A0); |
| 26255 | } |
| 26256 | bool EvalEmitter::emitGetFieldPopUint8( uint32_t A0, SourceInfo L) { |
| 26257 | if (!isActive()) return true; |
| 26258 | CurrentSource = L; |
| 26259 | return GetFieldPop<PT_Uint8>(S, CodePtr(), A0); |
| 26260 | } |
| 26261 | bool EvalEmitter::emitGetFieldPopSint16( uint32_t A0, SourceInfo L) { |
| 26262 | if (!isActive()) return true; |
| 26263 | CurrentSource = L; |
| 26264 | return GetFieldPop<PT_Sint16>(S, CodePtr(), A0); |
| 26265 | } |
| 26266 | bool EvalEmitter::emitGetFieldPopUint16( uint32_t A0, SourceInfo L) { |
| 26267 | if (!isActive()) return true; |
| 26268 | CurrentSource = L; |
| 26269 | return GetFieldPop<PT_Uint16>(S, CodePtr(), A0); |
| 26270 | } |
| 26271 | bool EvalEmitter::emitGetFieldPopSint32( uint32_t A0, SourceInfo L) { |
| 26272 | if (!isActive()) return true; |
| 26273 | CurrentSource = L; |
| 26274 | return GetFieldPop<PT_Sint32>(S, CodePtr(), A0); |
| 26275 | } |
| 26276 | bool EvalEmitter::emitGetFieldPopUint32( uint32_t A0, SourceInfo L) { |
| 26277 | if (!isActive()) return true; |
| 26278 | CurrentSource = L; |
| 26279 | return GetFieldPop<PT_Uint32>(S, CodePtr(), A0); |
| 26280 | } |
| 26281 | bool EvalEmitter::emitGetFieldPopSint64( uint32_t A0, SourceInfo L) { |
| 26282 | if (!isActive()) return true; |
| 26283 | CurrentSource = L; |
| 26284 | return GetFieldPop<PT_Sint64>(S, CodePtr(), A0); |
| 26285 | } |
| 26286 | bool EvalEmitter::emitGetFieldPopUint64( uint32_t A0, SourceInfo L) { |
| 26287 | if (!isActive()) return true; |
| 26288 | CurrentSource = L; |
| 26289 | return GetFieldPop<PT_Uint64>(S, CodePtr(), A0); |
| 26290 | } |
| 26291 | bool EvalEmitter::emitGetFieldPopIntAP( uint32_t A0, SourceInfo L) { |
| 26292 | if (!isActive()) return true; |
| 26293 | CurrentSource = L; |
| 26294 | return GetFieldPop<PT_IntAP>(S, CodePtr(), A0); |
| 26295 | } |
| 26296 | bool EvalEmitter::emitGetFieldPopIntAPS( uint32_t A0, SourceInfo L) { |
| 26297 | if (!isActive()) return true; |
| 26298 | CurrentSource = L; |
| 26299 | return GetFieldPop<PT_IntAPS>(S, CodePtr(), A0); |
| 26300 | } |
| 26301 | bool EvalEmitter::emitGetFieldPopBool( uint32_t A0, SourceInfo L) { |
| 26302 | if (!isActive()) return true; |
| 26303 | CurrentSource = L; |
| 26304 | return GetFieldPop<PT_Bool>(S, CodePtr(), A0); |
| 26305 | } |
| 26306 | bool EvalEmitter::emitGetFieldPopFixedPoint( uint32_t A0, SourceInfo L) { |
| 26307 | if (!isActive()) return true; |
| 26308 | CurrentSource = L; |
| 26309 | return GetFieldPop<PT_FixedPoint>(S, CodePtr(), A0); |
| 26310 | } |
| 26311 | bool EvalEmitter::emitGetFieldPopPtr( uint32_t A0, SourceInfo L) { |
| 26312 | if (!isActive()) return true; |
| 26313 | CurrentSource = L; |
| 26314 | return GetFieldPop<PT_Ptr>(S, CodePtr(), A0); |
| 26315 | } |
| 26316 | bool EvalEmitter::emitGetFieldPopMemberPtr( uint32_t A0, SourceInfo L) { |
| 26317 | if (!isActive()) return true; |
| 26318 | CurrentSource = L; |
| 26319 | return GetFieldPop<PT_MemberPtr>(S, CodePtr(), A0); |
| 26320 | } |
| 26321 | bool EvalEmitter::emitGetFieldPopFloat( uint32_t A0, SourceInfo L) { |
| 26322 | if (!isActive()) return true; |
| 26323 | CurrentSource = L; |
| 26324 | return GetFieldPop<PT_Float>(S, CodePtr(), A0); |
| 26325 | } |
| 26326 | bool EvalEmitter::emitGetFieldPopReflect( uint32_t A0, SourceInfo L) { |
| 26327 | if (!isActive()) return true; |
| 26328 | CurrentSource = L; |
| 26329 | return GetFieldPop<PT_Reflect>(S, CodePtr(), A0); |
| 26330 | } |
| 26331 | #endif |
| 26332 | #ifdef GET_OPCODE_NAMES |
| 26333 | OP_GetFnPtr, |
| 26334 | #endif |
| 26335 | #ifdef GET_INTERPFN_LIST |
| 26336 | &Interp_GetFnPtr, |
| 26337 | #endif |
| 26338 | #ifdef GET_INTERPFN_DISPATCHERS |
| 26339 | PRESERVE_NONE |
| 26340 | static bool Interp_GetFnPtr(InterpState &S) { |
| 26341 | { |
| 26342 | const auto V0 = ReadArg<const Function *>(S, S.PC); |
| 26343 | GetFnPtr(S, V0); |
| 26344 | } |
| 26345 | #if USE_TAILCALLS |
| 26346 | MUSTTAIL return InterpNext(S); |
| 26347 | #else |
| 26348 | return true; |
| 26349 | #endif |
| 26350 | } |
| 26351 | #endif |
| 26352 | #ifdef GET_DISASM |
| 26353 | case OP_GetFnPtr: |
| 26354 | Text.Op = PrintName("GetFnPtr" ); |
| 26355 | Text.Args.push_back(printArg<const Function *>(PC)); |
| 26356 | break; |
| 26357 | #endif |
| 26358 | #if defined(GET_EVAL_PROTO) || defined(GET_LINK_PROTO) |
| 26359 | bool emitGetFnPtr( const Function * , SourceInfo); |
| 26360 | #endif |
| 26361 | #ifdef GET_LINK_IMPL |
| 26362 | bool ByteCodeEmitter::emitGetFnPtr( const Function * A0, SourceInfo L) { |
| 26363 | return emitOp<const Function *>(OP_GetFnPtr, A0, L); |
| 26364 | } |
| 26365 | #endif |
| 26366 | #ifdef GET_EVAL_IMPL |
| 26367 | bool EvalEmitter::emitGetFnPtr( const Function * A0, SourceInfo L) { |
| 26368 | if (!isActive()) return true; |
| 26369 | CurrentSource = L; |
| 26370 | return GetFnPtr(S, A0); |
| 26371 | } |
| 26372 | #endif |
| 26373 | #ifdef GET_OPCODE_NAMES |
| 26374 | OP_GetGlobalSint8, |
| 26375 | OP_GetGlobalUint8, |
| 26376 | OP_GetGlobalSint16, |
| 26377 | OP_GetGlobalUint16, |
| 26378 | OP_GetGlobalSint32, |
| 26379 | OP_GetGlobalUint32, |
| 26380 | OP_GetGlobalSint64, |
| 26381 | OP_GetGlobalUint64, |
| 26382 | OP_GetGlobalIntAP, |
| 26383 | OP_GetGlobalIntAPS, |
| 26384 | OP_GetGlobalBool, |
| 26385 | OP_GetGlobalFixedPoint, |
| 26386 | OP_GetGlobalPtr, |
| 26387 | OP_GetGlobalMemberPtr, |
| 26388 | OP_GetGlobalFloat, |
| 26389 | OP_GetGlobalReflect, |
| 26390 | #endif |
| 26391 | #ifdef GET_INTERPFN_LIST |
| 26392 | &Interp_GetGlobalSint8, |
| 26393 | &Interp_GetGlobalUint8, |
| 26394 | &Interp_GetGlobalSint16, |
| 26395 | &Interp_GetGlobalUint16, |
| 26396 | &Interp_GetGlobalSint32, |
| 26397 | &Interp_GetGlobalUint32, |
| 26398 | &Interp_GetGlobalSint64, |
| 26399 | &Interp_GetGlobalUint64, |
| 26400 | &Interp_GetGlobalIntAP, |
| 26401 | &Interp_GetGlobalIntAPS, |
| 26402 | &Interp_GetGlobalBool, |
| 26403 | &Interp_GetGlobalFixedPoint, |
| 26404 | &Interp_GetGlobalPtr, |
| 26405 | &Interp_GetGlobalMemberPtr, |
| 26406 | &Interp_GetGlobalFloat, |
| 26407 | &Interp_GetGlobalReflect, |
| 26408 | #endif |
| 26409 | #ifdef GET_INTERPFN_DISPATCHERS |
| 26410 | PRESERVE_NONE |
| 26411 | static bool Interp_GetGlobalSint8(InterpState &S) { |
| 26412 | { |
| 26413 | CodePtr OpPC = S.PC; |
| 26414 | const auto V0 = ReadArg<uint32_t>(S, S.PC); |
| 26415 | if (!GetGlobal<PT_Sint8>(S, OpPC, V0)) return false; |
| 26416 | } |
| 26417 | #if USE_TAILCALLS |
| 26418 | MUSTTAIL return InterpNext(S); |
| 26419 | #else |
| 26420 | return true; |
| 26421 | #endif |
| 26422 | } |
| 26423 | PRESERVE_NONE |
| 26424 | static bool Interp_GetGlobalUint8(InterpState &S) { |
| 26425 | { |
| 26426 | CodePtr OpPC = S.PC; |
| 26427 | const auto V0 = ReadArg<uint32_t>(S, S.PC); |
| 26428 | if (!GetGlobal<PT_Uint8>(S, OpPC, V0)) return false; |
| 26429 | } |
| 26430 | #if USE_TAILCALLS |
| 26431 | MUSTTAIL return InterpNext(S); |
| 26432 | #else |
| 26433 | return true; |
| 26434 | #endif |
| 26435 | } |
| 26436 | PRESERVE_NONE |
| 26437 | static bool Interp_GetGlobalSint16(InterpState &S) { |
| 26438 | { |
| 26439 | CodePtr OpPC = S.PC; |
| 26440 | const auto V0 = ReadArg<uint32_t>(S, S.PC); |
| 26441 | if (!GetGlobal<PT_Sint16>(S, OpPC, V0)) return false; |
| 26442 | } |
| 26443 | #if USE_TAILCALLS |
| 26444 | MUSTTAIL return InterpNext(S); |
| 26445 | #else |
| 26446 | return true; |
| 26447 | #endif |
| 26448 | } |
| 26449 | PRESERVE_NONE |
| 26450 | static bool Interp_GetGlobalUint16(InterpState &S) { |
| 26451 | { |
| 26452 | CodePtr OpPC = S.PC; |
| 26453 | const auto V0 = ReadArg<uint32_t>(S, S.PC); |
| 26454 | if (!GetGlobal<PT_Uint16>(S, OpPC, V0)) return false; |
| 26455 | } |
| 26456 | #if USE_TAILCALLS |
| 26457 | MUSTTAIL return InterpNext(S); |
| 26458 | #else |
| 26459 | return true; |
| 26460 | #endif |
| 26461 | } |
| 26462 | PRESERVE_NONE |
| 26463 | static bool Interp_GetGlobalSint32(InterpState &S) { |
| 26464 | { |
| 26465 | CodePtr OpPC = S.PC; |
| 26466 | const auto V0 = ReadArg<uint32_t>(S, S.PC); |
| 26467 | if (!GetGlobal<PT_Sint32>(S, OpPC, V0)) return false; |
| 26468 | } |
| 26469 | #if USE_TAILCALLS |
| 26470 | MUSTTAIL return InterpNext(S); |
| 26471 | #else |
| 26472 | return true; |
| 26473 | #endif |
| 26474 | } |
| 26475 | PRESERVE_NONE |
| 26476 | static bool Interp_GetGlobalUint32(InterpState &S) { |
| 26477 | { |
| 26478 | CodePtr OpPC = S.PC; |
| 26479 | const auto V0 = ReadArg<uint32_t>(S, S.PC); |
| 26480 | if (!GetGlobal<PT_Uint32>(S, OpPC, V0)) return false; |
| 26481 | } |
| 26482 | #if USE_TAILCALLS |
| 26483 | MUSTTAIL return InterpNext(S); |
| 26484 | #else |
| 26485 | return true; |
| 26486 | #endif |
| 26487 | } |
| 26488 | PRESERVE_NONE |
| 26489 | static bool Interp_GetGlobalSint64(InterpState &S) { |
| 26490 | { |
| 26491 | CodePtr OpPC = S.PC; |
| 26492 | const auto V0 = ReadArg<uint32_t>(S, S.PC); |
| 26493 | if (!GetGlobal<PT_Sint64>(S, OpPC, V0)) return false; |
| 26494 | } |
| 26495 | #if USE_TAILCALLS |
| 26496 | MUSTTAIL return InterpNext(S); |
| 26497 | #else |
| 26498 | return true; |
| 26499 | #endif |
| 26500 | } |
| 26501 | PRESERVE_NONE |
| 26502 | static bool Interp_GetGlobalUint64(InterpState &S) { |
| 26503 | { |
| 26504 | CodePtr OpPC = S.PC; |
| 26505 | const auto V0 = ReadArg<uint32_t>(S, S.PC); |
| 26506 | if (!GetGlobal<PT_Uint64>(S, OpPC, V0)) return false; |
| 26507 | } |
| 26508 | #if USE_TAILCALLS |
| 26509 | MUSTTAIL return InterpNext(S); |
| 26510 | #else |
| 26511 | return true; |
| 26512 | #endif |
| 26513 | } |
| 26514 | PRESERVE_NONE |
| 26515 | static bool Interp_GetGlobalIntAP(InterpState &S) { |
| 26516 | { |
| 26517 | CodePtr OpPC = S.PC; |
| 26518 | const auto V0 = ReadArg<uint32_t>(S, S.PC); |
| 26519 | if (!GetGlobal<PT_IntAP>(S, OpPC, V0)) return false; |
| 26520 | } |
| 26521 | #if USE_TAILCALLS |
| 26522 | MUSTTAIL return InterpNext(S); |
| 26523 | #else |
| 26524 | return true; |
| 26525 | #endif |
| 26526 | } |
| 26527 | PRESERVE_NONE |
| 26528 | static bool Interp_GetGlobalIntAPS(InterpState &S) { |
| 26529 | { |
| 26530 | CodePtr OpPC = S.PC; |
| 26531 | const auto V0 = ReadArg<uint32_t>(S, S.PC); |
| 26532 | if (!GetGlobal<PT_IntAPS>(S, OpPC, V0)) return false; |
| 26533 | } |
| 26534 | #if USE_TAILCALLS |
| 26535 | MUSTTAIL return InterpNext(S); |
| 26536 | #else |
| 26537 | return true; |
| 26538 | #endif |
| 26539 | } |
| 26540 | PRESERVE_NONE |
| 26541 | static bool Interp_GetGlobalBool(InterpState &S) { |
| 26542 | { |
| 26543 | CodePtr OpPC = S.PC; |
| 26544 | const auto V0 = ReadArg<uint32_t>(S, S.PC); |
| 26545 | if (!GetGlobal<PT_Bool>(S, OpPC, V0)) return false; |
| 26546 | } |
| 26547 | #if USE_TAILCALLS |
| 26548 | MUSTTAIL return InterpNext(S); |
| 26549 | #else |
| 26550 | return true; |
| 26551 | #endif |
| 26552 | } |
| 26553 | PRESERVE_NONE |
| 26554 | static bool Interp_GetGlobalFixedPoint(InterpState &S) { |
| 26555 | { |
| 26556 | CodePtr OpPC = S.PC; |
| 26557 | const auto V0 = ReadArg<uint32_t>(S, S.PC); |
| 26558 | if (!GetGlobal<PT_FixedPoint>(S, OpPC, V0)) return false; |
| 26559 | } |
| 26560 | #if USE_TAILCALLS |
| 26561 | MUSTTAIL return InterpNext(S); |
| 26562 | #else |
| 26563 | return true; |
| 26564 | #endif |
| 26565 | } |
| 26566 | PRESERVE_NONE |
| 26567 | static bool Interp_GetGlobalPtr(InterpState &S) { |
| 26568 | { |
| 26569 | CodePtr OpPC = S.PC; |
| 26570 | const auto V0 = ReadArg<uint32_t>(S, S.PC); |
| 26571 | if (!GetGlobal<PT_Ptr>(S, OpPC, V0)) return false; |
| 26572 | } |
| 26573 | #if USE_TAILCALLS |
| 26574 | MUSTTAIL return InterpNext(S); |
| 26575 | #else |
| 26576 | return true; |
| 26577 | #endif |
| 26578 | } |
| 26579 | PRESERVE_NONE |
| 26580 | static bool Interp_GetGlobalMemberPtr(InterpState &S) { |
| 26581 | { |
| 26582 | CodePtr OpPC = S.PC; |
| 26583 | const auto V0 = ReadArg<uint32_t>(S, S.PC); |
| 26584 | if (!GetGlobal<PT_MemberPtr>(S, OpPC, V0)) return false; |
| 26585 | } |
| 26586 | #if USE_TAILCALLS |
| 26587 | MUSTTAIL return InterpNext(S); |
| 26588 | #else |
| 26589 | return true; |
| 26590 | #endif |
| 26591 | } |
| 26592 | PRESERVE_NONE |
| 26593 | static bool Interp_GetGlobalFloat(InterpState &S) { |
| 26594 | { |
| 26595 | CodePtr OpPC = S.PC; |
| 26596 | const auto V0 = ReadArg<uint32_t>(S, S.PC); |
| 26597 | if (!GetGlobal<PT_Float>(S, OpPC, V0)) return false; |
| 26598 | } |
| 26599 | #if USE_TAILCALLS |
| 26600 | MUSTTAIL return InterpNext(S); |
| 26601 | #else |
| 26602 | return true; |
| 26603 | #endif |
| 26604 | } |
| 26605 | PRESERVE_NONE |
| 26606 | static bool Interp_GetGlobalReflect(InterpState &S) { |
| 26607 | { |
| 26608 | CodePtr OpPC = S.PC; |
| 26609 | const auto V0 = ReadArg<uint32_t>(S, S.PC); |
| 26610 | if (!GetGlobal<PT_Reflect>(S, OpPC, V0)) return false; |
| 26611 | } |
| 26612 | #if USE_TAILCALLS |
| 26613 | MUSTTAIL return InterpNext(S); |
| 26614 | #else |
| 26615 | return true; |
| 26616 | #endif |
| 26617 | } |
| 26618 | #endif |
| 26619 | #ifdef GET_DISASM |
| 26620 | case OP_GetGlobalSint8: |
| 26621 | Text.Op = PrintName("GetGlobalSint8" ); |
| 26622 | Text.Args.push_back(printArg<uint32_t>(PC)); |
| 26623 | break; |
| 26624 | case OP_GetGlobalUint8: |
| 26625 | Text.Op = PrintName("GetGlobalUint8" ); |
| 26626 | Text.Args.push_back(printArg<uint32_t>(PC)); |
| 26627 | break; |
| 26628 | case OP_GetGlobalSint16: |
| 26629 | Text.Op = PrintName("GetGlobalSint16" ); |
| 26630 | Text.Args.push_back(printArg<uint32_t>(PC)); |
| 26631 | break; |
| 26632 | case OP_GetGlobalUint16: |
| 26633 | Text.Op = PrintName("GetGlobalUint16" ); |
| 26634 | Text.Args.push_back(printArg<uint32_t>(PC)); |
| 26635 | break; |
| 26636 | case OP_GetGlobalSint32: |
| 26637 | Text.Op = PrintName("GetGlobalSint32" ); |
| 26638 | Text.Args.push_back(printArg<uint32_t>(PC)); |
| 26639 | break; |
| 26640 | case OP_GetGlobalUint32: |
| 26641 | Text.Op = PrintName("GetGlobalUint32" ); |
| 26642 | Text.Args.push_back(printArg<uint32_t>(PC)); |
| 26643 | break; |
| 26644 | case OP_GetGlobalSint64: |
| 26645 | Text.Op = PrintName("GetGlobalSint64" ); |
| 26646 | Text.Args.push_back(printArg<uint32_t>(PC)); |
| 26647 | break; |
| 26648 | case OP_GetGlobalUint64: |
| 26649 | Text.Op = PrintName("GetGlobalUint64" ); |
| 26650 | Text.Args.push_back(printArg<uint32_t>(PC)); |
| 26651 | break; |
| 26652 | case OP_GetGlobalIntAP: |
| 26653 | Text.Op = PrintName("GetGlobalIntAP" ); |
| 26654 | Text.Args.push_back(printArg<uint32_t>(PC)); |
| 26655 | break; |
| 26656 | case OP_GetGlobalIntAPS: |
| 26657 | Text.Op = PrintName("GetGlobalIntAPS" ); |
| 26658 | Text.Args.push_back(printArg<uint32_t>(PC)); |
| 26659 | break; |
| 26660 | case OP_GetGlobalBool: |
| 26661 | Text.Op = PrintName("GetGlobalBool" ); |
| 26662 | Text.Args.push_back(printArg<uint32_t>(PC)); |
| 26663 | break; |
| 26664 | case OP_GetGlobalFixedPoint: |
| 26665 | Text.Op = PrintName("GetGlobalFixedPoint" ); |
| 26666 | Text.Args.push_back(printArg<uint32_t>(PC)); |
| 26667 | break; |
| 26668 | case OP_GetGlobalPtr: |
| 26669 | Text.Op = PrintName("GetGlobalPtr" ); |
| 26670 | Text.Args.push_back(printArg<uint32_t>(PC)); |
| 26671 | break; |
| 26672 | case OP_GetGlobalMemberPtr: |
| 26673 | Text.Op = PrintName("GetGlobalMemberPtr" ); |
| 26674 | Text.Args.push_back(printArg<uint32_t>(PC)); |
| 26675 | break; |
| 26676 | case OP_GetGlobalFloat: |
| 26677 | Text.Op = PrintName("GetGlobalFloat" ); |
| 26678 | Text.Args.push_back(printArg<uint32_t>(PC)); |
| 26679 | break; |
| 26680 | case OP_GetGlobalReflect: |
| 26681 | Text.Op = PrintName("GetGlobalReflect" ); |
| 26682 | Text.Args.push_back(printArg<uint32_t>(PC)); |
| 26683 | break; |
| 26684 | #endif |
| 26685 | #if defined(GET_EVAL_PROTO) || defined(GET_LINK_PROTO) |
| 26686 | bool emitGetGlobalSint8( uint32_t , SourceInfo); |
| 26687 | bool emitGetGlobalUint8( uint32_t , SourceInfo); |
| 26688 | bool emitGetGlobalSint16( uint32_t , SourceInfo); |
| 26689 | bool emitGetGlobalUint16( uint32_t , SourceInfo); |
| 26690 | bool emitGetGlobalSint32( uint32_t , SourceInfo); |
| 26691 | bool emitGetGlobalUint32( uint32_t , SourceInfo); |
| 26692 | bool emitGetGlobalSint64( uint32_t , SourceInfo); |
| 26693 | bool emitGetGlobalUint64( uint32_t , SourceInfo); |
| 26694 | bool emitGetGlobalIntAP( uint32_t , SourceInfo); |
| 26695 | bool emitGetGlobalIntAPS( uint32_t , SourceInfo); |
| 26696 | bool emitGetGlobalBool( uint32_t , SourceInfo); |
| 26697 | bool emitGetGlobalFixedPoint( uint32_t , SourceInfo); |
| 26698 | bool emitGetGlobalPtr( uint32_t , SourceInfo); |
| 26699 | bool emitGetGlobalMemberPtr( uint32_t , SourceInfo); |
| 26700 | bool emitGetGlobalFloat( uint32_t , SourceInfo); |
| 26701 | bool emitGetGlobalReflect( uint32_t , SourceInfo); |
| 26702 | #endif |
| 26703 | #if defined(GET_EVAL_PROTO) || defined(GET_LINK_PROTO) |
| 26704 | [[nodiscard]] bool emitGetGlobal(PrimType, uint32_t, SourceInfo I); |
| 26705 | #endif |
| 26706 | #if defined(GET_EVAL_IMPL) || defined(GET_LINK_IMPL) |
| 26707 | bool |
| 26708 | #if defined(GET_EVAL_IMPL) |
| 26709 | EvalEmitter |
| 26710 | #else |
| 26711 | ByteCodeEmitter |
| 26712 | #endif |
| 26713 | ::emitGetGlobal(PrimType T0, uint32_t A0, SourceInfo I) { |
| 26714 | switch (T0) { |
| 26715 | case PT_Sint8: |
| 26716 | return emitGetGlobalSint8(A0, I); |
| 26717 | case PT_Uint8: |
| 26718 | return emitGetGlobalUint8(A0, I); |
| 26719 | case PT_Sint16: |
| 26720 | return emitGetGlobalSint16(A0, I); |
| 26721 | case PT_Uint16: |
| 26722 | return emitGetGlobalUint16(A0, I); |
| 26723 | case PT_Sint32: |
| 26724 | return emitGetGlobalSint32(A0, I); |
| 26725 | case PT_Uint32: |
| 26726 | return emitGetGlobalUint32(A0, I); |
| 26727 | case PT_Sint64: |
| 26728 | return emitGetGlobalSint64(A0, I); |
| 26729 | case PT_Uint64: |
| 26730 | return emitGetGlobalUint64(A0, I); |
| 26731 | case PT_IntAP: |
| 26732 | return emitGetGlobalIntAP(A0, I); |
| 26733 | case PT_IntAPS: |
| 26734 | return emitGetGlobalIntAPS(A0, I); |
| 26735 | case PT_Bool: |
| 26736 | return emitGetGlobalBool(A0, I); |
| 26737 | case PT_FixedPoint: |
| 26738 | return emitGetGlobalFixedPoint(A0, I); |
| 26739 | case PT_Ptr: |
| 26740 | return emitGetGlobalPtr(A0, I); |
| 26741 | case PT_MemberPtr: |
| 26742 | return emitGetGlobalMemberPtr(A0, I); |
| 26743 | case PT_Float: |
| 26744 | return emitGetGlobalFloat(A0, I); |
| 26745 | case PT_Reflect: |
| 26746 | return emitGetGlobalReflect(A0, I); |
| 26747 | } |
| 26748 | llvm_unreachable("invalid enum value" ); |
| 26749 | } |
| 26750 | #endif |
| 26751 | #ifdef GET_LINK_IMPL |
| 26752 | bool ByteCodeEmitter::emitGetGlobalSint8( uint32_t A0, SourceInfo L) { |
| 26753 | return emitOp<uint32_t>(OP_GetGlobalSint8, A0, L); |
| 26754 | } |
| 26755 | bool ByteCodeEmitter::emitGetGlobalUint8( uint32_t A0, SourceInfo L) { |
| 26756 | return emitOp<uint32_t>(OP_GetGlobalUint8, A0, L); |
| 26757 | } |
| 26758 | bool ByteCodeEmitter::emitGetGlobalSint16( uint32_t A0, SourceInfo L) { |
| 26759 | return emitOp<uint32_t>(OP_GetGlobalSint16, A0, L); |
| 26760 | } |
| 26761 | bool ByteCodeEmitter::emitGetGlobalUint16( uint32_t A0, SourceInfo L) { |
| 26762 | return emitOp<uint32_t>(OP_GetGlobalUint16, A0, L); |
| 26763 | } |
| 26764 | bool ByteCodeEmitter::emitGetGlobalSint32( uint32_t A0, SourceInfo L) { |
| 26765 | return emitOp<uint32_t>(OP_GetGlobalSint32, A0, L); |
| 26766 | } |
| 26767 | bool ByteCodeEmitter::emitGetGlobalUint32( uint32_t A0, SourceInfo L) { |
| 26768 | return emitOp<uint32_t>(OP_GetGlobalUint32, A0, L); |
| 26769 | } |
| 26770 | bool ByteCodeEmitter::emitGetGlobalSint64( uint32_t A0, SourceInfo L) { |
| 26771 | return emitOp<uint32_t>(OP_GetGlobalSint64, A0, L); |
| 26772 | } |
| 26773 | bool ByteCodeEmitter::emitGetGlobalUint64( uint32_t A0, SourceInfo L) { |
| 26774 | return emitOp<uint32_t>(OP_GetGlobalUint64, A0, L); |
| 26775 | } |
| 26776 | bool ByteCodeEmitter::emitGetGlobalIntAP( uint32_t A0, SourceInfo L) { |
| 26777 | return emitOp<uint32_t>(OP_GetGlobalIntAP, A0, L); |
| 26778 | } |
| 26779 | bool ByteCodeEmitter::emitGetGlobalIntAPS( uint32_t A0, SourceInfo L) { |
| 26780 | return emitOp<uint32_t>(OP_GetGlobalIntAPS, A0, L); |
| 26781 | } |
| 26782 | bool ByteCodeEmitter::emitGetGlobalBool( uint32_t A0, SourceInfo L) { |
| 26783 | return emitOp<uint32_t>(OP_GetGlobalBool, A0, L); |
| 26784 | } |
| 26785 | bool ByteCodeEmitter::emitGetGlobalFixedPoint( uint32_t A0, SourceInfo L) { |
| 26786 | return emitOp<uint32_t>(OP_GetGlobalFixedPoint, A0, L); |
| 26787 | } |
| 26788 | bool ByteCodeEmitter::emitGetGlobalPtr( uint32_t A0, SourceInfo L) { |
| 26789 | return emitOp<uint32_t>(OP_GetGlobalPtr, A0, L); |
| 26790 | } |
| 26791 | bool ByteCodeEmitter::emitGetGlobalMemberPtr( uint32_t A0, SourceInfo L) { |
| 26792 | return emitOp<uint32_t>(OP_GetGlobalMemberPtr, A0, L); |
| 26793 | } |
| 26794 | bool ByteCodeEmitter::emitGetGlobalFloat( uint32_t A0, SourceInfo L) { |
| 26795 | return emitOp<uint32_t>(OP_GetGlobalFloat, A0, L); |
| 26796 | } |
| 26797 | bool ByteCodeEmitter::emitGetGlobalReflect( uint32_t A0, SourceInfo L) { |
| 26798 | return emitOp<uint32_t>(OP_GetGlobalReflect, A0, L); |
| 26799 | } |
| 26800 | #endif |
| 26801 | #ifdef GET_EVAL_IMPL |
| 26802 | bool EvalEmitter::emitGetGlobalSint8( uint32_t A0, SourceInfo L) { |
| 26803 | if (!isActive()) return true; |
| 26804 | CurrentSource = L; |
| 26805 | return GetGlobal<PT_Sint8>(S, CodePtr(), A0); |
| 26806 | } |
| 26807 | bool EvalEmitter::emitGetGlobalUint8( uint32_t A0, SourceInfo L) { |
| 26808 | if (!isActive()) return true; |
| 26809 | CurrentSource = L; |
| 26810 | return GetGlobal<PT_Uint8>(S, CodePtr(), A0); |
| 26811 | } |
| 26812 | bool EvalEmitter::emitGetGlobalSint16( uint32_t A0, SourceInfo L) { |
| 26813 | if (!isActive()) return true; |
| 26814 | CurrentSource = L; |
| 26815 | return GetGlobal<PT_Sint16>(S, CodePtr(), A0); |
| 26816 | } |
| 26817 | bool EvalEmitter::emitGetGlobalUint16( uint32_t A0, SourceInfo L) { |
| 26818 | if (!isActive()) return true; |
| 26819 | CurrentSource = L; |
| 26820 | return GetGlobal<PT_Uint16>(S, CodePtr(), A0); |
| 26821 | } |
| 26822 | bool EvalEmitter::emitGetGlobalSint32( uint32_t A0, SourceInfo L) { |
| 26823 | if (!isActive()) return true; |
| 26824 | CurrentSource = L; |
| 26825 | return GetGlobal<PT_Sint32>(S, CodePtr(), A0); |
| 26826 | } |
| 26827 | bool EvalEmitter::emitGetGlobalUint32( uint32_t A0, SourceInfo L) { |
| 26828 | if (!isActive()) return true; |
| 26829 | CurrentSource = L; |
| 26830 | return GetGlobal<PT_Uint32>(S, CodePtr(), A0); |
| 26831 | } |
| 26832 | bool EvalEmitter::emitGetGlobalSint64( uint32_t A0, SourceInfo L) { |
| 26833 | if (!isActive()) return true; |
| 26834 | CurrentSource = L; |
| 26835 | return GetGlobal<PT_Sint64>(S, CodePtr(), A0); |
| 26836 | } |
| 26837 | bool EvalEmitter::emitGetGlobalUint64( uint32_t A0, SourceInfo L) { |
| 26838 | if (!isActive()) return true; |
| 26839 | CurrentSource = L; |
| 26840 | return GetGlobal<PT_Uint64>(S, CodePtr(), A0); |
| 26841 | } |
| 26842 | bool EvalEmitter::emitGetGlobalIntAP( uint32_t A0, SourceInfo L) { |
| 26843 | if (!isActive()) return true; |
| 26844 | CurrentSource = L; |
| 26845 | return GetGlobal<PT_IntAP>(S, CodePtr(), A0); |
| 26846 | } |
| 26847 | bool EvalEmitter::emitGetGlobalIntAPS( uint32_t A0, SourceInfo L) { |
| 26848 | if (!isActive()) return true; |
| 26849 | CurrentSource = L; |
| 26850 | return GetGlobal<PT_IntAPS>(S, CodePtr(), A0); |
| 26851 | } |
| 26852 | bool EvalEmitter::emitGetGlobalBool( uint32_t A0, SourceInfo L) { |
| 26853 | if (!isActive()) return true; |
| 26854 | CurrentSource = L; |
| 26855 | return GetGlobal<PT_Bool>(S, CodePtr(), A0); |
| 26856 | } |
| 26857 | bool EvalEmitter::emitGetGlobalFixedPoint( uint32_t A0, SourceInfo L) { |
| 26858 | if (!isActive()) return true; |
| 26859 | CurrentSource = L; |
| 26860 | return GetGlobal<PT_FixedPoint>(S, CodePtr(), A0); |
| 26861 | } |
| 26862 | bool EvalEmitter::emitGetGlobalPtr( uint32_t A0, SourceInfo L) { |
| 26863 | if (!isActive()) return true; |
| 26864 | CurrentSource = L; |
| 26865 | return GetGlobal<PT_Ptr>(S, CodePtr(), A0); |
| 26866 | } |
| 26867 | bool EvalEmitter::emitGetGlobalMemberPtr( uint32_t A0, SourceInfo L) { |
| 26868 | if (!isActive()) return true; |
| 26869 | CurrentSource = L; |
| 26870 | return GetGlobal<PT_MemberPtr>(S, CodePtr(), A0); |
| 26871 | } |
| 26872 | bool EvalEmitter::emitGetGlobalFloat( uint32_t A0, SourceInfo L) { |
| 26873 | if (!isActive()) return true; |
| 26874 | CurrentSource = L; |
| 26875 | return GetGlobal<PT_Float>(S, CodePtr(), A0); |
| 26876 | } |
| 26877 | bool EvalEmitter::emitGetGlobalReflect( uint32_t A0, SourceInfo L) { |
| 26878 | if (!isActive()) return true; |
| 26879 | CurrentSource = L; |
| 26880 | return GetGlobal<PT_Reflect>(S, CodePtr(), A0); |
| 26881 | } |
| 26882 | #endif |
| 26883 | #ifdef GET_OPCODE_NAMES |
| 26884 | OP_GetGlobalUncheckedSint8, |
| 26885 | OP_GetGlobalUncheckedUint8, |
| 26886 | OP_GetGlobalUncheckedSint16, |
| 26887 | OP_GetGlobalUncheckedUint16, |
| 26888 | OP_GetGlobalUncheckedSint32, |
| 26889 | OP_GetGlobalUncheckedUint32, |
| 26890 | OP_GetGlobalUncheckedSint64, |
| 26891 | OP_GetGlobalUncheckedUint64, |
| 26892 | OP_GetGlobalUncheckedIntAP, |
| 26893 | OP_GetGlobalUncheckedIntAPS, |
| 26894 | OP_GetGlobalUncheckedBool, |
| 26895 | OP_GetGlobalUncheckedFixedPoint, |
| 26896 | OP_GetGlobalUncheckedPtr, |
| 26897 | OP_GetGlobalUncheckedMemberPtr, |
| 26898 | OP_GetGlobalUncheckedFloat, |
| 26899 | OP_GetGlobalUncheckedReflect, |
| 26900 | #endif |
| 26901 | #ifdef GET_INTERPFN_LIST |
| 26902 | &Interp_GetGlobalUncheckedSint8, |
| 26903 | &Interp_GetGlobalUncheckedUint8, |
| 26904 | &Interp_GetGlobalUncheckedSint16, |
| 26905 | &Interp_GetGlobalUncheckedUint16, |
| 26906 | &Interp_GetGlobalUncheckedSint32, |
| 26907 | &Interp_GetGlobalUncheckedUint32, |
| 26908 | &Interp_GetGlobalUncheckedSint64, |
| 26909 | &Interp_GetGlobalUncheckedUint64, |
| 26910 | &Interp_GetGlobalUncheckedIntAP, |
| 26911 | &Interp_GetGlobalUncheckedIntAPS, |
| 26912 | &Interp_GetGlobalUncheckedBool, |
| 26913 | &Interp_GetGlobalUncheckedFixedPoint, |
| 26914 | &Interp_GetGlobalUncheckedPtr, |
| 26915 | &Interp_GetGlobalUncheckedMemberPtr, |
| 26916 | &Interp_GetGlobalUncheckedFloat, |
| 26917 | &Interp_GetGlobalUncheckedReflect, |
| 26918 | #endif |
| 26919 | #ifdef GET_INTERPFN_DISPATCHERS |
| 26920 | PRESERVE_NONE |
| 26921 | static bool Interp_GetGlobalUncheckedSint8(InterpState &S) { |
| 26922 | { |
| 26923 | CodePtr OpPC = S.PC; |
| 26924 | const auto V0 = ReadArg<uint32_t>(S, S.PC); |
| 26925 | if (!GetGlobalUnchecked<PT_Sint8>(S, OpPC, V0)) return false; |
| 26926 | } |
| 26927 | #if USE_TAILCALLS |
| 26928 | MUSTTAIL return InterpNext(S); |
| 26929 | #else |
| 26930 | return true; |
| 26931 | #endif |
| 26932 | } |
| 26933 | PRESERVE_NONE |
| 26934 | static bool Interp_GetGlobalUncheckedUint8(InterpState &S) { |
| 26935 | { |
| 26936 | CodePtr OpPC = S.PC; |
| 26937 | const auto V0 = ReadArg<uint32_t>(S, S.PC); |
| 26938 | if (!GetGlobalUnchecked<PT_Uint8>(S, OpPC, V0)) return false; |
| 26939 | } |
| 26940 | #if USE_TAILCALLS |
| 26941 | MUSTTAIL return InterpNext(S); |
| 26942 | #else |
| 26943 | return true; |
| 26944 | #endif |
| 26945 | } |
| 26946 | PRESERVE_NONE |
| 26947 | static bool Interp_GetGlobalUncheckedSint16(InterpState &S) { |
| 26948 | { |
| 26949 | CodePtr OpPC = S.PC; |
| 26950 | const auto V0 = ReadArg<uint32_t>(S, S.PC); |
| 26951 | if (!GetGlobalUnchecked<PT_Sint16>(S, OpPC, V0)) return false; |
| 26952 | } |
| 26953 | #if USE_TAILCALLS |
| 26954 | MUSTTAIL return InterpNext(S); |
| 26955 | #else |
| 26956 | return true; |
| 26957 | #endif |
| 26958 | } |
| 26959 | PRESERVE_NONE |
| 26960 | static bool Interp_GetGlobalUncheckedUint16(InterpState &S) { |
| 26961 | { |
| 26962 | CodePtr OpPC = S.PC; |
| 26963 | const auto V0 = ReadArg<uint32_t>(S, S.PC); |
| 26964 | if (!GetGlobalUnchecked<PT_Uint16>(S, OpPC, V0)) return false; |
| 26965 | } |
| 26966 | #if USE_TAILCALLS |
| 26967 | MUSTTAIL return InterpNext(S); |
| 26968 | #else |
| 26969 | return true; |
| 26970 | #endif |
| 26971 | } |
| 26972 | PRESERVE_NONE |
| 26973 | static bool Interp_GetGlobalUncheckedSint32(InterpState &S) { |
| 26974 | { |
| 26975 | CodePtr OpPC = S.PC; |
| 26976 | const auto V0 = ReadArg<uint32_t>(S, S.PC); |
| 26977 | if (!GetGlobalUnchecked<PT_Sint32>(S, OpPC, V0)) return false; |
| 26978 | } |
| 26979 | #if USE_TAILCALLS |
| 26980 | MUSTTAIL return InterpNext(S); |
| 26981 | #else |
| 26982 | return true; |
| 26983 | #endif |
| 26984 | } |
| 26985 | PRESERVE_NONE |
| 26986 | static bool Interp_GetGlobalUncheckedUint32(InterpState &S) { |
| 26987 | { |
| 26988 | CodePtr OpPC = S.PC; |
| 26989 | const auto V0 = ReadArg<uint32_t>(S, S.PC); |
| 26990 | if (!GetGlobalUnchecked<PT_Uint32>(S, OpPC, V0)) return false; |
| 26991 | } |
| 26992 | #if USE_TAILCALLS |
| 26993 | MUSTTAIL return InterpNext(S); |
| 26994 | #else |
| 26995 | return true; |
| 26996 | #endif |
| 26997 | } |
| 26998 | PRESERVE_NONE |
| 26999 | static bool Interp_GetGlobalUncheckedSint64(InterpState &S) { |
| 27000 | { |
| 27001 | CodePtr OpPC = S.PC; |
| 27002 | const auto V0 = ReadArg<uint32_t>(S, S.PC); |
| 27003 | if (!GetGlobalUnchecked<PT_Sint64>(S, OpPC, V0)) return false; |
| 27004 | } |
| 27005 | #if USE_TAILCALLS |
| 27006 | MUSTTAIL return InterpNext(S); |
| 27007 | #else |
| 27008 | return true; |
| 27009 | #endif |
| 27010 | } |
| 27011 | PRESERVE_NONE |
| 27012 | static bool Interp_GetGlobalUncheckedUint64(InterpState &S) { |
| 27013 | { |
| 27014 | CodePtr OpPC = S.PC; |
| 27015 | const auto V0 = ReadArg<uint32_t>(S, S.PC); |
| 27016 | if (!GetGlobalUnchecked<PT_Uint64>(S, OpPC, V0)) return false; |
| 27017 | } |
| 27018 | #if USE_TAILCALLS |
| 27019 | MUSTTAIL return InterpNext(S); |
| 27020 | #else |
| 27021 | return true; |
| 27022 | #endif |
| 27023 | } |
| 27024 | PRESERVE_NONE |
| 27025 | static bool Interp_GetGlobalUncheckedIntAP(InterpState &S) { |
| 27026 | { |
| 27027 | CodePtr OpPC = S.PC; |
| 27028 | const auto V0 = ReadArg<uint32_t>(S, S.PC); |
| 27029 | if (!GetGlobalUnchecked<PT_IntAP>(S, OpPC, V0)) return false; |
| 27030 | } |
| 27031 | #if USE_TAILCALLS |
| 27032 | MUSTTAIL return InterpNext(S); |
| 27033 | #else |
| 27034 | return true; |
| 27035 | #endif |
| 27036 | } |
| 27037 | PRESERVE_NONE |
| 27038 | static bool Interp_GetGlobalUncheckedIntAPS(InterpState &S) { |
| 27039 | { |
| 27040 | CodePtr OpPC = S.PC; |
| 27041 | const auto V0 = ReadArg<uint32_t>(S, S.PC); |
| 27042 | if (!GetGlobalUnchecked<PT_IntAPS>(S, OpPC, V0)) return false; |
| 27043 | } |
| 27044 | #if USE_TAILCALLS |
| 27045 | MUSTTAIL return InterpNext(S); |
| 27046 | #else |
| 27047 | return true; |
| 27048 | #endif |
| 27049 | } |
| 27050 | PRESERVE_NONE |
| 27051 | static bool Interp_GetGlobalUncheckedBool(InterpState &S) { |
| 27052 | { |
| 27053 | CodePtr OpPC = S.PC; |
| 27054 | const auto V0 = ReadArg<uint32_t>(S, S.PC); |
| 27055 | if (!GetGlobalUnchecked<PT_Bool>(S, OpPC, V0)) return false; |
| 27056 | } |
| 27057 | #if USE_TAILCALLS |
| 27058 | MUSTTAIL return InterpNext(S); |
| 27059 | #else |
| 27060 | return true; |
| 27061 | #endif |
| 27062 | } |
| 27063 | PRESERVE_NONE |
| 27064 | static bool Interp_GetGlobalUncheckedFixedPoint(InterpState &S) { |
| 27065 | { |
| 27066 | CodePtr OpPC = S.PC; |
| 27067 | const auto V0 = ReadArg<uint32_t>(S, S.PC); |
| 27068 | if (!GetGlobalUnchecked<PT_FixedPoint>(S, OpPC, V0)) return false; |
| 27069 | } |
| 27070 | #if USE_TAILCALLS |
| 27071 | MUSTTAIL return InterpNext(S); |
| 27072 | #else |
| 27073 | return true; |
| 27074 | #endif |
| 27075 | } |
| 27076 | PRESERVE_NONE |
| 27077 | static bool Interp_GetGlobalUncheckedPtr(InterpState &S) { |
| 27078 | { |
| 27079 | CodePtr OpPC = S.PC; |
| 27080 | const auto V0 = ReadArg<uint32_t>(S, S.PC); |
| 27081 | if (!GetGlobalUnchecked<PT_Ptr>(S, OpPC, V0)) return false; |
| 27082 | } |
| 27083 | #if USE_TAILCALLS |
| 27084 | MUSTTAIL return InterpNext(S); |
| 27085 | #else |
| 27086 | return true; |
| 27087 | #endif |
| 27088 | } |
| 27089 | PRESERVE_NONE |
| 27090 | static bool Interp_GetGlobalUncheckedMemberPtr(InterpState &S) { |
| 27091 | { |
| 27092 | CodePtr OpPC = S.PC; |
| 27093 | const auto V0 = ReadArg<uint32_t>(S, S.PC); |
| 27094 | if (!GetGlobalUnchecked<PT_MemberPtr>(S, OpPC, V0)) return false; |
| 27095 | } |
| 27096 | #if USE_TAILCALLS |
| 27097 | MUSTTAIL return InterpNext(S); |
| 27098 | #else |
| 27099 | return true; |
| 27100 | #endif |
| 27101 | } |
| 27102 | PRESERVE_NONE |
| 27103 | static bool Interp_GetGlobalUncheckedFloat(InterpState &S) { |
| 27104 | { |
| 27105 | CodePtr OpPC = S.PC; |
| 27106 | const auto V0 = ReadArg<uint32_t>(S, S.PC); |
| 27107 | if (!GetGlobalUnchecked<PT_Float>(S, OpPC, V0)) return false; |
| 27108 | } |
| 27109 | #if USE_TAILCALLS |
| 27110 | MUSTTAIL return InterpNext(S); |
| 27111 | #else |
| 27112 | return true; |
| 27113 | #endif |
| 27114 | } |
| 27115 | PRESERVE_NONE |
| 27116 | static bool Interp_GetGlobalUncheckedReflect(InterpState &S) { |
| 27117 | { |
| 27118 | CodePtr OpPC = S.PC; |
| 27119 | const auto V0 = ReadArg<uint32_t>(S, S.PC); |
| 27120 | if (!GetGlobalUnchecked<PT_Reflect>(S, OpPC, V0)) return false; |
| 27121 | } |
| 27122 | #if USE_TAILCALLS |
| 27123 | MUSTTAIL return InterpNext(S); |
| 27124 | #else |
| 27125 | return true; |
| 27126 | #endif |
| 27127 | } |
| 27128 | #endif |
| 27129 | #ifdef GET_DISASM |
| 27130 | case OP_GetGlobalUncheckedSint8: |
| 27131 | Text.Op = PrintName("GetGlobalUncheckedSint8" ); |
| 27132 | Text.Args.push_back(printArg<uint32_t>(PC)); |
| 27133 | break; |
| 27134 | case OP_GetGlobalUncheckedUint8: |
| 27135 | Text.Op = PrintName("GetGlobalUncheckedUint8" ); |
| 27136 | Text.Args.push_back(printArg<uint32_t>(PC)); |
| 27137 | break; |
| 27138 | case OP_GetGlobalUncheckedSint16: |
| 27139 | Text.Op = PrintName("GetGlobalUncheckedSint16" ); |
| 27140 | Text.Args.push_back(printArg<uint32_t>(PC)); |
| 27141 | break; |
| 27142 | case OP_GetGlobalUncheckedUint16: |
| 27143 | Text.Op = PrintName("GetGlobalUncheckedUint16" ); |
| 27144 | Text.Args.push_back(printArg<uint32_t>(PC)); |
| 27145 | break; |
| 27146 | case OP_GetGlobalUncheckedSint32: |
| 27147 | Text.Op = PrintName("GetGlobalUncheckedSint32" ); |
| 27148 | Text.Args.push_back(printArg<uint32_t>(PC)); |
| 27149 | break; |
| 27150 | case OP_GetGlobalUncheckedUint32: |
| 27151 | Text.Op = PrintName("GetGlobalUncheckedUint32" ); |
| 27152 | Text.Args.push_back(printArg<uint32_t>(PC)); |
| 27153 | break; |
| 27154 | case OP_GetGlobalUncheckedSint64: |
| 27155 | Text.Op = PrintName("GetGlobalUncheckedSint64" ); |
| 27156 | Text.Args.push_back(printArg<uint32_t>(PC)); |
| 27157 | break; |
| 27158 | case OP_GetGlobalUncheckedUint64: |
| 27159 | Text.Op = PrintName("GetGlobalUncheckedUint64" ); |
| 27160 | Text.Args.push_back(printArg<uint32_t>(PC)); |
| 27161 | break; |
| 27162 | case OP_GetGlobalUncheckedIntAP: |
| 27163 | Text.Op = PrintName("GetGlobalUncheckedIntAP" ); |
| 27164 | Text.Args.push_back(printArg<uint32_t>(PC)); |
| 27165 | break; |
| 27166 | case OP_GetGlobalUncheckedIntAPS: |
| 27167 | Text.Op = PrintName("GetGlobalUncheckedIntAPS" ); |
| 27168 | Text.Args.push_back(printArg<uint32_t>(PC)); |
| 27169 | break; |
| 27170 | case OP_GetGlobalUncheckedBool: |
| 27171 | Text.Op = PrintName("GetGlobalUncheckedBool" ); |
| 27172 | Text.Args.push_back(printArg<uint32_t>(PC)); |
| 27173 | break; |
| 27174 | case OP_GetGlobalUncheckedFixedPoint: |
| 27175 | Text.Op = PrintName("GetGlobalUncheckedFixedPoint" ); |
| 27176 | Text.Args.push_back(printArg<uint32_t>(PC)); |
| 27177 | break; |
| 27178 | case OP_GetGlobalUncheckedPtr: |
| 27179 | Text.Op = PrintName("GetGlobalUncheckedPtr" ); |
| 27180 | Text.Args.push_back(printArg<uint32_t>(PC)); |
| 27181 | break; |
| 27182 | case OP_GetGlobalUncheckedMemberPtr: |
| 27183 | Text.Op = PrintName("GetGlobalUncheckedMemberPtr" ); |
| 27184 | Text.Args.push_back(printArg<uint32_t>(PC)); |
| 27185 | break; |
| 27186 | case OP_GetGlobalUncheckedFloat: |
| 27187 | Text.Op = PrintName("GetGlobalUncheckedFloat" ); |
| 27188 | Text.Args.push_back(printArg<uint32_t>(PC)); |
| 27189 | break; |
| 27190 | case OP_GetGlobalUncheckedReflect: |
| 27191 | Text.Op = PrintName("GetGlobalUncheckedReflect" ); |
| 27192 | Text.Args.push_back(printArg<uint32_t>(PC)); |
| 27193 | break; |
| 27194 | #endif |
| 27195 | #if defined(GET_EVAL_PROTO) || defined(GET_LINK_PROTO) |
| 27196 | bool emitGetGlobalUncheckedSint8( uint32_t , SourceInfo); |
| 27197 | bool emitGetGlobalUncheckedUint8( uint32_t , SourceInfo); |
| 27198 | bool emitGetGlobalUncheckedSint16( uint32_t , SourceInfo); |
| 27199 | bool emitGetGlobalUncheckedUint16( uint32_t , SourceInfo); |
| 27200 | bool emitGetGlobalUncheckedSint32( uint32_t , SourceInfo); |
| 27201 | bool emitGetGlobalUncheckedUint32( uint32_t , SourceInfo); |
| 27202 | bool emitGetGlobalUncheckedSint64( uint32_t , SourceInfo); |
| 27203 | bool emitGetGlobalUncheckedUint64( uint32_t , SourceInfo); |
| 27204 | bool emitGetGlobalUncheckedIntAP( uint32_t , SourceInfo); |
| 27205 | bool emitGetGlobalUncheckedIntAPS( uint32_t , SourceInfo); |
| 27206 | bool emitGetGlobalUncheckedBool( uint32_t , SourceInfo); |
| 27207 | bool emitGetGlobalUncheckedFixedPoint( uint32_t , SourceInfo); |
| 27208 | bool emitGetGlobalUncheckedPtr( uint32_t , SourceInfo); |
| 27209 | bool emitGetGlobalUncheckedMemberPtr( uint32_t , SourceInfo); |
| 27210 | bool emitGetGlobalUncheckedFloat( uint32_t , SourceInfo); |
| 27211 | bool emitGetGlobalUncheckedReflect( uint32_t , SourceInfo); |
| 27212 | #endif |
| 27213 | #if defined(GET_EVAL_PROTO) || defined(GET_LINK_PROTO) |
| 27214 | [[nodiscard]] bool emitGetGlobalUnchecked(PrimType, uint32_t, SourceInfo I); |
| 27215 | #endif |
| 27216 | #if defined(GET_EVAL_IMPL) || defined(GET_LINK_IMPL) |
| 27217 | bool |
| 27218 | #if defined(GET_EVAL_IMPL) |
| 27219 | EvalEmitter |
| 27220 | #else |
| 27221 | ByteCodeEmitter |
| 27222 | #endif |
| 27223 | ::emitGetGlobalUnchecked(PrimType T0, uint32_t A0, SourceInfo I) { |
| 27224 | switch (T0) { |
| 27225 | case PT_Sint8: |
| 27226 | return emitGetGlobalUncheckedSint8(A0, I); |
| 27227 | case PT_Uint8: |
| 27228 | return emitGetGlobalUncheckedUint8(A0, I); |
| 27229 | case PT_Sint16: |
| 27230 | return emitGetGlobalUncheckedSint16(A0, I); |
| 27231 | case PT_Uint16: |
| 27232 | return emitGetGlobalUncheckedUint16(A0, I); |
| 27233 | case PT_Sint32: |
| 27234 | return emitGetGlobalUncheckedSint32(A0, I); |
| 27235 | case PT_Uint32: |
| 27236 | return emitGetGlobalUncheckedUint32(A0, I); |
| 27237 | case PT_Sint64: |
| 27238 | return emitGetGlobalUncheckedSint64(A0, I); |
| 27239 | case PT_Uint64: |
| 27240 | return emitGetGlobalUncheckedUint64(A0, I); |
| 27241 | case PT_IntAP: |
| 27242 | return emitGetGlobalUncheckedIntAP(A0, I); |
| 27243 | case PT_IntAPS: |
| 27244 | return emitGetGlobalUncheckedIntAPS(A0, I); |
| 27245 | case PT_Bool: |
| 27246 | return emitGetGlobalUncheckedBool(A0, I); |
| 27247 | case PT_FixedPoint: |
| 27248 | return emitGetGlobalUncheckedFixedPoint(A0, I); |
| 27249 | case PT_Ptr: |
| 27250 | return emitGetGlobalUncheckedPtr(A0, I); |
| 27251 | case PT_MemberPtr: |
| 27252 | return emitGetGlobalUncheckedMemberPtr(A0, I); |
| 27253 | case PT_Float: |
| 27254 | return emitGetGlobalUncheckedFloat(A0, I); |
| 27255 | case PT_Reflect: |
| 27256 | return emitGetGlobalUncheckedReflect(A0, I); |
| 27257 | } |
| 27258 | llvm_unreachable("invalid enum value" ); |
| 27259 | } |
| 27260 | #endif |
| 27261 | #ifdef GET_LINK_IMPL |
| 27262 | bool ByteCodeEmitter::emitGetGlobalUncheckedSint8( uint32_t A0, SourceInfo L) { |
| 27263 | return emitOp<uint32_t>(OP_GetGlobalUncheckedSint8, A0, L); |
| 27264 | } |
| 27265 | bool ByteCodeEmitter::emitGetGlobalUncheckedUint8( uint32_t A0, SourceInfo L) { |
| 27266 | return emitOp<uint32_t>(OP_GetGlobalUncheckedUint8, A0, L); |
| 27267 | } |
| 27268 | bool ByteCodeEmitter::emitGetGlobalUncheckedSint16( uint32_t A0, SourceInfo L) { |
| 27269 | return emitOp<uint32_t>(OP_GetGlobalUncheckedSint16, A0, L); |
| 27270 | } |
| 27271 | bool ByteCodeEmitter::emitGetGlobalUncheckedUint16( uint32_t A0, SourceInfo L) { |
| 27272 | return emitOp<uint32_t>(OP_GetGlobalUncheckedUint16, A0, L); |
| 27273 | } |
| 27274 | bool ByteCodeEmitter::emitGetGlobalUncheckedSint32( uint32_t A0, SourceInfo L) { |
| 27275 | return emitOp<uint32_t>(OP_GetGlobalUncheckedSint32, A0, L); |
| 27276 | } |
| 27277 | bool ByteCodeEmitter::emitGetGlobalUncheckedUint32( uint32_t A0, SourceInfo L) { |
| 27278 | return emitOp<uint32_t>(OP_GetGlobalUncheckedUint32, A0, L); |
| 27279 | } |
| 27280 | bool ByteCodeEmitter::emitGetGlobalUncheckedSint64( uint32_t A0, SourceInfo L) { |
| 27281 | return emitOp<uint32_t>(OP_GetGlobalUncheckedSint64, A0, L); |
| 27282 | } |
| 27283 | bool ByteCodeEmitter::emitGetGlobalUncheckedUint64( uint32_t A0, SourceInfo L) { |
| 27284 | return emitOp<uint32_t>(OP_GetGlobalUncheckedUint64, A0, L); |
| 27285 | } |
| 27286 | bool ByteCodeEmitter::emitGetGlobalUncheckedIntAP( uint32_t A0, SourceInfo L) { |
| 27287 | return emitOp<uint32_t>(OP_GetGlobalUncheckedIntAP, A0, L); |
| 27288 | } |
| 27289 | bool ByteCodeEmitter::emitGetGlobalUncheckedIntAPS( uint32_t A0, SourceInfo L) { |
| 27290 | return emitOp<uint32_t>(OP_GetGlobalUncheckedIntAPS, A0, L); |
| 27291 | } |
| 27292 | bool ByteCodeEmitter::emitGetGlobalUncheckedBool( uint32_t A0, SourceInfo L) { |
| 27293 | return emitOp<uint32_t>(OP_GetGlobalUncheckedBool, A0, L); |
| 27294 | } |
| 27295 | bool ByteCodeEmitter::emitGetGlobalUncheckedFixedPoint( uint32_t A0, SourceInfo L) { |
| 27296 | return emitOp<uint32_t>(OP_GetGlobalUncheckedFixedPoint, A0, L); |
| 27297 | } |
| 27298 | bool ByteCodeEmitter::emitGetGlobalUncheckedPtr( uint32_t A0, SourceInfo L) { |
| 27299 | return emitOp<uint32_t>(OP_GetGlobalUncheckedPtr, A0, L); |
| 27300 | } |
| 27301 | bool ByteCodeEmitter::emitGetGlobalUncheckedMemberPtr( uint32_t A0, SourceInfo L) { |
| 27302 | return emitOp<uint32_t>(OP_GetGlobalUncheckedMemberPtr, A0, L); |
| 27303 | } |
| 27304 | bool ByteCodeEmitter::emitGetGlobalUncheckedFloat( uint32_t A0, SourceInfo L) { |
| 27305 | return emitOp<uint32_t>(OP_GetGlobalUncheckedFloat, A0, L); |
| 27306 | } |
| 27307 | bool ByteCodeEmitter::emitGetGlobalUncheckedReflect( uint32_t A0, SourceInfo L) { |
| 27308 | return emitOp<uint32_t>(OP_GetGlobalUncheckedReflect, A0, L); |
| 27309 | } |
| 27310 | #endif |
| 27311 | #ifdef GET_EVAL_IMPL |
| 27312 | bool EvalEmitter::emitGetGlobalUncheckedSint8( uint32_t A0, SourceInfo L) { |
| 27313 | if (!isActive()) return true; |
| 27314 | CurrentSource = L; |
| 27315 | return GetGlobalUnchecked<PT_Sint8>(S, CodePtr(), A0); |
| 27316 | } |
| 27317 | bool EvalEmitter::emitGetGlobalUncheckedUint8( uint32_t A0, SourceInfo L) { |
| 27318 | if (!isActive()) return true; |
| 27319 | CurrentSource = L; |
| 27320 | return GetGlobalUnchecked<PT_Uint8>(S, CodePtr(), A0); |
| 27321 | } |
| 27322 | bool EvalEmitter::emitGetGlobalUncheckedSint16( uint32_t A0, SourceInfo L) { |
| 27323 | if (!isActive()) return true; |
| 27324 | CurrentSource = L; |
| 27325 | return GetGlobalUnchecked<PT_Sint16>(S, CodePtr(), A0); |
| 27326 | } |
| 27327 | bool EvalEmitter::emitGetGlobalUncheckedUint16( uint32_t A0, SourceInfo L) { |
| 27328 | if (!isActive()) return true; |
| 27329 | CurrentSource = L; |
| 27330 | return GetGlobalUnchecked<PT_Uint16>(S, CodePtr(), A0); |
| 27331 | } |
| 27332 | bool EvalEmitter::emitGetGlobalUncheckedSint32( uint32_t A0, SourceInfo L) { |
| 27333 | if (!isActive()) return true; |
| 27334 | CurrentSource = L; |
| 27335 | return GetGlobalUnchecked<PT_Sint32>(S, CodePtr(), A0); |
| 27336 | } |
| 27337 | bool EvalEmitter::emitGetGlobalUncheckedUint32( uint32_t A0, SourceInfo L) { |
| 27338 | if (!isActive()) return true; |
| 27339 | CurrentSource = L; |
| 27340 | return GetGlobalUnchecked<PT_Uint32>(S, CodePtr(), A0); |
| 27341 | } |
| 27342 | bool EvalEmitter::emitGetGlobalUncheckedSint64( uint32_t A0, SourceInfo L) { |
| 27343 | if (!isActive()) return true; |
| 27344 | CurrentSource = L; |
| 27345 | return GetGlobalUnchecked<PT_Sint64>(S, CodePtr(), A0); |
| 27346 | } |
| 27347 | bool EvalEmitter::emitGetGlobalUncheckedUint64( uint32_t A0, SourceInfo L) { |
| 27348 | if (!isActive()) return true; |
| 27349 | CurrentSource = L; |
| 27350 | return GetGlobalUnchecked<PT_Uint64>(S, CodePtr(), A0); |
| 27351 | } |
| 27352 | bool EvalEmitter::emitGetGlobalUncheckedIntAP( uint32_t A0, SourceInfo L) { |
| 27353 | if (!isActive()) return true; |
| 27354 | CurrentSource = L; |
| 27355 | return GetGlobalUnchecked<PT_IntAP>(S, CodePtr(), A0); |
| 27356 | } |
| 27357 | bool EvalEmitter::emitGetGlobalUncheckedIntAPS( uint32_t A0, SourceInfo L) { |
| 27358 | if (!isActive()) return true; |
| 27359 | CurrentSource = L; |
| 27360 | return GetGlobalUnchecked<PT_IntAPS>(S, CodePtr(), A0); |
| 27361 | } |
| 27362 | bool EvalEmitter::emitGetGlobalUncheckedBool( uint32_t A0, SourceInfo L) { |
| 27363 | if (!isActive()) return true; |
| 27364 | CurrentSource = L; |
| 27365 | return GetGlobalUnchecked<PT_Bool>(S, CodePtr(), A0); |
| 27366 | } |
| 27367 | bool EvalEmitter::emitGetGlobalUncheckedFixedPoint( uint32_t A0, SourceInfo L) { |
| 27368 | if (!isActive()) return true; |
| 27369 | CurrentSource = L; |
| 27370 | return GetGlobalUnchecked<PT_FixedPoint>(S, CodePtr(), A0); |
| 27371 | } |
| 27372 | bool EvalEmitter::emitGetGlobalUncheckedPtr( uint32_t A0, SourceInfo L) { |
| 27373 | if (!isActive()) return true; |
| 27374 | CurrentSource = L; |
| 27375 | return GetGlobalUnchecked<PT_Ptr>(S, CodePtr(), A0); |
| 27376 | } |
| 27377 | bool EvalEmitter::emitGetGlobalUncheckedMemberPtr( uint32_t A0, SourceInfo L) { |
| 27378 | if (!isActive()) return true; |
| 27379 | CurrentSource = L; |
| 27380 | return GetGlobalUnchecked<PT_MemberPtr>(S, CodePtr(), A0); |
| 27381 | } |
| 27382 | bool EvalEmitter::emitGetGlobalUncheckedFloat( uint32_t A0, SourceInfo L) { |
| 27383 | if (!isActive()) return true; |
| 27384 | CurrentSource = L; |
| 27385 | return GetGlobalUnchecked<PT_Float>(S, CodePtr(), A0); |
| 27386 | } |
| 27387 | bool EvalEmitter::emitGetGlobalUncheckedReflect( uint32_t A0, SourceInfo L) { |
| 27388 | if (!isActive()) return true; |
| 27389 | CurrentSource = L; |
| 27390 | return GetGlobalUnchecked<PT_Reflect>(S, CodePtr(), A0); |
| 27391 | } |
| 27392 | #endif |
| 27393 | #ifdef GET_OPCODE_NAMES |
| 27394 | OP_GetIntPtrSint8, |
| 27395 | OP_GetIntPtrUint8, |
| 27396 | OP_GetIntPtrSint16, |
| 27397 | OP_GetIntPtrUint16, |
| 27398 | OP_GetIntPtrSint32, |
| 27399 | OP_GetIntPtrUint32, |
| 27400 | OP_GetIntPtrSint64, |
| 27401 | OP_GetIntPtrUint64, |
| 27402 | OP_GetIntPtrIntAP, |
| 27403 | OP_GetIntPtrIntAPS, |
| 27404 | OP_GetIntPtrBool, |
| 27405 | OP_GetIntPtrFixedPoint, |
| 27406 | #endif |
| 27407 | #ifdef GET_INTERPFN_LIST |
| 27408 | &Interp_GetIntPtrSint8, |
| 27409 | &Interp_GetIntPtrUint8, |
| 27410 | &Interp_GetIntPtrSint16, |
| 27411 | &Interp_GetIntPtrUint16, |
| 27412 | &Interp_GetIntPtrSint32, |
| 27413 | &Interp_GetIntPtrUint32, |
| 27414 | &Interp_GetIntPtrSint64, |
| 27415 | &Interp_GetIntPtrUint64, |
| 27416 | &Interp_GetIntPtrIntAP, |
| 27417 | &Interp_GetIntPtrIntAPS, |
| 27418 | &Interp_GetIntPtrBool, |
| 27419 | &Interp_GetIntPtrFixedPoint, |
| 27420 | #endif |
| 27421 | #ifdef GET_INTERPFN_DISPATCHERS |
| 27422 | PRESERVE_NONE |
| 27423 | static bool Interp_GetIntPtrSint8(InterpState &S) { |
| 27424 | { |
| 27425 | CodePtr OpPC = S.PC; |
| 27426 | const auto V0 = ReadArg<const Type *>(S, S.PC); |
| 27427 | if (!GetIntPtr<PT_Sint8>(S, OpPC, V0)) return false; |
| 27428 | } |
| 27429 | #if USE_TAILCALLS |
| 27430 | MUSTTAIL return InterpNext(S); |
| 27431 | #else |
| 27432 | return true; |
| 27433 | #endif |
| 27434 | } |
| 27435 | PRESERVE_NONE |
| 27436 | static bool Interp_GetIntPtrUint8(InterpState &S) { |
| 27437 | { |
| 27438 | CodePtr OpPC = S.PC; |
| 27439 | const auto V0 = ReadArg<const Type *>(S, S.PC); |
| 27440 | if (!GetIntPtr<PT_Uint8>(S, OpPC, V0)) return false; |
| 27441 | } |
| 27442 | #if USE_TAILCALLS |
| 27443 | MUSTTAIL return InterpNext(S); |
| 27444 | #else |
| 27445 | return true; |
| 27446 | #endif |
| 27447 | } |
| 27448 | PRESERVE_NONE |
| 27449 | static bool Interp_GetIntPtrSint16(InterpState &S) { |
| 27450 | { |
| 27451 | CodePtr OpPC = S.PC; |
| 27452 | const auto V0 = ReadArg<const Type *>(S, S.PC); |
| 27453 | if (!GetIntPtr<PT_Sint16>(S, OpPC, V0)) return false; |
| 27454 | } |
| 27455 | #if USE_TAILCALLS |
| 27456 | MUSTTAIL return InterpNext(S); |
| 27457 | #else |
| 27458 | return true; |
| 27459 | #endif |
| 27460 | } |
| 27461 | PRESERVE_NONE |
| 27462 | static bool Interp_GetIntPtrUint16(InterpState &S) { |
| 27463 | { |
| 27464 | CodePtr OpPC = S.PC; |
| 27465 | const auto V0 = ReadArg<const Type *>(S, S.PC); |
| 27466 | if (!GetIntPtr<PT_Uint16>(S, OpPC, V0)) return false; |
| 27467 | } |
| 27468 | #if USE_TAILCALLS |
| 27469 | MUSTTAIL return InterpNext(S); |
| 27470 | #else |
| 27471 | return true; |
| 27472 | #endif |
| 27473 | } |
| 27474 | PRESERVE_NONE |
| 27475 | static bool Interp_GetIntPtrSint32(InterpState &S) { |
| 27476 | { |
| 27477 | CodePtr OpPC = S.PC; |
| 27478 | const auto V0 = ReadArg<const Type *>(S, S.PC); |
| 27479 | if (!GetIntPtr<PT_Sint32>(S, OpPC, V0)) return false; |
| 27480 | } |
| 27481 | #if USE_TAILCALLS |
| 27482 | MUSTTAIL return InterpNext(S); |
| 27483 | #else |
| 27484 | return true; |
| 27485 | #endif |
| 27486 | } |
| 27487 | PRESERVE_NONE |
| 27488 | static bool Interp_GetIntPtrUint32(InterpState &S) { |
| 27489 | { |
| 27490 | CodePtr OpPC = S.PC; |
| 27491 | const auto V0 = ReadArg<const Type *>(S, S.PC); |
| 27492 | if (!GetIntPtr<PT_Uint32>(S, OpPC, V0)) return false; |
| 27493 | } |
| 27494 | #if USE_TAILCALLS |
| 27495 | MUSTTAIL return InterpNext(S); |
| 27496 | #else |
| 27497 | return true; |
| 27498 | #endif |
| 27499 | } |
| 27500 | PRESERVE_NONE |
| 27501 | static bool Interp_GetIntPtrSint64(InterpState &S) { |
| 27502 | { |
| 27503 | CodePtr OpPC = S.PC; |
| 27504 | const auto V0 = ReadArg<const Type *>(S, S.PC); |
| 27505 | if (!GetIntPtr<PT_Sint64>(S, OpPC, V0)) return false; |
| 27506 | } |
| 27507 | #if USE_TAILCALLS |
| 27508 | MUSTTAIL return InterpNext(S); |
| 27509 | #else |
| 27510 | return true; |
| 27511 | #endif |
| 27512 | } |
| 27513 | PRESERVE_NONE |
| 27514 | static bool Interp_GetIntPtrUint64(InterpState &S) { |
| 27515 | { |
| 27516 | CodePtr OpPC = S.PC; |
| 27517 | const auto V0 = ReadArg<const Type *>(S, S.PC); |
| 27518 | if (!GetIntPtr<PT_Uint64>(S, OpPC, V0)) return false; |
| 27519 | } |
| 27520 | #if USE_TAILCALLS |
| 27521 | MUSTTAIL return InterpNext(S); |
| 27522 | #else |
| 27523 | return true; |
| 27524 | #endif |
| 27525 | } |
| 27526 | PRESERVE_NONE |
| 27527 | static bool Interp_GetIntPtrIntAP(InterpState &S) { |
| 27528 | { |
| 27529 | CodePtr OpPC = S.PC; |
| 27530 | const auto V0 = ReadArg<const Type *>(S, S.PC); |
| 27531 | if (!GetIntPtr<PT_IntAP>(S, OpPC, V0)) return false; |
| 27532 | } |
| 27533 | #if USE_TAILCALLS |
| 27534 | MUSTTAIL return InterpNext(S); |
| 27535 | #else |
| 27536 | return true; |
| 27537 | #endif |
| 27538 | } |
| 27539 | PRESERVE_NONE |
| 27540 | static bool Interp_GetIntPtrIntAPS(InterpState &S) { |
| 27541 | { |
| 27542 | CodePtr OpPC = S.PC; |
| 27543 | const auto V0 = ReadArg<const Type *>(S, S.PC); |
| 27544 | if (!GetIntPtr<PT_IntAPS>(S, OpPC, V0)) return false; |
| 27545 | } |
| 27546 | #if USE_TAILCALLS |
| 27547 | MUSTTAIL return InterpNext(S); |
| 27548 | #else |
| 27549 | return true; |
| 27550 | #endif |
| 27551 | } |
| 27552 | PRESERVE_NONE |
| 27553 | static bool Interp_GetIntPtrBool(InterpState &S) { |
| 27554 | { |
| 27555 | CodePtr OpPC = S.PC; |
| 27556 | const auto V0 = ReadArg<const Type *>(S, S.PC); |
| 27557 | if (!GetIntPtr<PT_Bool>(S, OpPC, V0)) return false; |
| 27558 | } |
| 27559 | #if USE_TAILCALLS |
| 27560 | MUSTTAIL return InterpNext(S); |
| 27561 | #else |
| 27562 | return true; |
| 27563 | #endif |
| 27564 | } |
| 27565 | PRESERVE_NONE |
| 27566 | static bool Interp_GetIntPtrFixedPoint(InterpState &S) { |
| 27567 | { |
| 27568 | CodePtr OpPC = S.PC; |
| 27569 | const auto V0 = ReadArg<const Type *>(S, S.PC); |
| 27570 | if (!GetIntPtr<PT_FixedPoint>(S, OpPC, V0)) return false; |
| 27571 | } |
| 27572 | #if USE_TAILCALLS |
| 27573 | MUSTTAIL return InterpNext(S); |
| 27574 | #else |
| 27575 | return true; |
| 27576 | #endif |
| 27577 | } |
| 27578 | #endif |
| 27579 | #ifdef GET_DISASM |
| 27580 | case OP_GetIntPtrSint8: |
| 27581 | Text.Op = PrintName("GetIntPtrSint8" ); |
| 27582 | Text.Args.push_back(printArg<const Type *>(PC)); |
| 27583 | break; |
| 27584 | case OP_GetIntPtrUint8: |
| 27585 | Text.Op = PrintName("GetIntPtrUint8" ); |
| 27586 | Text.Args.push_back(printArg<const Type *>(PC)); |
| 27587 | break; |
| 27588 | case OP_GetIntPtrSint16: |
| 27589 | Text.Op = PrintName("GetIntPtrSint16" ); |
| 27590 | Text.Args.push_back(printArg<const Type *>(PC)); |
| 27591 | break; |
| 27592 | case OP_GetIntPtrUint16: |
| 27593 | Text.Op = PrintName("GetIntPtrUint16" ); |
| 27594 | Text.Args.push_back(printArg<const Type *>(PC)); |
| 27595 | break; |
| 27596 | case OP_GetIntPtrSint32: |
| 27597 | Text.Op = PrintName("GetIntPtrSint32" ); |
| 27598 | Text.Args.push_back(printArg<const Type *>(PC)); |
| 27599 | break; |
| 27600 | case OP_GetIntPtrUint32: |
| 27601 | Text.Op = PrintName("GetIntPtrUint32" ); |
| 27602 | Text.Args.push_back(printArg<const Type *>(PC)); |
| 27603 | break; |
| 27604 | case OP_GetIntPtrSint64: |
| 27605 | Text.Op = PrintName("GetIntPtrSint64" ); |
| 27606 | Text.Args.push_back(printArg<const Type *>(PC)); |
| 27607 | break; |
| 27608 | case OP_GetIntPtrUint64: |
| 27609 | Text.Op = PrintName("GetIntPtrUint64" ); |
| 27610 | Text.Args.push_back(printArg<const Type *>(PC)); |
| 27611 | break; |
| 27612 | case OP_GetIntPtrIntAP: |
| 27613 | Text.Op = PrintName("GetIntPtrIntAP" ); |
| 27614 | Text.Args.push_back(printArg<const Type *>(PC)); |
| 27615 | break; |
| 27616 | case OP_GetIntPtrIntAPS: |
| 27617 | Text.Op = PrintName("GetIntPtrIntAPS" ); |
| 27618 | Text.Args.push_back(printArg<const Type *>(PC)); |
| 27619 | break; |
| 27620 | case OP_GetIntPtrBool: |
| 27621 | Text.Op = PrintName("GetIntPtrBool" ); |
| 27622 | Text.Args.push_back(printArg<const Type *>(PC)); |
| 27623 | break; |
| 27624 | case OP_GetIntPtrFixedPoint: |
| 27625 | Text.Op = PrintName("GetIntPtrFixedPoint" ); |
| 27626 | Text.Args.push_back(printArg<const Type *>(PC)); |
| 27627 | break; |
| 27628 | #endif |
| 27629 | #if defined(GET_EVAL_PROTO) || defined(GET_LINK_PROTO) |
| 27630 | bool emitGetIntPtrSint8( const Type * , SourceInfo); |
| 27631 | bool emitGetIntPtrUint8( const Type * , SourceInfo); |
| 27632 | bool emitGetIntPtrSint16( const Type * , SourceInfo); |
| 27633 | bool emitGetIntPtrUint16( const Type * , SourceInfo); |
| 27634 | bool emitGetIntPtrSint32( const Type * , SourceInfo); |
| 27635 | bool emitGetIntPtrUint32( const Type * , SourceInfo); |
| 27636 | bool emitGetIntPtrSint64( const Type * , SourceInfo); |
| 27637 | bool emitGetIntPtrUint64( const Type * , SourceInfo); |
| 27638 | bool emitGetIntPtrIntAP( const Type * , SourceInfo); |
| 27639 | bool emitGetIntPtrIntAPS( const Type * , SourceInfo); |
| 27640 | bool emitGetIntPtrBool( const Type * , SourceInfo); |
| 27641 | bool emitGetIntPtrFixedPoint( const Type * , SourceInfo); |
| 27642 | #endif |
| 27643 | #if defined(GET_EVAL_PROTO) || defined(GET_LINK_PROTO) |
| 27644 | [[nodiscard]] bool emitGetIntPtr(PrimType, const Type *, SourceInfo I); |
| 27645 | #endif |
| 27646 | #if defined(GET_EVAL_IMPL) || defined(GET_LINK_IMPL) |
| 27647 | bool |
| 27648 | #if defined(GET_EVAL_IMPL) |
| 27649 | EvalEmitter |
| 27650 | #else |
| 27651 | ByteCodeEmitter |
| 27652 | #endif |
| 27653 | ::emitGetIntPtr(PrimType T0, const Type * A0, SourceInfo I) { |
| 27654 | switch (T0) { |
| 27655 | case PT_Sint8: |
| 27656 | return emitGetIntPtrSint8(A0, I); |
| 27657 | case PT_Uint8: |
| 27658 | return emitGetIntPtrUint8(A0, I); |
| 27659 | case PT_Sint16: |
| 27660 | return emitGetIntPtrSint16(A0, I); |
| 27661 | case PT_Uint16: |
| 27662 | return emitGetIntPtrUint16(A0, I); |
| 27663 | case PT_Sint32: |
| 27664 | return emitGetIntPtrSint32(A0, I); |
| 27665 | case PT_Uint32: |
| 27666 | return emitGetIntPtrUint32(A0, I); |
| 27667 | case PT_Sint64: |
| 27668 | return emitGetIntPtrSint64(A0, I); |
| 27669 | case PT_Uint64: |
| 27670 | return emitGetIntPtrUint64(A0, I); |
| 27671 | case PT_IntAP: |
| 27672 | return emitGetIntPtrIntAP(A0, I); |
| 27673 | case PT_IntAPS: |
| 27674 | return emitGetIntPtrIntAPS(A0, I); |
| 27675 | case PT_Bool: |
| 27676 | return emitGetIntPtrBool(A0, I); |
| 27677 | case PT_FixedPoint: |
| 27678 | return emitGetIntPtrFixedPoint(A0, I); |
| 27679 | default: llvm_unreachable("invalid type: emitGetIntPtr" ); |
| 27680 | } |
| 27681 | llvm_unreachable("invalid enum value" ); |
| 27682 | } |
| 27683 | #endif |
| 27684 | #ifdef GET_LINK_IMPL |
| 27685 | bool ByteCodeEmitter::emitGetIntPtrSint8( const Type * A0, SourceInfo L) { |
| 27686 | return emitOp<const Type *>(OP_GetIntPtrSint8, A0, L); |
| 27687 | } |
| 27688 | bool ByteCodeEmitter::emitGetIntPtrUint8( const Type * A0, SourceInfo L) { |
| 27689 | return emitOp<const Type *>(OP_GetIntPtrUint8, A0, L); |
| 27690 | } |
| 27691 | bool ByteCodeEmitter::emitGetIntPtrSint16( const Type * A0, SourceInfo L) { |
| 27692 | return emitOp<const Type *>(OP_GetIntPtrSint16, A0, L); |
| 27693 | } |
| 27694 | bool ByteCodeEmitter::emitGetIntPtrUint16( const Type * A0, SourceInfo L) { |
| 27695 | return emitOp<const Type *>(OP_GetIntPtrUint16, A0, L); |
| 27696 | } |
| 27697 | bool ByteCodeEmitter::emitGetIntPtrSint32( const Type * A0, SourceInfo L) { |
| 27698 | return emitOp<const Type *>(OP_GetIntPtrSint32, A0, L); |
| 27699 | } |
| 27700 | bool ByteCodeEmitter::emitGetIntPtrUint32( const Type * A0, SourceInfo L) { |
| 27701 | return emitOp<const Type *>(OP_GetIntPtrUint32, A0, L); |
| 27702 | } |
| 27703 | bool ByteCodeEmitter::emitGetIntPtrSint64( const Type * A0, SourceInfo L) { |
| 27704 | return emitOp<const Type *>(OP_GetIntPtrSint64, A0, L); |
| 27705 | } |
| 27706 | bool ByteCodeEmitter::emitGetIntPtrUint64( const Type * A0, SourceInfo L) { |
| 27707 | return emitOp<const Type *>(OP_GetIntPtrUint64, A0, L); |
| 27708 | } |
| 27709 | bool ByteCodeEmitter::emitGetIntPtrIntAP( const Type * A0, SourceInfo L) { |
| 27710 | return emitOp<const Type *>(OP_GetIntPtrIntAP, A0, L); |
| 27711 | } |
| 27712 | bool ByteCodeEmitter::emitGetIntPtrIntAPS( const Type * A0, SourceInfo L) { |
| 27713 | return emitOp<const Type *>(OP_GetIntPtrIntAPS, A0, L); |
| 27714 | } |
| 27715 | bool ByteCodeEmitter::emitGetIntPtrBool( const Type * A0, SourceInfo L) { |
| 27716 | return emitOp<const Type *>(OP_GetIntPtrBool, A0, L); |
| 27717 | } |
| 27718 | bool ByteCodeEmitter::emitGetIntPtrFixedPoint( const Type * A0, SourceInfo L) { |
| 27719 | return emitOp<const Type *>(OP_GetIntPtrFixedPoint, A0, L); |
| 27720 | } |
| 27721 | #endif |
| 27722 | #ifdef GET_EVAL_IMPL |
| 27723 | bool EvalEmitter::emitGetIntPtrSint8( const Type * A0, SourceInfo L) { |
| 27724 | if (!isActive()) return true; |
| 27725 | CurrentSource = L; |
| 27726 | return GetIntPtr<PT_Sint8>(S, CodePtr(), A0); |
| 27727 | } |
| 27728 | bool EvalEmitter::emitGetIntPtrUint8( const Type * A0, SourceInfo L) { |
| 27729 | if (!isActive()) return true; |
| 27730 | CurrentSource = L; |
| 27731 | return GetIntPtr<PT_Uint8>(S, CodePtr(), A0); |
| 27732 | } |
| 27733 | bool EvalEmitter::emitGetIntPtrSint16( const Type * A0, SourceInfo L) { |
| 27734 | if (!isActive()) return true; |
| 27735 | CurrentSource = L; |
| 27736 | return GetIntPtr<PT_Sint16>(S, CodePtr(), A0); |
| 27737 | } |
| 27738 | bool EvalEmitter::emitGetIntPtrUint16( const Type * A0, SourceInfo L) { |
| 27739 | if (!isActive()) return true; |
| 27740 | CurrentSource = L; |
| 27741 | return GetIntPtr<PT_Uint16>(S, CodePtr(), A0); |
| 27742 | } |
| 27743 | bool EvalEmitter::emitGetIntPtrSint32( const Type * A0, SourceInfo L) { |
| 27744 | if (!isActive()) return true; |
| 27745 | CurrentSource = L; |
| 27746 | return GetIntPtr<PT_Sint32>(S, CodePtr(), A0); |
| 27747 | } |
| 27748 | bool EvalEmitter::emitGetIntPtrUint32( const Type * A0, SourceInfo L) { |
| 27749 | if (!isActive()) return true; |
| 27750 | CurrentSource = L; |
| 27751 | return GetIntPtr<PT_Uint32>(S, CodePtr(), A0); |
| 27752 | } |
| 27753 | bool EvalEmitter::emitGetIntPtrSint64( const Type * A0, SourceInfo L) { |
| 27754 | if (!isActive()) return true; |
| 27755 | CurrentSource = L; |
| 27756 | return GetIntPtr<PT_Sint64>(S, CodePtr(), A0); |
| 27757 | } |
| 27758 | bool EvalEmitter::emitGetIntPtrUint64( const Type * A0, SourceInfo L) { |
| 27759 | if (!isActive()) return true; |
| 27760 | CurrentSource = L; |
| 27761 | return GetIntPtr<PT_Uint64>(S, CodePtr(), A0); |
| 27762 | } |
| 27763 | bool EvalEmitter::emitGetIntPtrIntAP( const Type * A0, SourceInfo L) { |
| 27764 | if (!isActive()) return true; |
| 27765 | CurrentSource = L; |
| 27766 | return GetIntPtr<PT_IntAP>(S, CodePtr(), A0); |
| 27767 | } |
| 27768 | bool EvalEmitter::emitGetIntPtrIntAPS( const Type * A0, SourceInfo L) { |
| 27769 | if (!isActive()) return true; |
| 27770 | CurrentSource = L; |
| 27771 | return GetIntPtr<PT_IntAPS>(S, CodePtr(), A0); |
| 27772 | } |
| 27773 | bool EvalEmitter::emitGetIntPtrBool( const Type * A0, SourceInfo L) { |
| 27774 | if (!isActive()) return true; |
| 27775 | CurrentSource = L; |
| 27776 | return GetIntPtr<PT_Bool>(S, CodePtr(), A0); |
| 27777 | } |
| 27778 | bool EvalEmitter::emitGetIntPtrFixedPoint( const Type * A0, SourceInfo L) { |
| 27779 | if (!isActive()) return true; |
| 27780 | CurrentSource = L; |
| 27781 | return GetIntPtr<PT_FixedPoint>(S, CodePtr(), A0); |
| 27782 | } |
| 27783 | #endif |
| 27784 | #ifdef GET_OPCODE_NAMES |
| 27785 | OP_GetLocalSint8, |
| 27786 | OP_GetLocalUint8, |
| 27787 | OP_GetLocalSint16, |
| 27788 | OP_GetLocalUint16, |
| 27789 | OP_GetLocalSint32, |
| 27790 | OP_GetLocalUint32, |
| 27791 | OP_GetLocalSint64, |
| 27792 | OP_GetLocalUint64, |
| 27793 | OP_GetLocalIntAP, |
| 27794 | OP_GetLocalIntAPS, |
| 27795 | OP_GetLocalBool, |
| 27796 | OP_GetLocalFixedPoint, |
| 27797 | OP_GetLocalPtr, |
| 27798 | OP_GetLocalMemberPtr, |
| 27799 | OP_GetLocalFloat, |
| 27800 | OP_GetLocalReflect, |
| 27801 | #endif |
| 27802 | #ifdef GET_INTERPFN_LIST |
| 27803 | &Interp_GetLocalSint8, |
| 27804 | &Interp_GetLocalUint8, |
| 27805 | &Interp_GetLocalSint16, |
| 27806 | &Interp_GetLocalUint16, |
| 27807 | &Interp_GetLocalSint32, |
| 27808 | &Interp_GetLocalUint32, |
| 27809 | &Interp_GetLocalSint64, |
| 27810 | &Interp_GetLocalUint64, |
| 27811 | &Interp_GetLocalIntAP, |
| 27812 | &Interp_GetLocalIntAPS, |
| 27813 | &Interp_GetLocalBool, |
| 27814 | &Interp_GetLocalFixedPoint, |
| 27815 | &Interp_GetLocalPtr, |
| 27816 | &Interp_GetLocalMemberPtr, |
| 27817 | &Interp_GetLocalFloat, |
| 27818 | &Interp_GetLocalReflect, |
| 27819 | #endif |
| 27820 | #ifdef GET_INTERPFN_DISPATCHERS |
| 27821 | PRESERVE_NONE |
| 27822 | static bool Interp_GetLocalSint8(InterpState &S) { |
| 27823 | { |
| 27824 | CodePtr OpPC = S.PC; |
| 27825 | const auto V0 = ReadArg<uint32_t>(S, S.PC); |
| 27826 | if (!GetLocal<PT_Sint8>(S, OpPC, V0)) return false; |
| 27827 | } |
| 27828 | #if USE_TAILCALLS |
| 27829 | MUSTTAIL return InterpNext(S); |
| 27830 | #else |
| 27831 | return true; |
| 27832 | #endif |
| 27833 | } |
| 27834 | PRESERVE_NONE |
| 27835 | static bool Interp_GetLocalUint8(InterpState &S) { |
| 27836 | { |
| 27837 | CodePtr OpPC = S.PC; |
| 27838 | const auto V0 = ReadArg<uint32_t>(S, S.PC); |
| 27839 | if (!GetLocal<PT_Uint8>(S, OpPC, V0)) return false; |
| 27840 | } |
| 27841 | #if USE_TAILCALLS |
| 27842 | MUSTTAIL return InterpNext(S); |
| 27843 | #else |
| 27844 | return true; |
| 27845 | #endif |
| 27846 | } |
| 27847 | PRESERVE_NONE |
| 27848 | static bool Interp_GetLocalSint16(InterpState &S) { |
| 27849 | { |
| 27850 | CodePtr OpPC = S.PC; |
| 27851 | const auto V0 = ReadArg<uint32_t>(S, S.PC); |
| 27852 | if (!GetLocal<PT_Sint16>(S, OpPC, V0)) return false; |
| 27853 | } |
| 27854 | #if USE_TAILCALLS |
| 27855 | MUSTTAIL return InterpNext(S); |
| 27856 | #else |
| 27857 | return true; |
| 27858 | #endif |
| 27859 | } |
| 27860 | PRESERVE_NONE |
| 27861 | static bool Interp_GetLocalUint16(InterpState &S) { |
| 27862 | { |
| 27863 | CodePtr OpPC = S.PC; |
| 27864 | const auto V0 = ReadArg<uint32_t>(S, S.PC); |
| 27865 | if (!GetLocal<PT_Uint16>(S, OpPC, V0)) return false; |
| 27866 | } |
| 27867 | #if USE_TAILCALLS |
| 27868 | MUSTTAIL return InterpNext(S); |
| 27869 | #else |
| 27870 | return true; |
| 27871 | #endif |
| 27872 | } |
| 27873 | PRESERVE_NONE |
| 27874 | static bool Interp_GetLocalSint32(InterpState &S) { |
| 27875 | { |
| 27876 | CodePtr OpPC = S.PC; |
| 27877 | const auto V0 = ReadArg<uint32_t>(S, S.PC); |
| 27878 | if (!GetLocal<PT_Sint32>(S, OpPC, V0)) return false; |
| 27879 | } |
| 27880 | #if USE_TAILCALLS |
| 27881 | MUSTTAIL return InterpNext(S); |
| 27882 | #else |
| 27883 | return true; |
| 27884 | #endif |
| 27885 | } |
| 27886 | PRESERVE_NONE |
| 27887 | static bool Interp_GetLocalUint32(InterpState &S) { |
| 27888 | { |
| 27889 | CodePtr OpPC = S.PC; |
| 27890 | const auto V0 = ReadArg<uint32_t>(S, S.PC); |
| 27891 | if (!GetLocal<PT_Uint32>(S, OpPC, V0)) return false; |
| 27892 | } |
| 27893 | #if USE_TAILCALLS |
| 27894 | MUSTTAIL return InterpNext(S); |
| 27895 | #else |
| 27896 | return true; |
| 27897 | #endif |
| 27898 | } |
| 27899 | PRESERVE_NONE |
| 27900 | static bool Interp_GetLocalSint64(InterpState &S) { |
| 27901 | { |
| 27902 | CodePtr OpPC = S.PC; |
| 27903 | const auto V0 = ReadArg<uint32_t>(S, S.PC); |
| 27904 | if (!GetLocal<PT_Sint64>(S, OpPC, V0)) return false; |
| 27905 | } |
| 27906 | #if USE_TAILCALLS |
| 27907 | MUSTTAIL return InterpNext(S); |
| 27908 | #else |
| 27909 | return true; |
| 27910 | #endif |
| 27911 | } |
| 27912 | PRESERVE_NONE |
| 27913 | static bool Interp_GetLocalUint64(InterpState &S) { |
| 27914 | { |
| 27915 | CodePtr OpPC = S.PC; |
| 27916 | const auto V0 = ReadArg<uint32_t>(S, S.PC); |
| 27917 | if (!GetLocal<PT_Uint64>(S, OpPC, V0)) return false; |
| 27918 | } |
| 27919 | #if USE_TAILCALLS |
| 27920 | MUSTTAIL return InterpNext(S); |
| 27921 | #else |
| 27922 | return true; |
| 27923 | #endif |
| 27924 | } |
| 27925 | PRESERVE_NONE |
| 27926 | static bool Interp_GetLocalIntAP(InterpState &S) { |
| 27927 | { |
| 27928 | CodePtr OpPC = S.PC; |
| 27929 | const auto V0 = ReadArg<uint32_t>(S, S.PC); |
| 27930 | if (!GetLocal<PT_IntAP>(S, OpPC, V0)) return false; |
| 27931 | } |
| 27932 | #if USE_TAILCALLS |
| 27933 | MUSTTAIL return InterpNext(S); |
| 27934 | #else |
| 27935 | return true; |
| 27936 | #endif |
| 27937 | } |
| 27938 | PRESERVE_NONE |
| 27939 | static bool Interp_GetLocalIntAPS(InterpState &S) { |
| 27940 | { |
| 27941 | CodePtr OpPC = S.PC; |
| 27942 | const auto V0 = ReadArg<uint32_t>(S, S.PC); |
| 27943 | if (!GetLocal<PT_IntAPS>(S, OpPC, V0)) return false; |
| 27944 | } |
| 27945 | #if USE_TAILCALLS |
| 27946 | MUSTTAIL return InterpNext(S); |
| 27947 | #else |
| 27948 | return true; |
| 27949 | #endif |
| 27950 | } |
| 27951 | PRESERVE_NONE |
| 27952 | static bool Interp_GetLocalBool(InterpState &S) { |
| 27953 | { |
| 27954 | CodePtr OpPC = S.PC; |
| 27955 | const auto V0 = ReadArg<uint32_t>(S, S.PC); |
| 27956 | if (!GetLocal<PT_Bool>(S, OpPC, V0)) return false; |
| 27957 | } |
| 27958 | #if USE_TAILCALLS |
| 27959 | MUSTTAIL return InterpNext(S); |
| 27960 | #else |
| 27961 | return true; |
| 27962 | #endif |
| 27963 | } |
| 27964 | PRESERVE_NONE |
| 27965 | static bool Interp_GetLocalFixedPoint(InterpState &S) { |
| 27966 | { |
| 27967 | CodePtr OpPC = S.PC; |
| 27968 | const auto V0 = ReadArg<uint32_t>(S, S.PC); |
| 27969 | if (!GetLocal<PT_FixedPoint>(S, OpPC, V0)) return false; |
| 27970 | } |
| 27971 | #if USE_TAILCALLS |
| 27972 | MUSTTAIL return InterpNext(S); |
| 27973 | #else |
| 27974 | return true; |
| 27975 | #endif |
| 27976 | } |
| 27977 | PRESERVE_NONE |
| 27978 | static bool Interp_GetLocalPtr(InterpState &S) { |
| 27979 | { |
| 27980 | CodePtr OpPC = S.PC; |
| 27981 | const auto V0 = ReadArg<uint32_t>(S, S.PC); |
| 27982 | if (!GetLocal<PT_Ptr>(S, OpPC, V0)) return false; |
| 27983 | } |
| 27984 | #if USE_TAILCALLS |
| 27985 | MUSTTAIL return InterpNext(S); |
| 27986 | #else |
| 27987 | return true; |
| 27988 | #endif |
| 27989 | } |
| 27990 | PRESERVE_NONE |
| 27991 | static bool Interp_GetLocalMemberPtr(InterpState &S) { |
| 27992 | { |
| 27993 | CodePtr OpPC = S.PC; |
| 27994 | const auto V0 = ReadArg<uint32_t>(S, S.PC); |
| 27995 | if (!GetLocal<PT_MemberPtr>(S, OpPC, V0)) return false; |
| 27996 | } |
| 27997 | #if USE_TAILCALLS |
| 27998 | MUSTTAIL return InterpNext(S); |
| 27999 | #else |
| 28000 | return true; |
| 28001 | #endif |
| 28002 | } |
| 28003 | PRESERVE_NONE |
| 28004 | static bool Interp_GetLocalFloat(InterpState &S) { |
| 28005 | { |
| 28006 | CodePtr OpPC = S.PC; |
| 28007 | const auto V0 = ReadArg<uint32_t>(S, S.PC); |
| 28008 | if (!GetLocal<PT_Float>(S, OpPC, V0)) return false; |
| 28009 | } |
| 28010 | #if USE_TAILCALLS |
| 28011 | MUSTTAIL return InterpNext(S); |
| 28012 | #else |
| 28013 | return true; |
| 28014 | #endif |
| 28015 | } |
| 28016 | PRESERVE_NONE |
| 28017 | static bool Interp_GetLocalReflect(InterpState &S) { |
| 28018 | { |
| 28019 | CodePtr OpPC = S.PC; |
| 28020 | const auto V0 = ReadArg<uint32_t>(S, S.PC); |
| 28021 | if (!GetLocal<PT_Reflect>(S, OpPC, V0)) return false; |
| 28022 | } |
| 28023 | #if USE_TAILCALLS |
| 28024 | MUSTTAIL return InterpNext(S); |
| 28025 | #else |
| 28026 | return true; |
| 28027 | #endif |
| 28028 | } |
| 28029 | #endif |
| 28030 | #ifdef GET_DISASM |
| 28031 | case OP_GetLocalSint8: |
| 28032 | Text.Op = PrintName("GetLocalSint8" ); |
| 28033 | Text.Args.push_back(printArg<uint32_t>(PC)); |
| 28034 | break; |
| 28035 | case OP_GetLocalUint8: |
| 28036 | Text.Op = PrintName("GetLocalUint8" ); |
| 28037 | Text.Args.push_back(printArg<uint32_t>(PC)); |
| 28038 | break; |
| 28039 | case OP_GetLocalSint16: |
| 28040 | Text.Op = PrintName("GetLocalSint16" ); |
| 28041 | Text.Args.push_back(printArg<uint32_t>(PC)); |
| 28042 | break; |
| 28043 | case OP_GetLocalUint16: |
| 28044 | Text.Op = PrintName("GetLocalUint16" ); |
| 28045 | Text.Args.push_back(printArg<uint32_t>(PC)); |
| 28046 | break; |
| 28047 | case OP_GetLocalSint32: |
| 28048 | Text.Op = PrintName("GetLocalSint32" ); |
| 28049 | Text.Args.push_back(printArg<uint32_t>(PC)); |
| 28050 | break; |
| 28051 | case OP_GetLocalUint32: |
| 28052 | Text.Op = PrintName("GetLocalUint32" ); |
| 28053 | Text.Args.push_back(printArg<uint32_t>(PC)); |
| 28054 | break; |
| 28055 | case OP_GetLocalSint64: |
| 28056 | Text.Op = PrintName("GetLocalSint64" ); |
| 28057 | Text.Args.push_back(printArg<uint32_t>(PC)); |
| 28058 | break; |
| 28059 | case OP_GetLocalUint64: |
| 28060 | Text.Op = PrintName("GetLocalUint64" ); |
| 28061 | Text.Args.push_back(printArg<uint32_t>(PC)); |
| 28062 | break; |
| 28063 | case OP_GetLocalIntAP: |
| 28064 | Text.Op = PrintName("GetLocalIntAP" ); |
| 28065 | Text.Args.push_back(printArg<uint32_t>(PC)); |
| 28066 | break; |
| 28067 | case OP_GetLocalIntAPS: |
| 28068 | Text.Op = PrintName("GetLocalIntAPS" ); |
| 28069 | Text.Args.push_back(printArg<uint32_t>(PC)); |
| 28070 | break; |
| 28071 | case OP_GetLocalBool: |
| 28072 | Text.Op = PrintName("GetLocalBool" ); |
| 28073 | Text.Args.push_back(printArg<uint32_t>(PC)); |
| 28074 | break; |
| 28075 | case OP_GetLocalFixedPoint: |
| 28076 | Text.Op = PrintName("GetLocalFixedPoint" ); |
| 28077 | Text.Args.push_back(printArg<uint32_t>(PC)); |
| 28078 | break; |
| 28079 | case OP_GetLocalPtr: |
| 28080 | Text.Op = PrintName("GetLocalPtr" ); |
| 28081 | Text.Args.push_back(printArg<uint32_t>(PC)); |
| 28082 | break; |
| 28083 | case OP_GetLocalMemberPtr: |
| 28084 | Text.Op = PrintName("GetLocalMemberPtr" ); |
| 28085 | Text.Args.push_back(printArg<uint32_t>(PC)); |
| 28086 | break; |
| 28087 | case OP_GetLocalFloat: |
| 28088 | Text.Op = PrintName("GetLocalFloat" ); |
| 28089 | Text.Args.push_back(printArg<uint32_t>(PC)); |
| 28090 | break; |
| 28091 | case OP_GetLocalReflect: |
| 28092 | Text.Op = PrintName("GetLocalReflect" ); |
| 28093 | Text.Args.push_back(printArg<uint32_t>(PC)); |
| 28094 | break; |
| 28095 | #endif |
| 28096 | #if defined(GET_EVAL_PROTO) || defined(GET_LINK_PROTO) |
| 28097 | bool emitGetLocalSint8( uint32_t , SourceInfo); |
| 28098 | bool emitGetLocalUint8( uint32_t , SourceInfo); |
| 28099 | bool emitGetLocalSint16( uint32_t , SourceInfo); |
| 28100 | bool emitGetLocalUint16( uint32_t , SourceInfo); |
| 28101 | bool emitGetLocalSint32( uint32_t , SourceInfo); |
| 28102 | bool emitGetLocalUint32( uint32_t , SourceInfo); |
| 28103 | bool emitGetLocalSint64( uint32_t , SourceInfo); |
| 28104 | bool emitGetLocalUint64( uint32_t , SourceInfo); |
| 28105 | bool emitGetLocalIntAP( uint32_t , SourceInfo); |
| 28106 | bool emitGetLocalIntAPS( uint32_t , SourceInfo); |
| 28107 | bool emitGetLocalBool( uint32_t , SourceInfo); |
| 28108 | bool emitGetLocalFixedPoint( uint32_t , SourceInfo); |
| 28109 | bool emitGetLocalPtr( uint32_t , SourceInfo); |
| 28110 | bool emitGetLocalMemberPtr( uint32_t , SourceInfo); |
| 28111 | bool emitGetLocalFloat( uint32_t , SourceInfo); |
| 28112 | bool emitGetLocalReflect( uint32_t , SourceInfo); |
| 28113 | #if defined(GET_EVAL_PROTO) |
| 28114 | template<PrimType> |
| 28115 | bool emitGetLocal(uint32_t, SourceInfo); |
| 28116 | #endif |
| 28117 | #endif |
| 28118 | #if defined(GET_EVAL_PROTO) || defined(GET_LINK_PROTO) |
| 28119 | [[nodiscard]] bool emitGetLocal(PrimType, uint32_t, SourceInfo I); |
| 28120 | #endif |
| 28121 | #if defined(GET_EVAL_IMPL) || defined(GET_LINK_IMPL) |
| 28122 | bool |
| 28123 | #if defined(GET_EVAL_IMPL) |
| 28124 | EvalEmitter |
| 28125 | #else |
| 28126 | ByteCodeEmitter |
| 28127 | #endif |
| 28128 | ::emitGetLocal(PrimType T0, uint32_t A0, SourceInfo I) { |
| 28129 | switch (T0) { |
| 28130 | case PT_Sint8: |
| 28131 | #ifdef GET_LINK_IMPL |
| 28132 | return emitGetLocalSint8 |
| 28133 | #else |
| 28134 | return emitGetLocal<PT_Sint8> |
| 28135 | #endif |
| 28136 | (A0, I); |
| 28137 | case PT_Uint8: |
| 28138 | #ifdef GET_LINK_IMPL |
| 28139 | return emitGetLocalUint8 |
| 28140 | #else |
| 28141 | return emitGetLocal<PT_Uint8> |
| 28142 | #endif |
| 28143 | (A0, I); |
| 28144 | case PT_Sint16: |
| 28145 | #ifdef GET_LINK_IMPL |
| 28146 | return emitGetLocalSint16 |
| 28147 | #else |
| 28148 | return emitGetLocal<PT_Sint16> |
| 28149 | #endif |
| 28150 | (A0, I); |
| 28151 | case PT_Uint16: |
| 28152 | #ifdef GET_LINK_IMPL |
| 28153 | return emitGetLocalUint16 |
| 28154 | #else |
| 28155 | return emitGetLocal<PT_Uint16> |
| 28156 | #endif |
| 28157 | (A0, I); |
| 28158 | case PT_Sint32: |
| 28159 | #ifdef GET_LINK_IMPL |
| 28160 | return emitGetLocalSint32 |
| 28161 | #else |
| 28162 | return emitGetLocal<PT_Sint32> |
| 28163 | #endif |
| 28164 | (A0, I); |
| 28165 | case PT_Uint32: |
| 28166 | #ifdef GET_LINK_IMPL |
| 28167 | return emitGetLocalUint32 |
| 28168 | #else |
| 28169 | return emitGetLocal<PT_Uint32> |
| 28170 | #endif |
| 28171 | (A0, I); |
| 28172 | case PT_Sint64: |
| 28173 | #ifdef GET_LINK_IMPL |
| 28174 | return emitGetLocalSint64 |
| 28175 | #else |
| 28176 | return emitGetLocal<PT_Sint64> |
| 28177 | #endif |
| 28178 | (A0, I); |
| 28179 | case PT_Uint64: |
| 28180 | #ifdef GET_LINK_IMPL |
| 28181 | return emitGetLocalUint64 |
| 28182 | #else |
| 28183 | return emitGetLocal<PT_Uint64> |
| 28184 | #endif |
| 28185 | (A0, I); |
| 28186 | case PT_IntAP: |
| 28187 | #ifdef GET_LINK_IMPL |
| 28188 | return emitGetLocalIntAP |
| 28189 | #else |
| 28190 | return emitGetLocal<PT_IntAP> |
| 28191 | #endif |
| 28192 | (A0, I); |
| 28193 | case PT_IntAPS: |
| 28194 | #ifdef GET_LINK_IMPL |
| 28195 | return emitGetLocalIntAPS |
| 28196 | #else |
| 28197 | return emitGetLocal<PT_IntAPS> |
| 28198 | #endif |
| 28199 | (A0, I); |
| 28200 | case PT_Bool: |
| 28201 | #ifdef GET_LINK_IMPL |
| 28202 | return emitGetLocalBool |
| 28203 | #else |
| 28204 | return emitGetLocal<PT_Bool> |
| 28205 | #endif |
| 28206 | (A0, I); |
| 28207 | case PT_FixedPoint: |
| 28208 | #ifdef GET_LINK_IMPL |
| 28209 | return emitGetLocalFixedPoint |
| 28210 | #else |
| 28211 | return emitGetLocal<PT_FixedPoint> |
| 28212 | #endif |
| 28213 | (A0, I); |
| 28214 | case PT_Ptr: |
| 28215 | #ifdef GET_LINK_IMPL |
| 28216 | return emitGetLocalPtr |
| 28217 | #else |
| 28218 | return emitGetLocal<PT_Ptr> |
| 28219 | #endif |
| 28220 | (A0, I); |
| 28221 | case PT_MemberPtr: |
| 28222 | #ifdef GET_LINK_IMPL |
| 28223 | return emitGetLocalMemberPtr |
| 28224 | #else |
| 28225 | return emitGetLocal<PT_MemberPtr> |
| 28226 | #endif |
| 28227 | (A0, I); |
| 28228 | case PT_Float: |
| 28229 | #ifdef GET_LINK_IMPL |
| 28230 | return emitGetLocalFloat |
| 28231 | #else |
| 28232 | return emitGetLocal<PT_Float> |
| 28233 | #endif |
| 28234 | (A0, I); |
| 28235 | case PT_Reflect: |
| 28236 | #ifdef GET_LINK_IMPL |
| 28237 | return emitGetLocalReflect |
| 28238 | #else |
| 28239 | return emitGetLocal<PT_Reflect> |
| 28240 | #endif |
| 28241 | (A0, I); |
| 28242 | } |
| 28243 | llvm_unreachable("invalid enum value" ); |
| 28244 | } |
| 28245 | #endif |
| 28246 | #ifdef GET_LINK_IMPL |
| 28247 | bool ByteCodeEmitter::emitGetLocalSint8( uint32_t A0, SourceInfo L) { |
| 28248 | return emitOp<uint32_t>(OP_GetLocalSint8, A0, L); |
| 28249 | } |
| 28250 | bool ByteCodeEmitter::emitGetLocalUint8( uint32_t A0, SourceInfo L) { |
| 28251 | return emitOp<uint32_t>(OP_GetLocalUint8, A0, L); |
| 28252 | } |
| 28253 | bool ByteCodeEmitter::emitGetLocalSint16( uint32_t A0, SourceInfo L) { |
| 28254 | return emitOp<uint32_t>(OP_GetLocalSint16, A0, L); |
| 28255 | } |
| 28256 | bool ByteCodeEmitter::emitGetLocalUint16( uint32_t A0, SourceInfo L) { |
| 28257 | return emitOp<uint32_t>(OP_GetLocalUint16, A0, L); |
| 28258 | } |
| 28259 | bool ByteCodeEmitter::emitGetLocalSint32( uint32_t A0, SourceInfo L) { |
| 28260 | return emitOp<uint32_t>(OP_GetLocalSint32, A0, L); |
| 28261 | } |
| 28262 | bool ByteCodeEmitter::emitGetLocalUint32( uint32_t A0, SourceInfo L) { |
| 28263 | return emitOp<uint32_t>(OP_GetLocalUint32, A0, L); |
| 28264 | } |
| 28265 | bool ByteCodeEmitter::emitGetLocalSint64( uint32_t A0, SourceInfo L) { |
| 28266 | return emitOp<uint32_t>(OP_GetLocalSint64, A0, L); |
| 28267 | } |
| 28268 | bool ByteCodeEmitter::emitGetLocalUint64( uint32_t A0, SourceInfo L) { |
| 28269 | return emitOp<uint32_t>(OP_GetLocalUint64, A0, L); |
| 28270 | } |
| 28271 | bool ByteCodeEmitter::emitGetLocalIntAP( uint32_t A0, SourceInfo L) { |
| 28272 | return emitOp<uint32_t>(OP_GetLocalIntAP, A0, L); |
| 28273 | } |
| 28274 | bool ByteCodeEmitter::emitGetLocalIntAPS( uint32_t A0, SourceInfo L) { |
| 28275 | return emitOp<uint32_t>(OP_GetLocalIntAPS, A0, L); |
| 28276 | } |
| 28277 | bool ByteCodeEmitter::emitGetLocalBool( uint32_t A0, SourceInfo L) { |
| 28278 | return emitOp<uint32_t>(OP_GetLocalBool, A0, L); |
| 28279 | } |
| 28280 | bool ByteCodeEmitter::emitGetLocalFixedPoint( uint32_t A0, SourceInfo L) { |
| 28281 | return emitOp<uint32_t>(OP_GetLocalFixedPoint, A0, L); |
| 28282 | } |
| 28283 | bool ByteCodeEmitter::emitGetLocalPtr( uint32_t A0, SourceInfo L) { |
| 28284 | return emitOp<uint32_t>(OP_GetLocalPtr, A0, L); |
| 28285 | } |
| 28286 | bool ByteCodeEmitter::emitGetLocalMemberPtr( uint32_t A0, SourceInfo L) { |
| 28287 | return emitOp<uint32_t>(OP_GetLocalMemberPtr, A0, L); |
| 28288 | } |
| 28289 | bool ByteCodeEmitter::emitGetLocalFloat( uint32_t A0, SourceInfo L) { |
| 28290 | return emitOp<uint32_t>(OP_GetLocalFloat, A0, L); |
| 28291 | } |
| 28292 | bool ByteCodeEmitter::emitGetLocalReflect( uint32_t A0, SourceInfo L) { |
| 28293 | return emitOp<uint32_t>(OP_GetLocalReflect, A0, L); |
| 28294 | } |
| 28295 | #endif |
| 28296 | #ifdef GET_OPCODE_NAMES |
| 28297 | OP_GetLocalEnabled, |
| 28298 | #endif |
| 28299 | #ifdef GET_INTERPFN_LIST |
| 28300 | &Interp_GetLocalEnabled, |
| 28301 | #endif |
| 28302 | #ifdef GET_INTERPFN_DISPATCHERS |
| 28303 | PRESERVE_NONE |
| 28304 | static bool Interp_GetLocalEnabled(InterpState &S) { |
| 28305 | { |
| 28306 | const auto V0 = ReadArg<uint32_t>(S, S.PC); |
| 28307 | GetLocalEnabled(S, V0); |
| 28308 | } |
| 28309 | #if USE_TAILCALLS |
| 28310 | MUSTTAIL return InterpNext(S); |
| 28311 | #else |
| 28312 | return true; |
| 28313 | #endif |
| 28314 | } |
| 28315 | #endif |
| 28316 | #ifdef GET_DISASM |
| 28317 | case OP_GetLocalEnabled: |
| 28318 | Text.Op = PrintName("GetLocalEnabled" ); |
| 28319 | Text.Args.push_back(printArg<uint32_t>(PC)); |
| 28320 | break; |
| 28321 | #endif |
| 28322 | #if defined(GET_EVAL_PROTO) || defined(GET_LINK_PROTO) |
| 28323 | bool emitGetLocalEnabled( uint32_t , SourceInfo); |
| 28324 | #endif |
| 28325 | #ifdef GET_LINK_IMPL |
| 28326 | bool ByteCodeEmitter::emitGetLocalEnabled( uint32_t A0, SourceInfo L) { |
| 28327 | return emitOp<uint32_t>(OP_GetLocalEnabled, A0, L); |
| 28328 | } |
| 28329 | #endif |
| 28330 | #ifdef GET_OPCODE_NAMES |
| 28331 | OP_GetMemberPtr, |
| 28332 | #endif |
| 28333 | #ifdef GET_INTERPFN_LIST |
| 28334 | &Interp_GetMemberPtr, |
| 28335 | #endif |
| 28336 | #ifdef GET_INTERPFN_DISPATCHERS |
| 28337 | PRESERVE_NONE |
| 28338 | static bool Interp_GetMemberPtr(InterpState &S) { |
| 28339 | { |
| 28340 | const auto V0 = ReadArg<const ValueDecl*>(S, S.PC); |
| 28341 | GetMemberPtr(S, V0); |
| 28342 | } |
| 28343 | #if USE_TAILCALLS |
| 28344 | MUSTTAIL return InterpNext(S); |
| 28345 | #else |
| 28346 | return true; |
| 28347 | #endif |
| 28348 | } |
| 28349 | #endif |
| 28350 | #ifdef GET_DISASM |
| 28351 | case OP_GetMemberPtr: |
| 28352 | Text.Op = PrintName("GetMemberPtr" ); |
| 28353 | Text.Args.push_back(printArg<const ValueDecl*>(PC)); |
| 28354 | break; |
| 28355 | #endif |
| 28356 | #if defined(GET_EVAL_PROTO) || defined(GET_LINK_PROTO) |
| 28357 | bool emitGetMemberPtr( const ValueDecl* , SourceInfo); |
| 28358 | #endif |
| 28359 | #ifdef GET_LINK_IMPL |
| 28360 | bool ByteCodeEmitter::emitGetMemberPtr( const ValueDecl* A0, SourceInfo L) { |
| 28361 | return emitOp<const ValueDecl*>(OP_GetMemberPtr, A0, L); |
| 28362 | } |
| 28363 | #endif |
| 28364 | #ifdef GET_EVAL_IMPL |
| 28365 | bool EvalEmitter::emitGetMemberPtr( const ValueDecl* A0, SourceInfo L) { |
| 28366 | if (!isActive()) return true; |
| 28367 | CurrentSource = L; |
| 28368 | return GetMemberPtr(S, A0); |
| 28369 | } |
| 28370 | #endif |
| 28371 | #ifdef GET_OPCODE_NAMES |
| 28372 | OP_GetMemberPtrBase, |
| 28373 | #endif |
| 28374 | #ifdef GET_INTERPFN_LIST |
| 28375 | &Interp_GetMemberPtrBase, |
| 28376 | #endif |
| 28377 | #ifdef GET_INTERPFN_DISPATCHERS |
| 28378 | PRESERVE_NONE |
| 28379 | static bool Interp_GetMemberPtrBase(InterpState &S) { |
| 28380 | if (!GetMemberPtrBase(S)) return false; |
| 28381 | #if USE_TAILCALLS |
| 28382 | MUSTTAIL return InterpNext(S); |
| 28383 | #else |
| 28384 | return true; |
| 28385 | #endif |
| 28386 | } |
| 28387 | #endif |
| 28388 | #ifdef GET_DISASM |
| 28389 | case OP_GetMemberPtrBase: |
| 28390 | Text.Op = PrintName("GetMemberPtrBase" ); |
| 28391 | break; |
| 28392 | #endif |
| 28393 | #if defined(GET_EVAL_PROTO) || defined(GET_LINK_PROTO) |
| 28394 | bool emitGetMemberPtrBase(SourceInfo); |
| 28395 | #endif |
| 28396 | #ifdef GET_LINK_IMPL |
| 28397 | bool ByteCodeEmitter::emitGetMemberPtrBase(SourceInfo L) { |
| 28398 | return emitOp<>(OP_GetMemberPtrBase, L); |
| 28399 | } |
| 28400 | #endif |
| 28401 | #ifdef GET_EVAL_IMPL |
| 28402 | bool EvalEmitter::emitGetMemberPtrBase(SourceInfo L) { |
| 28403 | if (!isActive()) return true; |
| 28404 | CurrentSource = L; |
| 28405 | return GetMemberPtrBase(S); |
| 28406 | } |
| 28407 | #endif |
| 28408 | #ifdef GET_OPCODE_NAMES |
| 28409 | OP_GetMemberPtrDecl, |
| 28410 | #endif |
| 28411 | #ifdef GET_INTERPFN_LIST |
| 28412 | &Interp_GetMemberPtrDecl, |
| 28413 | #endif |
| 28414 | #ifdef GET_INTERPFN_DISPATCHERS |
| 28415 | PRESERVE_NONE |
| 28416 | static bool Interp_GetMemberPtrDecl(InterpState &S) { |
| 28417 | if (!GetMemberPtrDecl(S)) return false; |
| 28418 | #if USE_TAILCALLS |
| 28419 | MUSTTAIL return InterpNext(S); |
| 28420 | #else |
| 28421 | return true; |
| 28422 | #endif |
| 28423 | } |
| 28424 | #endif |
| 28425 | #ifdef GET_DISASM |
| 28426 | case OP_GetMemberPtrDecl: |
| 28427 | Text.Op = PrintName("GetMemberPtrDecl" ); |
| 28428 | break; |
| 28429 | #endif |
| 28430 | #if defined(GET_EVAL_PROTO) || defined(GET_LINK_PROTO) |
| 28431 | bool emitGetMemberPtrDecl(SourceInfo); |
| 28432 | #endif |
| 28433 | #ifdef GET_LINK_IMPL |
| 28434 | bool ByteCodeEmitter::emitGetMemberPtrDecl(SourceInfo L) { |
| 28435 | return emitOp<>(OP_GetMemberPtrDecl, L); |
| 28436 | } |
| 28437 | #endif |
| 28438 | #ifdef GET_EVAL_IMPL |
| 28439 | bool EvalEmitter::emitGetMemberPtrDecl(SourceInfo L) { |
| 28440 | if (!isActive()) return true; |
| 28441 | CurrentSource = L; |
| 28442 | return GetMemberPtrDecl(S); |
| 28443 | } |
| 28444 | #endif |
| 28445 | #ifdef GET_OPCODE_NAMES |
| 28446 | OP_GetOpaquePtr, |
| 28447 | #endif |
| 28448 | #ifdef GET_INTERPFN_LIST |
| 28449 | &Interp_GetOpaquePtr, |
| 28450 | #endif |
| 28451 | #ifdef GET_INTERPFN_DISPATCHERS |
| 28452 | PRESERVE_NONE |
| 28453 | static bool Interp_GetOpaquePtr(InterpState &S) { |
| 28454 | { |
| 28455 | const auto V0 = ReadArg<DeclOrExpr>(S, S.PC); |
| 28456 | const auto V1 = ReadArg<bool>(S, S.PC); |
| 28457 | GetOpaquePtr(S, V0, V1); |
| 28458 | } |
| 28459 | #if USE_TAILCALLS |
| 28460 | MUSTTAIL return InterpNext(S); |
| 28461 | #else |
| 28462 | return true; |
| 28463 | #endif |
| 28464 | } |
| 28465 | #endif |
| 28466 | #ifdef GET_DISASM |
| 28467 | case OP_GetOpaquePtr: |
| 28468 | Text.Op = PrintName("GetOpaquePtr" ); |
| 28469 | Text.Args.push_back(printArg<DeclOrExpr>(PC)); |
| 28470 | Text.Args.push_back(printArg<bool>(PC)); |
| 28471 | break; |
| 28472 | #endif |
| 28473 | #if defined(GET_EVAL_PROTO) || defined(GET_LINK_PROTO) |
| 28474 | bool emitGetOpaquePtr( DeclOrExpr , bool , SourceInfo); |
| 28475 | #endif |
| 28476 | #ifdef GET_LINK_IMPL |
| 28477 | bool ByteCodeEmitter::emitGetOpaquePtr( DeclOrExpr A0, bool A1, SourceInfo L) { |
| 28478 | return emitOp<DeclOrExpr, bool>(OP_GetOpaquePtr, A0, A1, L); |
| 28479 | } |
| 28480 | #endif |
| 28481 | #ifdef GET_EVAL_IMPL |
| 28482 | bool EvalEmitter::emitGetOpaquePtr( DeclOrExpr A0, bool A1, SourceInfo L) { |
| 28483 | if (!isActive()) return true; |
| 28484 | CurrentSource = L; |
| 28485 | return GetOpaquePtr(S, A0, A1); |
| 28486 | } |
| 28487 | #endif |
| 28488 | #ifdef GET_OPCODE_NAMES |
| 28489 | OP_GetParamSint8, |
| 28490 | OP_GetParamUint8, |
| 28491 | OP_GetParamSint16, |
| 28492 | OP_GetParamUint16, |
| 28493 | OP_GetParamSint32, |
| 28494 | OP_GetParamUint32, |
| 28495 | OP_GetParamSint64, |
| 28496 | OP_GetParamUint64, |
| 28497 | OP_GetParamIntAP, |
| 28498 | OP_GetParamIntAPS, |
| 28499 | OP_GetParamBool, |
| 28500 | OP_GetParamFixedPoint, |
| 28501 | OP_GetParamPtr, |
| 28502 | OP_GetParamMemberPtr, |
| 28503 | OP_GetParamFloat, |
| 28504 | OP_GetParamReflect, |
| 28505 | #endif |
| 28506 | #ifdef GET_INTERPFN_LIST |
| 28507 | &Interp_GetParamSint8, |
| 28508 | &Interp_GetParamUint8, |
| 28509 | &Interp_GetParamSint16, |
| 28510 | &Interp_GetParamUint16, |
| 28511 | &Interp_GetParamSint32, |
| 28512 | &Interp_GetParamUint32, |
| 28513 | &Interp_GetParamSint64, |
| 28514 | &Interp_GetParamUint64, |
| 28515 | &Interp_GetParamIntAP, |
| 28516 | &Interp_GetParamIntAPS, |
| 28517 | &Interp_GetParamBool, |
| 28518 | &Interp_GetParamFixedPoint, |
| 28519 | &Interp_GetParamPtr, |
| 28520 | &Interp_GetParamMemberPtr, |
| 28521 | &Interp_GetParamFloat, |
| 28522 | &Interp_GetParamReflect, |
| 28523 | #endif |
| 28524 | #ifdef GET_INTERPFN_DISPATCHERS |
| 28525 | PRESERVE_NONE |
| 28526 | static bool Interp_GetParamSint8(InterpState &S) { |
| 28527 | { |
| 28528 | const auto V0 = ReadArg<uint32_t>(S, S.PC); |
| 28529 | if (!GetParam<PT_Sint8>(S, V0)) return false; |
| 28530 | } |
| 28531 | #if USE_TAILCALLS |
| 28532 | MUSTTAIL return InterpNext(S); |
| 28533 | #else |
| 28534 | return true; |
| 28535 | #endif |
| 28536 | } |
| 28537 | PRESERVE_NONE |
| 28538 | static bool Interp_GetParamUint8(InterpState &S) { |
| 28539 | { |
| 28540 | const auto V0 = ReadArg<uint32_t>(S, S.PC); |
| 28541 | if (!GetParam<PT_Uint8>(S, V0)) return false; |
| 28542 | } |
| 28543 | #if USE_TAILCALLS |
| 28544 | MUSTTAIL return InterpNext(S); |
| 28545 | #else |
| 28546 | return true; |
| 28547 | #endif |
| 28548 | } |
| 28549 | PRESERVE_NONE |
| 28550 | static bool Interp_GetParamSint16(InterpState &S) { |
| 28551 | { |
| 28552 | const auto V0 = ReadArg<uint32_t>(S, S.PC); |
| 28553 | if (!GetParam<PT_Sint16>(S, V0)) return false; |
| 28554 | } |
| 28555 | #if USE_TAILCALLS |
| 28556 | MUSTTAIL return InterpNext(S); |
| 28557 | #else |
| 28558 | return true; |
| 28559 | #endif |
| 28560 | } |
| 28561 | PRESERVE_NONE |
| 28562 | static bool Interp_GetParamUint16(InterpState &S) { |
| 28563 | { |
| 28564 | const auto V0 = ReadArg<uint32_t>(S, S.PC); |
| 28565 | if (!GetParam<PT_Uint16>(S, V0)) return false; |
| 28566 | } |
| 28567 | #if USE_TAILCALLS |
| 28568 | MUSTTAIL return InterpNext(S); |
| 28569 | #else |
| 28570 | return true; |
| 28571 | #endif |
| 28572 | } |
| 28573 | PRESERVE_NONE |
| 28574 | static bool Interp_GetParamSint32(InterpState &S) { |
| 28575 | { |
| 28576 | const auto V0 = ReadArg<uint32_t>(S, S.PC); |
| 28577 | if (!GetParam<PT_Sint32>(S, V0)) return false; |
| 28578 | } |
| 28579 | #if USE_TAILCALLS |
| 28580 | MUSTTAIL return InterpNext(S); |
| 28581 | #else |
| 28582 | return true; |
| 28583 | #endif |
| 28584 | } |
| 28585 | PRESERVE_NONE |
| 28586 | static bool Interp_GetParamUint32(InterpState &S) { |
| 28587 | { |
| 28588 | const auto V0 = ReadArg<uint32_t>(S, S.PC); |
| 28589 | if (!GetParam<PT_Uint32>(S, V0)) return false; |
| 28590 | } |
| 28591 | #if USE_TAILCALLS |
| 28592 | MUSTTAIL return InterpNext(S); |
| 28593 | #else |
| 28594 | return true; |
| 28595 | #endif |
| 28596 | } |
| 28597 | PRESERVE_NONE |
| 28598 | static bool Interp_GetParamSint64(InterpState &S) { |
| 28599 | { |
| 28600 | const auto V0 = ReadArg<uint32_t>(S, S.PC); |
| 28601 | if (!GetParam<PT_Sint64>(S, V0)) return false; |
| 28602 | } |
| 28603 | #if USE_TAILCALLS |
| 28604 | MUSTTAIL return InterpNext(S); |
| 28605 | #else |
| 28606 | return true; |
| 28607 | #endif |
| 28608 | } |
| 28609 | PRESERVE_NONE |
| 28610 | static bool Interp_GetParamUint64(InterpState &S) { |
| 28611 | { |
| 28612 | const auto V0 = ReadArg<uint32_t>(S, S.PC); |
| 28613 | if (!GetParam<PT_Uint64>(S, V0)) return false; |
| 28614 | } |
| 28615 | #if USE_TAILCALLS |
| 28616 | MUSTTAIL return InterpNext(S); |
| 28617 | #else |
| 28618 | return true; |
| 28619 | #endif |
| 28620 | } |
| 28621 | PRESERVE_NONE |
| 28622 | static bool Interp_GetParamIntAP(InterpState &S) { |
| 28623 | { |
| 28624 | const auto V0 = ReadArg<uint32_t>(S, S.PC); |
| 28625 | if (!GetParam<PT_IntAP>(S, V0)) return false; |
| 28626 | } |
| 28627 | #if USE_TAILCALLS |
| 28628 | MUSTTAIL return InterpNext(S); |
| 28629 | #else |
| 28630 | return true; |
| 28631 | #endif |
| 28632 | } |
| 28633 | PRESERVE_NONE |
| 28634 | static bool Interp_GetParamIntAPS(InterpState &S) { |
| 28635 | { |
| 28636 | const auto V0 = ReadArg<uint32_t>(S, S.PC); |
| 28637 | if (!GetParam<PT_IntAPS>(S, V0)) return false; |
| 28638 | } |
| 28639 | #if USE_TAILCALLS |
| 28640 | MUSTTAIL return InterpNext(S); |
| 28641 | #else |
| 28642 | return true; |
| 28643 | #endif |
| 28644 | } |
| 28645 | PRESERVE_NONE |
| 28646 | static bool Interp_GetParamBool(InterpState &S) { |
| 28647 | { |
| 28648 | const auto V0 = ReadArg<uint32_t>(S, S.PC); |
| 28649 | if (!GetParam<PT_Bool>(S, V0)) return false; |
| 28650 | } |
| 28651 | #if USE_TAILCALLS |
| 28652 | MUSTTAIL return InterpNext(S); |
| 28653 | #else |
| 28654 | return true; |
| 28655 | #endif |
| 28656 | } |
| 28657 | PRESERVE_NONE |
| 28658 | static bool Interp_GetParamFixedPoint(InterpState &S) { |
| 28659 | { |
| 28660 | const auto V0 = ReadArg<uint32_t>(S, S.PC); |
| 28661 | if (!GetParam<PT_FixedPoint>(S, V0)) return false; |
| 28662 | } |
| 28663 | #if USE_TAILCALLS |
| 28664 | MUSTTAIL return InterpNext(S); |
| 28665 | #else |
| 28666 | return true; |
| 28667 | #endif |
| 28668 | } |
| 28669 | PRESERVE_NONE |
| 28670 | static bool Interp_GetParamPtr(InterpState &S) { |
| 28671 | { |
| 28672 | const auto V0 = ReadArg<uint32_t>(S, S.PC); |
| 28673 | if (!GetParam<PT_Ptr>(S, V0)) return false; |
| 28674 | } |
| 28675 | #if USE_TAILCALLS |
| 28676 | MUSTTAIL return InterpNext(S); |
| 28677 | #else |
| 28678 | return true; |
| 28679 | #endif |
| 28680 | } |
| 28681 | PRESERVE_NONE |
| 28682 | static bool Interp_GetParamMemberPtr(InterpState &S) { |
| 28683 | { |
| 28684 | const auto V0 = ReadArg<uint32_t>(S, S.PC); |
| 28685 | if (!GetParam<PT_MemberPtr>(S, V0)) return false; |
| 28686 | } |
| 28687 | #if USE_TAILCALLS |
| 28688 | MUSTTAIL return InterpNext(S); |
| 28689 | #else |
| 28690 | return true; |
| 28691 | #endif |
| 28692 | } |
| 28693 | PRESERVE_NONE |
| 28694 | static bool Interp_GetParamFloat(InterpState &S) { |
| 28695 | { |
| 28696 | const auto V0 = ReadArg<uint32_t>(S, S.PC); |
| 28697 | if (!GetParam<PT_Float>(S, V0)) return false; |
| 28698 | } |
| 28699 | #if USE_TAILCALLS |
| 28700 | MUSTTAIL return InterpNext(S); |
| 28701 | #else |
| 28702 | return true; |
| 28703 | #endif |
| 28704 | } |
| 28705 | PRESERVE_NONE |
| 28706 | static bool Interp_GetParamReflect(InterpState &S) { |
| 28707 | { |
| 28708 | const auto V0 = ReadArg<uint32_t>(S, S.PC); |
| 28709 | if (!GetParam<PT_Reflect>(S, V0)) return false; |
| 28710 | } |
| 28711 | #if USE_TAILCALLS |
| 28712 | MUSTTAIL return InterpNext(S); |
| 28713 | #else |
| 28714 | return true; |
| 28715 | #endif |
| 28716 | } |
| 28717 | #endif |
| 28718 | #ifdef GET_DISASM |
| 28719 | case OP_GetParamSint8: |
| 28720 | Text.Op = PrintName("GetParamSint8" ); |
| 28721 | Text.Args.push_back(printArg<uint32_t>(PC)); |
| 28722 | break; |
| 28723 | case OP_GetParamUint8: |
| 28724 | Text.Op = PrintName("GetParamUint8" ); |
| 28725 | Text.Args.push_back(printArg<uint32_t>(PC)); |
| 28726 | break; |
| 28727 | case OP_GetParamSint16: |
| 28728 | Text.Op = PrintName("GetParamSint16" ); |
| 28729 | Text.Args.push_back(printArg<uint32_t>(PC)); |
| 28730 | break; |
| 28731 | case OP_GetParamUint16: |
| 28732 | Text.Op = PrintName("GetParamUint16" ); |
| 28733 | Text.Args.push_back(printArg<uint32_t>(PC)); |
| 28734 | break; |
| 28735 | case OP_GetParamSint32: |
| 28736 | Text.Op = PrintName("GetParamSint32" ); |
| 28737 | Text.Args.push_back(printArg<uint32_t>(PC)); |
| 28738 | break; |
| 28739 | case OP_GetParamUint32: |
| 28740 | Text.Op = PrintName("GetParamUint32" ); |
| 28741 | Text.Args.push_back(printArg<uint32_t>(PC)); |
| 28742 | break; |
| 28743 | case OP_GetParamSint64: |
| 28744 | Text.Op = PrintName("GetParamSint64" ); |
| 28745 | Text.Args.push_back(printArg<uint32_t>(PC)); |
| 28746 | break; |
| 28747 | case OP_GetParamUint64: |
| 28748 | Text.Op = PrintName("GetParamUint64" ); |
| 28749 | Text.Args.push_back(printArg<uint32_t>(PC)); |
| 28750 | break; |
| 28751 | case OP_GetParamIntAP: |
| 28752 | Text.Op = PrintName("GetParamIntAP" ); |
| 28753 | Text.Args.push_back(printArg<uint32_t>(PC)); |
| 28754 | break; |
| 28755 | case OP_GetParamIntAPS: |
| 28756 | Text.Op = PrintName("GetParamIntAPS" ); |
| 28757 | Text.Args.push_back(printArg<uint32_t>(PC)); |
| 28758 | break; |
| 28759 | case OP_GetParamBool: |
| 28760 | Text.Op = PrintName("GetParamBool" ); |
| 28761 | Text.Args.push_back(printArg<uint32_t>(PC)); |
| 28762 | break; |
| 28763 | case OP_GetParamFixedPoint: |
| 28764 | Text.Op = PrintName("GetParamFixedPoint" ); |
| 28765 | Text.Args.push_back(printArg<uint32_t>(PC)); |
| 28766 | break; |
| 28767 | case OP_GetParamPtr: |
| 28768 | Text.Op = PrintName("GetParamPtr" ); |
| 28769 | Text.Args.push_back(printArg<uint32_t>(PC)); |
| 28770 | break; |
| 28771 | case OP_GetParamMemberPtr: |
| 28772 | Text.Op = PrintName("GetParamMemberPtr" ); |
| 28773 | Text.Args.push_back(printArg<uint32_t>(PC)); |
| 28774 | break; |
| 28775 | case OP_GetParamFloat: |
| 28776 | Text.Op = PrintName("GetParamFloat" ); |
| 28777 | Text.Args.push_back(printArg<uint32_t>(PC)); |
| 28778 | break; |
| 28779 | case OP_GetParamReflect: |
| 28780 | Text.Op = PrintName("GetParamReflect" ); |
| 28781 | Text.Args.push_back(printArg<uint32_t>(PC)); |
| 28782 | break; |
| 28783 | #endif |
| 28784 | #if defined(GET_EVAL_PROTO) || defined(GET_LINK_PROTO) |
| 28785 | bool emitGetParamSint8( uint32_t , SourceInfo); |
| 28786 | bool emitGetParamUint8( uint32_t , SourceInfo); |
| 28787 | bool emitGetParamSint16( uint32_t , SourceInfo); |
| 28788 | bool emitGetParamUint16( uint32_t , SourceInfo); |
| 28789 | bool emitGetParamSint32( uint32_t , SourceInfo); |
| 28790 | bool emitGetParamUint32( uint32_t , SourceInfo); |
| 28791 | bool emitGetParamSint64( uint32_t , SourceInfo); |
| 28792 | bool emitGetParamUint64( uint32_t , SourceInfo); |
| 28793 | bool emitGetParamIntAP( uint32_t , SourceInfo); |
| 28794 | bool emitGetParamIntAPS( uint32_t , SourceInfo); |
| 28795 | bool emitGetParamBool( uint32_t , SourceInfo); |
| 28796 | bool emitGetParamFixedPoint( uint32_t , SourceInfo); |
| 28797 | bool emitGetParamPtr( uint32_t , SourceInfo); |
| 28798 | bool emitGetParamMemberPtr( uint32_t , SourceInfo); |
| 28799 | bool emitGetParamFloat( uint32_t , SourceInfo); |
| 28800 | bool emitGetParamReflect( uint32_t , SourceInfo); |
| 28801 | #endif |
| 28802 | #if defined(GET_EVAL_PROTO) || defined(GET_LINK_PROTO) |
| 28803 | [[nodiscard]] bool emitGetParam(PrimType, uint32_t, SourceInfo I); |
| 28804 | #endif |
| 28805 | #if defined(GET_EVAL_IMPL) || defined(GET_LINK_IMPL) |
| 28806 | bool |
| 28807 | #if defined(GET_EVAL_IMPL) |
| 28808 | EvalEmitter |
| 28809 | #else |
| 28810 | ByteCodeEmitter |
| 28811 | #endif |
| 28812 | ::emitGetParam(PrimType T0, uint32_t A0, SourceInfo I) { |
| 28813 | switch (T0) { |
| 28814 | case PT_Sint8: |
| 28815 | return emitGetParamSint8(A0, I); |
| 28816 | case PT_Uint8: |
| 28817 | return emitGetParamUint8(A0, I); |
| 28818 | case PT_Sint16: |
| 28819 | return emitGetParamSint16(A0, I); |
| 28820 | case PT_Uint16: |
| 28821 | return emitGetParamUint16(A0, I); |
| 28822 | case PT_Sint32: |
| 28823 | return emitGetParamSint32(A0, I); |
| 28824 | case PT_Uint32: |
| 28825 | return emitGetParamUint32(A0, I); |
| 28826 | case PT_Sint64: |
| 28827 | return emitGetParamSint64(A0, I); |
| 28828 | case PT_Uint64: |
| 28829 | return emitGetParamUint64(A0, I); |
| 28830 | case PT_IntAP: |
| 28831 | return emitGetParamIntAP(A0, I); |
| 28832 | case PT_IntAPS: |
| 28833 | return emitGetParamIntAPS(A0, I); |
| 28834 | case PT_Bool: |
| 28835 | return emitGetParamBool(A0, I); |
| 28836 | case PT_FixedPoint: |
| 28837 | return emitGetParamFixedPoint(A0, I); |
| 28838 | case PT_Ptr: |
| 28839 | return emitGetParamPtr(A0, I); |
| 28840 | case PT_MemberPtr: |
| 28841 | return emitGetParamMemberPtr(A0, I); |
| 28842 | case PT_Float: |
| 28843 | return emitGetParamFloat(A0, I); |
| 28844 | case PT_Reflect: |
| 28845 | return emitGetParamReflect(A0, I); |
| 28846 | } |
| 28847 | llvm_unreachable("invalid enum value" ); |
| 28848 | } |
| 28849 | #endif |
| 28850 | #ifdef GET_LINK_IMPL |
| 28851 | bool ByteCodeEmitter::emitGetParamSint8( uint32_t A0, SourceInfo L) { |
| 28852 | return emitOp<uint32_t>(OP_GetParamSint8, A0, L); |
| 28853 | } |
| 28854 | bool ByteCodeEmitter::emitGetParamUint8( uint32_t A0, SourceInfo L) { |
| 28855 | return emitOp<uint32_t>(OP_GetParamUint8, A0, L); |
| 28856 | } |
| 28857 | bool ByteCodeEmitter::emitGetParamSint16( uint32_t A0, SourceInfo L) { |
| 28858 | return emitOp<uint32_t>(OP_GetParamSint16, A0, L); |
| 28859 | } |
| 28860 | bool ByteCodeEmitter::emitGetParamUint16( uint32_t A0, SourceInfo L) { |
| 28861 | return emitOp<uint32_t>(OP_GetParamUint16, A0, L); |
| 28862 | } |
| 28863 | bool ByteCodeEmitter::emitGetParamSint32( uint32_t A0, SourceInfo L) { |
| 28864 | return emitOp<uint32_t>(OP_GetParamSint32, A0, L); |
| 28865 | } |
| 28866 | bool ByteCodeEmitter::emitGetParamUint32( uint32_t A0, SourceInfo L) { |
| 28867 | return emitOp<uint32_t>(OP_GetParamUint32, A0, L); |
| 28868 | } |
| 28869 | bool ByteCodeEmitter::emitGetParamSint64( uint32_t A0, SourceInfo L) { |
| 28870 | return emitOp<uint32_t>(OP_GetParamSint64, A0, L); |
| 28871 | } |
| 28872 | bool ByteCodeEmitter::emitGetParamUint64( uint32_t A0, SourceInfo L) { |
| 28873 | return emitOp<uint32_t>(OP_GetParamUint64, A0, L); |
| 28874 | } |
| 28875 | bool ByteCodeEmitter::emitGetParamIntAP( uint32_t A0, SourceInfo L) { |
| 28876 | return emitOp<uint32_t>(OP_GetParamIntAP, A0, L); |
| 28877 | } |
| 28878 | bool ByteCodeEmitter::emitGetParamIntAPS( uint32_t A0, SourceInfo L) { |
| 28879 | return emitOp<uint32_t>(OP_GetParamIntAPS, A0, L); |
| 28880 | } |
| 28881 | bool ByteCodeEmitter::emitGetParamBool( uint32_t A0, SourceInfo L) { |
| 28882 | return emitOp<uint32_t>(OP_GetParamBool, A0, L); |
| 28883 | } |
| 28884 | bool ByteCodeEmitter::emitGetParamFixedPoint( uint32_t A0, SourceInfo L) { |
| 28885 | return emitOp<uint32_t>(OP_GetParamFixedPoint, A0, L); |
| 28886 | } |
| 28887 | bool ByteCodeEmitter::emitGetParamPtr( uint32_t A0, SourceInfo L) { |
| 28888 | return emitOp<uint32_t>(OP_GetParamPtr, A0, L); |
| 28889 | } |
| 28890 | bool ByteCodeEmitter::emitGetParamMemberPtr( uint32_t A0, SourceInfo L) { |
| 28891 | return emitOp<uint32_t>(OP_GetParamMemberPtr, A0, L); |
| 28892 | } |
| 28893 | bool ByteCodeEmitter::emitGetParamFloat( uint32_t A0, SourceInfo L) { |
| 28894 | return emitOp<uint32_t>(OP_GetParamFloat, A0, L); |
| 28895 | } |
| 28896 | bool ByteCodeEmitter::emitGetParamReflect( uint32_t A0, SourceInfo L) { |
| 28897 | return emitOp<uint32_t>(OP_GetParamReflect, A0, L); |
| 28898 | } |
| 28899 | #endif |
| 28900 | #ifdef GET_EVAL_IMPL |
| 28901 | bool EvalEmitter::emitGetParamSint8( uint32_t A0, SourceInfo L) { |
| 28902 | if (!isActive()) return true; |
| 28903 | CurrentSource = L; |
| 28904 | return GetParam<PT_Sint8>(S, A0); |
| 28905 | } |
| 28906 | bool EvalEmitter::emitGetParamUint8( uint32_t A0, SourceInfo L) { |
| 28907 | if (!isActive()) return true; |
| 28908 | CurrentSource = L; |
| 28909 | return GetParam<PT_Uint8>(S, A0); |
| 28910 | } |
| 28911 | bool EvalEmitter::emitGetParamSint16( uint32_t A0, SourceInfo L) { |
| 28912 | if (!isActive()) return true; |
| 28913 | CurrentSource = L; |
| 28914 | return GetParam<PT_Sint16>(S, A0); |
| 28915 | } |
| 28916 | bool EvalEmitter::emitGetParamUint16( uint32_t A0, SourceInfo L) { |
| 28917 | if (!isActive()) return true; |
| 28918 | CurrentSource = L; |
| 28919 | return GetParam<PT_Uint16>(S, A0); |
| 28920 | } |
| 28921 | bool EvalEmitter::emitGetParamSint32( uint32_t A0, SourceInfo L) { |
| 28922 | if (!isActive()) return true; |
| 28923 | CurrentSource = L; |
| 28924 | return GetParam<PT_Sint32>(S, A0); |
| 28925 | } |
| 28926 | bool EvalEmitter::emitGetParamUint32( uint32_t A0, SourceInfo L) { |
| 28927 | if (!isActive()) return true; |
| 28928 | CurrentSource = L; |
| 28929 | return GetParam<PT_Uint32>(S, A0); |
| 28930 | } |
| 28931 | bool EvalEmitter::emitGetParamSint64( uint32_t A0, SourceInfo L) { |
| 28932 | if (!isActive()) return true; |
| 28933 | CurrentSource = L; |
| 28934 | return GetParam<PT_Sint64>(S, A0); |
| 28935 | } |
| 28936 | bool EvalEmitter::emitGetParamUint64( uint32_t A0, SourceInfo L) { |
| 28937 | if (!isActive()) return true; |
| 28938 | CurrentSource = L; |
| 28939 | return GetParam<PT_Uint64>(S, A0); |
| 28940 | } |
| 28941 | bool EvalEmitter::emitGetParamIntAP( uint32_t A0, SourceInfo L) { |
| 28942 | if (!isActive()) return true; |
| 28943 | CurrentSource = L; |
| 28944 | return GetParam<PT_IntAP>(S, A0); |
| 28945 | } |
| 28946 | bool EvalEmitter::emitGetParamIntAPS( uint32_t A0, SourceInfo L) { |
| 28947 | if (!isActive()) return true; |
| 28948 | CurrentSource = L; |
| 28949 | return GetParam<PT_IntAPS>(S, A0); |
| 28950 | } |
| 28951 | bool EvalEmitter::emitGetParamBool( uint32_t A0, SourceInfo L) { |
| 28952 | if (!isActive()) return true; |
| 28953 | CurrentSource = L; |
| 28954 | return GetParam<PT_Bool>(S, A0); |
| 28955 | } |
| 28956 | bool EvalEmitter::emitGetParamFixedPoint( uint32_t A0, SourceInfo L) { |
| 28957 | if (!isActive()) return true; |
| 28958 | CurrentSource = L; |
| 28959 | return GetParam<PT_FixedPoint>(S, A0); |
| 28960 | } |
| 28961 | bool EvalEmitter::emitGetParamPtr( uint32_t A0, SourceInfo L) { |
| 28962 | if (!isActive()) return true; |
| 28963 | CurrentSource = L; |
| 28964 | return GetParam<PT_Ptr>(S, A0); |
| 28965 | } |
| 28966 | bool EvalEmitter::emitGetParamMemberPtr( uint32_t A0, SourceInfo L) { |
| 28967 | if (!isActive()) return true; |
| 28968 | CurrentSource = L; |
| 28969 | return GetParam<PT_MemberPtr>(S, A0); |
| 28970 | } |
| 28971 | bool EvalEmitter::emitGetParamFloat( uint32_t A0, SourceInfo L) { |
| 28972 | if (!isActive()) return true; |
| 28973 | CurrentSource = L; |
| 28974 | return GetParam<PT_Float>(S, A0); |
| 28975 | } |
| 28976 | bool EvalEmitter::emitGetParamReflect( uint32_t A0, SourceInfo L) { |
| 28977 | if (!isActive()) return true; |
| 28978 | CurrentSource = L; |
| 28979 | return GetParam<PT_Reflect>(S, A0); |
| 28980 | } |
| 28981 | #endif |
| 28982 | #ifdef GET_OPCODE_NAMES |
| 28983 | OP_GetPtrBase, |
| 28984 | #endif |
| 28985 | #ifdef GET_INTERPFN_LIST |
| 28986 | &Interp_GetPtrBase, |
| 28987 | #endif |
| 28988 | #ifdef GET_INTERPFN_DISPATCHERS |
| 28989 | PRESERVE_NONE |
| 28990 | static bool Interp_GetPtrBase(InterpState &S) { |
| 28991 | { |
| 28992 | CodePtr OpPC = S.PC; |
| 28993 | const auto V0 = ReadArg<uint32_t>(S, S.PC); |
| 28994 | if (!GetPtrBase(S, OpPC, V0)) return false; |
| 28995 | } |
| 28996 | #if USE_TAILCALLS |
| 28997 | MUSTTAIL return InterpNext(S); |
| 28998 | #else |
| 28999 | return true; |
| 29000 | #endif |
| 29001 | } |
| 29002 | #endif |
| 29003 | #ifdef GET_DISASM |
| 29004 | case OP_GetPtrBase: |
| 29005 | Text.Op = PrintName("GetPtrBase" ); |
| 29006 | Text.Args.push_back(printArg<uint32_t>(PC)); |
| 29007 | break; |
| 29008 | #endif |
| 29009 | #if defined(GET_EVAL_PROTO) || defined(GET_LINK_PROTO) |
| 29010 | bool emitGetPtrBase( uint32_t , SourceInfo); |
| 29011 | #endif |
| 29012 | #ifdef GET_LINK_IMPL |
| 29013 | bool ByteCodeEmitter::emitGetPtrBase( uint32_t A0, SourceInfo L) { |
| 29014 | return emitOp<uint32_t>(OP_GetPtrBase, A0, L); |
| 29015 | } |
| 29016 | #endif |
| 29017 | #ifdef GET_EVAL_IMPL |
| 29018 | bool EvalEmitter::emitGetPtrBase( uint32_t A0, SourceInfo L) { |
| 29019 | if (!isActive()) return true; |
| 29020 | CurrentSource = L; |
| 29021 | return GetPtrBase(S, CodePtr(), A0); |
| 29022 | } |
| 29023 | #endif |
| 29024 | #ifdef GET_OPCODE_NAMES |
| 29025 | OP_GetPtrBasePop, |
| 29026 | #endif |
| 29027 | #ifdef GET_INTERPFN_LIST |
| 29028 | &Interp_GetPtrBasePop, |
| 29029 | #endif |
| 29030 | #ifdef GET_INTERPFN_DISPATCHERS |
| 29031 | PRESERVE_NONE |
| 29032 | static bool Interp_GetPtrBasePop(InterpState &S) { |
| 29033 | { |
| 29034 | CodePtr OpPC = S.PC; |
| 29035 | const auto V0 = ReadArg<uint32_t>(S, S.PC); |
| 29036 | const auto V1 = ReadArg<bool>(S, S.PC); |
| 29037 | if (!GetPtrBasePop(S, OpPC, V0, V1)) return false; |
| 29038 | } |
| 29039 | #if USE_TAILCALLS |
| 29040 | MUSTTAIL return InterpNext(S); |
| 29041 | #else |
| 29042 | return true; |
| 29043 | #endif |
| 29044 | } |
| 29045 | #endif |
| 29046 | #ifdef GET_DISASM |
| 29047 | case OP_GetPtrBasePop: |
| 29048 | Text.Op = PrintName("GetPtrBasePop" ); |
| 29049 | Text.Args.push_back(printArg<uint32_t>(PC)); |
| 29050 | Text.Args.push_back(printArg<bool>(PC)); |
| 29051 | break; |
| 29052 | #endif |
| 29053 | #if defined(GET_EVAL_PROTO) || defined(GET_LINK_PROTO) |
| 29054 | bool emitGetPtrBasePop( uint32_t , bool , SourceInfo); |
| 29055 | #endif |
| 29056 | #ifdef GET_LINK_IMPL |
| 29057 | bool ByteCodeEmitter::emitGetPtrBasePop( uint32_t A0, bool A1, SourceInfo L) { |
| 29058 | return emitOp<uint32_t, bool>(OP_GetPtrBasePop, A0, A1, L); |
| 29059 | } |
| 29060 | #endif |
| 29061 | #ifdef GET_EVAL_IMPL |
| 29062 | bool EvalEmitter::emitGetPtrBasePop( uint32_t A0, bool A1, SourceInfo L) { |
| 29063 | if (!isActive()) return true; |
| 29064 | CurrentSource = L; |
| 29065 | return GetPtrBasePop(S, CodePtr(), A0, A1); |
| 29066 | } |
| 29067 | #endif |
| 29068 | #ifdef GET_OPCODE_NAMES |
| 29069 | OP_GetPtrDerivedPop, |
| 29070 | #endif |
| 29071 | #ifdef GET_INTERPFN_LIST |
| 29072 | &Interp_GetPtrDerivedPop, |
| 29073 | #endif |
| 29074 | #ifdef GET_INTERPFN_DISPATCHERS |
| 29075 | PRESERVE_NONE |
| 29076 | static bool Interp_GetPtrDerivedPop(InterpState &S) { |
| 29077 | { |
| 29078 | CodePtr OpPC = S.PC; |
| 29079 | const auto V0 = ReadArg<uint32_t>(S, S.PC); |
| 29080 | const auto V1 = ReadArg<bool>(S, S.PC); |
| 29081 | const auto V2 = ReadArg<const Type *>(S, S.PC); |
| 29082 | if (!GetPtrDerivedPop(S, OpPC, V0, V1, V2)) return false; |
| 29083 | } |
| 29084 | #if USE_TAILCALLS |
| 29085 | MUSTTAIL return InterpNext(S); |
| 29086 | #else |
| 29087 | return true; |
| 29088 | #endif |
| 29089 | } |
| 29090 | #endif |
| 29091 | #ifdef GET_DISASM |
| 29092 | case OP_GetPtrDerivedPop: |
| 29093 | Text.Op = PrintName("GetPtrDerivedPop" ); |
| 29094 | Text.Args.push_back(printArg<uint32_t>(PC)); |
| 29095 | Text.Args.push_back(printArg<bool>(PC)); |
| 29096 | Text.Args.push_back(printArg<const Type *>(PC)); |
| 29097 | break; |
| 29098 | #endif |
| 29099 | #if defined(GET_EVAL_PROTO) || defined(GET_LINK_PROTO) |
| 29100 | bool emitGetPtrDerivedPop( uint32_t , bool , const Type * , SourceInfo); |
| 29101 | #endif |
| 29102 | #ifdef GET_LINK_IMPL |
| 29103 | bool ByteCodeEmitter::emitGetPtrDerivedPop( uint32_t A0, bool A1, const Type * A2, SourceInfo L) { |
| 29104 | return emitOp<uint32_t, bool, const Type *>(OP_GetPtrDerivedPop, A0, A1, A2, L); |
| 29105 | } |
| 29106 | #endif |
| 29107 | #ifdef GET_EVAL_IMPL |
| 29108 | bool EvalEmitter::emitGetPtrDerivedPop( uint32_t A0, bool A1, const Type * A2, SourceInfo L) { |
| 29109 | if (!isActive()) return true; |
| 29110 | CurrentSource = L; |
| 29111 | return GetPtrDerivedPop(S, CodePtr(), A0, A1, A2); |
| 29112 | } |
| 29113 | #endif |
| 29114 | #ifdef GET_OPCODE_NAMES |
| 29115 | OP_GetPtrField, |
| 29116 | #endif |
| 29117 | #ifdef GET_INTERPFN_LIST |
| 29118 | &Interp_GetPtrField, |
| 29119 | #endif |
| 29120 | #ifdef GET_INTERPFN_DISPATCHERS |
| 29121 | PRESERVE_NONE |
| 29122 | static bool Interp_GetPtrField(InterpState &S) { |
| 29123 | { |
| 29124 | CodePtr OpPC = S.PC; |
| 29125 | const auto V0 = ReadArg<uint32_t>(S, S.PC); |
| 29126 | if (!GetPtrField(S, OpPC, V0)) return false; |
| 29127 | } |
| 29128 | #if USE_TAILCALLS |
| 29129 | MUSTTAIL return InterpNext(S); |
| 29130 | #else |
| 29131 | return true; |
| 29132 | #endif |
| 29133 | } |
| 29134 | #endif |
| 29135 | #ifdef GET_DISASM |
| 29136 | case OP_GetPtrField: |
| 29137 | Text.Op = PrintName("GetPtrField" ); |
| 29138 | Text.Args.push_back(printArg<uint32_t>(PC)); |
| 29139 | break; |
| 29140 | #endif |
| 29141 | #if defined(GET_EVAL_PROTO) || defined(GET_LINK_PROTO) |
| 29142 | bool emitGetPtrField( uint32_t , SourceInfo); |
| 29143 | #endif |
| 29144 | #ifdef GET_LINK_IMPL |
| 29145 | bool ByteCodeEmitter::emitGetPtrField( uint32_t A0, SourceInfo L) { |
| 29146 | return emitOp<uint32_t>(OP_GetPtrField, A0, L); |
| 29147 | } |
| 29148 | #endif |
| 29149 | #ifdef GET_EVAL_IMPL |
| 29150 | bool EvalEmitter::emitGetPtrField( uint32_t A0, SourceInfo L) { |
| 29151 | if (!isActive()) return true; |
| 29152 | CurrentSource = L; |
| 29153 | return GetPtrField(S, CodePtr(), A0); |
| 29154 | } |
| 29155 | #endif |
| 29156 | #ifdef GET_OPCODE_NAMES |
| 29157 | OP_GetPtrFieldPop, |
| 29158 | #endif |
| 29159 | #ifdef GET_INTERPFN_LIST |
| 29160 | &Interp_GetPtrFieldPop, |
| 29161 | #endif |
| 29162 | #ifdef GET_INTERPFN_DISPATCHERS |
| 29163 | PRESERVE_NONE |
| 29164 | static bool Interp_GetPtrFieldPop(InterpState &S) { |
| 29165 | { |
| 29166 | CodePtr OpPC = S.PC; |
| 29167 | const auto V0 = ReadArg<uint32_t>(S, S.PC); |
| 29168 | if (!GetPtrFieldPop(S, OpPC, V0)) return false; |
| 29169 | } |
| 29170 | #if USE_TAILCALLS |
| 29171 | MUSTTAIL return InterpNext(S); |
| 29172 | #else |
| 29173 | return true; |
| 29174 | #endif |
| 29175 | } |
| 29176 | #endif |
| 29177 | #ifdef GET_DISASM |
| 29178 | case OP_GetPtrFieldPop: |
| 29179 | Text.Op = PrintName("GetPtrFieldPop" ); |
| 29180 | Text.Args.push_back(printArg<uint32_t>(PC)); |
| 29181 | break; |
| 29182 | #endif |
| 29183 | #if defined(GET_EVAL_PROTO) || defined(GET_LINK_PROTO) |
| 29184 | bool emitGetPtrFieldPop( uint32_t , SourceInfo); |
| 29185 | #endif |
| 29186 | #ifdef GET_LINK_IMPL |
| 29187 | bool ByteCodeEmitter::emitGetPtrFieldPop( uint32_t A0, SourceInfo L) { |
| 29188 | return emitOp<uint32_t>(OP_GetPtrFieldPop, A0, L); |
| 29189 | } |
| 29190 | #endif |
| 29191 | #ifdef GET_EVAL_IMPL |
| 29192 | bool EvalEmitter::emitGetPtrFieldPop( uint32_t A0, SourceInfo L) { |
| 29193 | if (!isActive()) return true; |
| 29194 | CurrentSource = L; |
| 29195 | return GetPtrFieldPop(S, CodePtr(), A0); |
| 29196 | } |
| 29197 | #endif |
| 29198 | #ifdef GET_OPCODE_NAMES |
| 29199 | OP_GetPtrGlobal, |
| 29200 | #endif |
| 29201 | #ifdef GET_INTERPFN_LIST |
| 29202 | &Interp_GetPtrGlobal, |
| 29203 | #endif |
| 29204 | #ifdef GET_INTERPFN_DISPATCHERS |
| 29205 | PRESERVE_NONE |
| 29206 | static bool Interp_GetPtrGlobal(InterpState &S) { |
| 29207 | { |
| 29208 | const auto V0 = ReadArg<uint32_t>(S, S.PC); |
| 29209 | if (!GetPtrGlobal(S, V0)) return false; |
| 29210 | } |
| 29211 | #if USE_TAILCALLS |
| 29212 | MUSTTAIL return InterpNext(S); |
| 29213 | #else |
| 29214 | return true; |
| 29215 | #endif |
| 29216 | } |
| 29217 | #endif |
| 29218 | #ifdef GET_DISASM |
| 29219 | case OP_GetPtrGlobal: |
| 29220 | Text.Op = PrintName("GetPtrGlobal" ); |
| 29221 | Text.Args.push_back(printArg<uint32_t>(PC)); |
| 29222 | break; |
| 29223 | #endif |
| 29224 | #if defined(GET_EVAL_PROTO) || defined(GET_LINK_PROTO) |
| 29225 | bool emitGetPtrGlobal( uint32_t , SourceInfo); |
| 29226 | #endif |
| 29227 | #ifdef GET_LINK_IMPL |
| 29228 | bool ByteCodeEmitter::emitGetPtrGlobal( uint32_t A0, SourceInfo L) { |
| 29229 | return emitOp<uint32_t>(OP_GetPtrGlobal, A0, L); |
| 29230 | } |
| 29231 | #endif |
| 29232 | #ifdef GET_EVAL_IMPL |
| 29233 | bool EvalEmitter::emitGetPtrGlobal( uint32_t A0, SourceInfo L) { |
| 29234 | if (!isActive()) return true; |
| 29235 | CurrentSource = L; |
| 29236 | return GetPtrGlobal(S, A0); |
| 29237 | } |
| 29238 | #endif |
| 29239 | #ifdef GET_OPCODE_NAMES |
| 29240 | OP_GetPtrLocal, |
| 29241 | #endif |
| 29242 | #ifdef GET_INTERPFN_LIST |
| 29243 | &Interp_GetPtrLocal, |
| 29244 | #endif |
| 29245 | #ifdef GET_INTERPFN_DISPATCHERS |
| 29246 | PRESERVE_NONE |
| 29247 | static bool Interp_GetPtrLocal(InterpState &S) { |
| 29248 | { |
| 29249 | const auto V0 = ReadArg<uint32_t>(S, S.PC); |
| 29250 | if (!GetPtrLocal(S, V0)) return false; |
| 29251 | } |
| 29252 | #if USE_TAILCALLS |
| 29253 | MUSTTAIL return InterpNext(S); |
| 29254 | #else |
| 29255 | return true; |
| 29256 | #endif |
| 29257 | } |
| 29258 | #endif |
| 29259 | #ifdef GET_DISASM |
| 29260 | case OP_GetPtrLocal: |
| 29261 | Text.Op = PrintName("GetPtrLocal" ); |
| 29262 | Text.Args.push_back(printArg<uint32_t>(PC)); |
| 29263 | break; |
| 29264 | #endif |
| 29265 | #if defined(GET_EVAL_PROTO) || defined(GET_LINK_PROTO) |
| 29266 | bool emitGetPtrLocal( uint32_t , SourceInfo); |
| 29267 | #endif |
| 29268 | #ifdef GET_LINK_IMPL |
| 29269 | bool ByteCodeEmitter::emitGetPtrLocal( uint32_t A0, SourceInfo L) { |
| 29270 | return emitOp<uint32_t>(OP_GetPtrLocal, A0, L); |
| 29271 | } |
| 29272 | #endif |
| 29273 | #ifdef GET_OPCODE_NAMES |
| 29274 | OP_GetPtrParam, |
| 29275 | #endif |
| 29276 | #ifdef GET_INTERPFN_LIST |
| 29277 | &Interp_GetPtrParam, |
| 29278 | #endif |
| 29279 | #ifdef GET_INTERPFN_DISPATCHERS |
| 29280 | PRESERVE_NONE |
| 29281 | static bool Interp_GetPtrParam(InterpState &S) { |
| 29282 | { |
| 29283 | const auto V0 = ReadArg<uint32_t>(S, S.PC); |
| 29284 | if (!GetPtrParam(S, V0)) return false; |
| 29285 | } |
| 29286 | #if USE_TAILCALLS |
| 29287 | MUSTTAIL return InterpNext(S); |
| 29288 | #else |
| 29289 | return true; |
| 29290 | #endif |
| 29291 | } |
| 29292 | #endif |
| 29293 | #ifdef GET_DISASM |
| 29294 | case OP_GetPtrParam: |
| 29295 | Text.Op = PrintName("GetPtrParam" ); |
| 29296 | Text.Args.push_back(printArg<uint32_t>(PC)); |
| 29297 | break; |
| 29298 | #endif |
| 29299 | #if defined(GET_EVAL_PROTO) || defined(GET_LINK_PROTO) |
| 29300 | bool emitGetPtrParam( uint32_t , SourceInfo); |
| 29301 | #endif |
| 29302 | #ifdef GET_LINK_IMPL |
| 29303 | bool ByteCodeEmitter::emitGetPtrParam( uint32_t A0, SourceInfo L) { |
| 29304 | return emitOp<uint32_t>(OP_GetPtrParam, A0, L); |
| 29305 | } |
| 29306 | #endif |
| 29307 | #ifdef GET_EVAL_IMPL |
| 29308 | bool EvalEmitter::emitGetPtrParam( uint32_t A0, SourceInfo L) { |
| 29309 | if (!isActive()) return true; |
| 29310 | CurrentSource = L; |
| 29311 | return GetPtrParam(S, A0); |
| 29312 | } |
| 29313 | #endif |
| 29314 | #ifdef GET_OPCODE_NAMES |
| 29315 | OP_GetPtrThisBase, |
| 29316 | #endif |
| 29317 | #ifdef GET_INTERPFN_LIST |
| 29318 | &Interp_GetPtrThisBase, |
| 29319 | #endif |
| 29320 | #ifdef GET_INTERPFN_DISPATCHERS |
| 29321 | PRESERVE_NONE |
| 29322 | static bool Interp_GetPtrThisBase(InterpState &S) { |
| 29323 | { |
| 29324 | CodePtr OpPC = S.PC; |
| 29325 | const auto V0 = ReadArg<uint32_t>(S, S.PC); |
| 29326 | if (!GetPtrThisBase(S, OpPC, V0)) return false; |
| 29327 | } |
| 29328 | #if USE_TAILCALLS |
| 29329 | MUSTTAIL return InterpNext(S); |
| 29330 | #else |
| 29331 | return true; |
| 29332 | #endif |
| 29333 | } |
| 29334 | #endif |
| 29335 | #ifdef GET_DISASM |
| 29336 | case OP_GetPtrThisBase: |
| 29337 | Text.Op = PrintName("GetPtrThisBase" ); |
| 29338 | Text.Args.push_back(printArg<uint32_t>(PC)); |
| 29339 | break; |
| 29340 | #endif |
| 29341 | #if defined(GET_EVAL_PROTO) || defined(GET_LINK_PROTO) |
| 29342 | bool emitGetPtrThisBase( uint32_t , SourceInfo); |
| 29343 | #endif |
| 29344 | #ifdef GET_LINK_IMPL |
| 29345 | bool ByteCodeEmitter::emitGetPtrThisBase( uint32_t A0, SourceInfo L) { |
| 29346 | return emitOp<uint32_t>(OP_GetPtrThisBase, A0, L); |
| 29347 | } |
| 29348 | #endif |
| 29349 | #ifdef GET_EVAL_IMPL |
| 29350 | bool EvalEmitter::emitGetPtrThisBase( uint32_t A0, SourceInfo L) { |
| 29351 | if (!isActive()) return true; |
| 29352 | CurrentSource = L; |
| 29353 | return GetPtrThisBase(S, CodePtr(), A0); |
| 29354 | } |
| 29355 | #endif |
| 29356 | #ifdef GET_OPCODE_NAMES |
| 29357 | OP_GetPtrThisField, |
| 29358 | #endif |
| 29359 | #ifdef GET_INTERPFN_LIST |
| 29360 | &Interp_GetPtrThisField, |
| 29361 | #endif |
| 29362 | #ifdef GET_INTERPFN_DISPATCHERS |
| 29363 | PRESERVE_NONE |
| 29364 | static bool Interp_GetPtrThisField(InterpState &S) { |
| 29365 | { |
| 29366 | CodePtr OpPC = S.PC; |
| 29367 | const auto V0 = ReadArg<uint32_t>(S, S.PC); |
| 29368 | if (!GetPtrThisField(S, OpPC, V0)) return false; |
| 29369 | } |
| 29370 | #if USE_TAILCALLS |
| 29371 | MUSTTAIL return InterpNext(S); |
| 29372 | #else |
| 29373 | return true; |
| 29374 | #endif |
| 29375 | } |
| 29376 | #endif |
| 29377 | #ifdef GET_DISASM |
| 29378 | case OP_GetPtrThisField: |
| 29379 | Text.Op = PrintName("GetPtrThisField" ); |
| 29380 | Text.Args.push_back(printArg<uint32_t>(PC)); |
| 29381 | break; |
| 29382 | #endif |
| 29383 | #if defined(GET_EVAL_PROTO) || defined(GET_LINK_PROTO) |
| 29384 | bool emitGetPtrThisField( uint32_t , SourceInfo); |
| 29385 | #endif |
| 29386 | #ifdef GET_LINK_IMPL |
| 29387 | bool ByteCodeEmitter::emitGetPtrThisField( uint32_t A0, SourceInfo L) { |
| 29388 | return emitOp<uint32_t>(OP_GetPtrThisField, A0, L); |
| 29389 | } |
| 29390 | #endif |
| 29391 | #ifdef GET_EVAL_IMPL |
| 29392 | bool EvalEmitter::emitGetPtrThisField( uint32_t A0, SourceInfo L) { |
| 29393 | if (!isActive()) return true; |
| 29394 | CurrentSource = L; |
| 29395 | return GetPtrThisField(S, CodePtr(), A0); |
| 29396 | } |
| 29397 | #endif |
| 29398 | #ifdef GET_OPCODE_NAMES |
| 29399 | OP_GetPtrThisVirtBase, |
| 29400 | #endif |
| 29401 | #ifdef GET_INTERPFN_LIST |
| 29402 | &Interp_GetPtrThisVirtBase, |
| 29403 | #endif |
| 29404 | #ifdef GET_INTERPFN_DISPATCHERS |
| 29405 | PRESERVE_NONE |
| 29406 | static bool Interp_GetPtrThisVirtBase(InterpState &S) { |
| 29407 | { |
| 29408 | CodePtr OpPC = S.PC; |
| 29409 | const auto V0 = ReadArg<const CXXRecordDecl *>(S, S.PC); |
| 29410 | if (!GetPtrThisVirtBase(S, OpPC, V0)) return false; |
| 29411 | } |
| 29412 | #if USE_TAILCALLS |
| 29413 | MUSTTAIL return InterpNext(S); |
| 29414 | #else |
| 29415 | return true; |
| 29416 | #endif |
| 29417 | } |
| 29418 | #endif |
| 29419 | #ifdef GET_DISASM |
| 29420 | case OP_GetPtrThisVirtBase: |
| 29421 | Text.Op = PrintName("GetPtrThisVirtBase" ); |
| 29422 | Text.Args.push_back(printArg<const CXXRecordDecl *>(PC)); |
| 29423 | break; |
| 29424 | #endif |
| 29425 | #if defined(GET_EVAL_PROTO) || defined(GET_LINK_PROTO) |
| 29426 | bool emitGetPtrThisVirtBase( const CXXRecordDecl * , SourceInfo); |
| 29427 | #endif |
| 29428 | #ifdef GET_LINK_IMPL |
| 29429 | bool ByteCodeEmitter::emitGetPtrThisVirtBase( const CXXRecordDecl * A0, SourceInfo L) { |
| 29430 | return emitOp<const CXXRecordDecl *>(OP_GetPtrThisVirtBase, A0, L); |
| 29431 | } |
| 29432 | #endif |
| 29433 | #ifdef GET_EVAL_IMPL |
| 29434 | bool EvalEmitter::emitGetPtrThisVirtBase( const CXXRecordDecl * A0, SourceInfo L) { |
| 29435 | if (!isActive()) return true; |
| 29436 | CurrentSource = L; |
| 29437 | return GetPtrThisVirtBase(S, CodePtr(), A0); |
| 29438 | } |
| 29439 | #endif |
| 29440 | #ifdef GET_OPCODE_NAMES |
| 29441 | OP_GetPtrVirtBase, |
| 29442 | #endif |
| 29443 | #ifdef GET_INTERPFN_LIST |
| 29444 | &Interp_GetPtrVirtBase, |
| 29445 | #endif |
| 29446 | #ifdef GET_INTERPFN_DISPATCHERS |
| 29447 | PRESERVE_NONE |
| 29448 | static bool Interp_GetPtrVirtBase(InterpState &S) { |
| 29449 | { |
| 29450 | CodePtr OpPC = S.PC; |
| 29451 | const auto V0 = ReadArg<const CXXRecordDecl *>(S, S.PC); |
| 29452 | if (!GetPtrVirtBase(S, OpPC, V0)) return false; |
| 29453 | } |
| 29454 | #if USE_TAILCALLS |
| 29455 | MUSTTAIL return InterpNext(S); |
| 29456 | #else |
| 29457 | return true; |
| 29458 | #endif |
| 29459 | } |
| 29460 | #endif |
| 29461 | #ifdef GET_DISASM |
| 29462 | case OP_GetPtrVirtBase: |
| 29463 | Text.Op = PrintName("GetPtrVirtBase" ); |
| 29464 | Text.Args.push_back(printArg<const CXXRecordDecl *>(PC)); |
| 29465 | break; |
| 29466 | #endif |
| 29467 | #if defined(GET_EVAL_PROTO) || defined(GET_LINK_PROTO) |
| 29468 | bool emitGetPtrVirtBase( const CXXRecordDecl * , SourceInfo); |
| 29469 | #endif |
| 29470 | #ifdef GET_LINK_IMPL |
| 29471 | bool ByteCodeEmitter::emitGetPtrVirtBase( const CXXRecordDecl * A0, SourceInfo L) { |
| 29472 | return emitOp<const CXXRecordDecl *>(OP_GetPtrVirtBase, A0, L); |
| 29473 | } |
| 29474 | #endif |
| 29475 | #ifdef GET_EVAL_IMPL |
| 29476 | bool EvalEmitter::emitGetPtrVirtBase( const CXXRecordDecl * A0, SourceInfo L) { |
| 29477 | if (!isActive()) return true; |
| 29478 | CurrentSource = L; |
| 29479 | return GetPtrVirtBase(S, CodePtr(), A0); |
| 29480 | } |
| 29481 | #endif |
| 29482 | #ifdef GET_OPCODE_NAMES |
| 29483 | OP_GetPtrVirtBasePop, |
| 29484 | #endif |
| 29485 | #ifdef GET_INTERPFN_LIST |
| 29486 | &Interp_GetPtrVirtBasePop, |
| 29487 | #endif |
| 29488 | #ifdef GET_INTERPFN_DISPATCHERS |
| 29489 | PRESERVE_NONE |
| 29490 | static bool Interp_GetPtrVirtBasePop(InterpState &S) { |
| 29491 | { |
| 29492 | CodePtr OpPC = S.PC; |
| 29493 | const auto V0 = ReadArg<const CXXRecordDecl *>(S, S.PC); |
| 29494 | if (!GetPtrVirtBasePop(S, OpPC, V0)) return false; |
| 29495 | } |
| 29496 | #if USE_TAILCALLS |
| 29497 | MUSTTAIL return InterpNext(S); |
| 29498 | #else |
| 29499 | return true; |
| 29500 | #endif |
| 29501 | } |
| 29502 | #endif |
| 29503 | #ifdef GET_DISASM |
| 29504 | case OP_GetPtrVirtBasePop: |
| 29505 | Text.Op = PrintName("GetPtrVirtBasePop" ); |
| 29506 | Text.Args.push_back(printArg<const CXXRecordDecl *>(PC)); |
| 29507 | break; |
| 29508 | #endif |
| 29509 | #if defined(GET_EVAL_PROTO) || defined(GET_LINK_PROTO) |
| 29510 | bool emitGetPtrVirtBasePop( const CXXRecordDecl * , SourceInfo); |
| 29511 | #endif |
| 29512 | #ifdef GET_LINK_IMPL |
| 29513 | bool ByteCodeEmitter::emitGetPtrVirtBasePop( const CXXRecordDecl * A0, SourceInfo L) { |
| 29514 | return emitOp<const CXXRecordDecl *>(OP_GetPtrVirtBasePop, A0, L); |
| 29515 | } |
| 29516 | #endif |
| 29517 | #ifdef GET_EVAL_IMPL |
| 29518 | bool EvalEmitter::emitGetPtrVirtBasePop( const CXXRecordDecl * A0, SourceInfo L) { |
| 29519 | if (!isActive()) return true; |
| 29520 | CurrentSource = L; |
| 29521 | return GetPtrVirtBasePop(S, CodePtr(), A0); |
| 29522 | } |
| 29523 | #endif |
| 29524 | #ifdef GET_OPCODE_NAMES |
| 29525 | OP_GetRefGlobal, |
| 29526 | #endif |
| 29527 | #ifdef GET_INTERPFN_LIST |
| 29528 | &Interp_GetRefGlobal, |
| 29529 | #endif |
| 29530 | #ifdef GET_INTERPFN_DISPATCHERS |
| 29531 | PRESERVE_NONE |
| 29532 | static bool Interp_GetRefGlobal(InterpState &S) { |
| 29533 | { |
| 29534 | CodePtr OpPC = S.PC; |
| 29535 | const auto V0 = ReadArg<uint32_t>(S, S.PC); |
| 29536 | if (!GetRefGlobal(S, OpPC, V0)) return false; |
| 29537 | } |
| 29538 | #if USE_TAILCALLS |
| 29539 | MUSTTAIL return InterpNext(S); |
| 29540 | #else |
| 29541 | return true; |
| 29542 | #endif |
| 29543 | } |
| 29544 | #endif |
| 29545 | #ifdef GET_DISASM |
| 29546 | case OP_GetRefGlobal: |
| 29547 | Text.Op = PrintName("GetRefGlobal" ); |
| 29548 | Text.Args.push_back(printArg<uint32_t>(PC)); |
| 29549 | break; |
| 29550 | #endif |
| 29551 | #if defined(GET_EVAL_PROTO) || defined(GET_LINK_PROTO) |
| 29552 | bool emitGetRefGlobal( uint32_t , SourceInfo); |
| 29553 | #endif |
| 29554 | #ifdef GET_LINK_IMPL |
| 29555 | bool ByteCodeEmitter::emitGetRefGlobal( uint32_t A0, SourceInfo L) { |
| 29556 | return emitOp<uint32_t>(OP_GetRefGlobal, A0, L); |
| 29557 | } |
| 29558 | #endif |
| 29559 | #ifdef GET_EVAL_IMPL |
| 29560 | bool EvalEmitter::emitGetRefGlobal( uint32_t A0, SourceInfo L) { |
| 29561 | if (!isActive()) return true; |
| 29562 | CurrentSource = L; |
| 29563 | return GetRefGlobal(S, CodePtr(), A0); |
| 29564 | } |
| 29565 | #endif |
| 29566 | #ifdef GET_OPCODE_NAMES |
| 29567 | OP_GetRefLocal, |
| 29568 | #endif |
| 29569 | #ifdef GET_INTERPFN_LIST |
| 29570 | &Interp_GetRefLocal, |
| 29571 | #endif |
| 29572 | #ifdef GET_INTERPFN_DISPATCHERS |
| 29573 | PRESERVE_NONE |
| 29574 | static bool Interp_GetRefLocal(InterpState &S) { |
| 29575 | { |
| 29576 | CodePtr OpPC = S.PC; |
| 29577 | const auto V0 = ReadArg<uint32_t>(S, S.PC); |
| 29578 | if (!GetRefLocal(S, OpPC, V0)) return false; |
| 29579 | } |
| 29580 | #if USE_TAILCALLS |
| 29581 | MUSTTAIL return InterpNext(S); |
| 29582 | #else |
| 29583 | return true; |
| 29584 | #endif |
| 29585 | } |
| 29586 | #endif |
| 29587 | #ifdef GET_DISASM |
| 29588 | case OP_GetRefLocal: |
| 29589 | Text.Op = PrintName("GetRefLocal" ); |
| 29590 | Text.Args.push_back(printArg<uint32_t>(PC)); |
| 29591 | break; |
| 29592 | #endif |
| 29593 | #if defined(GET_EVAL_PROTO) || defined(GET_LINK_PROTO) |
| 29594 | bool emitGetRefLocal( uint32_t , SourceInfo); |
| 29595 | #endif |
| 29596 | #ifdef GET_LINK_IMPL |
| 29597 | bool ByteCodeEmitter::emitGetRefLocal( uint32_t A0, SourceInfo L) { |
| 29598 | return emitOp<uint32_t>(OP_GetRefLocal, A0, L); |
| 29599 | } |
| 29600 | #endif |
| 29601 | #ifdef GET_OPCODE_NAMES |
| 29602 | OP_GetStringPtr, |
| 29603 | #endif |
| 29604 | #ifdef GET_INTERPFN_LIST |
| 29605 | &Interp_GetStringPtr, |
| 29606 | #endif |
| 29607 | #ifdef GET_INTERPFN_DISPATCHERS |
| 29608 | PRESERVE_NONE |
| 29609 | static bool Interp_GetStringPtr(InterpState &S) { |
| 29610 | { |
| 29611 | const auto V0 = ReadArg<const Expr *>(S, S.PC); |
| 29612 | GetStringPtr(S, V0); |
| 29613 | } |
| 29614 | #if USE_TAILCALLS |
| 29615 | MUSTTAIL return InterpNext(S); |
| 29616 | #else |
| 29617 | return true; |
| 29618 | #endif |
| 29619 | } |
| 29620 | #endif |
| 29621 | #ifdef GET_DISASM |
| 29622 | case OP_GetStringPtr: |
| 29623 | Text.Op = PrintName("GetStringPtr" ); |
| 29624 | Text.Args.push_back(printArg<const Expr *>(PC)); |
| 29625 | break; |
| 29626 | #endif |
| 29627 | #if defined(GET_EVAL_PROTO) || defined(GET_LINK_PROTO) |
| 29628 | bool emitGetStringPtr( const Expr * , SourceInfo); |
| 29629 | #endif |
| 29630 | #ifdef GET_LINK_IMPL |
| 29631 | bool ByteCodeEmitter::emitGetStringPtr( const Expr * A0, SourceInfo L) { |
| 29632 | return emitOp<const Expr *>(OP_GetStringPtr, A0, L); |
| 29633 | } |
| 29634 | #endif |
| 29635 | #ifdef GET_EVAL_IMPL |
| 29636 | bool EvalEmitter::emitGetStringPtr( const Expr * A0, SourceInfo L) { |
| 29637 | if (!isActive()) return true; |
| 29638 | CurrentSource = L; |
| 29639 | return GetStringPtr(S, A0); |
| 29640 | } |
| 29641 | #endif |
| 29642 | #ifdef GET_OPCODE_NAMES |
| 29643 | OP_GetThisFieldSint8, |
| 29644 | OP_GetThisFieldUint8, |
| 29645 | OP_GetThisFieldSint16, |
| 29646 | OP_GetThisFieldUint16, |
| 29647 | OP_GetThisFieldSint32, |
| 29648 | OP_GetThisFieldUint32, |
| 29649 | OP_GetThisFieldSint64, |
| 29650 | OP_GetThisFieldUint64, |
| 29651 | OP_GetThisFieldIntAP, |
| 29652 | OP_GetThisFieldIntAPS, |
| 29653 | OP_GetThisFieldBool, |
| 29654 | OP_GetThisFieldFixedPoint, |
| 29655 | OP_GetThisFieldPtr, |
| 29656 | OP_GetThisFieldMemberPtr, |
| 29657 | OP_GetThisFieldFloat, |
| 29658 | OP_GetThisFieldReflect, |
| 29659 | #endif |
| 29660 | #ifdef GET_INTERPFN_LIST |
| 29661 | &Interp_GetThisFieldSint8, |
| 29662 | &Interp_GetThisFieldUint8, |
| 29663 | &Interp_GetThisFieldSint16, |
| 29664 | &Interp_GetThisFieldUint16, |
| 29665 | &Interp_GetThisFieldSint32, |
| 29666 | &Interp_GetThisFieldUint32, |
| 29667 | &Interp_GetThisFieldSint64, |
| 29668 | &Interp_GetThisFieldUint64, |
| 29669 | &Interp_GetThisFieldIntAP, |
| 29670 | &Interp_GetThisFieldIntAPS, |
| 29671 | &Interp_GetThisFieldBool, |
| 29672 | &Interp_GetThisFieldFixedPoint, |
| 29673 | &Interp_GetThisFieldPtr, |
| 29674 | &Interp_GetThisFieldMemberPtr, |
| 29675 | &Interp_GetThisFieldFloat, |
| 29676 | &Interp_GetThisFieldReflect, |
| 29677 | #endif |
| 29678 | #ifdef GET_INTERPFN_DISPATCHERS |
| 29679 | PRESERVE_NONE |
| 29680 | static bool Interp_GetThisFieldSint8(InterpState &S) { |
| 29681 | { |
| 29682 | CodePtr OpPC = S.PC; |
| 29683 | const auto V0 = ReadArg<uint32_t>(S, S.PC); |
| 29684 | if (!GetThisField<PT_Sint8>(S, OpPC, V0)) return false; |
| 29685 | } |
| 29686 | #if USE_TAILCALLS |
| 29687 | MUSTTAIL return InterpNext(S); |
| 29688 | #else |
| 29689 | return true; |
| 29690 | #endif |
| 29691 | } |
| 29692 | PRESERVE_NONE |
| 29693 | static bool Interp_GetThisFieldUint8(InterpState &S) { |
| 29694 | { |
| 29695 | CodePtr OpPC = S.PC; |
| 29696 | const auto V0 = ReadArg<uint32_t>(S, S.PC); |
| 29697 | if (!GetThisField<PT_Uint8>(S, OpPC, V0)) return false; |
| 29698 | } |
| 29699 | #if USE_TAILCALLS |
| 29700 | MUSTTAIL return InterpNext(S); |
| 29701 | #else |
| 29702 | return true; |
| 29703 | #endif |
| 29704 | } |
| 29705 | PRESERVE_NONE |
| 29706 | static bool Interp_GetThisFieldSint16(InterpState &S) { |
| 29707 | { |
| 29708 | CodePtr OpPC = S.PC; |
| 29709 | const auto V0 = ReadArg<uint32_t>(S, S.PC); |
| 29710 | if (!GetThisField<PT_Sint16>(S, OpPC, V0)) return false; |
| 29711 | } |
| 29712 | #if USE_TAILCALLS |
| 29713 | MUSTTAIL return InterpNext(S); |
| 29714 | #else |
| 29715 | return true; |
| 29716 | #endif |
| 29717 | } |
| 29718 | PRESERVE_NONE |
| 29719 | static bool Interp_GetThisFieldUint16(InterpState &S) { |
| 29720 | { |
| 29721 | CodePtr OpPC = S.PC; |
| 29722 | const auto V0 = ReadArg<uint32_t>(S, S.PC); |
| 29723 | if (!GetThisField<PT_Uint16>(S, OpPC, V0)) return false; |
| 29724 | } |
| 29725 | #if USE_TAILCALLS |
| 29726 | MUSTTAIL return InterpNext(S); |
| 29727 | #else |
| 29728 | return true; |
| 29729 | #endif |
| 29730 | } |
| 29731 | PRESERVE_NONE |
| 29732 | static bool Interp_GetThisFieldSint32(InterpState &S) { |
| 29733 | { |
| 29734 | CodePtr OpPC = S.PC; |
| 29735 | const auto V0 = ReadArg<uint32_t>(S, S.PC); |
| 29736 | if (!GetThisField<PT_Sint32>(S, OpPC, V0)) return false; |
| 29737 | } |
| 29738 | #if USE_TAILCALLS |
| 29739 | MUSTTAIL return InterpNext(S); |
| 29740 | #else |
| 29741 | return true; |
| 29742 | #endif |
| 29743 | } |
| 29744 | PRESERVE_NONE |
| 29745 | static bool Interp_GetThisFieldUint32(InterpState &S) { |
| 29746 | { |
| 29747 | CodePtr OpPC = S.PC; |
| 29748 | const auto V0 = ReadArg<uint32_t>(S, S.PC); |
| 29749 | if (!GetThisField<PT_Uint32>(S, OpPC, V0)) return false; |
| 29750 | } |
| 29751 | #if USE_TAILCALLS |
| 29752 | MUSTTAIL return InterpNext(S); |
| 29753 | #else |
| 29754 | return true; |
| 29755 | #endif |
| 29756 | } |
| 29757 | PRESERVE_NONE |
| 29758 | static bool Interp_GetThisFieldSint64(InterpState &S) { |
| 29759 | { |
| 29760 | CodePtr OpPC = S.PC; |
| 29761 | const auto V0 = ReadArg<uint32_t>(S, S.PC); |
| 29762 | if (!GetThisField<PT_Sint64>(S, OpPC, V0)) return false; |
| 29763 | } |
| 29764 | #if USE_TAILCALLS |
| 29765 | MUSTTAIL return InterpNext(S); |
| 29766 | #else |
| 29767 | return true; |
| 29768 | #endif |
| 29769 | } |
| 29770 | PRESERVE_NONE |
| 29771 | static bool Interp_GetThisFieldUint64(InterpState &S) { |
| 29772 | { |
| 29773 | CodePtr OpPC = S.PC; |
| 29774 | const auto V0 = ReadArg<uint32_t>(S, S.PC); |
| 29775 | if (!GetThisField<PT_Uint64>(S, OpPC, V0)) return false; |
| 29776 | } |
| 29777 | #if USE_TAILCALLS |
| 29778 | MUSTTAIL return InterpNext(S); |
| 29779 | #else |
| 29780 | return true; |
| 29781 | #endif |
| 29782 | } |
| 29783 | PRESERVE_NONE |
| 29784 | static bool Interp_GetThisFieldIntAP(InterpState &S) { |
| 29785 | { |
| 29786 | CodePtr OpPC = S.PC; |
| 29787 | const auto V0 = ReadArg<uint32_t>(S, S.PC); |
| 29788 | if (!GetThisField<PT_IntAP>(S, OpPC, V0)) return false; |
| 29789 | } |
| 29790 | #if USE_TAILCALLS |
| 29791 | MUSTTAIL return InterpNext(S); |
| 29792 | #else |
| 29793 | return true; |
| 29794 | #endif |
| 29795 | } |
| 29796 | PRESERVE_NONE |
| 29797 | static bool Interp_GetThisFieldIntAPS(InterpState &S) { |
| 29798 | { |
| 29799 | CodePtr OpPC = S.PC; |
| 29800 | const auto V0 = ReadArg<uint32_t>(S, S.PC); |
| 29801 | if (!GetThisField<PT_IntAPS>(S, OpPC, V0)) return false; |
| 29802 | } |
| 29803 | #if USE_TAILCALLS |
| 29804 | MUSTTAIL return InterpNext(S); |
| 29805 | #else |
| 29806 | return true; |
| 29807 | #endif |
| 29808 | } |
| 29809 | PRESERVE_NONE |
| 29810 | static bool Interp_GetThisFieldBool(InterpState &S) { |
| 29811 | { |
| 29812 | CodePtr OpPC = S.PC; |
| 29813 | const auto V0 = ReadArg<uint32_t>(S, S.PC); |
| 29814 | if (!GetThisField<PT_Bool>(S, OpPC, V0)) return false; |
| 29815 | } |
| 29816 | #if USE_TAILCALLS |
| 29817 | MUSTTAIL return InterpNext(S); |
| 29818 | #else |
| 29819 | return true; |
| 29820 | #endif |
| 29821 | } |
| 29822 | PRESERVE_NONE |
| 29823 | static bool Interp_GetThisFieldFixedPoint(InterpState &S) { |
| 29824 | { |
| 29825 | CodePtr OpPC = S.PC; |
| 29826 | const auto V0 = ReadArg<uint32_t>(S, S.PC); |
| 29827 | if (!GetThisField<PT_FixedPoint>(S, OpPC, V0)) return false; |
| 29828 | } |
| 29829 | #if USE_TAILCALLS |
| 29830 | MUSTTAIL return InterpNext(S); |
| 29831 | #else |
| 29832 | return true; |
| 29833 | #endif |
| 29834 | } |
| 29835 | PRESERVE_NONE |
| 29836 | static bool Interp_GetThisFieldPtr(InterpState &S) { |
| 29837 | { |
| 29838 | CodePtr OpPC = S.PC; |
| 29839 | const auto V0 = ReadArg<uint32_t>(S, S.PC); |
| 29840 | if (!GetThisField<PT_Ptr>(S, OpPC, V0)) return false; |
| 29841 | } |
| 29842 | #if USE_TAILCALLS |
| 29843 | MUSTTAIL return InterpNext(S); |
| 29844 | #else |
| 29845 | return true; |
| 29846 | #endif |
| 29847 | } |
| 29848 | PRESERVE_NONE |
| 29849 | static bool Interp_GetThisFieldMemberPtr(InterpState &S) { |
| 29850 | { |
| 29851 | CodePtr OpPC = S.PC; |
| 29852 | const auto V0 = ReadArg<uint32_t>(S, S.PC); |
| 29853 | if (!GetThisField<PT_MemberPtr>(S, OpPC, V0)) return false; |
| 29854 | } |
| 29855 | #if USE_TAILCALLS |
| 29856 | MUSTTAIL return InterpNext(S); |
| 29857 | #else |
| 29858 | return true; |
| 29859 | #endif |
| 29860 | } |
| 29861 | PRESERVE_NONE |
| 29862 | static bool Interp_GetThisFieldFloat(InterpState &S) { |
| 29863 | { |
| 29864 | CodePtr OpPC = S.PC; |
| 29865 | const auto V0 = ReadArg<uint32_t>(S, S.PC); |
| 29866 | if (!GetThisField<PT_Float>(S, OpPC, V0)) return false; |
| 29867 | } |
| 29868 | #if USE_TAILCALLS |
| 29869 | MUSTTAIL return InterpNext(S); |
| 29870 | #else |
| 29871 | return true; |
| 29872 | #endif |
| 29873 | } |
| 29874 | PRESERVE_NONE |
| 29875 | static bool Interp_GetThisFieldReflect(InterpState &S) { |
| 29876 | { |
| 29877 | CodePtr OpPC = S.PC; |
| 29878 | const auto V0 = ReadArg<uint32_t>(S, S.PC); |
| 29879 | if (!GetThisField<PT_Reflect>(S, OpPC, V0)) return false; |
| 29880 | } |
| 29881 | #if USE_TAILCALLS |
| 29882 | MUSTTAIL return InterpNext(S); |
| 29883 | #else |
| 29884 | return true; |
| 29885 | #endif |
| 29886 | } |
| 29887 | #endif |
| 29888 | #ifdef GET_DISASM |
| 29889 | case OP_GetThisFieldSint8: |
| 29890 | Text.Op = PrintName("GetThisFieldSint8" ); |
| 29891 | Text.Args.push_back(printArg<uint32_t>(PC)); |
| 29892 | break; |
| 29893 | case OP_GetThisFieldUint8: |
| 29894 | Text.Op = PrintName("GetThisFieldUint8" ); |
| 29895 | Text.Args.push_back(printArg<uint32_t>(PC)); |
| 29896 | break; |
| 29897 | case OP_GetThisFieldSint16: |
| 29898 | Text.Op = PrintName("GetThisFieldSint16" ); |
| 29899 | Text.Args.push_back(printArg<uint32_t>(PC)); |
| 29900 | break; |
| 29901 | case OP_GetThisFieldUint16: |
| 29902 | Text.Op = PrintName("GetThisFieldUint16" ); |
| 29903 | Text.Args.push_back(printArg<uint32_t>(PC)); |
| 29904 | break; |
| 29905 | case OP_GetThisFieldSint32: |
| 29906 | Text.Op = PrintName("GetThisFieldSint32" ); |
| 29907 | Text.Args.push_back(printArg<uint32_t>(PC)); |
| 29908 | break; |
| 29909 | case OP_GetThisFieldUint32: |
| 29910 | Text.Op = PrintName("GetThisFieldUint32" ); |
| 29911 | Text.Args.push_back(printArg<uint32_t>(PC)); |
| 29912 | break; |
| 29913 | case OP_GetThisFieldSint64: |
| 29914 | Text.Op = PrintName("GetThisFieldSint64" ); |
| 29915 | Text.Args.push_back(printArg<uint32_t>(PC)); |
| 29916 | break; |
| 29917 | case OP_GetThisFieldUint64: |
| 29918 | Text.Op = PrintName("GetThisFieldUint64" ); |
| 29919 | Text.Args.push_back(printArg<uint32_t>(PC)); |
| 29920 | break; |
| 29921 | case OP_GetThisFieldIntAP: |
| 29922 | Text.Op = PrintName("GetThisFieldIntAP" ); |
| 29923 | Text.Args.push_back(printArg<uint32_t>(PC)); |
| 29924 | break; |
| 29925 | case OP_GetThisFieldIntAPS: |
| 29926 | Text.Op = PrintName("GetThisFieldIntAPS" ); |
| 29927 | Text.Args.push_back(printArg<uint32_t>(PC)); |
| 29928 | break; |
| 29929 | case OP_GetThisFieldBool: |
| 29930 | Text.Op = PrintName("GetThisFieldBool" ); |
| 29931 | Text.Args.push_back(printArg<uint32_t>(PC)); |
| 29932 | break; |
| 29933 | case OP_GetThisFieldFixedPoint: |
| 29934 | Text.Op = PrintName("GetThisFieldFixedPoint" ); |
| 29935 | Text.Args.push_back(printArg<uint32_t>(PC)); |
| 29936 | break; |
| 29937 | case OP_GetThisFieldPtr: |
| 29938 | Text.Op = PrintName("GetThisFieldPtr" ); |
| 29939 | Text.Args.push_back(printArg<uint32_t>(PC)); |
| 29940 | break; |
| 29941 | case OP_GetThisFieldMemberPtr: |
| 29942 | Text.Op = PrintName("GetThisFieldMemberPtr" ); |
| 29943 | Text.Args.push_back(printArg<uint32_t>(PC)); |
| 29944 | break; |
| 29945 | case OP_GetThisFieldFloat: |
| 29946 | Text.Op = PrintName("GetThisFieldFloat" ); |
| 29947 | Text.Args.push_back(printArg<uint32_t>(PC)); |
| 29948 | break; |
| 29949 | case OP_GetThisFieldReflect: |
| 29950 | Text.Op = PrintName("GetThisFieldReflect" ); |
| 29951 | Text.Args.push_back(printArg<uint32_t>(PC)); |
| 29952 | break; |
| 29953 | #endif |
| 29954 | #if defined(GET_EVAL_PROTO) || defined(GET_LINK_PROTO) |
| 29955 | bool emitGetThisFieldSint8( uint32_t , SourceInfo); |
| 29956 | bool emitGetThisFieldUint8( uint32_t , SourceInfo); |
| 29957 | bool emitGetThisFieldSint16( uint32_t , SourceInfo); |
| 29958 | bool emitGetThisFieldUint16( uint32_t , SourceInfo); |
| 29959 | bool emitGetThisFieldSint32( uint32_t , SourceInfo); |
| 29960 | bool emitGetThisFieldUint32( uint32_t , SourceInfo); |
| 29961 | bool emitGetThisFieldSint64( uint32_t , SourceInfo); |
| 29962 | bool emitGetThisFieldUint64( uint32_t , SourceInfo); |
| 29963 | bool emitGetThisFieldIntAP( uint32_t , SourceInfo); |
| 29964 | bool emitGetThisFieldIntAPS( uint32_t , SourceInfo); |
| 29965 | bool emitGetThisFieldBool( uint32_t , SourceInfo); |
| 29966 | bool emitGetThisFieldFixedPoint( uint32_t , SourceInfo); |
| 29967 | bool emitGetThisFieldPtr( uint32_t , SourceInfo); |
| 29968 | bool emitGetThisFieldMemberPtr( uint32_t , SourceInfo); |
| 29969 | bool emitGetThisFieldFloat( uint32_t , SourceInfo); |
| 29970 | bool emitGetThisFieldReflect( uint32_t , SourceInfo); |
| 29971 | #endif |
| 29972 | #if defined(GET_EVAL_PROTO) || defined(GET_LINK_PROTO) |
| 29973 | [[nodiscard]] bool emitGetThisField(PrimType, uint32_t, SourceInfo I); |
| 29974 | #endif |
| 29975 | #if defined(GET_EVAL_IMPL) || defined(GET_LINK_IMPL) |
| 29976 | bool |
| 29977 | #if defined(GET_EVAL_IMPL) |
| 29978 | EvalEmitter |
| 29979 | #else |
| 29980 | ByteCodeEmitter |
| 29981 | #endif |
| 29982 | ::emitGetThisField(PrimType T0, uint32_t A0, SourceInfo I) { |
| 29983 | switch (T0) { |
| 29984 | case PT_Sint8: |
| 29985 | return emitGetThisFieldSint8(A0, I); |
| 29986 | case PT_Uint8: |
| 29987 | return emitGetThisFieldUint8(A0, I); |
| 29988 | case PT_Sint16: |
| 29989 | return emitGetThisFieldSint16(A0, I); |
| 29990 | case PT_Uint16: |
| 29991 | return emitGetThisFieldUint16(A0, I); |
| 29992 | case PT_Sint32: |
| 29993 | return emitGetThisFieldSint32(A0, I); |
| 29994 | case PT_Uint32: |
| 29995 | return emitGetThisFieldUint32(A0, I); |
| 29996 | case PT_Sint64: |
| 29997 | return emitGetThisFieldSint64(A0, I); |
| 29998 | case PT_Uint64: |
| 29999 | return emitGetThisFieldUint64(A0, I); |
| 30000 | case PT_IntAP: |
| 30001 | return emitGetThisFieldIntAP(A0, I); |
| 30002 | case PT_IntAPS: |
| 30003 | return emitGetThisFieldIntAPS(A0, I); |
| 30004 | case PT_Bool: |
| 30005 | return emitGetThisFieldBool(A0, I); |
| 30006 | case PT_FixedPoint: |
| 30007 | return emitGetThisFieldFixedPoint(A0, I); |
| 30008 | case PT_Ptr: |
| 30009 | return emitGetThisFieldPtr(A0, I); |
| 30010 | case PT_MemberPtr: |
| 30011 | return emitGetThisFieldMemberPtr(A0, I); |
| 30012 | case PT_Float: |
| 30013 | return emitGetThisFieldFloat(A0, I); |
| 30014 | case PT_Reflect: |
| 30015 | return emitGetThisFieldReflect(A0, I); |
| 30016 | } |
| 30017 | llvm_unreachable("invalid enum value" ); |
| 30018 | } |
| 30019 | #endif |
| 30020 | #ifdef GET_LINK_IMPL |
| 30021 | bool ByteCodeEmitter::emitGetThisFieldSint8( uint32_t A0, SourceInfo L) { |
| 30022 | return emitOp<uint32_t>(OP_GetThisFieldSint8, A0, L); |
| 30023 | } |
| 30024 | bool ByteCodeEmitter::emitGetThisFieldUint8( uint32_t A0, SourceInfo L) { |
| 30025 | return emitOp<uint32_t>(OP_GetThisFieldUint8, A0, L); |
| 30026 | } |
| 30027 | bool ByteCodeEmitter::emitGetThisFieldSint16( uint32_t A0, SourceInfo L) { |
| 30028 | return emitOp<uint32_t>(OP_GetThisFieldSint16, A0, L); |
| 30029 | } |
| 30030 | bool ByteCodeEmitter::emitGetThisFieldUint16( uint32_t A0, SourceInfo L) { |
| 30031 | return emitOp<uint32_t>(OP_GetThisFieldUint16, A0, L); |
| 30032 | } |
| 30033 | bool ByteCodeEmitter::emitGetThisFieldSint32( uint32_t A0, SourceInfo L) { |
| 30034 | return emitOp<uint32_t>(OP_GetThisFieldSint32, A0, L); |
| 30035 | } |
| 30036 | bool ByteCodeEmitter::emitGetThisFieldUint32( uint32_t A0, SourceInfo L) { |
| 30037 | return emitOp<uint32_t>(OP_GetThisFieldUint32, A0, L); |
| 30038 | } |
| 30039 | bool ByteCodeEmitter::emitGetThisFieldSint64( uint32_t A0, SourceInfo L) { |
| 30040 | return emitOp<uint32_t>(OP_GetThisFieldSint64, A0, L); |
| 30041 | } |
| 30042 | bool ByteCodeEmitter::emitGetThisFieldUint64( uint32_t A0, SourceInfo L) { |
| 30043 | return emitOp<uint32_t>(OP_GetThisFieldUint64, A0, L); |
| 30044 | } |
| 30045 | bool ByteCodeEmitter::emitGetThisFieldIntAP( uint32_t A0, SourceInfo L) { |
| 30046 | return emitOp<uint32_t>(OP_GetThisFieldIntAP, A0, L); |
| 30047 | } |
| 30048 | bool ByteCodeEmitter::emitGetThisFieldIntAPS( uint32_t A0, SourceInfo L) { |
| 30049 | return emitOp<uint32_t>(OP_GetThisFieldIntAPS, A0, L); |
| 30050 | } |
| 30051 | bool ByteCodeEmitter::emitGetThisFieldBool( uint32_t A0, SourceInfo L) { |
| 30052 | return emitOp<uint32_t>(OP_GetThisFieldBool, A0, L); |
| 30053 | } |
| 30054 | bool ByteCodeEmitter::emitGetThisFieldFixedPoint( uint32_t A0, SourceInfo L) { |
| 30055 | return emitOp<uint32_t>(OP_GetThisFieldFixedPoint, A0, L); |
| 30056 | } |
| 30057 | bool ByteCodeEmitter::emitGetThisFieldPtr( uint32_t A0, SourceInfo L) { |
| 30058 | return emitOp<uint32_t>(OP_GetThisFieldPtr, A0, L); |
| 30059 | } |
| 30060 | bool ByteCodeEmitter::emitGetThisFieldMemberPtr( uint32_t A0, SourceInfo L) { |
| 30061 | return emitOp<uint32_t>(OP_GetThisFieldMemberPtr, A0, L); |
| 30062 | } |
| 30063 | bool ByteCodeEmitter::emitGetThisFieldFloat( uint32_t A0, SourceInfo L) { |
| 30064 | return emitOp<uint32_t>(OP_GetThisFieldFloat, A0, L); |
| 30065 | } |
| 30066 | bool ByteCodeEmitter::emitGetThisFieldReflect( uint32_t A0, SourceInfo L) { |
| 30067 | return emitOp<uint32_t>(OP_GetThisFieldReflect, A0, L); |
| 30068 | } |
| 30069 | #endif |
| 30070 | #ifdef GET_EVAL_IMPL |
| 30071 | bool EvalEmitter::emitGetThisFieldSint8( uint32_t A0, SourceInfo L) { |
| 30072 | if (!isActive()) return true; |
| 30073 | CurrentSource = L; |
| 30074 | return GetThisField<PT_Sint8>(S, CodePtr(), A0); |
| 30075 | } |
| 30076 | bool EvalEmitter::emitGetThisFieldUint8( uint32_t A0, SourceInfo L) { |
| 30077 | if (!isActive()) return true; |
| 30078 | CurrentSource = L; |
| 30079 | return GetThisField<PT_Uint8>(S, CodePtr(), A0); |
| 30080 | } |
| 30081 | bool EvalEmitter::emitGetThisFieldSint16( uint32_t A0, SourceInfo L) { |
| 30082 | if (!isActive()) return true; |
| 30083 | CurrentSource = L; |
| 30084 | return GetThisField<PT_Sint16>(S, CodePtr(), A0); |
| 30085 | } |
| 30086 | bool EvalEmitter::emitGetThisFieldUint16( uint32_t A0, SourceInfo L) { |
| 30087 | if (!isActive()) return true; |
| 30088 | CurrentSource = L; |
| 30089 | return GetThisField<PT_Uint16>(S, CodePtr(), A0); |
| 30090 | } |
| 30091 | bool EvalEmitter::emitGetThisFieldSint32( uint32_t A0, SourceInfo L) { |
| 30092 | if (!isActive()) return true; |
| 30093 | CurrentSource = L; |
| 30094 | return GetThisField<PT_Sint32>(S, CodePtr(), A0); |
| 30095 | } |
| 30096 | bool EvalEmitter::emitGetThisFieldUint32( uint32_t A0, SourceInfo L) { |
| 30097 | if (!isActive()) return true; |
| 30098 | CurrentSource = L; |
| 30099 | return GetThisField<PT_Uint32>(S, CodePtr(), A0); |
| 30100 | } |
| 30101 | bool EvalEmitter::emitGetThisFieldSint64( uint32_t A0, SourceInfo L) { |
| 30102 | if (!isActive()) return true; |
| 30103 | CurrentSource = L; |
| 30104 | return GetThisField<PT_Sint64>(S, CodePtr(), A0); |
| 30105 | } |
| 30106 | bool EvalEmitter::emitGetThisFieldUint64( uint32_t A0, SourceInfo L) { |
| 30107 | if (!isActive()) return true; |
| 30108 | CurrentSource = L; |
| 30109 | return GetThisField<PT_Uint64>(S, CodePtr(), A0); |
| 30110 | } |
| 30111 | bool EvalEmitter::emitGetThisFieldIntAP( uint32_t A0, SourceInfo L) { |
| 30112 | if (!isActive()) return true; |
| 30113 | CurrentSource = L; |
| 30114 | return GetThisField<PT_IntAP>(S, CodePtr(), A0); |
| 30115 | } |
| 30116 | bool EvalEmitter::emitGetThisFieldIntAPS( uint32_t A0, SourceInfo L) { |
| 30117 | if (!isActive()) return true; |
| 30118 | CurrentSource = L; |
| 30119 | return GetThisField<PT_IntAPS>(S, CodePtr(), A0); |
| 30120 | } |
| 30121 | bool EvalEmitter::emitGetThisFieldBool( uint32_t A0, SourceInfo L) { |
| 30122 | if (!isActive()) return true; |
| 30123 | CurrentSource = L; |
| 30124 | return GetThisField<PT_Bool>(S, CodePtr(), A0); |
| 30125 | } |
| 30126 | bool EvalEmitter::emitGetThisFieldFixedPoint( uint32_t A0, SourceInfo L) { |
| 30127 | if (!isActive()) return true; |
| 30128 | CurrentSource = L; |
| 30129 | return GetThisField<PT_FixedPoint>(S, CodePtr(), A0); |
| 30130 | } |
| 30131 | bool EvalEmitter::emitGetThisFieldPtr( uint32_t A0, SourceInfo L) { |
| 30132 | if (!isActive()) return true; |
| 30133 | CurrentSource = L; |
| 30134 | return GetThisField<PT_Ptr>(S, CodePtr(), A0); |
| 30135 | } |
| 30136 | bool EvalEmitter::emitGetThisFieldMemberPtr( uint32_t A0, SourceInfo L) { |
| 30137 | if (!isActive()) return true; |
| 30138 | CurrentSource = L; |
| 30139 | return GetThisField<PT_MemberPtr>(S, CodePtr(), A0); |
| 30140 | } |
| 30141 | bool EvalEmitter::emitGetThisFieldFloat( uint32_t A0, SourceInfo L) { |
| 30142 | if (!isActive()) return true; |
| 30143 | CurrentSource = L; |
| 30144 | return GetThisField<PT_Float>(S, CodePtr(), A0); |
| 30145 | } |
| 30146 | bool EvalEmitter::emitGetThisFieldReflect( uint32_t A0, SourceInfo L) { |
| 30147 | if (!isActive()) return true; |
| 30148 | CurrentSource = L; |
| 30149 | return GetThisField<PT_Reflect>(S, CodePtr(), A0); |
| 30150 | } |
| 30151 | #endif |
| 30152 | #ifdef GET_OPCODE_NAMES |
| 30153 | OP_GetTypeid, |
| 30154 | #endif |
| 30155 | #ifdef GET_INTERPFN_LIST |
| 30156 | &Interp_GetTypeid, |
| 30157 | #endif |
| 30158 | #ifdef GET_INTERPFN_DISPATCHERS |
| 30159 | PRESERVE_NONE |
| 30160 | static bool Interp_GetTypeid(InterpState &S) { |
| 30161 | { |
| 30162 | const auto V0 = ReadArg<const Type *>(S, S.PC); |
| 30163 | const auto V1 = ReadArg<const Type *>(S, S.PC); |
| 30164 | GetTypeid(S, V0, V1); |
| 30165 | } |
| 30166 | #if USE_TAILCALLS |
| 30167 | MUSTTAIL return InterpNext(S); |
| 30168 | #else |
| 30169 | return true; |
| 30170 | #endif |
| 30171 | } |
| 30172 | #endif |
| 30173 | #ifdef GET_DISASM |
| 30174 | case OP_GetTypeid: |
| 30175 | Text.Op = PrintName("GetTypeid" ); |
| 30176 | Text.Args.push_back(printArg<const Type *>(PC)); |
| 30177 | Text.Args.push_back(printArg<const Type *>(PC)); |
| 30178 | break; |
| 30179 | #endif |
| 30180 | #if defined(GET_EVAL_PROTO) || defined(GET_LINK_PROTO) |
| 30181 | bool emitGetTypeid( const Type * , const Type * , SourceInfo); |
| 30182 | #endif |
| 30183 | #ifdef GET_LINK_IMPL |
| 30184 | bool ByteCodeEmitter::emitGetTypeid( const Type * A0, const Type * A1, SourceInfo L) { |
| 30185 | return emitOp<const Type *, const Type *>(OP_GetTypeid, A0, A1, L); |
| 30186 | } |
| 30187 | #endif |
| 30188 | #ifdef GET_EVAL_IMPL |
| 30189 | bool EvalEmitter::emitGetTypeid( const Type * A0, const Type * A1, SourceInfo L) { |
| 30190 | if (!isActive()) return true; |
| 30191 | CurrentSource = L; |
| 30192 | return GetTypeid(S, A0, A1); |
| 30193 | } |
| 30194 | #endif |
| 30195 | #ifdef GET_OPCODE_NAMES |
| 30196 | OP_GetTypeidPtr, |
| 30197 | #endif |
| 30198 | #ifdef GET_INTERPFN_LIST |
| 30199 | &Interp_GetTypeidPtr, |
| 30200 | #endif |
| 30201 | #ifdef GET_INTERPFN_DISPATCHERS |
| 30202 | PRESERVE_NONE |
| 30203 | static bool Interp_GetTypeidPtr(InterpState &S) { |
| 30204 | { |
| 30205 | CodePtr OpPC = S.PC; |
| 30206 | const auto V0 = ReadArg<const Type *>(S, S.PC); |
| 30207 | if (!GetTypeidPtr(S, OpPC, V0)) return false; |
| 30208 | } |
| 30209 | #if USE_TAILCALLS |
| 30210 | MUSTTAIL return InterpNext(S); |
| 30211 | #else |
| 30212 | return true; |
| 30213 | #endif |
| 30214 | } |
| 30215 | #endif |
| 30216 | #ifdef GET_DISASM |
| 30217 | case OP_GetTypeidPtr: |
| 30218 | Text.Op = PrintName("GetTypeidPtr" ); |
| 30219 | Text.Args.push_back(printArg<const Type *>(PC)); |
| 30220 | break; |
| 30221 | #endif |
| 30222 | #if defined(GET_EVAL_PROTO) || defined(GET_LINK_PROTO) |
| 30223 | bool emitGetTypeidPtr( const Type * , SourceInfo); |
| 30224 | #endif |
| 30225 | #ifdef GET_LINK_IMPL |
| 30226 | bool ByteCodeEmitter::emitGetTypeidPtr( const Type * A0, SourceInfo L) { |
| 30227 | return emitOp<const Type *>(OP_GetTypeidPtr, A0, L); |
| 30228 | } |
| 30229 | #endif |
| 30230 | #ifdef GET_EVAL_IMPL |
| 30231 | bool EvalEmitter::emitGetTypeidPtr( const Type * A0, SourceInfo L) { |
| 30232 | if (!isActive()) return true; |
| 30233 | CurrentSource = L; |
| 30234 | return GetTypeidPtr(S, CodePtr(), A0); |
| 30235 | } |
| 30236 | #endif |
| 30237 | #ifdef GET_OPCODE_NAMES |
| 30238 | OP_IncSint8, |
| 30239 | OP_IncUint8, |
| 30240 | OP_IncSint16, |
| 30241 | OP_IncUint16, |
| 30242 | OP_IncSint32, |
| 30243 | OP_IncUint32, |
| 30244 | OP_IncSint64, |
| 30245 | OP_IncUint64, |
| 30246 | OP_IncIntAP, |
| 30247 | OP_IncIntAPS, |
| 30248 | OP_IncBool, |
| 30249 | OP_IncFixedPoint, |
| 30250 | #endif |
| 30251 | #ifdef GET_INTERPFN_LIST |
| 30252 | &Interp_IncSint8, |
| 30253 | &Interp_IncUint8, |
| 30254 | &Interp_IncSint16, |
| 30255 | &Interp_IncUint16, |
| 30256 | &Interp_IncSint32, |
| 30257 | &Interp_IncUint32, |
| 30258 | &Interp_IncSint64, |
| 30259 | &Interp_IncUint64, |
| 30260 | &Interp_IncIntAP, |
| 30261 | &Interp_IncIntAPS, |
| 30262 | &Interp_IncBool, |
| 30263 | &Interp_IncFixedPoint, |
| 30264 | #endif |
| 30265 | #ifdef GET_INTERPFN_DISPATCHERS |
| 30266 | PRESERVE_NONE |
| 30267 | static bool Interp_IncSint8(InterpState &S) { |
| 30268 | { |
| 30269 | CodePtr OpPC = S.PC; |
| 30270 | const auto V0 = ReadArg<bool>(S, S.PC); |
| 30271 | if (!Inc<PT_Sint8>(S, OpPC, V0)) return false; |
| 30272 | } |
| 30273 | #if USE_TAILCALLS |
| 30274 | MUSTTAIL return InterpNext(S); |
| 30275 | #else |
| 30276 | return true; |
| 30277 | #endif |
| 30278 | } |
| 30279 | PRESERVE_NONE |
| 30280 | static bool Interp_IncUint8(InterpState &S) { |
| 30281 | { |
| 30282 | CodePtr OpPC = S.PC; |
| 30283 | const auto V0 = ReadArg<bool>(S, S.PC); |
| 30284 | if (!Inc<PT_Uint8>(S, OpPC, V0)) return false; |
| 30285 | } |
| 30286 | #if USE_TAILCALLS |
| 30287 | MUSTTAIL return InterpNext(S); |
| 30288 | #else |
| 30289 | return true; |
| 30290 | #endif |
| 30291 | } |
| 30292 | PRESERVE_NONE |
| 30293 | static bool Interp_IncSint16(InterpState &S) { |
| 30294 | { |
| 30295 | CodePtr OpPC = S.PC; |
| 30296 | const auto V0 = ReadArg<bool>(S, S.PC); |
| 30297 | if (!Inc<PT_Sint16>(S, OpPC, V0)) return false; |
| 30298 | } |
| 30299 | #if USE_TAILCALLS |
| 30300 | MUSTTAIL return InterpNext(S); |
| 30301 | #else |
| 30302 | return true; |
| 30303 | #endif |
| 30304 | } |
| 30305 | PRESERVE_NONE |
| 30306 | static bool Interp_IncUint16(InterpState &S) { |
| 30307 | { |
| 30308 | CodePtr OpPC = S.PC; |
| 30309 | const auto V0 = ReadArg<bool>(S, S.PC); |
| 30310 | if (!Inc<PT_Uint16>(S, OpPC, V0)) return false; |
| 30311 | } |
| 30312 | #if USE_TAILCALLS |
| 30313 | MUSTTAIL return InterpNext(S); |
| 30314 | #else |
| 30315 | return true; |
| 30316 | #endif |
| 30317 | } |
| 30318 | PRESERVE_NONE |
| 30319 | static bool Interp_IncSint32(InterpState &S) { |
| 30320 | { |
| 30321 | CodePtr OpPC = S.PC; |
| 30322 | const auto V0 = ReadArg<bool>(S, S.PC); |
| 30323 | if (!Inc<PT_Sint32>(S, OpPC, V0)) return false; |
| 30324 | } |
| 30325 | #if USE_TAILCALLS |
| 30326 | MUSTTAIL return InterpNext(S); |
| 30327 | #else |
| 30328 | return true; |
| 30329 | #endif |
| 30330 | } |
| 30331 | PRESERVE_NONE |
| 30332 | static bool Interp_IncUint32(InterpState &S) { |
| 30333 | { |
| 30334 | CodePtr OpPC = S.PC; |
| 30335 | const auto V0 = ReadArg<bool>(S, S.PC); |
| 30336 | if (!Inc<PT_Uint32>(S, OpPC, V0)) return false; |
| 30337 | } |
| 30338 | #if USE_TAILCALLS |
| 30339 | MUSTTAIL return InterpNext(S); |
| 30340 | #else |
| 30341 | return true; |
| 30342 | #endif |
| 30343 | } |
| 30344 | PRESERVE_NONE |
| 30345 | static bool Interp_IncSint64(InterpState &S) { |
| 30346 | { |
| 30347 | CodePtr OpPC = S.PC; |
| 30348 | const auto V0 = ReadArg<bool>(S, S.PC); |
| 30349 | if (!Inc<PT_Sint64>(S, OpPC, V0)) return false; |
| 30350 | } |
| 30351 | #if USE_TAILCALLS |
| 30352 | MUSTTAIL return InterpNext(S); |
| 30353 | #else |
| 30354 | return true; |
| 30355 | #endif |
| 30356 | } |
| 30357 | PRESERVE_NONE |
| 30358 | static bool Interp_IncUint64(InterpState &S) { |
| 30359 | { |
| 30360 | CodePtr OpPC = S.PC; |
| 30361 | const auto V0 = ReadArg<bool>(S, S.PC); |
| 30362 | if (!Inc<PT_Uint64>(S, OpPC, V0)) return false; |
| 30363 | } |
| 30364 | #if USE_TAILCALLS |
| 30365 | MUSTTAIL return InterpNext(S); |
| 30366 | #else |
| 30367 | return true; |
| 30368 | #endif |
| 30369 | } |
| 30370 | PRESERVE_NONE |
| 30371 | static bool Interp_IncIntAP(InterpState &S) { |
| 30372 | { |
| 30373 | CodePtr OpPC = S.PC; |
| 30374 | const auto V0 = ReadArg<bool>(S, S.PC); |
| 30375 | if (!Inc<PT_IntAP>(S, OpPC, V0)) return false; |
| 30376 | } |
| 30377 | #if USE_TAILCALLS |
| 30378 | MUSTTAIL return InterpNext(S); |
| 30379 | #else |
| 30380 | return true; |
| 30381 | #endif |
| 30382 | } |
| 30383 | PRESERVE_NONE |
| 30384 | static bool Interp_IncIntAPS(InterpState &S) { |
| 30385 | { |
| 30386 | CodePtr OpPC = S.PC; |
| 30387 | const auto V0 = ReadArg<bool>(S, S.PC); |
| 30388 | if (!Inc<PT_IntAPS>(S, OpPC, V0)) return false; |
| 30389 | } |
| 30390 | #if USE_TAILCALLS |
| 30391 | MUSTTAIL return InterpNext(S); |
| 30392 | #else |
| 30393 | return true; |
| 30394 | #endif |
| 30395 | } |
| 30396 | PRESERVE_NONE |
| 30397 | static bool Interp_IncBool(InterpState &S) { |
| 30398 | { |
| 30399 | CodePtr OpPC = S.PC; |
| 30400 | const auto V0 = ReadArg<bool>(S, S.PC); |
| 30401 | if (!Inc<PT_Bool>(S, OpPC, V0)) return false; |
| 30402 | } |
| 30403 | #if USE_TAILCALLS |
| 30404 | MUSTTAIL return InterpNext(S); |
| 30405 | #else |
| 30406 | return true; |
| 30407 | #endif |
| 30408 | } |
| 30409 | PRESERVE_NONE |
| 30410 | static bool Interp_IncFixedPoint(InterpState &S) { |
| 30411 | { |
| 30412 | CodePtr OpPC = S.PC; |
| 30413 | const auto V0 = ReadArg<bool>(S, S.PC); |
| 30414 | if (!Inc<PT_FixedPoint>(S, OpPC, V0)) return false; |
| 30415 | } |
| 30416 | #if USE_TAILCALLS |
| 30417 | MUSTTAIL return InterpNext(S); |
| 30418 | #else |
| 30419 | return true; |
| 30420 | #endif |
| 30421 | } |
| 30422 | #endif |
| 30423 | #ifdef GET_DISASM |
| 30424 | case OP_IncSint8: |
| 30425 | Text.Op = PrintName("IncSint8" ); |
| 30426 | Text.Args.push_back(printArg<bool>(PC)); |
| 30427 | break; |
| 30428 | case OP_IncUint8: |
| 30429 | Text.Op = PrintName("IncUint8" ); |
| 30430 | Text.Args.push_back(printArg<bool>(PC)); |
| 30431 | break; |
| 30432 | case OP_IncSint16: |
| 30433 | Text.Op = PrintName("IncSint16" ); |
| 30434 | Text.Args.push_back(printArg<bool>(PC)); |
| 30435 | break; |
| 30436 | case OP_IncUint16: |
| 30437 | Text.Op = PrintName("IncUint16" ); |
| 30438 | Text.Args.push_back(printArg<bool>(PC)); |
| 30439 | break; |
| 30440 | case OP_IncSint32: |
| 30441 | Text.Op = PrintName("IncSint32" ); |
| 30442 | Text.Args.push_back(printArg<bool>(PC)); |
| 30443 | break; |
| 30444 | case OP_IncUint32: |
| 30445 | Text.Op = PrintName("IncUint32" ); |
| 30446 | Text.Args.push_back(printArg<bool>(PC)); |
| 30447 | break; |
| 30448 | case OP_IncSint64: |
| 30449 | Text.Op = PrintName("IncSint64" ); |
| 30450 | Text.Args.push_back(printArg<bool>(PC)); |
| 30451 | break; |
| 30452 | case OP_IncUint64: |
| 30453 | Text.Op = PrintName("IncUint64" ); |
| 30454 | Text.Args.push_back(printArg<bool>(PC)); |
| 30455 | break; |
| 30456 | case OP_IncIntAP: |
| 30457 | Text.Op = PrintName("IncIntAP" ); |
| 30458 | Text.Args.push_back(printArg<bool>(PC)); |
| 30459 | break; |
| 30460 | case OP_IncIntAPS: |
| 30461 | Text.Op = PrintName("IncIntAPS" ); |
| 30462 | Text.Args.push_back(printArg<bool>(PC)); |
| 30463 | break; |
| 30464 | case OP_IncBool: |
| 30465 | Text.Op = PrintName("IncBool" ); |
| 30466 | Text.Args.push_back(printArg<bool>(PC)); |
| 30467 | break; |
| 30468 | case OP_IncFixedPoint: |
| 30469 | Text.Op = PrintName("IncFixedPoint" ); |
| 30470 | Text.Args.push_back(printArg<bool>(PC)); |
| 30471 | break; |
| 30472 | #endif |
| 30473 | #if defined(GET_EVAL_PROTO) || defined(GET_LINK_PROTO) |
| 30474 | bool emitIncSint8( bool , SourceInfo); |
| 30475 | bool emitIncUint8( bool , SourceInfo); |
| 30476 | bool emitIncSint16( bool , SourceInfo); |
| 30477 | bool emitIncUint16( bool , SourceInfo); |
| 30478 | bool emitIncSint32( bool , SourceInfo); |
| 30479 | bool emitIncUint32( bool , SourceInfo); |
| 30480 | bool emitIncSint64( bool , SourceInfo); |
| 30481 | bool emitIncUint64( bool , SourceInfo); |
| 30482 | bool emitIncIntAP( bool , SourceInfo); |
| 30483 | bool emitIncIntAPS( bool , SourceInfo); |
| 30484 | bool emitIncBool( bool , SourceInfo); |
| 30485 | bool emitIncFixedPoint( bool , SourceInfo); |
| 30486 | #endif |
| 30487 | #if defined(GET_EVAL_PROTO) || defined(GET_LINK_PROTO) |
| 30488 | [[nodiscard]] bool emitInc(PrimType, bool, SourceInfo I); |
| 30489 | #endif |
| 30490 | #if defined(GET_EVAL_IMPL) || defined(GET_LINK_IMPL) |
| 30491 | bool |
| 30492 | #if defined(GET_EVAL_IMPL) |
| 30493 | EvalEmitter |
| 30494 | #else |
| 30495 | ByteCodeEmitter |
| 30496 | #endif |
| 30497 | ::emitInc(PrimType T0, bool A0, SourceInfo I) { |
| 30498 | switch (T0) { |
| 30499 | case PT_Sint8: |
| 30500 | return emitIncSint8(A0, I); |
| 30501 | case PT_Uint8: |
| 30502 | return emitIncUint8(A0, I); |
| 30503 | case PT_Sint16: |
| 30504 | return emitIncSint16(A0, I); |
| 30505 | case PT_Uint16: |
| 30506 | return emitIncUint16(A0, I); |
| 30507 | case PT_Sint32: |
| 30508 | return emitIncSint32(A0, I); |
| 30509 | case PT_Uint32: |
| 30510 | return emitIncUint32(A0, I); |
| 30511 | case PT_Sint64: |
| 30512 | return emitIncSint64(A0, I); |
| 30513 | case PT_Uint64: |
| 30514 | return emitIncUint64(A0, I); |
| 30515 | case PT_IntAP: |
| 30516 | return emitIncIntAP(A0, I); |
| 30517 | case PT_IntAPS: |
| 30518 | return emitIncIntAPS(A0, I); |
| 30519 | case PT_Bool: |
| 30520 | return emitIncBool(A0, I); |
| 30521 | case PT_FixedPoint: |
| 30522 | return emitIncFixedPoint(A0, I); |
| 30523 | default: llvm_unreachable("invalid type: emitInc" ); |
| 30524 | } |
| 30525 | llvm_unreachable("invalid enum value" ); |
| 30526 | } |
| 30527 | #endif |
| 30528 | #ifdef GET_LINK_IMPL |
| 30529 | bool ByteCodeEmitter::emitIncSint8( bool A0, SourceInfo L) { |
| 30530 | return emitOp<bool>(OP_IncSint8, A0, L); |
| 30531 | } |
| 30532 | bool ByteCodeEmitter::emitIncUint8( bool A0, SourceInfo L) { |
| 30533 | return emitOp<bool>(OP_IncUint8, A0, L); |
| 30534 | } |
| 30535 | bool ByteCodeEmitter::emitIncSint16( bool A0, SourceInfo L) { |
| 30536 | return emitOp<bool>(OP_IncSint16, A0, L); |
| 30537 | } |
| 30538 | bool ByteCodeEmitter::emitIncUint16( bool A0, SourceInfo L) { |
| 30539 | return emitOp<bool>(OP_IncUint16, A0, L); |
| 30540 | } |
| 30541 | bool ByteCodeEmitter::emitIncSint32( bool A0, SourceInfo L) { |
| 30542 | return emitOp<bool>(OP_IncSint32, A0, L); |
| 30543 | } |
| 30544 | bool ByteCodeEmitter::emitIncUint32( bool A0, SourceInfo L) { |
| 30545 | return emitOp<bool>(OP_IncUint32, A0, L); |
| 30546 | } |
| 30547 | bool ByteCodeEmitter::emitIncSint64( bool A0, SourceInfo L) { |
| 30548 | return emitOp<bool>(OP_IncSint64, A0, L); |
| 30549 | } |
| 30550 | bool ByteCodeEmitter::emitIncUint64( bool A0, SourceInfo L) { |
| 30551 | return emitOp<bool>(OP_IncUint64, A0, L); |
| 30552 | } |
| 30553 | bool ByteCodeEmitter::emitIncIntAP( bool A0, SourceInfo L) { |
| 30554 | return emitOp<bool>(OP_IncIntAP, A0, L); |
| 30555 | } |
| 30556 | bool ByteCodeEmitter::emitIncIntAPS( bool A0, SourceInfo L) { |
| 30557 | return emitOp<bool>(OP_IncIntAPS, A0, L); |
| 30558 | } |
| 30559 | bool ByteCodeEmitter::emitIncBool( bool A0, SourceInfo L) { |
| 30560 | return emitOp<bool>(OP_IncBool, A0, L); |
| 30561 | } |
| 30562 | bool ByteCodeEmitter::emitIncFixedPoint( bool A0, SourceInfo L) { |
| 30563 | return emitOp<bool>(OP_IncFixedPoint, A0, L); |
| 30564 | } |
| 30565 | #endif |
| 30566 | #ifdef GET_EVAL_IMPL |
| 30567 | bool EvalEmitter::emitIncSint8( bool A0, SourceInfo L) { |
| 30568 | if (!isActive()) return true; |
| 30569 | CurrentSource = L; |
| 30570 | return Inc<PT_Sint8>(S, CodePtr(), A0); |
| 30571 | } |
| 30572 | bool EvalEmitter::emitIncUint8( bool A0, SourceInfo L) { |
| 30573 | if (!isActive()) return true; |
| 30574 | CurrentSource = L; |
| 30575 | return Inc<PT_Uint8>(S, CodePtr(), A0); |
| 30576 | } |
| 30577 | bool EvalEmitter::emitIncSint16( bool A0, SourceInfo L) { |
| 30578 | if (!isActive()) return true; |
| 30579 | CurrentSource = L; |
| 30580 | return Inc<PT_Sint16>(S, CodePtr(), A0); |
| 30581 | } |
| 30582 | bool EvalEmitter::emitIncUint16( bool A0, SourceInfo L) { |
| 30583 | if (!isActive()) return true; |
| 30584 | CurrentSource = L; |
| 30585 | return Inc<PT_Uint16>(S, CodePtr(), A0); |
| 30586 | } |
| 30587 | bool EvalEmitter::emitIncSint32( bool A0, SourceInfo L) { |
| 30588 | if (!isActive()) return true; |
| 30589 | CurrentSource = L; |
| 30590 | return Inc<PT_Sint32>(S, CodePtr(), A0); |
| 30591 | } |
| 30592 | bool EvalEmitter::emitIncUint32( bool A0, SourceInfo L) { |
| 30593 | if (!isActive()) return true; |
| 30594 | CurrentSource = L; |
| 30595 | return Inc<PT_Uint32>(S, CodePtr(), A0); |
| 30596 | } |
| 30597 | bool EvalEmitter::emitIncSint64( bool A0, SourceInfo L) { |
| 30598 | if (!isActive()) return true; |
| 30599 | CurrentSource = L; |
| 30600 | return Inc<PT_Sint64>(S, CodePtr(), A0); |
| 30601 | } |
| 30602 | bool EvalEmitter::emitIncUint64( bool A0, SourceInfo L) { |
| 30603 | if (!isActive()) return true; |
| 30604 | CurrentSource = L; |
| 30605 | return Inc<PT_Uint64>(S, CodePtr(), A0); |
| 30606 | } |
| 30607 | bool EvalEmitter::emitIncIntAP( bool A0, SourceInfo L) { |
| 30608 | if (!isActive()) return true; |
| 30609 | CurrentSource = L; |
| 30610 | return Inc<PT_IntAP>(S, CodePtr(), A0); |
| 30611 | } |
| 30612 | bool EvalEmitter::emitIncIntAPS( bool A0, SourceInfo L) { |
| 30613 | if (!isActive()) return true; |
| 30614 | CurrentSource = L; |
| 30615 | return Inc<PT_IntAPS>(S, CodePtr(), A0); |
| 30616 | } |
| 30617 | bool EvalEmitter::emitIncBool( bool A0, SourceInfo L) { |
| 30618 | if (!isActive()) return true; |
| 30619 | CurrentSource = L; |
| 30620 | return Inc<PT_Bool>(S, CodePtr(), A0); |
| 30621 | } |
| 30622 | bool EvalEmitter::emitIncFixedPoint( bool A0, SourceInfo L) { |
| 30623 | if (!isActive()) return true; |
| 30624 | CurrentSource = L; |
| 30625 | return Inc<PT_FixedPoint>(S, CodePtr(), A0); |
| 30626 | } |
| 30627 | #endif |
| 30628 | #ifdef GET_OPCODE_NAMES |
| 30629 | OP_IncBitfieldSint8, |
| 30630 | OP_IncBitfieldUint8, |
| 30631 | OP_IncBitfieldSint16, |
| 30632 | OP_IncBitfieldUint16, |
| 30633 | OP_IncBitfieldSint32, |
| 30634 | OP_IncBitfieldUint32, |
| 30635 | OP_IncBitfieldSint64, |
| 30636 | OP_IncBitfieldUint64, |
| 30637 | OP_IncBitfieldIntAP, |
| 30638 | OP_IncBitfieldIntAPS, |
| 30639 | OP_IncBitfieldBool, |
| 30640 | OP_IncBitfieldFixedPoint, |
| 30641 | #endif |
| 30642 | #ifdef GET_INTERPFN_LIST |
| 30643 | &Interp_IncBitfieldSint8, |
| 30644 | &Interp_IncBitfieldUint8, |
| 30645 | &Interp_IncBitfieldSint16, |
| 30646 | &Interp_IncBitfieldUint16, |
| 30647 | &Interp_IncBitfieldSint32, |
| 30648 | &Interp_IncBitfieldUint32, |
| 30649 | &Interp_IncBitfieldSint64, |
| 30650 | &Interp_IncBitfieldUint64, |
| 30651 | &Interp_IncBitfieldIntAP, |
| 30652 | &Interp_IncBitfieldIntAPS, |
| 30653 | &Interp_IncBitfieldBool, |
| 30654 | &Interp_IncBitfieldFixedPoint, |
| 30655 | #endif |
| 30656 | #ifdef GET_INTERPFN_DISPATCHERS |
| 30657 | PRESERVE_NONE |
| 30658 | static bool Interp_IncBitfieldSint8(InterpState &S) { |
| 30659 | { |
| 30660 | CodePtr OpPC = S.PC; |
| 30661 | const auto V0 = ReadArg<bool>(S, S.PC); |
| 30662 | const auto V1 = ReadArg<uint32_t>(S, S.PC); |
| 30663 | if (!IncBitfield<PT_Sint8>(S, OpPC, V0, V1)) return false; |
| 30664 | } |
| 30665 | #if USE_TAILCALLS |
| 30666 | MUSTTAIL return InterpNext(S); |
| 30667 | #else |
| 30668 | return true; |
| 30669 | #endif |
| 30670 | } |
| 30671 | PRESERVE_NONE |
| 30672 | static bool Interp_IncBitfieldUint8(InterpState &S) { |
| 30673 | { |
| 30674 | CodePtr OpPC = S.PC; |
| 30675 | const auto V0 = ReadArg<bool>(S, S.PC); |
| 30676 | const auto V1 = ReadArg<uint32_t>(S, S.PC); |
| 30677 | if (!IncBitfield<PT_Uint8>(S, OpPC, V0, V1)) return false; |
| 30678 | } |
| 30679 | #if USE_TAILCALLS |
| 30680 | MUSTTAIL return InterpNext(S); |
| 30681 | #else |
| 30682 | return true; |
| 30683 | #endif |
| 30684 | } |
| 30685 | PRESERVE_NONE |
| 30686 | static bool Interp_IncBitfieldSint16(InterpState &S) { |
| 30687 | { |
| 30688 | CodePtr OpPC = S.PC; |
| 30689 | const auto V0 = ReadArg<bool>(S, S.PC); |
| 30690 | const auto V1 = ReadArg<uint32_t>(S, S.PC); |
| 30691 | if (!IncBitfield<PT_Sint16>(S, OpPC, V0, V1)) return false; |
| 30692 | } |
| 30693 | #if USE_TAILCALLS |
| 30694 | MUSTTAIL return InterpNext(S); |
| 30695 | #else |
| 30696 | return true; |
| 30697 | #endif |
| 30698 | } |
| 30699 | PRESERVE_NONE |
| 30700 | static bool Interp_IncBitfieldUint16(InterpState &S) { |
| 30701 | { |
| 30702 | CodePtr OpPC = S.PC; |
| 30703 | const auto V0 = ReadArg<bool>(S, S.PC); |
| 30704 | const auto V1 = ReadArg<uint32_t>(S, S.PC); |
| 30705 | if (!IncBitfield<PT_Uint16>(S, OpPC, V0, V1)) return false; |
| 30706 | } |
| 30707 | #if USE_TAILCALLS |
| 30708 | MUSTTAIL return InterpNext(S); |
| 30709 | #else |
| 30710 | return true; |
| 30711 | #endif |
| 30712 | } |
| 30713 | PRESERVE_NONE |
| 30714 | static bool Interp_IncBitfieldSint32(InterpState &S) { |
| 30715 | { |
| 30716 | CodePtr OpPC = S.PC; |
| 30717 | const auto V0 = ReadArg<bool>(S, S.PC); |
| 30718 | const auto V1 = ReadArg<uint32_t>(S, S.PC); |
| 30719 | if (!IncBitfield<PT_Sint32>(S, OpPC, V0, V1)) return false; |
| 30720 | } |
| 30721 | #if USE_TAILCALLS |
| 30722 | MUSTTAIL return InterpNext(S); |
| 30723 | #else |
| 30724 | return true; |
| 30725 | #endif |
| 30726 | } |
| 30727 | PRESERVE_NONE |
| 30728 | static bool Interp_IncBitfieldUint32(InterpState &S) { |
| 30729 | { |
| 30730 | CodePtr OpPC = S.PC; |
| 30731 | const auto V0 = ReadArg<bool>(S, S.PC); |
| 30732 | const auto V1 = ReadArg<uint32_t>(S, S.PC); |
| 30733 | if (!IncBitfield<PT_Uint32>(S, OpPC, V0, V1)) return false; |
| 30734 | } |
| 30735 | #if USE_TAILCALLS |
| 30736 | MUSTTAIL return InterpNext(S); |
| 30737 | #else |
| 30738 | return true; |
| 30739 | #endif |
| 30740 | } |
| 30741 | PRESERVE_NONE |
| 30742 | static bool Interp_IncBitfieldSint64(InterpState &S) { |
| 30743 | { |
| 30744 | CodePtr OpPC = S.PC; |
| 30745 | const auto V0 = ReadArg<bool>(S, S.PC); |
| 30746 | const auto V1 = ReadArg<uint32_t>(S, S.PC); |
| 30747 | if (!IncBitfield<PT_Sint64>(S, OpPC, V0, V1)) return false; |
| 30748 | } |
| 30749 | #if USE_TAILCALLS |
| 30750 | MUSTTAIL return InterpNext(S); |
| 30751 | #else |
| 30752 | return true; |
| 30753 | #endif |
| 30754 | } |
| 30755 | PRESERVE_NONE |
| 30756 | static bool Interp_IncBitfieldUint64(InterpState &S) { |
| 30757 | { |
| 30758 | CodePtr OpPC = S.PC; |
| 30759 | const auto V0 = ReadArg<bool>(S, S.PC); |
| 30760 | const auto V1 = ReadArg<uint32_t>(S, S.PC); |
| 30761 | if (!IncBitfield<PT_Uint64>(S, OpPC, V0, V1)) return false; |
| 30762 | } |
| 30763 | #if USE_TAILCALLS |
| 30764 | MUSTTAIL return InterpNext(S); |
| 30765 | #else |
| 30766 | return true; |
| 30767 | #endif |
| 30768 | } |
| 30769 | PRESERVE_NONE |
| 30770 | static bool Interp_IncBitfieldIntAP(InterpState &S) { |
| 30771 | { |
| 30772 | CodePtr OpPC = S.PC; |
| 30773 | const auto V0 = ReadArg<bool>(S, S.PC); |
| 30774 | const auto V1 = ReadArg<uint32_t>(S, S.PC); |
| 30775 | if (!IncBitfield<PT_IntAP>(S, OpPC, V0, V1)) return false; |
| 30776 | } |
| 30777 | #if USE_TAILCALLS |
| 30778 | MUSTTAIL return InterpNext(S); |
| 30779 | #else |
| 30780 | return true; |
| 30781 | #endif |
| 30782 | } |
| 30783 | PRESERVE_NONE |
| 30784 | static bool Interp_IncBitfieldIntAPS(InterpState &S) { |
| 30785 | { |
| 30786 | CodePtr OpPC = S.PC; |
| 30787 | const auto V0 = ReadArg<bool>(S, S.PC); |
| 30788 | const auto V1 = ReadArg<uint32_t>(S, S.PC); |
| 30789 | if (!IncBitfield<PT_IntAPS>(S, OpPC, V0, V1)) return false; |
| 30790 | } |
| 30791 | #if USE_TAILCALLS |
| 30792 | MUSTTAIL return InterpNext(S); |
| 30793 | #else |
| 30794 | return true; |
| 30795 | #endif |
| 30796 | } |
| 30797 | PRESERVE_NONE |
| 30798 | static bool Interp_IncBitfieldBool(InterpState &S) { |
| 30799 | { |
| 30800 | CodePtr OpPC = S.PC; |
| 30801 | const auto V0 = ReadArg<bool>(S, S.PC); |
| 30802 | const auto V1 = ReadArg<uint32_t>(S, S.PC); |
| 30803 | if (!IncBitfield<PT_Bool>(S, OpPC, V0, V1)) return false; |
| 30804 | } |
| 30805 | #if USE_TAILCALLS |
| 30806 | MUSTTAIL return InterpNext(S); |
| 30807 | #else |
| 30808 | return true; |
| 30809 | #endif |
| 30810 | } |
| 30811 | PRESERVE_NONE |
| 30812 | static bool Interp_IncBitfieldFixedPoint(InterpState &S) { |
| 30813 | { |
| 30814 | CodePtr OpPC = S.PC; |
| 30815 | const auto V0 = ReadArg<bool>(S, S.PC); |
| 30816 | const auto V1 = ReadArg<uint32_t>(S, S.PC); |
| 30817 | if (!IncBitfield<PT_FixedPoint>(S, OpPC, V0, V1)) return false; |
| 30818 | } |
| 30819 | #if USE_TAILCALLS |
| 30820 | MUSTTAIL return InterpNext(S); |
| 30821 | #else |
| 30822 | return true; |
| 30823 | #endif |
| 30824 | } |
| 30825 | #endif |
| 30826 | #ifdef GET_DISASM |
| 30827 | case OP_IncBitfieldSint8: |
| 30828 | Text.Op = PrintName("IncBitfieldSint8" ); |
| 30829 | Text.Args.push_back(printArg<bool>(PC)); |
| 30830 | Text.Args.push_back(printArg<uint32_t>(PC)); |
| 30831 | break; |
| 30832 | case OP_IncBitfieldUint8: |
| 30833 | Text.Op = PrintName("IncBitfieldUint8" ); |
| 30834 | Text.Args.push_back(printArg<bool>(PC)); |
| 30835 | Text.Args.push_back(printArg<uint32_t>(PC)); |
| 30836 | break; |
| 30837 | case OP_IncBitfieldSint16: |
| 30838 | Text.Op = PrintName("IncBitfieldSint16" ); |
| 30839 | Text.Args.push_back(printArg<bool>(PC)); |
| 30840 | Text.Args.push_back(printArg<uint32_t>(PC)); |
| 30841 | break; |
| 30842 | case OP_IncBitfieldUint16: |
| 30843 | Text.Op = PrintName("IncBitfieldUint16" ); |
| 30844 | Text.Args.push_back(printArg<bool>(PC)); |
| 30845 | Text.Args.push_back(printArg<uint32_t>(PC)); |
| 30846 | break; |
| 30847 | case OP_IncBitfieldSint32: |
| 30848 | Text.Op = PrintName("IncBitfieldSint32" ); |
| 30849 | Text.Args.push_back(printArg<bool>(PC)); |
| 30850 | Text.Args.push_back(printArg<uint32_t>(PC)); |
| 30851 | break; |
| 30852 | case OP_IncBitfieldUint32: |
| 30853 | Text.Op = PrintName("IncBitfieldUint32" ); |
| 30854 | Text.Args.push_back(printArg<bool>(PC)); |
| 30855 | Text.Args.push_back(printArg<uint32_t>(PC)); |
| 30856 | break; |
| 30857 | case OP_IncBitfieldSint64: |
| 30858 | Text.Op = PrintName("IncBitfieldSint64" ); |
| 30859 | Text.Args.push_back(printArg<bool>(PC)); |
| 30860 | Text.Args.push_back(printArg<uint32_t>(PC)); |
| 30861 | break; |
| 30862 | case OP_IncBitfieldUint64: |
| 30863 | Text.Op = PrintName("IncBitfieldUint64" ); |
| 30864 | Text.Args.push_back(printArg<bool>(PC)); |
| 30865 | Text.Args.push_back(printArg<uint32_t>(PC)); |
| 30866 | break; |
| 30867 | case OP_IncBitfieldIntAP: |
| 30868 | Text.Op = PrintName("IncBitfieldIntAP" ); |
| 30869 | Text.Args.push_back(printArg<bool>(PC)); |
| 30870 | Text.Args.push_back(printArg<uint32_t>(PC)); |
| 30871 | break; |
| 30872 | case OP_IncBitfieldIntAPS: |
| 30873 | Text.Op = PrintName("IncBitfieldIntAPS" ); |
| 30874 | Text.Args.push_back(printArg<bool>(PC)); |
| 30875 | Text.Args.push_back(printArg<uint32_t>(PC)); |
| 30876 | break; |
| 30877 | case OP_IncBitfieldBool: |
| 30878 | Text.Op = PrintName("IncBitfieldBool" ); |
| 30879 | Text.Args.push_back(printArg<bool>(PC)); |
| 30880 | Text.Args.push_back(printArg<uint32_t>(PC)); |
| 30881 | break; |
| 30882 | case OP_IncBitfieldFixedPoint: |
| 30883 | Text.Op = PrintName("IncBitfieldFixedPoint" ); |
| 30884 | Text.Args.push_back(printArg<bool>(PC)); |
| 30885 | Text.Args.push_back(printArg<uint32_t>(PC)); |
| 30886 | break; |
| 30887 | #endif |
| 30888 | #if defined(GET_EVAL_PROTO) || defined(GET_LINK_PROTO) |
| 30889 | bool emitIncBitfieldSint8( bool , uint32_t , SourceInfo); |
| 30890 | bool emitIncBitfieldUint8( bool , uint32_t , SourceInfo); |
| 30891 | bool emitIncBitfieldSint16( bool , uint32_t , SourceInfo); |
| 30892 | bool emitIncBitfieldUint16( bool , uint32_t , SourceInfo); |
| 30893 | bool emitIncBitfieldSint32( bool , uint32_t , SourceInfo); |
| 30894 | bool emitIncBitfieldUint32( bool , uint32_t , SourceInfo); |
| 30895 | bool emitIncBitfieldSint64( bool , uint32_t , SourceInfo); |
| 30896 | bool emitIncBitfieldUint64( bool , uint32_t , SourceInfo); |
| 30897 | bool emitIncBitfieldIntAP( bool , uint32_t , SourceInfo); |
| 30898 | bool emitIncBitfieldIntAPS( bool , uint32_t , SourceInfo); |
| 30899 | bool emitIncBitfieldBool( bool , uint32_t , SourceInfo); |
| 30900 | bool emitIncBitfieldFixedPoint( bool , uint32_t , SourceInfo); |
| 30901 | #endif |
| 30902 | #if defined(GET_EVAL_PROTO) || defined(GET_LINK_PROTO) |
| 30903 | [[nodiscard]] bool emitIncBitfield(PrimType, bool, uint32_t, SourceInfo I); |
| 30904 | #endif |
| 30905 | #if defined(GET_EVAL_IMPL) || defined(GET_LINK_IMPL) |
| 30906 | bool |
| 30907 | #if defined(GET_EVAL_IMPL) |
| 30908 | EvalEmitter |
| 30909 | #else |
| 30910 | ByteCodeEmitter |
| 30911 | #endif |
| 30912 | ::emitIncBitfield(PrimType T0, bool A0, uint32_t A1, SourceInfo I) { |
| 30913 | switch (T0) { |
| 30914 | case PT_Sint8: |
| 30915 | return emitIncBitfieldSint8(A0, A1, I); |
| 30916 | case PT_Uint8: |
| 30917 | return emitIncBitfieldUint8(A0, A1, I); |
| 30918 | case PT_Sint16: |
| 30919 | return emitIncBitfieldSint16(A0, A1, I); |
| 30920 | case PT_Uint16: |
| 30921 | return emitIncBitfieldUint16(A0, A1, I); |
| 30922 | case PT_Sint32: |
| 30923 | return emitIncBitfieldSint32(A0, A1, I); |
| 30924 | case PT_Uint32: |
| 30925 | return emitIncBitfieldUint32(A0, A1, I); |
| 30926 | case PT_Sint64: |
| 30927 | return emitIncBitfieldSint64(A0, A1, I); |
| 30928 | case PT_Uint64: |
| 30929 | return emitIncBitfieldUint64(A0, A1, I); |
| 30930 | case PT_IntAP: |
| 30931 | return emitIncBitfieldIntAP(A0, A1, I); |
| 30932 | case PT_IntAPS: |
| 30933 | return emitIncBitfieldIntAPS(A0, A1, I); |
| 30934 | case PT_Bool: |
| 30935 | return emitIncBitfieldBool(A0, A1, I); |
| 30936 | case PT_FixedPoint: |
| 30937 | return emitIncBitfieldFixedPoint(A0, A1, I); |
| 30938 | default: llvm_unreachable("invalid type: emitIncBitfield" ); |
| 30939 | } |
| 30940 | llvm_unreachable("invalid enum value" ); |
| 30941 | } |
| 30942 | #endif |
| 30943 | #ifdef GET_LINK_IMPL |
| 30944 | bool ByteCodeEmitter::emitIncBitfieldSint8( bool A0, uint32_t A1, SourceInfo L) { |
| 30945 | return emitOp<bool, uint32_t>(OP_IncBitfieldSint8, A0, A1, L); |
| 30946 | } |
| 30947 | bool ByteCodeEmitter::emitIncBitfieldUint8( bool A0, uint32_t A1, SourceInfo L) { |
| 30948 | return emitOp<bool, uint32_t>(OP_IncBitfieldUint8, A0, A1, L); |
| 30949 | } |
| 30950 | bool ByteCodeEmitter::emitIncBitfieldSint16( bool A0, uint32_t A1, SourceInfo L) { |
| 30951 | return emitOp<bool, uint32_t>(OP_IncBitfieldSint16, A0, A1, L); |
| 30952 | } |
| 30953 | bool ByteCodeEmitter::emitIncBitfieldUint16( bool A0, uint32_t A1, SourceInfo L) { |
| 30954 | return emitOp<bool, uint32_t>(OP_IncBitfieldUint16, A0, A1, L); |
| 30955 | } |
| 30956 | bool ByteCodeEmitter::emitIncBitfieldSint32( bool A0, uint32_t A1, SourceInfo L) { |
| 30957 | return emitOp<bool, uint32_t>(OP_IncBitfieldSint32, A0, A1, L); |
| 30958 | } |
| 30959 | bool ByteCodeEmitter::emitIncBitfieldUint32( bool A0, uint32_t A1, SourceInfo L) { |
| 30960 | return emitOp<bool, uint32_t>(OP_IncBitfieldUint32, A0, A1, L); |
| 30961 | } |
| 30962 | bool ByteCodeEmitter::emitIncBitfieldSint64( bool A0, uint32_t A1, SourceInfo L) { |
| 30963 | return emitOp<bool, uint32_t>(OP_IncBitfieldSint64, A0, A1, L); |
| 30964 | } |
| 30965 | bool ByteCodeEmitter::emitIncBitfieldUint64( bool A0, uint32_t A1, SourceInfo L) { |
| 30966 | return emitOp<bool, uint32_t>(OP_IncBitfieldUint64, A0, A1, L); |
| 30967 | } |
| 30968 | bool ByteCodeEmitter::emitIncBitfieldIntAP( bool A0, uint32_t A1, SourceInfo L) { |
| 30969 | return emitOp<bool, uint32_t>(OP_IncBitfieldIntAP, A0, A1, L); |
| 30970 | } |
| 30971 | bool ByteCodeEmitter::emitIncBitfieldIntAPS( bool A0, uint32_t A1, SourceInfo L) { |
| 30972 | return emitOp<bool, uint32_t>(OP_IncBitfieldIntAPS, A0, A1, L); |
| 30973 | } |
| 30974 | bool ByteCodeEmitter::emitIncBitfieldBool( bool A0, uint32_t A1, SourceInfo L) { |
| 30975 | return emitOp<bool, uint32_t>(OP_IncBitfieldBool, A0, A1, L); |
| 30976 | } |
| 30977 | bool ByteCodeEmitter::emitIncBitfieldFixedPoint( bool A0, uint32_t A1, SourceInfo L) { |
| 30978 | return emitOp<bool, uint32_t>(OP_IncBitfieldFixedPoint, A0, A1, L); |
| 30979 | } |
| 30980 | #endif |
| 30981 | #ifdef GET_EVAL_IMPL |
| 30982 | bool EvalEmitter::emitIncBitfieldSint8( bool A0, uint32_t A1, SourceInfo L) { |
| 30983 | if (!isActive()) return true; |
| 30984 | CurrentSource = L; |
| 30985 | return IncBitfield<PT_Sint8>(S, CodePtr(), A0, A1); |
| 30986 | } |
| 30987 | bool EvalEmitter::emitIncBitfieldUint8( bool A0, uint32_t A1, SourceInfo L) { |
| 30988 | if (!isActive()) return true; |
| 30989 | CurrentSource = L; |
| 30990 | return IncBitfield<PT_Uint8>(S, CodePtr(), A0, A1); |
| 30991 | } |
| 30992 | bool EvalEmitter::emitIncBitfieldSint16( bool A0, uint32_t A1, SourceInfo L) { |
| 30993 | if (!isActive()) return true; |
| 30994 | CurrentSource = L; |
| 30995 | return IncBitfield<PT_Sint16>(S, CodePtr(), A0, A1); |
| 30996 | } |
| 30997 | bool EvalEmitter::emitIncBitfieldUint16( bool A0, uint32_t A1, SourceInfo L) { |
| 30998 | if (!isActive()) return true; |
| 30999 | CurrentSource = L; |
| 31000 | return IncBitfield<PT_Uint16>(S, CodePtr(), A0, A1); |
| 31001 | } |
| 31002 | bool EvalEmitter::emitIncBitfieldSint32( bool A0, uint32_t A1, SourceInfo L) { |
| 31003 | if (!isActive()) return true; |
| 31004 | CurrentSource = L; |
| 31005 | return IncBitfield<PT_Sint32>(S, CodePtr(), A0, A1); |
| 31006 | } |
| 31007 | bool EvalEmitter::emitIncBitfieldUint32( bool A0, uint32_t A1, SourceInfo L) { |
| 31008 | if (!isActive()) return true; |
| 31009 | CurrentSource = L; |
| 31010 | return IncBitfield<PT_Uint32>(S, CodePtr(), A0, A1); |
| 31011 | } |
| 31012 | bool EvalEmitter::emitIncBitfieldSint64( bool A0, uint32_t A1, SourceInfo L) { |
| 31013 | if (!isActive()) return true; |
| 31014 | CurrentSource = L; |
| 31015 | return IncBitfield<PT_Sint64>(S, CodePtr(), A0, A1); |
| 31016 | } |
| 31017 | bool EvalEmitter::emitIncBitfieldUint64( bool A0, uint32_t A1, SourceInfo L) { |
| 31018 | if (!isActive()) return true; |
| 31019 | CurrentSource = L; |
| 31020 | return IncBitfield<PT_Uint64>(S, CodePtr(), A0, A1); |
| 31021 | } |
| 31022 | bool EvalEmitter::emitIncBitfieldIntAP( bool A0, uint32_t A1, SourceInfo L) { |
| 31023 | if (!isActive()) return true; |
| 31024 | CurrentSource = L; |
| 31025 | return IncBitfield<PT_IntAP>(S, CodePtr(), A0, A1); |
| 31026 | } |
| 31027 | bool EvalEmitter::emitIncBitfieldIntAPS( bool A0, uint32_t A1, SourceInfo L) { |
| 31028 | if (!isActive()) return true; |
| 31029 | CurrentSource = L; |
| 31030 | return IncBitfield<PT_IntAPS>(S, CodePtr(), A0, A1); |
| 31031 | } |
| 31032 | bool EvalEmitter::emitIncBitfieldBool( bool A0, uint32_t A1, SourceInfo L) { |
| 31033 | if (!isActive()) return true; |
| 31034 | CurrentSource = L; |
| 31035 | return IncBitfield<PT_Bool>(S, CodePtr(), A0, A1); |
| 31036 | } |
| 31037 | bool EvalEmitter::emitIncBitfieldFixedPoint( bool A0, uint32_t A1, SourceInfo L) { |
| 31038 | if (!isActive()) return true; |
| 31039 | CurrentSource = L; |
| 31040 | return IncBitfield<PT_FixedPoint>(S, CodePtr(), A0, A1); |
| 31041 | } |
| 31042 | #endif |
| 31043 | #ifdef GET_OPCODE_NAMES |
| 31044 | OP_IncPopSint8, |
| 31045 | OP_IncPopUint8, |
| 31046 | OP_IncPopSint16, |
| 31047 | OP_IncPopUint16, |
| 31048 | OP_IncPopSint32, |
| 31049 | OP_IncPopUint32, |
| 31050 | OP_IncPopSint64, |
| 31051 | OP_IncPopUint64, |
| 31052 | OP_IncPopIntAP, |
| 31053 | OP_IncPopIntAPS, |
| 31054 | OP_IncPopBool, |
| 31055 | OP_IncPopFixedPoint, |
| 31056 | #endif |
| 31057 | #ifdef GET_INTERPFN_LIST |
| 31058 | &Interp_IncPopSint8, |
| 31059 | &Interp_IncPopUint8, |
| 31060 | &Interp_IncPopSint16, |
| 31061 | &Interp_IncPopUint16, |
| 31062 | &Interp_IncPopSint32, |
| 31063 | &Interp_IncPopUint32, |
| 31064 | &Interp_IncPopSint64, |
| 31065 | &Interp_IncPopUint64, |
| 31066 | &Interp_IncPopIntAP, |
| 31067 | &Interp_IncPopIntAPS, |
| 31068 | &Interp_IncPopBool, |
| 31069 | &Interp_IncPopFixedPoint, |
| 31070 | #endif |
| 31071 | #ifdef GET_INTERPFN_DISPATCHERS |
| 31072 | PRESERVE_NONE |
| 31073 | static bool Interp_IncPopSint8(InterpState &S) { |
| 31074 | { |
| 31075 | CodePtr OpPC = S.PC; |
| 31076 | const auto V0 = ReadArg<bool>(S, S.PC); |
| 31077 | if (!IncPop<PT_Sint8>(S, OpPC, V0)) return false; |
| 31078 | } |
| 31079 | #if USE_TAILCALLS |
| 31080 | MUSTTAIL return InterpNext(S); |
| 31081 | #else |
| 31082 | return true; |
| 31083 | #endif |
| 31084 | } |
| 31085 | PRESERVE_NONE |
| 31086 | static bool Interp_IncPopUint8(InterpState &S) { |
| 31087 | { |
| 31088 | CodePtr OpPC = S.PC; |
| 31089 | const auto V0 = ReadArg<bool>(S, S.PC); |
| 31090 | if (!IncPop<PT_Uint8>(S, OpPC, V0)) return false; |
| 31091 | } |
| 31092 | #if USE_TAILCALLS |
| 31093 | MUSTTAIL return InterpNext(S); |
| 31094 | #else |
| 31095 | return true; |
| 31096 | #endif |
| 31097 | } |
| 31098 | PRESERVE_NONE |
| 31099 | static bool Interp_IncPopSint16(InterpState &S) { |
| 31100 | { |
| 31101 | CodePtr OpPC = S.PC; |
| 31102 | const auto V0 = ReadArg<bool>(S, S.PC); |
| 31103 | if (!IncPop<PT_Sint16>(S, OpPC, V0)) return false; |
| 31104 | } |
| 31105 | #if USE_TAILCALLS |
| 31106 | MUSTTAIL return InterpNext(S); |
| 31107 | #else |
| 31108 | return true; |
| 31109 | #endif |
| 31110 | } |
| 31111 | PRESERVE_NONE |
| 31112 | static bool Interp_IncPopUint16(InterpState &S) { |
| 31113 | { |
| 31114 | CodePtr OpPC = S.PC; |
| 31115 | const auto V0 = ReadArg<bool>(S, S.PC); |
| 31116 | if (!IncPop<PT_Uint16>(S, OpPC, V0)) return false; |
| 31117 | } |
| 31118 | #if USE_TAILCALLS |
| 31119 | MUSTTAIL return InterpNext(S); |
| 31120 | #else |
| 31121 | return true; |
| 31122 | #endif |
| 31123 | } |
| 31124 | PRESERVE_NONE |
| 31125 | static bool Interp_IncPopSint32(InterpState &S) { |
| 31126 | { |
| 31127 | CodePtr OpPC = S.PC; |
| 31128 | const auto V0 = ReadArg<bool>(S, S.PC); |
| 31129 | if (!IncPop<PT_Sint32>(S, OpPC, V0)) return false; |
| 31130 | } |
| 31131 | #if USE_TAILCALLS |
| 31132 | MUSTTAIL return InterpNext(S); |
| 31133 | #else |
| 31134 | return true; |
| 31135 | #endif |
| 31136 | } |
| 31137 | PRESERVE_NONE |
| 31138 | static bool Interp_IncPopUint32(InterpState &S) { |
| 31139 | { |
| 31140 | CodePtr OpPC = S.PC; |
| 31141 | const auto V0 = ReadArg<bool>(S, S.PC); |
| 31142 | if (!IncPop<PT_Uint32>(S, OpPC, V0)) return false; |
| 31143 | } |
| 31144 | #if USE_TAILCALLS |
| 31145 | MUSTTAIL return InterpNext(S); |
| 31146 | #else |
| 31147 | return true; |
| 31148 | #endif |
| 31149 | } |
| 31150 | PRESERVE_NONE |
| 31151 | static bool Interp_IncPopSint64(InterpState &S) { |
| 31152 | { |
| 31153 | CodePtr OpPC = S.PC; |
| 31154 | const auto V0 = ReadArg<bool>(S, S.PC); |
| 31155 | if (!IncPop<PT_Sint64>(S, OpPC, V0)) return false; |
| 31156 | } |
| 31157 | #if USE_TAILCALLS |
| 31158 | MUSTTAIL return InterpNext(S); |
| 31159 | #else |
| 31160 | return true; |
| 31161 | #endif |
| 31162 | } |
| 31163 | PRESERVE_NONE |
| 31164 | static bool Interp_IncPopUint64(InterpState &S) { |
| 31165 | { |
| 31166 | CodePtr OpPC = S.PC; |
| 31167 | const auto V0 = ReadArg<bool>(S, S.PC); |
| 31168 | if (!IncPop<PT_Uint64>(S, OpPC, V0)) return false; |
| 31169 | } |
| 31170 | #if USE_TAILCALLS |
| 31171 | MUSTTAIL return InterpNext(S); |
| 31172 | #else |
| 31173 | return true; |
| 31174 | #endif |
| 31175 | } |
| 31176 | PRESERVE_NONE |
| 31177 | static bool Interp_IncPopIntAP(InterpState &S) { |
| 31178 | { |
| 31179 | CodePtr OpPC = S.PC; |
| 31180 | const auto V0 = ReadArg<bool>(S, S.PC); |
| 31181 | if (!IncPop<PT_IntAP>(S, OpPC, V0)) return false; |
| 31182 | } |
| 31183 | #if USE_TAILCALLS |
| 31184 | MUSTTAIL return InterpNext(S); |
| 31185 | #else |
| 31186 | return true; |
| 31187 | #endif |
| 31188 | } |
| 31189 | PRESERVE_NONE |
| 31190 | static bool Interp_IncPopIntAPS(InterpState &S) { |
| 31191 | { |
| 31192 | CodePtr OpPC = S.PC; |
| 31193 | const auto V0 = ReadArg<bool>(S, S.PC); |
| 31194 | if (!IncPop<PT_IntAPS>(S, OpPC, V0)) return false; |
| 31195 | } |
| 31196 | #if USE_TAILCALLS |
| 31197 | MUSTTAIL return InterpNext(S); |
| 31198 | #else |
| 31199 | return true; |
| 31200 | #endif |
| 31201 | } |
| 31202 | PRESERVE_NONE |
| 31203 | static bool Interp_IncPopBool(InterpState &S) { |
| 31204 | { |
| 31205 | CodePtr OpPC = S.PC; |
| 31206 | const auto V0 = ReadArg<bool>(S, S.PC); |
| 31207 | if (!IncPop<PT_Bool>(S, OpPC, V0)) return false; |
| 31208 | } |
| 31209 | #if USE_TAILCALLS |
| 31210 | MUSTTAIL return InterpNext(S); |
| 31211 | #else |
| 31212 | return true; |
| 31213 | #endif |
| 31214 | } |
| 31215 | PRESERVE_NONE |
| 31216 | static bool Interp_IncPopFixedPoint(InterpState &S) { |
| 31217 | { |
| 31218 | CodePtr OpPC = S.PC; |
| 31219 | const auto V0 = ReadArg<bool>(S, S.PC); |
| 31220 | if (!IncPop<PT_FixedPoint>(S, OpPC, V0)) return false; |
| 31221 | } |
| 31222 | #if USE_TAILCALLS |
| 31223 | MUSTTAIL return InterpNext(S); |
| 31224 | #else |
| 31225 | return true; |
| 31226 | #endif |
| 31227 | } |
| 31228 | #endif |
| 31229 | #ifdef GET_DISASM |
| 31230 | case OP_IncPopSint8: |
| 31231 | Text.Op = PrintName("IncPopSint8" ); |
| 31232 | Text.Args.push_back(printArg<bool>(PC)); |
| 31233 | break; |
| 31234 | case OP_IncPopUint8: |
| 31235 | Text.Op = PrintName("IncPopUint8" ); |
| 31236 | Text.Args.push_back(printArg<bool>(PC)); |
| 31237 | break; |
| 31238 | case OP_IncPopSint16: |
| 31239 | Text.Op = PrintName("IncPopSint16" ); |
| 31240 | Text.Args.push_back(printArg<bool>(PC)); |
| 31241 | break; |
| 31242 | case OP_IncPopUint16: |
| 31243 | Text.Op = PrintName("IncPopUint16" ); |
| 31244 | Text.Args.push_back(printArg<bool>(PC)); |
| 31245 | break; |
| 31246 | case OP_IncPopSint32: |
| 31247 | Text.Op = PrintName("IncPopSint32" ); |
| 31248 | Text.Args.push_back(printArg<bool>(PC)); |
| 31249 | break; |
| 31250 | case OP_IncPopUint32: |
| 31251 | Text.Op = PrintName("IncPopUint32" ); |
| 31252 | Text.Args.push_back(printArg<bool>(PC)); |
| 31253 | break; |
| 31254 | case OP_IncPopSint64: |
| 31255 | Text.Op = PrintName("IncPopSint64" ); |
| 31256 | Text.Args.push_back(printArg<bool>(PC)); |
| 31257 | break; |
| 31258 | case OP_IncPopUint64: |
| 31259 | Text.Op = PrintName("IncPopUint64" ); |
| 31260 | Text.Args.push_back(printArg<bool>(PC)); |
| 31261 | break; |
| 31262 | case OP_IncPopIntAP: |
| 31263 | Text.Op = PrintName("IncPopIntAP" ); |
| 31264 | Text.Args.push_back(printArg<bool>(PC)); |
| 31265 | break; |
| 31266 | case OP_IncPopIntAPS: |
| 31267 | Text.Op = PrintName("IncPopIntAPS" ); |
| 31268 | Text.Args.push_back(printArg<bool>(PC)); |
| 31269 | break; |
| 31270 | case OP_IncPopBool: |
| 31271 | Text.Op = PrintName("IncPopBool" ); |
| 31272 | Text.Args.push_back(printArg<bool>(PC)); |
| 31273 | break; |
| 31274 | case OP_IncPopFixedPoint: |
| 31275 | Text.Op = PrintName("IncPopFixedPoint" ); |
| 31276 | Text.Args.push_back(printArg<bool>(PC)); |
| 31277 | break; |
| 31278 | #endif |
| 31279 | #if defined(GET_EVAL_PROTO) || defined(GET_LINK_PROTO) |
| 31280 | bool emitIncPopSint8( bool , SourceInfo); |
| 31281 | bool emitIncPopUint8( bool , SourceInfo); |
| 31282 | bool emitIncPopSint16( bool , SourceInfo); |
| 31283 | bool emitIncPopUint16( bool , SourceInfo); |
| 31284 | bool emitIncPopSint32( bool , SourceInfo); |
| 31285 | bool emitIncPopUint32( bool , SourceInfo); |
| 31286 | bool emitIncPopSint64( bool , SourceInfo); |
| 31287 | bool emitIncPopUint64( bool , SourceInfo); |
| 31288 | bool emitIncPopIntAP( bool , SourceInfo); |
| 31289 | bool emitIncPopIntAPS( bool , SourceInfo); |
| 31290 | bool emitIncPopBool( bool , SourceInfo); |
| 31291 | bool emitIncPopFixedPoint( bool , SourceInfo); |
| 31292 | #endif |
| 31293 | #if defined(GET_EVAL_PROTO) || defined(GET_LINK_PROTO) |
| 31294 | [[nodiscard]] bool emitIncPop(PrimType, bool, SourceInfo I); |
| 31295 | #endif |
| 31296 | #if defined(GET_EVAL_IMPL) || defined(GET_LINK_IMPL) |
| 31297 | bool |
| 31298 | #if defined(GET_EVAL_IMPL) |
| 31299 | EvalEmitter |
| 31300 | #else |
| 31301 | ByteCodeEmitter |
| 31302 | #endif |
| 31303 | ::emitIncPop(PrimType T0, bool A0, SourceInfo I) { |
| 31304 | switch (T0) { |
| 31305 | case PT_Sint8: |
| 31306 | return emitIncPopSint8(A0, I); |
| 31307 | case PT_Uint8: |
| 31308 | return emitIncPopUint8(A0, I); |
| 31309 | case PT_Sint16: |
| 31310 | return emitIncPopSint16(A0, I); |
| 31311 | case PT_Uint16: |
| 31312 | return emitIncPopUint16(A0, I); |
| 31313 | case PT_Sint32: |
| 31314 | return emitIncPopSint32(A0, I); |
| 31315 | case PT_Uint32: |
| 31316 | return emitIncPopUint32(A0, I); |
| 31317 | case PT_Sint64: |
| 31318 | return emitIncPopSint64(A0, I); |
| 31319 | case PT_Uint64: |
| 31320 | return emitIncPopUint64(A0, I); |
| 31321 | case PT_IntAP: |
| 31322 | return emitIncPopIntAP(A0, I); |
| 31323 | case PT_IntAPS: |
| 31324 | return emitIncPopIntAPS(A0, I); |
| 31325 | case PT_Bool: |
| 31326 | return emitIncPopBool(A0, I); |
| 31327 | case PT_FixedPoint: |
| 31328 | return emitIncPopFixedPoint(A0, I); |
| 31329 | default: llvm_unreachable("invalid type: emitIncPop" ); |
| 31330 | } |
| 31331 | llvm_unreachable("invalid enum value" ); |
| 31332 | } |
| 31333 | #endif |
| 31334 | #ifdef GET_LINK_IMPL |
| 31335 | bool ByteCodeEmitter::emitIncPopSint8( bool A0, SourceInfo L) { |
| 31336 | return emitOp<bool>(OP_IncPopSint8, A0, L); |
| 31337 | } |
| 31338 | bool ByteCodeEmitter::emitIncPopUint8( bool A0, SourceInfo L) { |
| 31339 | return emitOp<bool>(OP_IncPopUint8, A0, L); |
| 31340 | } |
| 31341 | bool ByteCodeEmitter::emitIncPopSint16( bool A0, SourceInfo L) { |
| 31342 | return emitOp<bool>(OP_IncPopSint16, A0, L); |
| 31343 | } |
| 31344 | bool ByteCodeEmitter::emitIncPopUint16( bool A0, SourceInfo L) { |
| 31345 | return emitOp<bool>(OP_IncPopUint16, A0, L); |
| 31346 | } |
| 31347 | bool ByteCodeEmitter::emitIncPopSint32( bool A0, SourceInfo L) { |
| 31348 | return emitOp<bool>(OP_IncPopSint32, A0, L); |
| 31349 | } |
| 31350 | bool ByteCodeEmitter::emitIncPopUint32( bool A0, SourceInfo L) { |
| 31351 | return emitOp<bool>(OP_IncPopUint32, A0, L); |
| 31352 | } |
| 31353 | bool ByteCodeEmitter::emitIncPopSint64( bool A0, SourceInfo L) { |
| 31354 | return emitOp<bool>(OP_IncPopSint64, A0, L); |
| 31355 | } |
| 31356 | bool ByteCodeEmitter::emitIncPopUint64( bool A0, SourceInfo L) { |
| 31357 | return emitOp<bool>(OP_IncPopUint64, A0, L); |
| 31358 | } |
| 31359 | bool ByteCodeEmitter::emitIncPopIntAP( bool A0, SourceInfo L) { |
| 31360 | return emitOp<bool>(OP_IncPopIntAP, A0, L); |
| 31361 | } |
| 31362 | bool ByteCodeEmitter::emitIncPopIntAPS( bool A0, SourceInfo L) { |
| 31363 | return emitOp<bool>(OP_IncPopIntAPS, A0, L); |
| 31364 | } |
| 31365 | bool ByteCodeEmitter::emitIncPopBool( bool A0, SourceInfo L) { |
| 31366 | return emitOp<bool>(OP_IncPopBool, A0, L); |
| 31367 | } |
| 31368 | bool ByteCodeEmitter::emitIncPopFixedPoint( bool A0, SourceInfo L) { |
| 31369 | return emitOp<bool>(OP_IncPopFixedPoint, A0, L); |
| 31370 | } |
| 31371 | #endif |
| 31372 | #ifdef GET_EVAL_IMPL |
| 31373 | bool EvalEmitter::emitIncPopSint8( bool A0, SourceInfo L) { |
| 31374 | if (!isActive()) return true; |
| 31375 | CurrentSource = L; |
| 31376 | return IncPop<PT_Sint8>(S, CodePtr(), A0); |
| 31377 | } |
| 31378 | bool EvalEmitter::emitIncPopUint8( bool A0, SourceInfo L) { |
| 31379 | if (!isActive()) return true; |
| 31380 | CurrentSource = L; |
| 31381 | return IncPop<PT_Uint8>(S, CodePtr(), A0); |
| 31382 | } |
| 31383 | bool EvalEmitter::emitIncPopSint16( bool A0, SourceInfo L) { |
| 31384 | if (!isActive()) return true; |
| 31385 | CurrentSource = L; |
| 31386 | return IncPop<PT_Sint16>(S, CodePtr(), A0); |
| 31387 | } |
| 31388 | bool EvalEmitter::emitIncPopUint16( bool A0, SourceInfo L) { |
| 31389 | if (!isActive()) return true; |
| 31390 | CurrentSource = L; |
| 31391 | return IncPop<PT_Uint16>(S, CodePtr(), A0); |
| 31392 | } |
| 31393 | bool EvalEmitter::emitIncPopSint32( bool A0, SourceInfo L) { |
| 31394 | if (!isActive()) return true; |
| 31395 | CurrentSource = L; |
| 31396 | return IncPop<PT_Sint32>(S, CodePtr(), A0); |
| 31397 | } |
| 31398 | bool EvalEmitter::emitIncPopUint32( bool A0, SourceInfo L) { |
| 31399 | if (!isActive()) return true; |
| 31400 | CurrentSource = L; |
| 31401 | return IncPop<PT_Uint32>(S, CodePtr(), A0); |
| 31402 | } |
| 31403 | bool EvalEmitter::emitIncPopSint64( bool A0, SourceInfo L) { |
| 31404 | if (!isActive()) return true; |
| 31405 | CurrentSource = L; |
| 31406 | return IncPop<PT_Sint64>(S, CodePtr(), A0); |
| 31407 | } |
| 31408 | bool EvalEmitter::emitIncPopUint64( bool A0, SourceInfo L) { |
| 31409 | if (!isActive()) return true; |
| 31410 | CurrentSource = L; |
| 31411 | return IncPop<PT_Uint64>(S, CodePtr(), A0); |
| 31412 | } |
| 31413 | bool EvalEmitter::emitIncPopIntAP( bool A0, SourceInfo L) { |
| 31414 | if (!isActive()) return true; |
| 31415 | CurrentSource = L; |
| 31416 | return IncPop<PT_IntAP>(S, CodePtr(), A0); |
| 31417 | } |
| 31418 | bool EvalEmitter::emitIncPopIntAPS( bool A0, SourceInfo L) { |
| 31419 | if (!isActive()) return true; |
| 31420 | CurrentSource = L; |
| 31421 | return IncPop<PT_IntAPS>(S, CodePtr(), A0); |
| 31422 | } |
| 31423 | bool EvalEmitter::emitIncPopBool( bool A0, SourceInfo L) { |
| 31424 | if (!isActive()) return true; |
| 31425 | CurrentSource = L; |
| 31426 | return IncPop<PT_Bool>(S, CodePtr(), A0); |
| 31427 | } |
| 31428 | bool EvalEmitter::emitIncPopFixedPoint( bool A0, SourceInfo L) { |
| 31429 | if (!isActive()) return true; |
| 31430 | CurrentSource = L; |
| 31431 | return IncPop<PT_FixedPoint>(S, CodePtr(), A0); |
| 31432 | } |
| 31433 | #endif |
| 31434 | #ifdef GET_OPCODE_NAMES |
| 31435 | OP_IncPopBitfieldSint8, |
| 31436 | OP_IncPopBitfieldUint8, |
| 31437 | OP_IncPopBitfieldSint16, |
| 31438 | OP_IncPopBitfieldUint16, |
| 31439 | OP_IncPopBitfieldSint32, |
| 31440 | OP_IncPopBitfieldUint32, |
| 31441 | OP_IncPopBitfieldSint64, |
| 31442 | OP_IncPopBitfieldUint64, |
| 31443 | OP_IncPopBitfieldIntAP, |
| 31444 | OP_IncPopBitfieldIntAPS, |
| 31445 | OP_IncPopBitfieldBool, |
| 31446 | OP_IncPopBitfieldFixedPoint, |
| 31447 | #endif |
| 31448 | #ifdef GET_INTERPFN_LIST |
| 31449 | &Interp_IncPopBitfieldSint8, |
| 31450 | &Interp_IncPopBitfieldUint8, |
| 31451 | &Interp_IncPopBitfieldSint16, |
| 31452 | &Interp_IncPopBitfieldUint16, |
| 31453 | &Interp_IncPopBitfieldSint32, |
| 31454 | &Interp_IncPopBitfieldUint32, |
| 31455 | &Interp_IncPopBitfieldSint64, |
| 31456 | &Interp_IncPopBitfieldUint64, |
| 31457 | &Interp_IncPopBitfieldIntAP, |
| 31458 | &Interp_IncPopBitfieldIntAPS, |
| 31459 | &Interp_IncPopBitfieldBool, |
| 31460 | &Interp_IncPopBitfieldFixedPoint, |
| 31461 | #endif |
| 31462 | #ifdef GET_INTERPFN_DISPATCHERS |
| 31463 | PRESERVE_NONE |
| 31464 | static bool Interp_IncPopBitfieldSint8(InterpState &S) { |
| 31465 | { |
| 31466 | CodePtr OpPC = S.PC; |
| 31467 | const auto V0 = ReadArg<bool>(S, S.PC); |
| 31468 | const auto V1 = ReadArg<uint32_t>(S, S.PC); |
| 31469 | if (!IncPopBitfield<PT_Sint8>(S, OpPC, V0, V1)) return false; |
| 31470 | } |
| 31471 | #if USE_TAILCALLS |
| 31472 | MUSTTAIL return InterpNext(S); |
| 31473 | #else |
| 31474 | return true; |
| 31475 | #endif |
| 31476 | } |
| 31477 | PRESERVE_NONE |
| 31478 | static bool Interp_IncPopBitfieldUint8(InterpState &S) { |
| 31479 | { |
| 31480 | CodePtr OpPC = S.PC; |
| 31481 | const auto V0 = ReadArg<bool>(S, S.PC); |
| 31482 | const auto V1 = ReadArg<uint32_t>(S, S.PC); |
| 31483 | if (!IncPopBitfield<PT_Uint8>(S, OpPC, V0, V1)) return false; |
| 31484 | } |
| 31485 | #if USE_TAILCALLS |
| 31486 | MUSTTAIL return InterpNext(S); |
| 31487 | #else |
| 31488 | return true; |
| 31489 | #endif |
| 31490 | } |
| 31491 | PRESERVE_NONE |
| 31492 | static bool Interp_IncPopBitfieldSint16(InterpState &S) { |
| 31493 | { |
| 31494 | CodePtr OpPC = S.PC; |
| 31495 | const auto V0 = ReadArg<bool>(S, S.PC); |
| 31496 | const auto V1 = ReadArg<uint32_t>(S, S.PC); |
| 31497 | if (!IncPopBitfield<PT_Sint16>(S, OpPC, V0, V1)) return false; |
| 31498 | } |
| 31499 | #if USE_TAILCALLS |
| 31500 | MUSTTAIL return InterpNext(S); |
| 31501 | #else |
| 31502 | return true; |
| 31503 | #endif |
| 31504 | } |
| 31505 | PRESERVE_NONE |
| 31506 | static bool Interp_IncPopBitfieldUint16(InterpState &S) { |
| 31507 | { |
| 31508 | CodePtr OpPC = S.PC; |
| 31509 | const auto V0 = ReadArg<bool>(S, S.PC); |
| 31510 | const auto V1 = ReadArg<uint32_t>(S, S.PC); |
| 31511 | if (!IncPopBitfield<PT_Uint16>(S, OpPC, V0, V1)) return false; |
| 31512 | } |
| 31513 | #if USE_TAILCALLS |
| 31514 | MUSTTAIL return InterpNext(S); |
| 31515 | #else |
| 31516 | return true; |
| 31517 | #endif |
| 31518 | } |
| 31519 | PRESERVE_NONE |
| 31520 | static bool Interp_IncPopBitfieldSint32(InterpState &S) { |
| 31521 | { |
| 31522 | CodePtr OpPC = S.PC; |
| 31523 | const auto V0 = ReadArg<bool>(S, S.PC); |
| 31524 | const auto V1 = ReadArg<uint32_t>(S, S.PC); |
| 31525 | if (!IncPopBitfield<PT_Sint32>(S, OpPC, V0, V1)) return false; |
| 31526 | } |
| 31527 | #if USE_TAILCALLS |
| 31528 | MUSTTAIL return InterpNext(S); |
| 31529 | #else |
| 31530 | return true; |
| 31531 | #endif |
| 31532 | } |
| 31533 | PRESERVE_NONE |
| 31534 | static bool Interp_IncPopBitfieldUint32(InterpState &S) { |
| 31535 | { |
| 31536 | CodePtr OpPC = S.PC; |
| 31537 | const auto V0 = ReadArg<bool>(S, S.PC); |
| 31538 | const auto V1 = ReadArg<uint32_t>(S, S.PC); |
| 31539 | if (!IncPopBitfield<PT_Uint32>(S, OpPC, V0, V1)) return false; |
| 31540 | } |
| 31541 | #if USE_TAILCALLS |
| 31542 | MUSTTAIL return InterpNext(S); |
| 31543 | #else |
| 31544 | return true; |
| 31545 | #endif |
| 31546 | } |
| 31547 | PRESERVE_NONE |
| 31548 | static bool Interp_IncPopBitfieldSint64(InterpState &S) { |
| 31549 | { |
| 31550 | CodePtr OpPC = S.PC; |
| 31551 | const auto V0 = ReadArg<bool>(S, S.PC); |
| 31552 | const auto V1 = ReadArg<uint32_t>(S, S.PC); |
| 31553 | if (!IncPopBitfield<PT_Sint64>(S, OpPC, V0, V1)) return false; |
| 31554 | } |
| 31555 | #if USE_TAILCALLS |
| 31556 | MUSTTAIL return InterpNext(S); |
| 31557 | #else |
| 31558 | return true; |
| 31559 | #endif |
| 31560 | } |
| 31561 | PRESERVE_NONE |
| 31562 | static bool Interp_IncPopBitfieldUint64(InterpState &S) { |
| 31563 | { |
| 31564 | CodePtr OpPC = S.PC; |
| 31565 | const auto V0 = ReadArg<bool>(S, S.PC); |
| 31566 | const auto V1 = ReadArg<uint32_t>(S, S.PC); |
| 31567 | if (!IncPopBitfield<PT_Uint64>(S, OpPC, V0, V1)) return false; |
| 31568 | } |
| 31569 | #if USE_TAILCALLS |
| 31570 | MUSTTAIL return InterpNext(S); |
| 31571 | #else |
| 31572 | return true; |
| 31573 | #endif |
| 31574 | } |
| 31575 | PRESERVE_NONE |
| 31576 | static bool Interp_IncPopBitfieldIntAP(InterpState &S) { |
| 31577 | { |
| 31578 | CodePtr OpPC = S.PC; |
| 31579 | const auto V0 = ReadArg<bool>(S, S.PC); |
| 31580 | const auto V1 = ReadArg<uint32_t>(S, S.PC); |
| 31581 | if (!IncPopBitfield<PT_IntAP>(S, OpPC, V0, V1)) return false; |
| 31582 | } |
| 31583 | #if USE_TAILCALLS |
| 31584 | MUSTTAIL return InterpNext(S); |
| 31585 | #else |
| 31586 | return true; |
| 31587 | #endif |
| 31588 | } |
| 31589 | PRESERVE_NONE |
| 31590 | static bool Interp_IncPopBitfieldIntAPS(InterpState &S) { |
| 31591 | { |
| 31592 | CodePtr OpPC = S.PC; |
| 31593 | const auto V0 = ReadArg<bool>(S, S.PC); |
| 31594 | const auto V1 = ReadArg<uint32_t>(S, S.PC); |
| 31595 | if (!IncPopBitfield<PT_IntAPS>(S, OpPC, V0, V1)) return false; |
| 31596 | } |
| 31597 | #if USE_TAILCALLS |
| 31598 | MUSTTAIL return InterpNext(S); |
| 31599 | #else |
| 31600 | return true; |
| 31601 | #endif |
| 31602 | } |
| 31603 | PRESERVE_NONE |
| 31604 | static bool Interp_IncPopBitfieldBool(InterpState &S) { |
| 31605 | { |
| 31606 | CodePtr OpPC = S.PC; |
| 31607 | const auto V0 = ReadArg<bool>(S, S.PC); |
| 31608 | const auto V1 = ReadArg<uint32_t>(S, S.PC); |
| 31609 | if (!IncPopBitfield<PT_Bool>(S, OpPC, V0, V1)) return false; |
| 31610 | } |
| 31611 | #if USE_TAILCALLS |
| 31612 | MUSTTAIL return InterpNext(S); |
| 31613 | #else |
| 31614 | return true; |
| 31615 | #endif |
| 31616 | } |
| 31617 | PRESERVE_NONE |
| 31618 | static bool Interp_IncPopBitfieldFixedPoint(InterpState &S) { |
| 31619 | { |
| 31620 | CodePtr OpPC = S.PC; |
| 31621 | const auto V0 = ReadArg<bool>(S, S.PC); |
| 31622 | const auto V1 = ReadArg<uint32_t>(S, S.PC); |
| 31623 | if (!IncPopBitfield<PT_FixedPoint>(S, OpPC, V0, V1)) return false; |
| 31624 | } |
| 31625 | #if USE_TAILCALLS |
| 31626 | MUSTTAIL return InterpNext(S); |
| 31627 | #else |
| 31628 | return true; |
| 31629 | #endif |
| 31630 | } |
| 31631 | #endif |
| 31632 | #ifdef GET_DISASM |
| 31633 | case OP_IncPopBitfieldSint8: |
| 31634 | Text.Op = PrintName("IncPopBitfieldSint8" ); |
| 31635 | Text.Args.push_back(printArg<bool>(PC)); |
| 31636 | Text.Args.push_back(printArg<uint32_t>(PC)); |
| 31637 | break; |
| 31638 | case OP_IncPopBitfieldUint8: |
| 31639 | Text.Op = PrintName("IncPopBitfieldUint8" ); |
| 31640 | Text.Args.push_back(printArg<bool>(PC)); |
| 31641 | Text.Args.push_back(printArg<uint32_t>(PC)); |
| 31642 | break; |
| 31643 | case OP_IncPopBitfieldSint16: |
| 31644 | Text.Op = PrintName("IncPopBitfieldSint16" ); |
| 31645 | Text.Args.push_back(printArg<bool>(PC)); |
| 31646 | Text.Args.push_back(printArg<uint32_t>(PC)); |
| 31647 | break; |
| 31648 | case OP_IncPopBitfieldUint16: |
| 31649 | Text.Op = PrintName("IncPopBitfieldUint16" ); |
| 31650 | Text.Args.push_back(printArg<bool>(PC)); |
| 31651 | Text.Args.push_back(printArg<uint32_t>(PC)); |
| 31652 | break; |
| 31653 | case OP_IncPopBitfieldSint32: |
| 31654 | Text.Op = PrintName("IncPopBitfieldSint32" ); |
| 31655 | Text.Args.push_back(printArg<bool>(PC)); |
| 31656 | Text.Args.push_back(printArg<uint32_t>(PC)); |
| 31657 | break; |
| 31658 | case OP_IncPopBitfieldUint32: |
| 31659 | Text.Op = PrintName("IncPopBitfieldUint32" ); |
| 31660 | Text.Args.push_back(printArg<bool>(PC)); |
| 31661 | Text.Args.push_back(printArg<uint32_t>(PC)); |
| 31662 | break; |
| 31663 | case OP_IncPopBitfieldSint64: |
| 31664 | Text.Op = PrintName("IncPopBitfieldSint64" ); |
| 31665 | Text.Args.push_back(printArg<bool>(PC)); |
| 31666 | Text.Args.push_back(printArg<uint32_t>(PC)); |
| 31667 | break; |
| 31668 | case OP_IncPopBitfieldUint64: |
| 31669 | Text.Op = PrintName("IncPopBitfieldUint64" ); |
| 31670 | Text.Args.push_back(printArg<bool>(PC)); |
| 31671 | Text.Args.push_back(printArg<uint32_t>(PC)); |
| 31672 | break; |
| 31673 | case OP_IncPopBitfieldIntAP: |
| 31674 | Text.Op = PrintName("IncPopBitfieldIntAP" ); |
| 31675 | Text.Args.push_back(printArg<bool>(PC)); |
| 31676 | Text.Args.push_back(printArg<uint32_t>(PC)); |
| 31677 | break; |
| 31678 | case OP_IncPopBitfieldIntAPS: |
| 31679 | Text.Op = PrintName("IncPopBitfieldIntAPS" ); |
| 31680 | Text.Args.push_back(printArg<bool>(PC)); |
| 31681 | Text.Args.push_back(printArg<uint32_t>(PC)); |
| 31682 | break; |
| 31683 | case OP_IncPopBitfieldBool: |
| 31684 | Text.Op = PrintName("IncPopBitfieldBool" ); |
| 31685 | Text.Args.push_back(printArg<bool>(PC)); |
| 31686 | Text.Args.push_back(printArg<uint32_t>(PC)); |
| 31687 | break; |
| 31688 | case OP_IncPopBitfieldFixedPoint: |
| 31689 | Text.Op = PrintName("IncPopBitfieldFixedPoint" ); |
| 31690 | Text.Args.push_back(printArg<bool>(PC)); |
| 31691 | Text.Args.push_back(printArg<uint32_t>(PC)); |
| 31692 | break; |
| 31693 | #endif |
| 31694 | #if defined(GET_EVAL_PROTO) || defined(GET_LINK_PROTO) |
| 31695 | bool emitIncPopBitfieldSint8( bool , uint32_t , SourceInfo); |
| 31696 | bool emitIncPopBitfieldUint8( bool , uint32_t , SourceInfo); |
| 31697 | bool emitIncPopBitfieldSint16( bool , uint32_t , SourceInfo); |
| 31698 | bool emitIncPopBitfieldUint16( bool , uint32_t , SourceInfo); |
| 31699 | bool emitIncPopBitfieldSint32( bool , uint32_t , SourceInfo); |
| 31700 | bool emitIncPopBitfieldUint32( bool , uint32_t , SourceInfo); |
| 31701 | bool emitIncPopBitfieldSint64( bool , uint32_t , SourceInfo); |
| 31702 | bool emitIncPopBitfieldUint64( bool , uint32_t , SourceInfo); |
| 31703 | bool emitIncPopBitfieldIntAP( bool , uint32_t , SourceInfo); |
| 31704 | bool emitIncPopBitfieldIntAPS( bool , uint32_t , SourceInfo); |
| 31705 | bool emitIncPopBitfieldBool( bool , uint32_t , SourceInfo); |
| 31706 | bool emitIncPopBitfieldFixedPoint( bool , uint32_t , SourceInfo); |
| 31707 | #endif |
| 31708 | #if defined(GET_EVAL_PROTO) || defined(GET_LINK_PROTO) |
| 31709 | [[nodiscard]] bool emitIncPopBitfield(PrimType, bool, uint32_t, SourceInfo I); |
| 31710 | #endif |
| 31711 | #if defined(GET_EVAL_IMPL) || defined(GET_LINK_IMPL) |
| 31712 | bool |
| 31713 | #if defined(GET_EVAL_IMPL) |
| 31714 | EvalEmitter |
| 31715 | #else |
| 31716 | ByteCodeEmitter |
| 31717 | #endif |
| 31718 | ::emitIncPopBitfield(PrimType T0, bool A0, uint32_t A1, SourceInfo I) { |
| 31719 | switch (T0) { |
| 31720 | case PT_Sint8: |
| 31721 | return emitIncPopBitfieldSint8(A0, A1, I); |
| 31722 | case PT_Uint8: |
| 31723 | return emitIncPopBitfieldUint8(A0, A1, I); |
| 31724 | case PT_Sint16: |
| 31725 | return emitIncPopBitfieldSint16(A0, A1, I); |
| 31726 | case PT_Uint16: |
| 31727 | return emitIncPopBitfieldUint16(A0, A1, I); |
| 31728 | case PT_Sint32: |
| 31729 | return emitIncPopBitfieldSint32(A0, A1, I); |
| 31730 | case PT_Uint32: |
| 31731 | return emitIncPopBitfieldUint32(A0, A1, I); |
| 31732 | case PT_Sint64: |
| 31733 | return emitIncPopBitfieldSint64(A0, A1, I); |
| 31734 | case PT_Uint64: |
| 31735 | return emitIncPopBitfieldUint64(A0, A1, I); |
| 31736 | case PT_IntAP: |
| 31737 | return emitIncPopBitfieldIntAP(A0, A1, I); |
| 31738 | case PT_IntAPS: |
| 31739 | return emitIncPopBitfieldIntAPS(A0, A1, I); |
| 31740 | case PT_Bool: |
| 31741 | return emitIncPopBitfieldBool(A0, A1, I); |
| 31742 | case PT_FixedPoint: |
| 31743 | return emitIncPopBitfieldFixedPoint(A0, A1, I); |
| 31744 | default: llvm_unreachable("invalid type: emitIncPopBitfield" ); |
| 31745 | } |
| 31746 | llvm_unreachable("invalid enum value" ); |
| 31747 | } |
| 31748 | #endif |
| 31749 | #ifdef GET_LINK_IMPL |
| 31750 | bool ByteCodeEmitter::emitIncPopBitfieldSint8( bool A0, uint32_t A1, SourceInfo L) { |
| 31751 | return emitOp<bool, uint32_t>(OP_IncPopBitfieldSint8, A0, A1, L); |
| 31752 | } |
| 31753 | bool ByteCodeEmitter::emitIncPopBitfieldUint8( bool A0, uint32_t A1, SourceInfo L) { |
| 31754 | return emitOp<bool, uint32_t>(OP_IncPopBitfieldUint8, A0, A1, L); |
| 31755 | } |
| 31756 | bool ByteCodeEmitter::emitIncPopBitfieldSint16( bool A0, uint32_t A1, SourceInfo L) { |
| 31757 | return emitOp<bool, uint32_t>(OP_IncPopBitfieldSint16, A0, A1, L); |
| 31758 | } |
| 31759 | bool ByteCodeEmitter::emitIncPopBitfieldUint16( bool A0, uint32_t A1, SourceInfo L) { |
| 31760 | return emitOp<bool, uint32_t>(OP_IncPopBitfieldUint16, A0, A1, L); |
| 31761 | } |
| 31762 | bool ByteCodeEmitter::emitIncPopBitfieldSint32( bool A0, uint32_t A1, SourceInfo L) { |
| 31763 | return emitOp<bool, uint32_t>(OP_IncPopBitfieldSint32, A0, A1, L); |
| 31764 | } |
| 31765 | bool ByteCodeEmitter::emitIncPopBitfieldUint32( bool A0, uint32_t A1, SourceInfo L) { |
| 31766 | return emitOp<bool, uint32_t>(OP_IncPopBitfieldUint32, A0, A1, L); |
| 31767 | } |
| 31768 | bool ByteCodeEmitter::emitIncPopBitfieldSint64( bool A0, uint32_t A1, SourceInfo L) { |
| 31769 | return emitOp<bool, uint32_t>(OP_IncPopBitfieldSint64, A0, A1, L); |
| 31770 | } |
| 31771 | bool ByteCodeEmitter::emitIncPopBitfieldUint64( bool A0, uint32_t A1, SourceInfo L) { |
| 31772 | return emitOp<bool, uint32_t>(OP_IncPopBitfieldUint64, A0, A1, L); |
| 31773 | } |
| 31774 | bool ByteCodeEmitter::emitIncPopBitfieldIntAP( bool A0, uint32_t A1, SourceInfo L) { |
| 31775 | return emitOp<bool, uint32_t>(OP_IncPopBitfieldIntAP, A0, A1, L); |
| 31776 | } |
| 31777 | bool ByteCodeEmitter::emitIncPopBitfieldIntAPS( bool A0, uint32_t A1, SourceInfo L) { |
| 31778 | return emitOp<bool, uint32_t>(OP_IncPopBitfieldIntAPS, A0, A1, L); |
| 31779 | } |
| 31780 | bool ByteCodeEmitter::emitIncPopBitfieldBool( bool A0, uint32_t A1, SourceInfo L) { |
| 31781 | return emitOp<bool, uint32_t>(OP_IncPopBitfieldBool, A0, A1, L); |
| 31782 | } |
| 31783 | bool ByteCodeEmitter::emitIncPopBitfieldFixedPoint( bool A0, uint32_t A1, SourceInfo L) { |
| 31784 | return emitOp<bool, uint32_t>(OP_IncPopBitfieldFixedPoint, A0, A1, L); |
| 31785 | } |
| 31786 | #endif |
| 31787 | #ifdef GET_EVAL_IMPL |
| 31788 | bool EvalEmitter::emitIncPopBitfieldSint8( bool A0, uint32_t A1, SourceInfo L) { |
| 31789 | if (!isActive()) return true; |
| 31790 | CurrentSource = L; |
| 31791 | return IncPopBitfield<PT_Sint8>(S, CodePtr(), A0, A1); |
| 31792 | } |
| 31793 | bool EvalEmitter::emitIncPopBitfieldUint8( bool A0, uint32_t A1, SourceInfo L) { |
| 31794 | if (!isActive()) return true; |
| 31795 | CurrentSource = L; |
| 31796 | return IncPopBitfield<PT_Uint8>(S, CodePtr(), A0, A1); |
| 31797 | } |
| 31798 | bool EvalEmitter::emitIncPopBitfieldSint16( bool A0, uint32_t A1, SourceInfo L) { |
| 31799 | if (!isActive()) return true; |
| 31800 | CurrentSource = L; |
| 31801 | return IncPopBitfield<PT_Sint16>(S, CodePtr(), A0, A1); |
| 31802 | } |
| 31803 | bool EvalEmitter::emitIncPopBitfieldUint16( bool A0, uint32_t A1, SourceInfo L) { |
| 31804 | if (!isActive()) return true; |
| 31805 | CurrentSource = L; |
| 31806 | return IncPopBitfield<PT_Uint16>(S, CodePtr(), A0, A1); |
| 31807 | } |
| 31808 | bool EvalEmitter::emitIncPopBitfieldSint32( bool A0, uint32_t A1, SourceInfo L) { |
| 31809 | if (!isActive()) return true; |
| 31810 | CurrentSource = L; |
| 31811 | return IncPopBitfield<PT_Sint32>(S, CodePtr(), A0, A1); |
| 31812 | } |
| 31813 | bool EvalEmitter::emitIncPopBitfieldUint32( bool A0, uint32_t A1, SourceInfo L) { |
| 31814 | if (!isActive()) return true; |
| 31815 | CurrentSource = L; |
| 31816 | return IncPopBitfield<PT_Uint32>(S, CodePtr(), A0, A1); |
| 31817 | } |
| 31818 | bool EvalEmitter::emitIncPopBitfieldSint64( bool A0, uint32_t A1, SourceInfo L) { |
| 31819 | if (!isActive()) return true; |
| 31820 | CurrentSource = L; |
| 31821 | return IncPopBitfield<PT_Sint64>(S, CodePtr(), A0, A1); |
| 31822 | } |
| 31823 | bool EvalEmitter::emitIncPopBitfieldUint64( bool A0, uint32_t A1, SourceInfo L) { |
| 31824 | if (!isActive()) return true; |
| 31825 | CurrentSource = L; |
| 31826 | return IncPopBitfield<PT_Uint64>(S, CodePtr(), A0, A1); |
| 31827 | } |
| 31828 | bool EvalEmitter::emitIncPopBitfieldIntAP( bool A0, uint32_t A1, SourceInfo L) { |
| 31829 | if (!isActive()) return true; |
| 31830 | CurrentSource = L; |
| 31831 | return IncPopBitfield<PT_IntAP>(S, CodePtr(), A0, A1); |
| 31832 | } |
| 31833 | bool EvalEmitter::emitIncPopBitfieldIntAPS( bool A0, uint32_t A1, SourceInfo L) { |
| 31834 | if (!isActive()) return true; |
| 31835 | CurrentSource = L; |
| 31836 | return IncPopBitfield<PT_IntAPS>(S, CodePtr(), A0, A1); |
| 31837 | } |
| 31838 | bool EvalEmitter::emitIncPopBitfieldBool( bool A0, uint32_t A1, SourceInfo L) { |
| 31839 | if (!isActive()) return true; |
| 31840 | CurrentSource = L; |
| 31841 | return IncPopBitfield<PT_Bool>(S, CodePtr(), A0, A1); |
| 31842 | } |
| 31843 | bool EvalEmitter::emitIncPopBitfieldFixedPoint( bool A0, uint32_t A1, SourceInfo L) { |
| 31844 | if (!isActive()) return true; |
| 31845 | CurrentSource = L; |
| 31846 | return IncPopBitfield<PT_FixedPoint>(S, CodePtr(), A0, A1); |
| 31847 | } |
| 31848 | #endif |
| 31849 | #ifdef GET_OPCODE_NAMES |
| 31850 | OP_IncPtr, |
| 31851 | #endif |
| 31852 | #ifdef GET_INTERPFN_LIST |
| 31853 | &Interp_IncPtr, |
| 31854 | #endif |
| 31855 | #ifdef GET_INTERPFN_DISPATCHERS |
| 31856 | PRESERVE_NONE |
| 31857 | static bool Interp_IncPtr(InterpState &S) { |
| 31858 | if (!IncPtr(S, S.PC)) return false; |
| 31859 | #if USE_TAILCALLS |
| 31860 | MUSTTAIL return InterpNext(S); |
| 31861 | #else |
| 31862 | return true; |
| 31863 | #endif |
| 31864 | } |
| 31865 | #endif |
| 31866 | #ifdef GET_DISASM |
| 31867 | case OP_IncPtr: |
| 31868 | Text.Op = PrintName("IncPtr" ); |
| 31869 | break; |
| 31870 | #endif |
| 31871 | #if defined(GET_EVAL_PROTO) || defined(GET_LINK_PROTO) |
| 31872 | bool emitIncPtr(SourceInfo); |
| 31873 | #endif |
| 31874 | #ifdef GET_LINK_IMPL |
| 31875 | bool ByteCodeEmitter::emitIncPtr(SourceInfo L) { |
| 31876 | return emitOp<>(OP_IncPtr, L); |
| 31877 | } |
| 31878 | #endif |
| 31879 | #ifdef GET_EVAL_IMPL |
| 31880 | bool EvalEmitter::emitIncPtr(SourceInfo L) { |
| 31881 | if (!isActive()) return true; |
| 31882 | CurrentSource = L; |
| 31883 | return IncPtr(S, CodePtr()); |
| 31884 | } |
| 31885 | #endif |
| 31886 | #ifdef GET_OPCODE_NAMES |
| 31887 | OP_Incf, |
| 31888 | #endif |
| 31889 | #ifdef GET_INTERPFN_LIST |
| 31890 | &Interp_Incf, |
| 31891 | #endif |
| 31892 | #ifdef GET_INTERPFN_DISPATCHERS |
| 31893 | PRESERVE_NONE |
| 31894 | static bool Interp_Incf(InterpState &S) { |
| 31895 | { |
| 31896 | CodePtr OpPC = S.PC; |
| 31897 | const auto V0 = ReadArg<uint32_t>(S, S.PC); |
| 31898 | if (!Incf(S, OpPC, V0)) return false; |
| 31899 | } |
| 31900 | #if USE_TAILCALLS |
| 31901 | MUSTTAIL return InterpNext(S); |
| 31902 | #else |
| 31903 | return true; |
| 31904 | #endif |
| 31905 | } |
| 31906 | #endif |
| 31907 | #ifdef GET_DISASM |
| 31908 | case OP_Incf: |
| 31909 | Text.Op = PrintName("Incf" ); |
| 31910 | Text.Args.push_back(printArg<uint32_t>(PC)); |
| 31911 | break; |
| 31912 | #endif |
| 31913 | #if defined(GET_EVAL_PROTO) || defined(GET_LINK_PROTO) |
| 31914 | bool emitIncf( uint32_t , SourceInfo); |
| 31915 | #endif |
| 31916 | #ifdef GET_LINK_IMPL |
| 31917 | bool ByteCodeEmitter::emitIncf( uint32_t A0, SourceInfo L) { |
| 31918 | return emitOp<uint32_t>(OP_Incf, A0, L); |
| 31919 | } |
| 31920 | #endif |
| 31921 | #ifdef GET_EVAL_IMPL |
| 31922 | bool EvalEmitter::emitIncf( uint32_t A0, SourceInfo L) { |
| 31923 | if (!isActive()) return true; |
| 31924 | CurrentSource = L; |
| 31925 | return Incf(S, CodePtr(), A0); |
| 31926 | } |
| 31927 | #endif |
| 31928 | #ifdef GET_OPCODE_NAMES |
| 31929 | OP_IncfPop, |
| 31930 | #endif |
| 31931 | #ifdef GET_INTERPFN_LIST |
| 31932 | &Interp_IncfPop, |
| 31933 | #endif |
| 31934 | #ifdef GET_INTERPFN_DISPATCHERS |
| 31935 | PRESERVE_NONE |
| 31936 | static bool Interp_IncfPop(InterpState &S) { |
| 31937 | { |
| 31938 | CodePtr OpPC = S.PC; |
| 31939 | const auto V0 = ReadArg<uint32_t>(S, S.PC); |
| 31940 | if (!IncfPop(S, OpPC, V0)) return false; |
| 31941 | } |
| 31942 | #if USE_TAILCALLS |
| 31943 | MUSTTAIL return InterpNext(S); |
| 31944 | #else |
| 31945 | return true; |
| 31946 | #endif |
| 31947 | } |
| 31948 | #endif |
| 31949 | #ifdef GET_DISASM |
| 31950 | case OP_IncfPop: |
| 31951 | Text.Op = PrintName("IncfPop" ); |
| 31952 | Text.Args.push_back(printArg<uint32_t>(PC)); |
| 31953 | break; |
| 31954 | #endif |
| 31955 | #if defined(GET_EVAL_PROTO) || defined(GET_LINK_PROTO) |
| 31956 | bool emitIncfPop( uint32_t , SourceInfo); |
| 31957 | #endif |
| 31958 | #ifdef GET_LINK_IMPL |
| 31959 | bool ByteCodeEmitter::emitIncfPop( uint32_t A0, SourceInfo L) { |
| 31960 | return emitOp<uint32_t>(OP_IncfPop, A0, L); |
| 31961 | } |
| 31962 | #endif |
| 31963 | #ifdef GET_EVAL_IMPL |
| 31964 | bool EvalEmitter::emitIncfPop( uint32_t A0, SourceInfo L) { |
| 31965 | if (!isActive()) return true; |
| 31966 | CurrentSource = L; |
| 31967 | return IncfPop(S, CodePtr(), A0); |
| 31968 | } |
| 31969 | #endif |
| 31970 | #ifdef GET_OPCODE_NAMES |
| 31971 | OP_InitSint8, |
| 31972 | OP_InitUint8, |
| 31973 | OP_InitSint16, |
| 31974 | OP_InitUint16, |
| 31975 | OP_InitSint32, |
| 31976 | OP_InitUint32, |
| 31977 | OP_InitSint64, |
| 31978 | OP_InitUint64, |
| 31979 | OP_InitIntAP, |
| 31980 | OP_InitIntAPS, |
| 31981 | OP_InitBool, |
| 31982 | OP_InitFixedPoint, |
| 31983 | OP_InitPtr, |
| 31984 | OP_InitMemberPtr, |
| 31985 | OP_InitFloat, |
| 31986 | OP_InitReflect, |
| 31987 | #endif |
| 31988 | #ifdef GET_INTERPFN_LIST |
| 31989 | &Interp_InitSint8, |
| 31990 | &Interp_InitUint8, |
| 31991 | &Interp_InitSint16, |
| 31992 | &Interp_InitUint16, |
| 31993 | &Interp_InitSint32, |
| 31994 | &Interp_InitUint32, |
| 31995 | &Interp_InitSint64, |
| 31996 | &Interp_InitUint64, |
| 31997 | &Interp_InitIntAP, |
| 31998 | &Interp_InitIntAPS, |
| 31999 | &Interp_InitBool, |
| 32000 | &Interp_InitFixedPoint, |
| 32001 | &Interp_InitPtr, |
| 32002 | &Interp_InitMemberPtr, |
| 32003 | &Interp_InitFloat, |
| 32004 | &Interp_InitReflect, |
| 32005 | #endif |
| 32006 | #ifdef GET_INTERPFN_DISPATCHERS |
| 32007 | PRESERVE_NONE |
| 32008 | static bool Interp_InitSint8(InterpState &S) { |
| 32009 | if (!Init<PT_Sint8>(S, S.PC)) return false; |
| 32010 | #if USE_TAILCALLS |
| 32011 | MUSTTAIL return InterpNext(S); |
| 32012 | #else |
| 32013 | return true; |
| 32014 | #endif |
| 32015 | } |
| 32016 | PRESERVE_NONE |
| 32017 | static bool Interp_InitUint8(InterpState &S) { |
| 32018 | if (!Init<PT_Uint8>(S, S.PC)) return false; |
| 32019 | #if USE_TAILCALLS |
| 32020 | MUSTTAIL return InterpNext(S); |
| 32021 | #else |
| 32022 | return true; |
| 32023 | #endif |
| 32024 | } |
| 32025 | PRESERVE_NONE |
| 32026 | static bool Interp_InitSint16(InterpState &S) { |
| 32027 | if (!Init<PT_Sint16>(S, S.PC)) return false; |
| 32028 | #if USE_TAILCALLS |
| 32029 | MUSTTAIL return InterpNext(S); |
| 32030 | #else |
| 32031 | return true; |
| 32032 | #endif |
| 32033 | } |
| 32034 | PRESERVE_NONE |
| 32035 | static bool Interp_InitUint16(InterpState &S) { |
| 32036 | if (!Init<PT_Uint16>(S, S.PC)) return false; |
| 32037 | #if USE_TAILCALLS |
| 32038 | MUSTTAIL return InterpNext(S); |
| 32039 | #else |
| 32040 | return true; |
| 32041 | #endif |
| 32042 | } |
| 32043 | PRESERVE_NONE |
| 32044 | static bool Interp_InitSint32(InterpState &S) { |
| 32045 | if (!Init<PT_Sint32>(S, S.PC)) return false; |
| 32046 | #if USE_TAILCALLS |
| 32047 | MUSTTAIL return InterpNext(S); |
| 32048 | #else |
| 32049 | return true; |
| 32050 | #endif |
| 32051 | } |
| 32052 | PRESERVE_NONE |
| 32053 | static bool Interp_InitUint32(InterpState &S) { |
| 32054 | if (!Init<PT_Uint32>(S, S.PC)) return false; |
| 32055 | #if USE_TAILCALLS |
| 32056 | MUSTTAIL return InterpNext(S); |
| 32057 | #else |
| 32058 | return true; |
| 32059 | #endif |
| 32060 | } |
| 32061 | PRESERVE_NONE |
| 32062 | static bool Interp_InitSint64(InterpState &S) { |
| 32063 | if (!Init<PT_Sint64>(S, S.PC)) return false; |
| 32064 | #if USE_TAILCALLS |
| 32065 | MUSTTAIL return InterpNext(S); |
| 32066 | #else |
| 32067 | return true; |
| 32068 | #endif |
| 32069 | } |
| 32070 | PRESERVE_NONE |
| 32071 | static bool Interp_InitUint64(InterpState &S) { |
| 32072 | if (!Init<PT_Uint64>(S, S.PC)) return false; |
| 32073 | #if USE_TAILCALLS |
| 32074 | MUSTTAIL return InterpNext(S); |
| 32075 | #else |
| 32076 | return true; |
| 32077 | #endif |
| 32078 | } |
| 32079 | PRESERVE_NONE |
| 32080 | static bool Interp_InitIntAP(InterpState &S) { |
| 32081 | if (!Init<PT_IntAP>(S, S.PC)) return false; |
| 32082 | #if USE_TAILCALLS |
| 32083 | MUSTTAIL return InterpNext(S); |
| 32084 | #else |
| 32085 | return true; |
| 32086 | #endif |
| 32087 | } |
| 32088 | PRESERVE_NONE |
| 32089 | static bool Interp_InitIntAPS(InterpState &S) { |
| 32090 | if (!Init<PT_IntAPS>(S, S.PC)) return false; |
| 32091 | #if USE_TAILCALLS |
| 32092 | MUSTTAIL return InterpNext(S); |
| 32093 | #else |
| 32094 | return true; |
| 32095 | #endif |
| 32096 | } |
| 32097 | PRESERVE_NONE |
| 32098 | static bool Interp_InitBool(InterpState &S) { |
| 32099 | if (!Init<PT_Bool>(S, S.PC)) return false; |
| 32100 | #if USE_TAILCALLS |
| 32101 | MUSTTAIL return InterpNext(S); |
| 32102 | #else |
| 32103 | return true; |
| 32104 | #endif |
| 32105 | } |
| 32106 | PRESERVE_NONE |
| 32107 | static bool Interp_InitFixedPoint(InterpState &S) { |
| 32108 | if (!Init<PT_FixedPoint>(S, S.PC)) return false; |
| 32109 | #if USE_TAILCALLS |
| 32110 | MUSTTAIL return InterpNext(S); |
| 32111 | #else |
| 32112 | return true; |
| 32113 | #endif |
| 32114 | } |
| 32115 | PRESERVE_NONE |
| 32116 | static bool Interp_InitPtr(InterpState &S) { |
| 32117 | if (!Init<PT_Ptr>(S, S.PC)) return false; |
| 32118 | #if USE_TAILCALLS |
| 32119 | MUSTTAIL return InterpNext(S); |
| 32120 | #else |
| 32121 | return true; |
| 32122 | #endif |
| 32123 | } |
| 32124 | PRESERVE_NONE |
| 32125 | static bool Interp_InitMemberPtr(InterpState &S) { |
| 32126 | if (!Init<PT_MemberPtr>(S, S.PC)) return false; |
| 32127 | #if USE_TAILCALLS |
| 32128 | MUSTTAIL return InterpNext(S); |
| 32129 | #else |
| 32130 | return true; |
| 32131 | #endif |
| 32132 | } |
| 32133 | PRESERVE_NONE |
| 32134 | static bool Interp_InitFloat(InterpState &S) { |
| 32135 | if (!Init<PT_Float>(S, S.PC)) return false; |
| 32136 | #if USE_TAILCALLS |
| 32137 | MUSTTAIL return InterpNext(S); |
| 32138 | #else |
| 32139 | return true; |
| 32140 | #endif |
| 32141 | } |
| 32142 | PRESERVE_NONE |
| 32143 | static bool Interp_InitReflect(InterpState &S) { |
| 32144 | if (!Init<PT_Reflect>(S, S.PC)) return false; |
| 32145 | #if USE_TAILCALLS |
| 32146 | MUSTTAIL return InterpNext(S); |
| 32147 | #else |
| 32148 | return true; |
| 32149 | #endif |
| 32150 | } |
| 32151 | #endif |
| 32152 | #ifdef GET_DISASM |
| 32153 | case OP_InitSint8: |
| 32154 | Text.Op = PrintName("InitSint8" ); |
| 32155 | break; |
| 32156 | case OP_InitUint8: |
| 32157 | Text.Op = PrintName("InitUint8" ); |
| 32158 | break; |
| 32159 | case OP_InitSint16: |
| 32160 | Text.Op = PrintName("InitSint16" ); |
| 32161 | break; |
| 32162 | case OP_InitUint16: |
| 32163 | Text.Op = PrintName("InitUint16" ); |
| 32164 | break; |
| 32165 | case OP_InitSint32: |
| 32166 | Text.Op = PrintName("InitSint32" ); |
| 32167 | break; |
| 32168 | case OP_InitUint32: |
| 32169 | Text.Op = PrintName("InitUint32" ); |
| 32170 | break; |
| 32171 | case OP_InitSint64: |
| 32172 | Text.Op = PrintName("InitSint64" ); |
| 32173 | break; |
| 32174 | case OP_InitUint64: |
| 32175 | Text.Op = PrintName("InitUint64" ); |
| 32176 | break; |
| 32177 | case OP_InitIntAP: |
| 32178 | Text.Op = PrintName("InitIntAP" ); |
| 32179 | break; |
| 32180 | case OP_InitIntAPS: |
| 32181 | Text.Op = PrintName("InitIntAPS" ); |
| 32182 | break; |
| 32183 | case OP_InitBool: |
| 32184 | Text.Op = PrintName("InitBool" ); |
| 32185 | break; |
| 32186 | case OP_InitFixedPoint: |
| 32187 | Text.Op = PrintName("InitFixedPoint" ); |
| 32188 | break; |
| 32189 | case OP_InitPtr: |
| 32190 | Text.Op = PrintName("InitPtr" ); |
| 32191 | break; |
| 32192 | case OP_InitMemberPtr: |
| 32193 | Text.Op = PrintName("InitMemberPtr" ); |
| 32194 | break; |
| 32195 | case OP_InitFloat: |
| 32196 | Text.Op = PrintName("InitFloat" ); |
| 32197 | break; |
| 32198 | case OP_InitReflect: |
| 32199 | Text.Op = PrintName("InitReflect" ); |
| 32200 | break; |
| 32201 | #endif |
| 32202 | #if defined(GET_EVAL_PROTO) || defined(GET_LINK_PROTO) |
| 32203 | bool emitInitSint8(SourceInfo); |
| 32204 | bool emitInitUint8(SourceInfo); |
| 32205 | bool emitInitSint16(SourceInfo); |
| 32206 | bool emitInitUint16(SourceInfo); |
| 32207 | bool emitInitSint32(SourceInfo); |
| 32208 | bool emitInitUint32(SourceInfo); |
| 32209 | bool emitInitSint64(SourceInfo); |
| 32210 | bool emitInitUint64(SourceInfo); |
| 32211 | bool emitInitIntAP(SourceInfo); |
| 32212 | bool emitInitIntAPS(SourceInfo); |
| 32213 | bool emitInitBool(SourceInfo); |
| 32214 | bool emitInitFixedPoint(SourceInfo); |
| 32215 | bool emitInitPtr(SourceInfo); |
| 32216 | bool emitInitMemberPtr(SourceInfo); |
| 32217 | bool emitInitFloat(SourceInfo); |
| 32218 | bool emitInitReflect(SourceInfo); |
| 32219 | #endif |
| 32220 | #if defined(GET_EVAL_PROTO) || defined(GET_LINK_PROTO) |
| 32221 | [[nodiscard]] bool emitInit(PrimType, SourceInfo I); |
| 32222 | #endif |
| 32223 | #if defined(GET_EVAL_IMPL) || defined(GET_LINK_IMPL) |
| 32224 | bool |
| 32225 | #if defined(GET_EVAL_IMPL) |
| 32226 | EvalEmitter |
| 32227 | #else |
| 32228 | ByteCodeEmitter |
| 32229 | #endif |
| 32230 | ::emitInit(PrimType T0, SourceInfo I) { |
| 32231 | switch (T0) { |
| 32232 | case PT_Sint8: |
| 32233 | return emitInitSint8(I); |
| 32234 | case PT_Uint8: |
| 32235 | return emitInitUint8(I); |
| 32236 | case PT_Sint16: |
| 32237 | return emitInitSint16(I); |
| 32238 | case PT_Uint16: |
| 32239 | return emitInitUint16(I); |
| 32240 | case PT_Sint32: |
| 32241 | return emitInitSint32(I); |
| 32242 | case PT_Uint32: |
| 32243 | return emitInitUint32(I); |
| 32244 | case PT_Sint64: |
| 32245 | return emitInitSint64(I); |
| 32246 | case PT_Uint64: |
| 32247 | return emitInitUint64(I); |
| 32248 | case PT_IntAP: |
| 32249 | return emitInitIntAP(I); |
| 32250 | case PT_IntAPS: |
| 32251 | return emitInitIntAPS(I); |
| 32252 | case PT_Bool: |
| 32253 | return emitInitBool(I); |
| 32254 | case PT_FixedPoint: |
| 32255 | return emitInitFixedPoint(I); |
| 32256 | case PT_Ptr: |
| 32257 | return emitInitPtr(I); |
| 32258 | case PT_MemberPtr: |
| 32259 | return emitInitMemberPtr(I); |
| 32260 | case PT_Float: |
| 32261 | return emitInitFloat(I); |
| 32262 | case PT_Reflect: |
| 32263 | return emitInitReflect(I); |
| 32264 | } |
| 32265 | llvm_unreachable("invalid enum value" ); |
| 32266 | } |
| 32267 | #endif |
| 32268 | #ifdef GET_LINK_IMPL |
| 32269 | bool ByteCodeEmitter::emitInitSint8(SourceInfo L) { |
| 32270 | return emitOp<>(OP_InitSint8, L); |
| 32271 | } |
| 32272 | bool ByteCodeEmitter::emitInitUint8(SourceInfo L) { |
| 32273 | return emitOp<>(OP_InitUint8, L); |
| 32274 | } |
| 32275 | bool ByteCodeEmitter::emitInitSint16(SourceInfo L) { |
| 32276 | return emitOp<>(OP_InitSint16, L); |
| 32277 | } |
| 32278 | bool ByteCodeEmitter::emitInitUint16(SourceInfo L) { |
| 32279 | return emitOp<>(OP_InitUint16, L); |
| 32280 | } |
| 32281 | bool ByteCodeEmitter::emitInitSint32(SourceInfo L) { |
| 32282 | return emitOp<>(OP_InitSint32, L); |
| 32283 | } |
| 32284 | bool ByteCodeEmitter::emitInitUint32(SourceInfo L) { |
| 32285 | return emitOp<>(OP_InitUint32, L); |
| 32286 | } |
| 32287 | bool ByteCodeEmitter::emitInitSint64(SourceInfo L) { |
| 32288 | return emitOp<>(OP_InitSint64, L); |
| 32289 | } |
| 32290 | bool ByteCodeEmitter::emitInitUint64(SourceInfo L) { |
| 32291 | return emitOp<>(OP_InitUint64, L); |
| 32292 | } |
| 32293 | bool ByteCodeEmitter::emitInitIntAP(SourceInfo L) { |
| 32294 | return emitOp<>(OP_InitIntAP, L); |
| 32295 | } |
| 32296 | bool ByteCodeEmitter::emitInitIntAPS(SourceInfo L) { |
| 32297 | return emitOp<>(OP_InitIntAPS, L); |
| 32298 | } |
| 32299 | bool ByteCodeEmitter::emitInitBool(SourceInfo L) { |
| 32300 | return emitOp<>(OP_InitBool, L); |
| 32301 | } |
| 32302 | bool ByteCodeEmitter::emitInitFixedPoint(SourceInfo L) { |
| 32303 | return emitOp<>(OP_InitFixedPoint, L); |
| 32304 | } |
| 32305 | bool ByteCodeEmitter::emitInitPtr(SourceInfo L) { |
| 32306 | return emitOp<>(OP_InitPtr, L); |
| 32307 | } |
| 32308 | bool ByteCodeEmitter::emitInitMemberPtr(SourceInfo L) { |
| 32309 | return emitOp<>(OP_InitMemberPtr, L); |
| 32310 | } |
| 32311 | bool ByteCodeEmitter::emitInitFloat(SourceInfo L) { |
| 32312 | return emitOp<>(OP_InitFloat, L); |
| 32313 | } |
| 32314 | bool ByteCodeEmitter::emitInitReflect(SourceInfo L) { |
| 32315 | return emitOp<>(OP_InitReflect, L); |
| 32316 | } |
| 32317 | #endif |
| 32318 | #ifdef GET_EVAL_IMPL |
| 32319 | bool EvalEmitter::emitInitSint8(SourceInfo L) { |
| 32320 | if (!isActive()) return true; |
| 32321 | CurrentSource = L; |
| 32322 | return Init<PT_Sint8>(S, CodePtr()); |
| 32323 | } |
| 32324 | bool EvalEmitter::emitInitUint8(SourceInfo L) { |
| 32325 | if (!isActive()) return true; |
| 32326 | CurrentSource = L; |
| 32327 | return Init<PT_Uint8>(S, CodePtr()); |
| 32328 | } |
| 32329 | bool EvalEmitter::emitInitSint16(SourceInfo L) { |
| 32330 | if (!isActive()) return true; |
| 32331 | CurrentSource = L; |
| 32332 | return Init<PT_Sint16>(S, CodePtr()); |
| 32333 | } |
| 32334 | bool EvalEmitter::emitInitUint16(SourceInfo L) { |
| 32335 | if (!isActive()) return true; |
| 32336 | CurrentSource = L; |
| 32337 | return Init<PT_Uint16>(S, CodePtr()); |
| 32338 | } |
| 32339 | bool EvalEmitter::emitInitSint32(SourceInfo L) { |
| 32340 | if (!isActive()) return true; |
| 32341 | CurrentSource = L; |
| 32342 | return Init<PT_Sint32>(S, CodePtr()); |
| 32343 | } |
| 32344 | bool EvalEmitter::emitInitUint32(SourceInfo L) { |
| 32345 | if (!isActive()) return true; |
| 32346 | CurrentSource = L; |
| 32347 | return Init<PT_Uint32>(S, CodePtr()); |
| 32348 | } |
| 32349 | bool EvalEmitter::emitInitSint64(SourceInfo L) { |
| 32350 | if (!isActive()) return true; |
| 32351 | CurrentSource = L; |
| 32352 | return Init<PT_Sint64>(S, CodePtr()); |
| 32353 | } |
| 32354 | bool EvalEmitter::emitInitUint64(SourceInfo L) { |
| 32355 | if (!isActive()) return true; |
| 32356 | CurrentSource = L; |
| 32357 | return Init<PT_Uint64>(S, CodePtr()); |
| 32358 | } |
| 32359 | bool EvalEmitter::emitInitIntAP(SourceInfo L) { |
| 32360 | if (!isActive()) return true; |
| 32361 | CurrentSource = L; |
| 32362 | return Init<PT_IntAP>(S, CodePtr()); |
| 32363 | } |
| 32364 | bool EvalEmitter::emitInitIntAPS(SourceInfo L) { |
| 32365 | if (!isActive()) return true; |
| 32366 | CurrentSource = L; |
| 32367 | return Init<PT_IntAPS>(S, CodePtr()); |
| 32368 | } |
| 32369 | bool EvalEmitter::emitInitBool(SourceInfo L) { |
| 32370 | if (!isActive()) return true; |
| 32371 | CurrentSource = L; |
| 32372 | return Init<PT_Bool>(S, CodePtr()); |
| 32373 | } |
| 32374 | bool EvalEmitter::emitInitFixedPoint(SourceInfo L) { |
| 32375 | if (!isActive()) return true; |
| 32376 | CurrentSource = L; |
| 32377 | return Init<PT_FixedPoint>(S, CodePtr()); |
| 32378 | } |
| 32379 | bool EvalEmitter::emitInitPtr(SourceInfo L) { |
| 32380 | if (!isActive()) return true; |
| 32381 | CurrentSource = L; |
| 32382 | return Init<PT_Ptr>(S, CodePtr()); |
| 32383 | } |
| 32384 | bool EvalEmitter::emitInitMemberPtr(SourceInfo L) { |
| 32385 | if (!isActive()) return true; |
| 32386 | CurrentSource = L; |
| 32387 | return Init<PT_MemberPtr>(S, CodePtr()); |
| 32388 | } |
| 32389 | bool EvalEmitter::emitInitFloat(SourceInfo L) { |
| 32390 | if (!isActive()) return true; |
| 32391 | CurrentSource = L; |
| 32392 | return Init<PT_Float>(S, CodePtr()); |
| 32393 | } |
| 32394 | bool EvalEmitter::emitInitReflect(SourceInfo L) { |
| 32395 | if (!isActive()) return true; |
| 32396 | CurrentSource = L; |
| 32397 | return Init<PT_Reflect>(S, CodePtr()); |
| 32398 | } |
| 32399 | #endif |
| 32400 | #ifdef GET_OPCODE_NAMES |
| 32401 | OP_InitBitFieldSint8, |
| 32402 | OP_InitBitFieldUint8, |
| 32403 | OP_InitBitFieldSint16, |
| 32404 | OP_InitBitFieldUint16, |
| 32405 | OP_InitBitFieldSint32, |
| 32406 | OP_InitBitFieldUint32, |
| 32407 | OP_InitBitFieldSint64, |
| 32408 | OP_InitBitFieldUint64, |
| 32409 | OP_InitBitFieldIntAP, |
| 32410 | OP_InitBitFieldIntAPS, |
| 32411 | OP_InitBitFieldBool, |
| 32412 | #endif |
| 32413 | #ifdef GET_INTERPFN_LIST |
| 32414 | &Interp_InitBitFieldSint8, |
| 32415 | &Interp_InitBitFieldUint8, |
| 32416 | &Interp_InitBitFieldSint16, |
| 32417 | &Interp_InitBitFieldUint16, |
| 32418 | &Interp_InitBitFieldSint32, |
| 32419 | &Interp_InitBitFieldUint32, |
| 32420 | &Interp_InitBitFieldSint64, |
| 32421 | &Interp_InitBitFieldUint64, |
| 32422 | &Interp_InitBitFieldIntAP, |
| 32423 | &Interp_InitBitFieldIntAPS, |
| 32424 | &Interp_InitBitFieldBool, |
| 32425 | #endif |
| 32426 | #ifdef GET_INTERPFN_DISPATCHERS |
| 32427 | PRESERVE_NONE |
| 32428 | static bool Interp_InitBitFieldSint8(InterpState &S) { |
| 32429 | { |
| 32430 | CodePtr OpPC = S.PC; |
| 32431 | const auto V0 = ReadArg<uint32_t>(S, S.PC); |
| 32432 | const auto V1 = ReadArg<uint32_t>(S, S.PC); |
| 32433 | if (!InitBitField<PT_Sint8>(S, OpPC, V0, V1)) return false; |
| 32434 | } |
| 32435 | #if USE_TAILCALLS |
| 32436 | MUSTTAIL return InterpNext(S); |
| 32437 | #else |
| 32438 | return true; |
| 32439 | #endif |
| 32440 | } |
| 32441 | PRESERVE_NONE |
| 32442 | static bool Interp_InitBitFieldUint8(InterpState &S) { |
| 32443 | { |
| 32444 | CodePtr OpPC = S.PC; |
| 32445 | const auto V0 = ReadArg<uint32_t>(S, S.PC); |
| 32446 | const auto V1 = ReadArg<uint32_t>(S, S.PC); |
| 32447 | if (!InitBitField<PT_Uint8>(S, OpPC, V0, V1)) return false; |
| 32448 | } |
| 32449 | #if USE_TAILCALLS |
| 32450 | MUSTTAIL return InterpNext(S); |
| 32451 | #else |
| 32452 | return true; |
| 32453 | #endif |
| 32454 | } |
| 32455 | PRESERVE_NONE |
| 32456 | static bool Interp_InitBitFieldSint16(InterpState &S) { |
| 32457 | { |
| 32458 | CodePtr OpPC = S.PC; |
| 32459 | const auto V0 = ReadArg<uint32_t>(S, S.PC); |
| 32460 | const auto V1 = ReadArg<uint32_t>(S, S.PC); |
| 32461 | if (!InitBitField<PT_Sint16>(S, OpPC, V0, V1)) return false; |
| 32462 | } |
| 32463 | #if USE_TAILCALLS |
| 32464 | MUSTTAIL return InterpNext(S); |
| 32465 | #else |
| 32466 | return true; |
| 32467 | #endif |
| 32468 | } |
| 32469 | PRESERVE_NONE |
| 32470 | static bool Interp_InitBitFieldUint16(InterpState &S) { |
| 32471 | { |
| 32472 | CodePtr OpPC = S.PC; |
| 32473 | const auto V0 = ReadArg<uint32_t>(S, S.PC); |
| 32474 | const auto V1 = ReadArg<uint32_t>(S, S.PC); |
| 32475 | if (!InitBitField<PT_Uint16>(S, OpPC, V0, V1)) return false; |
| 32476 | } |
| 32477 | #if USE_TAILCALLS |
| 32478 | MUSTTAIL return InterpNext(S); |
| 32479 | #else |
| 32480 | return true; |
| 32481 | #endif |
| 32482 | } |
| 32483 | PRESERVE_NONE |
| 32484 | static bool Interp_InitBitFieldSint32(InterpState &S) { |
| 32485 | { |
| 32486 | CodePtr OpPC = S.PC; |
| 32487 | const auto V0 = ReadArg<uint32_t>(S, S.PC); |
| 32488 | const auto V1 = ReadArg<uint32_t>(S, S.PC); |
| 32489 | if (!InitBitField<PT_Sint32>(S, OpPC, V0, V1)) return false; |
| 32490 | } |
| 32491 | #if USE_TAILCALLS |
| 32492 | MUSTTAIL return InterpNext(S); |
| 32493 | #else |
| 32494 | return true; |
| 32495 | #endif |
| 32496 | } |
| 32497 | PRESERVE_NONE |
| 32498 | static bool Interp_InitBitFieldUint32(InterpState &S) { |
| 32499 | { |
| 32500 | CodePtr OpPC = S.PC; |
| 32501 | const auto V0 = ReadArg<uint32_t>(S, S.PC); |
| 32502 | const auto V1 = ReadArg<uint32_t>(S, S.PC); |
| 32503 | if (!InitBitField<PT_Uint32>(S, OpPC, V0, V1)) return false; |
| 32504 | } |
| 32505 | #if USE_TAILCALLS |
| 32506 | MUSTTAIL return InterpNext(S); |
| 32507 | #else |
| 32508 | return true; |
| 32509 | #endif |
| 32510 | } |
| 32511 | PRESERVE_NONE |
| 32512 | static bool Interp_InitBitFieldSint64(InterpState &S) { |
| 32513 | { |
| 32514 | CodePtr OpPC = S.PC; |
| 32515 | const auto V0 = ReadArg<uint32_t>(S, S.PC); |
| 32516 | const auto V1 = ReadArg<uint32_t>(S, S.PC); |
| 32517 | if (!InitBitField<PT_Sint64>(S, OpPC, V0, V1)) return false; |
| 32518 | } |
| 32519 | #if USE_TAILCALLS |
| 32520 | MUSTTAIL return InterpNext(S); |
| 32521 | #else |
| 32522 | return true; |
| 32523 | #endif |
| 32524 | } |
| 32525 | PRESERVE_NONE |
| 32526 | static bool Interp_InitBitFieldUint64(InterpState &S) { |
| 32527 | { |
| 32528 | CodePtr OpPC = S.PC; |
| 32529 | const auto V0 = ReadArg<uint32_t>(S, S.PC); |
| 32530 | const auto V1 = ReadArg<uint32_t>(S, S.PC); |
| 32531 | if (!InitBitField<PT_Uint64>(S, OpPC, V0, V1)) return false; |
| 32532 | } |
| 32533 | #if USE_TAILCALLS |
| 32534 | MUSTTAIL return InterpNext(S); |
| 32535 | #else |
| 32536 | return true; |
| 32537 | #endif |
| 32538 | } |
| 32539 | PRESERVE_NONE |
| 32540 | static bool Interp_InitBitFieldIntAP(InterpState &S) { |
| 32541 | { |
| 32542 | CodePtr OpPC = S.PC; |
| 32543 | const auto V0 = ReadArg<uint32_t>(S, S.PC); |
| 32544 | const auto V1 = ReadArg<uint32_t>(S, S.PC); |
| 32545 | if (!InitBitField<PT_IntAP>(S, OpPC, V0, V1)) return false; |
| 32546 | } |
| 32547 | #if USE_TAILCALLS |
| 32548 | MUSTTAIL return InterpNext(S); |
| 32549 | #else |
| 32550 | return true; |
| 32551 | #endif |
| 32552 | } |
| 32553 | PRESERVE_NONE |
| 32554 | static bool Interp_InitBitFieldIntAPS(InterpState &S) { |
| 32555 | { |
| 32556 | CodePtr OpPC = S.PC; |
| 32557 | const auto V0 = ReadArg<uint32_t>(S, S.PC); |
| 32558 | const auto V1 = ReadArg<uint32_t>(S, S.PC); |
| 32559 | if (!InitBitField<PT_IntAPS>(S, OpPC, V0, V1)) return false; |
| 32560 | } |
| 32561 | #if USE_TAILCALLS |
| 32562 | MUSTTAIL return InterpNext(S); |
| 32563 | #else |
| 32564 | return true; |
| 32565 | #endif |
| 32566 | } |
| 32567 | PRESERVE_NONE |
| 32568 | static bool Interp_InitBitFieldBool(InterpState &S) { |
| 32569 | { |
| 32570 | CodePtr OpPC = S.PC; |
| 32571 | const auto V0 = ReadArg<uint32_t>(S, S.PC); |
| 32572 | const auto V1 = ReadArg<uint32_t>(S, S.PC); |
| 32573 | if (!InitBitField<PT_Bool>(S, OpPC, V0, V1)) return false; |
| 32574 | } |
| 32575 | #if USE_TAILCALLS |
| 32576 | MUSTTAIL return InterpNext(S); |
| 32577 | #else |
| 32578 | return true; |
| 32579 | #endif |
| 32580 | } |
| 32581 | #endif |
| 32582 | #ifdef GET_DISASM |
| 32583 | case OP_InitBitFieldSint8: |
| 32584 | Text.Op = PrintName("InitBitFieldSint8" ); |
| 32585 | Text.Args.push_back(printArg<uint32_t>(PC)); |
| 32586 | Text.Args.push_back(printArg<uint32_t>(PC)); |
| 32587 | break; |
| 32588 | case OP_InitBitFieldUint8: |
| 32589 | Text.Op = PrintName("InitBitFieldUint8" ); |
| 32590 | Text.Args.push_back(printArg<uint32_t>(PC)); |
| 32591 | Text.Args.push_back(printArg<uint32_t>(PC)); |
| 32592 | break; |
| 32593 | case OP_InitBitFieldSint16: |
| 32594 | Text.Op = PrintName("InitBitFieldSint16" ); |
| 32595 | Text.Args.push_back(printArg<uint32_t>(PC)); |
| 32596 | Text.Args.push_back(printArg<uint32_t>(PC)); |
| 32597 | break; |
| 32598 | case OP_InitBitFieldUint16: |
| 32599 | Text.Op = PrintName("InitBitFieldUint16" ); |
| 32600 | Text.Args.push_back(printArg<uint32_t>(PC)); |
| 32601 | Text.Args.push_back(printArg<uint32_t>(PC)); |
| 32602 | break; |
| 32603 | case OP_InitBitFieldSint32: |
| 32604 | Text.Op = PrintName("InitBitFieldSint32" ); |
| 32605 | Text.Args.push_back(printArg<uint32_t>(PC)); |
| 32606 | Text.Args.push_back(printArg<uint32_t>(PC)); |
| 32607 | break; |
| 32608 | case OP_InitBitFieldUint32: |
| 32609 | Text.Op = PrintName("InitBitFieldUint32" ); |
| 32610 | Text.Args.push_back(printArg<uint32_t>(PC)); |
| 32611 | Text.Args.push_back(printArg<uint32_t>(PC)); |
| 32612 | break; |
| 32613 | case OP_InitBitFieldSint64: |
| 32614 | Text.Op = PrintName("InitBitFieldSint64" ); |
| 32615 | Text.Args.push_back(printArg<uint32_t>(PC)); |
| 32616 | Text.Args.push_back(printArg<uint32_t>(PC)); |
| 32617 | break; |
| 32618 | case OP_InitBitFieldUint64: |
| 32619 | Text.Op = PrintName("InitBitFieldUint64" ); |
| 32620 | Text.Args.push_back(printArg<uint32_t>(PC)); |
| 32621 | Text.Args.push_back(printArg<uint32_t>(PC)); |
| 32622 | break; |
| 32623 | case OP_InitBitFieldIntAP: |
| 32624 | Text.Op = PrintName("InitBitFieldIntAP" ); |
| 32625 | Text.Args.push_back(printArg<uint32_t>(PC)); |
| 32626 | Text.Args.push_back(printArg<uint32_t>(PC)); |
| 32627 | break; |
| 32628 | case OP_InitBitFieldIntAPS: |
| 32629 | Text.Op = PrintName("InitBitFieldIntAPS" ); |
| 32630 | Text.Args.push_back(printArg<uint32_t>(PC)); |
| 32631 | Text.Args.push_back(printArg<uint32_t>(PC)); |
| 32632 | break; |
| 32633 | case OP_InitBitFieldBool: |
| 32634 | Text.Op = PrintName("InitBitFieldBool" ); |
| 32635 | Text.Args.push_back(printArg<uint32_t>(PC)); |
| 32636 | Text.Args.push_back(printArg<uint32_t>(PC)); |
| 32637 | break; |
| 32638 | #endif |
| 32639 | #if defined(GET_EVAL_PROTO) || defined(GET_LINK_PROTO) |
| 32640 | bool emitInitBitFieldSint8( uint32_t , uint32_t , SourceInfo); |
| 32641 | bool emitInitBitFieldUint8( uint32_t , uint32_t , SourceInfo); |
| 32642 | bool emitInitBitFieldSint16( uint32_t , uint32_t , SourceInfo); |
| 32643 | bool emitInitBitFieldUint16( uint32_t , uint32_t , SourceInfo); |
| 32644 | bool emitInitBitFieldSint32( uint32_t , uint32_t , SourceInfo); |
| 32645 | bool emitInitBitFieldUint32( uint32_t , uint32_t , SourceInfo); |
| 32646 | bool emitInitBitFieldSint64( uint32_t , uint32_t , SourceInfo); |
| 32647 | bool emitInitBitFieldUint64( uint32_t , uint32_t , SourceInfo); |
| 32648 | bool emitInitBitFieldIntAP( uint32_t , uint32_t , SourceInfo); |
| 32649 | bool emitInitBitFieldIntAPS( uint32_t , uint32_t , SourceInfo); |
| 32650 | bool emitInitBitFieldBool( uint32_t , uint32_t , SourceInfo); |
| 32651 | #endif |
| 32652 | #if defined(GET_EVAL_PROTO) || defined(GET_LINK_PROTO) |
| 32653 | [[nodiscard]] bool emitInitBitField(PrimType, uint32_t, uint32_t, SourceInfo I); |
| 32654 | #endif |
| 32655 | #if defined(GET_EVAL_IMPL) || defined(GET_LINK_IMPL) |
| 32656 | bool |
| 32657 | #if defined(GET_EVAL_IMPL) |
| 32658 | EvalEmitter |
| 32659 | #else |
| 32660 | ByteCodeEmitter |
| 32661 | #endif |
| 32662 | ::emitInitBitField(PrimType T0, uint32_t A0, uint32_t A1, SourceInfo I) { |
| 32663 | switch (T0) { |
| 32664 | case PT_Sint8: |
| 32665 | return emitInitBitFieldSint8(A0, A1, I); |
| 32666 | case PT_Uint8: |
| 32667 | return emitInitBitFieldUint8(A0, A1, I); |
| 32668 | case PT_Sint16: |
| 32669 | return emitInitBitFieldSint16(A0, A1, I); |
| 32670 | case PT_Uint16: |
| 32671 | return emitInitBitFieldUint16(A0, A1, I); |
| 32672 | case PT_Sint32: |
| 32673 | return emitInitBitFieldSint32(A0, A1, I); |
| 32674 | case PT_Uint32: |
| 32675 | return emitInitBitFieldUint32(A0, A1, I); |
| 32676 | case PT_Sint64: |
| 32677 | return emitInitBitFieldSint64(A0, A1, I); |
| 32678 | case PT_Uint64: |
| 32679 | return emitInitBitFieldUint64(A0, A1, I); |
| 32680 | case PT_IntAP: |
| 32681 | return emitInitBitFieldIntAP(A0, A1, I); |
| 32682 | case PT_IntAPS: |
| 32683 | return emitInitBitFieldIntAPS(A0, A1, I); |
| 32684 | case PT_Bool: |
| 32685 | return emitInitBitFieldBool(A0, A1, I); |
| 32686 | default: llvm_unreachable("invalid type: emitInitBitField" ); |
| 32687 | } |
| 32688 | llvm_unreachable("invalid enum value" ); |
| 32689 | } |
| 32690 | #endif |
| 32691 | #ifdef GET_LINK_IMPL |
| 32692 | bool ByteCodeEmitter::emitInitBitFieldSint8( uint32_t A0, uint32_t A1, SourceInfo L) { |
| 32693 | return emitOp<uint32_t, uint32_t>(OP_InitBitFieldSint8, A0, A1, L); |
| 32694 | } |
| 32695 | bool ByteCodeEmitter::emitInitBitFieldUint8( uint32_t A0, uint32_t A1, SourceInfo L) { |
| 32696 | return emitOp<uint32_t, uint32_t>(OP_InitBitFieldUint8, A0, A1, L); |
| 32697 | } |
| 32698 | bool ByteCodeEmitter::emitInitBitFieldSint16( uint32_t A0, uint32_t A1, SourceInfo L) { |
| 32699 | return emitOp<uint32_t, uint32_t>(OP_InitBitFieldSint16, A0, A1, L); |
| 32700 | } |
| 32701 | bool ByteCodeEmitter::emitInitBitFieldUint16( uint32_t A0, uint32_t A1, SourceInfo L) { |
| 32702 | return emitOp<uint32_t, uint32_t>(OP_InitBitFieldUint16, A0, A1, L); |
| 32703 | } |
| 32704 | bool ByteCodeEmitter::emitInitBitFieldSint32( uint32_t A0, uint32_t A1, SourceInfo L) { |
| 32705 | return emitOp<uint32_t, uint32_t>(OP_InitBitFieldSint32, A0, A1, L); |
| 32706 | } |
| 32707 | bool ByteCodeEmitter::emitInitBitFieldUint32( uint32_t A0, uint32_t A1, SourceInfo L) { |
| 32708 | return emitOp<uint32_t, uint32_t>(OP_InitBitFieldUint32, A0, A1, L); |
| 32709 | } |
| 32710 | bool ByteCodeEmitter::emitInitBitFieldSint64( uint32_t A0, uint32_t A1, SourceInfo L) { |
| 32711 | return emitOp<uint32_t, uint32_t>(OP_InitBitFieldSint64, A0, A1, L); |
| 32712 | } |
| 32713 | bool ByteCodeEmitter::emitInitBitFieldUint64( uint32_t A0, uint32_t A1, SourceInfo L) { |
| 32714 | return emitOp<uint32_t, uint32_t>(OP_InitBitFieldUint64, A0, A1, L); |
| 32715 | } |
| 32716 | bool ByteCodeEmitter::emitInitBitFieldIntAP( uint32_t A0, uint32_t A1, SourceInfo L) { |
| 32717 | return emitOp<uint32_t, uint32_t>(OP_InitBitFieldIntAP, A0, A1, L); |
| 32718 | } |
| 32719 | bool ByteCodeEmitter::emitInitBitFieldIntAPS( uint32_t A0, uint32_t A1, SourceInfo L) { |
| 32720 | return emitOp<uint32_t, uint32_t>(OP_InitBitFieldIntAPS, A0, A1, L); |
| 32721 | } |
| 32722 | bool ByteCodeEmitter::emitInitBitFieldBool( uint32_t A0, uint32_t A1, SourceInfo L) { |
| 32723 | return emitOp<uint32_t, uint32_t>(OP_InitBitFieldBool, A0, A1, L); |
| 32724 | } |
| 32725 | #endif |
| 32726 | #ifdef GET_EVAL_IMPL |
| 32727 | bool EvalEmitter::emitInitBitFieldSint8( uint32_t A0, uint32_t A1, SourceInfo L) { |
| 32728 | if (!isActive()) return true; |
| 32729 | CurrentSource = L; |
| 32730 | return InitBitField<PT_Sint8>(S, CodePtr(), A0, A1); |
| 32731 | } |
| 32732 | bool EvalEmitter::emitInitBitFieldUint8( uint32_t A0, uint32_t A1, SourceInfo L) { |
| 32733 | if (!isActive()) return true; |
| 32734 | CurrentSource = L; |
| 32735 | return InitBitField<PT_Uint8>(S, CodePtr(), A0, A1); |
| 32736 | } |
| 32737 | bool EvalEmitter::emitInitBitFieldSint16( uint32_t A0, uint32_t A1, SourceInfo L) { |
| 32738 | if (!isActive()) return true; |
| 32739 | CurrentSource = L; |
| 32740 | return InitBitField<PT_Sint16>(S, CodePtr(), A0, A1); |
| 32741 | } |
| 32742 | bool EvalEmitter::emitInitBitFieldUint16( uint32_t A0, uint32_t A1, SourceInfo L) { |
| 32743 | if (!isActive()) return true; |
| 32744 | CurrentSource = L; |
| 32745 | return InitBitField<PT_Uint16>(S, CodePtr(), A0, A1); |
| 32746 | } |
| 32747 | bool EvalEmitter::emitInitBitFieldSint32( uint32_t A0, uint32_t A1, SourceInfo L) { |
| 32748 | if (!isActive()) return true; |
| 32749 | CurrentSource = L; |
| 32750 | return InitBitField<PT_Sint32>(S, CodePtr(), A0, A1); |
| 32751 | } |
| 32752 | bool EvalEmitter::emitInitBitFieldUint32( uint32_t A0, uint32_t A1, SourceInfo L) { |
| 32753 | if (!isActive()) return true; |
| 32754 | CurrentSource = L; |
| 32755 | return InitBitField<PT_Uint32>(S, CodePtr(), A0, A1); |
| 32756 | } |
| 32757 | bool EvalEmitter::emitInitBitFieldSint64( uint32_t A0, uint32_t A1, SourceInfo L) { |
| 32758 | if (!isActive()) return true; |
| 32759 | CurrentSource = L; |
| 32760 | return InitBitField<PT_Sint64>(S, CodePtr(), A0, A1); |
| 32761 | } |
| 32762 | bool EvalEmitter::emitInitBitFieldUint64( uint32_t A0, uint32_t A1, SourceInfo L) { |
| 32763 | if (!isActive()) return true; |
| 32764 | CurrentSource = L; |
| 32765 | return InitBitField<PT_Uint64>(S, CodePtr(), A0, A1); |
| 32766 | } |
| 32767 | bool EvalEmitter::emitInitBitFieldIntAP( uint32_t A0, uint32_t A1, SourceInfo L) { |
| 32768 | if (!isActive()) return true; |
| 32769 | CurrentSource = L; |
| 32770 | return InitBitField<PT_IntAP>(S, CodePtr(), A0, A1); |
| 32771 | } |
| 32772 | bool EvalEmitter::emitInitBitFieldIntAPS( uint32_t A0, uint32_t A1, SourceInfo L) { |
| 32773 | if (!isActive()) return true; |
| 32774 | CurrentSource = L; |
| 32775 | return InitBitField<PT_IntAPS>(S, CodePtr(), A0, A1); |
| 32776 | } |
| 32777 | bool EvalEmitter::emitInitBitFieldBool( uint32_t A0, uint32_t A1, SourceInfo L) { |
| 32778 | if (!isActive()) return true; |
| 32779 | CurrentSource = L; |
| 32780 | return InitBitField<PT_Bool>(S, CodePtr(), A0, A1); |
| 32781 | } |
| 32782 | #endif |
| 32783 | #ifdef GET_OPCODE_NAMES |
| 32784 | OP_InitBitFieldActivateSint8, |
| 32785 | OP_InitBitFieldActivateUint8, |
| 32786 | OP_InitBitFieldActivateSint16, |
| 32787 | OP_InitBitFieldActivateUint16, |
| 32788 | OP_InitBitFieldActivateSint32, |
| 32789 | OP_InitBitFieldActivateUint32, |
| 32790 | OP_InitBitFieldActivateSint64, |
| 32791 | OP_InitBitFieldActivateUint64, |
| 32792 | OP_InitBitFieldActivateIntAP, |
| 32793 | OP_InitBitFieldActivateIntAPS, |
| 32794 | OP_InitBitFieldActivateBool, |
| 32795 | #endif |
| 32796 | #ifdef GET_INTERPFN_LIST |
| 32797 | &Interp_InitBitFieldActivateSint8, |
| 32798 | &Interp_InitBitFieldActivateUint8, |
| 32799 | &Interp_InitBitFieldActivateSint16, |
| 32800 | &Interp_InitBitFieldActivateUint16, |
| 32801 | &Interp_InitBitFieldActivateSint32, |
| 32802 | &Interp_InitBitFieldActivateUint32, |
| 32803 | &Interp_InitBitFieldActivateSint64, |
| 32804 | &Interp_InitBitFieldActivateUint64, |
| 32805 | &Interp_InitBitFieldActivateIntAP, |
| 32806 | &Interp_InitBitFieldActivateIntAPS, |
| 32807 | &Interp_InitBitFieldActivateBool, |
| 32808 | #endif |
| 32809 | #ifdef GET_INTERPFN_DISPATCHERS |
| 32810 | PRESERVE_NONE |
| 32811 | static bool Interp_InitBitFieldActivateSint8(InterpState &S) { |
| 32812 | { |
| 32813 | CodePtr OpPC = S.PC; |
| 32814 | const auto V0 = ReadArg<uint32_t>(S, S.PC); |
| 32815 | const auto V1 = ReadArg<uint32_t>(S, S.PC); |
| 32816 | if (!InitBitFieldActivate<PT_Sint8>(S, OpPC, V0, V1)) return false; |
| 32817 | } |
| 32818 | #if USE_TAILCALLS |
| 32819 | MUSTTAIL return InterpNext(S); |
| 32820 | #else |
| 32821 | return true; |
| 32822 | #endif |
| 32823 | } |
| 32824 | PRESERVE_NONE |
| 32825 | static bool Interp_InitBitFieldActivateUint8(InterpState &S) { |
| 32826 | { |
| 32827 | CodePtr OpPC = S.PC; |
| 32828 | const auto V0 = ReadArg<uint32_t>(S, S.PC); |
| 32829 | const auto V1 = ReadArg<uint32_t>(S, S.PC); |
| 32830 | if (!InitBitFieldActivate<PT_Uint8>(S, OpPC, V0, V1)) return false; |
| 32831 | } |
| 32832 | #if USE_TAILCALLS |
| 32833 | MUSTTAIL return InterpNext(S); |
| 32834 | #else |
| 32835 | return true; |
| 32836 | #endif |
| 32837 | } |
| 32838 | PRESERVE_NONE |
| 32839 | static bool Interp_InitBitFieldActivateSint16(InterpState &S) { |
| 32840 | { |
| 32841 | CodePtr OpPC = S.PC; |
| 32842 | const auto V0 = ReadArg<uint32_t>(S, S.PC); |
| 32843 | const auto V1 = ReadArg<uint32_t>(S, S.PC); |
| 32844 | if (!InitBitFieldActivate<PT_Sint16>(S, OpPC, V0, V1)) return false; |
| 32845 | } |
| 32846 | #if USE_TAILCALLS |
| 32847 | MUSTTAIL return InterpNext(S); |
| 32848 | #else |
| 32849 | return true; |
| 32850 | #endif |
| 32851 | } |
| 32852 | PRESERVE_NONE |
| 32853 | static bool Interp_InitBitFieldActivateUint16(InterpState &S) { |
| 32854 | { |
| 32855 | CodePtr OpPC = S.PC; |
| 32856 | const auto V0 = ReadArg<uint32_t>(S, S.PC); |
| 32857 | const auto V1 = ReadArg<uint32_t>(S, S.PC); |
| 32858 | if (!InitBitFieldActivate<PT_Uint16>(S, OpPC, V0, V1)) return false; |
| 32859 | } |
| 32860 | #if USE_TAILCALLS |
| 32861 | MUSTTAIL return InterpNext(S); |
| 32862 | #else |
| 32863 | return true; |
| 32864 | #endif |
| 32865 | } |
| 32866 | PRESERVE_NONE |
| 32867 | static bool Interp_InitBitFieldActivateSint32(InterpState &S) { |
| 32868 | { |
| 32869 | CodePtr OpPC = S.PC; |
| 32870 | const auto V0 = ReadArg<uint32_t>(S, S.PC); |
| 32871 | const auto V1 = ReadArg<uint32_t>(S, S.PC); |
| 32872 | if (!InitBitFieldActivate<PT_Sint32>(S, OpPC, V0, V1)) return false; |
| 32873 | } |
| 32874 | #if USE_TAILCALLS |
| 32875 | MUSTTAIL return InterpNext(S); |
| 32876 | #else |
| 32877 | return true; |
| 32878 | #endif |
| 32879 | } |
| 32880 | PRESERVE_NONE |
| 32881 | static bool Interp_InitBitFieldActivateUint32(InterpState &S) { |
| 32882 | { |
| 32883 | CodePtr OpPC = S.PC; |
| 32884 | const auto V0 = ReadArg<uint32_t>(S, S.PC); |
| 32885 | const auto V1 = ReadArg<uint32_t>(S, S.PC); |
| 32886 | if (!InitBitFieldActivate<PT_Uint32>(S, OpPC, V0, V1)) return false; |
| 32887 | } |
| 32888 | #if USE_TAILCALLS |
| 32889 | MUSTTAIL return InterpNext(S); |
| 32890 | #else |
| 32891 | return true; |
| 32892 | #endif |
| 32893 | } |
| 32894 | PRESERVE_NONE |
| 32895 | static bool Interp_InitBitFieldActivateSint64(InterpState &S) { |
| 32896 | { |
| 32897 | CodePtr OpPC = S.PC; |
| 32898 | const auto V0 = ReadArg<uint32_t>(S, S.PC); |
| 32899 | const auto V1 = ReadArg<uint32_t>(S, S.PC); |
| 32900 | if (!InitBitFieldActivate<PT_Sint64>(S, OpPC, V0, V1)) return false; |
| 32901 | } |
| 32902 | #if USE_TAILCALLS |
| 32903 | MUSTTAIL return InterpNext(S); |
| 32904 | #else |
| 32905 | return true; |
| 32906 | #endif |
| 32907 | } |
| 32908 | PRESERVE_NONE |
| 32909 | static bool Interp_InitBitFieldActivateUint64(InterpState &S) { |
| 32910 | { |
| 32911 | CodePtr OpPC = S.PC; |
| 32912 | const auto V0 = ReadArg<uint32_t>(S, S.PC); |
| 32913 | const auto V1 = ReadArg<uint32_t>(S, S.PC); |
| 32914 | if (!InitBitFieldActivate<PT_Uint64>(S, OpPC, V0, V1)) return false; |
| 32915 | } |
| 32916 | #if USE_TAILCALLS |
| 32917 | MUSTTAIL return InterpNext(S); |
| 32918 | #else |
| 32919 | return true; |
| 32920 | #endif |
| 32921 | } |
| 32922 | PRESERVE_NONE |
| 32923 | static bool Interp_InitBitFieldActivateIntAP(InterpState &S) { |
| 32924 | { |
| 32925 | CodePtr OpPC = S.PC; |
| 32926 | const auto V0 = ReadArg<uint32_t>(S, S.PC); |
| 32927 | const auto V1 = ReadArg<uint32_t>(S, S.PC); |
| 32928 | if (!InitBitFieldActivate<PT_IntAP>(S, OpPC, V0, V1)) return false; |
| 32929 | } |
| 32930 | #if USE_TAILCALLS |
| 32931 | MUSTTAIL return InterpNext(S); |
| 32932 | #else |
| 32933 | return true; |
| 32934 | #endif |
| 32935 | } |
| 32936 | PRESERVE_NONE |
| 32937 | static bool Interp_InitBitFieldActivateIntAPS(InterpState &S) { |
| 32938 | { |
| 32939 | CodePtr OpPC = S.PC; |
| 32940 | const auto V0 = ReadArg<uint32_t>(S, S.PC); |
| 32941 | const auto V1 = ReadArg<uint32_t>(S, S.PC); |
| 32942 | if (!InitBitFieldActivate<PT_IntAPS>(S, OpPC, V0, V1)) return false; |
| 32943 | } |
| 32944 | #if USE_TAILCALLS |
| 32945 | MUSTTAIL return InterpNext(S); |
| 32946 | #else |
| 32947 | return true; |
| 32948 | #endif |
| 32949 | } |
| 32950 | PRESERVE_NONE |
| 32951 | static bool Interp_InitBitFieldActivateBool(InterpState &S) { |
| 32952 | { |
| 32953 | CodePtr OpPC = S.PC; |
| 32954 | const auto V0 = ReadArg<uint32_t>(S, S.PC); |
| 32955 | const auto V1 = ReadArg<uint32_t>(S, S.PC); |
| 32956 | if (!InitBitFieldActivate<PT_Bool>(S, OpPC, V0, V1)) return false; |
| 32957 | } |
| 32958 | #if USE_TAILCALLS |
| 32959 | MUSTTAIL return InterpNext(S); |
| 32960 | #else |
| 32961 | return true; |
| 32962 | #endif |
| 32963 | } |
| 32964 | #endif |
| 32965 | #ifdef GET_DISASM |
| 32966 | case OP_InitBitFieldActivateSint8: |
| 32967 | Text.Op = PrintName("InitBitFieldActivateSint8" ); |
| 32968 | Text.Args.push_back(printArg<uint32_t>(PC)); |
| 32969 | Text.Args.push_back(printArg<uint32_t>(PC)); |
| 32970 | break; |
| 32971 | case OP_InitBitFieldActivateUint8: |
| 32972 | Text.Op = PrintName("InitBitFieldActivateUint8" ); |
| 32973 | Text.Args.push_back(printArg<uint32_t>(PC)); |
| 32974 | Text.Args.push_back(printArg<uint32_t>(PC)); |
| 32975 | break; |
| 32976 | case OP_InitBitFieldActivateSint16: |
| 32977 | Text.Op = PrintName("InitBitFieldActivateSint16" ); |
| 32978 | Text.Args.push_back(printArg<uint32_t>(PC)); |
| 32979 | Text.Args.push_back(printArg<uint32_t>(PC)); |
| 32980 | break; |
| 32981 | case OP_InitBitFieldActivateUint16: |
| 32982 | Text.Op = PrintName("InitBitFieldActivateUint16" ); |
| 32983 | Text.Args.push_back(printArg<uint32_t>(PC)); |
| 32984 | Text.Args.push_back(printArg<uint32_t>(PC)); |
| 32985 | break; |
| 32986 | case OP_InitBitFieldActivateSint32: |
| 32987 | Text.Op = PrintName("InitBitFieldActivateSint32" ); |
| 32988 | Text.Args.push_back(printArg<uint32_t>(PC)); |
| 32989 | Text.Args.push_back(printArg<uint32_t>(PC)); |
| 32990 | break; |
| 32991 | case OP_InitBitFieldActivateUint32: |
| 32992 | Text.Op = PrintName("InitBitFieldActivateUint32" ); |
| 32993 | Text.Args.push_back(printArg<uint32_t>(PC)); |
| 32994 | Text.Args.push_back(printArg<uint32_t>(PC)); |
| 32995 | break; |
| 32996 | case OP_InitBitFieldActivateSint64: |
| 32997 | Text.Op = PrintName("InitBitFieldActivateSint64" ); |
| 32998 | Text.Args.push_back(printArg<uint32_t>(PC)); |
| 32999 | Text.Args.push_back(printArg<uint32_t>(PC)); |
| 33000 | break; |
| 33001 | case OP_InitBitFieldActivateUint64: |
| 33002 | Text.Op = PrintName("InitBitFieldActivateUint64" ); |
| 33003 | Text.Args.push_back(printArg<uint32_t>(PC)); |
| 33004 | Text.Args.push_back(printArg<uint32_t>(PC)); |
| 33005 | break; |
| 33006 | case OP_InitBitFieldActivateIntAP: |
| 33007 | Text.Op = PrintName("InitBitFieldActivateIntAP" ); |
| 33008 | Text.Args.push_back(printArg<uint32_t>(PC)); |
| 33009 | Text.Args.push_back(printArg<uint32_t>(PC)); |
| 33010 | break; |
| 33011 | case OP_InitBitFieldActivateIntAPS: |
| 33012 | Text.Op = PrintName("InitBitFieldActivateIntAPS" ); |
| 33013 | Text.Args.push_back(printArg<uint32_t>(PC)); |
| 33014 | Text.Args.push_back(printArg<uint32_t>(PC)); |
| 33015 | break; |
| 33016 | case OP_InitBitFieldActivateBool: |
| 33017 | Text.Op = PrintName("InitBitFieldActivateBool" ); |
| 33018 | Text.Args.push_back(printArg<uint32_t>(PC)); |
| 33019 | Text.Args.push_back(printArg<uint32_t>(PC)); |
| 33020 | break; |
| 33021 | #endif |
| 33022 | #if defined(GET_EVAL_PROTO) || defined(GET_LINK_PROTO) |
| 33023 | bool emitInitBitFieldActivateSint8( uint32_t , uint32_t , SourceInfo); |
| 33024 | bool emitInitBitFieldActivateUint8( uint32_t , uint32_t , SourceInfo); |
| 33025 | bool emitInitBitFieldActivateSint16( uint32_t , uint32_t , SourceInfo); |
| 33026 | bool emitInitBitFieldActivateUint16( uint32_t , uint32_t , SourceInfo); |
| 33027 | bool emitInitBitFieldActivateSint32( uint32_t , uint32_t , SourceInfo); |
| 33028 | bool emitInitBitFieldActivateUint32( uint32_t , uint32_t , SourceInfo); |
| 33029 | bool emitInitBitFieldActivateSint64( uint32_t , uint32_t , SourceInfo); |
| 33030 | bool emitInitBitFieldActivateUint64( uint32_t , uint32_t , SourceInfo); |
| 33031 | bool emitInitBitFieldActivateIntAP( uint32_t , uint32_t , SourceInfo); |
| 33032 | bool emitInitBitFieldActivateIntAPS( uint32_t , uint32_t , SourceInfo); |
| 33033 | bool emitInitBitFieldActivateBool( uint32_t , uint32_t , SourceInfo); |
| 33034 | #endif |
| 33035 | #if defined(GET_EVAL_PROTO) || defined(GET_LINK_PROTO) |
| 33036 | [[nodiscard]] bool emitInitBitFieldActivate(PrimType, uint32_t, uint32_t, SourceInfo I); |
| 33037 | #endif |
| 33038 | #if defined(GET_EVAL_IMPL) || defined(GET_LINK_IMPL) |
| 33039 | bool |
| 33040 | #if defined(GET_EVAL_IMPL) |
| 33041 | EvalEmitter |
| 33042 | #else |
| 33043 | ByteCodeEmitter |
| 33044 | #endif |
| 33045 | ::emitInitBitFieldActivate(PrimType T0, uint32_t A0, uint32_t A1, SourceInfo I) { |
| 33046 | switch (T0) { |
| 33047 | case PT_Sint8: |
| 33048 | return emitInitBitFieldActivateSint8(A0, A1, I); |
| 33049 | case PT_Uint8: |
| 33050 | return emitInitBitFieldActivateUint8(A0, A1, I); |
| 33051 | case PT_Sint16: |
| 33052 | return emitInitBitFieldActivateSint16(A0, A1, I); |
| 33053 | case PT_Uint16: |
| 33054 | return emitInitBitFieldActivateUint16(A0, A1, I); |
| 33055 | case PT_Sint32: |
| 33056 | return emitInitBitFieldActivateSint32(A0, A1, I); |
| 33057 | case PT_Uint32: |
| 33058 | return emitInitBitFieldActivateUint32(A0, A1, I); |
| 33059 | case PT_Sint64: |
| 33060 | return emitInitBitFieldActivateSint64(A0, A1, I); |
| 33061 | case PT_Uint64: |
| 33062 | return emitInitBitFieldActivateUint64(A0, A1, I); |
| 33063 | case PT_IntAP: |
| 33064 | return emitInitBitFieldActivateIntAP(A0, A1, I); |
| 33065 | case PT_IntAPS: |
| 33066 | return emitInitBitFieldActivateIntAPS(A0, A1, I); |
| 33067 | case PT_Bool: |
| 33068 | return emitInitBitFieldActivateBool(A0, A1, I); |
| 33069 | default: llvm_unreachable("invalid type: emitInitBitFieldActivate" ); |
| 33070 | } |
| 33071 | llvm_unreachable("invalid enum value" ); |
| 33072 | } |
| 33073 | #endif |
| 33074 | #ifdef GET_LINK_IMPL |
| 33075 | bool ByteCodeEmitter::emitInitBitFieldActivateSint8( uint32_t A0, uint32_t A1, SourceInfo L) { |
| 33076 | return emitOp<uint32_t, uint32_t>(OP_InitBitFieldActivateSint8, A0, A1, L); |
| 33077 | } |
| 33078 | bool ByteCodeEmitter::emitInitBitFieldActivateUint8( uint32_t A0, uint32_t A1, SourceInfo L) { |
| 33079 | return emitOp<uint32_t, uint32_t>(OP_InitBitFieldActivateUint8, A0, A1, L); |
| 33080 | } |
| 33081 | bool ByteCodeEmitter::emitInitBitFieldActivateSint16( uint32_t A0, uint32_t A1, SourceInfo L) { |
| 33082 | return emitOp<uint32_t, uint32_t>(OP_InitBitFieldActivateSint16, A0, A1, L); |
| 33083 | } |
| 33084 | bool ByteCodeEmitter::emitInitBitFieldActivateUint16( uint32_t A0, uint32_t A1, SourceInfo L) { |
| 33085 | return emitOp<uint32_t, uint32_t>(OP_InitBitFieldActivateUint16, A0, A1, L); |
| 33086 | } |
| 33087 | bool ByteCodeEmitter::emitInitBitFieldActivateSint32( uint32_t A0, uint32_t A1, SourceInfo L) { |
| 33088 | return emitOp<uint32_t, uint32_t>(OP_InitBitFieldActivateSint32, A0, A1, L); |
| 33089 | } |
| 33090 | bool ByteCodeEmitter::emitInitBitFieldActivateUint32( uint32_t A0, uint32_t A1, SourceInfo L) { |
| 33091 | return emitOp<uint32_t, uint32_t>(OP_InitBitFieldActivateUint32, A0, A1, L); |
| 33092 | } |
| 33093 | bool ByteCodeEmitter::emitInitBitFieldActivateSint64( uint32_t A0, uint32_t A1, SourceInfo L) { |
| 33094 | return emitOp<uint32_t, uint32_t>(OP_InitBitFieldActivateSint64, A0, A1, L); |
| 33095 | } |
| 33096 | bool ByteCodeEmitter::emitInitBitFieldActivateUint64( uint32_t A0, uint32_t A1, SourceInfo L) { |
| 33097 | return emitOp<uint32_t, uint32_t>(OP_InitBitFieldActivateUint64, A0, A1, L); |
| 33098 | } |
| 33099 | bool ByteCodeEmitter::emitInitBitFieldActivateIntAP( uint32_t A0, uint32_t A1, SourceInfo L) { |
| 33100 | return emitOp<uint32_t, uint32_t>(OP_InitBitFieldActivateIntAP, A0, A1, L); |
| 33101 | } |
| 33102 | bool ByteCodeEmitter::emitInitBitFieldActivateIntAPS( uint32_t A0, uint32_t A1, SourceInfo L) { |
| 33103 | return emitOp<uint32_t, uint32_t>(OP_InitBitFieldActivateIntAPS, A0, A1, L); |
| 33104 | } |
| 33105 | bool ByteCodeEmitter::emitInitBitFieldActivateBool( uint32_t A0, uint32_t A1, SourceInfo L) { |
| 33106 | return emitOp<uint32_t, uint32_t>(OP_InitBitFieldActivateBool, A0, A1, L); |
| 33107 | } |
| 33108 | #endif |
| 33109 | #ifdef GET_EVAL_IMPL |
| 33110 | bool EvalEmitter::emitInitBitFieldActivateSint8( uint32_t A0, uint32_t A1, SourceInfo L) { |
| 33111 | if (!isActive()) return true; |
| 33112 | CurrentSource = L; |
| 33113 | return InitBitFieldActivate<PT_Sint8>(S, CodePtr(), A0, A1); |
| 33114 | } |
| 33115 | bool EvalEmitter::emitInitBitFieldActivateUint8( uint32_t A0, uint32_t A1, SourceInfo L) { |
| 33116 | if (!isActive()) return true; |
| 33117 | CurrentSource = L; |
| 33118 | return InitBitFieldActivate<PT_Uint8>(S, CodePtr(), A0, A1); |
| 33119 | } |
| 33120 | bool EvalEmitter::emitInitBitFieldActivateSint16( uint32_t A0, uint32_t A1, SourceInfo L) { |
| 33121 | if (!isActive()) return true; |
| 33122 | CurrentSource = L; |
| 33123 | return InitBitFieldActivate<PT_Sint16>(S, CodePtr(), A0, A1); |
| 33124 | } |
| 33125 | bool EvalEmitter::emitInitBitFieldActivateUint16( uint32_t A0, uint32_t A1, SourceInfo L) { |
| 33126 | if (!isActive()) return true; |
| 33127 | CurrentSource = L; |
| 33128 | return InitBitFieldActivate<PT_Uint16>(S, CodePtr(), A0, A1); |
| 33129 | } |
| 33130 | bool EvalEmitter::emitInitBitFieldActivateSint32( uint32_t A0, uint32_t A1, SourceInfo L) { |
| 33131 | if (!isActive()) return true; |
| 33132 | CurrentSource = L; |
| 33133 | return InitBitFieldActivate<PT_Sint32>(S, CodePtr(), A0, A1); |
| 33134 | } |
| 33135 | bool EvalEmitter::emitInitBitFieldActivateUint32( uint32_t A0, uint32_t A1, SourceInfo L) { |
| 33136 | if (!isActive()) return true; |
| 33137 | CurrentSource = L; |
| 33138 | return InitBitFieldActivate<PT_Uint32>(S, CodePtr(), A0, A1); |
| 33139 | } |
| 33140 | bool EvalEmitter::emitInitBitFieldActivateSint64( uint32_t A0, uint32_t A1, SourceInfo L) { |
| 33141 | if (!isActive()) return true; |
| 33142 | CurrentSource = L; |
| 33143 | return InitBitFieldActivate<PT_Sint64>(S, CodePtr(), A0, A1); |
| 33144 | } |
| 33145 | bool EvalEmitter::emitInitBitFieldActivateUint64( uint32_t A0, uint32_t A1, SourceInfo L) { |
| 33146 | if (!isActive()) return true; |
| 33147 | CurrentSource = L; |
| 33148 | return InitBitFieldActivate<PT_Uint64>(S, CodePtr(), A0, A1); |
| 33149 | } |
| 33150 | bool EvalEmitter::emitInitBitFieldActivateIntAP( uint32_t A0, uint32_t A1, SourceInfo L) { |
| 33151 | if (!isActive()) return true; |
| 33152 | CurrentSource = L; |
| 33153 | return InitBitFieldActivate<PT_IntAP>(S, CodePtr(), A0, A1); |
| 33154 | } |
| 33155 | bool EvalEmitter::emitInitBitFieldActivateIntAPS( uint32_t A0, uint32_t A1, SourceInfo L) { |
| 33156 | if (!isActive()) return true; |
| 33157 | CurrentSource = L; |
| 33158 | return InitBitFieldActivate<PT_IntAPS>(S, CodePtr(), A0, A1); |
| 33159 | } |
| 33160 | bool EvalEmitter::emitInitBitFieldActivateBool( uint32_t A0, uint32_t A1, SourceInfo L) { |
| 33161 | if (!isActive()) return true; |
| 33162 | CurrentSource = L; |
| 33163 | return InitBitFieldActivate<PT_Bool>(S, CodePtr(), A0, A1); |
| 33164 | } |
| 33165 | #endif |
| 33166 | #ifdef GET_OPCODE_NAMES |
| 33167 | OP_InitElemSint8, |
| 33168 | OP_InitElemUint8, |
| 33169 | OP_InitElemSint16, |
| 33170 | OP_InitElemUint16, |
| 33171 | OP_InitElemSint32, |
| 33172 | OP_InitElemUint32, |
| 33173 | OP_InitElemSint64, |
| 33174 | OP_InitElemUint64, |
| 33175 | OP_InitElemIntAP, |
| 33176 | OP_InitElemIntAPS, |
| 33177 | OP_InitElemBool, |
| 33178 | OP_InitElemFixedPoint, |
| 33179 | OP_InitElemPtr, |
| 33180 | OP_InitElemMemberPtr, |
| 33181 | OP_InitElemFloat, |
| 33182 | OP_InitElemReflect, |
| 33183 | #endif |
| 33184 | #ifdef GET_INTERPFN_LIST |
| 33185 | &Interp_InitElemSint8, |
| 33186 | &Interp_InitElemUint8, |
| 33187 | &Interp_InitElemSint16, |
| 33188 | &Interp_InitElemUint16, |
| 33189 | &Interp_InitElemSint32, |
| 33190 | &Interp_InitElemUint32, |
| 33191 | &Interp_InitElemSint64, |
| 33192 | &Interp_InitElemUint64, |
| 33193 | &Interp_InitElemIntAP, |
| 33194 | &Interp_InitElemIntAPS, |
| 33195 | &Interp_InitElemBool, |
| 33196 | &Interp_InitElemFixedPoint, |
| 33197 | &Interp_InitElemPtr, |
| 33198 | &Interp_InitElemMemberPtr, |
| 33199 | &Interp_InitElemFloat, |
| 33200 | &Interp_InitElemReflect, |
| 33201 | #endif |
| 33202 | #ifdef GET_INTERPFN_DISPATCHERS |
| 33203 | PRESERVE_NONE |
| 33204 | static bool Interp_InitElemSint8(InterpState &S) { |
| 33205 | { |
| 33206 | CodePtr OpPC = S.PC; |
| 33207 | const auto V0 = ReadArg<uint32_t>(S, S.PC); |
| 33208 | if (!InitElem<PT_Sint8>(S, OpPC, V0)) return false; |
| 33209 | } |
| 33210 | #if USE_TAILCALLS |
| 33211 | MUSTTAIL return InterpNext(S); |
| 33212 | #else |
| 33213 | return true; |
| 33214 | #endif |
| 33215 | } |
| 33216 | PRESERVE_NONE |
| 33217 | static bool Interp_InitElemUint8(InterpState &S) { |
| 33218 | { |
| 33219 | CodePtr OpPC = S.PC; |
| 33220 | const auto V0 = ReadArg<uint32_t>(S, S.PC); |
| 33221 | if (!InitElem<PT_Uint8>(S, OpPC, V0)) return false; |
| 33222 | } |
| 33223 | #if USE_TAILCALLS |
| 33224 | MUSTTAIL return InterpNext(S); |
| 33225 | #else |
| 33226 | return true; |
| 33227 | #endif |
| 33228 | } |
| 33229 | PRESERVE_NONE |
| 33230 | static bool Interp_InitElemSint16(InterpState &S) { |
| 33231 | { |
| 33232 | CodePtr OpPC = S.PC; |
| 33233 | const auto V0 = ReadArg<uint32_t>(S, S.PC); |
| 33234 | if (!InitElem<PT_Sint16>(S, OpPC, V0)) return false; |
| 33235 | } |
| 33236 | #if USE_TAILCALLS |
| 33237 | MUSTTAIL return InterpNext(S); |
| 33238 | #else |
| 33239 | return true; |
| 33240 | #endif |
| 33241 | } |
| 33242 | PRESERVE_NONE |
| 33243 | static bool Interp_InitElemUint16(InterpState &S) { |
| 33244 | { |
| 33245 | CodePtr OpPC = S.PC; |
| 33246 | const auto V0 = ReadArg<uint32_t>(S, S.PC); |
| 33247 | if (!InitElem<PT_Uint16>(S, OpPC, V0)) return false; |
| 33248 | } |
| 33249 | #if USE_TAILCALLS |
| 33250 | MUSTTAIL return InterpNext(S); |
| 33251 | #else |
| 33252 | return true; |
| 33253 | #endif |
| 33254 | } |
| 33255 | PRESERVE_NONE |
| 33256 | static bool Interp_InitElemSint32(InterpState &S) { |
| 33257 | { |
| 33258 | CodePtr OpPC = S.PC; |
| 33259 | const auto V0 = ReadArg<uint32_t>(S, S.PC); |
| 33260 | if (!InitElem<PT_Sint32>(S, OpPC, V0)) return false; |
| 33261 | } |
| 33262 | #if USE_TAILCALLS |
| 33263 | MUSTTAIL return InterpNext(S); |
| 33264 | #else |
| 33265 | return true; |
| 33266 | #endif |
| 33267 | } |
| 33268 | PRESERVE_NONE |
| 33269 | static bool Interp_InitElemUint32(InterpState &S) { |
| 33270 | { |
| 33271 | CodePtr OpPC = S.PC; |
| 33272 | const auto V0 = ReadArg<uint32_t>(S, S.PC); |
| 33273 | if (!InitElem<PT_Uint32>(S, OpPC, V0)) return false; |
| 33274 | } |
| 33275 | #if USE_TAILCALLS |
| 33276 | MUSTTAIL return InterpNext(S); |
| 33277 | #else |
| 33278 | return true; |
| 33279 | #endif |
| 33280 | } |
| 33281 | PRESERVE_NONE |
| 33282 | static bool Interp_InitElemSint64(InterpState &S) { |
| 33283 | { |
| 33284 | CodePtr OpPC = S.PC; |
| 33285 | const auto V0 = ReadArg<uint32_t>(S, S.PC); |
| 33286 | if (!InitElem<PT_Sint64>(S, OpPC, V0)) return false; |
| 33287 | } |
| 33288 | #if USE_TAILCALLS |
| 33289 | MUSTTAIL return InterpNext(S); |
| 33290 | #else |
| 33291 | return true; |
| 33292 | #endif |
| 33293 | } |
| 33294 | PRESERVE_NONE |
| 33295 | static bool Interp_InitElemUint64(InterpState &S) { |
| 33296 | { |
| 33297 | CodePtr OpPC = S.PC; |
| 33298 | const auto V0 = ReadArg<uint32_t>(S, S.PC); |
| 33299 | if (!InitElem<PT_Uint64>(S, OpPC, V0)) return false; |
| 33300 | } |
| 33301 | #if USE_TAILCALLS |
| 33302 | MUSTTAIL return InterpNext(S); |
| 33303 | #else |
| 33304 | return true; |
| 33305 | #endif |
| 33306 | } |
| 33307 | PRESERVE_NONE |
| 33308 | static bool Interp_InitElemIntAP(InterpState &S) { |
| 33309 | { |
| 33310 | CodePtr OpPC = S.PC; |
| 33311 | const auto V0 = ReadArg<uint32_t>(S, S.PC); |
| 33312 | if (!InitElem<PT_IntAP>(S, OpPC, V0)) return false; |
| 33313 | } |
| 33314 | #if USE_TAILCALLS |
| 33315 | MUSTTAIL return InterpNext(S); |
| 33316 | #else |
| 33317 | return true; |
| 33318 | #endif |
| 33319 | } |
| 33320 | PRESERVE_NONE |
| 33321 | static bool Interp_InitElemIntAPS(InterpState &S) { |
| 33322 | { |
| 33323 | CodePtr OpPC = S.PC; |
| 33324 | const auto V0 = ReadArg<uint32_t>(S, S.PC); |
| 33325 | if (!InitElem<PT_IntAPS>(S, OpPC, V0)) return false; |
| 33326 | } |
| 33327 | #if USE_TAILCALLS |
| 33328 | MUSTTAIL return InterpNext(S); |
| 33329 | #else |
| 33330 | return true; |
| 33331 | #endif |
| 33332 | } |
| 33333 | PRESERVE_NONE |
| 33334 | static bool Interp_InitElemBool(InterpState &S) { |
| 33335 | { |
| 33336 | CodePtr OpPC = S.PC; |
| 33337 | const auto V0 = ReadArg<uint32_t>(S, S.PC); |
| 33338 | if (!InitElem<PT_Bool>(S, OpPC, V0)) return false; |
| 33339 | } |
| 33340 | #if USE_TAILCALLS |
| 33341 | MUSTTAIL return InterpNext(S); |
| 33342 | #else |
| 33343 | return true; |
| 33344 | #endif |
| 33345 | } |
| 33346 | PRESERVE_NONE |
| 33347 | static bool Interp_InitElemFixedPoint(InterpState &S) { |
| 33348 | { |
| 33349 | CodePtr OpPC = S.PC; |
| 33350 | const auto V0 = ReadArg<uint32_t>(S, S.PC); |
| 33351 | if (!InitElem<PT_FixedPoint>(S, OpPC, V0)) return false; |
| 33352 | } |
| 33353 | #if USE_TAILCALLS |
| 33354 | MUSTTAIL return InterpNext(S); |
| 33355 | #else |
| 33356 | return true; |
| 33357 | #endif |
| 33358 | } |
| 33359 | PRESERVE_NONE |
| 33360 | static bool Interp_InitElemPtr(InterpState &S) { |
| 33361 | { |
| 33362 | CodePtr OpPC = S.PC; |
| 33363 | const auto V0 = ReadArg<uint32_t>(S, S.PC); |
| 33364 | if (!InitElem<PT_Ptr>(S, OpPC, V0)) return false; |
| 33365 | } |
| 33366 | #if USE_TAILCALLS |
| 33367 | MUSTTAIL return InterpNext(S); |
| 33368 | #else |
| 33369 | return true; |
| 33370 | #endif |
| 33371 | } |
| 33372 | PRESERVE_NONE |
| 33373 | static bool Interp_InitElemMemberPtr(InterpState &S) { |
| 33374 | { |
| 33375 | CodePtr OpPC = S.PC; |
| 33376 | const auto V0 = ReadArg<uint32_t>(S, S.PC); |
| 33377 | if (!InitElem<PT_MemberPtr>(S, OpPC, V0)) return false; |
| 33378 | } |
| 33379 | #if USE_TAILCALLS |
| 33380 | MUSTTAIL return InterpNext(S); |
| 33381 | #else |
| 33382 | return true; |
| 33383 | #endif |
| 33384 | } |
| 33385 | PRESERVE_NONE |
| 33386 | static bool Interp_InitElemFloat(InterpState &S) { |
| 33387 | { |
| 33388 | CodePtr OpPC = S.PC; |
| 33389 | const auto V0 = ReadArg<uint32_t>(S, S.PC); |
| 33390 | if (!InitElem<PT_Float>(S, OpPC, V0)) return false; |
| 33391 | } |
| 33392 | #if USE_TAILCALLS |
| 33393 | MUSTTAIL return InterpNext(S); |
| 33394 | #else |
| 33395 | return true; |
| 33396 | #endif |
| 33397 | } |
| 33398 | PRESERVE_NONE |
| 33399 | static bool Interp_InitElemReflect(InterpState &S) { |
| 33400 | { |
| 33401 | CodePtr OpPC = S.PC; |
| 33402 | const auto V0 = ReadArg<uint32_t>(S, S.PC); |
| 33403 | if (!InitElem<PT_Reflect>(S, OpPC, V0)) return false; |
| 33404 | } |
| 33405 | #if USE_TAILCALLS |
| 33406 | MUSTTAIL return InterpNext(S); |
| 33407 | #else |
| 33408 | return true; |
| 33409 | #endif |
| 33410 | } |
| 33411 | #endif |
| 33412 | #ifdef GET_DISASM |
| 33413 | case OP_InitElemSint8: |
| 33414 | Text.Op = PrintName("InitElemSint8" ); |
| 33415 | Text.Args.push_back(printArg<uint32_t>(PC)); |
| 33416 | break; |
| 33417 | case OP_InitElemUint8: |
| 33418 | Text.Op = PrintName("InitElemUint8" ); |
| 33419 | Text.Args.push_back(printArg<uint32_t>(PC)); |
| 33420 | break; |
| 33421 | case OP_InitElemSint16: |
| 33422 | Text.Op = PrintName("InitElemSint16" ); |
| 33423 | Text.Args.push_back(printArg<uint32_t>(PC)); |
| 33424 | break; |
| 33425 | case OP_InitElemUint16: |
| 33426 | Text.Op = PrintName("InitElemUint16" ); |
| 33427 | Text.Args.push_back(printArg<uint32_t>(PC)); |
| 33428 | break; |
| 33429 | case OP_InitElemSint32: |
| 33430 | Text.Op = PrintName("InitElemSint32" ); |
| 33431 | Text.Args.push_back(printArg<uint32_t>(PC)); |
| 33432 | break; |
| 33433 | case OP_InitElemUint32: |
| 33434 | Text.Op = PrintName("InitElemUint32" ); |
| 33435 | Text.Args.push_back(printArg<uint32_t>(PC)); |
| 33436 | break; |
| 33437 | case OP_InitElemSint64: |
| 33438 | Text.Op = PrintName("InitElemSint64" ); |
| 33439 | Text.Args.push_back(printArg<uint32_t>(PC)); |
| 33440 | break; |
| 33441 | case OP_InitElemUint64: |
| 33442 | Text.Op = PrintName("InitElemUint64" ); |
| 33443 | Text.Args.push_back(printArg<uint32_t>(PC)); |
| 33444 | break; |
| 33445 | case OP_InitElemIntAP: |
| 33446 | Text.Op = PrintName("InitElemIntAP" ); |
| 33447 | Text.Args.push_back(printArg<uint32_t>(PC)); |
| 33448 | break; |
| 33449 | case OP_InitElemIntAPS: |
| 33450 | Text.Op = PrintName("InitElemIntAPS" ); |
| 33451 | Text.Args.push_back(printArg<uint32_t>(PC)); |
| 33452 | break; |
| 33453 | case OP_InitElemBool: |
| 33454 | Text.Op = PrintName("InitElemBool" ); |
| 33455 | Text.Args.push_back(printArg<uint32_t>(PC)); |
| 33456 | break; |
| 33457 | case OP_InitElemFixedPoint: |
| 33458 | Text.Op = PrintName("InitElemFixedPoint" ); |
| 33459 | Text.Args.push_back(printArg<uint32_t>(PC)); |
| 33460 | break; |
| 33461 | case OP_InitElemPtr: |
| 33462 | Text.Op = PrintName("InitElemPtr" ); |
| 33463 | Text.Args.push_back(printArg<uint32_t>(PC)); |
| 33464 | break; |
| 33465 | case OP_InitElemMemberPtr: |
| 33466 | Text.Op = PrintName("InitElemMemberPtr" ); |
| 33467 | Text.Args.push_back(printArg<uint32_t>(PC)); |
| 33468 | break; |
| 33469 | case OP_InitElemFloat: |
| 33470 | Text.Op = PrintName("InitElemFloat" ); |
| 33471 | Text.Args.push_back(printArg<uint32_t>(PC)); |
| 33472 | break; |
| 33473 | case OP_InitElemReflect: |
| 33474 | Text.Op = PrintName("InitElemReflect" ); |
| 33475 | Text.Args.push_back(printArg<uint32_t>(PC)); |
| 33476 | break; |
| 33477 | #endif |
| 33478 | #if defined(GET_EVAL_PROTO) || defined(GET_LINK_PROTO) |
| 33479 | bool emitInitElemSint8( uint32_t , SourceInfo); |
| 33480 | bool emitInitElemUint8( uint32_t , SourceInfo); |
| 33481 | bool emitInitElemSint16( uint32_t , SourceInfo); |
| 33482 | bool emitInitElemUint16( uint32_t , SourceInfo); |
| 33483 | bool emitInitElemSint32( uint32_t , SourceInfo); |
| 33484 | bool emitInitElemUint32( uint32_t , SourceInfo); |
| 33485 | bool emitInitElemSint64( uint32_t , SourceInfo); |
| 33486 | bool emitInitElemUint64( uint32_t , SourceInfo); |
| 33487 | bool emitInitElemIntAP( uint32_t , SourceInfo); |
| 33488 | bool emitInitElemIntAPS( uint32_t , SourceInfo); |
| 33489 | bool emitInitElemBool( uint32_t , SourceInfo); |
| 33490 | bool emitInitElemFixedPoint( uint32_t , SourceInfo); |
| 33491 | bool emitInitElemPtr( uint32_t , SourceInfo); |
| 33492 | bool emitInitElemMemberPtr( uint32_t , SourceInfo); |
| 33493 | bool emitInitElemFloat( uint32_t , SourceInfo); |
| 33494 | bool emitInitElemReflect( uint32_t , SourceInfo); |
| 33495 | #endif |
| 33496 | #if defined(GET_EVAL_PROTO) || defined(GET_LINK_PROTO) |
| 33497 | [[nodiscard]] bool emitInitElem(PrimType, uint32_t, SourceInfo I); |
| 33498 | #endif |
| 33499 | #if defined(GET_EVAL_IMPL) || defined(GET_LINK_IMPL) |
| 33500 | bool |
| 33501 | #if defined(GET_EVAL_IMPL) |
| 33502 | EvalEmitter |
| 33503 | #else |
| 33504 | ByteCodeEmitter |
| 33505 | #endif |
| 33506 | ::emitInitElem(PrimType T0, uint32_t A0, SourceInfo I) { |
| 33507 | switch (T0) { |
| 33508 | case PT_Sint8: |
| 33509 | return emitInitElemSint8(A0, I); |
| 33510 | case PT_Uint8: |
| 33511 | return emitInitElemUint8(A0, I); |
| 33512 | case PT_Sint16: |
| 33513 | return emitInitElemSint16(A0, I); |
| 33514 | case PT_Uint16: |
| 33515 | return emitInitElemUint16(A0, I); |
| 33516 | case PT_Sint32: |
| 33517 | return emitInitElemSint32(A0, I); |
| 33518 | case PT_Uint32: |
| 33519 | return emitInitElemUint32(A0, I); |
| 33520 | case PT_Sint64: |
| 33521 | return emitInitElemSint64(A0, I); |
| 33522 | case PT_Uint64: |
| 33523 | return emitInitElemUint64(A0, I); |
| 33524 | case PT_IntAP: |
| 33525 | return emitInitElemIntAP(A0, I); |
| 33526 | case PT_IntAPS: |
| 33527 | return emitInitElemIntAPS(A0, I); |
| 33528 | case PT_Bool: |
| 33529 | return emitInitElemBool(A0, I); |
| 33530 | case PT_FixedPoint: |
| 33531 | return emitInitElemFixedPoint(A0, I); |
| 33532 | case PT_Ptr: |
| 33533 | return emitInitElemPtr(A0, I); |
| 33534 | case PT_MemberPtr: |
| 33535 | return emitInitElemMemberPtr(A0, I); |
| 33536 | case PT_Float: |
| 33537 | return emitInitElemFloat(A0, I); |
| 33538 | case PT_Reflect: |
| 33539 | return emitInitElemReflect(A0, I); |
| 33540 | } |
| 33541 | llvm_unreachable("invalid enum value" ); |
| 33542 | } |
| 33543 | #endif |
| 33544 | #ifdef GET_LINK_IMPL |
| 33545 | bool ByteCodeEmitter::emitInitElemSint8( uint32_t A0, SourceInfo L) { |
| 33546 | return emitOp<uint32_t>(OP_InitElemSint8, A0, L); |
| 33547 | } |
| 33548 | bool ByteCodeEmitter::emitInitElemUint8( uint32_t A0, SourceInfo L) { |
| 33549 | return emitOp<uint32_t>(OP_InitElemUint8, A0, L); |
| 33550 | } |
| 33551 | bool ByteCodeEmitter::emitInitElemSint16( uint32_t A0, SourceInfo L) { |
| 33552 | return emitOp<uint32_t>(OP_InitElemSint16, A0, L); |
| 33553 | } |
| 33554 | bool ByteCodeEmitter::emitInitElemUint16( uint32_t A0, SourceInfo L) { |
| 33555 | return emitOp<uint32_t>(OP_InitElemUint16, A0, L); |
| 33556 | } |
| 33557 | bool ByteCodeEmitter::emitInitElemSint32( uint32_t A0, SourceInfo L) { |
| 33558 | return emitOp<uint32_t>(OP_InitElemSint32, A0, L); |
| 33559 | } |
| 33560 | bool ByteCodeEmitter::emitInitElemUint32( uint32_t A0, SourceInfo L) { |
| 33561 | return emitOp<uint32_t>(OP_InitElemUint32, A0, L); |
| 33562 | } |
| 33563 | bool ByteCodeEmitter::emitInitElemSint64( uint32_t A0, SourceInfo L) { |
| 33564 | return emitOp<uint32_t>(OP_InitElemSint64, A0, L); |
| 33565 | } |
| 33566 | bool ByteCodeEmitter::emitInitElemUint64( uint32_t A0, SourceInfo L) { |
| 33567 | return emitOp<uint32_t>(OP_InitElemUint64, A0, L); |
| 33568 | } |
| 33569 | bool ByteCodeEmitter::emitInitElemIntAP( uint32_t A0, SourceInfo L) { |
| 33570 | return emitOp<uint32_t>(OP_InitElemIntAP, A0, L); |
| 33571 | } |
| 33572 | bool ByteCodeEmitter::emitInitElemIntAPS( uint32_t A0, SourceInfo L) { |
| 33573 | return emitOp<uint32_t>(OP_InitElemIntAPS, A0, L); |
| 33574 | } |
| 33575 | bool ByteCodeEmitter::emitInitElemBool( uint32_t A0, SourceInfo L) { |
| 33576 | return emitOp<uint32_t>(OP_InitElemBool, A0, L); |
| 33577 | } |
| 33578 | bool ByteCodeEmitter::emitInitElemFixedPoint( uint32_t A0, SourceInfo L) { |
| 33579 | return emitOp<uint32_t>(OP_InitElemFixedPoint, A0, L); |
| 33580 | } |
| 33581 | bool ByteCodeEmitter::emitInitElemPtr( uint32_t A0, SourceInfo L) { |
| 33582 | return emitOp<uint32_t>(OP_InitElemPtr, A0, L); |
| 33583 | } |
| 33584 | bool ByteCodeEmitter::emitInitElemMemberPtr( uint32_t A0, SourceInfo L) { |
| 33585 | return emitOp<uint32_t>(OP_InitElemMemberPtr, A0, L); |
| 33586 | } |
| 33587 | bool ByteCodeEmitter::emitInitElemFloat( uint32_t A0, SourceInfo L) { |
| 33588 | return emitOp<uint32_t>(OP_InitElemFloat, A0, L); |
| 33589 | } |
| 33590 | bool ByteCodeEmitter::emitInitElemReflect( uint32_t A0, SourceInfo L) { |
| 33591 | return emitOp<uint32_t>(OP_InitElemReflect, A0, L); |
| 33592 | } |
| 33593 | #endif |
| 33594 | #ifdef GET_EVAL_IMPL |
| 33595 | bool EvalEmitter::emitInitElemSint8( uint32_t A0, SourceInfo L) { |
| 33596 | if (!isActive()) return true; |
| 33597 | CurrentSource = L; |
| 33598 | return InitElem<PT_Sint8>(S, CodePtr(), A0); |
| 33599 | } |
| 33600 | bool EvalEmitter::emitInitElemUint8( uint32_t A0, SourceInfo L) { |
| 33601 | if (!isActive()) return true; |
| 33602 | CurrentSource = L; |
| 33603 | return InitElem<PT_Uint8>(S, CodePtr(), A0); |
| 33604 | } |
| 33605 | bool EvalEmitter::emitInitElemSint16( uint32_t A0, SourceInfo L) { |
| 33606 | if (!isActive()) return true; |
| 33607 | CurrentSource = L; |
| 33608 | return InitElem<PT_Sint16>(S, CodePtr(), A0); |
| 33609 | } |
| 33610 | bool EvalEmitter::emitInitElemUint16( uint32_t A0, SourceInfo L) { |
| 33611 | if (!isActive()) return true; |
| 33612 | CurrentSource = L; |
| 33613 | return InitElem<PT_Uint16>(S, CodePtr(), A0); |
| 33614 | } |
| 33615 | bool EvalEmitter::emitInitElemSint32( uint32_t A0, SourceInfo L) { |
| 33616 | if (!isActive()) return true; |
| 33617 | CurrentSource = L; |
| 33618 | return InitElem<PT_Sint32>(S, CodePtr(), A0); |
| 33619 | } |
| 33620 | bool EvalEmitter::emitInitElemUint32( uint32_t A0, SourceInfo L) { |
| 33621 | if (!isActive()) return true; |
| 33622 | CurrentSource = L; |
| 33623 | return InitElem<PT_Uint32>(S, CodePtr(), A0); |
| 33624 | } |
| 33625 | bool EvalEmitter::emitInitElemSint64( uint32_t A0, SourceInfo L) { |
| 33626 | if (!isActive()) return true; |
| 33627 | CurrentSource = L; |
| 33628 | return InitElem<PT_Sint64>(S, CodePtr(), A0); |
| 33629 | } |
| 33630 | bool EvalEmitter::emitInitElemUint64( uint32_t A0, SourceInfo L) { |
| 33631 | if (!isActive()) return true; |
| 33632 | CurrentSource = L; |
| 33633 | return InitElem<PT_Uint64>(S, CodePtr(), A0); |
| 33634 | } |
| 33635 | bool EvalEmitter::emitInitElemIntAP( uint32_t A0, SourceInfo L) { |
| 33636 | if (!isActive()) return true; |
| 33637 | CurrentSource = L; |
| 33638 | return InitElem<PT_IntAP>(S, CodePtr(), A0); |
| 33639 | } |
| 33640 | bool EvalEmitter::emitInitElemIntAPS( uint32_t A0, SourceInfo L) { |
| 33641 | if (!isActive()) return true; |
| 33642 | CurrentSource = L; |
| 33643 | return InitElem<PT_IntAPS>(S, CodePtr(), A0); |
| 33644 | } |
| 33645 | bool EvalEmitter::emitInitElemBool( uint32_t A0, SourceInfo L) { |
| 33646 | if (!isActive()) return true; |
| 33647 | CurrentSource = L; |
| 33648 | return InitElem<PT_Bool>(S, CodePtr(), A0); |
| 33649 | } |
| 33650 | bool EvalEmitter::emitInitElemFixedPoint( uint32_t A0, SourceInfo L) { |
| 33651 | if (!isActive()) return true; |
| 33652 | CurrentSource = L; |
| 33653 | return InitElem<PT_FixedPoint>(S, CodePtr(), A0); |
| 33654 | } |
| 33655 | bool EvalEmitter::emitInitElemPtr( uint32_t A0, SourceInfo L) { |
| 33656 | if (!isActive()) return true; |
| 33657 | CurrentSource = L; |
| 33658 | return InitElem<PT_Ptr>(S, CodePtr(), A0); |
| 33659 | } |
| 33660 | bool EvalEmitter::emitInitElemMemberPtr( uint32_t A0, SourceInfo L) { |
| 33661 | if (!isActive()) return true; |
| 33662 | CurrentSource = L; |
| 33663 | return InitElem<PT_MemberPtr>(S, CodePtr(), A0); |
| 33664 | } |
| 33665 | bool EvalEmitter::emitInitElemFloat( uint32_t A0, SourceInfo L) { |
| 33666 | if (!isActive()) return true; |
| 33667 | CurrentSource = L; |
| 33668 | return InitElem<PT_Float>(S, CodePtr(), A0); |
| 33669 | } |
| 33670 | bool EvalEmitter::emitInitElemReflect( uint32_t A0, SourceInfo L) { |
| 33671 | if (!isActive()) return true; |
| 33672 | CurrentSource = L; |
| 33673 | return InitElem<PT_Reflect>(S, CodePtr(), A0); |
| 33674 | } |
| 33675 | #endif |
| 33676 | #ifdef GET_OPCODE_NAMES |
| 33677 | OP_InitElemPopSint8, |
| 33678 | OP_InitElemPopUint8, |
| 33679 | OP_InitElemPopSint16, |
| 33680 | OP_InitElemPopUint16, |
| 33681 | OP_InitElemPopSint32, |
| 33682 | OP_InitElemPopUint32, |
| 33683 | OP_InitElemPopSint64, |
| 33684 | OP_InitElemPopUint64, |
| 33685 | OP_InitElemPopIntAP, |
| 33686 | OP_InitElemPopIntAPS, |
| 33687 | OP_InitElemPopBool, |
| 33688 | OP_InitElemPopFixedPoint, |
| 33689 | OP_InitElemPopPtr, |
| 33690 | OP_InitElemPopMemberPtr, |
| 33691 | OP_InitElemPopFloat, |
| 33692 | OP_InitElemPopReflect, |
| 33693 | #endif |
| 33694 | #ifdef GET_INTERPFN_LIST |
| 33695 | &Interp_InitElemPopSint8, |
| 33696 | &Interp_InitElemPopUint8, |
| 33697 | &Interp_InitElemPopSint16, |
| 33698 | &Interp_InitElemPopUint16, |
| 33699 | &Interp_InitElemPopSint32, |
| 33700 | &Interp_InitElemPopUint32, |
| 33701 | &Interp_InitElemPopSint64, |
| 33702 | &Interp_InitElemPopUint64, |
| 33703 | &Interp_InitElemPopIntAP, |
| 33704 | &Interp_InitElemPopIntAPS, |
| 33705 | &Interp_InitElemPopBool, |
| 33706 | &Interp_InitElemPopFixedPoint, |
| 33707 | &Interp_InitElemPopPtr, |
| 33708 | &Interp_InitElemPopMemberPtr, |
| 33709 | &Interp_InitElemPopFloat, |
| 33710 | &Interp_InitElemPopReflect, |
| 33711 | #endif |
| 33712 | #ifdef GET_INTERPFN_DISPATCHERS |
| 33713 | PRESERVE_NONE |
| 33714 | static bool Interp_InitElemPopSint8(InterpState &S) { |
| 33715 | { |
| 33716 | CodePtr OpPC = S.PC; |
| 33717 | const auto V0 = ReadArg<uint32_t>(S, S.PC); |
| 33718 | if (!InitElemPop<PT_Sint8>(S, OpPC, V0)) return false; |
| 33719 | } |
| 33720 | #if USE_TAILCALLS |
| 33721 | MUSTTAIL return InterpNext(S); |
| 33722 | #else |
| 33723 | return true; |
| 33724 | #endif |
| 33725 | } |
| 33726 | PRESERVE_NONE |
| 33727 | static bool Interp_InitElemPopUint8(InterpState &S) { |
| 33728 | { |
| 33729 | CodePtr OpPC = S.PC; |
| 33730 | const auto V0 = ReadArg<uint32_t>(S, S.PC); |
| 33731 | if (!InitElemPop<PT_Uint8>(S, OpPC, V0)) return false; |
| 33732 | } |
| 33733 | #if USE_TAILCALLS |
| 33734 | MUSTTAIL return InterpNext(S); |
| 33735 | #else |
| 33736 | return true; |
| 33737 | #endif |
| 33738 | } |
| 33739 | PRESERVE_NONE |
| 33740 | static bool Interp_InitElemPopSint16(InterpState &S) { |
| 33741 | { |
| 33742 | CodePtr OpPC = S.PC; |
| 33743 | const auto V0 = ReadArg<uint32_t>(S, S.PC); |
| 33744 | if (!InitElemPop<PT_Sint16>(S, OpPC, V0)) return false; |
| 33745 | } |
| 33746 | #if USE_TAILCALLS |
| 33747 | MUSTTAIL return InterpNext(S); |
| 33748 | #else |
| 33749 | return true; |
| 33750 | #endif |
| 33751 | } |
| 33752 | PRESERVE_NONE |
| 33753 | static bool Interp_InitElemPopUint16(InterpState &S) { |
| 33754 | { |
| 33755 | CodePtr OpPC = S.PC; |
| 33756 | const auto V0 = ReadArg<uint32_t>(S, S.PC); |
| 33757 | if (!InitElemPop<PT_Uint16>(S, OpPC, V0)) return false; |
| 33758 | } |
| 33759 | #if USE_TAILCALLS |
| 33760 | MUSTTAIL return InterpNext(S); |
| 33761 | #else |
| 33762 | return true; |
| 33763 | #endif |
| 33764 | } |
| 33765 | PRESERVE_NONE |
| 33766 | static bool Interp_InitElemPopSint32(InterpState &S) { |
| 33767 | { |
| 33768 | CodePtr OpPC = S.PC; |
| 33769 | const auto V0 = ReadArg<uint32_t>(S, S.PC); |
| 33770 | if (!InitElemPop<PT_Sint32>(S, OpPC, V0)) return false; |
| 33771 | } |
| 33772 | #if USE_TAILCALLS |
| 33773 | MUSTTAIL return InterpNext(S); |
| 33774 | #else |
| 33775 | return true; |
| 33776 | #endif |
| 33777 | } |
| 33778 | PRESERVE_NONE |
| 33779 | static bool Interp_InitElemPopUint32(InterpState &S) { |
| 33780 | { |
| 33781 | CodePtr OpPC = S.PC; |
| 33782 | const auto V0 = ReadArg<uint32_t>(S, S.PC); |
| 33783 | if (!InitElemPop<PT_Uint32>(S, OpPC, V0)) return false; |
| 33784 | } |
| 33785 | #if USE_TAILCALLS |
| 33786 | MUSTTAIL return InterpNext(S); |
| 33787 | #else |
| 33788 | return true; |
| 33789 | #endif |
| 33790 | } |
| 33791 | PRESERVE_NONE |
| 33792 | static bool Interp_InitElemPopSint64(InterpState &S) { |
| 33793 | { |
| 33794 | CodePtr OpPC = S.PC; |
| 33795 | const auto V0 = ReadArg<uint32_t>(S, S.PC); |
| 33796 | if (!InitElemPop<PT_Sint64>(S, OpPC, V0)) return false; |
| 33797 | } |
| 33798 | #if USE_TAILCALLS |
| 33799 | MUSTTAIL return InterpNext(S); |
| 33800 | #else |
| 33801 | return true; |
| 33802 | #endif |
| 33803 | } |
| 33804 | PRESERVE_NONE |
| 33805 | static bool Interp_InitElemPopUint64(InterpState &S) { |
| 33806 | { |
| 33807 | CodePtr OpPC = S.PC; |
| 33808 | const auto V0 = ReadArg<uint32_t>(S, S.PC); |
| 33809 | if (!InitElemPop<PT_Uint64>(S, OpPC, V0)) return false; |
| 33810 | } |
| 33811 | #if USE_TAILCALLS |
| 33812 | MUSTTAIL return InterpNext(S); |
| 33813 | #else |
| 33814 | return true; |
| 33815 | #endif |
| 33816 | } |
| 33817 | PRESERVE_NONE |
| 33818 | static bool Interp_InitElemPopIntAP(InterpState &S) { |
| 33819 | { |
| 33820 | CodePtr OpPC = S.PC; |
| 33821 | const auto V0 = ReadArg<uint32_t>(S, S.PC); |
| 33822 | if (!InitElemPop<PT_IntAP>(S, OpPC, V0)) return false; |
| 33823 | } |
| 33824 | #if USE_TAILCALLS |
| 33825 | MUSTTAIL return InterpNext(S); |
| 33826 | #else |
| 33827 | return true; |
| 33828 | #endif |
| 33829 | } |
| 33830 | PRESERVE_NONE |
| 33831 | static bool Interp_InitElemPopIntAPS(InterpState &S) { |
| 33832 | { |
| 33833 | CodePtr OpPC = S.PC; |
| 33834 | const auto V0 = ReadArg<uint32_t>(S, S.PC); |
| 33835 | if (!InitElemPop<PT_IntAPS>(S, OpPC, V0)) return false; |
| 33836 | } |
| 33837 | #if USE_TAILCALLS |
| 33838 | MUSTTAIL return InterpNext(S); |
| 33839 | #else |
| 33840 | return true; |
| 33841 | #endif |
| 33842 | } |
| 33843 | PRESERVE_NONE |
| 33844 | static bool Interp_InitElemPopBool(InterpState &S) { |
| 33845 | { |
| 33846 | CodePtr OpPC = S.PC; |
| 33847 | const auto V0 = ReadArg<uint32_t>(S, S.PC); |
| 33848 | if (!InitElemPop<PT_Bool>(S, OpPC, V0)) return false; |
| 33849 | } |
| 33850 | #if USE_TAILCALLS |
| 33851 | MUSTTAIL return InterpNext(S); |
| 33852 | #else |
| 33853 | return true; |
| 33854 | #endif |
| 33855 | } |
| 33856 | PRESERVE_NONE |
| 33857 | static bool Interp_InitElemPopFixedPoint(InterpState &S) { |
| 33858 | { |
| 33859 | CodePtr OpPC = S.PC; |
| 33860 | const auto V0 = ReadArg<uint32_t>(S, S.PC); |
| 33861 | if (!InitElemPop<PT_FixedPoint>(S, OpPC, V0)) return false; |
| 33862 | } |
| 33863 | #if USE_TAILCALLS |
| 33864 | MUSTTAIL return InterpNext(S); |
| 33865 | #else |
| 33866 | return true; |
| 33867 | #endif |
| 33868 | } |
| 33869 | PRESERVE_NONE |
| 33870 | static bool Interp_InitElemPopPtr(InterpState &S) { |
| 33871 | { |
| 33872 | CodePtr OpPC = S.PC; |
| 33873 | const auto V0 = ReadArg<uint32_t>(S, S.PC); |
| 33874 | if (!InitElemPop<PT_Ptr>(S, OpPC, V0)) return false; |
| 33875 | } |
| 33876 | #if USE_TAILCALLS |
| 33877 | MUSTTAIL return InterpNext(S); |
| 33878 | #else |
| 33879 | return true; |
| 33880 | #endif |
| 33881 | } |
| 33882 | PRESERVE_NONE |
| 33883 | static bool Interp_InitElemPopMemberPtr(InterpState &S) { |
| 33884 | { |
| 33885 | CodePtr OpPC = S.PC; |
| 33886 | const auto V0 = ReadArg<uint32_t>(S, S.PC); |
| 33887 | if (!InitElemPop<PT_MemberPtr>(S, OpPC, V0)) return false; |
| 33888 | } |
| 33889 | #if USE_TAILCALLS |
| 33890 | MUSTTAIL return InterpNext(S); |
| 33891 | #else |
| 33892 | return true; |
| 33893 | #endif |
| 33894 | } |
| 33895 | PRESERVE_NONE |
| 33896 | static bool Interp_InitElemPopFloat(InterpState &S) { |
| 33897 | { |
| 33898 | CodePtr OpPC = S.PC; |
| 33899 | const auto V0 = ReadArg<uint32_t>(S, S.PC); |
| 33900 | if (!InitElemPop<PT_Float>(S, OpPC, V0)) return false; |
| 33901 | } |
| 33902 | #if USE_TAILCALLS |
| 33903 | MUSTTAIL return InterpNext(S); |
| 33904 | #else |
| 33905 | return true; |
| 33906 | #endif |
| 33907 | } |
| 33908 | PRESERVE_NONE |
| 33909 | static bool Interp_InitElemPopReflect(InterpState &S) { |
| 33910 | { |
| 33911 | CodePtr OpPC = S.PC; |
| 33912 | const auto V0 = ReadArg<uint32_t>(S, S.PC); |
| 33913 | if (!InitElemPop<PT_Reflect>(S, OpPC, V0)) return false; |
| 33914 | } |
| 33915 | #if USE_TAILCALLS |
| 33916 | MUSTTAIL return InterpNext(S); |
| 33917 | #else |
| 33918 | return true; |
| 33919 | #endif |
| 33920 | } |
| 33921 | #endif |
| 33922 | #ifdef GET_DISASM |
| 33923 | case OP_InitElemPopSint8: |
| 33924 | Text.Op = PrintName("InitElemPopSint8" ); |
| 33925 | Text.Args.push_back(printArg<uint32_t>(PC)); |
| 33926 | break; |
| 33927 | case OP_InitElemPopUint8: |
| 33928 | Text.Op = PrintName("InitElemPopUint8" ); |
| 33929 | Text.Args.push_back(printArg<uint32_t>(PC)); |
| 33930 | break; |
| 33931 | case OP_InitElemPopSint16: |
| 33932 | Text.Op = PrintName("InitElemPopSint16" ); |
| 33933 | Text.Args.push_back(printArg<uint32_t>(PC)); |
| 33934 | break; |
| 33935 | case OP_InitElemPopUint16: |
| 33936 | Text.Op = PrintName("InitElemPopUint16" ); |
| 33937 | Text.Args.push_back(printArg<uint32_t>(PC)); |
| 33938 | break; |
| 33939 | case OP_InitElemPopSint32: |
| 33940 | Text.Op = PrintName("InitElemPopSint32" ); |
| 33941 | Text.Args.push_back(printArg<uint32_t>(PC)); |
| 33942 | break; |
| 33943 | case OP_InitElemPopUint32: |
| 33944 | Text.Op = PrintName("InitElemPopUint32" ); |
| 33945 | Text.Args.push_back(printArg<uint32_t>(PC)); |
| 33946 | break; |
| 33947 | case OP_InitElemPopSint64: |
| 33948 | Text.Op = PrintName("InitElemPopSint64" ); |
| 33949 | Text.Args.push_back(printArg<uint32_t>(PC)); |
| 33950 | break; |
| 33951 | case OP_InitElemPopUint64: |
| 33952 | Text.Op = PrintName("InitElemPopUint64" ); |
| 33953 | Text.Args.push_back(printArg<uint32_t>(PC)); |
| 33954 | break; |
| 33955 | case OP_InitElemPopIntAP: |
| 33956 | Text.Op = PrintName("InitElemPopIntAP" ); |
| 33957 | Text.Args.push_back(printArg<uint32_t>(PC)); |
| 33958 | break; |
| 33959 | case OP_InitElemPopIntAPS: |
| 33960 | Text.Op = PrintName("InitElemPopIntAPS" ); |
| 33961 | Text.Args.push_back(printArg<uint32_t>(PC)); |
| 33962 | break; |
| 33963 | case OP_InitElemPopBool: |
| 33964 | Text.Op = PrintName("InitElemPopBool" ); |
| 33965 | Text.Args.push_back(printArg<uint32_t>(PC)); |
| 33966 | break; |
| 33967 | case OP_InitElemPopFixedPoint: |
| 33968 | Text.Op = PrintName("InitElemPopFixedPoint" ); |
| 33969 | Text.Args.push_back(printArg<uint32_t>(PC)); |
| 33970 | break; |
| 33971 | case OP_InitElemPopPtr: |
| 33972 | Text.Op = PrintName("InitElemPopPtr" ); |
| 33973 | Text.Args.push_back(printArg<uint32_t>(PC)); |
| 33974 | break; |
| 33975 | case OP_InitElemPopMemberPtr: |
| 33976 | Text.Op = PrintName("InitElemPopMemberPtr" ); |
| 33977 | Text.Args.push_back(printArg<uint32_t>(PC)); |
| 33978 | break; |
| 33979 | case OP_InitElemPopFloat: |
| 33980 | Text.Op = PrintName("InitElemPopFloat" ); |
| 33981 | Text.Args.push_back(printArg<uint32_t>(PC)); |
| 33982 | break; |
| 33983 | case OP_InitElemPopReflect: |
| 33984 | Text.Op = PrintName("InitElemPopReflect" ); |
| 33985 | Text.Args.push_back(printArg<uint32_t>(PC)); |
| 33986 | break; |
| 33987 | #endif |
| 33988 | #if defined(GET_EVAL_PROTO) || defined(GET_LINK_PROTO) |
| 33989 | bool emitInitElemPopSint8( uint32_t , SourceInfo); |
| 33990 | bool emitInitElemPopUint8( uint32_t , SourceInfo); |
| 33991 | bool emitInitElemPopSint16( uint32_t , SourceInfo); |
| 33992 | bool emitInitElemPopUint16( uint32_t , SourceInfo); |
| 33993 | bool emitInitElemPopSint32( uint32_t , SourceInfo); |
| 33994 | bool emitInitElemPopUint32( uint32_t , SourceInfo); |
| 33995 | bool emitInitElemPopSint64( uint32_t , SourceInfo); |
| 33996 | bool emitInitElemPopUint64( uint32_t , SourceInfo); |
| 33997 | bool emitInitElemPopIntAP( uint32_t , SourceInfo); |
| 33998 | bool emitInitElemPopIntAPS( uint32_t , SourceInfo); |
| 33999 | bool emitInitElemPopBool( uint32_t , SourceInfo); |
| 34000 | bool emitInitElemPopFixedPoint( uint32_t , SourceInfo); |
| 34001 | bool emitInitElemPopPtr( uint32_t , SourceInfo); |
| 34002 | bool emitInitElemPopMemberPtr( uint32_t , SourceInfo); |
| 34003 | bool emitInitElemPopFloat( uint32_t , SourceInfo); |
| 34004 | bool emitInitElemPopReflect( uint32_t , SourceInfo); |
| 34005 | #endif |
| 34006 | #if defined(GET_EVAL_PROTO) || defined(GET_LINK_PROTO) |
| 34007 | [[nodiscard]] bool emitInitElemPop(PrimType, uint32_t, SourceInfo I); |
| 34008 | #endif |
| 34009 | #if defined(GET_EVAL_IMPL) || defined(GET_LINK_IMPL) |
| 34010 | bool |
| 34011 | #if defined(GET_EVAL_IMPL) |
| 34012 | EvalEmitter |
| 34013 | #else |
| 34014 | ByteCodeEmitter |
| 34015 | #endif |
| 34016 | ::emitInitElemPop(PrimType T0, uint32_t A0, SourceInfo I) { |
| 34017 | switch (T0) { |
| 34018 | case PT_Sint8: |
| 34019 | return emitInitElemPopSint8(A0, I); |
| 34020 | case PT_Uint8: |
| 34021 | return emitInitElemPopUint8(A0, I); |
| 34022 | case PT_Sint16: |
| 34023 | return emitInitElemPopSint16(A0, I); |
| 34024 | case PT_Uint16: |
| 34025 | return emitInitElemPopUint16(A0, I); |
| 34026 | case PT_Sint32: |
| 34027 | return emitInitElemPopSint32(A0, I); |
| 34028 | case PT_Uint32: |
| 34029 | return emitInitElemPopUint32(A0, I); |
| 34030 | case PT_Sint64: |
| 34031 | return emitInitElemPopSint64(A0, I); |
| 34032 | case PT_Uint64: |
| 34033 | return emitInitElemPopUint64(A0, I); |
| 34034 | case PT_IntAP: |
| 34035 | return emitInitElemPopIntAP(A0, I); |
| 34036 | case PT_IntAPS: |
| 34037 | return emitInitElemPopIntAPS(A0, I); |
| 34038 | case PT_Bool: |
| 34039 | return emitInitElemPopBool(A0, I); |
| 34040 | case PT_FixedPoint: |
| 34041 | return emitInitElemPopFixedPoint(A0, I); |
| 34042 | case PT_Ptr: |
| 34043 | return emitInitElemPopPtr(A0, I); |
| 34044 | case PT_MemberPtr: |
| 34045 | return emitInitElemPopMemberPtr(A0, I); |
| 34046 | case PT_Float: |
| 34047 | return emitInitElemPopFloat(A0, I); |
| 34048 | case PT_Reflect: |
| 34049 | return emitInitElemPopReflect(A0, I); |
| 34050 | } |
| 34051 | llvm_unreachable("invalid enum value" ); |
| 34052 | } |
| 34053 | #endif |
| 34054 | #ifdef GET_LINK_IMPL |
| 34055 | bool ByteCodeEmitter::emitInitElemPopSint8( uint32_t A0, SourceInfo L) { |
| 34056 | return emitOp<uint32_t>(OP_InitElemPopSint8, A0, L); |
| 34057 | } |
| 34058 | bool ByteCodeEmitter::emitInitElemPopUint8( uint32_t A0, SourceInfo L) { |
| 34059 | return emitOp<uint32_t>(OP_InitElemPopUint8, A0, L); |
| 34060 | } |
| 34061 | bool ByteCodeEmitter::emitInitElemPopSint16( uint32_t A0, SourceInfo L) { |
| 34062 | return emitOp<uint32_t>(OP_InitElemPopSint16, A0, L); |
| 34063 | } |
| 34064 | bool ByteCodeEmitter::emitInitElemPopUint16( uint32_t A0, SourceInfo L) { |
| 34065 | return emitOp<uint32_t>(OP_InitElemPopUint16, A0, L); |
| 34066 | } |
| 34067 | bool ByteCodeEmitter::emitInitElemPopSint32( uint32_t A0, SourceInfo L) { |
| 34068 | return emitOp<uint32_t>(OP_InitElemPopSint32, A0, L); |
| 34069 | } |
| 34070 | bool ByteCodeEmitter::emitInitElemPopUint32( uint32_t A0, SourceInfo L) { |
| 34071 | return emitOp<uint32_t>(OP_InitElemPopUint32, A0, L); |
| 34072 | } |
| 34073 | bool ByteCodeEmitter::emitInitElemPopSint64( uint32_t A0, SourceInfo L) { |
| 34074 | return emitOp<uint32_t>(OP_InitElemPopSint64, A0, L); |
| 34075 | } |
| 34076 | bool ByteCodeEmitter::emitInitElemPopUint64( uint32_t A0, SourceInfo L) { |
| 34077 | return emitOp<uint32_t>(OP_InitElemPopUint64, A0, L); |
| 34078 | } |
| 34079 | bool ByteCodeEmitter::emitInitElemPopIntAP( uint32_t A0, SourceInfo L) { |
| 34080 | return emitOp<uint32_t>(OP_InitElemPopIntAP, A0, L); |
| 34081 | } |
| 34082 | bool ByteCodeEmitter::emitInitElemPopIntAPS( uint32_t A0, SourceInfo L) { |
| 34083 | return emitOp<uint32_t>(OP_InitElemPopIntAPS, A0, L); |
| 34084 | } |
| 34085 | bool ByteCodeEmitter::emitInitElemPopBool( uint32_t A0, SourceInfo L) { |
| 34086 | return emitOp<uint32_t>(OP_InitElemPopBool, A0, L); |
| 34087 | } |
| 34088 | bool ByteCodeEmitter::emitInitElemPopFixedPoint( uint32_t A0, SourceInfo L) { |
| 34089 | return emitOp<uint32_t>(OP_InitElemPopFixedPoint, A0, L); |
| 34090 | } |
| 34091 | bool ByteCodeEmitter::emitInitElemPopPtr( uint32_t A0, SourceInfo L) { |
| 34092 | return emitOp<uint32_t>(OP_InitElemPopPtr, A0, L); |
| 34093 | } |
| 34094 | bool ByteCodeEmitter::emitInitElemPopMemberPtr( uint32_t A0, SourceInfo L) { |
| 34095 | return emitOp<uint32_t>(OP_InitElemPopMemberPtr, A0, L); |
| 34096 | } |
| 34097 | bool ByteCodeEmitter::emitInitElemPopFloat( uint32_t A0, SourceInfo L) { |
| 34098 | return emitOp<uint32_t>(OP_InitElemPopFloat, A0, L); |
| 34099 | } |
| 34100 | bool ByteCodeEmitter::emitInitElemPopReflect( uint32_t A0, SourceInfo L) { |
| 34101 | return emitOp<uint32_t>(OP_InitElemPopReflect, A0, L); |
| 34102 | } |
| 34103 | #endif |
| 34104 | #ifdef GET_EVAL_IMPL |
| 34105 | bool EvalEmitter::emitInitElemPopSint8( uint32_t A0, SourceInfo L) { |
| 34106 | if (!isActive()) return true; |
| 34107 | CurrentSource = L; |
| 34108 | return InitElemPop<PT_Sint8>(S, CodePtr(), A0); |
| 34109 | } |
| 34110 | bool EvalEmitter::emitInitElemPopUint8( uint32_t A0, SourceInfo L) { |
| 34111 | if (!isActive()) return true; |
| 34112 | CurrentSource = L; |
| 34113 | return InitElemPop<PT_Uint8>(S, CodePtr(), A0); |
| 34114 | } |
| 34115 | bool EvalEmitter::emitInitElemPopSint16( uint32_t A0, SourceInfo L) { |
| 34116 | if (!isActive()) return true; |
| 34117 | CurrentSource = L; |
| 34118 | return InitElemPop<PT_Sint16>(S, CodePtr(), A0); |
| 34119 | } |
| 34120 | bool EvalEmitter::emitInitElemPopUint16( uint32_t A0, SourceInfo L) { |
| 34121 | if (!isActive()) return true; |
| 34122 | CurrentSource = L; |
| 34123 | return InitElemPop<PT_Uint16>(S, CodePtr(), A0); |
| 34124 | } |
| 34125 | bool EvalEmitter::emitInitElemPopSint32( uint32_t A0, SourceInfo L) { |
| 34126 | if (!isActive()) return true; |
| 34127 | CurrentSource = L; |
| 34128 | return InitElemPop<PT_Sint32>(S, CodePtr(), A0); |
| 34129 | } |
| 34130 | bool EvalEmitter::emitInitElemPopUint32( uint32_t A0, SourceInfo L) { |
| 34131 | if (!isActive()) return true; |
| 34132 | CurrentSource = L; |
| 34133 | return InitElemPop<PT_Uint32>(S, CodePtr(), A0); |
| 34134 | } |
| 34135 | bool EvalEmitter::emitInitElemPopSint64( uint32_t A0, SourceInfo L) { |
| 34136 | if (!isActive()) return true; |
| 34137 | CurrentSource = L; |
| 34138 | return InitElemPop<PT_Sint64>(S, CodePtr(), A0); |
| 34139 | } |
| 34140 | bool EvalEmitter::emitInitElemPopUint64( uint32_t A0, SourceInfo L) { |
| 34141 | if (!isActive()) return true; |
| 34142 | CurrentSource = L; |
| 34143 | return InitElemPop<PT_Uint64>(S, CodePtr(), A0); |
| 34144 | } |
| 34145 | bool EvalEmitter::emitInitElemPopIntAP( uint32_t A0, SourceInfo L) { |
| 34146 | if (!isActive()) return true; |
| 34147 | CurrentSource = L; |
| 34148 | return InitElemPop<PT_IntAP>(S, CodePtr(), A0); |
| 34149 | } |
| 34150 | bool EvalEmitter::emitInitElemPopIntAPS( uint32_t A0, SourceInfo L) { |
| 34151 | if (!isActive()) return true; |
| 34152 | CurrentSource = L; |
| 34153 | return InitElemPop<PT_IntAPS>(S, CodePtr(), A0); |
| 34154 | } |
| 34155 | bool EvalEmitter::emitInitElemPopBool( uint32_t A0, SourceInfo L) { |
| 34156 | if (!isActive()) return true; |
| 34157 | CurrentSource = L; |
| 34158 | return InitElemPop<PT_Bool>(S, CodePtr(), A0); |
| 34159 | } |
| 34160 | bool EvalEmitter::emitInitElemPopFixedPoint( uint32_t A0, SourceInfo L) { |
| 34161 | if (!isActive()) return true; |
| 34162 | CurrentSource = L; |
| 34163 | return InitElemPop<PT_FixedPoint>(S, CodePtr(), A0); |
| 34164 | } |
| 34165 | bool EvalEmitter::emitInitElemPopPtr( uint32_t A0, SourceInfo L) { |
| 34166 | if (!isActive()) return true; |
| 34167 | CurrentSource = L; |
| 34168 | return InitElemPop<PT_Ptr>(S, CodePtr(), A0); |
| 34169 | } |
| 34170 | bool EvalEmitter::emitInitElemPopMemberPtr( uint32_t A0, SourceInfo L) { |
| 34171 | if (!isActive()) return true; |
| 34172 | CurrentSource = L; |
| 34173 | return InitElemPop<PT_MemberPtr>(S, CodePtr(), A0); |
| 34174 | } |
| 34175 | bool EvalEmitter::emitInitElemPopFloat( uint32_t A0, SourceInfo L) { |
| 34176 | if (!isActive()) return true; |
| 34177 | CurrentSource = L; |
| 34178 | return InitElemPop<PT_Float>(S, CodePtr(), A0); |
| 34179 | } |
| 34180 | bool EvalEmitter::emitInitElemPopReflect( uint32_t A0, SourceInfo L) { |
| 34181 | if (!isActive()) return true; |
| 34182 | CurrentSource = L; |
| 34183 | return InitElemPop<PT_Reflect>(S, CodePtr(), A0); |
| 34184 | } |
| 34185 | #endif |
| 34186 | #ifdef GET_OPCODE_NAMES |
| 34187 | OP_InitFieldSint8, |
| 34188 | OP_InitFieldUint8, |
| 34189 | OP_InitFieldSint16, |
| 34190 | OP_InitFieldUint16, |
| 34191 | OP_InitFieldSint32, |
| 34192 | OP_InitFieldUint32, |
| 34193 | OP_InitFieldSint64, |
| 34194 | OP_InitFieldUint64, |
| 34195 | OP_InitFieldIntAP, |
| 34196 | OP_InitFieldIntAPS, |
| 34197 | OP_InitFieldBool, |
| 34198 | OP_InitFieldFixedPoint, |
| 34199 | OP_InitFieldPtr, |
| 34200 | OP_InitFieldMemberPtr, |
| 34201 | OP_InitFieldFloat, |
| 34202 | OP_InitFieldReflect, |
| 34203 | #endif |
| 34204 | #ifdef GET_INTERPFN_LIST |
| 34205 | &Interp_InitFieldSint8, |
| 34206 | &Interp_InitFieldUint8, |
| 34207 | &Interp_InitFieldSint16, |
| 34208 | &Interp_InitFieldUint16, |
| 34209 | &Interp_InitFieldSint32, |
| 34210 | &Interp_InitFieldUint32, |
| 34211 | &Interp_InitFieldSint64, |
| 34212 | &Interp_InitFieldUint64, |
| 34213 | &Interp_InitFieldIntAP, |
| 34214 | &Interp_InitFieldIntAPS, |
| 34215 | &Interp_InitFieldBool, |
| 34216 | &Interp_InitFieldFixedPoint, |
| 34217 | &Interp_InitFieldPtr, |
| 34218 | &Interp_InitFieldMemberPtr, |
| 34219 | &Interp_InitFieldFloat, |
| 34220 | &Interp_InitFieldReflect, |
| 34221 | #endif |
| 34222 | #ifdef GET_INTERPFN_DISPATCHERS |
| 34223 | PRESERVE_NONE |
| 34224 | static bool Interp_InitFieldSint8(InterpState &S) { |
| 34225 | { |
| 34226 | CodePtr OpPC = S.PC; |
| 34227 | const auto V0 = ReadArg<uint32_t>(S, S.PC); |
| 34228 | if (!InitField<PT_Sint8>(S, OpPC, V0)) return false; |
| 34229 | } |
| 34230 | #if USE_TAILCALLS |
| 34231 | MUSTTAIL return InterpNext(S); |
| 34232 | #else |
| 34233 | return true; |
| 34234 | #endif |
| 34235 | } |
| 34236 | PRESERVE_NONE |
| 34237 | static bool Interp_InitFieldUint8(InterpState &S) { |
| 34238 | { |
| 34239 | CodePtr OpPC = S.PC; |
| 34240 | const auto V0 = ReadArg<uint32_t>(S, S.PC); |
| 34241 | if (!InitField<PT_Uint8>(S, OpPC, V0)) return false; |
| 34242 | } |
| 34243 | #if USE_TAILCALLS |
| 34244 | MUSTTAIL return InterpNext(S); |
| 34245 | #else |
| 34246 | return true; |
| 34247 | #endif |
| 34248 | } |
| 34249 | PRESERVE_NONE |
| 34250 | static bool Interp_InitFieldSint16(InterpState &S) { |
| 34251 | { |
| 34252 | CodePtr OpPC = S.PC; |
| 34253 | const auto V0 = ReadArg<uint32_t>(S, S.PC); |
| 34254 | if (!InitField<PT_Sint16>(S, OpPC, V0)) return false; |
| 34255 | } |
| 34256 | #if USE_TAILCALLS |
| 34257 | MUSTTAIL return InterpNext(S); |
| 34258 | #else |
| 34259 | return true; |
| 34260 | #endif |
| 34261 | } |
| 34262 | PRESERVE_NONE |
| 34263 | static bool Interp_InitFieldUint16(InterpState &S) { |
| 34264 | { |
| 34265 | CodePtr OpPC = S.PC; |
| 34266 | const auto V0 = ReadArg<uint32_t>(S, S.PC); |
| 34267 | if (!InitField<PT_Uint16>(S, OpPC, V0)) return false; |
| 34268 | } |
| 34269 | #if USE_TAILCALLS |
| 34270 | MUSTTAIL return InterpNext(S); |
| 34271 | #else |
| 34272 | return true; |
| 34273 | #endif |
| 34274 | } |
| 34275 | PRESERVE_NONE |
| 34276 | static bool Interp_InitFieldSint32(InterpState &S) { |
| 34277 | { |
| 34278 | CodePtr OpPC = S.PC; |
| 34279 | const auto V0 = ReadArg<uint32_t>(S, S.PC); |
| 34280 | if (!InitField<PT_Sint32>(S, OpPC, V0)) return false; |
| 34281 | } |
| 34282 | #if USE_TAILCALLS |
| 34283 | MUSTTAIL return InterpNext(S); |
| 34284 | #else |
| 34285 | return true; |
| 34286 | #endif |
| 34287 | } |
| 34288 | PRESERVE_NONE |
| 34289 | static bool Interp_InitFieldUint32(InterpState &S) { |
| 34290 | { |
| 34291 | CodePtr OpPC = S.PC; |
| 34292 | const auto V0 = ReadArg<uint32_t>(S, S.PC); |
| 34293 | if (!InitField<PT_Uint32>(S, OpPC, V0)) return false; |
| 34294 | } |
| 34295 | #if USE_TAILCALLS |
| 34296 | MUSTTAIL return InterpNext(S); |
| 34297 | #else |
| 34298 | return true; |
| 34299 | #endif |
| 34300 | } |
| 34301 | PRESERVE_NONE |
| 34302 | static bool Interp_InitFieldSint64(InterpState &S) { |
| 34303 | { |
| 34304 | CodePtr OpPC = S.PC; |
| 34305 | const auto V0 = ReadArg<uint32_t>(S, S.PC); |
| 34306 | if (!InitField<PT_Sint64>(S, OpPC, V0)) return false; |
| 34307 | } |
| 34308 | #if USE_TAILCALLS |
| 34309 | MUSTTAIL return InterpNext(S); |
| 34310 | #else |
| 34311 | return true; |
| 34312 | #endif |
| 34313 | } |
| 34314 | PRESERVE_NONE |
| 34315 | static bool Interp_InitFieldUint64(InterpState &S) { |
| 34316 | { |
| 34317 | CodePtr OpPC = S.PC; |
| 34318 | const auto V0 = ReadArg<uint32_t>(S, S.PC); |
| 34319 | if (!InitField<PT_Uint64>(S, OpPC, V0)) return false; |
| 34320 | } |
| 34321 | #if USE_TAILCALLS |
| 34322 | MUSTTAIL return InterpNext(S); |
| 34323 | #else |
| 34324 | return true; |
| 34325 | #endif |
| 34326 | } |
| 34327 | PRESERVE_NONE |
| 34328 | static bool Interp_InitFieldIntAP(InterpState &S) { |
| 34329 | { |
| 34330 | CodePtr OpPC = S.PC; |
| 34331 | const auto V0 = ReadArg<uint32_t>(S, S.PC); |
| 34332 | if (!InitField<PT_IntAP>(S, OpPC, V0)) return false; |
| 34333 | } |
| 34334 | #if USE_TAILCALLS |
| 34335 | MUSTTAIL return InterpNext(S); |
| 34336 | #else |
| 34337 | return true; |
| 34338 | #endif |
| 34339 | } |
| 34340 | PRESERVE_NONE |
| 34341 | static bool Interp_InitFieldIntAPS(InterpState &S) { |
| 34342 | { |
| 34343 | CodePtr OpPC = S.PC; |
| 34344 | const auto V0 = ReadArg<uint32_t>(S, S.PC); |
| 34345 | if (!InitField<PT_IntAPS>(S, OpPC, V0)) return false; |
| 34346 | } |
| 34347 | #if USE_TAILCALLS |
| 34348 | MUSTTAIL return InterpNext(S); |
| 34349 | #else |
| 34350 | return true; |
| 34351 | #endif |
| 34352 | } |
| 34353 | PRESERVE_NONE |
| 34354 | static bool Interp_InitFieldBool(InterpState &S) { |
| 34355 | { |
| 34356 | CodePtr OpPC = S.PC; |
| 34357 | const auto V0 = ReadArg<uint32_t>(S, S.PC); |
| 34358 | if (!InitField<PT_Bool>(S, OpPC, V0)) return false; |
| 34359 | } |
| 34360 | #if USE_TAILCALLS |
| 34361 | MUSTTAIL return InterpNext(S); |
| 34362 | #else |
| 34363 | return true; |
| 34364 | #endif |
| 34365 | } |
| 34366 | PRESERVE_NONE |
| 34367 | static bool Interp_InitFieldFixedPoint(InterpState &S) { |
| 34368 | { |
| 34369 | CodePtr OpPC = S.PC; |
| 34370 | const auto V0 = ReadArg<uint32_t>(S, S.PC); |
| 34371 | if (!InitField<PT_FixedPoint>(S, OpPC, V0)) return false; |
| 34372 | } |
| 34373 | #if USE_TAILCALLS |
| 34374 | MUSTTAIL return InterpNext(S); |
| 34375 | #else |
| 34376 | return true; |
| 34377 | #endif |
| 34378 | } |
| 34379 | PRESERVE_NONE |
| 34380 | static bool Interp_InitFieldPtr(InterpState &S) { |
| 34381 | { |
| 34382 | CodePtr OpPC = S.PC; |
| 34383 | const auto V0 = ReadArg<uint32_t>(S, S.PC); |
| 34384 | if (!InitField<PT_Ptr>(S, OpPC, V0)) return false; |
| 34385 | } |
| 34386 | #if USE_TAILCALLS |
| 34387 | MUSTTAIL return InterpNext(S); |
| 34388 | #else |
| 34389 | return true; |
| 34390 | #endif |
| 34391 | } |
| 34392 | PRESERVE_NONE |
| 34393 | static bool Interp_InitFieldMemberPtr(InterpState &S) { |
| 34394 | { |
| 34395 | CodePtr OpPC = S.PC; |
| 34396 | const auto V0 = ReadArg<uint32_t>(S, S.PC); |
| 34397 | if (!InitField<PT_MemberPtr>(S, OpPC, V0)) return false; |
| 34398 | } |
| 34399 | #if USE_TAILCALLS |
| 34400 | MUSTTAIL return InterpNext(S); |
| 34401 | #else |
| 34402 | return true; |
| 34403 | #endif |
| 34404 | } |
| 34405 | PRESERVE_NONE |
| 34406 | static bool Interp_InitFieldFloat(InterpState &S) { |
| 34407 | { |
| 34408 | CodePtr OpPC = S.PC; |
| 34409 | const auto V0 = ReadArg<uint32_t>(S, S.PC); |
| 34410 | if (!InitField<PT_Float>(S, OpPC, V0)) return false; |
| 34411 | } |
| 34412 | #if USE_TAILCALLS |
| 34413 | MUSTTAIL return InterpNext(S); |
| 34414 | #else |
| 34415 | return true; |
| 34416 | #endif |
| 34417 | } |
| 34418 | PRESERVE_NONE |
| 34419 | static bool Interp_InitFieldReflect(InterpState &S) { |
| 34420 | { |
| 34421 | CodePtr OpPC = S.PC; |
| 34422 | const auto V0 = ReadArg<uint32_t>(S, S.PC); |
| 34423 | if (!InitField<PT_Reflect>(S, OpPC, V0)) return false; |
| 34424 | } |
| 34425 | #if USE_TAILCALLS |
| 34426 | MUSTTAIL return InterpNext(S); |
| 34427 | #else |
| 34428 | return true; |
| 34429 | #endif |
| 34430 | } |
| 34431 | #endif |
| 34432 | #ifdef GET_DISASM |
| 34433 | case OP_InitFieldSint8: |
| 34434 | Text.Op = PrintName("InitFieldSint8" ); |
| 34435 | Text.Args.push_back(printArg<uint32_t>(PC)); |
| 34436 | break; |
| 34437 | case OP_InitFieldUint8: |
| 34438 | Text.Op = PrintName("InitFieldUint8" ); |
| 34439 | Text.Args.push_back(printArg<uint32_t>(PC)); |
| 34440 | break; |
| 34441 | case OP_InitFieldSint16: |
| 34442 | Text.Op = PrintName("InitFieldSint16" ); |
| 34443 | Text.Args.push_back(printArg<uint32_t>(PC)); |
| 34444 | break; |
| 34445 | case OP_InitFieldUint16: |
| 34446 | Text.Op = PrintName("InitFieldUint16" ); |
| 34447 | Text.Args.push_back(printArg<uint32_t>(PC)); |
| 34448 | break; |
| 34449 | case OP_InitFieldSint32: |
| 34450 | Text.Op = PrintName("InitFieldSint32" ); |
| 34451 | Text.Args.push_back(printArg<uint32_t>(PC)); |
| 34452 | break; |
| 34453 | case OP_InitFieldUint32: |
| 34454 | Text.Op = PrintName("InitFieldUint32" ); |
| 34455 | Text.Args.push_back(printArg<uint32_t>(PC)); |
| 34456 | break; |
| 34457 | case OP_InitFieldSint64: |
| 34458 | Text.Op = PrintName("InitFieldSint64" ); |
| 34459 | Text.Args.push_back(printArg<uint32_t>(PC)); |
| 34460 | break; |
| 34461 | case OP_InitFieldUint64: |
| 34462 | Text.Op = PrintName("InitFieldUint64" ); |
| 34463 | Text.Args.push_back(printArg<uint32_t>(PC)); |
| 34464 | break; |
| 34465 | case OP_InitFieldIntAP: |
| 34466 | Text.Op = PrintName("InitFieldIntAP" ); |
| 34467 | Text.Args.push_back(printArg<uint32_t>(PC)); |
| 34468 | break; |
| 34469 | case OP_InitFieldIntAPS: |
| 34470 | Text.Op = PrintName("InitFieldIntAPS" ); |
| 34471 | Text.Args.push_back(printArg<uint32_t>(PC)); |
| 34472 | break; |
| 34473 | case OP_InitFieldBool: |
| 34474 | Text.Op = PrintName("InitFieldBool" ); |
| 34475 | Text.Args.push_back(printArg<uint32_t>(PC)); |
| 34476 | break; |
| 34477 | case OP_InitFieldFixedPoint: |
| 34478 | Text.Op = PrintName("InitFieldFixedPoint" ); |
| 34479 | Text.Args.push_back(printArg<uint32_t>(PC)); |
| 34480 | break; |
| 34481 | case OP_InitFieldPtr: |
| 34482 | Text.Op = PrintName("InitFieldPtr" ); |
| 34483 | Text.Args.push_back(printArg<uint32_t>(PC)); |
| 34484 | break; |
| 34485 | case OP_InitFieldMemberPtr: |
| 34486 | Text.Op = PrintName("InitFieldMemberPtr" ); |
| 34487 | Text.Args.push_back(printArg<uint32_t>(PC)); |
| 34488 | break; |
| 34489 | case OP_InitFieldFloat: |
| 34490 | Text.Op = PrintName("InitFieldFloat" ); |
| 34491 | Text.Args.push_back(printArg<uint32_t>(PC)); |
| 34492 | break; |
| 34493 | case OP_InitFieldReflect: |
| 34494 | Text.Op = PrintName("InitFieldReflect" ); |
| 34495 | Text.Args.push_back(printArg<uint32_t>(PC)); |
| 34496 | break; |
| 34497 | #endif |
| 34498 | #if defined(GET_EVAL_PROTO) || defined(GET_LINK_PROTO) |
| 34499 | bool emitInitFieldSint8( uint32_t , SourceInfo); |
| 34500 | bool emitInitFieldUint8( uint32_t , SourceInfo); |
| 34501 | bool emitInitFieldSint16( uint32_t , SourceInfo); |
| 34502 | bool emitInitFieldUint16( uint32_t , SourceInfo); |
| 34503 | bool emitInitFieldSint32( uint32_t , SourceInfo); |
| 34504 | bool emitInitFieldUint32( uint32_t , SourceInfo); |
| 34505 | bool emitInitFieldSint64( uint32_t , SourceInfo); |
| 34506 | bool emitInitFieldUint64( uint32_t , SourceInfo); |
| 34507 | bool emitInitFieldIntAP( uint32_t , SourceInfo); |
| 34508 | bool emitInitFieldIntAPS( uint32_t , SourceInfo); |
| 34509 | bool emitInitFieldBool( uint32_t , SourceInfo); |
| 34510 | bool emitInitFieldFixedPoint( uint32_t , SourceInfo); |
| 34511 | bool emitInitFieldPtr( uint32_t , SourceInfo); |
| 34512 | bool emitInitFieldMemberPtr( uint32_t , SourceInfo); |
| 34513 | bool emitInitFieldFloat( uint32_t , SourceInfo); |
| 34514 | bool emitInitFieldReflect( uint32_t , SourceInfo); |
| 34515 | #endif |
| 34516 | #if defined(GET_EVAL_PROTO) || defined(GET_LINK_PROTO) |
| 34517 | [[nodiscard]] bool emitInitField(PrimType, uint32_t, SourceInfo I); |
| 34518 | #endif |
| 34519 | #if defined(GET_EVAL_IMPL) || defined(GET_LINK_IMPL) |
| 34520 | bool |
| 34521 | #if defined(GET_EVAL_IMPL) |
| 34522 | EvalEmitter |
| 34523 | #else |
| 34524 | ByteCodeEmitter |
| 34525 | #endif |
| 34526 | ::emitInitField(PrimType T0, uint32_t A0, SourceInfo I) { |
| 34527 | switch (T0) { |
| 34528 | case PT_Sint8: |
| 34529 | return emitInitFieldSint8(A0, I); |
| 34530 | case PT_Uint8: |
| 34531 | return emitInitFieldUint8(A0, I); |
| 34532 | case PT_Sint16: |
| 34533 | return emitInitFieldSint16(A0, I); |
| 34534 | case PT_Uint16: |
| 34535 | return emitInitFieldUint16(A0, I); |
| 34536 | case PT_Sint32: |
| 34537 | return emitInitFieldSint32(A0, I); |
| 34538 | case PT_Uint32: |
| 34539 | return emitInitFieldUint32(A0, I); |
| 34540 | case PT_Sint64: |
| 34541 | return emitInitFieldSint64(A0, I); |
| 34542 | case PT_Uint64: |
| 34543 | return emitInitFieldUint64(A0, I); |
| 34544 | case PT_IntAP: |
| 34545 | return emitInitFieldIntAP(A0, I); |
| 34546 | case PT_IntAPS: |
| 34547 | return emitInitFieldIntAPS(A0, I); |
| 34548 | case PT_Bool: |
| 34549 | return emitInitFieldBool(A0, I); |
| 34550 | case PT_FixedPoint: |
| 34551 | return emitInitFieldFixedPoint(A0, I); |
| 34552 | case PT_Ptr: |
| 34553 | return emitInitFieldPtr(A0, I); |
| 34554 | case PT_MemberPtr: |
| 34555 | return emitInitFieldMemberPtr(A0, I); |
| 34556 | case PT_Float: |
| 34557 | return emitInitFieldFloat(A0, I); |
| 34558 | case PT_Reflect: |
| 34559 | return emitInitFieldReflect(A0, I); |
| 34560 | } |
| 34561 | llvm_unreachable("invalid enum value" ); |
| 34562 | } |
| 34563 | #endif |
| 34564 | #ifdef GET_LINK_IMPL |
| 34565 | bool ByteCodeEmitter::emitInitFieldSint8( uint32_t A0, SourceInfo L) { |
| 34566 | return emitOp<uint32_t>(OP_InitFieldSint8, A0, L); |
| 34567 | } |
| 34568 | bool ByteCodeEmitter::emitInitFieldUint8( uint32_t A0, SourceInfo L) { |
| 34569 | return emitOp<uint32_t>(OP_InitFieldUint8, A0, L); |
| 34570 | } |
| 34571 | bool ByteCodeEmitter::emitInitFieldSint16( uint32_t A0, SourceInfo L) { |
| 34572 | return emitOp<uint32_t>(OP_InitFieldSint16, A0, L); |
| 34573 | } |
| 34574 | bool ByteCodeEmitter::emitInitFieldUint16( uint32_t A0, SourceInfo L) { |
| 34575 | return emitOp<uint32_t>(OP_InitFieldUint16, A0, L); |
| 34576 | } |
| 34577 | bool ByteCodeEmitter::emitInitFieldSint32( uint32_t A0, SourceInfo L) { |
| 34578 | return emitOp<uint32_t>(OP_InitFieldSint32, A0, L); |
| 34579 | } |
| 34580 | bool ByteCodeEmitter::emitInitFieldUint32( uint32_t A0, SourceInfo L) { |
| 34581 | return emitOp<uint32_t>(OP_InitFieldUint32, A0, L); |
| 34582 | } |
| 34583 | bool ByteCodeEmitter::emitInitFieldSint64( uint32_t A0, SourceInfo L) { |
| 34584 | return emitOp<uint32_t>(OP_InitFieldSint64, A0, L); |
| 34585 | } |
| 34586 | bool ByteCodeEmitter::emitInitFieldUint64( uint32_t A0, SourceInfo L) { |
| 34587 | return emitOp<uint32_t>(OP_InitFieldUint64, A0, L); |
| 34588 | } |
| 34589 | bool ByteCodeEmitter::emitInitFieldIntAP( uint32_t A0, SourceInfo L) { |
| 34590 | return emitOp<uint32_t>(OP_InitFieldIntAP, A0, L); |
| 34591 | } |
| 34592 | bool ByteCodeEmitter::emitInitFieldIntAPS( uint32_t A0, SourceInfo L) { |
| 34593 | return emitOp<uint32_t>(OP_InitFieldIntAPS, A0, L); |
| 34594 | } |
| 34595 | bool ByteCodeEmitter::emitInitFieldBool( uint32_t A0, SourceInfo L) { |
| 34596 | return emitOp<uint32_t>(OP_InitFieldBool, A0, L); |
| 34597 | } |
| 34598 | bool ByteCodeEmitter::emitInitFieldFixedPoint( uint32_t A0, SourceInfo L) { |
| 34599 | return emitOp<uint32_t>(OP_InitFieldFixedPoint, A0, L); |
| 34600 | } |
| 34601 | bool ByteCodeEmitter::emitInitFieldPtr( uint32_t A0, SourceInfo L) { |
| 34602 | return emitOp<uint32_t>(OP_InitFieldPtr, A0, L); |
| 34603 | } |
| 34604 | bool ByteCodeEmitter::emitInitFieldMemberPtr( uint32_t A0, SourceInfo L) { |
| 34605 | return emitOp<uint32_t>(OP_InitFieldMemberPtr, A0, L); |
| 34606 | } |
| 34607 | bool ByteCodeEmitter::emitInitFieldFloat( uint32_t A0, SourceInfo L) { |
| 34608 | return emitOp<uint32_t>(OP_InitFieldFloat, A0, L); |
| 34609 | } |
| 34610 | bool ByteCodeEmitter::emitInitFieldReflect( uint32_t A0, SourceInfo L) { |
| 34611 | return emitOp<uint32_t>(OP_InitFieldReflect, A0, L); |
| 34612 | } |
| 34613 | #endif |
| 34614 | #ifdef GET_EVAL_IMPL |
| 34615 | bool EvalEmitter::emitInitFieldSint8( uint32_t A0, SourceInfo L) { |
| 34616 | if (!isActive()) return true; |
| 34617 | CurrentSource = L; |
| 34618 | return InitField<PT_Sint8>(S, CodePtr(), A0); |
| 34619 | } |
| 34620 | bool EvalEmitter::emitInitFieldUint8( uint32_t A0, SourceInfo L) { |
| 34621 | if (!isActive()) return true; |
| 34622 | CurrentSource = L; |
| 34623 | return InitField<PT_Uint8>(S, CodePtr(), A0); |
| 34624 | } |
| 34625 | bool EvalEmitter::emitInitFieldSint16( uint32_t A0, SourceInfo L) { |
| 34626 | if (!isActive()) return true; |
| 34627 | CurrentSource = L; |
| 34628 | return InitField<PT_Sint16>(S, CodePtr(), A0); |
| 34629 | } |
| 34630 | bool EvalEmitter::emitInitFieldUint16( uint32_t A0, SourceInfo L) { |
| 34631 | if (!isActive()) return true; |
| 34632 | CurrentSource = L; |
| 34633 | return InitField<PT_Uint16>(S, CodePtr(), A0); |
| 34634 | } |
| 34635 | bool EvalEmitter::emitInitFieldSint32( uint32_t A0, SourceInfo L) { |
| 34636 | if (!isActive()) return true; |
| 34637 | CurrentSource = L; |
| 34638 | return InitField<PT_Sint32>(S, CodePtr(), A0); |
| 34639 | } |
| 34640 | bool EvalEmitter::emitInitFieldUint32( uint32_t A0, SourceInfo L) { |
| 34641 | if (!isActive()) return true; |
| 34642 | CurrentSource = L; |
| 34643 | return InitField<PT_Uint32>(S, CodePtr(), A0); |
| 34644 | } |
| 34645 | bool EvalEmitter::emitInitFieldSint64( uint32_t A0, SourceInfo L) { |
| 34646 | if (!isActive()) return true; |
| 34647 | CurrentSource = L; |
| 34648 | return InitField<PT_Sint64>(S, CodePtr(), A0); |
| 34649 | } |
| 34650 | bool EvalEmitter::emitInitFieldUint64( uint32_t A0, SourceInfo L) { |
| 34651 | if (!isActive()) return true; |
| 34652 | CurrentSource = L; |
| 34653 | return InitField<PT_Uint64>(S, CodePtr(), A0); |
| 34654 | } |
| 34655 | bool EvalEmitter::emitInitFieldIntAP( uint32_t A0, SourceInfo L) { |
| 34656 | if (!isActive()) return true; |
| 34657 | CurrentSource = L; |
| 34658 | return InitField<PT_IntAP>(S, CodePtr(), A0); |
| 34659 | } |
| 34660 | bool EvalEmitter::emitInitFieldIntAPS( uint32_t A0, SourceInfo L) { |
| 34661 | if (!isActive()) return true; |
| 34662 | CurrentSource = L; |
| 34663 | return InitField<PT_IntAPS>(S, CodePtr(), A0); |
| 34664 | } |
| 34665 | bool EvalEmitter::emitInitFieldBool( uint32_t A0, SourceInfo L) { |
| 34666 | if (!isActive()) return true; |
| 34667 | CurrentSource = L; |
| 34668 | return InitField<PT_Bool>(S, CodePtr(), A0); |
| 34669 | } |
| 34670 | bool EvalEmitter::emitInitFieldFixedPoint( uint32_t A0, SourceInfo L) { |
| 34671 | if (!isActive()) return true; |
| 34672 | CurrentSource = L; |
| 34673 | return InitField<PT_FixedPoint>(S, CodePtr(), A0); |
| 34674 | } |
| 34675 | bool EvalEmitter::emitInitFieldPtr( uint32_t A0, SourceInfo L) { |
| 34676 | if (!isActive()) return true; |
| 34677 | CurrentSource = L; |
| 34678 | return InitField<PT_Ptr>(S, CodePtr(), A0); |
| 34679 | } |
| 34680 | bool EvalEmitter::emitInitFieldMemberPtr( uint32_t A0, SourceInfo L) { |
| 34681 | if (!isActive()) return true; |
| 34682 | CurrentSource = L; |
| 34683 | return InitField<PT_MemberPtr>(S, CodePtr(), A0); |
| 34684 | } |
| 34685 | bool EvalEmitter::emitInitFieldFloat( uint32_t A0, SourceInfo L) { |
| 34686 | if (!isActive()) return true; |
| 34687 | CurrentSource = L; |
| 34688 | return InitField<PT_Float>(S, CodePtr(), A0); |
| 34689 | } |
| 34690 | bool EvalEmitter::emitInitFieldReflect( uint32_t A0, SourceInfo L) { |
| 34691 | if (!isActive()) return true; |
| 34692 | CurrentSource = L; |
| 34693 | return InitField<PT_Reflect>(S, CodePtr(), A0); |
| 34694 | } |
| 34695 | #endif |
| 34696 | #ifdef GET_OPCODE_NAMES |
| 34697 | OP_InitFieldActivateSint8, |
| 34698 | OP_InitFieldActivateUint8, |
| 34699 | OP_InitFieldActivateSint16, |
| 34700 | OP_InitFieldActivateUint16, |
| 34701 | OP_InitFieldActivateSint32, |
| 34702 | OP_InitFieldActivateUint32, |
| 34703 | OP_InitFieldActivateSint64, |
| 34704 | OP_InitFieldActivateUint64, |
| 34705 | OP_InitFieldActivateIntAP, |
| 34706 | OP_InitFieldActivateIntAPS, |
| 34707 | OP_InitFieldActivateBool, |
| 34708 | OP_InitFieldActivateFixedPoint, |
| 34709 | OP_InitFieldActivatePtr, |
| 34710 | OP_InitFieldActivateMemberPtr, |
| 34711 | OP_InitFieldActivateFloat, |
| 34712 | OP_InitFieldActivateReflect, |
| 34713 | #endif |
| 34714 | #ifdef GET_INTERPFN_LIST |
| 34715 | &Interp_InitFieldActivateSint8, |
| 34716 | &Interp_InitFieldActivateUint8, |
| 34717 | &Interp_InitFieldActivateSint16, |
| 34718 | &Interp_InitFieldActivateUint16, |
| 34719 | &Interp_InitFieldActivateSint32, |
| 34720 | &Interp_InitFieldActivateUint32, |
| 34721 | &Interp_InitFieldActivateSint64, |
| 34722 | &Interp_InitFieldActivateUint64, |
| 34723 | &Interp_InitFieldActivateIntAP, |
| 34724 | &Interp_InitFieldActivateIntAPS, |
| 34725 | &Interp_InitFieldActivateBool, |
| 34726 | &Interp_InitFieldActivateFixedPoint, |
| 34727 | &Interp_InitFieldActivatePtr, |
| 34728 | &Interp_InitFieldActivateMemberPtr, |
| 34729 | &Interp_InitFieldActivateFloat, |
| 34730 | &Interp_InitFieldActivateReflect, |
| 34731 | #endif |
| 34732 | #ifdef GET_INTERPFN_DISPATCHERS |
| 34733 | PRESERVE_NONE |
| 34734 | static bool Interp_InitFieldActivateSint8(InterpState &S) { |
| 34735 | { |
| 34736 | CodePtr OpPC = S.PC; |
| 34737 | const auto V0 = ReadArg<uint32_t>(S, S.PC); |
| 34738 | if (!InitFieldActivate<PT_Sint8>(S, OpPC, V0)) return false; |
| 34739 | } |
| 34740 | #if USE_TAILCALLS |
| 34741 | MUSTTAIL return InterpNext(S); |
| 34742 | #else |
| 34743 | return true; |
| 34744 | #endif |
| 34745 | } |
| 34746 | PRESERVE_NONE |
| 34747 | static bool Interp_InitFieldActivateUint8(InterpState &S) { |
| 34748 | { |
| 34749 | CodePtr OpPC = S.PC; |
| 34750 | const auto V0 = ReadArg<uint32_t>(S, S.PC); |
| 34751 | if (!InitFieldActivate<PT_Uint8>(S, OpPC, V0)) return false; |
| 34752 | } |
| 34753 | #if USE_TAILCALLS |
| 34754 | MUSTTAIL return InterpNext(S); |
| 34755 | #else |
| 34756 | return true; |
| 34757 | #endif |
| 34758 | } |
| 34759 | PRESERVE_NONE |
| 34760 | static bool Interp_InitFieldActivateSint16(InterpState &S) { |
| 34761 | { |
| 34762 | CodePtr OpPC = S.PC; |
| 34763 | const auto V0 = ReadArg<uint32_t>(S, S.PC); |
| 34764 | if (!InitFieldActivate<PT_Sint16>(S, OpPC, V0)) return false; |
| 34765 | } |
| 34766 | #if USE_TAILCALLS |
| 34767 | MUSTTAIL return InterpNext(S); |
| 34768 | #else |
| 34769 | return true; |
| 34770 | #endif |
| 34771 | } |
| 34772 | PRESERVE_NONE |
| 34773 | static bool Interp_InitFieldActivateUint16(InterpState &S) { |
| 34774 | { |
| 34775 | CodePtr OpPC = S.PC; |
| 34776 | const auto V0 = ReadArg<uint32_t>(S, S.PC); |
| 34777 | if (!InitFieldActivate<PT_Uint16>(S, OpPC, V0)) return false; |
| 34778 | } |
| 34779 | #if USE_TAILCALLS |
| 34780 | MUSTTAIL return InterpNext(S); |
| 34781 | #else |
| 34782 | return true; |
| 34783 | #endif |
| 34784 | } |
| 34785 | PRESERVE_NONE |
| 34786 | static bool Interp_InitFieldActivateSint32(InterpState &S) { |
| 34787 | { |
| 34788 | CodePtr OpPC = S.PC; |
| 34789 | const auto V0 = ReadArg<uint32_t>(S, S.PC); |
| 34790 | if (!InitFieldActivate<PT_Sint32>(S, OpPC, V0)) return false; |
| 34791 | } |
| 34792 | #if USE_TAILCALLS |
| 34793 | MUSTTAIL return InterpNext(S); |
| 34794 | #else |
| 34795 | return true; |
| 34796 | #endif |
| 34797 | } |
| 34798 | PRESERVE_NONE |
| 34799 | static bool Interp_InitFieldActivateUint32(InterpState &S) { |
| 34800 | { |
| 34801 | CodePtr OpPC = S.PC; |
| 34802 | const auto V0 = ReadArg<uint32_t>(S, S.PC); |
| 34803 | if (!InitFieldActivate<PT_Uint32>(S, OpPC, V0)) return false; |
| 34804 | } |
| 34805 | #if USE_TAILCALLS |
| 34806 | MUSTTAIL return InterpNext(S); |
| 34807 | #else |
| 34808 | return true; |
| 34809 | #endif |
| 34810 | } |
| 34811 | PRESERVE_NONE |
| 34812 | static bool Interp_InitFieldActivateSint64(InterpState &S) { |
| 34813 | { |
| 34814 | CodePtr OpPC = S.PC; |
| 34815 | const auto V0 = ReadArg<uint32_t>(S, S.PC); |
| 34816 | if (!InitFieldActivate<PT_Sint64>(S, OpPC, V0)) return false; |
| 34817 | } |
| 34818 | #if USE_TAILCALLS |
| 34819 | MUSTTAIL return InterpNext(S); |
| 34820 | #else |
| 34821 | return true; |
| 34822 | #endif |
| 34823 | } |
| 34824 | PRESERVE_NONE |
| 34825 | static bool Interp_InitFieldActivateUint64(InterpState &S) { |
| 34826 | { |
| 34827 | CodePtr OpPC = S.PC; |
| 34828 | const auto V0 = ReadArg<uint32_t>(S, S.PC); |
| 34829 | if (!InitFieldActivate<PT_Uint64>(S, OpPC, V0)) return false; |
| 34830 | } |
| 34831 | #if USE_TAILCALLS |
| 34832 | MUSTTAIL return InterpNext(S); |
| 34833 | #else |
| 34834 | return true; |
| 34835 | #endif |
| 34836 | } |
| 34837 | PRESERVE_NONE |
| 34838 | static bool Interp_InitFieldActivateIntAP(InterpState &S) { |
| 34839 | { |
| 34840 | CodePtr OpPC = S.PC; |
| 34841 | const auto V0 = ReadArg<uint32_t>(S, S.PC); |
| 34842 | if (!InitFieldActivate<PT_IntAP>(S, OpPC, V0)) return false; |
| 34843 | } |
| 34844 | #if USE_TAILCALLS |
| 34845 | MUSTTAIL return InterpNext(S); |
| 34846 | #else |
| 34847 | return true; |
| 34848 | #endif |
| 34849 | } |
| 34850 | PRESERVE_NONE |
| 34851 | static bool Interp_InitFieldActivateIntAPS(InterpState &S) { |
| 34852 | { |
| 34853 | CodePtr OpPC = S.PC; |
| 34854 | const auto V0 = ReadArg<uint32_t>(S, S.PC); |
| 34855 | if (!InitFieldActivate<PT_IntAPS>(S, OpPC, V0)) return false; |
| 34856 | } |
| 34857 | #if USE_TAILCALLS |
| 34858 | MUSTTAIL return InterpNext(S); |
| 34859 | #else |
| 34860 | return true; |
| 34861 | #endif |
| 34862 | } |
| 34863 | PRESERVE_NONE |
| 34864 | static bool Interp_InitFieldActivateBool(InterpState &S) { |
| 34865 | { |
| 34866 | CodePtr OpPC = S.PC; |
| 34867 | const auto V0 = ReadArg<uint32_t>(S, S.PC); |
| 34868 | if (!InitFieldActivate<PT_Bool>(S, OpPC, V0)) return false; |
| 34869 | } |
| 34870 | #if USE_TAILCALLS |
| 34871 | MUSTTAIL return InterpNext(S); |
| 34872 | #else |
| 34873 | return true; |
| 34874 | #endif |
| 34875 | } |
| 34876 | PRESERVE_NONE |
| 34877 | static bool Interp_InitFieldActivateFixedPoint(InterpState &S) { |
| 34878 | { |
| 34879 | CodePtr OpPC = S.PC; |
| 34880 | const auto V0 = ReadArg<uint32_t>(S, S.PC); |
| 34881 | if (!InitFieldActivate<PT_FixedPoint>(S, OpPC, V0)) return false; |
| 34882 | } |
| 34883 | #if USE_TAILCALLS |
| 34884 | MUSTTAIL return InterpNext(S); |
| 34885 | #else |
| 34886 | return true; |
| 34887 | #endif |
| 34888 | } |
| 34889 | PRESERVE_NONE |
| 34890 | static bool Interp_InitFieldActivatePtr(InterpState &S) { |
| 34891 | { |
| 34892 | CodePtr OpPC = S.PC; |
| 34893 | const auto V0 = ReadArg<uint32_t>(S, S.PC); |
| 34894 | if (!InitFieldActivate<PT_Ptr>(S, OpPC, V0)) return false; |
| 34895 | } |
| 34896 | #if USE_TAILCALLS |
| 34897 | MUSTTAIL return InterpNext(S); |
| 34898 | #else |
| 34899 | return true; |
| 34900 | #endif |
| 34901 | } |
| 34902 | PRESERVE_NONE |
| 34903 | static bool Interp_InitFieldActivateMemberPtr(InterpState &S) { |
| 34904 | { |
| 34905 | CodePtr OpPC = S.PC; |
| 34906 | const auto V0 = ReadArg<uint32_t>(S, S.PC); |
| 34907 | if (!InitFieldActivate<PT_MemberPtr>(S, OpPC, V0)) return false; |
| 34908 | } |
| 34909 | #if USE_TAILCALLS |
| 34910 | MUSTTAIL return InterpNext(S); |
| 34911 | #else |
| 34912 | return true; |
| 34913 | #endif |
| 34914 | } |
| 34915 | PRESERVE_NONE |
| 34916 | static bool Interp_InitFieldActivateFloat(InterpState &S) { |
| 34917 | { |
| 34918 | CodePtr OpPC = S.PC; |
| 34919 | const auto V0 = ReadArg<uint32_t>(S, S.PC); |
| 34920 | if (!InitFieldActivate<PT_Float>(S, OpPC, V0)) return false; |
| 34921 | } |
| 34922 | #if USE_TAILCALLS |
| 34923 | MUSTTAIL return InterpNext(S); |
| 34924 | #else |
| 34925 | return true; |
| 34926 | #endif |
| 34927 | } |
| 34928 | PRESERVE_NONE |
| 34929 | static bool Interp_InitFieldActivateReflect(InterpState &S) { |
| 34930 | { |
| 34931 | CodePtr OpPC = S.PC; |
| 34932 | const auto V0 = ReadArg<uint32_t>(S, S.PC); |
| 34933 | if (!InitFieldActivate<PT_Reflect>(S, OpPC, V0)) return false; |
| 34934 | } |
| 34935 | #if USE_TAILCALLS |
| 34936 | MUSTTAIL return InterpNext(S); |
| 34937 | #else |
| 34938 | return true; |
| 34939 | #endif |
| 34940 | } |
| 34941 | #endif |
| 34942 | #ifdef GET_DISASM |
| 34943 | case OP_InitFieldActivateSint8: |
| 34944 | Text.Op = PrintName("InitFieldActivateSint8" ); |
| 34945 | Text.Args.push_back(printArg<uint32_t>(PC)); |
| 34946 | break; |
| 34947 | case OP_InitFieldActivateUint8: |
| 34948 | Text.Op = PrintName("InitFieldActivateUint8" ); |
| 34949 | Text.Args.push_back(printArg<uint32_t>(PC)); |
| 34950 | break; |
| 34951 | case OP_InitFieldActivateSint16: |
| 34952 | Text.Op = PrintName("InitFieldActivateSint16" ); |
| 34953 | Text.Args.push_back(printArg<uint32_t>(PC)); |
| 34954 | break; |
| 34955 | case OP_InitFieldActivateUint16: |
| 34956 | Text.Op = PrintName("InitFieldActivateUint16" ); |
| 34957 | Text.Args.push_back(printArg<uint32_t>(PC)); |
| 34958 | break; |
| 34959 | case OP_InitFieldActivateSint32: |
| 34960 | Text.Op = PrintName("InitFieldActivateSint32" ); |
| 34961 | Text.Args.push_back(printArg<uint32_t>(PC)); |
| 34962 | break; |
| 34963 | case OP_InitFieldActivateUint32: |
| 34964 | Text.Op = PrintName("InitFieldActivateUint32" ); |
| 34965 | Text.Args.push_back(printArg<uint32_t>(PC)); |
| 34966 | break; |
| 34967 | case OP_InitFieldActivateSint64: |
| 34968 | Text.Op = PrintName("InitFieldActivateSint64" ); |
| 34969 | Text.Args.push_back(printArg<uint32_t>(PC)); |
| 34970 | break; |
| 34971 | case OP_InitFieldActivateUint64: |
| 34972 | Text.Op = PrintName("InitFieldActivateUint64" ); |
| 34973 | Text.Args.push_back(printArg<uint32_t>(PC)); |
| 34974 | break; |
| 34975 | case OP_InitFieldActivateIntAP: |
| 34976 | Text.Op = PrintName("InitFieldActivateIntAP" ); |
| 34977 | Text.Args.push_back(printArg<uint32_t>(PC)); |
| 34978 | break; |
| 34979 | case OP_InitFieldActivateIntAPS: |
| 34980 | Text.Op = PrintName("InitFieldActivateIntAPS" ); |
| 34981 | Text.Args.push_back(printArg<uint32_t>(PC)); |
| 34982 | break; |
| 34983 | case OP_InitFieldActivateBool: |
| 34984 | Text.Op = PrintName("InitFieldActivateBool" ); |
| 34985 | Text.Args.push_back(printArg<uint32_t>(PC)); |
| 34986 | break; |
| 34987 | case OP_InitFieldActivateFixedPoint: |
| 34988 | Text.Op = PrintName("InitFieldActivateFixedPoint" ); |
| 34989 | Text.Args.push_back(printArg<uint32_t>(PC)); |
| 34990 | break; |
| 34991 | case OP_InitFieldActivatePtr: |
| 34992 | Text.Op = PrintName("InitFieldActivatePtr" ); |
| 34993 | Text.Args.push_back(printArg<uint32_t>(PC)); |
| 34994 | break; |
| 34995 | case OP_InitFieldActivateMemberPtr: |
| 34996 | Text.Op = PrintName("InitFieldActivateMemberPtr" ); |
| 34997 | Text.Args.push_back(printArg<uint32_t>(PC)); |
| 34998 | break; |
| 34999 | case OP_InitFieldActivateFloat: |
| 35000 | Text.Op = PrintName("InitFieldActivateFloat" ); |
| 35001 | Text.Args.push_back(printArg<uint32_t>(PC)); |
| 35002 | break; |
| 35003 | case OP_InitFieldActivateReflect: |
| 35004 | Text.Op = PrintName("InitFieldActivateReflect" ); |
| 35005 | Text.Args.push_back(printArg<uint32_t>(PC)); |
| 35006 | break; |
| 35007 | #endif |
| 35008 | #if defined(GET_EVAL_PROTO) || defined(GET_LINK_PROTO) |
| 35009 | bool emitInitFieldActivateSint8( uint32_t , SourceInfo); |
| 35010 | bool emitInitFieldActivateUint8( uint32_t , SourceInfo); |
| 35011 | bool emitInitFieldActivateSint16( uint32_t , SourceInfo); |
| 35012 | bool emitInitFieldActivateUint16( uint32_t , SourceInfo); |
| 35013 | bool emitInitFieldActivateSint32( uint32_t , SourceInfo); |
| 35014 | bool emitInitFieldActivateUint32( uint32_t , SourceInfo); |
| 35015 | bool emitInitFieldActivateSint64( uint32_t , SourceInfo); |
| 35016 | bool emitInitFieldActivateUint64( uint32_t , SourceInfo); |
| 35017 | bool emitInitFieldActivateIntAP( uint32_t , SourceInfo); |
| 35018 | bool emitInitFieldActivateIntAPS( uint32_t , SourceInfo); |
| 35019 | bool emitInitFieldActivateBool( uint32_t , SourceInfo); |
| 35020 | bool emitInitFieldActivateFixedPoint( uint32_t , SourceInfo); |
| 35021 | bool emitInitFieldActivatePtr( uint32_t , SourceInfo); |
| 35022 | bool emitInitFieldActivateMemberPtr( uint32_t , SourceInfo); |
| 35023 | bool emitInitFieldActivateFloat( uint32_t , SourceInfo); |
| 35024 | bool emitInitFieldActivateReflect( uint32_t , SourceInfo); |
| 35025 | #endif |
| 35026 | #if defined(GET_EVAL_PROTO) || defined(GET_LINK_PROTO) |
| 35027 | [[nodiscard]] bool emitInitFieldActivate(PrimType, uint32_t, SourceInfo I); |
| 35028 | #endif |
| 35029 | #if defined(GET_EVAL_IMPL) || defined(GET_LINK_IMPL) |
| 35030 | bool |
| 35031 | #if defined(GET_EVAL_IMPL) |
| 35032 | EvalEmitter |
| 35033 | #else |
| 35034 | ByteCodeEmitter |
| 35035 | #endif |
| 35036 | ::emitInitFieldActivate(PrimType T0, uint32_t A0, SourceInfo I) { |
| 35037 | switch (T0) { |
| 35038 | case PT_Sint8: |
| 35039 | return emitInitFieldActivateSint8(A0, I); |
| 35040 | case PT_Uint8: |
| 35041 | return emitInitFieldActivateUint8(A0, I); |
| 35042 | case PT_Sint16: |
| 35043 | return emitInitFieldActivateSint16(A0, I); |
| 35044 | case PT_Uint16: |
| 35045 | return emitInitFieldActivateUint16(A0, I); |
| 35046 | case PT_Sint32: |
| 35047 | return emitInitFieldActivateSint32(A0, I); |
| 35048 | case PT_Uint32: |
| 35049 | return emitInitFieldActivateUint32(A0, I); |
| 35050 | case PT_Sint64: |
| 35051 | return emitInitFieldActivateSint64(A0, I); |
| 35052 | case PT_Uint64: |
| 35053 | return emitInitFieldActivateUint64(A0, I); |
| 35054 | case PT_IntAP: |
| 35055 | return emitInitFieldActivateIntAP(A0, I); |
| 35056 | case PT_IntAPS: |
| 35057 | return emitInitFieldActivateIntAPS(A0, I); |
| 35058 | case PT_Bool: |
| 35059 | return emitInitFieldActivateBool(A0, I); |
| 35060 | case PT_FixedPoint: |
| 35061 | return emitInitFieldActivateFixedPoint(A0, I); |
| 35062 | case PT_Ptr: |
| 35063 | return emitInitFieldActivatePtr(A0, I); |
| 35064 | case PT_MemberPtr: |
| 35065 | return emitInitFieldActivateMemberPtr(A0, I); |
| 35066 | case PT_Float: |
| 35067 | return emitInitFieldActivateFloat(A0, I); |
| 35068 | case PT_Reflect: |
| 35069 | return emitInitFieldActivateReflect(A0, I); |
| 35070 | } |
| 35071 | llvm_unreachable("invalid enum value" ); |
| 35072 | } |
| 35073 | #endif |
| 35074 | #ifdef GET_LINK_IMPL |
| 35075 | bool ByteCodeEmitter::emitInitFieldActivateSint8( uint32_t A0, SourceInfo L) { |
| 35076 | return emitOp<uint32_t>(OP_InitFieldActivateSint8, A0, L); |
| 35077 | } |
| 35078 | bool ByteCodeEmitter::emitInitFieldActivateUint8( uint32_t A0, SourceInfo L) { |
| 35079 | return emitOp<uint32_t>(OP_InitFieldActivateUint8, A0, L); |
| 35080 | } |
| 35081 | bool ByteCodeEmitter::emitInitFieldActivateSint16( uint32_t A0, SourceInfo L) { |
| 35082 | return emitOp<uint32_t>(OP_InitFieldActivateSint16, A0, L); |
| 35083 | } |
| 35084 | bool ByteCodeEmitter::emitInitFieldActivateUint16( uint32_t A0, SourceInfo L) { |
| 35085 | return emitOp<uint32_t>(OP_InitFieldActivateUint16, A0, L); |
| 35086 | } |
| 35087 | bool ByteCodeEmitter::emitInitFieldActivateSint32( uint32_t A0, SourceInfo L) { |
| 35088 | return emitOp<uint32_t>(OP_InitFieldActivateSint32, A0, L); |
| 35089 | } |
| 35090 | bool ByteCodeEmitter::emitInitFieldActivateUint32( uint32_t A0, SourceInfo L) { |
| 35091 | return emitOp<uint32_t>(OP_InitFieldActivateUint32, A0, L); |
| 35092 | } |
| 35093 | bool ByteCodeEmitter::emitInitFieldActivateSint64( uint32_t A0, SourceInfo L) { |
| 35094 | return emitOp<uint32_t>(OP_InitFieldActivateSint64, A0, L); |
| 35095 | } |
| 35096 | bool ByteCodeEmitter::emitInitFieldActivateUint64( uint32_t A0, SourceInfo L) { |
| 35097 | return emitOp<uint32_t>(OP_InitFieldActivateUint64, A0, L); |
| 35098 | } |
| 35099 | bool ByteCodeEmitter::emitInitFieldActivateIntAP( uint32_t A0, SourceInfo L) { |
| 35100 | return emitOp<uint32_t>(OP_InitFieldActivateIntAP, A0, L); |
| 35101 | } |
| 35102 | bool ByteCodeEmitter::emitInitFieldActivateIntAPS( uint32_t A0, SourceInfo L) { |
| 35103 | return emitOp<uint32_t>(OP_InitFieldActivateIntAPS, A0, L); |
| 35104 | } |
| 35105 | bool ByteCodeEmitter::emitInitFieldActivateBool( uint32_t A0, SourceInfo L) { |
| 35106 | return emitOp<uint32_t>(OP_InitFieldActivateBool, A0, L); |
| 35107 | } |
| 35108 | bool ByteCodeEmitter::emitInitFieldActivateFixedPoint( uint32_t A0, SourceInfo L) { |
| 35109 | return emitOp<uint32_t>(OP_InitFieldActivateFixedPoint, A0, L); |
| 35110 | } |
| 35111 | bool ByteCodeEmitter::emitInitFieldActivatePtr( uint32_t A0, SourceInfo L) { |
| 35112 | return emitOp<uint32_t>(OP_InitFieldActivatePtr, A0, L); |
| 35113 | } |
| 35114 | bool ByteCodeEmitter::emitInitFieldActivateMemberPtr( uint32_t A0, SourceInfo L) { |
| 35115 | return emitOp<uint32_t>(OP_InitFieldActivateMemberPtr, A0, L); |
| 35116 | } |
| 35117 | bool ByteCodeEmitter::emitInitFieldActivateFloat( uint32_t A0, SourceInfo L) { |
| 35118 | return emitOp<uint32_t>(OP_InitFieldActivateFloat, A0, L); |
| 35119 | } |
| 35120 | bool ByteCodeEmitter::emitInitFieldActivateReflect( uint32_t A0, SourceInfo L) { |
| 35121 | return emitOp<uint32_t>(OP_InitFieldActivateReflect, A0, L); |
| 35122 | } |
| 35123 | #endif |
| 35124 | #ifdef GET_EVAL_IMPL |
| 35125 | bool EvalEmitter::emitInitFieldActivateSint8( uint32_t A0, SourceInfo L) { |
| 35126 | if (!isActive()) return true; |
| 35127 | CurrentSource = L; |
| 35128 | return InitFieldActivate<PT_Sint8>(S, CodePtr(), A0); |
| 35129 | } |
| 35130 | bool EvalEmitter::emitInitFieldActivateUint8( uint32_t A0, SourceInfo L) { |
| 35131 | if (!isActive()) return true; |
| 35132 | CurrentSource = L; |
| 35133 | return InitFieldActivate<PT_Uint8>(S, CodePtr(), A0); |
| 35134 | } |
| 35135 | bool EvalEmitter::emitInitFieldActivateSint16( uint32_t A0, SourceInfo L) { |
| 35136 | if (!isActive()) return true; |
| 35137 | CurrentSource = L; |
| 35138 | return InitFieldActivate<PT_Sint16>(S, CodePtr(), A0); |
| 35139 | } |
| 35140 | bool EvalEmitter::emitInitFieldActivateUint16( uint32_t A0, SourceInfo L) { |
| 35141 | if (!isActive()) return true; |
| 35142 | CurrentSource = L; |
| 35143 | return InitFieldActivate<PT_Uint16>(S, CodePtr(), A0); |
| 35144 | } |
| 35145 | bool EvalEmitter::emitInitFieldActivateSint32( uint32_t A0, SourceInfo L) { |
| 35146 | if (!isActive()) return true; |
| 35147 | CurrentSource = L; |
| 35148 | return InitFieldActivate<PT_Sint32>(S, CodePtr(), A0); |
| 35149 | } |
| 35150 | bool EvalEmitter::emitInitFieldActivateUint32( uint32_t A0, SourceInfo L) { |
| 35151 | if (!isActive()) return true; |
| 35152 | CurrentSource = L; |
| 35153 | return InitFieldActivate<PT_Uint32>(S, CodePtr(), A0); |
| 35154 | } |
| 35155 | bool EvalEmitter::emitInitFieldActivateSint64( uint32_t A0, SourceInfo L) { |
| 35156 | if (!isActive()) return true; |
| 35157 | CurrentSource = L; |
| 35158 | return InitFieldActivate<PT_Sint64>(S, CodePtr(), A0); |
| 35159 | } |
| 35160 | bool EvalEmitter::emitInitFieldActivateUint64( uint32_t A0, SourceInfo L) { |
| 35161 | if (!isActive()) return true; |
| 35162 | CurrentSource = L; |
| 35163 | return InitFieldActivate<PT_Uint64>(S, CodePtr(), A0); |
| 35164 | } |
| 35165 | bool EvalEmitter::emitInitFieldActivateIntAP( uint32_t A0, SourceInfo L) { |
| 35166 | if (!isActive()) return true; |
| 35167 | CurrentSource = L; |
| 35168 | return InitFieldActivate<PT_IntAP>(S, CodePtr(), A0); |
| 35169 | } |
| 35170 | bool EvalEmitter::emitInitFieldActivateIntAPS( uint32_t A0, SourceInfo L) { |
| 35171 | if (!isActive()) return true; |
| 35172 | CurrentSource = L; |
| 35173 | return InitFieldActivate<PT_IntAPS>(S, CodePtr(), A0); |
| 35174 | } |
| 35175 | bool EvalEmitter::emitInitFieldActivateBool( uint32_t A0, SourceInfo L) { |
| 35176 | if (!isActive()) return true; |
| 35177 | CurrentSource = L; |
| 35178 | return InitFieldActivate<PT_Bool>(S, CodePtr(), A0); |
| 35179 | } |
| 35180 | bool EvalEmitter::emitInitFieldActivateFixedPoint( uint32_t A0, SourceInfo L) { |
| 35181 | if (!isActive()) return true; |
| 35182 | CurrentSource = L; |
| 35183 | return InitFieldActivate<PT_FixedPoint>(S, CodePtr(), A0); |
| 35184 | } |
| 35185 | bool EvalEmitter::emitInitFieldActivatePtr( uint32_t A0, SourceInfo L) { |
| 35186 | if (!isActive()) return true; |
| 35187 | CurrentSource = L; |
| 35188 | return InitFieldActivate<PT_Ptr>(S, CodePtr(), A0); |
| 35189 | } |
| 35190 | bool EvalEmitter::emitInitFieldActivateMemberPtr( uint32_t A0, SourceInfo L) { |
| 35191 | if (!isActive()) return true; |
| 35192 | CurrentSource = L; |
| 35193 | return InitFieldActivate<PT_MemberPtr>(S, CodePtr(), A0); |
| 35194 | } |
| 35195 | bool EvalEmitter::emitInitFieldActivateFloat( uint32_t A0, SourceInfo L) { |
| 35196 | if (!isActive()) return true; |
| 35197 | CurrentSource = L; |
| 35198 | return InitFieldActivate<PT_Float>(S, CodePtr(), A0); |
| 35199 | } |
| 35200 | bool EvalEmitter::emitInitFieldActivateReflect( uint32_t A0, SourceInfo L) { |
| 35201 | if (!isActive()) return true; |
| 35202 | CurrentSource = L; |
| 35203 | return InitFieldActivate<PT_Reflect>(S, CodePtr(), A0); |
| 35204 | } |
| 35205 | #endif |
| 35206 | #ifdef GET_OPCODE_NAMES |
| 35207 | OP_InitGlobalSint8, |
| 35208 | OP_InitGlobalUint8, |
| 35209 | OP_InitGlobalSint16, |
| 35210 | OP_InitGlobalUint16, |
| 35211 | OP_InitGlobalSint32, |
| 35212 | OP_InitGlobalUint32, |
| 35213 | OP_InitGlobalSint64, |
| 35214 | OP_InitGlobalUint64, |
| 35215 | OP_InitGlobalIntAP, |
| 35216 | OP_InitGlobalIntAPS, |
| 35217 | OP_InitGlobalBool, |
| 35218 | OP_InitGlobalFixedPoint, |
| 35219 | OP_InitGlobalPtr, |
| 35220 | OP_InitGlobalMemberPtr, |
| 35221 | OP_InitGlobalFloat, |
| 35222 | OP_InitGlobalReflect, |
| 35223 | #endif |
| 35224 | #ifdef GET_INTERPFN_LIST |
| 35225 | &Interp_InitGlobalSint8, |
| 35226 | &Interp_InitGlobalUint8, |
| 35227 | &Interp_InitGlobalSint16, |
| 35228 | &Interp_InitGlobalUint16, |
| 35229 | &Interp_InitGlobalSint32, |
| 35230 | &Interp_InitGlobalUint32, |
| 35231 | &Interp_InitGlobalSint64, |
| 35232 | &Interp_InitGlobalUint64, |
| 35233 | &Interp_InitGlobalIntAP, |
| 35234 | &Interp_InitGlobalIntAPS, |
| 35235 | &Interp_InitGlobalBool, |
| 35236 | &Interp_InitGlobalFixedPoint, |
| 35237 | &Interp_InitGlobalPtr, |
| 35238 | &Interp_InitGlobalMemberPtr, |
| 35239 | &Interp_InitGlobalFloat, |
| 35240 | &Interp_InitGlobalReflect, |
| 35241 | #endif |
| 35242 | #ifdef GET_INTERPFN_DISPATCHERS |
| 35243 | PRESERVE_NONE |
| 35244 | static bool Interp_InitGlobalSint8(InterpState &S) { |
| 35245 | { |
| 35246 | const auto V0 = ReadArg<uint32_t>(S, S.PC); |
| 35247 | InitGlobal<PT_Sint8>(S, V0); |
| 35248 | } |
| 35249 | #if USE_TAILCALLS |
| 35250 | MUSTTAIL return InterpNext(S); |
| 35251 | #else |
| 35252 | return true; |
| 35253 | #endif |
| 35254 | } |
| 35255 | PRESERVE_NONE |
| 35256 | static bool Interp_InitGlobalUint8(InterpState &S) { |
| 35257 | { |
| 35258 | const auto V0 = ReadArg<uint32_t>(S, S.PC); |
| 35259 | InitGlobal<PT_Uint8>(S, V0); |
| 35260 | } |
| 35261 | #if USE_TAILCALLS |
| 35262 | MUSTTAIL return InterpNext(S); |
| 35263 | #else |
| 35264 | return true; |
| 35265 | #endif |
| 35266 | } |
| 35267 | PRESERVE_NONE |
| 35268 | static bool Interp_InitGlobalSint16(InterpState &S) { |
| 35269 | { |
| 35270 | const auto V0 = ReadArg<uint32_t>(S, S.PC); |
| 35271 | InitGlobal<PT_Sint16>(S, V0); |
| 35272 | } |
| 35273 | #if USE_TAILCALLS |
| 35274 | MUSTTAIL return InterpNext(S); |
| 35275 | #else |
| 35276 | return true; |
| 35277 | #endif |
| 35278 | } |
| 35279 | PRESERVE_NONE |
| 35280 | static bool Interp_InitGlobalUint16(InterpState &S) { |
| 35281 | { |
| 35282 | const auto V0 = ReadArg<uint32_t>(S, S.PC); |
| 35283 | InitGlobal<PT_Uint16>(S, V0); |
| 35284 | } |
| 35285 | #if USE_TAILCALLS |
| 35286 | MUSTTAIL return InterpNext(S); |
| 35287 | #else |
| 35288 | return true; |
| 35289 | #endif |
| 35290 | } |
| 35291 | PRESERVE_NONE |
| 35292 | static bool Interp_InitGlobalSint32(InterpState &S) { |
| 35293 | { |
| 35294 | const auto V0 = ReadArg<uint32_t>(S, S.PC); |
| 35295 | InitGlobal<PT_Sint32>(S, V0); |
| 35296 | } |
| 35297 | #if USE_TAILCALLS |
| 35298 | MUSTTAIL return InterpNext(S); |
| 35299 | #else |
| 35300 | return true; |
| 35301 | #endif |
| 35302 | } |
| 35303 | PRESERVE_NONE |
| 35304 | static bool Interp_InitGlobalUint32(InterpState &S) { |
| 35305 | { |
| 35306 | const auto V0 = ReadArg<uint32_t>(S, S.PC); |
| 35307 | InitGlobal<PT_Uint32>(S, V0); |
| 35308 | } |
| 35309 | #if USE_TAILCALLS |
| 35310 | MUSTTAIL return InterpNext(S); |
| 35311 | #else |
| 35312 | return true; |
| 35313 | #endif |
| 35314 | } |
| 35315 | PRESERVE_NONE |
| 35316 | static bool Interp_InitGlobalSint64(InterpState &S) { |
| 35317 | { |
| 35318 | const auto V0 = ReadArg<uint32_t>(S, S.PC); |
| 35319 | InitGlobal<PT_Sint64>(S, V0); |
| 35320 | } |
| 35321 | #if USE_TAILCALLS |
| 35322 | MUSTTAIL return InterpNext(S); |
| 35323 | #else |
| 35324 | return true; |
| 35325 | #endif |
| 35326 | } |
| 35327 | PRESERVE_NONE |
| 35328 | static bool Interp_InitGlobalUint64(InterpState &S) { |
| 35329 | { |
| 35330 | const auto V0 = ReadArg<uint32_t>(S, S.PC); |
| 35331 | InitGlobal<PT_Uint64>(S, V0); |
| 35332 | } |
| 35333 | #if USE_TAILCALLS |
| 35334 | MUSTTAIL return InterpNext(S); |
| 35335 | #else |
| 35336 | return true; |
| 35337 | #endif |
| 35338 | } |
| 35339 | PRESERVE_NONE |
| 35340 | static bool Interp_InitGlobalIntAP(InterpState &S) { |
| 35341 | { |
| 35342 | const auto V0 = ReadArg<uint32_t>(S, S.PC); |
| 35343 | InitGlobal<PT_IntAP>(S, V0); |
| 35344 | } |
| 35345 | #if USE_TAILCALLS |
| 35346 | MUSTTAIL return InterpNext(S); |
| 35347 | #else |
| 35348 | return true; |
| 35349 | #endif |
| 35350 | } |
| 35351 | PRESERVE_NONE |
| 35352 | static bool Interp_InitGlobalIntAPS(InterpState &S) { |
| 35353 | { |
| 35354 | const auto V0 = ReadArg<uint32_t>(S, S.PC); |
| 35355 | InitGlobal<PT_IntAPS>(S, V0); |
| 35356 | } |
| 35357 | #if USE_TAILCALLS |
| 35358 | MUSTTAIL return InterpNext(S); |
| 35359 | #else |
| 35360 | return true; |
| 35361 | #endif |
| 35362 | } |
| 35363 | PRESERVE_NONE |
| 35364 | static bool Interp_InitGlobalBool(InterpState &S) { |
| 35365 | { |
| 35366 | const auto V0 = ReadArg<uint32_t>(S, S.PC); |
| 35367 | InitGlobal<PT_Bool>(S, V0); |
| 35368 | } |
| 35369 | #if USE_TAILCALLS |
| 35370 | MUSTTAIL return InterpNext(S); |
| 35371 | #else |
| 35372 | return true; |
| 35373 | #endif |
| 35374 | } |
| 35375 | PRESERVE_NONE |
| 35376 | static bool Interp_InitGlobalFixedPoint(InterpState &S) { |
| 35377 | { |
| 35378 | const auto V0 = ReadArg<uint32_t>(S, S.PC); |
| 35379 | InitGlobal<PT_FixedPoint>(S, V0); |
| 35380 | } |
| 35381 | #if USE_TAILCALLS |
| 35382 | MUSTTAIL return InterpNext(S); |
| 35383 | #else |
| 35384 | return true; |
| 35385 | #endif |
| 35386 | } |
| 35387 | PRESERVE_NONE |
| 35388 | static bool Interp_InitGlobalPtr(InterpState &S) { |
| 35389 | { |
| 35390 | const auto V0 = ReadArg<uint32_t>(S, S.PC); |
| 35391 | InitGlobal<PT_Ptr>(S, V0); |
| 35392 | } |
| 35393 | #if USE_TAILCALLS |
| 35394 | MUSTTAIL return InterpNext(S); |
| 35395 | #else |
| 35396 | return true; |
| 35397 | #endif |
| 35398 | } |
| 35399 | PRESERVE_NONE |
| 35400 | static bool Interp_InitGlobalMemberPtr(InterpState &S) { |
| 35401 | { |
| 35402 | const auto V0 = ReadArg<uint32_t>(S, S.PC); |
| 35403 | InitGlobal<PT_MemberPtr>(S, V0); |
| 35404 | } |
| 35405 | #if USE_TAILCALLS |
| 35406 | MUSTTAIL return InterpNext(S); |
| 35407 | #else |
| 35408 | return true; |
| 35409 | #endif |
| 35410 | } |
| 35411 | PRESERVE_NONE |
| 35412 | static bool Interp_InitGlobalFloat(InterpState &S) { |
| 35413 | { |
| 35414 | const auto V0 = ReadArg<uint32_t>(S, S.PC); |
| 35415 | InitGlobal<PT_Float>(S, V0); |
| 35416 | } |
| 35417 | #if USE_TAILCALLS |
| 35418 | MUSTTAIL return InterpNext(S); |
| 35419 | #else |
| 35420 | return true; |
| 35421 | #endif |
| 35422 | } |
| 35423 | PRESERVE_NONE |
| 35424 | static bool Interp_InitGlobalReflect(InterpState &S) { |
| 35425 | { |
| 35426 | const auto V0 = ReadArg<uint32_t>(S, S.PC); |
| 35427 | InitGlobal<PT_Reflect>(S, V0); |
| 35428 | } |
| 35429 | #if USE_TAILCALLS |
| 35430 | MUSTTAIL return InterpNext(S); |
| 35431 | #else |
| 35432 | return true; |
| 35433 | #endif |
| 35434 | } |
| 35435 | #endif |
| 35436 | #ifdef GET_DISASM |
| 35437 | case OP_InitGlobalSint8: |
| 35438 | Text.Op = PrintName("InitGlobalSint8" ); |
| 35439 | Text.Args.push_back(printArg<uint32_t>(PC)); |
| 35440 | break; |
| 35441 | case OP_InitGlobalUint8: |
| 35442 | Text.Op = PrintName("InitGlobalUint8" ); |
| 35443 | Text.Args.push_back(printArg<uint32_t>(PC)); |
| 35444 | break; |
| 35445 | case OP_InitGlobalSint16: |
| 35446 | Text.Op = PrintName("InitGlobalSint16" ); |
| 35447 | Text.Args.push_back(printArg<uint32_t>(PC)); |
| 35448 | break; |
| 35449 | case OP_InitGlobalUint16: |
| 35450 | Text.Op = PrintName("InitGlobalUint16" ); |
| 35451 | Text.Args.push_back(printArg<uint32_t>(PC)); |
| 35452 | break; |
| 35453 | case OP_InitGlobalSint32: |
| 35454 | Text.Op = PrintName("InitGlobalSint32" ); |
| 35455 | Text.Args.push_back(printArg<uint32_t>(PC)); |
| 35456 | break; |
| 35457 | case OP_InitGlobalUint32: |
| 35458 | Text.Op = PrintName("InitGlobalUint32" ); |
| 35459 | Text.Args.push_back(printArg<uint32_t>(PC)); |
| 35460 | break; |
| 35461 | case OP_InitGlobalSint64: |
| 35462 | Text.Op = PrintName("InitGlobalSint64" ); |
| 35463 | Text.Args.push_back(printArg<uint32_t>(PC)); |
| 35464 | break; |
| 35465 | case OP_InitGlobalUint64: |
| 35466 | Text.Op = PrintName("InitGlobalUint64" ); |
| 35467 | Text.Args.push_back(printArg<uint32_t>(PC)); |
| 35468 | break; |
| 35469 | case OP_InitGlobalIntAP: |
| 35470 | Text.Op = PrintName("InitGlobalIntAP" ); |
| 35471 | Text.Args.push_back(printArg<uint32_t>(PC)); |
| 35472 | break; |
| 35473 | case OP_InitGlobalIntAPS: |
| 35474 | Text.Op = PrintName("InitGlobalIntAPS" ); |
| 35475 | Text.Args.push_back(printArg<uint32_t>(PC)); |
| 35476 | break; |
| 35477 | case OP_InitGlobalBool: |
| 35478 | Text.Op = PrintName("InitGlobalBool" ); |
| 35479 | Text.Args.push_back(printArg<uint32_t>(PC)); |
| 35480 | break; |
| 35481 | case OP_InitGlobalFixedPoint: |
| 35482 | Text.Op = PrintName("InitGlobalFixedPoint" ); |
| 35483 | Text.Args.push_back(printArg<uint32_t>(PC)); |
| 35484 | break; |
| 35485 | case OP_InitGlobalPtr: |
| 35486 | Text.Op = PrintName("InitGlobalPtr" ); |
| 35487 | Text.Args.push_back(printArg<uint32_t>(PC)); |
| 35488 | break; |
| 35489 | case OP_InitGlobalMemberPtr: |
| 35490 | Text.Op = PrintName("InitGlobalMemberPtr" ); |
| 35491 | Text.Args.push_back(printArg<uint32_t>(PC)); |
| 35492 | break; |
| 35493 | case OP_InitGlobalFloat: |
| 35494 | Text.Op = PrintName("InitGlobalFloat" ); |
| 35495 | Text.Args.push_back(printArg<uint32_t>(PC)); |
| 35496 | break; |
| 35497 | case OP_InitGlobalReflect: |
| 35498 | Text.Op = PrintName("InitGlobalReflect" ); |
| 35499 | Text.Args.push_back(printArg<uint32_t>(PC)); |
| 35500 | break; |
| 35501 | #endif |
| 35502 | #if defined(GET_EVAL_PROTO) || defined(GET_LINK_PROTO) |
| 35503 | bool emitInitGlobalSint8( uint32_t , SourceInfo); |
| 35504 | bool emitInitGlobalUint8( uint32_t , SourceInfo); |
| 35505 | bool emitInitGlobalSint16( uint32_t , SourceInfo); |
| 35506 | bool emitInitGlobalUint16( uint32_t , SourceInfo); |
| 35507 | bool emitInitGlobalSint32( uint32_t , SourceInfo); |
| 35508 | bool emitInitGlobalUint32( uint32_t , SourceInfo); |
| 35509 | bool emitInitGlobalSint64( uint32_t , SourceInfo); |
| 35510 | bool emitInitGlobalUint64( uint32_t , SourceInfo); |
| 35511 | bool emitInitGlobalIntAP( uint32_t , SourceInfo); |
| 35512 | bool emitInitGlobalIntAPS( uint32_t , SourceInfo); |
| 35513 | bool emitInitGlobalBool( uint32_t , SourceInfo); |
| 35514 | bool emitInitGlobalFixedPoint( uint32_t , SourceInfo); |
| 35515 | bool emitInitGlobalPtr( uint32_t , SourceInfo); |
| 35516 | bool emitInitGlobalMemberPtr( uint32_t , SourceInfo); |
| 35517 | bool emitInitGlobalFloat( uint32_t , SourceInfo); |
| 35518 | bool emitInitGlobalReflect( uint32_t , SourceInfo); |
| 35519 | #endif |
| 35520 | #if defined(GET_EVAL_PROTO) || defined(GET_LINK_PROTO) |
| 35521 | [[nodiscard]] bool emitInitGlobal(PrimType, uint32_t, SourceInfo I); |
| 35522 | #endif |
| 35523 | #if defined(GET_EVAL_IMPL) || defined(GET_LINK_IMPL) |
| 35524 | bool |
| 35525 | #if defined(GET_EVAL_IMPL) |
| 35526 | EvalEmitter |
| 35527 | #else |
| 35528 | ByteCodeEmitter |
| 35529 | #endif |
| 35530 | ::emitInitGlobal(PrimType T0, uint32_t A0, SourceInfo I) { |
| 35531 | switch (T0) { |
| 35532 | case PT_Sint8: |
| 35533 | return emitInitGlobalSint8(A0, I); |
| 35534 | case PT_Uint8: |
| 35535 | return emitInitGlobalUint8(A0, I); |
| 35536 | case PT_Sint16: |
| 35537 | return emitInitGlobalSint16(A0, I); |
| 35538 | case PT_Uint16: |
| 35539 | return emitInitGlobalUint16(A0, I); |
| 35540 | case PT_Sint32: |
| 35541 | return emitInitGlobalSint32(A0, I); |
| 35542 | case PT_Uint32: |
| 35543 | return emitInitGlobalUint32(A0, I); |
| 35544 | case PT_Sint64: |
| 35545 | return emitInitGlobalSint64(A0, I); |
| 35546 | case PT_Uint64: |
| 35547 | return emitInitGlobalUint64(A0, I); |
| 35548 | case PT_IntAP: |
| 35549 | return emitInitGlobalIntAP(A0, I); |
| 35550 | case PT_IntAPS: |
| 35551 | return emitInitGlobalIntAPS(A0, I); |
| 35552 | case PT_Bool: |
| 35553 | return emitInitGlobalBool(A0, I); |
| 35554 | case PT_FixedPoint: |
| 35555 | return emitInitGlobalFixedPoint(A0, I); |
| 35556 | case PT_Ptr: |
| 35557 | return emitInitGlobalPtr(A0, I); |
| 35558 | case PT_MemberPtr: |
| 35559 | return emitInitGlobalMemberPtr(A0, I); |
| 35560 | case PT_Float: |
| 35561 | return emitInitGlobalFloat(A0, I); |
| 35562 | case PT_Reflect: |
| 35563 | return emitInitGlobalReflect(A0, I); |
| 35564 | } |
| 35565 | llvm_unreachable("invalid enum value" ); |
| 35566 | } |
| 35567 | #endif |
| 35568 | #ifdef GET_LINK_IMPL |
| 35569 | bool ByteCodeEmitter::emitInitGlobalSint8( uint32_t A0, SourceInfo L) { |
| 35570 | return emitOp<uint32_t>(OP_InitGlobalSint8, A0, L); |
| 35571 | } |
| 35572 | bool ByteCodeEmitter::emitInitGlobalUint8( uint32_t A0, SourceInfo L) { |
| 35573 | return emitOp<uint32_t>(OP_InitGlobalUint8, A0, L); |
| 35574 | } |
| 35575 | bool ByteCodeEmitter::emitInitGlobalSint16( uint32_t A0, SourceInfo L) { |
| 35576 | return emitOp<uint32_t>(OP_InitGlobalSint16, A0, L); |
| 35577 | } |
| 35578 | bool ByteCodeEmitter::emitInitGlobalUint16( uint32_t A0, SourceInfo L) { |
| 35579 | return emitOp<uint32_t>(OP_InitGlobalUint16, A0, L); |
| 35580 | } |
| 35581 | bool ByteCodeEmitter::emitInitGlobalSint32( uint32_t A0, SourceInfo L) { |
| 35582 | return emitOp<uint32_t>(OP_InitGlobalSint32, A0, L); |
| 35583 | } |
| 35584 | bool ByteCodeEmitter::emitInitGlobalUint32( uint32_t A0, SourceInfo L) { |
| 35585 | return emitOp<uint32_t>(OP_InitGlobalUint32, A0, L); |
| 35586 | } |
| 35587 | bool ByteCodeEmitter::emitInitGlobalSint64( uint32_t A0, SourceInfo L) { |
| 35588 | return emitOp<uint32_t>(OP_InitGlobalSint64, A0, L); |
| 35589 | } |
| 35590 | bool ByteCodeEmitter::emitInitGlobalUint64( uint32_t A0, SourceInfo L) { |
| 35591 | return emitOp<uint32_t>(OP_InitGlobalUint64, A0, L); |
| 35592 | } |
| 35593 | bool ByteCodeEmitter::emitInitGlobalIntAP( uint32_t A0, SourceInfo L) { |
| 35594 | return emitOp<uint32_t>(OP_InitGlobalIntAP, A0, L); |
| 35595 | } |
| 35596 | bool ByteCodeEmitter::emitInitGlobalIntAPS( uint32_t A0, SourceInfo L) { |
| 35597 | return emitOp<uint32_t>(OP_InitGlobalIntAPS, A0, L); |
| 35598 | } |
| 35599 | bool ByteCodeEmitter::emitInitGlobalBool( uint32_t A0, SourceInfo L) { |
| 35600 | return emitOp<uint32_t>(OP_InitGlobalBool, A0, L); |
| 35601 | } |
| 35602 | bool ByteCodeEmitter::emitInitGlobalFixedPoint( uint32_t A0, SourceInfo L) { |
| 35603 | return emitOp<uint32_t>(OP_InitGlobalFixedPoint, A0, L); |
| 35604 | } |
| 35605 | bool ByteCodeEmitter::emitInitGlobalPtr( uint32_t A0, SourceInfo L) { |
| 35606 | return emitOp<uint32_t>(OP_InitGlobalPtr, A0, L); |
| 35607 | } |
| 35608 | bool ByteCodeEmitter::emitInitGlobalMemberPtr( uint32_t A0, SourceInfo L) { |
| 35609 | return emitOp<uint32_t>(OP_InitGlobalMemberPtr, A0, L); |
| 35610 | } |
| 35611 | bool ByteCodeEmitter::emitInitGlobalFloat( uint32_t A0, SourceInfo L) { |
| 35612 | return emitOp<uint32_t>(OP_InitGlobalFloat, A0, L); |
| 35613 | } |
| 35614 | bool ByteCodeEmitter::emitInitGlobalReflect( uint32_t A0, SourceInfo L) { |
| 35615 | return emitOp<uint32_t>(OP_InitGlobalReflect, A0, L); |
| 35616 | } |
| 35617 | #endif |
| 35618 | #ifdef GET_EVAL_IMPL |
| 35619 | bool EvalEmitter::emitInitGlobalSint8( uint32_t A0, SourceInfo L) { |
| 35620 | if (!isActive()) return true; |
| 35621 | CurrentSource = L; |
| 35622 | return InitGlobal<PT_Sint8>(S, A0); |
| 35623 | } |
| 35624 | bool EvalEmitter::emitInitGlobalUint8( uint32_t A0, SourceInfo L) { |
| 35625 | if (!isActive()) return true; |
| 35626 | CurrentSource = L; |
| 35627 | return InitGlobal<PT_Uint8>(S, A0); |
| 35628 | } |
| 35629 | bool EvalEmitter::emitInitGlobalSint16( uint32_t A0, SourceInfo L) { |
| 35630 | if (!isActive()) return true; |
| 35631 | CurrentSource = L; |
| 35632 | return InitGlobal<PT_Sint16>(S, A0); |
| 35633 | } |
| 35634 | bool EvalEmitter::emitInitGlobalUint16( uint32_t A0, SourceInfo L) { |
| 35635 | if (!isActive()) return true; |
| 35636 | CurrentSource = L; |
| 35637 | return InitGlobal<PT_Uint16>(S, A0); |
| 35638 | } |
| 35639 | bool EvalEmitter::emitInitGlobalSint32( uint32_t A0, SourceInfo L) { |
| 35640 | if (!isActive()) return true; |
| 35641 | CurrentSource = L; |
| 35642 | return InitGlobal<PT_Sint32>(S, A0); |
| 35643 | } |
| 35644 | bool EvalEmitter::emitInitGlobalUint32( uint32_t A0, SourceInfo L) { |
| 35645 | if (!isActive()) return true; |
| 35646 | CurrentSource = L; |
| 35647 | return InitGlobal<PT_Uint32>(S, A0); |
| 35648 | } |
| 35649 | bool EvalEmitter::emitInitGlobalSint64( uint32_t A0, SourceInfo L) { |
| 35650 | if (!isActive()) return true; |
| 35651 | CurrentSource = L; |
| 35652 | return InitGlobal<PT_Sint64>(S, A0); |
| 35653 | } |
| 35654 | bool EvalEmitter::emitInitGlobalUint64( uint32_t A0, SourceInfo L) { |
| 35655 | if (!isActive()) return true; |
| 35656 | CurrentSource = L; |
| 35657 | return InitGlobal<PT_Uint64>(S, A0); |
| 35658 | } |
| 35659 | bool EvalEmitter::emitInitGlobalIntAP( uint32_t A0, SourceInfo L) { |
| 35660 | if (!isActive()) return true; |
| 35661 | CurrentSource = L; |
| 35662 | return InitGlobal<PT_IntAP>(S, A0); |
| 35663 | } |
| 35664 | bool EvalEmitter::emitInitGlobalIntAPS( uint32_t A0, SourceInfo L) { |
| 35665 | if (!isActive()) return true; |
| 35666 | CurrentSource = L; |
| 35667 | return InitGlobal<PT_IntAPS>(S, A0); |
| 35668 | } |
| 35669 | bool EvalEmitter::emitInitGlobalBool( uint32_t A0, SourceInfo L) { |
| 35670 | if (!isActive()) return true; |
| 35671 | CurrentSource = L; |
| 35672 | return InitGlobal<PT_Bool>(S, A0); |
| 35673 | } |
| 35674 | bool EvalEmitter::emitInitGlobalFixedPoint( uint32_t A0, SourceInfo L) { |
| 35675 | if (!isActive()) return true; |
| 35676 | CurrentSource = L; |
| 35677 | return InitGlobal<PT_FixedPoint>(S, A0); |
| 35678 | } |
| 35679 | bool EvalEmitter::emitInitGlobalPtr( uint32_t A0, SourceInfo L) { |
| 35680 | if (!isActive()) return true; |
| 35681 | CurrentSource = L; |
| 35682 | return InitGlobal<PT_Ptr>(S, A0); |
| 35683 | } |
| 35684 | bool EvalEmitter::emitInitGlobalMemberPtr( uint32_t A0, SourceInfo L) { |
| 35685 | if (!isActive()) return true; |
| 35686 | CurrentSource = L; |
| 35687 | return InitGlobal<PT_MemberPtr>(S, A0); |
| 35688 | } |
| 35689 | bool EvalEmitter::emitInitGlobalFloat( uint32_t A0, SourceInfo L) { |
| 35690 | if (!isActive()) return true; |
| 35691 | CurrentSource = L; |
| 35692 | return InitGlobal<PT_Float>(S, A0); |
| 35693 | } |
| 35694 | bool EvalEmitter::emitInitGlobalReflect( uint32_t A0, SourceInfo L) { |
| 35695 | if (!isActive()) return true; |
| 35696 | CurrentSource = L; |
| 35697 | return InitGlobal<PT_Reflect>(S, A0); |
| 35698 | } |
| 35699 | #endif |
| 35700 | #ifdef GET_OPCODE_NAMES |
| 35701 | OP_InitGlobalTempSint8, |
| 35702 | OP_InitGlobalTempUint8, |
| 35703 | OP_InitGlobalTempSint16, |
| 35704 | OP_InitGlobalTempUint16, |
| 35705 | OP_InitGlobalTempSint32, |
| 35706 | OP_InitGlobalTempUint32, |
| 35707 | OP_InitGlobalTempSint64, |
| 35708 | OP_InitGlobalTempUint64, |
| 35709 | OP_InitGlobalTempIntAP, |
| 35710 | OP_InitGlobalTempIntAPS, |
| 35711 | OP_InitGlobalTempBool, |
| 35712 | OP_InitGlobalTempFixedPoint, |
| 35713 | OP_InitGlobalTempPtr, |
| 35714 | OP_InitGlobalTempMemberPtr, |
| 35715 | OP_InitGlobalTempFloat, |
| 35716 | OP_InitGlobalTempReflect, |
| 35717 | #endif |
| 35718 | #ifdef GET_INTERPFN_LIST |
| 35719 | &Interp_InitGlobalTempSint8, |
| 35720 | &Interp_InitGlobalTempUint8, |
| 35721 | &Interp_InitGlobalTempSint16, |
| 35722 | &Interp_InitGlobalTempUint16, |
| 35723 | &Interp_InitGlobalTempSint32, |
| 35724 | &Interp_InitGlobalTempUint32, |
| 35725 | &Interp_InitGlobalTempSint64, |
| 35726 | &Interp_InitGlobalTempUint64, |
| 35727 | &Interp_InitGlobalTempIntAP, |
| 35728 | &Interp_InitGlobalTempIntAPS, |
| 35729 | &Interp_InitGlobalTempBool, |
| 35730 | &Interp_InitGlobalTempFixedPoint, |
| 35731 | &Interp_InitGlobalTempPtr, |
| 35732 | &Interp_InitGlobalTempMemberPtr, |
| 35733 | &Interp_InitGlobalTempFloat, |
| 35734 | &Interp_InitGlobalTempReflect, |
| 35735 | #endif |
| 35736 | #ifdef GET_INTERPFN_DISPATCHERS |
| 35737 | PRESERVE_NONE |
| 35738 | static bool Interp_InitGlobalTempSint8(InterpState &S) { |
| 35739 | { |
| 35740 | const auto V0 = ReadArg<uint32_t>(S, S.PC); |
| 35741 | const auto V1 = ReadArg<const LifetimeExtendedTemporaryDecl *>(S, S.PC); |
| 35742 | if (!InitGlobalTemp<PT_Sint8>(S, V0, V1)) return false; |
| 35743 | } |
| 35744 | #if USE_TAILCALLS |
| 35745 | MUSTTAIL return InterpNext(S); |
| 35746 | #else |
| 35747 | return true; |
| 35748 | #endif |
| 35749 | } |
| 35750 | PRESERVE_NONE |
| 35751 | static bool Interp_InitGlobalTempUint8(InterpState &S) { |
| 35752 | { |
| 35753 | const auto V0 = ReadArg<uint32_t>(S, S.PC); |
| 35754 | const auto V1 = ReadArg<const LifetimeExtendedTemporaryDecl *>(S, S.PC); |
| 35755 | if (!InitGlobalTemp<PT_Uint8>(S, V0, V1)) return false; |
| 35756 | } |
| 35757 | #if USE_TAILCALLS |
| 35758 | MUSTTAIL return InterpNext(S); |
| 35759 | #else |
| 35760 | return true; |
| 35761 | #endif |
| 35762 | } |
| 35763 | PRESERVE_NONE |
| 35764 | static bool Interp_InitGlobalTempSint16(InterpState &S) { |
| 35765 | { |
| 35766 | const auto V0 = ReadArg<uint32_t>(S, S.PC); |
| 35767 | const auto V1 = ReadArg<const LifetimeExtendedTemporaryDecl *>(S, S.PC); |
| 35768 | if (!InitGlobalTemp<PT_Sint16>(S, V0, V1)) return false; |
| 35769 | } |
| 35770 | #if USE_TAILCALLS |
| 35771 | MUSTTAIL return InterpNext(S); |
| 35772 | #else |
| 35773 | return true; |
| 35774 | #endif |
| 35775 | } |
| 35776 | PRESERVE_NONE |
| 35777 | static bool Interp_InitGlobalTempUint16(InterpState &S) { |
| 35778 | { |
| 35779 | const auto V0 = ReadArg<uint32_t>(S, S.PC); |
| 35780 | const auto V1 = ReadArg<const LifetimeExtendedTemporaryDecl *>(S, S.PC); |
| 35781 | if (!InitGlobalTemp<PT_Uint16>(S, V0, V1)) return false; |
| 35782 | } |
| 35783 | #if USE_TAILCALLS |
| 35784 | MUSTTAIL return InterpNext(S); |
| 35785 | #else |
| 35786 | return true; |
| 35787 | #endif |
| 35788 | } |
| 35789 | PRESERVE_NONE |
| 35790 | static bool Interp_InitGlobalTempSint32(InterpState &S) { |
| 35791 | { |
| 35792 | const auto V0 = ReadArg<uint32_t>(S, S.PC); |
| 35793 | const auto V1 = ReadArg<const LifetimeExtendedTemporaryDecl *>(S, S.PC); |
| 35794 | if (!InitGlobalTemp<PT_Sint32>(S, V0, V1)) return false; |
| 35795 | } |
| 35796 | #if USE_TAILCALLS |
| 35797 | MUSTTAIL return InterpNext(S); |
| 35798 | #else |
| 35799 | return true; |
| 35800 | #endif |
| 35801 | } |
| 35802 | PRESERVE_NONE |
| 35803 | static bool Interp_InitGlobalTempUint32(InterpState &S) { |
| 35804 | { |
| 35805 | const auto V0 = ReadArg<uint32_t>(S, S.PC); |
| 35806 | const auto V1 = ReadArg<const LifetimeExtendedTemporaryDecl *>(S, S.PC); |
| 35807 | if (!InitGlobalTemp<PT_Uint32>(S, V0, V1)) return false; |
| 35808 | } |
| 35809 | #if USE_TAILCALLS |
| 35810 | MUSTTAIL return InterpNext(S); |
| 35811 | #else |
| 35812 | return true; |
| 35813 | #endif |
| 35814 | } |
| 35815 | PRESERVE_NONE |
| 35816 | static bool Interp_InitGlobalTempSint64(InterpState &S) { |
| 35817 | { |
| 35818 | const auto V0 = ReadArg<uint32_t>(S, S.PC); |
| 35819 | const auto V1 = ReadArg<const LifetimeExtendedTemporaryDecl *>(S, S.PC); |
| 35820 | if (!InitGlobalTemp<PT_Sint64>(S, V0, V1)) return false; |
| 35821 | } |
| 35822 | #if USE_TAILCALLS |
| 35823 | MUSTTAIL return InterpNext(S); |
| 35824 | #else |
| 35825 | return true; |
| 35826 | #endif |
| 35827 | } |
| 35828 | PRESERVE_NONE |
| 35829 | static bool Interp_InitGlobalTempUint64(InterpState &S) { |
| 35830 | { |
| 35831 | const auto V0 = ReadArg<uint32_t>(S, S.PC); |
| 35832 | const auto V1 = ReadArg<const LifetimeExtendedTemporaryDecl *>(S, S.PC); |
| 35833 | if (!InitGlobalTemp<PT_Uint64>(S, V0, V1)) return false; |
| 35834 | } |
| 35835 | #if USE_TAILCALLS |
| 35836 | MUSTTAIL return InterpNext(S); |
| 35837 | #else |
| 35838 | return true; |
| 35839 | #endif |
| 35840 | } |
| 35841 | PRESERVE_NONE |
| 35842 | static bool Interp_InitGlobalTempIntAP(InterpState &S) { |
| 35843 | { |
| 35844 | const auto V0 = ReadArg<uint32_t>(S, S.PC); |
| 35845 | const auto V1 = ReadArg<const LifetimeExtendedTemporaryDecl *>(S, S.PC); |
| 35846 | if (!InitGlobalTemp<PT_IntAP>(S, V0, V1)) return false; |
| 35847 | } |
| 35848 | #if USE_TAILCALLS |
| 35849 | MUSTTAIL return InterpNext(S); |
| 35850 | #else |
| 35851 | return true; |
| 35852 | #endif |
| 35853 | } |
| 35854 | PRESERVE_NONE |
| 35855 | static bool Interp_InitGlobalTempIntAPS(InterpState &S) { |
| 35856 | { |
| 35857 | const auto V0 = ReadArg<uint32_t>(S, S.PC); |
| 35858 | const auto V1 = ReadArg<const LifetimeExtendedTemporaryDecl *>(S, S.PC); |
| 35859 | if (!InitGlobalTemp<PT_IntAPS>(S, V0, V1)) return false; |
| 35860 | } |
| 35861 | #if USE_TAILCALLS |
| 35862 | MUSTTAIL return InterpNext(S); |
| 35863 | #else |
| 35864 | return true; |
| 35865 | #endif |
| 35866 | } |
| 35867 | PRESERVE_NONE |
| 35868 | static bool Interp_InitGlobalTempBool(InterpState &S) { |
| 35869 | { |
| 35870 | const auto V0 = ReadArg<uint32_t>(S, S.PC); |
| 35871 | const auto V1 = ReadArg<const LifetimeExtendedTemporaryDecl *>(S, S.PC); |
| 35872 | if (!InitGlobalTemp<PT_Bool>(S, V0, V1)) return false; |
| 35873 | } |
| 35874 | #if USE_TAILCALLS |
| 35875 | MUSTTAIL return InterpNext(S); |
| 35876 | #else |
| 35877 | return true; |
| 35878 | #endif |
| 35879 | } |
| 35880 | PRESERVE_NONE |
| 35881 | static bool Interp_InitGlobalTempFixedPoint(InterpState &S) { |
| 35882 | { |
| 35883 | const auto V0 = ReadArg<uint32_t>(S, S.PC); |
| 35884 | const auto V1 = ReadArg<const LifetimeExtendedTemporaryDecl *>(S, S.PC); |
| 35885 | if (!InitGlobalTemp<PT_FixedPoint>(S, V0, V1)) return false; |
| 35886 | } |
| 35887 | #if USE_TAILCALLS |
| 35888 | MUSTTAIL return InterpNext(S); |
| 35889 | #else |
| 35890 | return true; |
| 35891 | #endif |
| 35892 | } |
| 35893 | PRESERVE_NONE |
| 35894 | static bool Interp_InitGlobalTempPtr(InterpState &S) { |
| 35895 | { |
| 35896 | const auto V0 = ReadArg<uint32_t>(S, S.PC); |
| 35897 | const auto V1 = ReadArg<const LifetimeExtendedTemporaryDecl *>(S, S.PC); |
| 35898 | if (!InitGlobalTemp<PT_Ptr>(S, V0, V1)) return false; |
| 35899 | } |
| 35900 | #if USE_TAILCALLS |
| 35901 | MUSTTAIL return InterpNext(S); |
| 35902 | #else |
| 35903 | return true; |
| 35904 | #endif |
| 35905 | } |
| 35906 | PRESERVE_NONE |
| 35907 | static bool Interp_InitGlobalTempMemberPtr(InterpState &S) { |
| 35908 | { |
| 35909 | const auto V0 = ReadArg<uint32_t>(S, S.PC); |
| 35910 | const auto V1 = ReadArg<const LifetimeExtendedTemporaryDecl *>(S, S.PC); |
| 35911 | if (!InitGlobalTemp<PT_MemberPtr>(S, V0, V1)) return false; |
| 35912 | } |
| 35913 | #if USE_TAILCALLS |
| 35914 | MUSTTAIL return InterpNext(S); |
| 35915 | #else |
| 35916 | return true; |
| 35917 | #endif |
| 35918 | } |
| 35919 | PRESERVE_NONE |
| 35920 | static bool Interp_InitGlobalTempFloat(InterpState &S) { |
| 35921 | { |
| 35922 | const auto V0 = ReadArg<uint32_t>(S, S.PC); |
| 35923 | const auto V1 = ReadArg<const LifetimeExtendedTemporaryDecl *>(S, S.PC); |
| 35924 | if (!InitGlobalTemp<PT_Float>(S, V0, V1)) return false; |
| 35925 | } |
| 35926 | #if USE_TAILCALLS |
| 35927 | MUSTTAIL return InterpNext(S); |
| 35928 | #else |
| 35929 | return true; |
| 35930 | #endif |
| 35931 | } |
| 35932 | PRESERVE_NONE |
| 35933 | static bool Interp_InitGlobalTempReflect(InterpState &S) { |
| 35934 | { |
| 35935 | const auto V0 = ReadArg<uint32_t>(S, S.PC); |
| 35936 | const auto V1 = ReadArg<const LifetimeExtendedTemporaryDecl *>(S, S.PC); |
| 35937 | if (!InitGlobalTemp<PT_Reflect>(S, V0, V1)) return false; |
| 35938 | } |
| 35939 | #if USE_TAILCALLS |
| 35940 | MUSTTAIL return InterpNext(S); |
| 35941 | #else |
| 35942 | return true; |
| 35943 | #endif |
| 35944 | } |
| 35945 | #endif |
| 35946 | #ifdef GET_DISASM |
| 35947 | case OP_InitGlobalTempSint8: |
| 35948 | Text.Op = PrintName("InitGlobalTempSint8" ); |
| 35949 | Text.Args.push_back(printArg<uint32_t>(PC)); |
| 35950 | Text.Args.push_back(printArg<const LifetimeExtendedTemporaryDecl *>(PC)); |
| 35951 | break; |
| 35952 | case OP_InitGlobalTempUint8: |
| 35953 | Text.Op = PrintName("InitGlobalTempUint8" ); |
| 35954 | Text.Args.push_back(printArg<uint32_t>(PC)); |
| 35955 | Text.Args.push_back(printArg<const LifetimeExtendedTemporaryDecl *>(PC)); |
| 35956 | break; |
| 35957 | case OP_InitGlobalTempSint16: |
| 35958 | Text.Op = PrintName("InitGlobalTempSint16" ); |
| 35959 | Text.Args.push_back(printArg<uint32_t>(PC)); |
| 35960 | Text.Args.push_back(printArg<const LifetimeExtendedTemporaryDecl *>(PC)); |
| 35961 | break; |
| 35962 | case OP_InitGlobalTempUint16: |
| 35963 | Text.Op = PrintName("InitGlobalTempUint16" ); |
| 35964 | Text.Args.push_back(printArg<uint32_t>(PC)); |
| 35965 | Text.Args.push_back(printArg<const LifetimeExtendedTemporaryDecl *>(PC)); |
| 35966 | break; |
| 35967 | case OP_InitGlobalTempSint32: |
| 35968 | Text.Op = PrintName("InitGlobalTempSint32" ); |
| 35969 | Text.Args.push_back(printArg<uint32_t>(PC)); |
| 35970 | Text.Args.push_back(printArg<const LifetimeExtendedTemporaryDecl *>(PC)); |
| 35971 | break; |
| 35972 | case OP_InitGlobalTempUint32: |
| 35973 | Text.Op = PrintName("InitGlobalTempUint32" ); |
| 35974 | Text.Args.push_back(printArg<uint32_t>(PC)); |
| 35975 | Text.Args.push_back(printArg<const LifetimeExtendedTemporaryDecl *>(PC)); |
| 35976 | break; |
| 35977 | case OP_InitGlobalTempSint64: |
| 35978 | Text.Op = PrintName("InitGlobalTempSint64" ); |
| 35979 | Text.Args.push_back(printArg<uint32_t>(PC)); |
| 35980 | Text.Args.push_back(printArg<const LifetimeExtendedTemporaryDecl *>(PC)); |
| 35981 | break; |
| 35982 | case OP_InitGlobalTempUint64: |
| 35983 | Text.Op = PrintName("InitGlobalTempUint64" ); |
| 35984 | Text.Args.push_back(printArg<uint32_t>(PC)); |
| 35985 | Text.Args.push_back(printArg<const LifetimeExtendedTemporaryDecl *>(PC)); |
| 35986 | break; |
| 35987 | case OP_InitGlobalTempIntAP: |
| 35988 | Text.Op = PrintName("InitGlobalTempIntAP" ); |
| 35989 | Text.Args.push_back(printArg<uint32_t>(PC)); |
| 35990 | Text.Args.push_back(printArg<const LifetimeExtendedTemporaryDecl *>(PC)); |
| 35991 | break; |
| 35992 | case OP_InitGlobalTempIntAPS: |
| 35993 | Text.Op = PrintName("InitGlobalTempIntAPS" ); |
| 35994 | Text.Args.push_back(printArg<uint32_t>(PC)); |
| 35995 | Text.Args.push_back(printArg<const LifetimeExtendedTemporaryDecl *>(PC)); |
| 35996 | break; |
| 35997 | case OP_InitGlobalTempBool: |
| 35998 | Text.Op = PrintName("InitGlobalTempBool" ); |
| 35999 | Text.Args.push_back(printArg<uint32_t>(PC)); |
| 36000 | Text.Args.push_back(printArg<const LifetimeExtendedTemporaryDecl *>(PC)); |
| 36001 | break; |
| 36002 | case OP_InitGlobalTempFixedPoint: |
| 36003 | Text.Op = PrintName("InitGlobalTempFixedPoint" ); |
| 36004 | Text.Args.push_back(printArg<uint32_t>(PC)); |
| 36005 | Text.Args.push_back(printArg<const LifetimeExtendedTemporaryDecl *>(PC)); |
| 36006 | break; |
| 36007 | case OP_InitGlobalTempPtr: |
| 36008 | Text.Op = PrintName("InitGlobalTempPtr" ); |
| 36009 | Text.Args.push_back(printArg<uint32_t>(PC)); |
| 36010 | Text.Args.push_back(printArg<const LifetimeExtendedTemporaryDecl *>(PC)); |
| 36011 | break; |
| 36012 | case OP_InitGlobalTempMemberPtr: |
| 36013 | Text.Op = PrintName("InitGlobalTempMemberPtr" ); |
| 36014 | Text.Args.push_back(printArg<uint32_t>(PC)); |
| 36015 | Text.Args.push_back(printArg<const LifetimeExtendedTemporaryDecl *>(PC)); |
| 36016 | break; |
| 36017 | case OP_InitGlobalTempFloat: |
| 36018 | Text.Op = PrintName("InitGlobalTempFloat" ); |
| 36019 | Text.Args.push_back(printArg<uint32_t>(PC)); |
| 36020 | Text.Args.push_back(printArg<const LifetimeExtendedTemporaryDecl *>(PC)); |
| 36021 | break; |
| 36022 | case OP_InitGlobalTempReflect: |
| 36023 | Text.Op = PrintName("InitGlobalTempReflect" ); |
| 36024 | Text.Args.push_back(printArg<uint32_t>(PC)); |
| 36025 | Text.Args.push_back(printArg<const LifetimeExtendedTemporaryDecl *>(PC)); |
| 36026 | break; |
| 36027 | #endif |
| 36028 | #if defined(GET_EVAL_PROTO) || defined(GET_LINK_PROTO) |
| 36029 | bool emitInitGlobalTempSint8( uint32_t , const LifetimeExtendedTemporaryDecl * , SourceInfo); |
| 36030 | bool emitInitGlobalTempUint8( uint32_t , const LifetimeExtendedTemporaryDecl * , SourceInfo); |
| 36031 | bool emitInitGlobalTempSint16( uint32_t , const LifetimeExtendedTemporaryDecl * , SourceInfo); |
| 36032 | bool emitInitGlobalTempUint16( uint32_t , const LifetimeExtendedTemporaryDecl * , SourceInfo); |
| 36033 | bool emitInitGlobalTempSint32( uint32_t , const LifetimeExtendedTemporaryDecl * , SourceInfo); |
| 36034 | bool emitInitGlobalTempUint32( uint32_t , const LifetimeExtendedTemporaryDecl * , SourceInfo); |
| 36035 | bool emitInitGlobalTempSint64( uint32_t , const LifetimeExtendedTemporaryDecl * , SourceInfo); |
| 36036 | bool emitInitGlobalTempUint64( uint32_t , const LifetimeExtendedTemporaryDecl * , SourceInfo); |
| 36037 | bool emitInitGlobalTempIntAP( uint32_t , const LifetimeExtendedTemporaryDecl * , SourceInfo); |
| 36038 | bool emitInitGlobalTempIntAPS( uint32_t , const LifetimeExtendedTemporaryDecl * , SourceInfo); |
| 36039 | bool emitInitGlobalTempBool( uint32_t , const LifetimeExtendedTemporaryDecl * , SourceInfo); |
| 36040 | bool emitInitGlobalTempFixedPoint( uint32_t , const LifetimeExtendedTemporaryDecl * , SourceInfo); |
| 36041 | bool emitInitGlobalTempPtr( uint32_t , const LifetimeExtendedTemporaryDecl * , SourceInfo); |
| 36042 | bool emitInitGlobalTempMemberPtr( uint32_t , const LifetimeExtendedTemporaryDecl * , SourceInfo); |
| 36043 | bool emitInitGlobalTempFloat( uint32_t , const LifetimeExtendedTemporaryDecl * , SourceInfo); |
| 36044 | bool emitInitGlobalTempReflect( uint32_t , const LifetimeExtendedTemporaryDecl * , SourceInfo); |
| 36045 | #endif |
| 36046 | #if defined(GET_EVAL_PROTO) || defined(GET_LINK_PROTO) |
| 36047 | [[nodiscard]] bool emitInitGlobalTemp(PrimType, uint32_t, const LifetimeExtendedTemporaryDecl *, SourceInfo I); |
| 36048 | #endif |
| 36049 | #if defined(GET_EVAL_IMPL) || defined(GET_LINK_IMPL) |
| 36050 | bool |
| 36051 | #if defined(GET_EVAL_IMPL) |
| 36052 | EvalEmitter |
| 36053 | #else |
| 36054 | ByteCodeEmitter |
| 36055 | #endif |
| 36056 | ::emitInitGlobalTemp(PrimType T0, uint32_t A0, const LifetimeExtendedTemporaryDecl * A1, SourceInfo I) { |
| 36057 | switch (T0) { |
| 36058 | case PT_Sint8: |
| 36059 | return emitInitGlobalTempSint8(A0, A1, I); |
| 36060 | case PT_Uint8: |
| 36061 | return emitInitGlobalTempUint8(A0, A1, I); |
| 36062 | case PT_Sint16: |
| 36063 | return emitInitGlobalTempSint16(A0, A1, I); |
| 36064 | case PT_Uint16: |
| 36065 | return emitInitGlobalTempUint16(A0, A1, I); |
| 36066 | case PT_Sint32: |
| 36067 | return emitInitGlobalTempSint32(A0, A1, I); |
| 36068 | case PT_Uint32: |
| 36069 | return emitInitGlobalTempUint32(A0, A1, I); |
| 36070 | case PT_Sint64: |
| 36071 | return emitInitGlobalTempSint64(A0, A1, I); |
| 36072 | case PT_Uint64: |
| 36073 | return emitInitGlobalTempUint64(A0, A1, I); |
| 36074 | case PT_IntAP: |
| 36075 | return emitInitGlobalTempIntAP(A0, A1, I); |
| 36076 | case PT_IntAPS: |
| 36077 | return emitInitGlobalTempIntAPS(A0, A1, I); |
| 36078 | case PT_Bool: |
| 36079 | return emitInitGlobalTempBool(A0, A1, I); |
| 36080 | case PT_FixedPoint: |
| 36081 | return emitInitGlobalTempFixedPoint(A0, A1, I); |
| 36082 | case PT_Ptr: |
| 36083 | return emitInitGlobalTempPtr(A0, A1, I); |
| 36084 | case PT_MemberPtr: |
| 36085 | return emitInitGlobalTempMemberPtr(A0, A1, I); |
| 36086 | case PT_Float: |
| 36087 | return emitInitGlobalTempFloat(A0, A1, I); |
| 36088 | case PT_Reflect: |
| 36089 | return emitInitGlobalTempReflect(A0, A1, I); |
| 36090 | } |
| 36091 | llvm_unreachable("invalid enum value" ); |
| 36092 | } |
| 36093 | #endif |
| 36094 | #ifdef GET_LINK_IMPL |
| 36095 | bool ByteCodeEmitter::emitInitGlobalTempSint8( uint32_t A0, const LifetimeExtendedTemporaryDecl * A1, SourceInfo L) { |
| 36096 | return emitOp<uint32_t, const LifetimeExtendedTemporaryDecl *>(OP_InitGlobalTempSint8, A0, A1, L); |
| 36097 | } |
| 36098 | bool ByteCodeEmitter::emitInitGlobalTempUint8( uint32_t A0, const LifetimeExtendedTemporaryDecl * A1, SourceInfo L) { |
| 36099 | return emitOp<uint32_t, const LifetimeExtendedTemporaryDecl *>(OP_InitGlobalTempUint8, A0, A1, L); |
| 36100 | } |
| 36101 | bool ByteCodeEmitter::emitInitGlobalTempSint16( uint32_t A0, const LifetimeExtendedTemporaryDecl * A1, SourceInfo L) { |
| 36102 | return emitOp<uint32_t, const LifetimeExtendedTemporaryDecl *>(OP_InitGlobalTempSint16, A0, A1, L); |
| 36103 | } |
| 36104 | bool ByteCodeEmitter::emitInitGlobalTempUint16( uint32_t A0, const LifetimeExtendedTemporaryDecl * A1, SourceInfo L) { |
| 36105 | return emitOp<uint32_t, const LifetimeExtendedTemporaryDecl *>(OP_InitGlobalTempUint16, A0, A1, L); |
| 36106 | } |
| 36107 | bool ByteCodeEmitter::emitInitGlobalTempSint32( uint32_t A0, const LifetimeExtendedTemporaryDecl * A1, SourceInfo L) { |
| 36108 | return emitOp<uint32_t, const LifetimeExtendedTemporaryDecl *>(OP_InitGlobalTempSint32, A0, A1, L); |
| 36109 | } |
| 36110 | bool ByteCodeEmitter::emitInitGlobalTempUint32( uint32_t A0, const LifetimeExtendedTemporaryDecl * A1, SourceInfo L) { |
| 36111 | return emitOp<uint32_t, const LifetimeExtendedTemporaryDecl *>(OP_InitGlobalTempUint32, A0, A1, L); |
| 36112 | } |
| 36113 | bool ByteCodeEmitter::emitInitGlobalTempSint64( uint32_t A0, const LifetimeExtendedTemporaryDecl * A1, SourceInfo L) { |
| 36114 | return emitOp<uint32_t, const LifetimeExtendedTemporaryDecl *>(OP_InitGlobalTempSint64, A0, A1, L); |
| 36115 | } |
| 36116 | bool ByteCodeEmitter::emitInitGlobalTempUint64( uint32_t A0, const LifetimeExtendedTemporaryDecl * A1, SourceInfo L) { |
| 36117 | return emitOp<uint32_t, const LifetimeExtendedTemporaryDecl *>(OP_InitGlobalTempUint64, A0, A1, L); |
| 36118 | } |
| 36119 | bool ByteCodeEmitter::emitInitGlobalTempIntAP( uint32_t A0, const LifetimeExtendedTemporaryDecl * A1, SourceInfo L) { |
| 36120 | return emitOp<uint32_t, const LifetimeExtendedTemporaryDecl *>(OP_InitGlobalTempIntAP, A0, A1, L); |
| 36121 | } |
| 36122 | bool ByteCodeEmitter::emitInitGlobalTempIntAPS( uint32_t A0, const LifetimeExtendedTemporaryDecl * A1, SourceInfo L) { |
| 36123 | return emitOp<uint32_t, const LifetimeExtendedTemporaryDecl *>(OP_InitGlobalTempIntAPS, A0, A1, L); |
| 36124 | } |
| 36125 | bool ByteCodeEmitter::emitInitGlobalTempBool( uint32_t A0, const LifetimeExtendedTemporaryDecl * A1, SourceInfo L) { |
| 36126 | return emitOp<uint32_t, const LifetimeExtendedTemporaryDecl *>(OP_InitGlobalTempBool, A0, A1, L); |
| 36127 | } |
| 36128 | bool ByteCodeEmitter::emitInitGlobalTempFixedPoint( uint32_t A0, const LifetimeExtendedTemporaryDecl * A1, SourceInfo L) { |
| 36129 | return emitOp<uint32_t, const LifetimeExtendedTemporaryDecl *>(OP_InitGlobalTempFixedPoint, A0, A1, L); |
| 36130 | } |
| 36131 | bool ByteCodeEmitter::emitInitGlobalTempPtr( uint32_t A0, const LifetimeExtendedTemporaryDecl * A1, SourceInfo L) { |
| 36132 | return emitOp<uint32_t, const LifetimeExtendedTemporaryDecl *>(OP_InitGlobalTempPtr, A0, A1, L); |
| 36133 | } |
| 36134 | bool ByteCodeEmitter::emitInitGlobalTempMemberPtr( uint32_t A0, const LifetimeExtendedTemporaryDecl * A1, SourceInfo L) { |
| 36135 | return emitOp<uint32_t, const LifetimeExtendedTemporaryDecl *>(OP_InitGlobalTempMemberPtr, A0, A1, L); |
| 36136 | } |
| 36137 | bool ByteCodeEmitter::emitInitGlobalTempFloat( uint32_t A0, const LifetimeExtendedTemporaryDecl * A1, SourceInfo L) { |
| 36138 | return emitOp<uint32_t, const LifetimeExtendedTemporaryDecl *>(OP_InitGlobalTempFloat, A0, A1, L); |
| 36139 | } |
| 36140 | bool ByteCodeEmitter::emitInitGlobalTempReflect( uint32_t A0, const LifetimeExtendedTemporaryDecl * A1, SourceInfo L) { |
| 36141 | return emitOp<uint32_t, const LifetimeExtendedTemporaryDecl *>(OP_InitGlobalTempReflect, A0, A1, L); |
| 36142 | } |
| 36143 | #endif |
| 36144 | #ifdef GET_EVAL_IMPL |
| 36145 | bool EvalEmitter::emitInitGlobalTempSint8( uint32_t A0, const LifetimeExtendedTemporaryDecl * A1, SourceInfo L) { |
| 36146 | if (!isActive()) return true; |
| 36147 | CurrentSource = L; |
| 36148 | return InitGlobalTemp<PT_Sint8>(S, A0, A1); |
| 36149 | } |
| 36150 | bool EvalEmitter::emitInitGlobalTempUint8( uint32_t A0, const LifetimeExtendedTemporaryDecl * A1, SourceInfo L) { |
| 36151 | if (!isActive()) return true; |
| 36152 | CurrentSource = L; |
| 36153 | return InitGlobalTemp<PT_Uint8>(S, A0, A1); |
| 36154 | } |
| 36155 | bool EvalEmitter::emitInitGlobalTempSint16( uint32_t A0, const LifetimeExtendedTemporaryDecl * A1, SourceInfo L) { |
| 36156 | if (!isActive()) return true; |
| 36157 | CurrentSource = L; |
| 36158 | return InitGlobalTemp<PT_Sint16>(S, A0, A1); |
| 36159 | } |
| 36160 | bool EvalEmitter::emitInitGlobalTempUint16( uint32_t A0, const LifetimeExtendedTemporaryDecl * A1, SourceInfo L) { |
| 36161 | if (!isActive()) return true; |
| 36162 | CurrentSource = L; |
| 36163 | return InitGlobalTemp<PT_Uint16>(S, A0, A1); |
| 36164 | } |
| 36165 | bool EvalEmitter::emitInitGlobalTempSint32( uint32_t A0, const LifetimeExtendedTemporaryDecl * A1, SourceInfo L) { |
| 36166 | if (!isActive()) return true; |
| 36167 | CurrentSource = L; |
| 36168 | return InitGlobalTemp<PT_Sint32>(S, A0, A1); |
| 36169 | } |
| 36170 | bool EvalEmitter::emitInitGlobalTempUint32( uint32_t A0, const LifetimeExtendedTemporaryDecl * A1, SourceInfo L) { |
| 36171 | if (!isActive()) return true; |
| 36172 | CurrentSource = L; |
| 36173 | return InitGlobalTemp<PT_Uint32>(S, A0, A1); |
| 36174 | } |
| 36175 | bool EvalEmitter::emitInitGlobalTempSint64( uint32_t A0, const LifetimeExtendedTemporaryDecl * A1, SourceInfo L) { |
| 36176 | if (!isActive()) return true; |
| 36177 | CurrentSource = L; |
| 36178 | return InitGlobalTemp<PT_Sint64>(S, A0, A1); |
| 36179 | } |
| 36180 | bool EvalEmitter::emitInitGlobalTempUint64( uint32_t A0, const LifetimeExtendedTemporaryDecl * A1, SourceInfo L) { |
| 36181 | if (!isActive()) return true; |
| 36182 | CurrentSource = L; |
| 36183 | return InitGlobalTemp<PT_Uint64>(S, A0, A1); |
| 36184 | } |
| 36185 | bool EvalEmitter::emitInitGlobalTempIntAP( uint32_t A0, const LifetimeExtendedTemporaryDecl * A1, SourceInfo L) { |
| 36186 | if (!isActive()) return true; |
| 36187 | CurrentSource = L; |
| 36188 | return InitGlobalTemp<PT_IntAP>(S, A0, A1); |
| 36189 | } |
| 36190 | bool EvalEmitter::emitInitGlobalTempIntAPS( uint32_t A0, const LifetimeExtendedTemporaryDecl * A1, SourceInfo L) { |
| 36191 | if (!isActive()) return true; |
| 36192 | CurrentSource = L; |
| 36193 | return InitGlobalTemp<PT_IntAPS>(S, A0, A1); |
| 36194 | } |
| 36195 | bool EvalEmitter::emitInitGlobalTempBool( uint32_t A0, const LifetimeExtendedTemporaryDecl * A1, SourceInfo L) { |
| 36196 | if (!isActive()) return true; |
| 36197 | CurrentSource = L; |
| 36198 | return InitGlobalTemp<PT_Bool>(S, A0, A1); |
| 36199 | } |
| 36200 | bool EvalEmitter::emitInitGlobalTempFixedPoint( uint32_t A0, const LifetimeExtendedTemporaryDecl * A1, SourceInfo L) { |
| 36201 | if (!isActive()) return true; |
| 36202 | CurrentSource = L; |
| 36203 | return InitGlobalTemp<PT_FixedPoint>(S, A0, A1); |
| 36204 | } |
| 36205 | bool EvalEmitter::emitInitGlobalTempPtr( uint32_t A0, const LifetimeExtendedTemporaryDecl * A1, SourceInfo L) { |
| 36206 | if (!isActive()) return true; |
| 36207 | CurrentSource = L; |
| 36208 | return InitGlobalTemp<PT_Ptr>(S, A0, A1); |
| 36209 | } |
| 36210 | bool EvalEmitter::emitInitGlobalTempMemberPtr( uint32_t A0, const LifetimeExtendedTemporaryDecl * A1, SourceInfo L) { |
| 36211 | if (!isActive()) return true; |
| 36212 | CurrentSource = L; |
| 36213 | return InitGlobalTemp<PT_MemberPtr>(S, A0, A1); |
| 36214 | } |
| 36215 | bool EvalEmitter::emitInitGlobalTempFloat( uint32_t A0, const LifetimeExtendedTemporaryDecl * A1, SourceInfo L) { |
| 36216 | if (!isActive()) return true; |
| 36217 | CurrentSource = L; |
| 36218 | return InitGlobalTemp<PT_Float>(S, A0, A1); |
| 36219 | } |
| 36220 | bool EvalEmitter::emitInitGlobalTempReflect( uint32_t A0, const LifetimeExtendedTemporaryDecl * A1, SourceInfo L) { |
| 36221 | if (!isActive()) return true; |
| 36222 | CurrentSource = L; |
| 36223 | return InitGlobalTemp<PT_Reflect>(S, A0, A1); |
| 36224 | } |
| 36225 | #endif |
| 36226 | #ifdef GET_OPCODE_NAMES |
| 36227 | OP_InitGlobalTempComp, |
| 36228 | #endif |
| 36229 | #ifdef GET_INTERPFN_LIST |
| 36230 | &Interp_InitGlobalTempComp, |
| 36231 | #endif |
| 36232 | #ifdef GET_INTERPFN_DISPATCHERS |
| 36233 | PRESERVE_NONE |
| 36234 | static bool Interp_InitGlobalTempComp(InterpState &S) { |
| 36235 | { |
| 36236 | const auto V0 = ReadArg<const LifetimeExtendedTemporaryDecl *>(S, S.PC); |
| 36237 | if (!InitGlobalTempComp(S, V0)) return false; |
| 36238 | } |
| 36239 | #if USE_TAILCALLS |
| 36240 | MUSTTAIL return InterpNext(S); |
| 36241 | #else |
| 36242 | return true; |
| 36243 | #endif |
| 36244 | } |
| 36245 | #endif |
| 36246 | #ifdef GET_DISASM |
| 36247 | case OP_InitGlobalTempComp: |
| 36248 | Text.Op = PrintName("InitGlobalTempComp" ); |
| 36249 | Text.Args.push_back(printArg<const LifetimeExtendedTemporaryDecl *>(PC)); |
| 36250 | break; |
| 36251 | #endif |
| 36252 | #if defined(GET_EVAL_PROTO) || defined(GET_LINK_PROTO) |
| 36253 | bool emitInitGlobalTempComp( const LifetimeExtendedTemporaryDecl * , SourceInfo); |
| 36254 | #endif |
| 36255 | #ifdef GET_LINK_IMPL |
| 36256 | bool ByteCodeEmitter::emitInitGlobalTempComp( const LifetimeExtendedTemporaryDecl * A0, SourceInfo L) { |
| 36257 | return emitOp<const LifetimeExtendedTemporaryDecl *>(OP_InitGlobalTempComp, A0, L); |
| 36258 | } |
| 36259 | #endif |
| 36260 | #ifdef GET_EVAL_IMPL |
| 36261 | bool EvalEmitter::emitInitGlobalTempComp( const LifetimeExtendedTemporaryDecl * A0, SourceInfo L) { |
| 36262 | if (!isActive()) return true; |
| 36263 | CurrentSource = L; |
| 36264 | return InitGlobalTempComp(S, A0); |
| 36265 | } |
| 36266 | #endif |
| 36267 | #ifdef GET_OPCODE_NAMES |
| 36268 | OP_InitPopSint8, |
| 36269 | OP_InitPopUint8, |
| 36270 | OP_InitPopSint16, |
| 36271 | OP_InitPopUint16, |
| 36272 | OP_InitPopSint32, |
| 36273 | OP_InitPopUint32, |
| 36274 | OP_InitPopSint64, |
| 36275 | OP_InitPopUint64, |
| 36276 | OP_InitPopIntAP, |
| 36277 | OP_InitPopIntAPS, |
| 36278 | OP_InitPopBool, |
| 36279 | OP_InitPopFixedPoint, |
| 36280 | OP_InitPopPtr, |
| 36281 | OP_InitPopMemberPtr, |
| 36282 | OP_InitPopFloat, |
| 36283 | OP_InitPopReflect, |
| 36284 | #endif |
| 36285 | #ifdef GET_INTERPFN_LIST |
| 36286 | &Interp_InitPopSint8, |
| 36287 | &Interp_InitPopUint8, |
| 36288 | &Interp_InitPopSint16, |
| 36289 | &Interp_InitPopUint16, |
| 36290 | &Interp_InitPopSint32, |
| 36291 | &Interp_InitPopUint32, |
| 36292 | &Interp_InitPopSint64, |
| 36293 | &Interp_InitPopUint64, |
| 36294 | &Interp_InitPopIntAP, |
| 36295 | &Interp_InitPopIntAPS, |
| 36296 | &Interp_InitPopBool, |
| 36297 | &Interp_InitPopFixedPoint, |
| 36298 | &Interp_InitPopPtr, |
| 36299 | &Interp_InitPopMemberPtr, |
| 36300 | &Interp_InitPopFloat, |
| 36301 | &Interp_InitPopReflect, |
| 36302 | #endif |
| 36303 | #ifdef GET_INTERPFN_DISPATCHERS |
| 36304 | PRESERVE_NONE |
| 36305 | static bool Interp_InitPopSint8(InterpState &S) { |
| 36306 | if (!InitPop<PT_Sint8>(S, S.PC)) return false; |
| 36307 | #if USE_TAILCALLS |
| 36308 | MUSTTAIL return InterpNext(S); |
| 36309 | #else |
| 36310 | return true; |
| 36311 | #endif |
| 36312 | } |
| 36313 | PRESERVE_NONE |
| 36314 | static bool Interp_InitPopUint8(InterpState &S) { |
| 36315 | if (!InitPop<PT_Uint8>(S, S.PC)) return false; |
| 36316 | #if USE_TAILCALLS |
| 36317 | MUSTTAIL return InterpNext(S); |
| 36318 | #else |
| 36319 | return true; |
| 36320 | #endif |
| 36321 | } |
| 36322 | PRESERVE_NONE |
| 36323 | static bool Interp_InitPopSint16(InterpState &S) { |
| 36324 | if (!InitPop<PT_Sint16>(S, S.PC)) return false; |
| 36325 | #if USE_TAILCALLS |
| 36326 | MUSTTAIL return InterpNext(S); |
| 36327 | #else |
| 36328 | return true; |
| 36329 | #endif |
| 36330 | } |
| 36331 | PRESERVE_NONE |
| 36332 | static bool Interp_InitPopUint16(InterpState &S) { |
| 36333 | if (!InitPop<PT_Uint16>(S, S.PC)) return false; |
| 36334 | #if USE_TAILCALLS |
| 36335 | MUSTTAIL return InterpNext(S); |
| 36336 | #else |
| 36337 | return true; |
| 36338 | #endif |
| 36339 | } |
| 36340 | PRESERVE_NONE |
| 36341 | static bool Interp_InitPopSint32(InterpState &S) { |
| 36342 | if (!InitPop<PT_Sint32>(S, S.PC)) return false; |
| 36343 | #if USE_TAILCALLS |
| 36344 | MUSTTAIL return InterpNext(S); |
| 36345 | #else |
| 36346 | return true; |
| 36347 | #endif |
| 36348 | } |
| 36349 | PRESERVE_NONE |
| 36350 | static bool Interp_InitPopUint32(InterpState &S) { |
| 36351 | if (!InitPop<PT_Uint32>(S, S.PC)) return false; |
| 36352 | #if USE_TAILCALLS |
| 36353 | MUSTTAIL return InterpNext(S); |
| 36354 | #else |
| 36355 | return true; |
| 36356 | #endif |
| 36357 | } |
| 36358 | PRESERVE_NONE |
| 36359 | static bool Interp_InitPopSint64(InterpState &S) { |
| 36360 | if (!InitPop<PT_Sint64>(S, S.PC)) return false; |
| 36361 | #if USE_TAILCALLS |
| 36362 | MUSTTAIL return InterpNext(S); |
| 36363 | #else |
| 36364 | return true; |
| 36365 | #endif |
| 36366 | } |
| 36367 | PRESERVE_NONE |
| 36368 | static bool Interp_InitPopUint64(InterpState &S) { |
| 36369 | if (!InitPop<PT_Uint64>(S, S.PC)) return false; |
| 36370 | #if USE_TAILCALLS |
| 36371 | MUSTTAIL return InterpNext(S); |
| 36372 | #else |
| 36373 | return true; |
| 36374 | #endif |
| 36375 | } |
| 36376 | PRESERVE_NONE |
| 36377 | static bool Interp_InitPopIntAP(InterpState &S) { |
| 36378 | if (!InitPop<PT_IntAP>(S, S.PC)) return false; |
| 36379 | #if USE_TAILCALLS |
| 36380 | MUSTTAIL return InterpNext(S); |
| 36381 | #else |
| 36382 | return true; |
| 36383 | #endif |
| 36384 | } |
| 36385 | PRESERVE_NONE |
| 36386 | static bool Interp_InitPopIntAPS(InterpState &S) { |
| 36387 | if (!InitPop<PT_IntAPS>(S, S.PC)) return false; |
| 36388 | #if USE_TAILCALLS |
| 36389 | MUSTTAIL return InterpNext(S); |
| 36390 | #else |
| 36391 | return true; |
| 36392 | #endif |
| 36393 | } |
| 36394 | PRESERVE_NONE |
| 36395 | static bool Interp_InitPopBool(InterpState &S) { |
| 36396 | if (!InitPop<PT_Bool>(S, S.PC)) return false; |
| 36397 | #if USE_TAILCALLS |
| 36398 | MUSTTAIL return InterpNext(S); |
| 36399 | #else |
| 36400 | return true; |
| 36401 | #endif |
| 36402 | } |
| 36403 | PRESERVE_NONE |
| 36404 | static bool Interp_InitPopFixedPoint(InterpState &S) { |
| 36405 | if (!InitPop<PT_FixedPoint>(S, S.PC)) return false; |
| 36406 | #if USE_TAILCALLS |
| 36407 | MUSTTAIL return InterpNext(S); |
| 36408 | #else |
| 36409 | return true; |
| 36410 | #endif |
| 36411 | } |
| 36412 | PRESERVE_NONE |
| 36413 | static bool Interp_InitPopPtr(InterpState &S) { |
| 36414 | if (!InitPop<PT_Ptr>(S, S.PC)) return false; |
| 36415 | #if USE_TAILCALLS |
| 36416 | MUSTTAIL return InterpNext(S); |
| 36417 | #else |
| 36418 | return true; |
| 36419 | #endif |
| 36420 | } |
| 36421 | PRESERVE_NONE |
| 36422 | static bool Interp_InitPopMemberPtr(InterpState &S) { |
| 36423 | if (!InitPop<PT_MemberPtr>(S, S.PC)) return false; |
| 36424 | #if USE_TAILCALLS |
| 36425 | MUSTTAIL return InterpNext(S); |
| 36426 | #else |
| 36427 | return true; |
| 36428 | #endif |
| 36429 | } |
| 36430 | PRESERVE_NONE |
| 36431 | static bool Interp_InitPopFloat(InterpState &S) { |
| 36432 | if (!InitPop<PT_Float>(S, S.PC)) return false; |
| 36433 | #if USE_TAILCALLS |
| 36434 | MUSTTAIL return InterpNext(S); |
| 36435 | #else |
| 36436 | return true; |
| 36437 | #endif |
| 36438 | } |
| 36439 | PRESERVE_NONE |
| 36440 | static bool Interp_InitPopReflect(InterpState &S) { |
| 36441 | if (!InitPop<PT_Reflect>(S, S.PC)) return false; |
| 36442 | #if USE_TAILCALLS |
| 36443 | MUSTTAIL return InterpNext(S); |
| 36444 | #else |
| 36445 | return true; |
| 36446 | #endif |
| 36447 | } |
| 36448 | #endif |
| 36449 | #ifdef GET_DISASM |
| 36450 | case OP_InitPopSint8: |
| 36451 | Text.Op = PrintName("InitPopSint8" ); |
| 36452 | break; |
| 36453 | case OP_InitPopUint8: |
| 36454 | Text.Op = PrintName("InitPopUint8" ); |
| 36455 | break; |
| 36456 | case OP_InitPopSint16: |
| 36457 | Text.Op = PrintName("InitPopSint16" ); |
| 36458 | break; |
| 36459 | case OP_InitPopUint16: |
| 36460 | Text.Op = PrintName("InitPopUint16" ); |
| 36461 | break; |
| 36462 | case OP_InitPopSint32: |
| 36463 | Text.Op = PrintName("InitPopSint32" ); |
| 36464 | break; |
| 36465 | case OP_InitPopUint32: |
| 36466 | Text.Op = PrintName("InitPopUint32" ); |
| 36467 | break; |
| 36468 | case OP_InitPopSint64: |
| 36469 | Text.Op = PrintName("InitPopSint64" ); |
| 36470 | break; |
| 36471 | case OP_InitPopUint64: |
| 36472 | Text.Op = PrintName("InitPopUint64" ); |
| 36473 | break; |
| 36474 | case OP_InitPopIntAP: |
| 36475 | Text.Op = PrintName("InitPopIntAP" ); |
| 36476 | break; |
| 36477 | case OP_InitPopIntAPS: |
| 36478 | Text.Op = PrintName("InitPopIntAPS" ); |
| 36479 | break; |
| 36480 | case OP_InitPopBool: |
| 36481 | Text.Op = PrintName("InitPopBool" ); |
| 36482 | break; |
| 36483 | case OP_InitPopFixedPoint: |
| 36484 | Text.Op = PrintName("InitPopFixedPoint" ); |
| 36485 | break; |
| 36486 | case OP_InitPopPtr: |
| 36487 | Text.Op = PrintName("InitPopPtr" ); |
| 36488 | break; |
| 36489 | case OP_InitPopMemberPtr: |
| 36490 | Text.Op = PrintName("InitPopMemberPtr" ); |
| 36491 | break; |
| 36492 | case OP_InitPopFloat: |
| 36493 | Text.Op = PrintName("InitPopFloat" ); |
| 36494 | break; |
| 36495 | case OP_InitPopReflect: |
| 36496 | Text.Op = PrintName("InitPopReflect" ); |
| 36497 | break; |
| 36498 | #endif |
| 36499 | #if defined(GET_EVAL_PROTO) || defined(GET_LINK_PROTO) |
| 36500 | bool emitInitPopSint8(SourceInfo); |
| 36501 | bool emitInitPopUint8(SourceInfo); |
| 36502 | bool emitInitPopSint16(SourceInfo); |
| 36503 | bool emitInitPopUint16(SourceInfo); |
| 36504 | bool emitInitPopSint32(SourceInfo); |
| 36505 | bool emitInitPopUint32(SourceInfo); |
| 36506 | bool emitInitPopSint64(SourceInfo); |
| 36507 | bool emitInitPopUint64(SourceInfo); |
| 36508 | bool emitInitPopIntAP(SourceInfo); |
| 36509 | bool emitInitPopIntAPS(SourceInfo); |
| 36510 | bool emitInitPopBool(SourceInfo); |
| 36511 | bool emitInitPopFixedPoint(SourceInfo); |
| 36512 | bool emitInitPopPtr(SourceInfo); |
| 36513 | bool emitInitPopMemberPtr(SourceInfo); |
| 36514 | bool emitInitPopFloat(SourceInfo); |
| 36515 | bool emitInitPopReflect(SourceInfo); |
| 36516 | #endif |
| 36517 | #if defined(GET_EVAL_PROTO) || defined(GET_LINK_PROTO) |
| 36518 | [[nodiscard]] bool emitInitPop(PrimType, SourceInfo I); |
| 36519 | #endif |
| 36520 | #if defined(GET_EVAL_IMPL) || defined(GET_LINK_IMPL) |
| 36521 | bool |
| 36522 | #if defined(GET_EVAL_IMPL) |
| 36523 | EvalEmitter |
| 36524 | #else |
| 36525 | ByteCodeEmitter |
| 36526 | #endif |
| 36527 | ::emitInitPop(PrimType T0, SourceInfo I) { |
| 36528 | switch (T0) { |
| 36529 | case PT_Sint8: |
| 36530 | return emitInitPopSint8(I); |
| 36531 | case PT_Uint8: |
| 36532 | return emitInitPopUint8(I); |
| 36533 | case PT_Sint16: |
| 36534 | return emitInitPopSint16(I); |
| 36535 | case PT_Uint16: |
| 36536 | return emitInitPopUint16(I); |
| 36537 | case PT_Sint32: |
| 36538 | return emitInitPopSint32(I); |
| 36539 | case PT_Uint32: |
| 36540 | return emitInitPopUint32(I); |
| 36541 | case PT_Sint64: |
| 36542 | return emitInitPopSint64(I); |
| 36543 | case PT_Uint64: |
| 36544 | return emitInitPopUint64(I); |
| 36545 | case PT_IntAP: |
| 36546 | return emitInitPopIntAP(I); |
| 36547 | case PT_IntAPS: |
| 36548 | return emitInitPopIntAPS(I); |
| 36549 | case PT_Bool: |
| 36550 | return emitInitPopBool(I); |
| 36551 | case PT_FixedPoint: |
| 36552 | return emitInitPopFixedPoint(I); |
| 36553 | case PT_Ptr: |
| 36554 | return emitInitPopPtr(I); |
| 36555 | case PT_MemberPtr: |
| 36556 | return emitInitPopMemberPtr(I); |
| 36557 | case PT_Float: |
| 36558 | return emitInitPopFloat(I); |
| 36559 | case PT_Reflect: |
| 36560 | return emitInitPopReflect(I); |
| 36561 | } |
| 36562 | llvm_unreachable("invalid enum value" ); |
| 36563 | } |
| 36564 | #endif |
| 36565 | #ifdef GET_LINK_IMPL |
| 36566 | bool ByteCodeEmitter::emitInitPopSint8(SourceInfo L) { |
| 36567 | return emitOp<>(OP_InitPopSint8, L); |
| 36568 | } |
| 36569 | bool ByteCodeEmitter::emitInitPopUint8(SourceInfo L) { |
| 36570 | return emitOp<>(OP_InitPopUint8, L); |
| 36571 | } |
| 36572 | bool ByteCodeEmitter::emitInitPopSint16(SourceInfo L) { |
| 36573 | return emitOp<>(OP_InitPopSint16, L); |
| 36574 | } |
| 36575 | bool ByteCodeEmitter::emitInitPopUint16(SourceInfo L) { |
| 36576 | return emitOp<>(OP_InitPopUint16, L); |
| 36577 | } |
| 36578 | bool ByteCodeEmitter::emitInitPopSint32(SourceInfo L) { |
| 36579 | return emitOp<>(OP_InitPopSint32, L); |
| 36580 | } |
| 36581 | bool ByteCodeEmitter::emitInitPopUint32(SourceInfo L) { |
| 36582 | return emitOp<>(OP_InitPopUint32, L); |
| 36583 | } |
| 36584 | bool ByteCodeEmitter::emitInitPopSint64(SourceInfo L) { |
| 36585 | return emitOp<>(OP_InitPopSint64, L); |
| 36586 | } |
| 36587 | bool ByteCodeEmitter::emitInitPopUint64(SourceInfo L) { |
| 36588 | return emitOp<>(OP_InitPopUint64, L); |
| 36589 | } |
| 36590 | bool ByteCodeEmitter::emitInitPopIntAP(SourceInfo L) { |
| 36591 | return emitOp<>(OP_InitPopIntAP, L); |
| 36592 | } |
| 36593 | bool ByteCodeEmitter::emitInitPopIntAPS(SourceInfo L) { |
| 36594 | return emitOp<>(OP_InitPopIntAPS, L); |
| 36595 | } |
| 36596 | bool ByteCodeEmitter::emitInitPopBool(SourceInfo L) { |
| 36597 | return emitOp<>(OP_InitPopBool, L); |
| 36598 | } |
| 36599 | bool ByteCodeEmitter::emitInitPopFixedPoint(SourceInfo L) { |
| 36600 | return emitOp<>(OP_InitPopFixedPoint, L); |
| 36601 | } |
| 36602 | bool ByteCodeEmitter::emitInitPopPtr(SourceInfo L) { |
| 36603 | return emitOp<>(OP_InitPopPtr, L); |
| 36604 | } |
| 36605 | bool ByteCodeEmitter::emitInitPopMemberPtr(SourceInfo L) { |
| 36606 | return emitOp<>(OP_InitPopMemberPtr, L); |
| 36607 | } |
| 36608 | bool ByteCodeEmitter::emitInitPopFloat(SourceInfo L) { |
| 36609 | return emitOp<>(OP_InitPopFloat, L); |
| 36610 | } |
| 36611 | bool ByteCodeEmitter::emitInitPopReflect(SourceInfo L) { |
| 36612 | return emitOp<>(OP_InitPopReflect, L); |
| 36613 | } |
| 36614 | #endif |
| 36615 | #ifdef GET_EVAL_IMPL |
| 36616 | bool EvalEmitter::emitInitPopSint8(SourceInfo L) { |
| 36617 | if (!isActive()) return true; |
| 36618 | CurrentSource = L; |
| 36619 | return InitPop<PT_Sint8>(S, CodePtr()); |
| 36620 | } |
| 36621 | bool EvalEmitter::emitInitPopUint8(SourceInfo L) { |
| 36622 | if (!isActive()) return true; |
| 36623 | CurrentSource = L; |
| 36624 | return InitPop<PT_Uint8>(S, CodePtr()); |
| 36625 | } |
| 36626 | bool EvalEmitter::emitInitPopSint16(SourceInfo L) { |
| 36627 | if (!isActive()) return true; |
| 36628 | CurrentSource = L; |
| 36629 | return InitPop<PT_Sint16>(S, CodePtr()); |
| 36630 | } |
| 36631 | bool EvalEmitter::emitInitPopUint16(SourceInfo L) { |
| 36632 | if (!isActive()) return true; |
| 36633 | CurrentSource = L; |
| 36634 | return InitPop<PT_Uint16>(S, CodePtr()); |
| 36635 | } |
| 36636 | bool EvalEmitter::emitInitPopSint32(SourceInfo L) { |
| 36637 | if (!isActive()) return true; |
| 36638 | CurrentSource = L; |
| 36639 | return InitPop<PT_Sint32>(S, CodePtr()); |
| 36640 | } |
| 36641 | bool EvalEmitter::emitInitPopUint32(SourceInfo L) { |
| 36642 | if (!isActive()) return true; |
| 36643 | CurrentSource = L; |
| 36644 | return InitPop<PT_Uint32>(S, CodePtr()); |
| 36645 | } |
| 36646 | bool EvalEmitter::emitInitPopSint64(SourceInfo L) { |
| 36647 | if (!isActive()) return true; |
| 36648 | CurrentSource = L; |
| 36649 | return InitPop<PT_Sint64>(S, CodePtr()); |
| 36650 | } |
| 36651 | bool EvalEmitter::emitInitPopUint64(SourceInfo L) { |
| 36652 | if (!isActive()) return true; |
| 36653 | CurrentSource = L; |
| 36654 | return InitPop<PT_Uint64>(S, CodePtr()); |
| 36655 | } |
| 36656 | bool EvalEmitter::emitInitPopIntAP(SourceInfo L) { |
| 36657 | if (!isActive()) return true; |
| 36658 | CurrentSource = L; |
| 36659 | return InitPop<PT_IntAP>(S, CodePtr()); |
| 36660 | } |
| 36661 | bool EvalEmitter::emitInitPopIntAPS(SourceInfo L) { |
| 36662 | if (!isActive()) return true; |
| 36663 | CurrentSource = L; |
| 36664 | return InitPop<PT_IntAPS>(S, CodePtr()); |
| 36665 | } |
| 36666 | bool EvalEmitter::emitInitPopBool(SourceInfo L) { |
| 36667 | if (!isActive()) return true; |
| 36668 | CurrentSource = L; |
| 36669 | return InitPop<PT_Bool>(S, CodePtr()); |
| 36670 | } |
| 36671 | bool EvalEmitter::emitInitPopFixedPoint(SourceInfo L) { |
| 36672 | if (!isActive()) return true; |
| 36673 | CurrentSource = L; |
| 36674 | return InitPop<PT_FixedPoint>(S, CodePtr()); |
| 36675 | } |
| 36676 | bool EvalEmitter::emitInitPopPtr(SourceInfo L) { |
| 36677 | if (!isActive()) return true; |
| 36678 | CurrentSource = L; |
| 36679 | return InitPop<PT_Ptr>(S, CodePtr()); |
| 36680 | } |
| 36681 | bool EvalEmitter::emitInitPopMemberPtr(SourceInfo L) { |
| 36682 | if (!isActive()) return true; |
| 36683 | CurrentSource = L; |
| 36684 | return InitPop<PT_MemberPtr>(S, CodePtr()); |
| 36685 | } |
| 36686 | bool EvalEmitter::emitInitPopFloat(SourceInfo L) { |
| 36687 | if (!isActive()) return true; |
| 36688 | CurrentSource = L; |
| 36689 | return InitPop<PT_Float>(S, CodePtr()); |
| 36690 | } |
| 36691 | bool EvalEmitter::emitInitPopReflect(SourceInfo L) { |
| 36692 | if (!isActive()) return true; |
| 36693 | CurrentSource = L; |
| 36694 | return InitPop<PT_Reflect>(S, CodePtr()); |
| 36695 | } |
| 36696 | #endif |
| 36697 | #ifdef GET_OPCODE_NAMES |
| 36698 | OP_InitScope, |
| 36699 | #endif |
| 36700 | #ifdef GET_INTERPFN_LIST |
| 36701 | &Interp_InitScope, |
| 36702 | #endif |
| 36703 | #ifdef GET_INTERPFN_DISPATCHERS |
| 36704 | PRESERVE_NONE |
| 36705 | static bool Interp_InitScope(InterpState &S) { |
| 36706 | { |
| 36707 | const auto V0 = ReadArg<uint32_t>(S, S.PC); |
| 36708 | InitScope(S, V0); |
| 36709 | } |
| 36710 | #if USE_TAILCALLS |
| 36711 | MUSTTAIL return InterpNext(S); |
| 36712 | #else |
| 36713 | return true; |
| 36714 | #endif |
| 36715 | } |
| 36716 | #endif |
| 36717 | #ifdef GET_DISASM |
| 36718 | case OP_InitScope: |
| 36719 | Text.Op = PrintName("InitScope" ); |
| 36720 | Text.Args.push_back(printArg<uint32_t>(PC)); |
| 36721 | break; |
| 36722 | #endif |
| 36723 | #if defined(GET_EVAL_PROTO) || defined(GET_LINK_PROTO) |
| 36724 | bool emitInitScope( uint32_t , SourceInfo); |
| 36725 | #endif |
| 36726 | #ifdef GET_LINK_IMPL |
| 36727 | bool ByteCodeEmitter::emitInitScope( uint32_t A0, SourceInfo L) { |
| 36728 | return emitOp<uint32_t>(OP_InitScope, A0, L); |
| 36729 | } |
| 36730 | #endif |
| 36731 | #ifdef GET_EVAL_IMPL |
| 36732 | bool EvalEmitter::emitInitScope( uint32_t A0, SourceInfo L) { |
| 36733 | if (!isActive()) return true; |
| 36734 | CurrentSource = L; |
| 36735 | return InitScope(S, A0); |
| 36736 | } |
| 36737 | #endif |
| 36738 | #ifdef GET_OPCODE_NAMES |
| 36739 | OP_InitThisBitFieldSint8, |
| 36740 | OP_InitThisBitFieldUint8, |
| 36741 | OP_InitThisBitFieldSint16, |
| 36742 | OP_InitThisBitFieldUint16, |
| 36743 | OP_InitThisBitFieldSint32, |
| 36744 | OP_InitThisBitFieldUint32, |
| 36745 | OP_InitThisBitFieldSint64, |
| 36746 | OP_InitThisBitFieldUint64, |
| 36747 | OP_InitThisBitFieldIntAP, |
| 36748 | OP_InitThisBitFieldIntAPS, |
| 36749 | OP_InitThisBitFieldBool, |
| 36750 | #endif |
| 36751 | #ifdef GET_INTERPFN_LIST |
| 36752 | &Interp_InitThisBitFieldSint8, |
| 36753 | &Interp_InitThisBitFieldUint8, |
| 36754 | &Interp_InitThisBitFieldSint16, |
| 36755 | &Interp_InitThisBitFieldUint16, |
| 36756 | &Interp_InitThisBitFieldSint32, |
| 36757 | &Interp_InitThisBitFieldUint32, |
| 36758 | &Interp_InitThisBitFieldSint64, |
| 36759 | &Interp_InitThisBitFieldUint64, |
| 36760 | &Interp_InitThisBitFieldIntAP, |
| 36761 | &Interp_InitThisBitFieldIntAPS, |
| 36762 | &Interp_InitThisBitFieldBool, |
| 36763 | #endif |
| 36764 | #ifdef GET_INTERPFN_DISPATCHERS |
| 36765 | PRESERVE_NONE |
| 36766 | static bool Interp_InitThisBitFieldSint8(InterpState &S) { |
| 36767 | { |
| 36768 | CodePtr OpPC = S.PC; |
| 36769 | const auto V0 = ReadArg<uint32_t>(S, S.PC); |
| 36770 | const auto V1 = ReadArg<uint32_t>(S, S.PC); |
| 36771 | if (!InitThisBitField<PT_Sint8>(S, OpPC, V0, V1)) return false; |
| 36772 | } |
| 36773 | #if USE_TAILCALLS |
| 36774 | MUSTTAIL return InterpNext(S); |
| 36775 | #else |
| 36776 | return true; |
| 36777 | #endif |
| 36778 | } |
| 36779 | PRESERVE_NONE |
| 36780 | static bool Interp_InitThisBitFieldUint8(InterpState &S) { |
| 36781 | { |
| 36782 | CodePtr OpPC = S.PC; |
| 36783 | const auto V0 = ReadArg<uint32_t>(S, S.PC); |
| 36784 | const auto V1 = ReadArg<uint32_t>(S, S.PC); |
| 36785 | if (!InitThisBitField<PT_Uint8>(S, OpPC, V0, V1)) return false; |
| 36786 | } |
| 36787 | #if USE_TAILCALLS |
| 36788 | MUSTTAIL return InterpNext(S); |
| 36789 | #else |
| 36790 | return true; |
| 36791 | #endif |
| 36792 | } |
| 36793 | PRESERVE_NONE |
| 36794 | static bool Interp_InitThisBitFieldSint16(InterpState &S) { |
| 36795 | { |
| 36796 | CodePtr OpPC = S.PC; |
| 36797 | const auto V0 = ReadArg<uint32_t>(S, S.PC); |
| 36798 | const auto V1 = ReadArg<uint32_t>(S, S.PC); |
| 36799 | if (!InitThisBitField<PT_Sint16>(S, OpPC, V0, V1)) return false; |
| 36800 | } |
| 36801 | #if USE_TAILCALLS |
| 36802 | MUSTTAIL return InterpNext(S); |
| 36803 | #else |
| 36804 | return true; |
| 36805 | #endif |
| 36806 | } |
| 36807 | PRESERVE_NONE |
| 36808 | static bool Interp_InitThisBitFieldUint16(InterpState &S) { |
| 36809 | { |
| 36810 | CodePtr OpPC = S.PC; |
| 36811 | const auto V0 = ReadArg<uint32_t>(S, S.PC); |
| 36812 | const auto V1 = ReadArg<uint32_t>(S, S.PC); |
| 36813 | if (!InitThisBitField<PT_Uint16>(S, OpPC, V0, V1)) return false; |
| 36814 | } |
| 36815 | #if USE_TAILCALLS |
| 36816 | MUSTTAIL return InterpNext(S); |
| 36817 | #else |
| 36818 | return true; |
| 36819 | #endif |
| 36820 | } |
| 36821 | PRESERVE_NONE |
| 36822 | static bool Interp_InitThisBitFieldSint32(InterpState &S) { |
| 36823 | { |
| 36824 | CodePtr OpPC = S.PC; |
| 36825 | const auto V0 = ReadArg<uint32_t>(S, S.PC); |
| 36826 | const auto V1 = ReadArg<uint32_t>(S, S.PC); |
| 36827 | if (!InitThisBitField<PT_Sint32>(S, OpPC, V0, V1)) return false; |
| 36828 | } |
| 36829 | #if USE_TAILCALLS |
| 36830 | MUSTTAIL return InterpNext(S); |
| 36831 | #else |
| 36832 | return true; |
| 36833 | #endif |
| 36834 | } |
| 36835 | PRESERVE_NONE |
| 36836 | static bool Interp_InitThisBitFieldUint32(InterpState &S) { |
| 36837 | { |
| 36838 | CodePtr OpPC = S.PC; |
| 36839 | const auto V0 = ReadArg<uint32_t>(S, S.PC); |
| 36840 | const auto V1 = ReadArg<uint32_t>(S, S.PC); |
| 36841 | if (!InitThisBitField<PT_Uint32>(S, OpPC, V0, V1)) return false; |
| 36842 | } |
| 36843 | #if USE_TAILCALLS |
| 36844 | MUSTTAIL return InterpNext(S); |
| 36845 | #else |
| 36846 | return true; |
| 36847 | #endif |
| 36848 | } |
| 36849 | PRESERVE_NONE |
| 36850 | static bool Interp_InitThisBitFieldSint64(InterpState &S) { |
| 36851 | { |
| 36852 | CodePtr OpPC = S.PC; |
| 36853 | const auto V0 = ReadArg<uint32_t>(S, S.PC); |
| 36854 | const auto V1 = ReadArg<uint32_t>(S, S.PC); |
| 36855 | if (!InitThisBitField<PT_Sint64>(S, OpPC, V0, V1)) return false; |
| 36856 | } |
| 36857 | #if USE_TAILCALLS |
| 36858 | MUSTTAIL return InterpNext(S); |
| 36859 | #else |
| 36860 | return true; |
| 36861 | #endif |
| 36862 | } |
| 36863 | PRESERVE_NONE |
| 36864 | static bool Interp_InitThisBitFieldUint64(InterpState &S) { |
| 36865 | { |
| 36866 | CodePtr OpPC = S.PC; |
| 36867 | const auto V0 = ReadArg<uint32_t>(S, S.PC); |
| 36868 | const auto V1 = ReadArg<uint32_t>(S, S.PC); |
| 36869 | if (!InitThisBitField<PT_Uint64>(S, OpPC, V0, V1)) return false; |
| 36870 | } |
| 36871 | #if USE_TAILCALLS |
| 36872 | MUSTTAIL return InterpNext(S); |
| 36873 | #else |
| 36874 | return true; |
| 36875 | #endif |
| 36876 | } |
| 36877 | PRESERVE_NONE |
| 36878 | static bool Interp_InitThisBitFieldIntAP(InterpState &S) { |
| 36879 | { |
| 36880 | CodePtr OpPC = S.PC; |
| 36881 | const auto V0 = ReadArg<uint32_t>(S, S.PC); |
| 36882 | const auto V1 = ReadArg<uint32_t>(S, S.PC); |
| 36883 | if (!InitThisBitField<PT_IntAP>(S, OpPC, V0, V1)) return false; |
| 36884 | } |
| 36885 | #if USE_TAILCALLS |
| 36886 | MUSTTAIL return InterpNext(S); |
| 36887 | #else |
| 36888 | return true; |
| 36889 | #endif |
| 36890 | } |
| 36891 | PRESERVE_NONE |
| 36892 | static bool Interp_InitThisBitFieldIntAPS(InterpState &S) { |
| 36893 | { |
| 36894 | CodePtr OpPC = S.PC; |
| 36895 | const auto V0 = ReadArg<uint32_t>(S, S.PC); |
| 36896 | const auto V1 = ReadArg<uint32_t>(S, S.PC); |
| 36897 | if (!InitThisBitField<PT_IntAPS>(S, OpPC, V0, V1)) return false; |
| 36898 | } |
| 36899 | #if USE_TAILCALLS |
| 36900 | MUSTTAIL return InterpNext(S); |
| 36901 | #else |
| 36902 | return true; |
| 36903 | #endif |
| 36904 | } |
| 36905 | PRESERVE_NONE |
| 36906 | static bool Interp_InitThisBitFieldBool(InterpState &S) { |
| 36907 | { |
| 36908 | CodePtr OpPC = S.PC; |
| 36909 | const auto V0 = ReadArg<uint32_t>(S, S.PC); |
| 36910 | const auto V1 = ReadArg<uint32_t>(S, S.PC); |
| 36911 | if (!InitThisBitField<PT_Bool>(S, OpPC, V0, V1)) return false; |
| 36912 | } |
| 36913 | #if USE_TAILCALLS |
| 36914 | MUSTTAIL return InterpNext(S); |
| 36915 | #else |
| 36916 | return true; |
| 36917 | #endif |
| 36918 | } |
| 36919 | #endif |
| 36920 | #ifdef GET_DISASM |
| 36921 | case OP_InitThisBitFieldSint8: |
| 36922 | Text.Op = PrintName("InitThisBitFieldSint8" ); |
| 36923 | Text.Args.push_back(printArg<uint32_t>(PC)); |
| 36924 | Text.Args.push_back(printArg<uint32_t>(PC)); |
| 36925 | break; |
| 36926 | case OP_InitThisBitFieldUint8: |
| 36927 | Text.Op = PrintName("InitThisBitFieldUint8" ); |
| 36928 | Text.Args.push_back(printArg<uint32_t>(PC)); |
| 36929 | Text.Args.push_back(printArg<uint32_t>(PC)); |
| 36930 | break; |
| 36931 | case OP_InitThisBitFieldSint16: |
| 36932 | Text.Op = PrintName("InitThisBitFieldSint16" ); |
| 36933 | Text.Args.push_back(printArg<uint32_t>(PC)); |
| 36934 | Text.Args.push_back(printArg<uint32_t>(PC)); |
| 36935 | break; |
| 36936 | case OP_InitThisBitFieldUint16: |
| 36937 | Text.Op = PrintName("InitThisBitFieldUint16" ); |
| 36938 | Text.Args.push_back(printArg<uint32_t>(PC)); |
| 36939 | Text.Args.push_back(printArg<uint32_t>(PC)); |
| 36940 | break; |
| 36941 | case OP_InitThisBitFieldSint32: |
| 36942 | Text.Op = PrintName("InitThisBitFieldSint32" ); |
| 36943 | Text.Args.push_back(printArg<uint32_t>(PC)); |
| 36944 | Text.Args.push_back(printArg<uint32_t>(PC)); |
| 36945 | break; |
| 36946 | case OP_InitThisBitFieldUint32: |
| 36947 | Text.Op = PrintName("InitThisBitFieldUint32" ); |
| 36948 | Text.Args.push_back(printArg<uint32_t>(PC)); |
| 36949 | Text.Args.push_back(printArg<uint32_t>(PC)); |
| 36950 | break; |
| 36951 | case OP_InitThisBitFieldSint64: |
| 36952 | Text.Op = PrintName("InitThisBitFieldSint64" ); |
| 36953 | Text.Args.push_back(printArg<uint32_t>(PC)); |
| 36954 | Text.Args.push_back(printArg<uint32_t>(PC)); |
| 36955 | break; |
| 36956 | case OP_InitThisBitFieldUint64: |
| 36957 | Text.Op = PrintName("InitThisBitFieldUint64" ); |
| 36958 | Text.Args.push_back(printArg<uint32_t>(PC)); |
| 36959 | Text.Args.push_back(printArg<uint32_t>(PC)); |
| 36960 | break; |
| 36961 | case OP_InitThisBitFieldIntAP: |
| 36962 | Text.Op = PrintName("InitThisBitFieldIntAP" ); |
| 36963 | Text.Args.push_back(printArg<uint32_t>(PC)); |
| 36964 | Text.Args.push_back(printArg<uint32_t>(PC)); |
| 36965 | break; |
| 36966 | case OP_InitThisBitFieldIntAPS: |
| 36967 | Text.Op = PrintName("InitThisBitFieldIntAPS" ); |
| 36968 | Text.Args.push_back(printArg<uint32_t>(PC)); |
| 36969 | Text.Args.push_back(printArg<uint32_t>(PC)); |
| 36970 | break; |
| 36971 | case OP_InitThisBitFieldBool: |
| 36972 | Text.Op = PrintName("InitThisBitFieldBool" ); |
| 36973 | Text.Args.push_back(printArg<uint32_t>(PC)); |
| 36974 | Text.Args.push_back(printArg<uint32_t>(PC)); |
| 36975 | break; |
| 36976 | #endif |
| 36977 | #if defined(GET_EVAL_PROTO) || defined(GET_LINK_PROTO) |
| 36978 | bool emitInitThisBitFieldSint8( uint32_t , uint32_t , SourceInfo); |
| 36979 | bool emitInitThisBitFieldUint8( uint32_t , uint32_t , SourceInfo); |
| 36980 | bool emitInitThisBitFieldSint16( uint32_t , uint32_t , SourceInfo); |
| 36981 | bool emitInitThisBitFieldUint16( uint32_t , uint32_t , SourceInfo); |
| 36982 | bool emitInitThisBitFieldSint32( uint32_t , uint32_t , SourceInfo); |
| 36983 | bool emitInitThisBitFieldUint32( uint32_t , uint32_t , SourceInfo); |
| 36984 | bool emitInitThisBitFieldSint64( uint32_t , uint32_t , SourceInfo); |
| 36985 | bool emitInitThisBitFieldUint64( uint32_t , uint32_t , SourceInfo); |
| 36986 | bool emitInitThisBitFieldIntAP( uint32_t , uint32_t , SourceInfo); |
| 36987 | bool emitInitThisBitFieldIntAPS( uint32_t , uint32_t , SourceInfo); |
| 36988 | bool emitInitThisBitFieldBool( uint32_t , uint32_t , SourceInfo); |
| 36989 | #endif |
| 36990 | #if defined(GET_EVAL_PROTO) || defined(GET_LINK_PROTO) |
| 36991 | [[nodiscard]] bool emitInitThisBitField(PrimType, uint32_t, uint32_t, SourceInfo I); |
| 36992 | #endif |
| 36993 | #if defined(GET_EVAL_IMPL) || defined(GET_LINK_IMPL) |
| 36994 | bool |
| 36995 | #if defined(GET_EVAL_IMPL) |
| 36996 | EvalEmitter |
| 36997 | #else |
| 36998 | ByteCodeEmitter |
| 36999 | #endif |
| 37000 | ::emitInitThisBitField(PrimType T0, uint32_t A0, uint32_t A1, SourceInfo I) { |
| 37001 | switch (T0) { |
| 37002 | case PT_Sint8: |
| 37003 | return emitInitThisBitFieldSint8(A0, A1, I); |
| 37004 | case PT_Uint8: |
| 37005 | return emitInitThisBitFieldUint8(A0, A1, I); |
| 37006 | case PT_Sint16: |
| 37007 | return emitInitThisBitFieldSint16(A0, A1, I); |
| 37008 | case PT_Uint16: |
| 37009 | return emitInitThisBitFieldUint16(A0, A1, I); |
| 37010 | case PT_Sint32: |
| 37011 | return emitInitThisBitFieldSint32(A0, A1, I); |
| 37012 | case PT_Uint32: |
| 37013 | return emitInitThisBitFieldUint32(A0, A1, I); |
| 37014 | case PT_Sint64: |
| 37015 | return emitInitThisBitFieldSint64(A0, A1, I); |
| 37016 | case PT_Uint64: |
| 37017 | return emitInitThisBitFieldUint64(A0, A1, I); |
| 37018 | case PT_IntAP: |
| 37019 | return emitInitThisBitFieldIntAP(A0, A1, I); |
| 37020 | case PT_IntAPS: |
| 37021 | return emitInitThisBitFieldIntAPS(A0, A1, I); |
| 37022 | case PT_Bool: |
| 37023 | return emitInitThisBitFieldBool(A0, A1, I); |
| 37024 | default: llvm_unreachable("invalid type: emitInitThisBitField" ); |
| 37025 | } |
| 37026 | llvm_unreachable("invalid enum value" ); |
| 37027 | } |
| 37028 | #endif |
| 37029 | #ifdef GET_LINK_IMPL |
| 37030 | bool ByteCodeEmitter::emitInitThisBitFieldSint8( uint32_t A0, uint32_t A1, SourceInfo L) { |
| 37031 | return emitOp<uint32_t, uint32_t>(OP_InitThisBitFieldSint8, A0, A1, L); |
| 37032 | } |
| 37033 | bool ByteCodeEmitter::emitInitThisBitFieldUint8( uint32_t A0, uint32_t A1, SourceInfo L) { |
| 37034 | return emitOp<uint32_t, uint32_t>(OP_InitThisBitFieldUint8, A0, A1, L); |
| 37035 | } |
| 37036 | bool ByteCodeEmitter::emitInitThisBitFieldSint16( uint32_t A0, uint32_t A1, SourceInfo L) { |
| 37037 | return emitOp<uint32_t, uint32_t>(OP_InitThisBitFieldSint16, A0, A1, L); |
| 37038 | } |
| 37039 | bool ByteCodeEmitter::emitInitThisBitFieldUint16( uint32_t A0, uint32_t A1, SourceInfo L) { |
| 37040 | return emitOp<uint32_t, uint32_t>(OP_InitThisBitFieldUint16, A0, A1, L); |
| 37041 | } |
| 37042 | bool ByteCodeEmitter::emitInitThisBitFieldSint32( uint32_t A0, uint32_t A1, SourceInfo L) { |
| 37043 | return emitOp<uint32_t, uint32_t>(OP_InitThisBitFieldSint32, A0, A1, L); |
| 37044 | } |
| 37045 | bool ByteCodeEmitter::emitInitThisBitFieldUint32( uint32_t A0, uint32_t A1, SourceInfo L) { |
| 37046 | return emitOp<uint32_t, uint32_t>(OP_InitThisBitFieldUint32, A0, A1, L); |
| 37047 | } |
| 37048 | bool ByteCodeEmitter::emitInitThisBitFieldSint64( uint32_t A0, uint32_t A1, SourceInfo L) { |
| 37049 | return emitOp<uint32_t, uint32_t>(OP_InitThisBitFieldSint64, A0, A1, L); |
| 37050 | } |
| 37051 | bool ByteCodeEmitter::emitInitThisBitFieldUint64( uint32_t A0, uint32_t A1, SourceInfo L) { |
| 37052 | return emitOp<uint32_t, uint32_t>(OP_InitThisBitFieldUint64, A0, A1, L); |
| 37053 | } |
| 37054 | bool ByteCodeEmitter::emitInitThisBitFieldIntAP( uint32_t A0, uint32_t A1, SourceInfo L) { |
| 37055 | return emitOp<uint32_t, uint32_t>(OP_InitThisBitFieldIntAP, A0, A1, L); |
| 37056 | } |
| 37057 | bool ByteCodeEmitter::emitInitThisBitFieldIntAPS( uint32_t A0, uint32_t A1, SourceInfo L) { |
| 37058 | return emitOp<uint32_t, uint32_t>(OP_InitThisBitFieldIntAPS, A0, A1, L); |
| 37059 | } |
| 37060 | bool ByteCodeEmitter::emitInitThisBitFieldBool( uint32_t A0, uint32_t A1, SourceInfo L) { |
| 37061 | return emitOp<uint32_t, uint32_t>(OP_InitThisBitFieldBool, A0, A1, L); |
| 37062 | } |
| 37063 | #endif |
| 37064 | #ifdef GET_EVAL_IMPL |
| 37065 | bool EvalEmitter::emitInitThisBitFieldSint8( uint32_t A0, uint32_t A1, SourceInfo L) { |
| 37066 | if (!isActive()) return true; |
| 37067 | CurrentSource = L; |
| 37068 | return InitThisBitField<PT_Sint8>(S, CodePtr(), A0, A1); |
| 37069 | } |
| 37070 | bool EvalEmitter::emitInitThisBitFieldUint8( uint32_t A0, uint32_t A1, SourceInfo L) { |
| 37071 | if (!isActive()) return true; |
| 37072 | CurrentSource = L; |
| 37073 | return InitThisBitField<PT_Uint8>(S, CodePtr(), A0, A1); |
| 37074 | } |
| 37075 | bool EvalEmitter::emitInitThisBitFieldSint16( uint32_t A0, uint32_t A1, SourceInfo L) { |
| 37076 | if (!isActive()) return true; |
| 37077 | CurrentSource = L; |
| 37078 | return InitThisBitField<PT_Sint16>(S, CodePtr(), A0, A1); |
| 37079 | } |
| 37080 | bool EvalEmitter::emitInitThisBitFieldUint16( uint32_t A0, uint32_t A1, SourceInfo L) { |
| 37081 | if (!isActive()) return true; |
| 37082 | CurrentSource = L; |
| 37083 | return InitThisBitField<PT_Uint16>(S, CodePtr(), A0, A1); |
| 37084 | } |
| 37085 | bool EvalEmitter::emitInitThisBitFieldSint32( uint32_t A0, uint32_t A1, SourceInfo L) { |
| 37086 | if (!isActive()) return true; |
| 37087 | CurrentSource = L; |
| 37088 | return InitThisBitField<PT_Sint32>(S, CodePtr(), A0, A1); |
| 37089 | } |
| 37090 | bool EvalEmitter::emitInitThisBitFieldUint32( uint32_t A0, uint32_t A1, SourceInfo L) { |
| 37091 | if (!isActive()) return true; |
| 37092 | CurrentSource = L; |
| 37093 | return InitThisBitField<PT_Uint32>(S, CodePtr(), A0, A1); |
| 37094 | } |
| 37095 | bool EvalEmitter::emitInitThisBitFieldSint64( uint32_t A0, uint32_t A1, SourceInfo L) { |
| 37096 | if (!isActive()) return true; |
| 37097 | CurrentSource = L; |
| 37098 | return InitThisBitField<PT_Sint64>(S, CodePtr(), A0, A1); |
| 37099 | } |
| 37100 | bool EvalEmitter::emitInitThisBitFieldUint64( uint32_t A0, uint32_t A1, SourceInfo L) { |
| 37101 | if (!isActive()) return true; |
| 37102 | CurrentSource = L; |
| 37103 | return InitThisBitField<PT_Uint64>(S, CodePtr(), A0, A1); |
| 37104 | } |
| 37105 | bool EvalEmitter::emitInitThisBitFieldIntAP( uint32_t A0, uint32_t A1, SourceInfo L) { |
| 37106 | if (!isActive()) return true; |
| 37107 | CurrentSource = L; |
| 37108 | return InitThisBitField<PT_IntAP>(S, CodePtr(), A0, A1); |
| 37109 | } |
| 37110 | bool EvalEmitter::emitInitThisBitFieldIntAPS( uint32_t A0, uint32_t A1, SourceInfo L) { |
| 37111 | if (!isActive()) return true; |
| 37112 | CurrentSource = L; |
| 37113 | return InitThisBitField<PT_IntAPS>(S, CodePtr(), A0, A1); |
| 37114 | } |
| 37115 | bool EvalEmitter::emitInitThisBitFieldBool( uint32_t A0, uint32_t A1, SourceInfo L) { |
| 37116 | if (!isActive()) return true; |
| 37117 | CurrentSource = L; |
| 37118 | return InitThisBitField<PT_Bool>(S, CodePtr(), A0, A1); |
| 37119 | } |
| 37120 | #endif |
| 37121 | #ifdef GET_OPCODE_NAMES |
| 37122 | OP_InitThisFieldSint8, |
| 37123 | OP_InitThisFieldUint8, |
| 37124 | OP_InitThisFieldSint16, |
| 37125 | OP_InitThisFieldUint16, |
| 37126 | OP_InitThisFieldSint32, |
| 37127 | OP_InitThisFieldUint32, |
| 37128 | OP_InitThisFieldSint64, |
| 37129 | OP_InitThisFieldUint64, |
| 37130 | OP_InitThisFieldIntAP, |
| 37131 | OP_InitThisFieldIntAPS, |
| 37132 | OP_InitThisFieldBool, |
| 37133 | OP_InitThisFieldFixedPoint, |
| 37134 | OP_InitThisFieldPtr, |
| 37135 | OP_InitThisFieldMemberPtr, |
| 37136 | OP_InitThisFieldFloat, |
| 37137 | OP_InitThisFieldReflect, |
| 37138 | #endif |
| 37139 | #ifdef GET_INTERPFN_LIST |
| 37140 | &Interp_InitThisFieldSint8, |
| 37141 | &Interp_InitThisFieldUint8, |
| 37142 | &Interp_InitThisFieldSint16, |
| 37143 | &Interp_InitThisFieldUint16, |
| 37144 | &Interp_InitThisFieldSint32, |
| 37145 | &Interp_InitThisFieldUint32, |
| 37146 | &Interp_InitThisFieldSint64, |
| 37147 | &Interp_InitThisFieldUint64, |
| 37148 | &Interp_InitThisFieldIntAP, |
| 37149 | &Interp_InitThisFieldIntAPS, |
| 37150 | &Interp_InitThisFieldBool, |
| 37151 | &Interp_InitThisFieldFixedPoint, |
| 37152 | &Interp_InitThisFieldPtr, |
| 37153 | &Interp_InitThisFieldMemberPtr, |
| 37154 | &Interp_InitThisFieldFloat, |
| 37155 | &Interp_InitThisFieldReflect, |
| 37156 | #endif |
| 37157 | #ifdef GET_INTERPFN_DISPATCHERS |
| 37158 | PRESERVE_NONE |
| 37159 | static bool Interp_InitThisFieldSint8(InterpState &S) { |
| 37160 | { |
| 37161 | CodePtr OpPC = S.PC; |
| 37162 | const auto V0 = ReadArg<uint32_t>(S, S.PC); |
| 37163 | if (!InitThisField<PT_Sint8>(S, OpPC, V0)) return false; |
| 37164 | } |
| 37165 | #if USE_TAILCALLS |
| 37166 | MUSTTAIL return InterpNext(S); |
| 37167 | #else |
| 37168 | return true; |
| 37169 | #endif |
| 37170 | } |
| 37171 | PRESERVE_NONE |
| 37172 | static bool Interp_InitThisFieldUint8(InterpState &S) { |
| 37173 | { |
| 37174 | CodePtr OpPC = S.PC; |
| 37175 | const auto V0 = ReadArg<uint32_t>(S, S.PC); |
| 37176 | if (!InitThisField<PT_Uint8>(S, OpPC, V0)) return false; |
| 37177 | } |
| 37178 | #if USE_TAILCALLS |
| 37179 | MUSTTAIL return InterpNext(S); |
| 37180 | #else |
| 37181 | return true; |
| 37182 | #endif |
| 37183 | } |
| 37184 | PRESERVE_NONE |
| 37185 | static bool Interp_InitThisFieldSint16(InterpState &S) { |
| 37186 | { |
| 37187 | CodePtr OpPC = S.PC; |
| 37188 | const auto V0 = ReadArg<uint32_t>(S, S.PC); |
| 37189 | if (!InitThisField<PT_Sint16>(S, OpPC, V0)) return false; |
| 37190 | } |
| 37191 | #if USE_TAILCALLS |
| 37192 | MUSTTAIL return InterpNext(S); |
| 37193 | #else |
| 37194 | return true; |
| 37195 | #endif |
| 37196 | } |
| 37197 | PRESERVE_NONE |
| 37198 | static bool Interp_InitThisFieldUint16(InterpState &S) { |
| 37199 | { |
| 37200 | CodePtr OpPC = S.PC; |
| 37201 | const auto V0 = ReadArg<uint32_t>(S, S.PC); |
| 37202 | if (!InitThisField<PT_Uint16>(S, OpPC, V0)) return false; |
| 37203 | } |
| 37204 | #if USE_TAILCALLS |
| 37205 | MUSTTAIL return InterpNext(S); |
| 37206 | #else |
| 37207 | return true; |
| 37208 | #endif |
| 37209 | } |
| 37210 | PRESERVE_NONE |
| 37211 | static bool Interp_InitThisFieldSint32(InterpState &S) { |
| 37212 | { |
| 37213 | CodePtr OpPC = S.PC; |
| 37214 | const auto V0 = ReadArg<uint32_t>(S, S.PC); |
| 37215 | if (!InitThisField<PT_Sint32>(S, OpPC, V0)) return false; |
| 37216 | } |
| 37217 | #if USE_TAILCALLS |
| 37218 | MUSTTAIL return InterpNext(S); |
| 37219 | #else |
| 37220 | return true; |
| 37221 | #endif |
| 37222 | } |
| 37223 | PRESERVE_NONE |
| 37224 | static bool Interp_InitThisFieldUint32(InterpState &S) { |
| 37225 | { |
| 37226 | CodePtr OpPC = S.PC; |
| 37227 | const auto V0 = ReadArg<uint32_t>(S, S.PC); |
| 37228 | if (!InitThisField<PT_Uint32>(S, OpPC, V0)) return false; |
| 37229 | } |
| 37230 | #if USE_TAILCALLS |
| 37231 | MUSTTAIL return InterpNext(S); |
| 37232 | #else |
| 37233 | return true; |
| 37234 | #endif |
| 37235 | } |
| 37236 | PRESERVE_NONE |
| 37237 | static bool Interp_InitThisFieldSint64(InterpState &S) { |
| 37238 | { |
| 37239 | CodePtr OpPC = S.PC; |
| 37240 | const auto V0 = ReadArg<uint32_t>(S, S.PC); |
| 37241 | if (!InitThisField<PT_Sint64>(S, OpPC, V0)) return false; |
| 37242 | } |
| 37243 | #if USE_TAILCALLS |
| 37244 | MUSTTAIL return InterpNext(S); |
| 37245 | #else |
| 37246 | return true; |
| 37247 | #endif |
| 37248 | } |
| 37249 | PRESERVE_NONE |
| 37250 | static bool Interp_InitThisFieldUint64(InterpState &S) { |
| 37251 | { |
| 37252 | CodePtr OpPC = S.PC; |
| 37253 | const auto V0 = ReadArg<uint32_t>(S, S.PC); |
| 37254 | if (!InitThisField<PT_Uint64>(S, OpPC, V0)) return false; |
| 37255 | } |
| 37256 | #if USE_TAILCALLS |
| 37257 | MUSTTAIL return InterpNext(S); |
| 37258 | #else |
| 37259 | return true; |
| 37260 | #endif |
| 37261 | } |
| 37262 | PRESERVE_NONE |
| 37263 | static bool Interp_InitThisFieldIntAP(InterpState &S) { |
| 37264 | { |
| 37265 | CodePtr OpPC = S.PC; |
| 37266 | const auto V0 = ReadArg<uint32_t>(S, S.PC); |
| 37267 | if (!InitThisField<PT_IntAP>(S, OpPC, V0)) return false; |
| 37268 | } |
| 37269 | #if USE_TAILCALLS |
| 37270 | MUSTTAIL return InterpNext(S); |
| 37271 | #else |
| 37272 | return true; |
| 37273 | #endif |
| 37274 | } |
| 37275 | PRESERVE_NONE |
| 37276 | static bool Interp_InitThisFieldIntAPS(InterpState &S) { |
| 37277 | { |
| 37278 | CodePtr OpPC = S.PC; |
| 37279 | const auto V0 = ReadArg<uint32_t>(S, S.PC); |
| 37280 | if (!InitThisField<PT_IntAPS>(S, OpPC, V0)) return false; |
| 37281 | } |
| 37282 | #if USE_TAILCALLS |
| 37283 | MUSTTAIL return InterpNext(S); |
| 37284 | #else |
| 37285 | return true; |
| 37286 | #endif |
| 37287 | } |
| 37288 | PRESERVE_NONE |
| 37289 | static bool Interp_InitThisFieldBool(InterpState &S) { |
| 37290 | { |
| 37291 | CodePtr OpPC = S.PC; |
| 37292 | const auto V0 = ReadArg<uint32_t>(S, S.PC); |
| 37293 | if (!InitThisField<PT_Bool>(S, OpPC, V0)) return false; |
| 37294 | } |
| 37295 | #if USE_TAILCALLS |
| 37296 | MUSTTAIL return InterpNext(S); |
| 37297 | #else |
| 37298 | return true; |
| 37299 | #endif |
| 37300 | } |
| 37301 | PRESERVE_NONE |
| 37302 | static bool Interp_InitThisFieldFixedPoint(InterpState &S) { |
| 37303 | { |
| 37304 | CodePtr OpPC = S.PC; |
| 37305 | const auto V0 = ReadArg<uint32_t>(S, S.PC); |
| 37306 | if (!InitThisField<PT_FixedPoint>(S, OpPC, V0)) return false; |
| 37307 | } |
| 37308 | #if USE_TAILCALLS |
| 37309 | MUSTTAIL return InterpNext(S); |
| 37310 | #else |
| 37311 | return true; |
| 37312 | #endif |
| 37313 | } |
| 37314 | PRESERVE_NONE |
| 37315 | static bool Interp_InitThisFieldPtr(InterpState &S) { |
| 37316 | { |
| 37317 | CodePtr OpPC = S.PC; |
| 37318 | const auto V0 = ReadArg<uint32_t>(S, S.PC); |
| 37319 | if (!InitThisField<PT_Ptr>(S, OpPC, V0)) return false; |
| 37320 | } |
| 37321 | #if USE_TAILCALLS |
| 37322 | MUSTTAIL return InterpNext(S); |
| 37323 | #else |
| 37324 | return true; |
| 37325 | #endif |
| 37326 | } |
| 37327 | PRESERVE_NONE |
| 37328 | static bool Interp_InitThisFieldMemberPtr(InterpState &S) { |
| 37329 | { |
| 37330 | CodePtr OpPC = S.PC; |
| 37331 | const auto V0 = ReadArg<uint32_t>(S, S.PC); |
| 37332 | if (!InitThisField<PT_MemberPtr>(S, OpPC, V0)) return false; |
| 37333 | } |
| 37334 | #if USE_TAILCALLS |
| 37335 | MUSTTAIL return InterpNext(S); |
| 37336 | #else |
| 37337 | return true; |
| 37338 | #endif |
| 37339 | } |
| 37340 | PRESERVE_NONE |
| 37341 | static bool Interp_InitThisFieldFloat(InterpState &S) { |
| 37342 | { |
| 37343 | CodePtr OpPC = S.PC; |
| 37344 | const auto V0 = ReadArg<uint32_t>(S, S.PC); |
| 37345 | if (!InitThisField<PT_Float>(S, OpPC, V0)) return false; |
| 37346 | } |
| 37347 | #if USE_TAILCALLS |
| 37348 | MUSTTAIL return InterpNext(S); |
| 37349 | #else |
| 37350 | return true; |
| 37351 | #endif |
| 37352 | } |
| 37353 | PRESERVE_NONE |
| 37354 | static bool Interp_InitThisFieldReflect(InterpState &S) { |
| 37355 | { |
| 37356 | CodePtr OpPC = S.PC; |
| 37357 | const auto V0 = ReadArg<uint32_t>(S, S.PC); |
| 37358 | if (!InitThisField<PT_Reflect>(S, OpPC, V0)) return false; |
| 37359 | } |
| 37360 | #if USE_TAILCALLS |
| 37361 | MUSTTAIL return InterpNext(S); |
| 37362 | #else |
| 37363 | return true; |
| 37364 | #endif |
| 37365 | } |
| 37366 | #endif |
| 37367 | #ifdef GET_DISASM |
| 37368 | case OP_InitThisFieldSint8: |
| 37369 | Text.Op = PrintName("InitThisFieldSint8" ); |
| 37370 | Text.Args.push_back(printArg<uint32_t>(PC)); |
| 37371 | break; |
| 37372 | case OP_InitThisFieldUint8: |
| 37373 | Text.Op = PrintName("InitThisFieldUint8" ); |
| 37374 | Text.Args.push_back(printArg<uint32_t>(PC)); |
| 37375 | break; |
| 37376 | case OP_InitThisFieldSint16: |
| 37377 | Text.Op = PrintName("InitThisFieldSint16" ); |
| 37378 | Text.Args.push_back(printArg<uint32_t>(PC)); |
| 37379 | break; |
| 37380 | case OP_InitThisFieldUint16: |
| 37381 | Text.Op = PrintName("InitThisFieldUint16" ); |
| 37382 | Text.Args.push_back(printArg<uint32_t>(PC)); |
| 37383 | break; |
| 37384 | case OP_InitThisFieldSint32: |
| 37385 | Text.Op = PrintName("InitThisFieldSint32" ); |
| 37386 | Text.Args.push_back(printArg<uint32_t>(PC)); |
| 37387 | break; |
| 37388 | case OP_InitThisFieldUint32: |
| 37389 | Text.Op = PrintName("InitThisFieldUint32" ); |
| 37390 | Text.Args.push_back(printArg<uint32_t>(PC)); |
| 37391 | break; |
| 37392 | case OP_InitThisFieldSint64: |
| 37393 | Text.Op = PrintName("InitThisFieldSint64" ); |
| 37394 | Text.Args.push_back(printArg<uint32_t>(PC)); |
| 37395 | break; |
| 37396 | case OP_InitThisFieldUint64: |
| 37397 | Text.Op = PrintName("InitThisFieldUint64" ); |
| 37398 | Text.Args.push_back(printArg<uint32_t>(PC)); |
| 37399 | break; |
| 37400 | case OP_InitThisFieldIntAP: |
| 37401 | Text.Op = PrintName("InitThisFieldIntAP" ); |
| 37402 | Text.Args.push_back(printArg<uint32_t>(PC)); |
| 37403 | break; |
| 37404 | case OP_InitThisFieldIntAPS: |
| 37405 | Text.Op = PrintName("InitThisFieldIntAPS" ); |
| 37406 | Text.Args.push_back(printArg<uint32_t>(PC)); |
| 37407 | break; |
| 37408 | case OP_InitThisFieldBool: |
| 37409 | Text.Op = PrintName("InitThisFieldBool" ); |
| 37410 | Text.Args.push_back(printArg<uint32_t>(PC)); |
| 37411 | break; |
| 37412 | case OP_InitThisFieldFixedPoint: |
| 37413 | Text.Op = PrintName("InitThisFieldFixedPoint" ); |
| 37414 | Text.Args.push_back(printArg<uint32_t>(PC)); |
| 37415 | break; |
| 37416 | case OP_InitThisFieldPtr: |
| 37417 | Text.Op = PrintName("InitThisFieldPtr" ); |
| 37418 | Text.Args.push_back(printArg<uint32_t>(PC)); |
| 37419 | break; |
| 37420 | case OP_InitThisFieldMemberPtr: |
| 37421 | Text.Op = PrintName("InitThisFieldMemberPtr" ); |
| 37422 | Text.Args.push_back(printArg<uint32_t>(PC)); |
| 37423 | break; |
| 37424 | case OP_InitThisFieldFloat: |
| 37425 | Text.Op = PrintName("InitThisFieldFloat" ); |
| 37426 | Text.Args.push_back(printArg<uint32_t>(PC)); |
| 37427 | break; |
| 37428 | case OP_InitThisFieldReflect: |
| 37429 | Text.Op = PrintName("InitThisFieldReflect" ); |
| 37430 | Text.Args.push_back(printArg<uint32_t>(PC)); |
| 37431 | break; |
| 37432 | #endif |
| 37433 | #if defined(GET_EVAL_PROTO) || defined(GET_LINK_PROTO) |
| 37434 | bool emitInitThisFieldSint8( uint32_t , SourceInfo); |
| 37435 | bool emitInitThisFieldUint8( uint32_t , SourceInfo); |
| 37436 | bool emitInitThisFieldSint16( uint32_t , SourceInfo); |
| 37437 | bool emitInitThisFieldUint16( uint32_t , SourceInfo); |
| 37438 | bool emitInitThisFieldSint32( uint32_t , SourceInfo); |
| 37439 | bool emitInitThisFieldUint32( uint32_t , SourceInfo); |
| 37440 | bool emitInitThisFieldSint64( uint32_t , SourceInfo); |
| 37441 | bool emitInitThisFieldUint64( uint32_t , SourceInfo); |
| 37442 | bool emitInitThisFieldIntAP( uint32_t , SourceInfo); |
| 37443 | bool emitInitThisFieldIntAPS( uint32_t , SourceInfo); |
| 37444 | bool emitInitThisFieldBool( uint32_t , SourceInfo); |
| 37445 | bool emitInitThisFieldFixedPoint( uint32_t , SourceInfo); |
| 37446 | bool emitInitThisFieldPtr( uint32_t , SourceInfo); |
| 37447 | bool emitInitThisFieldMemberPtr( uint32_t , SourceInfo); |
| 37448 | bool emitInitThisFieldFloat( uint32_t , SourceInfo); |
| 37449 | bool emitInitThisFieldReflect( uint32_t , SourceInfo); |
| 37450 | #endif |
| 37451 | #if defined(GET_EVAL_PROTO) || defined(GET_LINK_PROTO) |
| 37452 | [[nodiscard]] bool emitInitThisField(PrimType, uint32_t, SourceInfo I); |
| 37453 | #endif |
| 37454 | #if defined(GET_EVAL_IMPL) || defined(GET_LINK_IMPL) |
| 37455 | bool |
| 37456 | #if defined(GET_EVAL_IMPL) |
| 37457 | EvalEmitter |
| 37458 | #else |
| 37459 | ByteCodeEmitter |
| 37460 | #endif |
| 37461 | ::emitInitThisField(PrimType T0, uint32_t A0, SourceInfo I) { |
| 37462 | switch (T0) { |
| 37463 | case PT_Sint8: |
| 37464 | return emitInitThisFieldSint8(A0, I); |
| 37465 | case PT_Uint8: |
| 37466 | return emitInitThisFieldUint8(A0, I); |
| 37467 | case PT_Sint16: |
| 37468 | return emitInitThisFieldSint16(A0, I); |
| 37469 | case PT_Uint16: |
| 37470 | return emitInitThisFieldUint16(A0, I); |
| 37471 | case PT_Sint32: |
| 37472 | return emitInitThisFieldSint32(A0, I); |
| 37473 | case PT_Uint32: |
| 37474 | return emitInitThisFieldUint32(A0, I); |
| 37475 | case PT_Sint64: |
| 37476 | return emitInitThisFieldSint64(A0, I); |
| 37477 | case PT_Uint64: |
| 37478 | return emitInitThisFieldUint64(A0, I); |
| 37479 | case PT_IntAP: |
| 37480 | return emitInitThisFieldIntAP(A0, I); |
| 37481 | case PT_IntAPS: |
| 37482 | return emitInitThisFieldIntAPS(A0, I); |
| 37483 | case PT_Bool: |
| 37484 | return emitInitThisFieldBool(A0, I); |
| 37485 | case PT_FixedPoint: |
| 37486 | return emitInitThisFieldFixedPoint(A0, I); |
| 37487 | case PT_Ptr: |
| 37488 | return emitInitThisFieldPtr(A0, I); |
| 37489 | case PT_MemberPtr: |
| 37490 | return emitInitThisFieldMemberPtr(A0, I); |
| 37491 | case PT_Float: |
| 37492 | return emitInitThisFieldFloat(A0, I); |
| 37493 | case PT_Reflect: |
| 37494 | return emitInitThisFieldReflect(A0, I); |
| 37495 | } |
| 37496 | llvm_unreachable("invalid enum value" ); |
| 37497 | } |
| 37498 | #endif |
| 37499 | #ifdef GET_LINK_IMPL |
| 37500 | bool ByteCodeEmitter::emitInitThisFieldSint8( uint32_t A0, SourceInfo L) { |
| 37501 | return emitOp<uint32_t>(OP_InitThisFieldSint8, A0, L); |
| 37502 | } |
| 37503 | bool ByteCodeEmitter::emitInitThisFieldUint8( uint32_t A0, SourceInfo L) { |
| 37504 | return emitOp<uint32_t>(OP_InitThisFieldUint8, A0, L); |
| 37505 | } |
| 37506 | bool ByteCodeEmitter::emitInitThisFieldSint16( uint32_t A0, SourceInfo L) { |
| 37507 | return emitOp<uint32_t>(OP_InitThisFieldSint16, A0, L); |
| 37508 | } |
| 37509 | bool ByteCodeEmitter::emitInitThisFieldUint16( uint32_t A0, SourceInfo L) { |
| 37510 | return emitOp<uint32_t>(OP_InitThisFieldUint16, A0, L); |
| 37511 | } |
| 37512 | bool ByteCodeEmitter::emitInitThisFieldSint32( uint32_t A0, SourceInfo L) { |
| 37513 | return emitOp<uint32_t>(OP_InitThisFieldSint32, A0, L); |
| 37514 | } |
| 37515 | bool ByteCodeEmitter::emitInitThisFieldUint32( uint32_t A0, SourceInfo L) { |
| 37516 | return emitOp<uint32_t>(OP_InitThisFieldUint32, A0, L); |
| 37517 | } |
| 37518 | bool ByteCodeEmitter::emitInitThisFieldSint64( uint32_t A0, SourceInfo L) { |
| 37519 | return emitOp<uint32_t>(OP_InitThisFieldSint64, A0, L); |
| 37520 | } |
| 37521 | bool ByteCodeEmitter::emitInitThisFieldUint64( uint32_t A0, SourceInfo L) { |
| 37522 | return emitOp<uint32_t>(OP_InitThisFieldUint64, A0, L); |
| 37523 | } |
| 37524 | bool ByteCodeEmitter::emitInitThisFieldIntAP( uint32_t A0, SourceInfo L) { |
| 37525 | return emitOp<uint32_t>(OP_InitThisFieldIntAP, A0, L); |
| 37526 | } |
| 37527 | bool ByteCodeEmitter::emitInitThisFieldIntAPS( uint32_t A0, SourceInfo L) { |
| 37528 | return emitOp<uint32_t>(OP_InitThisFieldIntAPS, A0, L); |
| 37529 | } |
| 37530 | bool ByteCodeEmitter::emitInitThisFieldBool( uint32_t A0, SourceInfo L) { |
| 37531 | return emitOp<uint32_t>(OP_InitThisFieldBool, A0, L); |
| 37532 | } |
| 37533 | bool ByteCodeEmitter::emitInitThisFieldFixedPoint( uint32_t A0, SourceInfo L) { |
| 37534 | return emitOp<uint32_t>(OP_InitThisFieldFixedPoint, A0, L); |
| 37535 | } |
| 37536 | bool ByteCodeEmitter::emitInitThisFieldPtr( uint32_t A0, SourceInfo L) { |
| 37537 | return emitOp<uint32_t>(OP_InitThisFieldPtr, A0, L); |
| 37538 | } |
| 37539 | bool ByteCodeEmitter::emitInitThisFieldMemberPtr( uint32_t A0, SourceInfo L) { |
| 37540 | return emitOp<uint32_t>(OP_InitThisFieldMemberPtr, A0, L); |
| 37541 | } |
| 37542 | bool ByteCodeEmitter::emitInitThisFieldFloat( uint32_t A0, SourceInfo L) { |
| 37543 | return emitOp<uint32_t>(OP_InitThisFieldFloat, A0, L); |
| 37544 | } |
| 37545 | bool ByteCodeEmitter::emitInitThisFieldReflect( uint32_t A0, SourceInfo L) { |
| 37546 | return emitOp<uint32_t>(OP_InitThisFieldReflect, A0, L); |
| 37547 | } |
| 37548 | #endif |
| 37549 | #ifdef GET_EVAL_IMPL |
| 37550 | bool EvalEmitter::emitInitThisFieldSint8( uint32_t A0, SourceInfo L) { |
| 37551 | if (!isActive()) return true; |
| 37552 | CurrentSource = L; |
| 37553 | return InitThisField<PT_Sint8>(S, CodePtr(), A0); |
| 37554 | } |
| 37555 | bool EvalEmitter::emitInitThisFieldUint8( uint32_t A0, SourceInfo L) { |
| 37556 | if (!isActive()) return true; |
| 37557 | CurrentSource = L; |
| 37558 | return InitThisField<PT_Uint8>(S, CodePtr(), A0); |
| 37559 | } |
| 37560 | bool EvalEmitter::emitInitThisFieldSint16( uint32_t A0, SourceInfo L) { |
| 37561 | if (!isActive()) return true; |
| 37562 | CurrentSource = L; |
| 37563 | return InitThisField<PT_Sint16>(S, CodePtr(), A0); |
| 37564 | } |
| 37565 | bool EvalEmitter::emitInitThisFieldUint16( uint32_t A0, SourceInfo L) { |
| 37566 | if (!isActive()) return true; |
| 37567 | CurrentSource = L; |
| 37568 | return InitThisField<PT_Uint16>(S, CodePtr(), A0); |
| 37569 | } |
| 37570 | bool EvalEmitter::emitInitThisFieldSint32( uint32_t A0, SourceInfo L) { |
| 37571 | if (!isActive()) return true; |
| 37572 | CurrentSource = L; |
| 37573 | return InitThisField<PT_Sint32>(S, CodePtr(), A0); |
| 37574 | } |
| 37575 | bool EvalEmitter::emitInitThisFieldUint32( uint32_t A0, SourceInfo L) { |
| 37576 | if (!isActive()) return true; |
| 37577 | CurrentSource = L; |
| 37578 | return InitThisField<PT_Uint32>(S, CodePtr(), A0); |
| 37579 | } |
| 37580 | bool EvalEmitter::emitInitThisFieldSint64( uint32_t A0, SourceInfo L) { |
| 37581 | if (!isActive()) return true; |
| 37582 | CurrentSource = L; |
| 37583 | return InitThisField<PT_Sint64>(S, CodePtr(), A0); |
| 37584 | } |
| 37585 | bool EvalEmitter::emitInitThisFieldUint64( uint32_t A0, SourceInfo L) { |
| 37586 | if (!isActive()) return true; |
| 37587 | CurrentSource = L; |
| 37588 | return InitThisField<PT_Uint64>(S, CodePtr(), A0); |
| 37589 | } |
| 37590 | bool EvalEmitter::emitInitThisFieldIntAP( uint32_t A0, SourceInfo L) { |
| 37591 | if (!isActive()) return true; |
| 37592 | CurrentSource = L; |
| 37593 | return InitThisField<PT_IntAP>(S, CodePtr(), A0); |
| 37594 | } |
| 37595 | bool EvalEmitter::emitInitThisFieldIntAPS( uint32_t A0, SourceInfo L) { |
| 37596 | if (!isActive()) return true; |
| 37597 | CurrentSource = L; |
| 37598 | return InitThisField<PT_IntAPS>(S, CodePtr(), A0); |
| 37599 | } |
| 37600 | bool EvalEmitter::emitInitThisFieldBool( uint32_t A0, SourceInfo L) { |
| 37601 | if (!isActive()) return true; |
| 37602 | CurrentSource = L; |
| 37603 | return InitThisField<PT_Bool>(S, CodePtr(), A0); |
| 37604 | } |
| 37605 | bool EvalEmitter::emitInitThisFieldFixedPoint( uint32_t A0, SourceInfo L) { |
| 37606 | if (!isActive()) return true; |
| 37607 | CurrentSource = L; |
| 37608 | return InitThisField<PT_FixedPoint>(S, CodePtr(), A0); |
| 37609 | } |
| 37610 | bool EvalEmitter::emitInitThisFieldPtr( uint32_t A0, SourceInfo L) { |
| 37611 | if (!isActive()) return true; |
| 37612 | CurrentSource = L; |
| 37613 | return InitThisField<PT_Ptr>(S, CodePtr(), A0); |
| 37614 | } |
| 37615 | bool EvalEmitter::emitInitThisFieldMemberPtr( uint32_t A0, SourceInfo L) { |
| 37616 | if (!isActive()) return true; |
| 37617 | CurrentSource = L; |
| 37618 | return InitThisField<PT_MemberPtr>(S, CodePtr(), A0); |
| 37619 | } |
| 37620 | bool EvalEmitter::emitInitThisFieldFloat( uint32_t A0, SourceInfo L) { |
| 37621 | if (!isActive()) return true; |
| 37622 | CurrentSource = L; |
| 37623 | return InitThisField<PT_Float>(S, CodePtr(), A0); |
| 37624 | } |
| 37625 | bool EvalEmitter::emitInitThisFieldReflect( uint32_t A0, SourceInfo L) { |
| 37626 | if (!isActive()) return true; |
| 37627 | CurrentSource = L; |
| 37628 | return InitThisField<PT_Reflect>(S, CodePtr(), A0); |
| 37629 | } |
| 37630 | #endif |
| 37631 | #ifdef GET_OPCODE_NAMES |
| 37632 | OP_InitThisFieldActivateSint8, |
| 37633 | OP_InitThisFieldActivateUint8, |
| 37634 | OP_InitThisFieldActivateSint16, |
| 37635 | OP_InitThisFieldActivateUint16, |
| 37636 | OP_InitThisFieldActivateSint32, |
| 37637 | OP_InitThisFieldActivateUint32, |
| 37638 | OP_InitThisFieldActivateSint64, |
| 37639 | OP_InitThisFieldActivateUint64, |
| 37640 | OP_InitThisFieldActivateIntAP, |
| 37641 | OP_InitThisFieldActivateIntAPS, |
| 37642 | OP_InitThisFieldActivateBool, |
| 37643 | OP_InitThisFieldActivateFixedPoint, |
| 37644 | OP_InitThisFieldActivatePtr, |
| 37645 | OP_InitThisFieldActivateMemberPtr, |
| 37646 | OP_InitThisFieldActivateFloat, |
| 37647 | OP_InitThisFieldActivateReflect, |
| 37648 | #endif |
| 37649 | #ifdef GET_INTERPFN_LIST |
| 37650 | &Interp_InitThisFieldActivateSint8, |
| 37651 | &Interp_InitThisFieldActivateUint8, |
| 37652 | &Interp_InitThisFieldActivateSint16, |
| 37653 | &Interp_InitThisFieldActivateUint16, |
| 37654 | &Interp_InitThisFieldActivateSint32, |
| 37655 | &Interp_InitThisFieldActivateUint32, |
| 37656 | &Interp_InitThisFieldActivateSint64, |
| 37657 | &Interp_InitThisFieldActivateUint64, |
| 37658 | &Interp_InitThisFieldActivateIntAP, |
| 37659 | &Interp_InitThisFieldActivateIntAPS, |
| 37660 | &Interp_InitThisFieldActivateBool, |
| 37661 | &Interp_InitThisFieldActivateFixedPoint, |
| 37662 | &Interp_InitThisFieldActivatePtr, |
| 37663 | &Interp_InitThisFieldActivateMemberPtr, |
| 37664 | &Interp_InitThisFieldActivateFloat, |
| 37665 | &Interp_InitThisFieldActivateReflect, |
| 37666 | #endif |
| 37667 | #ifdef GET_INTERPFN_DISPATCHERS |
| 37668 | PRESERVE_NONE |
| 37669 | static bool Interp_InitThisFieldActivateSint8(InterpState &S) { |
| 37670 | { |
| 37671 | CodePtr OpPC = S.PC; |
| 37672 | const auto V0 = ReadArg<uint32_t>(S, S.PC); |
| 37673 | if (!InitThisFieldActivate<PT_Sint8>(S, OpPC, V0)) return false; |
| 37674 | } |
| 37675 | #if USE_TAILCALLS |
| 37676 | MUSTTAIL return InterpNext(S); |
| 37677 | #else |
| 37678 | return true; |
| 37679 | #endif |
| 37680 | } |
| 37681 | PRESERVE_NONE |
| 37682 | static bool Interp_InitThisFieldActivateUint8(InterpState &S) { |
| 37683 | { |
| 37684 | CodePtr OpPC = S.PC; |
| 37685 | const auto V0 = ReadArg<uint32_t>(S, S.PC); |
| 37686 | if (!InitThisFieldActivate<PT_Uint8>(S, OpPC, V0)) return false; |
| 37687 | } |
| 37688 | #if USE_TAILCALLS |
| 37689 | MUSTTAIL return InterpNext(S); |
| 37690 | #else |
| 37691 | return true; |
| 37692 | #endif |
| 37693 | } |
| 37694 | PRESERVE_NONE |
| 37695 | static bool Interp_InitThisFieldActivateSint16(InterpState &S) { |
| 37696 | { |
| 37697 | CodePtr OpPC = S.PC; |
| 37698 | const auto V0 = ReadArg<uint32_t>(S, S.PC); |
| 37699 | if (!InitThisFieldActivate<PT_Sint16>(S, OpPC, V0)) return false; |
| 37700 | } |
| 37701 | #if USE_TAILCALLS |
| 37702 | MUSTTAIL return InterpNext(S); |
| 37703 | #else |
| 37704 | return true; |
| 37705 | #endif |
| 37706 | } |
| 37707 | PRESERVE_NONE |
| 37708 | static bool Interp_InitThisFieldActivateUint16(InterpState &S) { |
| 37709 | { |
| 37710 | CodePtr OpPC = S.PC; |
| 37711 | const auto V0 = ReadArg<uint32_t>(S, S.PC); |
| 37712 | if (!InitThisFieldActivate<PT_Uint16>(S, OpPC, V0)) return false; |
| 37713 | } |
| 37714 | #if USE_TAILCALLS |
| 37715 | MUSTTAIL return InterpNext(S); |
| 37716 | #else |
| 37717 | return true; |
| 37718 | #endif |
| 37719 | } |
| 37720 | PRESERVE_NONE |
| 37721 | static bool Interp_InitThisFieldActivateSint32(InterpState &S) { |
| 37722 | { |
| 37723 | CodePtr OpPC = S.PC; |
| 37724 | const auto V0 = ReadArg<uint32_t>(S, S.PC); |
| 37725 | if (!InitThisFieldActivate<PT_Sint32>(S, OpPC, V0)) return false; |
| 37726 | } |
| 37727 | #if USE_TAILCALLS |
| 37728 | MUSTTAIL return InterpNext(S); |
| 37729 | #else |
| 37730 | return true; |
| 37731 | #endif |
| 37732 | } |
| 37733 | PRESERVE_NONE |
| 37734 | static bool Interp_InitThisFieldActivateUint32(InterpState &S) { |
| 37735 | { |
| 37736 | CodePtr OpPC = S.PC; |
| 37737 | const auto V0 = ReadArg<uint32_t>(S, S.PC); |
| 37738 | if (!InitThisFieldActivate<PT_Uint32>(S, OpPC, V0)) return false; |
| 37739 | } |
| 37740 | #if USE_TAILCALLS |
| 37741 | MUSTTAIL return InterpNext(S); |
| 37742 | #else |
| 37743 | return true; |
| 37744 | #endif |
| 37745 | } |
| 37746 | PRESERVE_NONE |
| 37747 | static bool Interp_InitThisFieldActivateSint64(InterpState &S) { |
| 37748 | { |
| 37749 | CodePtr OpPC = S.PC; |
| 37750 | const auto V0 = ReadArg<uint32_t>(S, S.PC); |
| 37751 | if (!InitThisFieldActivate<PT_Sint64>(S, OpPC, V0)) return false; |
| 37752 | } |
| 37753 | #if USE_TAILCALLS |
| 37754 | MUSTTAIL return InterpNext(S); |
| 37755 | #else |
| 37756 | return true; |
| 37757 | #endif |
| 37758 | } |
| 37759 | PRESERVE_NONE |
| 37760 | static bool Interp_InitThisFieldActivateUint64(InterpState &S) { |
| 37761 | { |
| 37762 | CodePtr OpPC = S.PC; |
| 37763 | const auto V0 = ReadArg<uint32_t>(S, S.PC); |
| 37764 | if (!InitThisFieldActivate<PT_Uint64>(S, OpPC, V0)) return false; |
| 37765 | } |
| 37766 | #if USE_TAILCALLS |
| 37767 | MUSTTAIL return InterpNext(S); |
| 37768 | #else |
| 37769 | return true; |
| 37770 | #endif |
| 37771 | } |
| 37772 | PRESERVE_NONE |
| 37773 | static bool Interp_InitThisFieldActivateIntAP(InterpState &S) { |
| 37774 | { |
| 37775 | CodePtr OpPC = S.PC; |
| 37776 | const auto V0 = ReadArg<uint32_t>(S, S.PC); |
| 37777 | if (!InitThisFieldActivate<PT_IntAP>(S, OpPC, V0)) return false; |
| 37778 | } |
| 37779 | #if USE_TAILCALLS |
| 37780 | MUSTTAIL return InterpNext(S); |
| 37781 | #else |
| 37782 | return true; |
| 37783 | #endif |
| 37784 | } |
| 37785 | PRESERVE_NONE |
| 37786 | static bool Interp_InitThisFieldActivateIntAPS(InterpState &S) { |
| 37787 | { |
| 37788 | CodePtr OpPC = S.PC; |
| 37789 | const auto V0 = ReadArg<uint32_t>(S, S.PC); |
| 37790 | if (!InitThisFieldActivate<PT_IntAPS>(S, OpPC, V0)) return false; |
| 37791 | } |
| 37792 | #if USE_TAILCALLS |
| 37793 | MUSTTAIL return InterpNext(S); |
| 37794 | #else |
| 37795 | return true; |
| 37796 | #endif |
| 37797 | } |
| 37798 | PRESERVE_NONE |
| 37799 | static bool Interp_InitThisFieldActivateBool(InterpState &S) { |
| 37800 | { |
| 37801 | CodePtr OpPC = S.PC; |
| 37802 | const auto V0 = ReadArg<uint32_t>(S, S.PC); |
| 37803 | if (!InitThisFieldActivate<PT_Bool>(S, OpPC, V0)) return false; |
| 37804 | } |
| 37805 | #if USE_TAILCALLS |
| 37806 | MUSTTAIL return InterpNext(S); |
| 37807 | #else |
| 37808 | return true; |
| 37809 | #endif |
| 37810 | } |
| 37811 | PRESERVE_NONE |
| 37812 | static bool Interp_InitThisFieldActivateFixedPoint(InterpState &S) { |
| 37813 | { |
| 37814 | CodePtr OpPC = S.PC; |
| 37815 | const auto V0 = ReadArg<uint32_t>(S, S.PC); |
| 37816 | if (!InitThisFieldActivate<PT_FixedPoint>(S, OpPC, V0)) return false; |
| 37817 | } |
| 37818 | #if USE_TAILCALLS |
| 37819 | MUSTTAIL return InterpNext(S); |
| 37820 | #else |
| 37821 | return true; |
| 37822 | #endif |
| 37823 | } |
| 37824 | PRESERVE_NONE |
| 37825 | static bool Interp_InitThisFieldActivatePtr(InterpState &S) { |
| 37826 | { |
| 37827 | CodePtr OpPC = S.PC; |
| 37828 | const auto V0 = ReadArg<uint32_t>(S, S.PC); |
| 37829 | if (!InitThisFieldActivate<PT_Ptr>(S, OpPC, V0)) return false; |
| 37830 | } |
| 37831 | #if USE_TAILCALLS |
| 37832 | MUSTTAIL return InterpNext(S); |
| 37833 | #else |
| 37834 | return true; |
| 37835 | #endif |
| 37836 | } |
| 37837 | PRESERVE_NONE |
| 37838 | static bool Interp_InitThisFieldActivateMemberPtr(InterpState &S) { |
| 37839 | { |
| 37840 | CodePtr OpPC = S.PC; |
| 37841 | const auto V0 = ReadArg<uint32_t>(S, S.PC); |
| 37842 | if (!InitThisFieldActivate<PT_MemberPtr>(S, OpPC, V0)) return false; |
| 37843 | } |
| 37844 | #if USE_TAILCALLS |
| 37845 | MUSTTAIL return InterpNext(S); |
| 37846 | #else |
| 37847 | return true; |
| 37848 | #endif |
| 37849 | } |
| 37850 | PRESERVE_NONE |
| 37851 | static bool Interp_InitThisFieldActivateFloat(InterpState &S) { |
| 37852 | { |
| 37853 | CodePtr OpPC = S.PC; |
| 37854 | const auto V0 = ReadArg<uint32_t>(S, S.PC); |
| 37855 | if (!InitThisFieldActivate<PT_Float>(S, OpPC, V0)) return false; |
| 37856 | } |
| 37857 | #if USE_TAILCALLS |
| 37858 | MUSTTAIL return InterpNext(S); |
| 37859 | #else |
| 37860 | return true; |
| 37861 | #endif |
| 37862 | } |
| 37863 | PRESERVE_NONE |
| 37864 | static bool Interp_InitThisFieldActivateReflect(InterpState &S) { |
| 37865 | { |
| 37866 | CodePtr OpPC = S.PC; |
| 37867 | const auto V0 = ReadArg<uint32_t>(S, S.PC); |
| 37868 | if (!InitThisFieldActivate<PT_Reflect>(S, OpPC, V0)) return false; |
| 37869 | } |
| 37870 | #if USE_TAILCALLS |
| 37871 | MUSTTAIL return InterpNext(S); |
| 37872 | #else |
| 37873 | return true; |
| 37874 | #endif |
| 37875 | } |
| 37876 | #endif |
| 37877 | #ifdef GET_DISASM |
| 37878 | case OP_InitThisFieldActivateSint8: |
| 37879 | Text.Op = PrintName("InitThisFieldActivateSint8" ); |
| 37880 | Text.Args.push_back(printArg<uint32_t>(PC)); |
| 37881 | break; |
| 37882 | case OP_InitThisFieldActivateUint8: |
| 37883 | Text.Op = PrintName("InitThisFieldActivateUint8" ); |
| 37884 | Text.Args.push_back(printArg<uint32_t>(PC)); |
| 37885 | break; |
| 37886 | case OP_InitThisFieldActivateSint16: |
| 37887 | Text.Op = PrintName("InitThisFieldActivateSint16" ); |
| 37888 | Text.Args.push_back(printArg<uint32_t>(PC)); |
| 37889 | break; |
| 37890 | case OP_InitThisFieldActivateUint16: |
| 37891 | Text.Op = PrintName("InitThisFieldActivateUint16" ); |
| 37892 | Text.Args.push_back(printArg<uint32_t>(PC)); |
| 37893 | break; |
| 37894 | case OP_InitThisFieldActivateSint32: |
| 37895 | Text.Op = PrintName("InitThisFieldActivateSint32" ); |
| 37896 | Text.Args.push_back(printArg<uint32_t>(PC)); |
| 37897 | break; |
| 37898 | case OP_InitThisFieldActivateUint32: |
| 37899 | Text.Op = PrintName("InitThisFieldActivateUint32" ); |
| 37900 | Text.Args.push_back(printArg<uint32_t>(PC)); |
| 37901 | break; |
| 37902 | case OP_InitThisFieldActivateSint64: |
| 37903 | Text.Op = PrintName("InitThisFieldActivateSint64" ); |
| 37904 | Text.Args.push_back(printArg<uint32_t>(PC)); |
| 37905 | break; |
| 37906 | case OP_InitThisFieldActivateUint64: |
| 37907 | Text.Op = PrintName("InitThisFieldActivateUint64" ); |
| 37908 | Text.Args.push_back(printArg<uint32_t>(PC)); |
| 37909 | break; |
| 37910 | case OP_InitThisFieldActivateIntAP: |
| 37911 | Text.Op = PrintName("InitThisFieldActivateIntAP" ); |
| 37912 | Text.Args.push_back(printArg<uint32_t>(PC)); |
| 37913 | break; |
| 37914 | case OP_InitThisFieldActivateIntAPS: |
| 37915 | Text.Op = PrintName("InitThisFieldActivateIntAPS" ); |
| 37916 | Text.Args.push_back(printArg<uint32_t>(PC)); |
| 37917 | break; |
| 37918 | case OP_InitThisFieldActivateBool: |
| 37919 | Text.Op = PrintName("InitThisFieldActivateBool" ); |
| 37920 | Text.Args.push_back(printArg<uint32_t>(PC)); |
| 37921 | break; |
| 37922 | case OP_InitThisFieldActivateFixedPoint: |
| 37923 | Text.Op = PrintName("InitThisFieldActivateFixedPoint" ); |
| 37924 | Text.Args.push_back(printArg<uint32_t>(PC)); |
| 37925 | break; |
| 37926 | case OP_InitThisFieldActivatePtr: |
| 37927 | Text.Op = PrintName("InitThisFieldActivatePtr" ); |
| 37928 | Text.Args.push_back(printArg<uint32_t>(PC)); |
| 37929 | break; |
| 37930 | case OP_InitThisFieldActivateMemberPtr: |
| 37931 | Text.Op = PrintName("InitThisFieldActivateMemberPtr" ); |
| 37932 | Text.Args.push_back(printArg<uint32_t>(PC)); |
| 37933 | break; |
| 37934 | case OP_InitThisFieldActivateFloat: |
| 37935 | Text.Op = PrintName("InitThisFieldActivateFloat" ); |
| 37936 | Text.Args.push_back(printArg<uint32_t>(PC)); |
| 37937 | break; |
| 37938 | case OP_InitThisFieldActivateReflect: |
| 37939 | Text.Op = PrintName("InitThisFieldActivateReflect" ); |
| 37940 | Text.Args.push_back(printArg<uint32_t>(PC)); |
| 37941 | break; |
| 37942 | #endif |
| 37943 | #if defined(GET_EVAL_PROTO) || defined(GET_LINK_PROTO) |
| 37944 | bool emitInitThisFieldActivateSint8( uint32_t , SourceInfo); |
| 37945 | bool emitInitThisFieldActivateUint8( uint32_t , SourceInfo); |
| 37946 | bool emitInitThisFieldActivateSint16( uint32_t , SourceInfo); |
| 37947 | bool emitInitThisFieldActivateUint16( uint32_t , SourceInfo); |
| 37948 | bool emitInitThisFieldActivateSint32( uint32_t , SourceInfo); |
| 37949 | bool emitInitThisFieldActivateUint32( uint32_t , SourceInfo); |
| 37950 | bool emitInitThisFieldActivateSint64( uint32_t , SourceInfo); |
| 37951 | bool emitInitThisFieldActivateUint64( uint32_t , SourceInfo); |
| 37952 | bool emitInitThisFieldActivateIntAP( uint32_t , SourceInfo); |
| 37953 | bool emitInitThisFieldActivateIntAPS( uint32_t , SourceInfo); |
| 37954 | bool emitInitThisFieldActivateBool( uint32_t , SourceInfo); |
| 37955 | bool emitInitThisFieldActivateFixedPoint( uint32_t , SourceInfo); |
| 37956 | bool emitInitThisFieldActivatePtr( uint32_t , SourceInfo); |
| 37957 | bool emitInitThisFieldActivateMemberPtr( uint32_t , SourceInfo); |
| 37958 | bool emitInitThisFieldActivateFloat( uint32_t , SourceInfo); |
| 37959 | bool emitInitThisFieldActivateReflect( uint32_t , SourceInfo); |
| 37960 | #endif |
| 37961 | #if defined(GET_EVAL_PROTO) || defined(GET_LINK_PROTO) |
| 37962 | [[nodiscard]] bool emitInitThisFieldActivate(PrimType, uint32_t, SourceInfo I); |
| 37963 | #endif |
| 37964 | #if defined(GET_EVAL_IMPL) || defined(GET_LINK_IMPL) |
| 37965 | bool |
| 37966 | #if defined(GET_EVAL_IMPL) |
| 37967 | EvalEmitter |
| 37968 | #else |
| 37969 | ByteCodeEmitter |
| 37970 | #endif |
| 37971 | ::emitInitThisFieldActivate(PrimType T0, uint32_t A0, SourceInfo I) { |
| 37972 | switch (T0) { |
| 37973 | case PT_Sint8: |
| 37974 | return emitInitThisFieldActivateSint8(A0, I); |
| 37975 | case PT_Uint8: |
| 37976 | return emitInitThisFieldActivateUint8(A0, I); |
| 37977 | case PT_Sint16: |
| 37978 | return emitInitThisFieldActivateSint16(A0, I); |
| 37979 | case PT_Uint16: |
| 37980 | return emitInitThisFieldActivateUint16(A0, I); |
| 37981 | case PT_Sint32: |
| 37982 | return emitInitThisFieldActivateSint32(A0, I); |
| 37983 | case PT_Uint32: |
| 37984 | return emitInitThisFieldActivateUint32(A0, I); |
| 37985 | case PT_Sint64: |
| 37986 | return emitInitThisFieldActivateSint64(A0, I); |
| 37987 | case PT_Uint64: |
| 37988 | return emitInitThisFieldActivateUint64(A0, I); |
| 37989 | case PT_IntAP: |
| 37990 | return emitInitThisFieldActivateIntAP(A0, I); |
| 37991 | case PT_IntAPS: |
| 37992 | return emitInitThisFieldActivateIntAPS(A0, I); |
| 37993 | case PT_Bool: |
| 37994 | return emitInitThisFieldActivateBool(A0, I); |
| 37995 | case PT_FixedPoint: |
| 37996 | return emitInitThisFieldActivateFixedPoint(A0, I); |
| 37997 | case PT_Ptr: |
| 37998 | return emitInitThisFieldActivatePtr(A0, I); |
| 37999 | case PT_MemberPtr: |
| 38000 | return emitInitThisFieldActivateMemberPtr(A0, I); |
| 38001 | case PT_Float: |
| 38002 | return emitInitThisFieldActivateFloat(A0, I); |
| 38003 | case PT_Reflect: |
| 38004 | return emitInitThisFieldActivateReflect(A0, I); |
| 38005 | } |
| 38006 | llvm_unreachable("invalid enum value" ); |
| 38007 | } |
| 38008 | #endif |
| 38009 | #ifdef GET_LINK_IMPL |
| 38010 | bool ByteCodeEmitter::emitInitThisFieldActivateSint8( uint32_t A0, SourceInfo L) { |
| 38011 | return emitOp<uint32_t>(OP_InitThisFieldActivateSint8, A0, L); |
| 38012 | } |
| 38013 | bool ByteCodeEmitter::emitInitThisFieldActivateUint8( uint32_t A0, SourceInfo L) { |
| 38014 | return emitOp<uint32_t>(OP_InitThisFieldActivateUint8, A0, L); |
| 38015 | } |
| 38016 | bool ByteCodeEmitter::emitInitThisFieldActivateSint16( uint32_t A0, SourceInfo L) { |
| 38017 | return emitOp<uint32_t>(OP_InitThisFieldActivateSint16, A0, L); |
| 38018 | } |
| 38019 | bool ByteCodeEmitter::emitInitThisFieldActivateUint16( uint32_t A0, SourceInfo L) { |
| 38020 | return emitOp<uint32_t>(OP_InitThisFieldActivateUint16, A0, L); |
| 38021 | } |
| 38022 | bool ByteCodeEmitter::emitInitThisFieldActivateSint32( uint32_t A0, SourceInfo L) { |
| 38023 | return emitOp<uint32_t>(OP_InitThisFieldActivateSint32, A0, L); |
| 38024 | } |
| 38025 | bool ByteCodeEmitter::emitInitThisFieldActivateUint32( uint32_t A0, SourceInfo L) { |
| 38026 | return emitOp<uint32_t>(OP_InitThisFieldActivateUint32, A0, L); |
| 38027 | } |
| 38028 | bool ByteCodeEmitter::emitInitThisFieldActivateSint64( uint32_t A0, SourceInfo L) { |
| 38029 | return emitOp<uint32_t>(OP_InitThisFieldActivateSint64, A0, L); |
| 38030 | } |
| 38031 | bool ByteCodeEmitter::emitInitThisFieldActivateUint64( uint32_t A0, SourceInfo L) { |
| 38032 | return emitOp<uint32_t>(OP_InitThisFieldActivateUint64, A0, L); |
| 38033 | } |
| 38034 | bool ByteCodeEmitter::emitInitThisFieldActivateIntAP( uint32_t A0, SourceInfo L) { |
| 38035 | return emitOp<uint32_t>(OP_InitThisFieldActivateIntAP, A0, L); |
| 38036 | } |
| 38037 | bool ByteCodeEmitter::emitInitThisFieldActivateIntAPS( uint32_t A0, SourceInfo L) { |
| 38038 | return emitOp<uint32_t>(OP_InitThisFieldActivateIntAPS, A0, L); |
| 38039 | } |
| 38040 | bool ByteCodeEmitter::emitInitThisFieldActivateBool( uint32_t A0, SourceInfo L) { |
| 38041 | return emitOp<uint32_t>(OP_InitThisFieldActivateBool, A0, L); |
| 38042 | } |
| 38043 | bool ByteCodeEmitter::emitInitThisFieldActivateFixedPoint( uint32_t A0, SourceInfo L) { |
| 38044 | return emitOp<uint32_t>(OP_InitThisFieldActivateFixedPoint, A0, L); |
| 38045 | } |
| 38046 | bool ByteCodeEmitter::emitInitThisFieldActivatePtr( uint32_t A0, SourceInfo L) { |
| 38047 | return emitOp<uint32_t>(OP_InitThisFieldActivatePtr, A0, L); |
| 38048 | } |
| 38049 | bool ByteCodeEmitter::emitInitThisFieldActivateMemberPtr( uint32_t A0, SourceInfo L) { |
| 38050 | return emitOp<uint32_t>(OP_InitThisFieldActivateMemberPtr, A0, L); |
| 38051 | } |
| 38052 | bool ByteCodeEmitter::emitInitThisFieldActivateFloat( uint32_t A0, SourceInfo L) { |
| 38053 | return emitOp<uint32_t>(OP_InitThisFieldActivateFloat, A0, L); |
| 38054 | } |
| 38055 | bool ByteCodeEmitter::emitInitThisFieldActivateReflect( uint32_t A0, SourceInfo L) { |
| 38056 | return emitOp<uint32_t>(OP_InitThisFieldActivateReflect, A0, L); |
| 38057 | } |
| 38058 | #endif |
| 38059 | #ifdef GET_EVAL_IMPL |
| 38060 | bool EvalEmitter::emitInitThisFieldActivateSint8( uint32_t A0, SourceInfo L) { |
| 38061 | if (!isActive()) return true; |
| 38062 | CurrentSource = L; |
| 38063 | return InitThisFieldActivate<PT_Sint8>(S, CodePtr(), A0); |
| 38064 | } |
| 38065 | bool EvalEmitter::emitInitThisFieldActivateUint8( uint32_t A0, SourceInfo L) { |
| 38066 | if (!isActive()) return true; |
| 38067 | CurrentSource = L; |
| 38068 | return InitThisFieldActivate<PT_Uint8>(S, CodePtr(), A0); |
| 38069 | } |
| 38070 | bool EvalEmitter::emitInitThisFieldActivateSint16( uint32_t A0, SourceInfo L) { |
| 38071 | if (!isActive()) return true; |
| 38072 | CurrentSource = L; |
| 38073 | return InitThisFieldActivate<PT_Sint16>(S, CodePtr(), A0); |
| 38074 | } |
| 38075 | bool EvalEmitter::emitInitThisFieldActivateUint16( uint32_t A0, SourceInfo L) { |
| 38076 | if (!isActive()) return true; |
| 38077 | CurrentSource = L; |
| 38078 | return InitThisFieldActivate<PT_Uint16>(S, CodePtr(), A0); |
| 38079 | } |
| 38080 | bool EvalEmitter::emitInitThisFieldActivateSint32( uint32_t A0, SourceInfo L) { |
| 38081 | if (!isActive()) return true; |
| 38082 | CurrentSource = L; |
| 38083 | return InitThisFieldActivate<PT_Sint32>(S, CodePtr(), A0); |
| 38084 | } |
| 38085 | bool EvalEmitter::emitInitThisFieldActivateUint32( uint32_t A0, SourceInfo L) { |
| 38086 | if (!isActive()) return true; |
| 38087 | CurrentSource = L; |
| 38088 | return InitThisFieldActivate<PT_Uint32>(S, CodePtr(), A0); |
| 38089 | } |
| 38090 | bool EvalEmitter::emitInitThisFieldActivateSint64( uint32_t A0, SourceInfo L) { |
| 38091 | if (!isActive()) return true; |
| 38092 | CurrentSource = L; |
| 38093 | return InitThisFieldActivate<PT_Sint64>(S, CodePtr(), A0); |
| 38094 | } |
| 38095 | bool EvalEmitter::emitInitThisFieldActivateUint64( uint32_t A0, SourceInfo L) { |
| 38096 | if (!isActive()) return true; |
| 38097 | CurrentSource = L; |
| 38098 | return InitThisFieldActivate<PT_Uint64>(S, CodePtr(), A0); |
| 38099 | } |
| 38100 | bool EvalEmitter::emitInitThisFieldActivateIntAP( uint32_t A0, SourceInfo L) { |
| 38101 | if (!isActive()) return true; |
| 38102 | CurrentSource = L; |
| 38103 | return InitThisFieldActivate<PT_IntAP>(S, CodePtr(), A0); |
| 38104 | } |
| 38105 | bool EvalEmitter::emitInitThisFieldActivateIntAPS( uint32_t A0, SourceInfo L) { |
| 38106 | if (!isActive()) return true; |
| 38107 | CurrentSource = L; |
| 38108 | return InitThisFieldActivate<PT_IntAPS>(S, CodePtr(), A0); |
| 38109 | } |
| 38110 | bool EvalEmitter::emitInitThisFieldActivateBool( uint32_t A0, SourceInfo L) { |
| 38111 | if (!isActive()) return true; |
| 38112 | CurrentSource = L; |
| 38113 | return InitThisFieldActivate<PT_Bool>(S, CodePtr(), A0); |
| 38114 | } |
| 38115 | bool EvalEmitter::emitInitThisFieldActivateFixedPoint( uint32_t A0, SourceInfo L) { |
| 38116 | if (!isActive()) return true; |
| 38117 | CurrentSource = L; |
| 38118 | return InitThisFieldActivate<PT_FixedPoint>(S, CodePtr(), A0); |
| 38119 | } |
| 38120 | bool EvalEmitter::emitInitThisFieldActivatePtr( uint32_t A0, SourceInfo L) { |
| 38121 | if (!isActive()) return true; |
| 38122 | CurrentSource = L; |
| 38123 | return InitThisFieldActivate<PT_Ptr>(S, CodePtr(), A0); |
| 38124 | } |
| 38125 | bool EvalEmitter::emitInitThisFieldActivateMemberPtr( uint32_t A0, SourceInfo L) { |
| 38126 | if (!isActive()) return true; |
| 38127 | CurrentSource = L; |
| 38128 | return InitThisFieldActivate<PT_MemberPtr>(S, CodePtr(), A0); |
| 38129 | } |
| 38130 | bool EvalEmitter::emitInitThisFieldActivateFloat( uint32_t A0, SourceInfo L) { |
| 38131 | if (!isActive()) return true; |
| 38132 | CurrentSource = L; |
| 38133 | return InitThisFieldActivate<PT_Float>(S, CodePtr(), A0); |
| 38134 | } |
| 38135 | bool EvalEmitter::emitInitThisFieldActivateReflect( uint32_t A0, SourceInfo L) { |
| 38136 | if (!isActive()) return true; |
| 38137 | CurrentSource = L; |
| 38138 | return InitThisFieldActivate<PT_Reflect>(S, CodePtr(), A0); |
| 38139 | } |
| 38140 | #endif |
| 38141 | #ifdef GET_OPCODE_NAMES |
| 38142 | OP_Inv, |
| 38143 | #endif |
| 38144 | #ifdef GET_INTERPFN_LIST |
| 38145 | &Interp_Inv, |
| 38146 | #endif |
| 38147 | #ifdef GET_INTERPFN_DISPATCHERS |
| 38148 | PRESERVE_NONE |
| 38149 | static bool Interp_Inv(InterpState &S) { |
| 38150 | Inv(S); |
| 38151 | #if USE_TAILCALLS |
| 38152 | MUSTTAIL return InterpNext(S); |
| 38153 | #else |
| 38154 | return true; |
| 38155 | #endif |
| 38156 | } |
| 38157 | #endif |
| 38158 | #ifdef GET_DISASM |
| 38159 | case OP_Inv: |
| 38160 | Text.Op = PrintName("Inv" ); |
| 38161 | break; |
| 38162 | #endif |
| 38163 | #if defined(GET_EVAL_PROTO) || defined(GET_LINK_PROTO) |
| 38164 | bool emitInv(SourceInfo); |
| 38165 | #endif |
| 38166 | #ifdef GET_LINK_IMPL |
| 38167 | bool ByteCodeEmitter::emitInv(SourceInfo L) { |
| 38168 | return emitOp<>(OP_Inv, L); |
| 38169 | } |
| 38170 | #endif |
| 38171 | #ifdef GET_EVAL_IMPL |
| 38172 | bool EvalEmitter::emitInv(SourceInfo L) { |
| 38173 | if (!isActive()) return true; |
| 38174 | CurrentSource = L; |
| 38175 | return Inv(S); |
| 38176 | } |
| 38177 | #endif |
| 38178 | #ifdef GET_OPCODE_NAMES |
| 38179 | OP_Invalid, |
| 38180 | #endif |
| 38181 | #ifdef GET_INTERPFN_LIST |
| 38182 | &Interp_Invalid, |
| 38183 | #endif |
| 38184 | #ifdef GET_INTERPFN_DISPATCHERS |
| 38185 | PRESERVE_NONE |
| 38186 | static bool Interp_Invalid(InterpState &S) { |
| 38187 | if (!Invalid(S, S.PC)) return false; |
| 38188 | #if USE_TAILCALLS |
| 38189 | MUSTTAIL return InterpNext(S); |
| 38190 | #else |
| 38191 | return true; |
| 38192 | #endif |
| 38193 | } |
| 38194 | #endif |
| 38195 | #ifdef GET_DISASM |
| 38196 | case OP_Invalid: |
| 38197 | Text.Op = PrintName("Invalid" ); |
| 38198 | break; |
| 38199 | #endif |
| 38200 | #if defined(GET_EVAL_PROTO) || defined(GET_LINK_PROTO) |
| 38201 | bool emitInvalid(SourceInfo); |
| 38202 | #endif |
| 38203 | #ifdef GET_LINK_IMPL |
| 38204 | bool ByteCodeEmitter::emitInvalid(SourceInfo L) { |
| 38205 | return emitOp<>(OP_Invalid, L); |
| 38206 | } |
| 38207 | #endif |
| 38208 | #ifdef GET_EVAL_IMPL |
| 38209 | bool EvalEmitter::emitInvalid(SourceInfo L) { |
| 38210 | if (!isActive()) return true; |
| 38211 | CurrentSource = L; |
| 38212 | return Invalid(S, CodePtr()); |
| 38213 | } |
| 38214 | #endif |
| 38215 | #ifdef GET_OPCODE_NAMES |
| 38216 | OP_InvalidCast, |
| 38217 | #endif |
| 38218 | #ifdef GET_INTERPFN_LIST |
| 38219 | &Interp_InvalidCast, |
| 38220 | #endif |
| 38221 | #ifdef GET_INTERPFN_DISPATCHERS |
| 38222 | PRESERVE_NONE |
| 38223 | static bool Interp_InvalidCast(InterpState &S) { |
| 38224 | { |
| 38225 | CodePtr OpPC = S.PC; |
| 38226 | const auto V0 = ReadArg<interp::CastKind>(S, S.PC); |
| 38227 | const auto V1 = ReadArg<bool>(S, S.PC); |
| 38228 | if (!InvalidCast(S, OpPC, V0, V1)) return false; |
| 38229 | } |
| 38230 | #if USE_TAILCALLS |
| 38231 | MUSTTAIL return InterpNext(S); |
| 38232 | #else |
| 38233 | return true; |
| 38234 | #endif |
| 38235 | } |
| 38236 | #endif |
| 38237 | #ifdef GET_DISASM |
| 38238 | case OP_InvalidCast: |
| 38239 | Text.Op = PrintName("InvalidCast" ); |
| 38240 | Text.Args.push_back(printArg<interp::CastKind>(PC)); |
| 38241 | Text.Args.push_back(printArg<bool>(PC)); |
| 38242 | break; |
| 38243 | #endif |
| 38244 | #if defined(GET_EVAL_PROTO) || defined(GET_LINK_PROTO) |
| 38245 | bool emitInvalidCast( interp::CastKind , bool , SourceInfo); |
| 38246 | #endif |
| 38247 | #ifdef GET_LINK_IMPL |
| 38248 | bool ByteCodeEmitter::emitInvalidCast( interp::CastKind A0, bool A1, SourceInfo L) { |
| 38249 | return emitOp<interp::CastKind, bool>(OP_InvalidCast, A0, A1, L); |
| 38250 | } |
| 38251 | #endif |
| 38252 | #ifdef GET_EVAL_IMPL |
| 38253 | bool EvalEmitter::emitInvalidCast( interp::CastKind A0, bool A1, SourceInfo L) { |
| 38254 | if (!isActive()) return true; |
| 38255 | CurrentSource = L; |
| 38256 | return InvalidCast(S, CodePtr(), A0, A1); |
| 38257 | } |
| 38258 | #endif |
| 38259 | #ifdef GET_OPCODE_NAMES |
| 38260 | OP_InvalidDeclRef, |
| 38261 | #endif |
| 38262 | #ifdef GET_INTERPFN_LIST |
| 38263 | &Interp_InvalidDeclRef, |
| 38264 | #endif |
| 38265 | #ifdef GET_INTERPFN_DISPATCHERS |
| 38266 | PRESERVE_NONE |
| 38267 | static bool Interp_InvalidDeclRef(InterpState &S) { |
| 38268 | { |
| 38269 | CodePtr OpPC = S.PC; |
| 38270 | const auto V0 = ReadArg<const DeclRefExpr *>(S, S.PC); |
| 38271 | const auto V1 = ReadArg<bool>(S, S.PC); |
| 38272 | if (!InvalidDeclRef(S, OpPC, V0, V1)) return false; |
| 38273 | } |
| 38274 | #if USE_TAILCALLS |
| 38275 | MUSTTAIL return InterpNext(S); |
| 38276 | #else |
| 38277 | return true; |
| 38278 | #endif |
| 38279 | } |
| 38280 | #endif |
| 38281 | #ifdef GET_DISASM |
| 38282 | case OP_InvalidDeclRef: |
| 38283 | Text.Op = PrintName("InvalidDeclRef" ); |
| 38284 | Text.Args.push_back(printArg<const DeclRefExpr *>(PC)); |
| 38285 | Text.Args.push_back(printArg<bool>(PC)); |
| 38286 | break; |
| 38287 | #endif |
| 38288 | #if defined(GET_EVAL_PROTO) || defined(GET_LINK_PROTO) |
| 38289 | bool emitInvalidDeclRef( const DeclRefExpr * , bool , SourceInfo); |
| 38290 | #endif |
| 38291 | #ifdef GET_LINK_IMPL |
| 38292 | bool ByteCodeEmitter::emitInvalidDeclRef( const DeclRefExpr * A0, bool A1, SourceInfo L) { |
| 38293 | return emitOp<const DeclRefExpr *, bool>(OP_InvalidDeclRef, A0, A1, L); |
| 38294 | } |
| 38295 | #endif |
| 38296 | #ifdef GET_EVAL_IMPL |
| 38297 | bool EvalEmitter::emitInvalidDeclRef( const DeclRefExpr * A0, bool A1, SourceInfo L) { |
| 38298 | if (!isActive()) return true; |
| 38299 | CurrentSource = L; |
| 38300 | return InvalidDeclRef(S, CodePtr(), A0, A1); |
| 38301 | } |
| 38302 | #endif |
| 38303 | #ifdef GET_OPCODE_NAMES |
| 38304 | OP_InvalidNewDeleteExpr, |
| 38305 | #endif |
| 38306 | #ifdef GET_INTERPFN_LIST |
| 38307 | &Interp_InvalidNewDeleteExpr, |
| 38308 | #endif |
| 38309 | #ifdef GET_INTERPFN_DISPATCHERS |
| 38310 | PRESERVE_NONE |
| 38311 | static bool Interp_InvalidNewDeleteExpr(InterpState &S) { |
| 38312 | { |
| 38313 | CodePtr OpPC = S.PC; |
| 38314 | const auto V0 = ReadArg<const Expr *>(S, S.PC); |
| 38315 | if (!InvalidNewDeleteExpr(S, OpPC, V0)) return false; |
| 38316 | } |
| 38317 | #if USE_TAILCALLS |
| 38318 | MUSTTAIL return InterpNext(S); |
| 38319 | #else |
| 38320 | return true; |
| 38321 | #endif |
| 38322 | } |
| 38323 | #endif |
| 38324 | #ifdef GET_DISASM |
| 38325 | case OP_InvalidNewDeleteExpr: |
| 38326 | Text.Op = PrintName("InvalidNewDeleteExpr" ); |
| 38327 | Text.Args.push_back(printArg<const Expr *>(PC)); |
| 38328 | break; |
| 38329 | #endif |
| 38330 | #if defined(GET_EVAL_PROTO) || defined(GET_LINK_PROTO) |
| 38331 | bool emitInvalidNewDeleteExpr( const Expr * , SourceInfo); |
| 38332 | #endif |
| 38333 | #ifdef GET_LINK_IMPL |
| 38334 | bool ByteCodeEmitter::emitInvalidNewDeleteExpr( const Expr * A0, SourceInfo L) { |
| 38335 | return emitOp<const Expr *>(OP_InvalidNewDeleteExpr, A0, L); |
| 38336 | } |
| 38337 | #endif |
| 38338 | #ifdef GET_EVAL_IMPL |
| 38339 | bool EvalEmitter::emitInvalidNewDeleteExpr( const Expr * A0, SourceInfo L) { |
| 38340 | if (!isActive()) return true; |
| 38341 | CurrentSource = L; |
| 38342 | return InvalidNewDeleteExpr(S, CodePtr(), A0); |
| 38343 | } |
| 38344 | #endif |
| 38345 | #ifdef GET_OPCODE_NAMES |
| 38346 | OP_InvalidShuffleVectorIndex, |
| 38347 | #endif |
| 38348 | #ifdef GET_INTERPFN_LIST |
| 38349 | &Interp_InvalidShuffleVectorIndex, |
| 38350 | #endif |
| 38351 | #ifdef GET_INTERPFN_DISPATCHERS |
| 38352 | PRESERVE_NONE |
| 38353 | static bool Interp_InvalidShuffleVectorIndex(InterpState &S) { |
| 38354 | { |
| 38355 | CodePtr OpPC = S.PC; |
| 38356 | const auto V0 = ReadArg<uint32_t>(S, S.PC); |
| 38357 | if (!InvalidShuffleVectorIndex(S, OpPC, V0)) return false; |
| 38358 | } |
| 38359 | #if USE_TAILCALLS |
| 38360 | MUSTTAIL return InterpNext(S); |
| 38361 | #else |
| 38362 | return true; |
| 38363 | #endif |
| 38364 | } |
| 38365 | #endif |
| 38366 | #ifdef GET_DISASM |
| 38367 | case OP_InvalidShuffleVectorIndex: |
| 38368 | Text.Op = PrintName("InvalidShuffleVectorIndex" ); |
| 38369 | Text.Args.push_back(printArg<uint32_t>(PC)); |
| 38370 | break; |
| 38371 | #endif |
| 38372 | #if defined(GET_EVAL_PROTO) || defined(GET_LINK_PROTO) |
| 38373 | bool emitInvalidShuffleVectorIndex( uint32_t , SourceInfo); |
| 38374 | #endif |
| 38375 | #ifdef GET_LINK_IMPL |
| 38376 | bool ByteCodeEmitter::emitInvalidShuffleVectorIndex( uint32_t A0, SourceInfo L) { |
| 38377 | return emitOp<uint32_t>(OP_InvalidShuffleVectorIndex, A0, L); |
| 38378 | } |
| 38379 | #endif |
| 38380 | #ifdef GET_EVAL_IMPL |
| 38381 | bool EvalEmitter::emitInvalidShuffleVectorIndex( uint32_t A0, SourceInfo L) { |
| 38382 | if (!isActive()) return true; |
| 38383 | CurrentSource = L; |
| 38384 | return InvalidShuffleVectorIndex(S, CodePtr(), A0); |
| 38385 | } |
| 38386 | #endif |
| 38387 | #ifdef GET_OPCODE_NAMES |
| 38388 | OP_InvalidStore, |
| 38389 | #endif |
| 38390 | #ifdef GET_INTERPFN_LIST |
| 38391 | &Interp_InvalidStore, |
| 38392 | #endif |
| 38393 | #ifdef GET_INTERPFN_DISPATCHERS |
| 38394 | PRESERVE_NONE |
| 38395 | static bool Interp_InvalidStore(InterpState &S) { |
| 38396 | { |
| 38397 | CodePtr OpPC = S.PC; |
| 38398 | const auto V0 = ReadArg<const Type *>(S, S.PC); |
| 38399 | if (!InvalidStore(S, OpPC, V0)) return false; |
| 38400 | } |
| 38401 | #if USE_TAILCALLS |
| 38402 | MUSTTAIL return InterpNext(S); |
| 38403 | #else |
| 38404 | return true; |
| 38405 | #endif |
| 38406 | } |
| 38407 | #endif |
| 38408 | #ifdef GET_DISASM |
| 38409 | case OP_InvalidStore: |
| 38410 | Text.Op = PrintName("InvalidStore" ); |
| 38411 | Text.Args.push_back(printArg<const Type *>(PC)); |
| 38412 | break; |
| 38413 | #endif |
| 38414 | #if defined(GET_EVAL_PROTO) || defined(GET_LINK_PROTO) |
| 38415 | bool emitInvalidStore( const Type * , SourceInfo); |
| 38416 | #endif |
| 38417 | #ifdef GET_LINK_IMPL |
| 38418 | bool ByteCodeEmitter::emitInvalidStore( const Type * A0, SourceInfo L) { |
| 38419 | return emitOp<const Type *>(OP_InvalidStore, A0, L); |
| 38420 | } |
| 38421 | #endif |
| 38422 | #ifdef GET_EVAL_IMPL |
| 38423 | bool EvalEmitter::emitInvalidStore( const Type * A0, SourceInfo L) { |
| 38424 | if (!isActive()) return true; |
| 38425 | CurrentSource = L; |
| 38426 | return InvalidStore(S, CodePtr(), A0); |
| 38427 | } |
| 38428 | #endif |
| 38429 | #ifdef GET_OPCODE_NAMES |
| 38430 | OP_IsBaseClass, |
| 38431 | #endif |
| 38432 | #ifdef GET_INTERPFN_LIST |
| 38433 | &Interp_IsBaseClass, |
| 38434 | #endif |
| 38435 | #ifdef GET_INTERPFN_DISPATCHERS |
| 38436 | PRESERVE_NONE |
| 38437 | static bool Interp_IsBaseClass(InterpState &S) { |
| 38438 | IsBaseClass(S); |
| 38439 | #if USE_TAILCALLS |
| 38440 | MUSTTAIL return InterpNext(S); |
| 38441 | #else |
| 38442 | return true; |
| 38443 | #endif |
| 38444 | } |
| 38445 | #endif |
| 38446 | #ifdef GET_DISASM |
| 38447 | case OP_IsBaseClass: |
| 38448 | Text.Op = PrintName("IsBaseClass" ); |
| 38449 | break; |
| 38450 | #endif |
| 38451 | #if defined(GET_EVAL_PROTO) || defined(GET_LINK_PROTO) |
| 38452 | bool emitIsBaseClass(SourceInfo); |
| 38453 | #endif |
| 38454 | #ifdef GET_LINK_IMPL |
| 38455 | bool ByteCodeEmitter::emitIsBaseClass(SourceInfo L) { |
| 38456 | return emitOp<>(OP_IsBaseClass, L); |
| 38457 | } |
| 38458 | #endif |
| 38459 | #ifdef GET_EVAL_IMPL |
| 38460 | bool EvalEmitter::emitIsBaseClass(SourceInfo L) { |
| 38461 | if (!isActive()) return true; |
| 38462 | CurrentSource = L; |
| 38463 | return IsBaseClass(S); |
| 38464 | } |
| 38465 | #endif |
| 38466 | #ifdef GET_OPCODE_NAMES |
| 38467 | OP_IsConstantContext, |
| 38468 | #endif |
| 38469 | #ifdef GET_INTERPFN_LIST |
| 38470 | &Interp_IsConstantContext, |
| 38471 | #endif |
| 38472 | #ifdef GET_INTERPFN_DISPATCHERS |
| 38473 | PRESERVE_NONE |
| 38474 | static bool Interp_IsConstantContext(InterpState &S) { |
| 38475 | IsConstantContext(S); |
| 38476 | #if USE_TAILCALLS |
| 38477 | MUSTTAIL return InterpNext(S); |
| 38478 | #else |
| 38479 | return true; |
| 38480 | #endif |
| 38481 | } |
| 38482 | #endif |
| 38483 | #ifdef GET_DISASM |
| 38484 | case OP_IsConstantContext: |
| 38485 | Text.Op = PrintName("IsConstantContext" ); |
| 38486 | break; |
| 38487 | #endif |
| 38488 | #if defined(GET_EVAL_PROTO) || defined(GET_LINK_PROTO) |
| 38489 | bool emitIsConstantContext(SourceInfo); |
| 38490 | #endif |
| 38491 | #ifdef GET_LINK_IMPL |
| 38492 | bool ByteCodeEmitter::emitIsConstantContext(SourceInfo L) { |
| 38493 | return emitOp<>(OP_IsConstantContext, L); |
| 38494 | } |
| 38495 | #endif |
| 38496 | #ifdef GET_EVAL_IMPL |
| 38497 | bool EvalEmitter::emitIsConstantContext(SourceInfo L) { |
| 38498 | if (!isActive()) return true; |
| 38499 | CurrentSource = L; |
| 38500 | return IsConstantContext(S); |
| 38501 | } |
| 38502 | #endif |
| 38503 | #ifdef GET_OPCODE_NAMES |
| 38504 | OP_IsNonNullPtr, |
| 38505 | OP_IsNonNullMemberPtr, |
| 38506 | #endif |
| 38507 | #ifdef GET_INTERPFN_LIST |
| 38508 | &Interp_IsNonNullPtr, |
| 38509 | &Interp_IsNonNullMemberPtr, |
| 38510 | #endif |
| 38511 | #ifdef GET_INTERPFN_DISPATCHERS |
| 38512 | PRESERVE_NONE |
| 38513 | static bool Interp_IsNonNullPtr(InterpState &S) { |
| 38514 | if (!IsNonNull<PT_Ptr>(S)) return false; |
| 38515 | #if USE_TAILCALLS |
| 38516 | MUSTTAIL return InterpNext(S); |
| 38517 | #else |
| 38518 | return true; |
| 38519 | #endif |
| 38520 | } |
| 38521 | PRESERVE_NONE |
| 38522 | static bool Interp_IsNonNullMemberPtr(InterpState &S) { |
| 38523 | if (!IsNonNull<PT_MemberPtr>(S)) return false; |
| 38524 | #if USE_TAILCALLS |
| 38525 | MUSTTAIL return InterpNext(S); |
| 38526 | #else |
| 38527 | return true; |
| 38528 | #endif |
| 38529 | } |
| 38530 | #endif |
| 38531 | #ifdef GET_DISASM |
| 38532 | case OP_IsNonNullPtr: |
| 38533 | Text.Op = PrintName("IsNonNullPtr" ); |
| 38534 | break; |
| 38535 | case OP_IsNonNullMemberPtr: |
| 38536 | Text.Op = PrintName("IsNonNullMemberPtr" ); |
| 38537 | break; |
| 38538 | #endif |
| 38539 | #if defined(GET_EVAL_PROTO) || defined(GET_LINK_PROTO) |
| 38540 | bool emitIsNonNullPtr(SourceInfo); |
| 38541 | bool emitIsNonNullMemberPtr(SourceInfo); |
| 38542 | #endif |
| 38543 | #if defined(GET_EVAL_PROTO) || defined(GET_LINK_PROTO) |
| 38544 | [[nodiscard]] bool emitIsNonNull(PrimType, SourceInfo I); |
| 38545 | #endif |
| 38546 | #if defined(GET_EVAL_IMPL) || defined(GET_LINK_IMPL) |
| 38547 | bool |
| 38548 | #if defined(GET_EVAL_IMPL) |
| 38549 | EvalEmitter |
| 38550 | #else |
| 38551 | ByteCodeEmitter |
| 38552 | #endif |
| 38553 | ::emitIsNonNull(PrimType T0, SourceInfo I) { |
| 38554 | switch (T0) { |
| 38555 | case PT_Ptr: |
| 38556 | return emitIsNonNullPtr(I); |
| 38557 | case PT_MemberPtr: |
| 38558 | return emitIsNonNullMemberPtr(I); |
| 38559 | default: llvm_unreachable("invalid type: emitIsNonNull" ); |
| 38560 | } |
| 38561 | llvm_unreachable("invalid enum value" ); |
| 38562 | } |
| 38563 | #endif |
| 38564 | #ifdef GET_LINK_IMPL |
| 38565 | bool ByteCodeEmitter::emitIsNonNullPtr(SourceInfo L) { |
| 38566 | return emitOp<>(OP_IsNonNullPtr, L); |
| 38567 | } |
| 38568 | bool ByteCodeEmitter::emitIsNonNullMemberPtr(SourceInfo L) { |
| 38569 | return emitOp<>(OP_IsNonNullMemberPtr, L); |
| 38570 | } |
| 38571 | #endif |
| 38572 | #ifdef GET_EVAL_IMPL |
| 38573 | bool EvalEmitter::emitIsNonNullPtr(SourceInfo L) { |
| 38574 | if (!isActive()) return true; |
| 38575 | CurrentSource = L; |
| 38576 | return IsNonNull<PT_Ptr>(S); |
| 38577 | } |
| 38578 | bool EvalEmitter::emitIsNonNullMemberPtr(SourceInfo L) { |
| 38579 | if (!isActive()) return true; |
| 38580 | CurrentSource = L; |
| 38581 | return IsNonNull<PT_MemberPtr>(S); |
| 38582 | } |
| 38583 | #endif |
| 38584 | #ifdef GET_OPCODE_NAMES |
| 38585 | OP_Jf, |
| 38586 | #endif |
| 38587 | #ifdef GET_INTERPFN_LIST |
| 38588 | &Interp_Jf, |
| 38589 | #endif |
| 38590 | #ifdef GET_INTERPFN_DISPATCHERS |
| 38591 | PRESERVE_NONE |
| 38592 | static bool Interp_Jf(InterpState &S) { |
| 38593 | { |
| 38594 | CodePtr OpPC = S.PC; |
| 38595 | const auto V0 = ReadArg<int32_t>(S, S.PC); |
| 38596 | if (!Jf(S, OpPC, V0)) return false; |
| 38597 | } |
| 38598 | #if USE_TAILCALLS |
| 38599 | MUSTTAIL return InterpNext(S); |
| 38600 | #else |
| 38601 | return true; |
| 38602 | #endif |
| 38603 | } |
| 38604 | #endif |
| 38605 | #ifdef GET_DISASM |
| 38606 | case OP_Jf: |
| 38607 | Text.Op = PrintName("Jf" ); |
| 38608 | Text.Args.push_back(printArg<int32_t>(PC)); |
| 38609 | break; |
| 38610 | #endif |
| 38611 | #if defined(GET_EVAL_PROTO) || defined(GET_LINK_PROTO) |
| 38612 | bool emitJf( int32_t , SourceInfo); |
| 38613 | #endif |
| 38614 | #ifdef GET_LINK_IMPL |
| 38615 | bool ByteCodeEmitter::emitJf( int32_t A0, SourceInfo L) { |
| 38616 | return emitOp<int32_t>(OP_Jf, A0, L); |
| 38617 | } |
| 38618 | #endif |
| 38619 | #ifdef GET_OPCODE_NAMES |
| 38620 | OP_Jmp, |
| 38621 | #endif |
| 38622 | #ifdef GET_INTERPFN_LIST |
| 38623 | &Interp_Jmp, |
| 38624 | #endif |
| 38625 | #ifdef GET_INTERPFN_DISPATCHERS |
| 38626 | PRESERVE_NONE |
| 38627 | static bool Interp_Jmp(InterpState &S) { |
| 38628 | { |
| 38629 | CodePtr OpPC = S.PC; |
| 38630 | const auto V0 = ReadArg<int32_t>(S, S.PC); |
| 38631 | if (!Jmp(S, OpPC, V0)) return false; |
| 38632 | } |
| 38633 | #if USE_TAILCALLS |
| 38634 | MUSTTAIL return InterpNext(S); |
| 38635 | #else |
| 38636 | return true; |
| 38637 | #endif |
| 38638 | } |
| 38639 | #endif |
| 38640 | #ifdef GET_DISASM |
| 38641 | case OP_Jmp: |
| 38642 | Text.Op = PrintName("Jmp" ); |
| 38643 | Text.Args.push_back(printArg<int32_t>(PC)); |
| 38644 | break; |
| 38645 | #endif |
| 38646 | #if defined(GET_EVAL_PROTO) || defined(GET_LINK_PROTO) |
| 38647 | bool emitJmp( int32_t , SourceInfo); |
| 38648 | #endif |
| 38649 | #ifdef GET_LINK_IMPL |
| 38650 | bool ByteCodeEmitter::emitJmp( int32_t A0, SourceInfo L) { |
| 38651 | return emitOp<int32_t>(OP_Jmp, A0, L); |
| 38652 | } |
| 38653 | #endif |
| 38654 | #ifdef GET_OPCODE_NAMES |
| 38655 | OP_Jt, |
| 38656 | #endif |
| 38657 | #ifdef GET_INTERPFN_LIST |
| 38658 | &Interp_Jt, |
| 38659 | #endif |
| 38660 | #ifdef GET_INTERPFN_DISPATCHERS |
| 38661 | PRESERVE_NONE |
| 38662 | static bool Interp_Jt(InterpState &S) { |
| 38663 | { |
| 38664 | CodePtr OpPC = S.PC; |
| 38665 | const auto V0 = ReadArg<int32_t>(S, S.PC); |
| 38666 | if (!Jt(S, OpPC, V0)) return false; |
| 38667 | } |
| 38668 | #if USE_TAILCALLS |
| 38669 | MUSTTAIL return InterpNext(S); |
| 38670 | #else |
| 38671 | return true; |
| 38672 | #endif |
| 38673 | } |
| 38674 | #endif |
| 38675 | #ifdef GET_DISASM |
| 38676 | case OP_Jt: |
| 38677 | Text.Op = PrintName("Jt" ); |
| 38678 | Text.Args.push_back(printArg<int32_t>(PC)); |
| 38679 | break; |
| 38680 | #endif |
| 38681 | #if defined(GET_EVAL_PROTO) || defined(GET_LINK_PROTO) |
| 38682 | bool emitJt( int32_t , SourceInfo); |
| 38683 | #endif |
| 38684 | #ifdef GET_LINK_IMPL |
| 38685 | bool ByteCodeEmitter::emitJt( int32_t A0, SourceInfo L) { |
| 38686 | return emitOp<int32_t>(OP_Jt, A0, L); |
| 38687 | } |
| 38688 | #endif |
| 38689 | #ifdef GET_OPCODE_NAMES |
| 38690 | OP_LESint8, |
| 38691 | OP_LEUint8, |
| 38692 | OP_LESint16, |
| 38693 | OP_LEUint16, |
| 38694 | OP_LESint32, |
| 38695 | OP_LEUint32, |
| 38696 | OP_LESint64, |
| 38697 | OP_LEUint64, |
| 38698 | OP_LEIntAP, |
| 38699 | OP_LEIntAPS, |
| 38700 | OP_LEBool, |
| 38701 | OP_LEFixedPoint, |
| 38702 | OP_LEPtr, |
| 38703 | OP_LEFloat, |
| 38704 | #endif |
| 38705 | #ifdef GET_INTERPFN_LIST |
| 38706 | &Interp_LESint8, |
| 38707 | &Interp_LEUint8, |
| 38708 | &Interp_LESint16, |
| 38709 | &Interp_LEUint16, |
| 38710 | &Interp_LESint32, |
| 38711 | &Interp_LEUint32, |
| 38712 | &Interp_LESint64, |
| 38713 | &Interp_LEUint64, |
| 38714 | &Interp_LEIntAP, |
| 38715 | &Interp_LEIntAPS, |
| 38716 | &Interp_LEBool, |
| 38717 | &Interp_LEFixedPoint, |
| 38718 | &Interp_LEPtr, |
| 38719 | &Interp_LEFloat, |
| 38720 | #endif |
| 38721 | #ifdef GET_INTERPFN_DISPATCHERS |
| 38722 | PRESERVE_NONE |
| 38723 | static bool Interp_LESint8(InterpState &S) { |
| 38724 | if (!LE<PT_Sint8>(S, S.PC)) return false; |
| 38725 | #if USE_TAILCALLS |
| 38726 | MUSTTAIL return InterpNext(S); |
| 38727 | #else |
| 38728 | return true; |
| 38729 | #endif |
| 38730 | } |
| 38731 | PRESERVE_NONE |
| 38732 | static bool Interp_LEUint8(InterpState &S) { |
| 38733 | if (!LE<PT_Uint8>(S, S.PC)) return false; |
| 38734 | #if USE_TAILCALLS |
| 38735 | MUSTTAIL return InterpNext(S); |
| 38736 | #else |
| 38737 | return true; |
| 38738 | #endif |
| 38739 | } |
| 38740 | PRESERVE_NONE |
| 38741 | static bool Interp_LESint16(InterpState &S) { |
| 38742 | if (!LE<PT_Sint16>(S, S.PC)) return false; |
| 38743 | #if USE_TAILCALLS |
| 38744 | MUSTTAIL return InterpNext(S); |
| 38745 | #else |
| 38746 | return true; |
| 38747 | #endif |
| 38748 | } |
| 38749 | PRESERVE_NONE |
| 38750 | static bool Interp_LEUint16(InterpState &S) { |
| 38751 | if (!LE<PT_Uint16>(S, S.PC)) return false; |
| 38752 | #if USE_TAILCALLS |
| 38753 | MUSTTAIL return InterpNext(S); |
| 38754 | #else |
| 38755 | return true; |
| 38756 | #endif |
| 38757 | } |
| 38758 | PRESERVE_NONE |
| 38759 | static bool Interp_LESint32(InterpState &S) { |
| 38760 | if (!LE<PT_Sint32>(S, S.PC)) return false; |
| 38761 | #if USE_TAILCALLS |
| 38762 | MUSTTAIL return InterpNext(S); |
| 38763 | #else |
| 38764 | return true; |
| 38765 | #endif |
| 38766 | } |
| 38767 | PRESERVE_NONE |
| 38768 | static bool Interp_LEUint32(InterpState &S) { |
| 38769 | if (!LE<PT_Uint32>(S, S.PC)) return false; |
| 38770 | #if USE_TAILCALLS |
| 38771 | MUSTTAIL return InterpNext(S); |
| 38772 | #else |
| 38773 | return true; |
| 38774 | #endif |
| 38775 | } |
| 38776 | PRESERVE_NONE |
| 38777 | static bool Interp_LESint64(InterpState &S) { |
| 38778 | if (!LE<PT_Sint64>(S, S.PC)) return false; |
| 38779 | #if USE_TAILCALLS |
| 38780 | MUSTTAIL return InterpNext(S); |
| 38781 | #else |
| 38782 | return true; |
| 38783 | #endif |
| 38784 | } |
| 38785 | PRESERVE_NONE |
| 38786 | static bool Interp_LEUint64(InterpState &S) { |
| 38787 | if (!LE<PT_Uint64>(S, S.PC)) return false; |
| 38788 | #if USE_TAILCALLS |
| 38789 | MUSTTAIL return InterpNext(S); |
| 38790 | #else |
| 38791 | return true; |
| 38792 | #endif |
| 38793 | } |
| 38794 | PRESERVE_NONE |
| 38795 | static bool Interp_LEIntAP(InterpState &S) { |
| 38796 | if (!LE<PT_IntAP>(S, S.PC)) return false; |
| 38797 | #if USE_TAILCALLS |
| 38798 | MUSTTAIL return InterpNext(S); |
| 38799 | #else |
| 38800 | return true; |
| 38801 | #endif |
| 38802 | } |
| 38803 | PRESERVE_NONE |
| 38804 | static bool Interp_LEIntAPS(InterpState &S) { |
| 38805 | if (!LE<PT_IntAPS>(S, S.PC)) return false; |
| 38806 | #if USE_TAILCALLS |
| 38807 | MUSTTAIL return InterpNext(S); |
| 38808 | #else |
| 38809 | return true; |
| 38810 | #endif |
| 38811 | } |
| 38812 | PRESERVE_NONE |
| 38813 | static bool Interp_LEBool(InterpState &S) { |
| 38814 | if (!LE<PT_Bool>(S, S.PC)) return false; |
| 38815 | #if USE_TAILCALLS |
| 38816 | MUSTTAIL return InterpNext(S); |
| 38817 | #else |
| 38818 | return true; |
| 38819 | #endif |
| 38820 | } |
| 38821 | PRESERVE_NONE |
| 38822 | static bool Interp_LEFixedPoint(InterpState &S) { |
| 38823 | if (!LE<PT_FixedPoint>(S, S.PC)) return false; |
| 38824 | #if USE_TAILCALLS |
| 38825 | MUSTTAIL return InterpNext(S); |
| 38826 | #else |
| 38827 | return true; |
| 38828 | #endif |
| 38829 | } |
| 38830 | PRESERVE_NONE |
| 38831 | static bool Interp_LEPtr(InterpState &S) { |
| 38832 | if (!LE<PT_Ptr>(S, S.PC)) return false; |
| 38833 | #if USE_TAILCALLS |
| 38834 | MUSTTAIL return InterpNext(S); |
| 38835 | #else |
| 38836 | return true; |
| 38837 | #endif |
| 38838 | } |
| 38839 | PRESERVE_NONE |
| 38840 | static bool Interp_LEFloat(InterpState &S) { |
| 38841 | if (!LE<PT_Float>(S, S.PC)) return false; |
| 38842 | #if USE_TAILCALLS |
| 38843 | MUSTTAIL return InterpNext(S); |
| 38844 | #else |
| 38845 | return true; |
| 38846 | #endif |
| 38847 | } |
| 38848 | #endif |
| 38849 | #ifdef GET_DISASM |
| 38850 | case OP_LESint8: |
| 38851 | Text.Op = PrintName("LESint8" ); |
| 38852 | break; |
| 38853 | case OP_LEUint8: |
| 38854 | Text.Op = PrintName("LEUint8" ); |
| 38855 | break; |
| 38856 | case OP_LESint16: |
| 38857 | Text.Op = PrintName("LESint16" ); |
| 38858 | break; |
| 38859 | case OP_LEUint16: |
| 38860 | Text.Op = PrintName("LEUint16" ); |
| 38861 | break; |
| 38862 | case OP_LESint32: |
| 38863 | Text.Op = PrintName("LESint32" ); |
| 38864 | break; |
| 38865 | case OP_LEUint32: |
| 38866 | Text.Op = PrintName("LEUint32" ); |
| 38867 | break; |
| 38868 | case OP_LESint64: |
| 38869 | Text.Op = PrintName("LESint64" ); |
| 38870 | break; |
| 38871 | case OP_LEUint64: |
| 38872 | Text.Op = PrintName("LEUint64" ); |
| 38873 | break; |
| 38874 | case OP_LEIntAP: |
| 38875 | Text.Op = PrintName("LEIntAP" ); |
| 38876 | break; |
| 38877 | case OP_LEIntAPS: |
| 38878 | Text.Op = PrintName("LEIntAPS" ); |
| 38879 | break; |
| 38880 | case OP_LEBool: |
| 38881 | Text.Op = PrintName("LEBool" ); |
| 38882 | break; |
| 38883 | case OP_LEFixedPoint: |
| 38884 | Text.Op = PrintName("LEFixedPoint" ); |
| 38885 | break; |
| 38886 | case OP_LEPtr: |
| 38887 | Text.Op = PrintName("LEPtr" ); |
| 38888 | break; |
| 38889 | case OP_LEFloat: |
| 38890 | Text.Op = PrintName("LEFloat" ); |
| 38891 | break; |
| 38892 | #endif |
| 38893 | #if defined(GET_EVAL_PROTO) || defined(GET_LINK_PROTO) |
| 38894 | bool emitLESint8(SourceInfo); |
| 38895 | bool emitLEUint8(SourceInfo); |
| 38896 | bool emitLESint16(SourceInfo); |
| 38897 | bool emitLEUint16(SourceInfo); |
| 38898 | bool emitLESint32(SourceInfo); |
| 38899 | bool emitLEUint32(SourceInfo); |
| 38900 | bool emitLESint64(SourceInfo); |
| 38901 | bool emitLEUint64(SourceInfo); |
| 38902 | bool emitLEIntAP(SourceInfo); |
| 38903 | bool emitLEIntAPS(SourceInfo); |
| 38904 | bool emitLEBool(SourceInfo); |
| 38905 | bool emitLEFixedPoint(SourceInfo); |
| 38906 | bool emitLEPtr(SourceInfo); |
| 38907 | bool emitLEFloat(SourceInfo); |
| 38908 | #endif |
| 38909 | #if defined(GET_EVAL_PROTO) || defined(GET_LINK_PROTO) |
| 38910 | [[nodiscard]] bool emitLE(PrimType, SourceInfo I); |
| 38911 | #endif |
| 38912 | #if defined(GET_EVAL_IMPL) || defined(GET_LINK_IMPL) |
| 38913 | bool |
| 38914 | #if defined(GET_EVAL_IMPL) |
| 38915 | EvalEmitter |
| 38916 | #else |
| 38917 | ByteCodeEmitter |
| 38918 | #endif |
| 38919 | ::emitLE(PrimType T0, SourceInfo I) { |
| 38920 | switch (T0) { |
| 38921 | case PT_Sint8: |
| 38922 | return emitLESint8(I); |
| 38923 | case PT_Uint8: |
| 38924 | return emitLEUint8(I); |
| 38925 | case PT_Sint16: |
| 38926 | return emitLESint16(I); |
| 38927 | case PT_Uint16: |
| 38928 | return emitLEUint16(I); |
| 38929 | case PT_Sint32: |
| 38930 | return emitLESint32(I); |
| 38931 | case PT_Uint32: |
| 38932 | return emitLEUint32(I); |
| 38933 | case PT_Sint64: |
| 38934 | return emitLESint64(I); |
| 38935 | case PT_Uint64: |
| 38936 | return emitLEUint64(I); |
| 38937 | case PT_IntAP: |
| 38938 | return emitLEIntAP(I); |
| 38939 | case PT_IntAPS: |
| 38940 | return emitLEIntAPS(I); |
| 38941 | case PT_Bool: |
| 38942 | return emitLEBool(I); |
| 38943 | case PT_FixedPoint: |
| 38944 | return emitLEFixedPoint(I); |
| 38945 | case PT_Ptr: |
| 38946 | return emitLEPtr(I); |
| 38947 | case PT_Float: |
| 38948 | return emitLEFloat(I); |
| 38949 | default: llvm_unreachable("invalid type: emitLE" ); |
| 38950 | } |
| 38951 | llvm_unreachable("invalid enum value" ); |
| 38952 | } |
| 38953 | #endif |
| 38954 | #ifdef GET_LINK_IMPL |
| 38955 | bool ByteCodeEmitter::emitLESint8(SourceInfo L) { |
| 38956 | return emitOp<>(OP_LESint8, L); |
| 38957 | } |
| 38958 | bool ByteCodeEmitter::emitLEUint8(SourceInfo L) { |
| 38959 | return emitOp<>(OP_LEUint8, L); |
| 38960 | } |
| 38961 | bool ByteCodeEmitter::emitLESint16(SourceInfo L) { |
| 38962 | return emitOp<>(OP_LESint16, L); |
| 38963 | } |
| 38964 | bool ByteCodeEmitter::emitLEUint16(SourceInfo L) { |
| 38965 | return emitOp<>(OP_LEUint16, L); |
| 38966 | } |
| 38967 | bool ByteCodeEmitter::emitLESint32(SourceInfo L) { |
| 38968 | return emitOp<>(OP_LESint32, L); |
| 38969 | } |
| 38970 | bool ByteCodeEmitter::emitLEUint32(SourceInfo L) { |
| 38971 | return emitOp<>(OP_LEUint32, L); |
| 38972 | } |
| 38973 | bool ByteCodeEmitter::emitLESint64(SourceInfo L) { |
| 38974 | return emitOp<>(OP_LESint64, L); |
| 38975 | } |
| 38976 | bool ByteCodeEmitter::emitLEUint64(SourceInfo L) { |
| 38977 | return emitOp<>(OP_LEUint64, L); |
| 38978 | } |
| 38979 | bool ByteCodeEmitter::emitLEIntAP(SourceInfo L) { |
| 38980 | return emitOp<>(OP_LEIntAP, L); |
| 38981 | } |
| 38982 | bool ByteCodeEmitter::emitLEIntAPS(SourceInfo L) { |
| 38983 | return emitOp<>(OP_LEIntAPS, L); |
| 38984 | } |
| 38985 | bool ByteCodeEmitter::emitLEBool(SourceInfo L) { |
| 38986 | return emitOp<>(OP_LEBool, L); |
| 38987 | } |
| 38988 | bool ByteCodeEmitter::emitLEFixedPoint(SourceInfo L) { |
| 38989 | return emitOp<>(OP_LEFixedPoint, L); |
| 38990 | } |
| 38991 | bool ByteCodeEmitter::emitLEPtr(SourceInfo L) { |
| 38992 | return emitOp<>(OP_LEPtr, L); |
| 38993 | } |
| 38994 | bool ByteCodeEmitter::emitLEFloat(SourceInfo L) { |
| 38995 | return emitOp<>(OP_LEFloat, L); |
| 38996 | } |
| 38997 | #endif |
| 38998 | #ifdef GET_EVAL_IMPL |
| 38999 | bool EvalEmitter::emitLESint8(SourceInfo L) { |
| 39000 | if (!isActive()) return true; |
| 39001 | CurrentSource = L; |
| 39002 | return LE<PT_Sint8>(S, CodePtr()); |
| 39003 | } |
| 39004 | bool EvalEmitter::emitLEUint8(SourceInfo L) { |
| 39005 | if (!isActive()) return true; |
| 39006 | CurrentSource = L; |
| 39007 | return LE<PT_Uint8>(S, CodePtr()); |
| 39008 | } |
| 39009 | bool EvalEmitter::emitLESint16(SourceInfo L) { |
| 39010 | if (!isActive()) return true; |
| 39011 | CurrentSource = L; |
| 39012 | return LE<PT_Sint16>(S, CodePtr()); |
| 39013 | } |
| 39014 | bool EvalEmitter::emitLEUint16(SourceInfo L) { |
| 39015 | if (!isActive()) return true; |
| 39016 | CurrentSource = L; |
| 39017 | return LE<PT_Uint16>(S, CodePtr()); |
| 39018 | } |
| 39019 | bool EvalEmitter::emitLESint32(SourceInfo L) { |
| 39020 | if (!isActive()) return true; |
| 39021 | CurrentSource = L; |
| 39022 | return LE<PT_Sint32>(S, CodePtr()); |
| 39023 | } |
| 39024 | bool EvalEmitter::emitLEUint32(SourceInfo L) { |
| 39025 | if (!isActive()) return true; |
| 39026 | CurrentSource = L; |
| 39027 | return LE<PT_Uint32>(S, CodePtr()); |
| 39028 | } |
| 39029 | bool EvalEmitter::emitLESint64(SourceInfo L) { |
| 39030 | if (!isActive()) return true; |
| 39031 | CurrentSource = L; |
| 39032 | return LE<PT_Sint64>(S, CodePtr()); |
| 39033 | } |
| 39034 | bool EvalEmitter::emitLEUint64(SourceInfo L) { |
| 39035 | if (!isActive()) return true; |
| 39036 | CurrentSource = L; |
| 39037 | return LE<PT_Uint64>(S, CodePtr()); |
| 39038 | } |
| 39039 | bool EvalEmitter::emitLEIntAP(SourceInfo L) { |
| 39040 | if (!isActive()) return true; |
| 39041 | CurrentSource = L; |
| 39042 | return LE<PT_IntAP>(S, CodePtr()); |
| 39043 | } |
| 39044 | bool EvalEmitter::emitLEIntAPS(SourceInfo L) { |
| 39045 | if (!isActive()) return true; |
| 39046 | CurrentSource = L; |
| 39047 | return LE<PT_IntAPS>(S, CodePtr()); |
| 39048 | } |
| 39049 | bool EvalEmitter::emitLEBool(SourceInfo L) { |
| 39050 | if (!isActive()) return true; |
| 39051 | CurrentSource = L; |
| 39052 | return LE<PT_Bool>(S, CodePtr()); |
| 39053 | } |
| 39054 | bool EvalEmitter::emitLEFixedPoint(SourceInfo L) { |
| 39055 | if (!isActive()) return true; |
| 39056 | CurrentSource = L; |
| 39057 | return LE<PT_FixedPoint>(S, CodePtr()); |
| 39058 | } |
| 39059 | bool EvalEmitter::emitLEPtr(SourceInfo L) { |
| 39060 | if (!isActive()) return true; |
| 39061 | CurrentSource = L; |
| 39062 | return LE<PT_Ptr>(S, CodePtr()); |
| 39063 | } |
| 39064 | bool EvalEmitter::emitLEFloat(SourceInfo L) { |
| 39065 | if (!isActive()) return true; |
| 39066 | CurrentSource = L; |
| 39067 | return LE<PT_Float>(S, CodePtr()); |
| 39068 | } |
| 39069 | #endif |
| 39070 | #ifdef GET_OPCODE_NAMES |
| 39071 | OP_LTSint8, |
| 39072 | OP_LTUint8, |
| 39073 | OP_LTSint16, |
| 39074 | OP_LTUint16, |
| 39075 | OP_LTSint32, |
| 39076 | OP_LTUint32, |
| 39077 | OP_LTSint64, |
| 39078 | OP_LTUint64, |
| 39079 | OP_LTIntAP, |
| 39080 | OP_LTIntAPS, |
| 39081 | OP_LTBool, |
| 39082 | OP_LTFixedPoint, |
| 39083 | OP_LTPtr, |
| 39084 | OP_LTFloat, |
| 39085 | #endif |
| 39086 | #ifdef GET_INTERPFN_LIST |
| 39087 | &Interp_LTSint8, |
| 39088 | &Interp_LTUint8, |
| 39089 | &Interp_LTSint16, |
| 39090 | &Interp_LTUint16, |
| 39091 | &Interp_LTSint32, |
| 39092 | &Interp_LTUint32, |
| 39093 | &Interp_LTSint64, |
| 39094 | &Interp_LTUint64, |
| 39095 | &Interp_LTIntAP, |
| 39096 | &Interp_LTIntAPS, |
| 39097 | &Interp_LTBool, |
| 39098 | &Interp_LTFixedPoint, |
| 39099 | &Interp_LTPtr, |
| 39100 | &Interp_LTFloat, |
| 39101 | #endif |
| 39102 | #ifdef GET_INTERPFN_DISPATCHERS |
| 39103 | PRESERVE_NONE |
| 39104 | static bool Interp_LTSint8(InterpState &S) { |
| 39105 | if (!LT<PT_Sint8>(S, S.PC)) return false; |
| 39106 | #if USE_TAILCALLS |
| 39107 | MUSTTAIL return InterpNext(S); |
| 39108 | #else |
| 39109 | return true; |
| 39110 | #endif |
| 39111 | } |
| 39112 | PRESERVE_NONE |
| 39113 | static bool Interp_LTUint8(InterpState &S) { |
| 39114 | if (!LT<PT_Uint8>(S, S.PC)) return false; |
| 39115 | #if USE_TAILCALLS |
| 39116 | MUSTTAIL return InterpNext(S); |
| 39117 | #else |
| 39118 | return true; |
| 39119 | #endif |
| 39120 | } |
| 39121 | PRESERVE_NONE |
| 39122 | static bool Interp_LTSint16(InterpState &S) { |
| 39123 | if (!LT<PT_Sint16>(S, S.PC)) return false; |
| 39124 | #if USE_TAILCALLS |
| 39125 | MUSTTAIL return InterpNext(S); |
| 39126 | #else |
| 39127 | return true; |
| 39128 | #endif |
| 39129 | } |
| 39130 | PRESERVE_NONE |
| 39131 | static bool Interp_LTUint16(InterpState &S) { |
| 39132 | if (!LT<PT_Uint16>(S, S.PC)) return false; |
| 39133 | #if USE_TAILCALLS |
| 39134 | MUSTTAIL return InterpNext(S); |
| 39135 | #else |
| 39136 | return true; |
| 39137 | #endif |
| 39138 | } |
| 39139 | PRESERVE_NONE |
| 39140 | static bool Interp_LTSint32(InterpState &S) { |
| 39141 | if (!LT<PT_Sint32>(S, S.PC)) return false; |
| 39142 | #if USE_TAILCALLS |
| 39143 | MUSTTAIL return InterpNext(S); |
| 39144 | #else |
| 39145 | return true; |
| 39146 | #endif |
| 39147 | } |
| 39148 | PRESERVE_NONE |
| 39149 | static bool Interp_LTUint32(InterpState &S) { |
| 39150 | if (!LT<PT_Uint32>(S, S.PC)) return false; |
| 39151 | #if USE_TAILCALLS |
| 39152 | MUSTTAIL return InterpNext(S); |
| 39153 | #else |
| 39154 | return true; |
| 39155 | #endif |
| 39156 | } |
| 39157 | PRESERVE_NONE |
| 39158 | static bool Interp_LTSint64(InterpState &S) { |
| 39159 | if (!LT<PT_Sint64>(S, S.PC)) return false; |
| 39160 | #if USE_TAILCALLS |
| 39161 | MUSTTAIL return InterpNext(S); |
| 39162 | #else |
| 39163 | return true; |
| 39164 | #endif |
| 39165 | } |
| 39166 | PRESERVE_NONE |
| 39167 | static bool Interp_LTUint64(InterpState &S) { |
| 39168 | if (!LT<PT_Uint64>(S, S.PC)) return false; |
| 39169 | #if USE_TAILCALLS |
| 39170 | MUSTTAIL return InterpNext(S); |
| 39171 | #else |
| 39172 | return true; |
| 39173 | #endif |
| 39174 | } |
| 39175 | PRESERVE_NONE |
| 39176 | static bool Interp_LTIntAP(InterpState &S) { |
| 39177 | if (!LT<PT_IntAP>(S, S.PC)) return false; |
| 39178 | #if USE_TAILCALLS |
| 39179 | MUSTTAIL return InterpNext(S); |
| 39180 | #else |
| 39181 | return true; |
| 39182 | #endif |
| 39183 | } |
| 39184 | PRESERVE_NONE |
| 39185 | static bool Interp_LTIntAPS(InterpState &S) { |
| 39186 | if (!LT<PT_IntAPS>(S, S.PC)) return false; |
| 39187 | #if USE_TAILCALLS |
| 39188 | MUSTTAIL return InterpNext(S); |
| 39189 | #else |
| 39190 | return true; |
| 39191 | #endif |
| 39192 | } |
| 39193 | PRESERVE_NONE |
| 39194 | static bool Interp_LTBool(InterpState &S) { |
| 39195 | if (!LT<PT_Bool>(S, S.PC)) return false; |
| 39196 | #if USE_TAILCALLS |
| 39197 | MUSTTAIL return InterpNext(S); |
| 39198 | #else |
| 39199 | return true; |
| 39200 | #endif |
| 39201 | } |
| 39202 | PRESERVE_NONE |
| 39203 | static bool Interp_LTFixedPoint(InterpState &S) { |
| 39204 | if (!LT<PT_FixedPoint>(S, S.PC)) return false; |
| 39205 | #if USE_TAILCALLS |
| 39206 | MUSTTAIL return InterpNext(S); |
| 39207 | #else |
| 39208 | return true; |
| 39209 | #endif |
| 39210 | } |
| 39211 | PRESERVE_NONE |
| 39212 | static bool Interp_LTPtr(InterpState &S) { |
| 39213 | if (!LT<PT_Ptr>(S, S.PC)) return false; |
| 39214 | #if USE_TAILCALLS |
| 39215 | MUSTTAIL return InterpNext(S); |
| 39216 | #else |
| 39217 | return true; |
| 39218 | #endif |
| 39219 | } |
| 39220 | PRESERVE_NONE |
| 39221 | static bool Interp_LTFloat(InterpState &S) { |
| 39222 | if (!LT<PT_Float>(S, S.PC)) return false; |
| 39223 | #if USE_TAILCALLS |
| 39224 | MUSTTAIL return InterpNext(S); |
| 39225 | #else |
| 39226 | return true; |
| 39227 | #endif |
| 39228 | } |
| 39229 | #endif |
| 39230 | #ifdef GET_DISASM |
| 39231 | case OP_LTSint8: |
| 39232 | Text.Op = PrintName("LTSint8" ); |
| 39233 | break; |
| 39234 | case OP_LTUint8: |
| 39235 | Text.Op = PrintName("LTUint8" ); |
| 39236 | break; |
| 39237 | case OP_LTSint16: |
| 39238 | Text.Op = PrintName("LTSint16" ); |
| 39239 | break; |
| 39240 | case OP_LTUint16: |
| 39241 | Text.Op = PrintName("LTUint16" ); |
| 39242 | break; |
| 39243 | case OP_LTSint32: |
| 39244 | Text.Op = PrintName("LTSint32" ); |
| 39245 | break; |
| 39246 | case OP_LTUint32: |
| 39247 | Text.Op = PrintName("LTUint32" ); |
| 39248 | break; |
| 39249 | case OP_LTSint64: |
| 39250 | Text.Op = PrintName("LTSint64" ); |
| 39251 | break; |
| 39252 | case OP_LTUint64: |
| 39253 | Text.Op = PrintName("LTUint64" ); |
| 39254 | break; |
| 39255 | case OP_LTIntAP: |
| 39256 | Text.Op = PrintName("LTIntAP" ); |
| 39257 | break; |
| 39258 | case OP_LTIntAPS: |
| 39259 | Text.Op = PrintName("LTIntAPS" ); |
| 39260 | break; |
| 39261 | case OP_LTBool: |
| 39262 | Text.Op = PrintName("LTBool" ); |
| 39263 | break; |
| 39264 | case OP_LTFixedPoint: |
| 39265 | Text.Op = PrintName("LTFixedPoint" ); |
| 39266 | break; |
| 39267 | case OP_LTPtr: |
| 39268 | Text.Op = PrintName("LTPtr" ); |
| 39269 | break; |
| 39270 | case OP_LTFloat: |
| 39271 | Text.Op = PrintName("LTFloat" ); |
| 39272 | break; |
| 39273 | #endif |
| 39274 | #if defined(GET_EVAL_PROTO) || defined(GET_LINK_PROTO) |
| 39275 | bool emitLTSint8(SourceInfo); |
| 39276 | bool emitLTUint8(SourceInfo); |
| 39277 | bool emitLTSint16(SourceInfo); |
| 39278 | bool emitLTUint16(SourceInfo); |
| 39279 | bool emitLTSint32(SourceInfo); |
| 39280 | bool emitLTUint32(SourceInfo); |
| 39281 | bool emitLTSint64(SourceInfo); |
| 39282 | bool emitLTUint64(SourceInfo); |
| 39283 | bool emitLTIntAP(SourceInfo); |
| 39284 | bool emitLTIntAPS(SourceInfo); |
| 39285 | bool emitLTBool(SourceInfo); |
| 39286 | bool emitLTFixedPoint(SourceInfo); |
| 39287 | bool emitLTPtr(SourceInfo); |
| 39288 | bool emitLTFloat(SourceInfo); |
| 39289 | #endif |
| 39290 | #if defined(GET_EVAL_PROTO) || defined(GET_LINK_PROTO) |
| 39291 | [[nodiscard]] bool emitLT(PrimType, SourceInfo I); |
| 39292 | #endif |
| 39293 | #if defined(GET_EVAL_IMPL) || defined(GET_LINK_IMPL) |
| 39294 | bool |
| 39295 | #if defined(GET_EVAL_IMPL) |
| 39296 | EvalEmitter |
| 39297 | #else |
| 39298 | ByteCodeEmitter |
| 39299 | #endif |
| 39300 | ::emitLT(PrimType T0, SourceInfo I) { |
| 39301 | switch (T0) { |
| 39302 | case PT_Sint8: |
| 39303 | return emitLTSint8(I); |
| 39304 | case PT_Uint8: |
| 39305 | return emitLTUint8(I); |
| 39306 | case PT_Sint16: |
| 39307 | return emitLTSint16(I); |
| 39308 | case PT_Uint16: |
| 39309 | return emitLTUint16(I); |
| 39310 | case PT_Sint32: |
| 39311 | return emitLTSint32(I); |
| 39312 | case PT_Uint32: |
| 39313 | return emitLTUint32(I); |
| 39314 | case PT_Sint64: |
| 39315 | return emitLTSint64(I); |
| 39316 | case PT_Uint64: |
| 39317 | return emitLTUint64(I); |
| 39318 | case PT_IntAP: |
| 39319 | return emitLTIntAP(I); |
| 39320 | case PT_IntAPS: |
| 39321 | return emitLTIntAPS(I); |
| 39322 | case PT_Bool: |
| 39323 | return emitLTBool(I); |
| 39324 | case PT_FixedPoint: |
| 39325 | return emitLTFixedPoint(I); |
| 39326 | case PT_Ptr: |
| 39327 | return emitLTPtr(I); |
| 39328 | case PT_Float: |
| 39329 | return emitLTFloat(I); |
| 39330 | default: llvm_unreachable("invalid type: emitLT" ); |
| 39331 | } |
| 39332 | llvm_unreachable("invalid enum value" ); |
| 39333 | } |
| 39334 | #endif |
| 39335 | #ifdef GET_LINK_IMPL |
| 39336 | bool ByteCodeEmitter::emitLTSint8(SourceInfo L) { |
| 39337 | return emitOp<>(OP_LTSint8, L); |
| 39338 | } |
| 39339 | bool ByteCodeEmitter::emitLTUint8(SourceInfo L) { |
| 39340 | return emitOp<>(OP_LTUint8, L); |
| 39341 | } |
| 39342 | bool ByteCodeEmitter::emitLTSint16(SourceInfo L) { |
| 39343 | return emitOp<>(OP_LTSint16, L); |
| 39344 | } |
| 39345 | bool ByteCodeEmitter::emitLTUint16(SourceInfo L) { |
| 39346 | return emitOp<>(OP_LTUint16, L); |
| 39347 | } |
| 39348 | bool ByteCodeEmitter::emitLTSint32(SourceInfo L) { |
| 39349 | return emitOp<>(OP_LTSint32, L); |
| 39350 | } |
| 39351 | bool ByteCodeEmitter::emitLTUint32(SourceInfo L) { |
| 39352 | return emitOp<>(OP_LTUint32, L); |
| 39353 | } |
| 39354 | bool ByteCodeEmitter::emitLTSint64(SourceInfo L) { |
| 39355 | return emitOp<>(OP_LTSint64, L); |
| 39356 | } |
| 39357 | bool ByteCodeEmitter::emitLTUint64(SourceInfo L) { |
| 39358 | return emitOp<>(OP_LTUint64, L); |
| 39359 | } |
| 39360 | bool ByteCodeEmitter::emitLTIntAP(SourceInfo L) { |
| 39361 | return emitOp<>(OP_LTIntAP, L); |
| 39362 | } |
| 39363 | bool ByteCodeEmitter::emitLTIntAPS(SourceInfo L) { |
| 39364 | return emitOp<>(OP_LTIntAPS, L); |
| 39365 | } |
| 39366 | bool ByteCodeEmitter::emitLTBool(SourceInfo L) { |
| 39367 | return emitOp<>(OP_LTBool, L); |
| 39368 | } |
| 39369 | bool ByteCodeEmitter::emitLTFixedPoint(SourceInfo L) { |
| 39370 | return emitOp<>(OP_LTFixedPoint, L); |
| 39371 | } |
| 39372 | bool ByteCodeEmitter::emitLTPtr(SourceInfo L) { |
| 39373 | return emitOp<>(OP_LTPtr, L); |
| 39374 | } |
| 39375 | bool ByteCodeEmitter::emitLTFloat(SourceInfo L) { |
| 39376 | return emitOp<>(OP_LTFloat, L); |
| 39377 | } |
| 39378 | #endif |
| 39379 | #ifdef GET_EVAL_IMPL |
| 39380 | bool EvalEmitter::emitLTSint8(SourceInfo L) { |
| 39381 | if (!isActive()) return true; |
| 39382 | CurrentSource = L; |
| 39383 | return LT<PT_Sint8>(S, CodePtr()); |
| 39384 | } |
| 39385 | bool EvalEmitter::emitLTUint8(SourceInfo L) { |
| 39386 | if (!isActive()) return true; |
| 39387 | CurrentSource = L; |
| 39388 | return LT<PT_Uint8>(S, CodePtr()); |
| 39389 | } |
| 39390 | bool EvalEmitter::emitLTSint16(SourceInfo L) { |
| 39391 | if (!isActive()) return true; |
| 39392 | CurrentSource = L; |
| 39393 | return LT<PT_Sint16>(S, CodePtr()); |
| 39394 | } |
| 39395 | bool EvalEmitter::emitLTUint16(SourceInfo L) { |
| 39396 | if (!isActive()) return true; |
| 39397 | CurrentSource = L; |
| 39398 | return LT<PT_Uint16>(S, CodePtr()); |
| 39399 | } |
| 39400 | bool EvalEmitter::emitLTSint32(SourceInfo L) { |
| 39401 | if (!isActive()) return true; |
| 39402 | CurrentSource = L; |
| 39403 | return LT<PT_Sint32>(S, CodePtr()); |
| 39404 | } |
| 39405 | bool EvalEmitter::emitLTUint32(SourceInfo L) { |
| 39406 | if (!isActive()) return true; |
| 39407 | CurrentSource = L; |
| 39408 | return LT<PT_Uint32>(S, CodePtr()); |
| 39409 | } |
| 39410 | bool EvalEmitter::emitLTSint64(SourceInfo L) { |
| 39411 | if (!isActive()) return true; |
| 39412 | CurrentSource = L; |
| 39413 | return LT<PT_Sint64>(S, CodePtr()); |
| 39414 | } |
| 39415 | bool EvalEmitter::emitLTUint64(SourceInfo L) { |
| 39416 | if (!isActive()) return true; |
| 39417 | CurrentSource = L; |
| 39418 | return LT<PT_Uint64>(S, CodePtr()); |
| 39419 | } |
| 39420 | bool EvalEmitter::emitLTIntAP(SourceInfo L) { |
| 39421 | if (!isActive()) return true; |
| 39422 | CurrentSource = L; |
| 39423 | return LT<PT_IntAP>(S, CodePtr()); |
| 39424 | } |
| 39425 | bool EvalEmitter::emitLTIntAPS(SourceInfo L) { |
| 39426 | if (!isActive()) return true; |
| 39427 | CurrentSource = L; |
| 39428 | return LT<PT_IntAPS>(S, CodePtr()); |
| 39429 | } |
| 39430 | bool EvalEmitter::emitLTBool(SourceInfo L) { |
| 39431 | if (!isActive()) return true; |
| 39432 | CurrentSource = L; |
| 39433 | return LT<PT_Bool>(S, CodePtr()); |
| 39434 | } |
| 39435 | bool EvalEmitter::emitLTFixedPoint(SourceInfo L) { |
| 39436 | if (!isActive()) return true; |
| 39437 | CurrentSource = L; |
| 39438 | return LT<PT_FixedPoint>(S, CodePtr()); |
| 39439 | } |
| 39440 | bool EvalEmitter::emitLTPtr(SourceInfo L) { |
| 39441 | if (!isActive()) return true; |
| 39442 | CurrentSource = L; |
| 39443 | return LT<PT_Ptr>(S, CodePtr()); |
| 39444 | } |
| 39445 | bool EvalEmitter::emitLTFloat(SourceInfo L) { |
| 39446 | if (!isActive()) return true; |
| 39447 | CurrentSource = L; |
| 39448 | return LT<PT_Float>(S, CodePtr()); |
| 39449 | } |
| 39450 | #endif |
| 39451 | #ifdef GET_OPCODE_NAMES |
| 39452 | OP_LoadSint8, |
| 39453 | OP_LoadUint8, |
| 39454 | OP_LoadSint16, |
| 39455 | OP_LoadUint16, |
| 39456 | OP_LoadSint32, |
| 39457 | OP_LoadUint32, |
| 39458 | OP_LoadSint64, |
| 39459 | OP_LoadUint64, |
| 39460 | OP_LoadIntAP, |
| 39461 | OP_LoadIntAPS, |
| 39462 | OP_LoadBool, |
| 39463 | OP_LoadFixedPoint, |
| 39464 | OP_LoadPtr, |
| 39465 | OP_LoadMemberPtr, |
| 39466 | OP_LoadFloat, |
| 39467 | OP_LoadReflect, |
| 39468 | #endif |
| 39469 | #ifdef GET_INTERPFN_LIST |
| 39470 | &Interp_LoadSint8, |
| 39471 | &Interp_LoadUint8, |
| 39472 | &Interp_LoadSint16, |
| 39473 | &Interp_LoadUint16, |
| 39474 | &Interp_LoadSint32, |
| 39475 | &Interp_LoadUint32, |
| 39476 | &Interp_LoadSint64, |
| 39477 | &Interp_LoadUint64, |
| 39478 | &Interp_LoadIntAP, |
| 39479 | &Interp_LoadIntAPS, |
| 39480 | &Interp_LoadBool, |
| 39481 | &Interp_LoadFixedPoint, |
| 39482 | &Interp_LoadPtr, |
| 39483 | &Interp_LoadMemberPtr, |
| 39484 | &Interp_LoadFloat, |
| 39485 | &Interp_LoadReflect, |
| 39486 | #endif |
| 39487 | #ifdef GET_INTERPFN_DISPATCHERS |
| 39488 | PRESERVE_NONE |
| 39489 | static bool Interp_LoadSint8(InterpState &S) { |
| 39490 | if (!Load<PT_Sint8>(S, S.PC)) return false; |
| 39491 | #if USE_TAILCALLS |
| 39492 | MUSTTAIL return InterpNext(S); |
| 39493 | #else |
| 39494 | return true; |
| 39495 | #endif |
| 39496 | } |
| 39497 | PRESERVE_NONE |
| 39498 | static bool Interp_LoadUint8(InterpState &S) { |
| 39499 | if (!Load<PT_Uint8>(S, S.PC)) return false; |
| 39500 | #if USE_TAILCALLS |
| 39501 | MUSTTAIL return InterpNext(S); |
| 39502 | #else |
| 39503 | return true; |
| 39504 | #endif |
| 39505 | } |
| 39506 | PRESERVE_NONE |
| 39507 | static bool Interp_LoadSint16(InterpState &S) { |
| 39508 | if (!Load<PT_Sint16>(S, S.PC)) return false; |
| 39509 | #if USE_TAILCALLS |
| 39510 | MUSTTAIL return InterpNext(S); |
| 39511 | #else |
| 39512 | return true; |
| 39513 | #endif |
| 39514 | } |
| 39515 | PRESERVE_NONE |
| 39516 | static bool Interp_LoadUint16(InterpState &S) { |
| 39517 | if (!Load<PT_Uint16>(S, S.PC)) return false; |
| 39518 | #if USE_TAILCALLS |
| 39519 | MUSTTAIL return InterpNext(S); |
| 39520 | #else |
| 39521 | return true; |
| 39522 | #endif |
| 39523 | } |
| 39524 | PRESERVE_NONE |
| 39525 | static bool Interp_LoadSint32(InterpState &S) { |
| 39526 | if (!Load<PT_Sint32>(S, S.PC)) return false; |
| 39527 | #if USE_TAILCALLS |
| 39528 | MUSTTAIL return InterpNext(S); |
| 39529 | #else |
| 39530 | return true; |
| 39531 | #endif |
| 39532 | } |
| 39533 | PRESERVE_NONE |
| 39534 | static bool Interp_LoadUint32(InterpState &S) { |
| 39535 | if (!Load<PT_Uint32>(S, S.PC)) return false; |
| 39536 | #if USE_TAILCALLS |
| 39537 | MUSTTAIL return InterpNext(S); |
| 39538 | #else |
| 39539 | return true; |
| 39540 | #endif |
| 39541 | } |
| 39542 | PRESERVE_NONE |
| 39543 | static bool Interp_LoadSint64(InterpState &S) { |
| 39544 | if (!Load<PT_Sint64>(S, S.PC)) return false; |
| 39545 | #if USE_TAILCALLS |
| 39546 | MUSTTAIL return InterpNext(S); |
| 39547 | #else |
| 39548 | return true; |
| 39549 | #endif |
| 39550 | } |
| 39551 | PRESERVE_NONE |
| 39552 | static bool Interp_LoadUint64(InterpState &S) { |
| 39553 | if (!Load<PT_Uint64>(S, S.PC)) return false; |
| 39554 | #if USE_TAILCALLS |
| 39555 | MUSTTAIL return InterpNext(S); |
| 39556 | #else |
| 39557 | return true; |
| 39558 | #endif |
| 39559 | } |
| 39560 | PRESERVE_NONE |
| 39561 | static bool Interp_LoadIntAP(InterpState &S) { |
| 39562 | if (!Load<PT_IntAP>(S, S.PC)) return false; |
| 39563 | #if USE_TAILCALLS |
| 39564 | MUSTTAIL return InterpNext(S); |
| 39565 | #else |
| 39566 | return true; |
| 39567 | #endif |
| 39568 | } |
| 39569 | PRESERVE_NONE |
| 39570 | static bool Interp_LoadIntAPS(InterpState &S) { |
| 39571 | if (!Load<PT_IntAPS>(S, S.PC)) return false; |
| 39572 | #if USE_TAILCALLS |
| 39573 | MUSTTAIL return InterpNext(S); |
| 39574 | #else |
| 39575 | return true; |
| 39576 | #endif |
| 39577 | } |
| 39578 | PRESERVE_NONE |
| 39579 | static bool Interp_LoadBool(InterpState &S) { |
| 39580 | if (!Load<PT_Bool>(S, S.PC)) return false; |
| 39581 | #if USE_TAILCALLS |
| 39582 | MUSTTAIL return InterpNext(S); |
| 39583 | #else |
| 39584 | return true; |
| 39585 | #endif |
| 39586 | } |
| 39587 | PRESERVE_NONE |
| 39588 | static bool Interp_LoadFixedPoint(InterpState &S) { |
| 39589 | if (!Load<PT_FixedPoint>(S, S.PC)) return false; |
| 39590 | #if USE_TAILCALLS |
| 39591 | MUSTTAIL return InterpNext(S); |
| 39592 | #else |
| 39593 | return true; |
| 39594 | #endif |
| 39595 | } |
| 39596 | PRESERVE_NONE |
| 39597 | static bool Interp_LoadPtr(InterpState &S) { |
| 39598 | if (!Load<PT_Ptr>(S, S.PC)) return false; |
| 39599 | #if USE_TAILCALLS |
| 39600 | MUSTTAIL return InterpNext(S); |
| 39601 | #else |
| 39602 | return true; |
| 39603 | #endif |
| 39604 | } |
| 39605 | PRESERVE_NONE |
| 39606 | static bool Interp_LoadMemberPtr(InterpState &S) { |
| 39607 | if (!Load<PT_MemberPtr>(S, S.PC)) return false; |
| 39608 | #if USE_TAILCALLS |
| 39609 | MUSTTAIL return InterpNext(S); |
| 39610 | #else |
| 39611 | return true; |
| 39612 | #endif |
| 39613 | } |
| 39614 | PRESERVE_NONE |
| 39615 | static bool Interp_LoadFloat(InterpState &S) { |
| 39616 | if (!Load<PT_Float>(S, S.PC)) return false; |
| 39617 | #if USE_TAILCALLS |
| 39618 | MUSTTAIL return InterpNext(S); |
| 39619 | #else |
| 39620 | return true; |
| 39621 | #endif |
| 39622 | } |
| 39623 | PRESERVE_NONE |
| 39624 | static bool Interp_LoadReflect(InterpState &S) { |
| 39625 | if (!Load<PT_Reflect>(S, S.PC)) return false; |
| 39626 | #if USE_TAILCALLS |
| 39627 | MUSTTAIL return InterpNext(S); |
| 39628 | #else |
| 39629 | return true; |
| 39630 | #endif |
| 39631 | } |
| 39632 | #endif |
| 39633 | #ifdef GET_DISASM |
| 39634 | case OP_LoadSint8: |
| 39635 | Text.Op = PrintName("LoadSint8" ); |
| 39636 | break; |
| 39637 | case OP_LoadUint8: |
| 39638 | Text.Op = PrintName("LoadUint8" ); |
| 39639 | break; |
| 39640 | case OP_LoadSint16: |
| 39641 | Text.Op = PrintName("LoadSint16" ); |
| 39642 | break; |
| 39643 | case OP_LoadUint16: |
| 39644 | Text.Op = PrintName("LoadUint16" ); |
| 39645 | break; |
| 39646 | case OP_LoadSint32: |
| 39647 | Text.Op = PrintName("LoadSint32" ); |
| 39648 | break; |
| 39649 | case OP_LoadUint32: |
| 39650 | Text.Op = PrintName("LoadUint32" ); |
| 39651 | break; |
| 39652 | case OP_LoadSint64: |
| 39653 | Text.Op = PrintName("LoadSint64" ); |
| 39654 | break; |
| 39655 | case OP_LoadUint64: |
| 39656 | Text.Op = PrintName("LoadUint64" ); |
| 39657 | break; |
| 39658 | case OP_LoadIntAP: |
| 39659 | Text.Op = PrintName("LoadIntAP" ); |
| 39660 | break; |
| 39661 | case OP_LoadIntAPS: |
| 39662 | Text.Op = PrintName("LoadIntAPS" ); |
| 39663 | break; |
| 39664 | case OP_LoadBool: |
| 39665 | Text.Op = PrintName("LoadBool" ); |
| 39666 | break; |
| 39667 | case OP_LoadFixedPoint: |
| 39668 | Text.Op = PrintName("LoadFixedPoint" ); |
| 39669 | break; |
| 39670 | case OP_LoadPtr: |
| 39671 | Text.Op = PrintName("LoadPtr" ); |
| 39672 | break; |
| 39673 | case OP_LoadMemberPtr: |
| 39674 | Text.Op = PrintName("LoadMemberPtr" ); |
| 39675 | break; |
| 39676 | case OP_LoadFloat: |
| 39677 | Text.Op = PrintName("LoadFloat" ); |
| 39678 | break; |
| 39679 | case OP_LoadReflect: |
| 39680 | Text.Op = PrintName("LoadReflect" ); |
| 39681 | break; |
| 39682 | #endif |
| 39683 | #if defined(GET_EVAL_PROTO) || defined(GET_LINK_PROTO) |
| 39684 | bool emitLoadSint8(SourceInfo); |
| 39685 | bool emitLoadUint8(SourceInfo); |
| 39686 | bool emitLoadSint16(SourceInfo); |
| 39687 | bool emitLoadUint16(SourceInfo); |
| 39688 | bool emitLoadSint32(SourceInfo); |
| 39689 | bool emitLoadUint32(SourceInfo); |
| 39690 | bool emitLoadSint64(SourceInfo); |
| 39691 | bool emitLoadUint64(SourceInfo); |
| 39692 | bool emitLoadIntAP(SourceInfo); |
| 39693 | bool emitLoadIntAPS(SourceInfo); |
| 39694 | bool emitLoadBool(SourceInfo); |
| 39695 | bool emitLoadFixedPoint(SourceInfo); |
| 39696 | bool emitLoadPtr(SourceInfo); |
| 39697 | bool emitLoadMemberPtr(SourceInfo); |
| 39698 | bool emitLoadFloat(SourceInfo); |
| 39699 | bool emitLoadReflect(SourceInfo); |
| 39700 | #endif |
| 39701 | #if defined(GET_EVAL_PROTO) || defined(GET_LINK_PROTO) |
| 39702 | [[nodiscard]] bool emitLoad(PrimType, SourceInfo I); |
| 39703 | #endif |
| 39704 | #if defined(GET_EVAL_IMPL) || defined(GET_LINK_IMPL) |
| 39705 | bool |
| 39706 | #if defined(GET_EVAL_IMPL) |
| 39707 | EvalEmitter |
| 39708 | #else |
| 39709 | ByteCodeEmitter |
| 39710 | #endif |
| 39711 | ::emitLoad(PrimType T0, SourceInfo I) { |
| 39712 | switch (T0) { |
| 39713 | case PT_Sint8: |
| 39714 | return emitLoadSint8(I); |
| 39715 | case PT_Uint8: |
| 39716 | return emitLoadUint8(I); |
| 39717 | case PT_Sint16: |
| 39718 | return emitLoadSint16(I); |
| 39719 | case PT_Uint16: |
| 39720 | return emitLoadUint16(I); |
| 39721 | case PT_Sint32: |
| 39722 | return emitLoadSint32(I); |
| 39723 | case PT_Uint32: |
| 39724 | return emitLoadUint32(I); |
| 39725 | case PT_Sint64: |
| 39726 | return emitLoadSint64(I); |
| 39727 | case PT_Uint64: |
| 39728 | return emitLoadUint64(I); |
| 39729 | case PT_IntAP: |
| 39730 | return emitLoadIntAP(I); |
| 39731 | case PT_IntAPS: |
| 39732 | return emitLoadIntAPS(I); |
| 39733 | case PT_Bool: |
| 39734 | return emitLoadBool(I); |
| 39735 | case PT_FixedPoint: |
| 39736 | return emitLoadFixedPoint(I); |
| 39737 | case PT_Ptr: |
| 39738 | return emitLoadPtr(I); |
| 39739 | case PT_MemberPtr: |
| 39740 | return emitLoadMemberPtr(I); |
| 39741 | case PT_Float: |
| 39742 | return emitLoadFloat(I); |
| 39743 | case PT_Reflect: |
| 39744 | return emitLoadReflect(I); |
| 39745 | } |
| 39746 | llvm_unreachable("invalid enum value" ); |
| 39747 | } |
| 39748 | #endif |
| 39749 | #ifdef GET_LINK_IMPL |
| 39750 | bool ByteCodeEmitter::emitLoadSint8(SourceInfo L) { |
| 39751 | return emitOp<>(OP_LoadSint8, L); |
| 39752 | } |
| 39753 | bool ByteCodeEmitter::emitLoadUint8(SourceInfo L) { |
| 39754 | return emitOp<>(OP_LoadUint8, L); |
| 39755 | } |
| 39756 | bool ByteCodeEmitter::emitLoadSint16(SourceInfo L) { |
| 39757 | return emitOp<>(OP_LoadSint16, L); |
| 39758 | } |
| 39759 | bool ByteCodeEmitter::emitLoadUint16(SourceInfo L) { |
| 39760 | return emitOp<>(OP_LoadUint16, L); |
| 39761 | } |
| 39762 | bool ByteCodeEmitter::emitLoadSint32(SourceInfo L) { |
| 39763 | return emitOp<>(OP_LoadSint32, L); |
| 39764 | } |
| 39765 | bool ByteCodeEmitter::emitLoadUint32(SourceInfo L) { |
| 39766 | return emitOp<>(OP_LoadUint32, L); |
| 39767 | } |
| 39768 | bool ByteCodeEmitter::emitLoadSint64(SourceInfo L) { |
| 39769 | return emitOp<>(OP_LoadSint64, L); |
| 39770 | } |
| 39771 | bool ByteCodeEmitter::emitLoadUint64(SourceInfo L) { |
| 39772 | return emitOp<>(OP_LoadUint64, L); |
| 39773 | } |
| 39774 | bool ByteCodeEmitter::emitLoadIntAP(SourceInfo L) { |
| 39775 | return emitOp<>(OP_LoadIntAP, L); |
| 39776 | } |
| 39777 | bool ByteCodeEmitter::emitLoadIntAPS(SourceInfo L) { |
| 39778 | return emitOp<>(OP_LoadIntAPS, L); |
| 39779 | } |
| 39780 | bool ByteCodeEmitter::emitLoadBool(SourceInfo L) { |
| 39781 | return emitOp<>(OP_LoadBool, L); |
| 39782 | } |
| 39783 | bool ByteCodeEmitter::emitLoadFixedPoint(SourceInfo L) { |
| 39784 | return emitOp<>(OP_LoadFixedPoint, L); |
| 39785 | } |
| 39786 | bool ByteCodeEmitter::emitLoadPtr(SourceInfo L) { |
| 39787 | return emitOp<>(OP_LoadPtr, L); |
| 39788 | } |
| 39789 | bool ByteCodeEmitter::emitLoadMemberPtr(SourceInfo L) { |
| 39790 | return emitOp<>(OP_LoadMemberPtr, L); |
| 39791 | } |
| 39792 | bool ByteCodeEmitter::emitLoadFloat(SourceInfo L) { |
| 39793 | return emitOp<>(OP_LoadFloat, L); |
| 39794 | } |
| 39795 | bool ByteCodeEmitter::emitLoadReflect(SourceInfo L) { |
| 39796 | return emitOp<>(OP_LoadReflect, L); |
| 39797 | } |
| 39798 | #endif |
| 39799 | #ifdef GET_EVAL_IMPL |
| 39800 | bool EvalEmitter::emitLoadSint8(SourceInfo L) { |
| 39801 | if (!isActive()) return true; |
| 39802 | CurrentSource = L; |
| 39803 | return Load<PT_Sint8>(S, CodePtr()); |
| 39804 | } |
| 39805 | bool EvalEmitter::emitLoadUint8(SourceInfo L) { |
| 39806 | if (!isActive()) return true; |
| 39807 | CurrentSource = L; |
| 39808 | return Load<PT_Uint8>(S, CodePtr()); |
| 39809 | } |
| 39810 | bool EvalEmitter::emitLoadSint16(SourceInfo L) { |
| 39811 | if (!isActive()) return true; |
| 39812 | CurrentSource = L; |
| 39813 | return Load<PT_Sint16>(S, CodePtr()); |
| 39814 | } |
| 39815 | bool EvalEmitter::emitLoadUint16(SourceInfo L) { |
| 39816 | if (!isActive()) return true; |
| 39817 | CurrentSource = L; |
| 39818 | return Load<PT_Uint16>(S, CodePtr()); |
| 39819 | } |
| 39820 | bool EvalEmitter::emitLoadSint32(SourceInfo L) { |
| 39821 | if (!isActive()) return true; |
| 39822 | CurrentSource = L; |
| 39823 | return Load<PT_Sint32>(S, CodePtr()); |
| 39824 | } |
| 39825 | bool EvalEmitter::emitLoadUint32(SourceInfo L) { |
| 39826 | if (!isActive()) return true; |
| 39827 | CurrentSource = L; |
| 39828 | return Load<PT_Uint32>(S, CodePtr()); |
| 39829 | } |
| 39830 | bool EvalEmitter::emitLoadSint64(SourceInfo L) { |
| 39831 | if (!isActive()) return true; |
| 39832 | CurrentSource = L; |
| 39833 | return Load<PT_Sint64>(S, CodePtr()); |
| 39834 | } |
| 39835 | bool EvalEmitter::emitLoadUint64(SourceInfo L) { |
| 39836 | if (!isActive()) return true; |
| 39837 | CurrentSource = L; |
| 39838 | return Load<PT_Uint64>(S, CodePtr()); |
| 39839 | } |
| 39840 | bool EvalEmitter::emitLoadIntAP(SourceInfo L) { |
| 39841 | if (!isActive()) return true; |
| 39842 | CurrentSource = L; |
| 39843 | return Load<PT_IntAP>(S, CodePtr()); |
| 39844 | } |
| 39845 | bool EvalEmitter::emitLoadIntAPS(SourceInfo L) { |
| 39846 | if (!isActive()) return true; |
| 39847 | CurrentSource = L; |
| 39848 | return Load<PT_IntAPS>(S, CodePtr()); |
| 39849 | } |
| 39850 | bool EvalEmitter::emitLoadBool(SourceInfo L) { |
| 39851 | if (!isActive()) return true; |
| 39852 | CurrentSource = L; |
| 39853 | return Load<PT_Bool>(S, CodePtr()); |
| 39854 | } |
| 39855 | bool EvalEmitter::emitLoadFixedPoint(SourceInfo L) { |
| 39856 | if (!isActive()) return true; |
| 39857 | CurrentSource = L; |
| 39858 | return Load<PT_FixedPoint>(S, CodePtr()); |
| 39859 | } |
| 39860 | bool EvalEmitter::emitLoadPtr(SourceInfo L) { |
| 39861 | if (!isActive()) return true; |
| 39862 | CurrentSource = L; |
| 39863 | return Load<PT_Ptr>(S, CodePtr()); |
| 39864 | } |
| 39865 | bool EvalEmitter::emitLoadMemberPtr(SourceInfo L) { |
| 39866 | if (!isActive()) return true; |
| 39867 | CurrentSource = L; |
| 39868 | return Load<PT_MemberPtr>(S, CodePtr()); |
| 39869 | } |
| 39870 | bool EvalEmitter::emitLoadFloat(SourceInfo L) { |
| 39871 | if (!isActive()) return true; |
| 39872 | CurrentSource = L; |
| 39873 | return Load<PT_Float>(S, CodePtr()); |
| 39874 | } |
| 39875 | bool EvalEmitter::emitLoadReflect(SourceInfo L) { |
| 39876 | if (!isActive()) return true; |
| 39877 | CurrentSource = L; |
| 39878 | return Load<PT_Reflect>(S, CodePtr()); |
| 39879 | } |
| 39880 | #endif |
| 39881 | #ifdef GET_OPCODE_NAMES |
| 39882 | OP_LoadPopSint8, |
| 39883 | OP_LoadPopUint8, |
| 39884 | OP_LoadPopSint16, |
| 39885 | OP_LoadPopUint16, |
| 39886 | OP_LoadPopSint32, |
| 39887 | OP_LoadPopUint32, |
| 39888 | OP_LoadPopSint64, |
| 39889 | OP_LoadPopUint64, |
| 39890 | OP_LoadPopIntAP, |
| 39891 | OP_LoadPopIntAPS, |
| 39892 | OP_LoadPopBool, |
| 39893 | OP_LoadPopFixedPoint, |
| 39894 | OP_LoadPopPtr, |
| 39895 | OP_LoadPopMemberPtr, |
| 39896 | OP_LoadPopFloat, |
| 39897 | OP_LoadPopReflect, |
| 39898 | #endif |
| 39899 | #ifdef GET_INTERPFN_LIST |
| 39900 | &Interp_LoadPopSint8, |
| 39901 | &Interp_LoadPopUint8, |
| 39902 | &Interp_LoadPopSint16, |
| 39903 | &Interp_LoadPopUint16, |
| 39904 | &Interp_LoadPopSint32, |
| 39905 | &Interp_LoadPopUint32, |
| 39906 | &Interp_LoadPopSint64, |
| 39907 | &Interp_LoadPopUint64, |
| 39908 | &Interp_LoadPopIntAP, |
| 39909 | &Interp_LoadPopIntAPS, |
| 39910 | &Interp_LoadPopBool, |
| 39911 | &Interp_LoadPopFixedPoint, |
| 39912 | &Interp_LoadPopPtr, |
| 39913 | &Interp_LoadPopMemberPtr, |
| 39914 | &Interp_LoadPopFloat, |
| 39915 | &Interp_LoadPopReflect, |
| 39916 | #endif |
| 39917 | #ifdef GET_INTERPFN_DISPATCHERS |
| 39918 | PRESERVE_NONE |
| 39919 | static bool Interp_LoadPopSint8(InterpState &S) { |
| 39920 | if (!LoadPop<PT_Sint8>(S, S.PC)) return false; |
| 39921 | #if USE_TAILCALLS |
| 39922 | MUSTTAIL return InterpNext(S); |
| 39923 | #else |
| 39924 | return true; |
| 39925 | #endif |
| 39926 | } |
| 39927 | PRESERVE_NONE |
| 39928 | static bool Interp_LoadPopUint8(InterpState &S) { |
| 39929 | if (!LoadPop<PT_Uint8>(S, S.PC)) return false; |
| 39930 | #if USE_TAILCALLS |
| 39931 | MUSTTAIL return InterpNext(S); |
| 39932 | #else |
| 39933 | return true; |
| 39934 | #endif |
| 39935 | } |
| 39936 | PRESERVE_NONE |
| 39937 | static bool Interp_LoadPopSint16(InterpState &S) { |
| 39938 | if (!LoadPop<PT_Sint16>(S, S.PC)) return false; |
| 39939 | #if USE_TAILCALLS |
| 39940 | MUSTTAIL return InterpNext(S); |
| 39941 | #else |
| 39942 | return true; |
| 39943 | #endif |
| 39944 | } |
| 39945 | PRESERVE_NONE |
| 39946 | static bool Interp_LoadPopUint16(InterpState &S) { |
| 39947 | if (!LoadPop<PT_Uint16>(S, S.PC)) return false; |
| 39948 | #if USE_TAILCALLS |
| 39949 | MUSTTAIL return InterpNext(S); |
| 39950 | #else |
| 39951 | return true; |
| 39952 | #endif |
| 39953 | } |
| 39954 | PRESERVE_NONE |
| 39955 | static bool Interp_LoadPopSint32(InterpState &S) { |
| 39956 | if (!LoadPop<PT_Sint32>(S, S.PC)) return false; |
| 39957 | #if USE_TAILCALLS |
| 39958 | MUSTTAIL return InterpNext(S); |
| 39959 | #else |
| 39960 | return true; |
| 39961 | #endif |
| 39962 | } |
| 39963 | PRESERVE_NONE |
| 39964 | static bool Interp_LoadPopUint32(InterpState &S) { |
| 39965 | if (!LoadPop<PT_Uint32>(S, S.PC)) return false; |
| 39966 | #if USE_TAILCALLS |
| 39967 | MUSTTAIL return InterpNext(S); |
| 39968 | #else |
| 39969 | return true; |
| 39970 | #endif |
| 39971 | } |
| 39972 | PRESERVE_NONE |
| 39973 | static bool Interp_LoadPopSint64(InterpState &S) { |
| 39974 | if (!LoadPop<PT_Sint64>(S, S.PC)) return false; |
| 39975 | #if USE_TAILCALLS |
| 39976 | MUSTTAIL return InterpNext(S); |
| 39977 | #else |
| 39978 | return true; |
| 39979 | #endif |
| 39980 | } |
| 39981 | PRESERVE_NONE |
| 39982 | static bool Interp_LoadPopUint64(InterpState &S) { |
| 39983 | if (!LoadPop<PT_Uint64>(S, S.PC)) return false; |
| 39984 | #if USE_TAILCALLS |
| 39985 | MUSTTAIL return InterpNext(S); |
| 39986 | #else |
| 39987 | return true; |
| 39988 | #endif |
| 39989 | } |
| 39990 | PRESERVE_NONE |
| 39991 | static bool Interp_LoadPopIntAP(InterpState &S) { |
| 39992 | if (!LoadPop<PT_IntAP>(S, S.PC)) return false; |
| 39993 | #if USE_TAILCALLS |
| 39994 | MUSTTAIL return InterpNext(S); |
| 39995 | #else |
| 39996 | return true; |
| 39997 | #endif |
| 39998 | } |
| 39999 | PRESERVE_NONE |
| 40000 | static bool Interp_LoadPopIntAPS(InterpState &S) { |
| 40001 | if (!LoadPop<PT_IntAPS>(S, S.PC)) return false; |
| 40002 | #if USE_TAILCALLS |
| 40003 | MUSTTAIL return InterpNext(S); |
| 40004 | #else |
| 40005 | return true; |
| 40006 | #endif |
| 40007 | } |
| 40008 | PRESERVE_NONE |
| 40009 | static bool Interp_LoadPopBool(InterpState &S) { |
| 40010 | if (!LoadPop<PT_Bool>(S, S.PC)) return false; |
| 40011 | #if USE_TAILCALLS |
| 40012 | MUSTTAIL return InterpNext(S); |
| 40013 | #else |
| 40014 | return true; |
| 40015 | #endif |
| 40016 | } |
| 40017 | PRESERVE_NONE |
| 40018 | static bool Interp_LoadPopFixedPoint(InterpState &S) { |
| 40019 | if (!LoadPop<PT_FixedPoint>(S, S.PC)) return false; |
| 40020 | #if USE_TAILCALLS |
| 40021 | MUSTTAIL return InterpNext(S); |
| 40022 | #else |
| 40023 | return true; |
| 40024 | #endif |
| 40025 | } |
| 40026 | PRESERVE_NONE |
| 40027 | static bool Interp_LoadPopPtr(InterpState &S) { |
| 40028 | if (!LoadPop<PT_Ptr>(S, S.PC)) return false; |
| 40029 | #if USE_TAILCALLS |
| 40030 | MUSTTAIL return InterpNext(S); |
| 40031 | #else |
| 40032 | return true; |
| 40033 | #endif |
| 40034 | } |
| 40035 | PRESERVE_NONE |
| 40036 | static bool Interp_LoadPopMemberPtr(InterpState &S) { |
| 40037 | if (!LoadPop<PT_MemberPtr>(S, S.PC)) return false; |
| 40038 | #if USE_TAILCALLS |
| 40039 | MUSTTAIL return InterpNext(S); |
| 40040 | #else |
| 40041 | return true; |
| 40042 | #endif |
| 40043 | } |
| 40044 | PRESERVE_NONE |
| 40045 | static bool Interp_LoadPopFloat(InterpState &S) { |
| 40046 | if (!LoadPop<PT_Float>(S, S.PC)) return false; |
| 40047 | #if USE_TAILCALLS |
| 40048 | MUSTTAIL return InterpNext(S); |
| 40049 | #else |
| 40050 | return true; |
| 40051 | #endif |
| 40052 | } |
| 40053 | PRESERVE_NONE |
| 40054 | static bool Interp_LoadPopReflect(InterpState &S) { |
| 40055 | if (!LoadPop<PT_Reflect>(S, S.PC)) return false; |
| 40056 | #if USE_TAILCALLS |
| 40057 | MUSTTAIL return InterpNext(S); |
| 40058 | #else |
| 40059 | return true; |
| 40060 | #endif |
| 40061 | } |
| 40062 | #endif |
| 40063 | #ifdef GET_DISASM |
| 40064 | case OP_LoadPopSint8: |
| 40065 | Text.Op = PrintName("LoadPopSint8" ); |
| 40066 | break; |
| 40067 | case OP_LoadPopUint8: |
| 40068 | Text.Op = PrintName("LoadPopUint8" ); |
| 40069 | break; |
| 40070 | case OP_LoadPopSint16: |
| 40071 | Text.Op = PrintName("LoadPopSint16" ); |
| 40072 | break; |
| 40073 | case OP_LoadPopUint16: |
| 40074 | Text.Op = PrintName("LoadPopUint16" ); |
| 40075 | break; |
| 40076 | case OP_LoadPopSint32: |
| 40077 | Text.Op = PrintName("LoadPopSint32" ); |
| 40078 | break; |
| 40079 | case OP_LoadPopUint32: |
| 40080 | Text.Op = PrintName("LoadPopUint32" ); |
| 40081 | break; |
| 40082 | case OP_LoadPopSint64: |
| 40083 | Text.Op = PrintName("LoadPopSint64" ); |
| 40084 | break; |
| 40085 | case OP_LoadPopUint64: |
| 40086 | Text.Op = PrintName("LoadPopUint64" ); |
| 40087 | break; |
| 40088 | case OP_LoadPopIntAP: |
| 40089 | Text.Op = PrintName("LoadPopIntAP" ); |
| 40090 | break; |
| 40091 | case OP_LoadPopIntAPS: |
| 40092 | Text.Op = PrintName("LoadPopIntAPS" ); |
| 40093 | break; |
| 40094 | case OP_LoadPopBool: |
| 40095 | Text.Op = PrintName("LoadPopBool" ); |
| 40096 | break; |
| 40097 | case OP_LoadPopFixedPoint: |
| 40098 | Text.Op = PrintName("LoadPopFixedPoint" ); |
| 40099 | break; |
| 40100 | case OP_LoadPopPtr: |
| 40101 | Text.Op = PrintName("LoadPopPtr" ); |
| 40102 | break; |
| 40103 | case OP_LoadPopMemberPtr: |
| 40104 | Text.Op = PrintName("LoadPopMemberPtr" ); |
| 40105 | break; |
| 40106 | case OP_LoadPopFloat: |
| 40107 | Text.Op = PrintName("LoadPopFloat" ); |
| 40108 | break; |
| 40109 | case OP_LoadPopReflect: |
| 40110 | Text.Op = PrintName("LoadPopReflect" ); |
| 40111 | break; |
| 40112 | #endif |
| 40113 | #if defined(GET_EVAL_PROTO) || defined(GET_LINK_PROTO) |
| 40114 | bool emitLoadPopSint8(SourceInfo); |
| 40115 | bool emitLoadPopUint8(SourceInfo); |
| 40116 | bool emitLoadPopSint16(SourceInfo); |
| 40117 | bool emitLoadPopUint16(SourceInfo); |
| 40118 | bool emitLoadPopSint32(SourceInfo); |
| 40119 | bool emitLoadPopUint32(SourceInfo); |
| 40120 | bool emitLoadPopSint64(SourceInfo); |
| 40121 | bool emitLoadPopUint64(SourceInfo); |
| 40122 | bool emitLoadPopIntAP(SourceInfo); |
| 40123 | bool emitLoadPopIntAPS(SourceInfo); |
| 40124 | bool emitLoadPopBool(SourceInfo); |
| 40125 | bool emitLoadPopFixedPoint(SourceInfo); |
| 40126 | bool emitLoadPopPtr(SourceInfo); |
| 40127 | bool emitLoadPopMemberPtr(SourceInfo); |
| 40128 | bool emitLoadPopFloat(SourceInfo); |
| 40129 | bool emitLoadPopReflect(SourceInfo); |
| 40130 | #endif |
| 40131 | #if defined(GET_EVAL_PROTO) || defined(GET_LINK_PROTO) |
| 40132 | [[nodiscard]] bool emitLoadPop(PrimType, SourceInfo I); |
| 40133 | #endif |
| 40134 | #if defined(GET_EVAL_IMPL) || defined(GET_LINK_IMPL) |
| 40135 | bool |
| 40136 | #if defined(GET_EVAL_IMPL) |
| 40137 | EvalEmitter |
| 40138 | #else |
| 40139 | ByteCodeEmitter |
| 40140 | #endif |
| 40141 | ::emitLoadPop(PrimType T0, SourceInfo I) { |
| 40142 | switch (T0) { |
| 40143 | case PT_Sint8: |
| 40144 | return emitLoadPopSint8(I); |
| 40145 | case PT_Uint8: |
| 40146 | return emitLoadPopUint8(I); |
| 40147 | case PT_Sint16: |
| 40148 | return emitLoadPopSint16(I); |
| 40149 | case PT_Uint16: |
| 40150 | return emitLoadPopUint16(I); |
| 40151 | case PT_Sint32: |
| 40152 | return emitLoadPopSint32(I); |
| 40153 | case PT_Uint32: |
| 40154 | return emitLoadPopUint32(I); |
| 40155 | case PT_Sint64: |
| 40156 | return emitLoadPopSint64(I); |
| 40157 | case PT_Uint64: |
| 40158 | return emitLoadPopUint64(I); |
| 40159 | case PT_IntAP: |
| 40160 | return emitLoadPopIntAP(I); |
| 40161 | case PT_IntAPS: |
| 40162 | return emitLoadPopIntAPS(I); |
| 40163 | case PT_Bool: |
| 40164 | return emitLoadPopBool(I); |
| 40165 | case PT_FixedPoint: |
| 40166 | return emitLoadPopFixedPoint(I); |
| 40167 | case PT_Ptr: |
| 40168 | return emitLoadPopPtr(I); |
| 40169 | case PT_MemberPtr: |
| 40170 | return emitLoadPopMemberPtr(I); |
| 40171 | case PT_Float: |
| 40172 | return emitLoadPopFloat(I); |
| 40173 | case PT_Reflect: |
| 40174 | return emitLoadPopReflect(I); |
| 40175 | } |
| 40176 | llvm_unreachable("invalid enum value" ); |
| 40177 | } |
| 40178 | #endif |
| 40179 | #ifdef GET_LINK_IMPL |
| 40180 | bool ByteCodeEmitter::emitLoadPopSint8(SourceInfo L) { |
| 40181 | return emitOp<>(OP_LoadPopSint8, L); |
| 40182 | } |
| 40183 | bool ByteCodeEmitter::emitLoadPopUint8(SourceInfo L) { |
| 40184 | return emitOp<>(OP_LoadPopUint8, L); |
| 40185 | } |
| 40186 | bool ByteCodeEmitter::emitLoadPopSint16(SourceInfo L) { |
| 40187 | return emitOp<>(OP_LoadPopSint16, L); |
| 40188 | } |
| 40189 | bool ByteCodeEmitter::emitLoadPopUint16(SourceInfo L) { |
| 40190 | return emitOp<>(OP_LoadPopUint16, L); |
| 40191 | } |
| 40192 | bool ByteCodeEmitter::emitLoadPopSint32(SourceInfo L) { |
| 40193 | return emitOp<>(OP_LoadPopSint32, L); |
| 40194 | } |
| 40195 | bool ByteCodeEmitter::emitLoadPopUint32(SourceInfo L) { |
| 40196 | return emitOp<>(OP_LoadPopUint32, L); |
| 40197 | } |
| 40198 | bool ByteCodeEmitter::emitLoadPopSint64(SourceInfo L) { |
| 40199 | return emitOp<>(OP_LoadPopSint64, L); |
| 40200 | } |
| 40201 | bool ByteCodeEmitter::emitLoadPopUint64(SourceInfo L) { |
| 40202 | return emitOp<>(OP_LoadPopUint64, L); |
| 40203 | } |
| 40204 | bool ByteCodeEmitter::emitLoadPopIntAP(SourceInfo L) { |
| 40205 | return emitOp<>(OP_LoadPopIntAP, L); |
| 40206 | } |
| 40207 | bool ByteCodeEmitter::emitLoadPopIntAPS(SourceInfo L) { |
| 40208 | return emitOp<>(OP_LoadPopIntAPS, L); |
| 40209 | } |
| 40210 | bool ByteCodeEmitter::emitLoadPopBool(SourceInfo L) { |
| 40211 | return emitOp<>(OP_LoadPopBool, L); |
| 40212 | } |
| 40213 | bool ByteCodeEmitter::emitLoadPopFixedPoint(SourceInfo L) { |
| 40214 | return emitOp<>(OP_LoadPopFixedPoint, L); |
| 40215 | } |
| 40216 | bool ByteCodeEmitter::emitLoadPopPtr(SourceInfo L) { |
| 40217 | return emitOp<>(OP_LoadPopPtr, L); |
| 40218 | } |
| 40219 | bool ByteCodeEmitter::emitLoadPopMemberPtr(SourceInfo L) { |
| 40220 | return emitOp<>(OP_LoadPopMemberPtr, L); |
| 40221 | } |
| 40222 | bool ByteCodeEmitter::emitLoadPopFloat(SourceInfo L) { |
| 40223 | return emitOp<>(OP_LoadPopFloat, L); |
| 40224 | } |
| 40225 | bool ByteCodeEmitter::emitLoadPopReflect(SourceInfo L) { |
| 40226 | return emitOp<>(OP_LoadPopReflect, L); |
| 40227 | } |
| 40228 | #endif |
| 40229 | #ifdef GET_EVAL_IMPL |
| 40230 | bool EvalEmitter::emitLoadPopSint8(SourceInfo L) { |
| 40231 | if (!isActive()) return true; |
| 40232 | CurrentSource = L; |
| 40233 | return LoadPop<PT_Sint8>(S, CodePtr()); |
| 40234 | } |
| 40235 | bool EvalEmitter::emitLoadPopUint8(SourceInfo L) { |
| 40236 | if (!isActive()) return true; |
| 40237 | CurrentSource = L; |
| 40238 | return LoadPop<PT_Uint8>(S, CodePtr()); |
| 40239 | } |
| 40240 | bool EvalEmitter::emitLoadPopSint16(SourceInfo L) { |
| 40241 | if (!isActive()) return true; |
| 40242 | CurrentSource = L; |
| 40243 | return LoadPop<PT_Sint16>(S, CodePtr()); |
| 40244 | } |
| 40245 | bool EvalEmitter::emitLoadPopUint16(SourceInfo L) { |
| 40246 | if (!isActive()) return true; |
| 40247 | CurrentSource = L; |
| 40248 | return LoadPop<PT_Uint16>(S, CodePtr()); |
| 40249 | } |
| 40250 | bool EvalEmitter::emitLoadPopSint32(SourceInfo L) { |
| 40251 | if (!isActive()) return true; |
| 40252 | CurrentSource = L; |
| 40253 | return LoadPop<PT_Sint32>(S, CodePtr()); |
| 40254 | } |
| 40255 | bool EvalEmitter::emitLoadPopUint32(SourceInfo L) { |
| 40256 | if (!isActive()) return true; |
| 40257 | CurrentSource = L; |
| 40258 | return LoadPop<PT_Uint32>(S, CodePtr()); |
| 40259 | } |
| 40260 | bool EvalEmitter::emitLoadPopSint64(SourceInfo L) { |
| 40261 | if (!isActive()) return true; |
| 40262 | CurrentSource = L; |
| 40263 | return LoadPop<PT_Sint64>(S, CodePtr()); |
| 40264 | } |
| 40265 | bool EvalEmitter::emitLoadPopUint64(SourceInfo L) { |
| 40266 | if (!isActive()) return true; |
| 40267 | CurrentSource = L; |
| 40268 | return LoadPop<PT_Uint64>(S, CodePtr()); |
| 40269 | } |
| 40270 | bool EvalEmitter::emitLoadPopIntAP(SourceInfo L) { |
| 40271 | if (!isActive()) return true; |
| 40272 | CurrentSource = L; |
| 40273 | return LoadPop<PT_IntAP>(S, CodePtr()); |
| 40274 | } |
| 40275 | bool EvalEmitter::emitLoadPopIntAPS(SourceInfo L) { |
| 40276 | if (!isActive()) return true; |
| 40277 | CurrentSource = L; |
| 40278 | return LoadPop<PT_IntAPS>(S, CodePtr()); |
| 40279 | } |
| 40280 | bool EvalEmitter::emitLoadPopBool(SourceInfo L) { |
| 40281 | if (!isActive()) return true; |
| 40282 | CurrentSource = L; |
| 40283 | return LoadPop<PT_Bool>(S, CodePtr()); |
| 40284 | } |
| 40285 | bool EvalEmitter::emitLoadPopFixedPoint(SourceInfo L) { |
| 40286 | if (!isActive()) return true; |
| 40287 | CurrentSource = L; |
| 40288 | return LoadPop<PT_FixedPoint>(S, CodePtr()); |
| 40289 | } |
| 40290 | bool EvalEmitter::emitLoadPopPtr(SourceInfo L) { |
| 40291 | if (!isActive()) return true; |
| 40292 | CurrentSource = L; |
| 40293 | return LoadPop<PT_Ptr>(S, CodePtr()); |
| 40294 | } |
| 40295 | bool EvalEmitter::emitLoadPopMemberPtr(SourceInfo L) { |
| 40296 | if (!isActive()) return true; |
| 40297 | CurrentSource = L; |
| 40298 | return LoadPop<PT_MemberPtr>(S, CodePtr()); |
| 40299 | } |
| 40300 | bool EvalEmitter::emitLoadPopFloat(SourceInfo L) { |
| 40301 | if (!isActive()) return true; |
| 40302 | CurrentSource = L; |
| 40303 | return LoadPop<PT_Float>(S, CodePtr()); |
| 40304 | } |
| 40305 | bool EvalEmitter::emitLoadPopReflect(SourceInfo L) { |
| 40306 | if (!isActive()) return true; |
| 40307 | CurrentSource = L; |
| 40308 | return LoadPop<PT_Reflect>(S, CodePtr()); |
| 40309 | } |
| 40310 | #endif |
| 40311 | #ifdef GET_OPCODE_NAMES |
| 40312 | OP_LoadPopL, |
| 40313 | #endif |
| 40314 | #ifdef GET_INTERPFN_LIST |
| 40315 | &Interp_LoadPopL, |
| 40316 | #endif |
| 40317 | #ifdef GET_INTERPFN_DISPATCHERS |
| 40318 | PRESERVE_NONE |
| 40319 | static bool Interp_LoadPopL(InterpState &S) { |
| 40320 | if (!LoadPopL(S, S.PC)) return false; |
| 40321 | #if USE_TAILCALLS |
| 40322 | MUSTTAIL return InterpNext(S); |
| 40323 | #else |
| 40324 | return true; |
| 40325 | #endif |
| 40326 | } |
| 40327 | #endif |
| 40328 | #ifdef GET_DISASM |
| 40329 | case OP_LoadPopL: |
| 40330 | Text.Op = PrintName("LoadPopL" ); |
| 40331 | break; |
| 40332 | #endif |
| 40333 | #if defined(GET_EVAL_PROTO) || defined(GET_LINK_PROTO) |
| 40334 | bool emitLoadPopL(SourceInfo); |
| 40335 | #endif |
| 40336 | #ifdef GET_LINK_IMPL |
| 40337 | bool ByteCodeEmitter::emitLoadPopL(SourceInfo L) { |
| 40338 | return emitOp<>(OP_LoadPopL, L); |
| 40339 | } |
| 40340 | #endif |
| 40341 | #ifdef GET_EVAL_IMPL |
| 40342 | bool EvalEmitter::emitLoadPopL(SourceInfo L) { |
| 40343 | if (!isActive()) return true; |
| 40344 | CurrentSource = L; |
| 40345 | return LoadPopL(S, CodePtr()); |
| 40346 | } |
| 40347 | #endif |
| 40348 | #ifdef GET_OPCODE_NAMES |
| 40349 | OP_MarkDestroyed, |
| 40350 | #endif |
| 40351 | #ifdef GET_INTERPFN_LIST |
| 40352 | &Interp_MarkDestroyed, |
| 40353 | #endif |
| 40354 | #ifdef GET_INTERPFN_DISPATCHERS |
| 40355 | PRESERVE_NONE |
| 40356 | static bool Interp_MarkDestroyed(InterpState &S) { |
| 40357 | if (!MarkDestroyed(S, S.PC)) return false; |
| 40358 | #if USE_TAILCALLS |
| 40359 | MUSTTAIL return InterpNext(S); |
| 40360 | #else |
| 40361 | return true; |
| 40362 | #endif |
| 40363 | } |
| 40364 | #endif |
| 40365 | #ifdef GET_DISASM |
| 40366 | case OP_MarkDestroyed: |
| 40367 | Text.Op = PrintName("MarkDestroyed" ); |
| 40368 | break; |
| 40369 | #endif |
| 40370 | #if defined(GET_EVAL_PROTO) || defined(GET_LINK_PROTO) |
| 40371 | bool emitMarkDestroyed(SourceInfo); |
| 40372 | #endif |
| 40373 | #ifdef GET_LINK_IMPL |
| 40374 | bool ByteCodeEmitter::emitMarkDestroyed(SourceInfo L) { |
| 40375 | return emitOp<>(OP_MarkDestroyed, L); |
| 40376 | } |
| 40377 | #endif |
| 40378 | #ifdef GET_EVAL_IMPL |
| 40379 | bool EvalEmitter::emitMarkDestroyed(SourceInfo L) { |
| 40380 | if (!isActive()) return true; |
| 40381 | CurrentSource = L; |
| 40382 | return MarkDestroyed(S, CodePtr()); |
| 40383 | } |
| 40384 | #endif |
| 40385 | #ifdef GET_OPCODE_NAMES |
| 40386 | OP_Memcpy, |
| 40387 | #endif |
| 40388 | #ifdef GET_INTERPFN_LIST |
| 40389 | &Interp_Memcpy, |
| 40390 | #endif |
| 40391 | #ifdef GET_INTERPFN_DISPATCHERS |
| 40392 | PRESERVE_NONE |
| 40393 | static bool Interp_Memcpy(InterpState &S) { |
| 40394 | if (!Memcpy(S, S.PC)) return false; |
| 40395 | #if USE_TAILCALLS |
| 40396 | MUSTTAIL return InterpNext(S); |
| 40397 | #else |
| 40398 | return true; |
| 40399 | #endif |
| 40400 | } |
| 40401 | #endif |
| 40402 | #ifdef GET_DISASM |
| 40403 | case OP_Memcpy: |
| 40404 | Text.Op = PrintName("Memcpy" ); |
| 40405 | break; |
| 40406 | #endif |
| 40407 | #if defined(GET_EVAL_PROTO) || defined(GET_LINK_PROTO) |
| 40408 | bool emitMemcpy(SourceInfo); |
| 40409 | #endif |
| 40410 | #ifdef GET_LINK_IMPL |
| 40411 | bool ByteCodeEmitter::emitMemcpy(SourceInfo L) { |
| 40412 | return emitOp<>(OP_Memcpy, L); |
| 40413 | } |
| 40414 | #endif |
| 40415 | #ifdef GET_EVAL_IMPL |
| 40416 | bool EvalEmitter::emitMemcpy(SourceInfo L) { |
| 40417 | if (!isActive()) return true; |
| 40418 | CurrentSource = L; |
| 40419 | return Memcpy(S, CodePtr()); |
| 40420 | } |
| 40421 | #endif |
| 40422 | #ifdef GET_OPCODE_NAMES |
| 40423 | OP_MulSint8, |
| 40424 | OP_MulUint8, |
| 40425 | OP_MulSint16, |
| 40426 | OP_MulUint16, |
| 40427 | OP_MulSint32, |
| 40428 | OP_MulUint32, |
| 40429 | OP_MulSint64, |
| 40430 | OP_MulUint64, |
| 40431 | OP_MulIntAP, |
| 40432 | OP_MulIntAPS, |
| 40433 | OP_MulBool, |
| 40434 | OP_MulFixedPoint, |
| 40435 | #endif |
| 40436 | #ifdef GET_INTERPFN_LIST |
| 40437 | &Interp_MulSint8, |
| 40438 | &Interp_MulUint8, |
| 40439 | &Interp_MulSint16, |
| 40440 | &Interp_MulUint16, |
| 40441 | &Interp_MulSint32, |
| 40442 | &Interp_MulUint32, |
| 40443 | &Interp_MulSint64, |
| 40444 | &Interp_MulUint64, |
| 40445 | &Interp_MulIntAP, |
| 40446 | &Interp_MulIntAPS, |
| 40447 | &Interp_MulBool, |
| 40448 | &Interp_MulFixedPoint, |
| 40449 | #endif |
| 40450 | #ifdef GET_INTERPFN_DISPATCHERS |
| 40451 | PRESERVE_NONE |
| 40452 | static bool Interp_MulSint8(InterpState &S) { |
| 40453 | if (!Mul<PT_Sint8>(S, S.PC)) return false; |
| 40454 | #if USE_TAILCALLS |
| 40455 | MUSTTAIL return InterpNext(S); |
| 40456 | #else |
| 40457 | return true; |
| 40458 | #endif |
| 40459 | } |
| 40460 | PRESERVE_NONE |
| 40461 | static bool Interp_MulUint8(InterpState &S) { |
| 40462 | if (!Mul<PT_Uint8>(S, S.PC)) return false; |
| 40463 | #if USE_TAILCALLS |
| 40464 | MUSTTAIL return InterpNext(S); |
| 40465 | #else |
| 40466 | return true; |
| 40467 | #endif |
| 40468 | } |
| 40469 | PRESERVE_NONE |
| 40470 | static bool Interp_MulSint16(InterpState &S) { |
| 40471 | if (!Mul<PT_Sint16>(S, S.PC)) return false; |
| 40472 | #if USE_TAILCALLS |
| 40473 | MUSTTAIL return InterpNext(S); |
| 40474 | #else |
| 40475 | return true; |
| 40476 | #endif |
| 40477 | } |
| 40478 | PRESERVE_NONE |
| 40479 | static bool Interp_MulUint16(InterpState &S) { |
| 40480 | if (!Mul<PT_Uint16>(S, S.PC)) return false; |
| 40481 | #if USE_TAILCALLS |
| 40482 | MUSTTAIL return InterpNext(S); |
| 40483 | #else |
| 40484 | return true; |
| 40485 | #endif |
| 40486 | } |
| 40487 | PRESERVE_NONE |
| 40488 | static bool Interp_MulSint32(InterpState &S) { |
| 40489 | if (!Mul<PT_Sint32>(S, S.PC)) return false; |
| 40490 | #if USE_TAILCALLS |
| 40491 | MUSTTAIL return InterpNext(S); |
| 40492 | #else |
| 40493 | return true; |
| 40494 | #endif |
| 40495 | } |
| 40496 | PRESERVE_NONE |
| 40497 | static bool Interp_MulUint32(InterpState &S) { |
| 40498 | if (!Mul<PT_Uint32>(S, S.PC)) return false; |
| 40499 | #if USE_TAILCALLS |
| 40500 | MUSTTAIL return InterpNext(S); |
| 40501 | #else |
| 40502 | return true; |
| 40503 | #endif |
| 40504 | } |
| 40505 | PRESERVE_NONE |
| 40506 | static bool Interp_MulSint64(InterpState &S) { |
| 40507 | if (!Mul<PT_Sint64>(S, S.PC)) return false; |
| 40508 | #if USE_TAILCALLS |
| 40509 | MUSTTAIL return InterpNext(S); |
| 40510 | #else |
| 40511 | return true; |
| 40512 | #endif |
| 40513 | } |
| 40514 | PRESERVE_NONE |
| 40515 | static bool Interp_MulUint64(InterpState &S) { |
| 40516 | if (!Mul<PT_Uint64>(S, S.PC)) return false; |
| 40517 | #if USE_TAILCALLS |
| 40518 | MUSTTAIL return InterpNext(S); |
| 40519 | #else |
| 40520 | return true; |
| 40521 | #endif |
| 40522 | } |
| 40523 | PRESERVE_NONE |
| 40524 | static bool Interp_MulIntAP(InterpState &S) { |
| 40525 | if (!Mul<PT_IntAP>(S, S.PC)) return false; |
| 40526 | #if USE_TAILCALLS |
| 40527 | MUSTTAIL return InterpNext(S); |
| 40528 | #else |
| 40529 | return true; |
| 40530 | #endif |
| 40531 | } |
| 40532 | PRESERVE_NONE |
| 40533 | static bool Interp_MulIntAPS(InterpState &S) { |
| 40534 | if (!Mul<PT_IntAPS>(S, S.PC)) return false; |
| 40535 | #if USE_TAILCALLS |
| 40536 | MUSTTAIL return InterpNext(S); |
| 40537 | #else |
| 40538 | return true; |
| 40539 | #endif |
| 40540 | } |
| 40541 | PRESERVE_NONE |
| 40542 | static bool Interp_MulBool(InterpState &S) { |
| 40543 | if (!Mul<PT_Bool>(S, S.PC)) return false; |
| 40544 | #if USE_TAILCALLS |
| 40545 | MUSTTAIL return InterpNext(S); |
| 40546 | #else |
| 40547 | return true; |
| 40548 | #endif |
| 40549 | } |
| 40550 | PRESERVE_NONE |
| 40551 | static bool Interp_MulFixedPoint(InterpState &S) { |
| 40552 | if (!Mul<PT_FixedPoint>(S, S.PC)) return false; |
| 40553 | #if USE_TAILCALLS |
| 40554 | MUSTTAIL return InterpNext(S); |
| 40555 | #else |
| 40556 | return true; |
| 40557 | #endif |
| 40558 | } |
| 40559 | #endif |
| 40560 | #ifdef GET_DISASM |
| 40561 | case OP_MulSint8: |
| 40562 | Text.Op = PrintName("MulSint8" ); |
| 40563 | break; |
| 40564 | case OP_MulUint8: |
| 40565 | Text.Op = PrintName("MulUint8" ); |
| 40566 | break; |
| 40567 | case OP_MulSint16: |
| 40568 | Text.Op = PrintName("MulSint16" ); |
| 40569 | break; |
| 40570 | case OP_MulUint16: |
| 40571 | Text.Op = PrintName("MulUint16" ); |
| 40572 | break; |
| 40573 | case OP_MulSint32: |
| 40574 | Text.Op = PrintName("MulSint32" ); |
| 40575 | break; |
| 40576 | case OP_MulUint32: |
| 40577 | Text.Op = PrintName("MulUint32" ); |
| 40578 | break; |
| 40579 | case OP_MulSint64: |
| 40580 | Text.Op = PrintName("MulSint64" ); |
| 40581 | break; |
| 40582 | case OP_MulUint64: |
| 40583 | Text.Op = PrintName("MulUint64" ); |
| 40584 | break; |
| 40585 | case OP_MulIntAP: |
| 40586 | Text.Op = PrintName("MulIntAP" ); |
| 40587 | break; |
| 40588 | case OP_MulIntAPS: |
| 40589 | Text.Op = PrintName("MulIntAPS" ); |
| 40590 | break; |
| 40591 | case OP_MulBool: |
| 40592 | Text.Op = PrintName("MulBool" ); |
| 40593 | break; |
| 40594 | case OP_MulFixedPoint: |
| 40595 | Text.Op = PrintName("MulFixedPoint" ); |
| 40596 | break; |
| 40597 | #endif |
| 40598 | #if defined(GET_EVAL_PROTO) || defined(GET_LINK_PROTO) |
| 40599 | bool emitMulSint8(SourceInfo); |
| 40600 | bool emitMulUint8(SourceInfo); |
| 40601 | bool emitMulSint16(SourceInfo); |
| 40602 | bool emitMulUint16(SourceInfo); |
| 40603 | bool emitMulSint32(SourceInfo); |
| 40604 | bool emitMulUint32(SourceInfo); |
| 40605 | bool emitMulSint64(SourceInfo); |
| 40606 | bool emitMulUint64(SourceInfo); |
| 40607 | bool emitMulIntAP(SourceInfo); |
| 40608 | bool emitMulIntAPS(SourceInfo); |
| 40609 | bool emitMulBool(SourceInfo); |
| 40610 | bool emitMulFixedPoint(SourceInfo); |
| 40611 | #endif |
| 40612 | #if defined(GET_EVAL_PROTO) || defined(GET_LINK_PROTO) |
| 40613 | [[nodiscard]] bool emitMul(PrimType, SourceInfo I); |
| 40614 | #endif |
| 40615 | #if defined(GET_EVAL_IMPL) || defined(GET_LINK_IMPL) |
| 40616 | bool |
| 40617 | #if defined(GET_EVAL_IMPL) |
| 40618 | EvalEmitter |
| 40619 | #else |
| 40620 | ByteCodeEmitter |
| 40621 | #endif |
| 40622 | ::emitMul(PrimType T0, SourceInfo I) { |
| 40623 | switch (T0) { |
| 40624 | case PT_Sint8: |
| 40625 | return emitMulSint8(I); |
| 40626 | case PT_Uint8: |
| 40627 | return emitMulUint8(I); |
| 40628 | case PT_Sint16: |
| 40629 | return emitMulSint16(I); |
| 40630 | case PT_Uint16: |
| 40631 | return emitMulUint16(I); |
| 40632 | case PT_Sint32: |
| 40633 | return emitMulSint32(I); |
| 40634 | case PT_Uint32: |
| 40635 | return emitMulUint32(I); |
| 40636 | case PT_Sint64: |
| 40637 | return emitMulSint64(I); |
| 40638 | case PT_Uint64: |
| 40639 | return emitMulUint64(I); |
| 40640 | case PT_IntAP: |
| 40641 | return emitMulIntAP(I); |
| 40642 | case PT_IntAPS: |
| 40643 | return emitMulIntAPS(I); |
| 40644 | case PT_Bool: |
| 40645 | return emitMulBool(I); |
| 40646 | case PT_FixedPoint: |
| 40647 | return emitMulFixedPoint(I); |
| 40648 | default: llvm_unreachable("invalid type: emitMul" ); |
| 40649 | } |
| 40650 | llvm_unreachable("invalid enum value" ); |
| 40651 | } |
| 40652 | #endif |
| 40653 | #ifdef GET_LINK_IMPL |
| 40654 | bool ByteCodeEmitter::emitMulSint8(SourceInfo L) { |
| 40655 | return emitOp<>(OP_MulSint8, L); |
| 40656 | } |
| 40657 | bool ByteCodeEmitter::emitMulUint8(SourceInfo L) { |
| 40658 | return emitOp<>(OP_MulUint8, L); |
| 40659 | } |
| 40660 | bool ByteCodeEmitter::emitMulSint16(SourceInfo L) { |
| 40661 | return emitOp<>(OP_MulSint16, L); |
| 40662 | } |
| 40663 | bool ByteCodeEmitter::emitMulUint16(SourceInfo L) { |
| 40664 | return emitOp<>(OP_MulUint16, L); |
| 40665 | } |
| 40666 | bool ByteCodeEmitter::emitMulSint32(SourceInfo L) { |
| 40667 | return emitOp<>(OP_MulSint32, L); |
| 40668 | } |
| 40669 | bool ByteCodeEmitter::emitMulUint32(SourceInfo L) { |
| 40670 | return emitOp<>(OP_MulUint32, L); |
| 40671 | } |
| 40672 | bool ByteCodeEmitter::emitMulSint64(SourceInfo L) { |
| 40673 | return emitOp<>(OP_MulSint64, L); |
| 40674 | } |
| 40675 | bool ByteCodeEmitter::emitMulUint64(SourceInfo L) { |
| 40676 | return emitOp<>(OP_MulUint64, L); |
| 40677 | } |
| 40678 | bool ByteCodeEmitter::emitMulIntAP(SourceInfo L) { |
| 40679 | return emitOp<>(OP_MulIntAP, L); |
| 40680 | } |
| 40681 | bool ByteCodeEmitter::emitMulIntAPS(SourceInfo L) { |
| 40682 | return emitOp<>(OP_MulIntAPS, L); |
| 40683 | } |
| 40684 | bool ByteCodeEmitter::emitMulBool(SourceInfo L) { |
| 40685 | return emitOp<>(OP_MulBool, L); |
| 40686 | } |
| 40687 | bool ByteCodeEmitter::emitMulFixedPoint(SourceInfo L) { |
| 40688 | return emitOp<>(OP_MulFixedPoint, L); |
| 40689 | } |
| 40690 | #endif |
| 40691 | #ifdef GET_EVAL_IMPL |
| 40692 | bool EvalEmitter::emitMulSint8(SourceInfo L) { |
| 40693 | if (!isActive()) return true; |
| 40694 | CurrentSource = L; |
| 40695 | return Mul<PT_Sint8>(S, CodePtr()); |
| 40696 | } |
| 40697 | bool EvalEmitter::emitMulUint8(SourceInfo L) { |
| 40698 | if (!isActive()) return true; |
| 40699 | CurrentSource = L; |
| 40700 | return Mul<PT_Uint8>(S, CodePtr()); |
| 40701 | } |
| 40702 | bool EvalEmitter::emitMulSint16(SourceInfo L) { |
| 40703 | if (!isActive()) return true; |
| 40704 | CurrentSource = L; |
| 40705 | return Mul<PT_Sint16>(S, CodePtr()); |
| 40706 | } |
| 40707 | bool EvalEmitter::emitMulUint16(SourceInfo L) { |
| 40708 | if (!isActive()) return true; |
| 40709 | CurrentSource = L; |
| 40710 | return Mul<PT_Uint16>(S, CodePtr()); |
| 40711 | } |
| 40712 | bool EvalEmitter::emitMulSint32(SourceInfo L) { |
| 40713 | if (!isActive()) return true; |
| 40714 | CurrentSource = L; |
| 40715 | return Mul<PT_Sint32>(S, CodePtr()); |
| 40716 | } |
| 40717 | bool EvalEmitter::emitMulUint32(SourceInfo L) { |
| 40718 | if (!isActive()) return true; |
| 40719 | CurrentSource = L; |
| 40720 | return Mul<PT_Uint32>(S, CodePtr()); |
| 40721 | } |
| 40722 | bool EvalEmitter::emitMulSint64(SourceInfo L) { |
| 40723 | if (!isActive()) return true; |
| 40724 | CurrentSource = L; |
| 40725 | return Mul<PT_Sint64>(S, CodePtr()); |
| 40726 | } |
| 40727 | bool EvalEmitter::emitMulUint64(SourceInfo L) { |
| 40728 | if (!isActive()) return true; |
| 40729 | CurrentSource = L; |
| 40730 | return Mul<PT_Uint64>(S, CodePtr()); |
| 40731 | } |
| 40732 | bool EvalEmitter::emitMulIntAP(SourceInfo L) { |
| 40733 | if (!isActive()) return true; |
| 40734 | CurrentSource = L; |
| 40735 | return Mul<PT_IntAP>(S, CodePtr()); |
| 40736 | } |
| 40737 | bool EvalEmitter::emitMulIntAPS(SourceInfo L) { |
| 40738 | if (!isActive()) return true; |
| 40739 | CurrentSource = L; |
| 40740 | return Mul<PT_IntAPS>(S, CodePtr()); |
| 40741 | } |
| 40742 | bool EvalEmitter::emitMulBool(SourceInfo L) { |
| 40743 | if (!isActive()) return true; |
| 40744 | CurrentSource = L; |
| 40745 | return Mul<PT_Bool>(S, CodePtr()); |
| 40746 | } |
| 40747 | bool EvalEmitter::emitMulFixedPoint(SourceInfo L) { |
| 40748 | if (!isActive()) return true; |
| 40749 | CurrentSource = L; |
| 40750 | return Mul<PT_FixedPoint>(S, CodePtr()); |
| 40751 | } |
| 40752 | #endif |
| 40753 | #ifdef GET_OPCODE_NAMES |
| 40754 | OP_MulcSint8, |
| 40755 | OP_MulcUint8, |
| 40756 | OP_MulcSint16, |
| 40757 | OP_MulcUint16, |
| 40758 | OP_MulcSint32, |
| 40759 | OP_MulcUint32, |
| 40760 | OP_MulcSint64, |
| 40761 | OP_MulcUint64, |
| 40762 | OP_MulcIntAP, |
| 40763 | OP_MulcIntAPS, |
| 40764 | OP_MulcFloat, |
| 40765 | #endif |
| 40766 | #ifdef GET_INTERPFN_LIST |
| 40767 | &Interp_MulcSint8, |
| 40768 | &Interp_MulcUint8, |
| 40769 | &Interp_MulcSint16, |
| 40770 | &Interp_MulcUint16, |
| 40771 | &Interp_MulcSint32, |
| 40772 | &Interp_MulcUint32, |
| 40773 | &Interp_MulcSint64, |
| 40774 | &Interp_MulcUint64, |
| 40775 | &Interp_MulcIntAP, |
| 40776 | &Interp_MulcIntAPS, |
| 40777 | &Interp_MulcFloat, |
| 40778 | #endif |
| 40779 | #ifdef GET_INTERPFN_DISPATCHERS |
| 40780 | PRESERVE_NONE |
| 40781 | static bool Interp_MulcSint8(InterpState &S) { |
| 40782 | if (!Mulc<PT_Sint8>(S)) return false; |
| 40783 | #if USE_TAILCALLS |
| 40784 | MUSTTAIL return InterpNext(S); |
| 40785 | #else |
| 40786 | return true; |
| 40787 | #endif |
| 40788 | } |
| 40789 | PRESERVE_NONE |
| 40790 | static bool Interp_MulcUint8(InterpState &S) { |
| 40791 | if (!Mulc<PT_Uint8>(S)) return false; |
| 40792 | #if USE_TAILCALLS |
| 40793 | MUSTTAIL return InterpNext(S); |
| 40794 | #else |
| 40795 | return true; |
| 40796 | #endif |
| 40797 | } |
| 40798 | PRESERVE_NONE |
| 40799 | static bool Interp_MulcSint16(InterpState &S) { |
| 40800 | if (!Mulc<PT_Sint16>(S)) return false; |
| 40801 | #if USE_TAILCALLS |
| 40802 | MUSTTAIL return InterpNext(S); |
| 40803 | #else |
| 40804 | return true; |
| 40805 | #endif |
| 40806 | } |
| 40807 | PRESERVE_NONE |
| 40808 | static bool Interp_MulcUint16(InterpState &S) { |
| 40809 | if (!Mulc<PT_Uint16>(S)) return false; |
| 40810 | #if USE_TAILCALLS |
| 40811 | MUSTTAIL return InterpNext(S); |
| 40812 | #else |
| 40813 | return true; |
| 40814 | #endif |
| 40815 | } |
| 40816 | PRESERVE_NONE |
| 40817 | static bool Interp_MulcSint32(InterpState &S) { |
| 40818 | if (!Mulc<PT_Sint32>(S)) return false; |
| 40819 | #if USE_TAILCALLS |
| 40820 | MUSTTAIL return InterpNext(S); |
| 40821 | #else |
| 40822 | return true; |
| 40823 | #endif |
| 40824 | } |
| 40825 | PRESERVE_NONE |
| 40826 | static bool Interp_MulcUint32(InterpState &S) { |
| 40827 | if (!Mulc<PT_Uint32>(S)) return false; |
| 40828 | #if USE_TAILCALLS |
| 40829 | MUSTTAIL return InterpNext(S); |
| 40830 | #else |
| 40831 | return true; |
| 40832 | #endif |
| 40833 | } |
| 40834 | PRESERVE_NONE |
| 40835 | static bool Interp_MulcSint64(InterpState &S) { |
| 40836 | if (!Mulc<PT_Sint64>(S)) return false; |
| 40837 | #if USE_TAILCALLS |
| 40838 | MUSTTAIL return InterpNext(S); |
| 40839 | #else |
| 40840 | return true; |
| 40841 | #endif |
| 40842 | } |
| 40843 | PRESERVE_NONE |
| 40844 | static bool Interp_MulcUint64(InterpState &S) { |
| 40845 | if (!Mulc<PT_Uint64>(S)) return false; |
| 40846 | #if USE_TAILCALLS |
| 40847 | MUSTTAIL return InterpNext(S); |
| 40848 | #else |
| 40849 | return true; |
| 40850 | #endif |
| 40851 | } |
| 40852 | PRESERVE_NONE |
| 40853 | static bool Interp_MulcIntAP(InterpState &S) { |
| 40854 | if (!Mulc<PT_IntAP>(S)) return false; |
| 40855 | #if USE_TAILCALLS |
| 40856 | MUSTTAIL return InterpNext(S); |
| 40857 | #else |
| 40858 | return true; |
| 40859 | #endif |
| 40860 | } |
| 40861 | PRESERVE_NONE |
| 40862 | static bool Interp_MulcIntAPS(InterpState &S) { |
| 40863 | if (!Mulc<PT_IntAPS>(S)) return false; |
| 40864 | #if USE_TAILCALLS |
| 40865 | MUSTTAIL return InterpNext(S); |
| 40866 | #else |
| 40867 | return true; |
| 40868 | #endif |
| 40869 | } |
| 40870 | PRESERVE_NONE |
| 40871 | static bool Interp_MulcFloat(InterpState &S) { |
| 40872 | if (!Mulc<PT_Float>(S)) return false; |
| 40873 | #if USE_TAILCALLS |
| 40874 | MUSTTAIL return InterpNext(S); |
| 40875 | #else |
| 40876 | return true; |
| 40877 | #endif |
| 40878 | } |
| 40879 | #endif |
| 40880 | #ifdef GET_DISASM |
| 40881 | case OP_MulcSint8: |
| 40882 | Text.Op = PrintName("MulcSint8" ); |
| 40883 | break; |
| 40884 | case OP_MulcUint8: |
| 40885 | Text.Op = PrintName("MulcUint8" ); |
| 40886 | break; |
| 40887 | case OP_MulcSint16: |
| 40888 | Text.Op = PrintName("MulcSint16" ); |
| 40889 | break; |
| 40890 | case OP_MulcUint16: |
| 40891 | Text.Op = PrintName("MulcUint16" ); |
| 40892 | break; |
| 40893 | case OP_MulcSint32: |
| 40894 | Text.Op = PrintName("MulcSint32" ); |
| 40895 | break; |
| 40896 | case OP_MulcUint32: |
| 40897 | Text.Op = PrintName("MulcUint32" ); |
| 40898 | break; |
| 40899 | case OP_MulcSint64: |
| 40900 | Text.Op = PrintName("MulcSint64" ); |
| 40901 | break; |
| 40902 | case OP_MulcUint64: |
| 40903 | Text.Op = PrintName("MulcUint64" ); |
| 40904 | break; |
| 40905 | case OP_MulcIntAP: |
| 40906 | Text.Op = PrintName("MulcIntAP" ); |
| 40907 | break; |
| 40908 | case OP_MulcIntAPS: |
| 40909 | Text.Op = PrintName("MulcIntAPS" ); |
| 40910 | break; |
| 40911 | case OP_MulcFloat: |
| 40912 | Text.Op = PrintName("MulcFloat" ); |
| 40913 | break; |
| 40914 | #endif |
| 40915 | #if defined(GET_EVAL_PROTO) || defined(GET_LINK_PROTO) |
| 40916 | bool emitMulcSint8(SourceInfo); |
| 40917 | bool emitMulcUint8(SourceInfo); |
| 40918 | bool emitMulcSint16(SourceInfo); |
| 40919 | bool emitMulcUint16(SourceInfo); |
| 40920 | bool emitMulcSint32(SourceInfo); |
| 40921 | bool emitMulcUint32(SourceInfo); |
| 40922 | bool emitMulcSint64(SourceInfo); |
| 40923 | bool emitMulcUint64(SourceInfo); |
| 40924 | bool emitMulcIntAP(SourceInfo); |
| 40925 | bool emitMulcIntAPS(SourceInfo); |
| 40926 | bool emitMulcFloat(SourceInfo); |
| 40927 | #endif |
| 40928 | #if defined(GET_EVAL_PROTO) || defined(GET_LINK_PROTO) |
| 40929 | [[nodiscard]] bool emitMulc(PrimType, SourceInfo I); |
| 40930 | #endif |
| 40931 | #if defined(GET_EVAL_IMPL) || defined(GET_LINK_IMPL) |
| 40932 | bool |
| 40933 | #if defined(GET_EVAL_IMPL) |
| 40934 | EvalEmitter |
| 40935 | #else |
| 40936 | ByteCodeEmitter |
| 40937 | #endif |
| 40938 | ::emitMulc(PrimType T0, SourceInfo I) { |
| 40939 | switch (T0) { |
| 40940 | case PT_Sint8: |
| 40941 | return emitMulcSint8(I); |
| 40942 | case PT_Uint8: |
| 40943 | return emitMulcUint8(I); |
| 40944 | case PT_Sint16: |
| 40945 | return emitMulcSint16(I); |
| 40946 | case PT_Uint16: |
| 40947 | return emitMulcUint16(I); |
| 40948 | case PT_Sint32: |
| 40949 | return emitMulcSint32(I); |
| 40950 | case PT_Uint32: |
| 40951 | return emitMulcUint32(I); |
| 40952 | case PT_Sint64: |
| 40953 | return emitMulcSint64(I); |
| 40954 | case PT_Uint64: |
| 40955 | return emitMulcUint64(I); |
| 40956 | case PT_IntAP: |
| 40957 | return emitMulcIntAP(I); |
| 40958 | case PT_IntAPS: |
| 40959 | return emitMulcIntAPS(I); |
| 40960 | case PT_Float: |
| 40961 | return emitMulcFloat(I); |
| 40962 | default: llvm_unreachable("invalid type: emitMulc" ); |
| 40963 | } |
| 40964 | llvm_unreachable("invalid enum value" ); |
| 40965 | } |
| 40966 | #endif |
| 40967 | #ifdef GET_LINK_IMPL |
| 40968 | bool ByteCodeEmitter::emitMulcSint8(SourceInfo L) { |
| 40969 | return emitOp<>(OP_MulcSint8, L); |
| 40970 | } |
| 40971 | bool ByteCodeEmitter::emitMulcUint8(SourceInfo L) { |
| 40972 | return emitOp<>(OP_MulcUint8, L); |
| 40973 | } |
| 40974 | bool ByteCodeEmitter::emitMulcSint16(SourceInfo L) { |
| 40975 | return emitOp<>(OP_MulcSint16, L); |
| 40976 | } |
| 40977 | bool ByteCodeEmitter::emitMulcUint16(SourceInfo L) { |
| 40978 | return emitOp<>(OP_MulcUint16, L); |
| 40979 | } |
| 40980 | bool ByteCodeEmitter::emitMulcSint32(SourceInfo L) { |
| 40981 | return emitOp<>(OP_MulcSint32, L); |
| 40982 | } |
| 40983 | bool ByteCodeEmitter::emitMulcUint32(SourceInfo L) { |
| 40984 | return emitOp<>(OP_MulcUint32, L); |
| 40985 | } |
| 40986 | bool ByteCodeEmitter::emitMulcSint64(SourceInfo L) { |
| 40987 | return emitOp<>(OP_MulcSint64, L); |
| 40988 | } |
| 40989 | bool ByteCodeEmitter::emitMulcUint64(SourceInfo L) { |
| 40990 | return emitOp<>(OP_MulcUint64, L); |
| 40991 | } |
| 40992 | bool ByteCodeEmitter::emitMulcIntAP(SourceInfo L) { |
| 40993 | return emitOp<>(OP_MulcIntAP, L); |
| 40994 | } |
| 40995 | bool ByteCodeEmitter::emitMulcIntAPS(SourceInfo L) { |
| 40996 | return emitOp<>(OP_MulcIntAPS, L); |
| 40997 | } |
| 40998 | bool ByteCodeEmitter::emitMulcFloat(SourceInfo L) { |
| 40999 | return emitOp<>(OP_MulcFloat, L); |
| 41000 | } |
| 41001 | #endif |
| 41002 | #ifdef GET_EVAL_IMPL |
| 41003 | bool EvalEmitter::emitMulcSint8(SourceInfo L) { |
| 41004 | if (!isActive()) return true; |
| 41005 | CurrentSource = L; |
| 41006 | return Mulc<PT_Sint8>(S); |
| 41007 | } |
| 41008 | bool EvalEmitter::emitMulcUint8(SourceInfo L) { |
| 41009 | if (!isActive()) return true; |
| 41010 | CurrentSource = L; |
| 41011 | return Mulc<PT_Uint8>(S); |
| 41012 | } |
| 41013 | bool EvalEmitter::emitMulcSint16(SourceInfo L) { |
| 41014 | if (!isActive()) return true; |
| 41015 | CurrentSource = L; |
| 41016 | return Mulc<PT_Sint16>(S); |
| 41017 | } |
| 41018 | bool EvalEmitter::emitMulcUint16(SourceInfo L) { |
| 41019 | if (!isActive()) return true; |
| 41020 | CurrentSource = L; |
| 41021 | return Mulc<PT_Uint16>(S); |
| 41022 | } |
| 41023 | bool EvalEmitter::emitMulcSint32(SourceInfo L) { |
| 41024 | if (!isActive()) return true; |
| 41025 | CurrentSource = L; |
| 41026 | return Mulc<PT_Sint32>(S); |
| 41027 | } |
| 41028 | bool EvalEmitter::emitMulcUint32(SourceInfo L) { |
| 41029 | if (!isActive()) return true; |
| 41030 | CurrentSource = L; |
| 41031 | return Mulc<PT_Uint32>(S); |
| 41032 | } |
| 41033 | bool EvalEmitter::emitMulcSint64(SourceInfo L) { |
| 41034 | if (!isActive()) return true; |
| 41035 | CurrentSource = L; |
| 41036 | return Mulc<PT_Sint64>(S); |
| 41037 | } |
| 41038 | bool EvalEmitter::emitMulcUint64(SourceInfo L) { |
| 41039 | if (!isActive()) return true; |
| 41040 | CurrentSource = L; |
| 41041 | return Mulc<PT_Uint64>(S); |
| 41042 | } |
| 41043 | bool EvalEmitter::emitMulcIntAP(SourceInfo L) { |
| 41044 | if (!isActive()) return true; |
| 41045 | CurrentSource = L; |
| 41046 | return Mulc<PT_IntAP>(S); |
| 41047 | } |
| 41048 | bool EvalEmitter::emitMulcIntAPS(SourceInfo L) { |
| 41049 | if (!isActive()) return true; |
| 41050 | CurrentSource = L; |
| 41051 | return Mulc<PT_IntAPS>(S); |
| 41052 | } |
| 41053 | bool EvalEmitter::emitMulcFloat(SourceInfo L) { |
| 41054 | if (!isActive()) return true; |
| 41055 | CurrentSource = L; |
| 41056 | return Mulc<PT_Float>(S); |
| 41057 | } |
| 41058 | #endif |
| 41059 | #ifdef GET_OPCODE_NAMES |
| 41060 | OP_Mulf, |
| 41061 | #endif |
| 41062 | #ifdef GET_INTERPFN_LIST |
| 41063 | &Interp_Mulf, |
| 41064 | #endif |
| 41065 | #ifdef GET_INTERPFN_DISPATCHERS |
| 41066 | PRESERVE_NONE |
| 41067 | static bool Interp_Mulf(InterpState &S) { |
| 41068 | { |
| 41069 | CodePtr OpPC = S.PC; |
| 41070 | const auto V0 = ReadArg<uint32_t>(S, S.PC); |
| 41071 | if (!Mulf(S, OpPC, V0)) return false; |
| 41072 | } |
| 41073 | #if USE_TAILCALLS |
| 41074 | MUSTTAIL return InterpNext(S); |
| 41075 | #else |
| 41076 | return true; |
| 41077 | #endif |
| 41078 | } |
| 41079 | #endif |
| 41080 | #ifdef GET_DISASM |
| 41081 | case OP_Mulf: |
| 41082 | Text.Op = PrintName("Mulf" ); |
| 41083 | Text.Args.push_back(printArg<uint32_t>(PC)); |
| 41084 | break; |
| 41085 | #endif |
| 41086 | #if defined(GET_EVAL_PROTO) || defined(GET_LINK_PROTO) |
| 41087 | bool emitMulf( uint32_t , SourceInfo); |
| 41088 | #endif |
| 41089 | #ifdef GET_LINK_IMPL |
| 41090 | bool ByteCodeEmitter::emitMulf( uint32_t A0, SourceInfo L) { |
| 41091 | return emitOp<uint32_t>(OP_Mulf, A0, L); |
| 41092 | } |
| 41093 | #endif |
| 41094 | #ifdef GET_EVAL_IMPL |
| 41095 | bool EvalEmitter::emitMulf( uint32_t A0, SourceInfo L) { |
| 41096 | if (!isActive()) return true; |
| 41097 | CurrentSource = L; |
| 41098 | return Mulf(S, CodePtr(), A0); |
| 41099 | } |
| 41100 | #endif |
| 41101 | #ifdef GET_OPCODE_NAMES |
| 41102 | OP_NESint8, |
| 41103 | OP_NEUint8, |
| 41104 | OP_NESint16, |
| 41105 | OP_NEUint16, |
| 41106 | OP_NESint32, |
| 41107 | OP_NEUint32, |
| 41108 | OP_NESint64, |
| 41109 | OP_NEUint64, |
| 41110 | OP_NEIntAP, |
| 41111 | OP_NEIntAPS, |
| 41112 | OP_NEBool, |
| 41113 | OP_NEFixedPoint, |
| 41114 | OP_NEPtr, |
| 41115 | OP_NEMemberPtr, |
| 41116 | OP_NEFloat, |
| 41117 | OP_NEReflect, |
| 41118 | #endif |
| 41119 | #ifdef GET_INTERPFN_LIST |
| 41120 | &Interp_NESint8, |
| 41121 | &Interp_NEUint8, |
| 41122 | &Interp_NESint16, |
| 41123 | &Interp_NEUint16, |
| 41124 | &Interp_NESint32, |
| 41125 | &Interp_NEUint32, |
| 41126 | &Interp_NESint64, |
| 41127 | &Interp_NEUint64, |
| 41128 | &Interp_NEIntAP, |
| 41129 | &Interp_NEIntAPS, |
| 41130 | &Interp_NEBool, |
| 41131 | &Interp_NEFixedPoint, |
| 41132 | &Interp_NEPtr, |
| 41133 | &Interp_NEMemberPtr, |
| 41134 | &Interp_NEFloat, |
| 41135 | &Interp_NEReflect, |
| 41136 | #endif |
| 41137 | #ifdef GET_INTERPFN_DISPATCHERS |
| 41138 | PRESERVE_NONE |
| 41139 | static bool Interp_NESint8(InterpState &S) { |
| 41140 | if (!NE<PT_Sint8>(S, S.PC)) return false; |
| 41141 | #if USE_TAILCALLS |
| 41142 | MUSTTAIL return InterpNext(S); |
| 41143 | #else |
| 41144 | return true; |
| 41145 | #endif |
| 41146 | } |
| 41147 | PRESERVE_NONE |
| 41148 | static bool Interp_NEUint8(InterpState &S) { |
| 41149 | if (!NE<PT_Uint8>(S, S.PC)) return false; |
| 41150 | #if USE_TAILCALLS |
| 41151 | MUSTTAIL return InterpNext(S); |
| 41152 | #else |
| 41153 | return true; |
| 41154 | #endif |
| 41155 | } |
| 41156 | PRESERVE_NONE |
| 41157 | static bool Interp_NESint16(InterpState &S) { |
| 41158 | if (!NE<PT_Sint16>(S, S.PC)) return false; |
| 41159 | #if USE_TAILCALLS |
| 41160 | MUSTTAIL return InterpNext(S); |
| 41161 | #else |
| 41162 | return true; |
| 41163 | #endif |
| 41164 | } |
| 41165 | PRESERVE_NONE |
| 41166 | static bool Interp_NEUint16(InterpState &S) { |
| 41167 | if (!NE<PT_Uint16>(S, S.PC)) return false; |
| 41168 | #if USE_TAILCALLS |
| 41169 | MUSTTAIL return InterpNext(S); |
| 41170 | #else |
| 41171 | return true; |
| 41172 | #endif |
| 41173 | } |
| 41174 | PRESERVE_NONE |
| 41175 | static bool Interp_NESint32(InterpState &S) { |
| 41176 | if (!NE<PT_Sint32>(S, S.PC)) return false; |
| 41177 | #if USE_TAILCALLS |
| 41178 | MUSTTAIL return InterpNext(S); |
| 41179 | #else |
| 41180 | return true; |
| 41181 | #endif |
| 41182 | } |
| 41183 | PRESERVE_NONE |
| 41184 | static bool Interp_NEUint32(InterpState &S) { |
| 41185 | if (!NE<PT_Uint32>(S, S.PC)) return false; |
| 41186 | #if USE_TAILCALLS |
| 41187 | MUSTTAIL return InterpNext(S); |
| 41188 | #else |
| 41189 | return true; |
| 41190 | #endif |
| 41191 | } |
| 41192 | PRESERVE_NONE |
| 41193 | static bool Interp_NESint64(InterpState &S) { |
| 41194 | if (!NE<PT_Sint64>(S, S.PC)) return false; |
| 41195 | #if USE_TAILCALLS |
| 41196 | MUSTTAIL return InterpNext(S); |
| 41197 | #else |
| 41198 | return true; |
| 41199 | #endif |
| 41200 | } |
| 41201 | PRESERVE_NONE |
| 41202 | static bool Interp_NEUint64(InterpState &S) { |
| 41203 | if (!NE<PT_Uint64>(S, S.PC)) return false; |
| 41204 | #if USE_TAILCALLS |
| 41205 | MUSTTAIL return InterpNext(S); |
| 41206 | #else |
| 41207 | return true; |
| 41208 | #endif |
| 41209 | } |
| 41210 | PRESERVE_NONE |
| 41211 | static bool Interp_NEIntAP(InterpState &S) { |
| 41212 | if (!NE<PT_IntAP>(S, S.PC)) return false; |
| 41213 | #if USE_TAILCALLS |
| 41214 | MUSTTAIL return InterpNext(S); |
| 41215 | #else |
| 41216 | return true; |
| 41217 | #endif |
| 41218 | } |
| 41219 | PRESERVE_NONE |
| 41220 | static bool Interp_NEIntAPS(InterpState &S) { |
| 41221 | if (!NE<PT_IntAPS>(S, S.PC)) return false; |
| 41222 | #if USE_TAILCALLS |
| 41223 | MUSTTAIL return InterpNext(S); |
| 41224 | #else |
| 41225 | return true; |
| 41226 | #endif |
| 41227 | } |
| 41228 | PRESERVE_NONE |
| 41229 | static bool Interp_NEBool(InterpState &S) { |
| 41230 | if (!NE<PT_Bool>(S, S.PC)) return false; |
| 41231 | #if USE_TAILCALLS |
| 41232 | MUSTTAIL return InterpNext(S); |
| 41233 | #else |
| 41234 | return true; |
| 41235 | #endif |
| 41236 | } |
| 41237 | PRESERVE_NONE |
| 41238 | static bool Interp_NEFixedPoint(InterpState &S) { |
| 41239 | if (!NE<PT_FixedPoint>(S, S.PC)) return false; |
| 41240 | #if USE_TAILCALLS |
| 41241 | MUSTTAIL return InterpNext(S); |
| 41242 | #else |
| 41243 | return true; |
| 41244 | #endif |
| 41245 | } |
| 41246 | PRESERVE_NONE |
| 41247 | static bool Interp_NEPtr(InterpState &S) { |
| 41248 | if (!NE<PT_Ptr>(S, S.PC)) return false; |
| 41249 | #if USE_TAILCALLS |
| 41250 | MUSTTAIL return InterpNext(S); |
| 41251 | #else |
| 41252 | return true; |
| 41253 | #endif |
| 41254 | } |
| 41255 | PRESERVE_NONE |
| 41256 | static bool Interp_NEMemberPtr(InterpState &S) { |
| 41257 | if (!NE<PT_MemberPtr>(S, S.PC)) return false; |
| 41258 | #if USE_TAILCALLS |
| 41259 | MUSTTAIL return InterpNext(S); |
| 41260 | #else |
| 41261 | return true; |
| 41262 | #endif |
| 41263 | } |
| 41264 | PRESERVE_NONE |
| 41265 | static bool Interp_NEFloat(InterpState &S) { |
| 41266 | if (!NE<PT_Float>(S, S.PC)) return false; |
| 41267 | #if USE_TAILCALLS |
| 41268 | MUSTTAIL return InterpNext(S); |
| 41269 | #else |
| 41270 | return true; |
| 41271 | #endif |
| 41272 | } |
| 41273 | PRESERVE_NONE |
| 41274 | static bool Interp_NEReflect(InterpState &S) { |
| 41275 | if (!NE<PT_Reflect>(S, S.PC)) return false; |
| 41276 | #if USE_TAILCALLS |
| 41277 | MUSTTAIL return InterpNext(S); |
| 41278 | #else |
| 41279 | return true; |
| 41280 | #endif |
| 41281 | } |
| 41282 | #endif |
| 41283 | #ifdef GET_DISASM |
| 41284 | case OP_NESint8: |
| 41285 | Text.Op = PrintName("NESint8" ); |
| 41286 | break; |
| 41287 | case OP_NEUint8: |
| 41288 | Text.Op = PrintName("NEUint8" ); |
| 41289 | break; |
| 41290 | case OP_NESint16: |
| 41291 | Text.Op = PrintName("NESint16" ); |
| 41292 | break; |
| 41293 | case OP_NEUint16: |
| 41294 | Text.Op = PrintName("NEUint16" ); |
| 41295 | break; |
| 41296 | case OP_NESint32: |
| 41297 | Text.Op = PrintName("NESint32" ); |
| 41298 | break; |
| 41299 | case OP_NEUint32: |
| 41300 | Text.Op = PrintName("NEUint32" ); |
| 41301 | break; |
| 41302 | case OP_NESint64: |
| 41303 | Text.Op = PrintName("NESint64" ); |
| 41304 | break; |
| 41305 | case OP_NEUint64: |
| 41306 | Text.Op = PrintName("NEUint64" ); |
| 41307 | break; |
| 41308 | case OP_NEIntAP: |
| 41309 | Text.Op = PrintName("NEIntAP" ); |
| 41310 | break; |
| 41311 | case OP_NEIntAPS: |
| 41312 | Text.Op = PrintName("NEIntAPS" ); |
| 41313 | break; |
| 41314 | case OP_NEBool: |
| 41315 | Text.Op = PrintName("NEBool" ); |
| 41316 | break; |
| 41317 | case OP_NEFixedPoint: |
| 41318 | Text.Op = PrintName("NEFixedPoint" ); |
| 41319 | break; |
| 41320 | case OP_NEPtr: |
| 41321 | Text.Op = PrintName("NEPtr" ); |
| 41322 | break; |
| 41323 | case OP_NEMemberPtr: |
| 41324 | Text.Op = PrintName("NEMemberPtr" ); |
| 41325 | break; |
| 41326 | case OP_NEFloat: |
| 41327 | Text.Op = PrintName("NEFloat" ); |
| 41328 | break; |
| 41329 | case OP_NEReflect: |
| 41330 | Text.Op = PrintName("NEReflect" ); |
| 41331 | break; |
| 41332 | #endif |
| 41333 | #if defined(GET_EVAL_PROTO) || defined(GET_LINK_PROTO) |
| 41334 | bool emitNESint8(SourceInfo); |
| 41335 | bool emitNEUint8(SourceInfo); |
| 41336 | bool emitNESint16(SourceInfo); |
| 41337 | bool emitNEUint16(SourceInfo); |
| 41338 | bool emitNESint32(SourceInfo); |
| 41339 | bool emitNEUint32(SourceInfo); |
| 41340 | bool emitNESint64(SourceInfo); |
| 41341 | bool emitNEUint64(SourceInfo); |
| 41342 | bool emitNEIntAP(SourceInfo); |
| 41343 | bool emitNEIntAPS(SourceInfo); |
| 41344 | bool emitNEBool(SourceInfo); |
| 41345 | bool emitNEFixedPoint(SourceInfo); |
| 41346 | bool emitNEPtr(SourceInfo); |
| 41347 | bool emitNEMemberPtr(SourceInfo); |
| 41348 | bool emitNEFloat(SourceInfo); |
| 41349 | bool emitNEReflect(SourceInfo); |
| 41350 | #endif |
| 41351 | #if defined(GET_EVAL_PROTO) || defined(GET_LINK_PROTO) |
| 41352 | [[nodiscard]] bool emitNE(PrimType, SourceInfo I); |
| 41353 | #endif |
| 41354 | #if defined(GET_EVAL_IMPL) || defined(GET_LINK_IMPL) |
| 41355 | bool |
| 41356 | #if defined(GET_EVAL_IMPL) |
| 41357 | EvalEmitter |
| 41358 | #else |
| 41359 | ByteCodeEmitter |
| 41360 | #endif |
| 41361 | ::emitNE(PrimType T0, SourceInfo I) { |
| 41362 | switch (T0) { |
| 41363 | case PT_Sint8: |
| 41364 | return emitNESint8(I); |
| 41365 | case PT_Uint8: |
| 41366 | return emitNEUint8(I); |
| 41367 | case PT_Sint16: |
| 41368 | return emitNESint16(I); |
| 41369 | case PT_Uint16: |
| 41370 | return emitNEUint16(I); |
| 41371 | case PT_Sint32: |
| 41372 | return emitNESint32(I); |
| 41373 | case PT_Uint32: |
| 41374 | return emitNEUint32(I); |
| 41375 | case PT_Sint64: |
| 41376 | return emitNESint64(I); |
| 41377 | case PT_Uint64: |
| 41378 | return emitNEUint64(I); |
| 41379 | case PT_IntAP: |
| 41380 | return emitNEIntAP(I); |
| 41381 | case PT_IntAPS: |
| 41382 | return emitNEIntAPS(I); |
| 41383 | case PT_Bool: |
| 41384 | return emitNEBool(I); |
| 41385 | case PT_FixedPoint: |
| 41386 | return emitNEFixedPoint(I); |
| 41387 | case PT_Ptr: |
| 41388 | return emitNEPtr(I); |
| 41389 | case PT_MemberPtr: |
| 41390 | return emitNEMemberPtr(I); |
| 41391 | case PT_Float: |
| 41392 | return emitNEFloat(I); |
| 41393 | case PT_Reflect: |
| 41394 | return emitNEReflect(I); |
| 41395 | } |
| 41396 | llvm_unreachable("invalid enum value" ); |
| 41397 | } |
| 41398 | #endif |
| 41399 | #ifdef GET_LINK_IMPL |
| 41400 | bool ByteCodeEmitter::emitNESint8(SourceInfo L) { |
| 41401 | return emitOp<>(OP_NESint8, L); |
| 41402 | } |
| 41403 | bool ByteCodeEmitter::emitNEUint8(SourceInfo L) { |
| 41404 | return emitOp<>(OP_NEUint8, L); |
| 41405 | } |
| 41406 | bool ByteCodeEmitter::emitNESint16(SourceInfo L) { |
| 41407 | return emitOp<>(OP_NESint16, L); |
| 41408 | } |
| 41409 | bool ByteCodeEmitter::emitNEUint16(SourceInfo L) { |
| 41410 | return emitOp<>(OP_NEUint16, L); |
| 41411 | } |
| 41412 | bool ByteCodeEmitter::emitNESint32(SourceInfo L) { |
| 41413 | return emitOp<>(OP_NESint32, L); |
| 41414 | } |
| 41415 | bool ByteCodeEmitter::emitNEUint32(SourceInfo L) { |
| 41416 | return emitOp<>(OP_NEUint32, L); |
| 41417 | } |
| 41418 | bool ByteCodeEmitter::emitNESint64(SourceInfo L) { |
| 41419 | return emitOp<>(OP_NESint64, L); |
| 41420 | } |
| 41421 | bool ByteCodeEmitter::emitNEUint64(SourceInfo L) { |
| 41422 | return emitOp<>(OP_NEUint64, L); |
| 41423 | } |
| 41424 | bool ByteCodeEmitter::emitNEIntAP(SourceInfo L) { |
| 41425 | return emitOp<>(OP_NEIntAP, L); |
| 41426 | } |
| 41427 | bool ByteCodeEmitter::emitNEIntAPS(SourceInfo L) { |
| 41428 | return emitOp<>(OP_NEIntAPS, L); |
| 41429 | } |
| 41430 | bool ByteCodeEmitter::emitNEBool(SourceInfo L) { |
| 41431 | return emitOp<>(OP_NEBool, L); |
| 41432 | } |
| 41433 | bool ByteCodeEmitter::emitNEFixedPoint(SourceInfo L) { |
| 41434 | return emitOp<>(OP_NEFixedPoint, L); |
| 41435 | } |
| 41436 | bool ByteCodeEmitter::emitNEPtr(SourceInfo L) { |
| 41437 | return emitOp<>(OP_NEPtr, L); |
| 41438 | } |
| 41439 | bool ByteCodeEmitter::emitNEMemberPtr(SourceInfo L) { |
| 41440 | return emitOp<>(OP_NEMemberPtr, L); |
| 41441 | } |
| 41442 | bool ByteCodeEmitter::emitNEFloat(SourceInfo L) { |
| 41443 | return emitOp<>(OP_NEFloat, L); |
| 41444 | } |
| 41445 | bool ByteCodeEmitter::emitNEReflect(SourceInfo L) { |
| 41446 | return emitOp<>(OP_NEReflect, L); |
| 41447 | } |
| 41448 | #endif |
| 41449 | #ifdef GET_EVAL_IMPL |
| 41450 | bool EvalEmitter::emitNESint8(SourceInfo L) { |
| 41451 | if (!isActive()) return true; |
| 41452 | CurrentSource = L; |
| 41453 | return NE<PT_Sint8>(S, CodePtr()); |
| 41454 | } |
| 41455 | bool EvalEmitter::emitNEUint8(SourceInfo L) { |
| 41456 | if (!isActive()) return true; |
| 41457 | CurrentSource = L; |
| 41458 | return NE<PT_Uint8>(S, CodePtr()); |
| 41459 | } |
| 41460 | bool EvalEmitter::emitNESint16(SourceInfo L) { |
| 41461 | if (!isActive()) return true; |
| 41462 | CurrentSource = L; |
| 41463 | return NE<PT_Sint16>(S, CodePtr()); |
| 41464 | } |
| 41465 | bool EvalEmitter::emitNEUint16(SourceInfo L) { |
| 41466 | if (!isActive()) return true; |
| 41467 | CurrentSource = L; |
| 41468 | return NE<PT_Uint16>(S, CodePtr()); |
| 41469 | } |
| 41470 | bool EvalEmitter::emitNESint32(SourceInfo L) { |
| 41471 | if (!isActive()) return true; |
| 41472 | CurrentSource = L; |
| 41473 | return NE<PT_Sint32>(S, CodePtr()); |
| 41474 | } |
| 41475 | bool EvalEmitter::emitNEUint32(SourceInfo L) { |
| 41476 | if (!isActive()) return true; |
| 41477 | CurrentSource = L; |
| 41478 | return NE<PT_Uint32>(S, CodePtr()); |
| 41479 | } |
| 41480 | bool EvalEmitter::emitNESint64(SourceInfo L) { |
| 41481 | if (!isActive()) return true; |
| 41482 | CurrentSource = L; |
| 41483 | return NE<PT_Sint64>(S, CodePtr()); |
| 41484 | } |
| 41485 | bool EvalEmitter::emitNEUint64(SourceInfo L) { |
| 41486 | if (!isActive()) return true; |
| 41487 | CurrentSource = L; |
| 41488 | return NE<PT_Uint64>(S, CodePtr()); |
| 41489 | } |
| 41490 | bool EvalEmitter::emitNEIntAP(SourceInfo L) { |
| 41491 | if (!isActive()) return true; |
| 41492 | CurrentSource = L; |
| 41493 | return NE<PT_IntAP>(S, CodePtr()); |
| 41494 | } |
| 41495 | bool EvalEmitter::emitNEIntAPS(SourceInfo L) { |
| 41496 | if (!isActive()) return true; |
| 41497 | CurrentSource = L; |
| 41498 | return NE<PT_IntAPS>(S, CodePtr()); |
| 41499 | } |
| 41500 | bool EvalEmitter::emitNEBool(SourceInfo L) { |
| 41501 | if (!isActive()) return true; |
| 41502 | CurrentSource = L; |
| 41503 | return NE<PT_Bool>(S, CodePtr()); |
| 41504 | } |
| 41505 | bool EvalEmitter::emitNEFixedPoint(SourceInfo L) { |
| 41506 | if (!isActive()) return true; |
| 41507 | CurrentSource = L; |
| 41508 | return NE<PT_FixedPoint>(S, CodePtr()); |
| 41509 | } |
| 41510 | bool EvalEmitter::emitNEPtr(SourceInfo L) { |
| 41511 | if (!isActive()) return true; |
| 41512 | CurrentSource = L; |
| 41513 | return NE<PT_Ptr>(S, CodePtr()); |
| 41514 | } |
| 41515 | bool EvalEmitter::emitNEMemberPtr(SourceInfo L) { |
| 41516 | if (!isActive()) return true; |
| 41517 | CurrentSource = L; |
| 41518 | return NE<PT_MemberPtr>(S, CodePtr()); |
| 41519 | } |
| 41520 | bool EvalEmitter::emitNEFloat(SourceInfo L) { |
| 41521 | if (!isActive()) return true; |
| 41522 | CurrentSource = L; |
| 41523 | return NE<PT_Float>(S, CodePtr()); |
| 41524 | } |
| 41525 | bool EvalEmitter::emitNEReflect(SourceInfo L) { |
| 41526 | if (!isActive()) return true; |
| 41527 | CurrentSource = L; |
| 41528 | return NE<PT_Reflect>(S, CodePtr()); |
| 41529 | } |
| 41530 | #endif |
| 41531 | #ifdef GET_OPCODE_NAMES |
| 41532 | OP_NarrowPtr, |
| 41533 | #endif |
| 41534 | #ifdef GET_INTERPFN_LIST |
| 41535 | &Interp_NarrowPtr, |
| 41536 | #endif |
| 41537 | #ifdef GET_INTERPFN_DISPATCHERS |
| 41538 | PRESERVE_NONE |
| 41539 | static bool Interp_NarrowPtr(InterpState &S) { |
| 41540 | NarrowPtr(S); |
| 41541 | #if USE_TAILCALLS |
| 41542 | MUSTTAIL return InterpNext(S); |
| 41543 | #else |
| 41544 | return true; |
| 41545 | #endif |
| 41546 | } |
| 41547 | #endif |
| 41548 | #ifdef GET_DISASM |
| 41549 | case OP_NarrowPtr: |
| 41550 | Text.Op = PrintName("NarrowPtr" ); |
| 41551 | break; |
| 41552 | #endif |
| 41553 | #if defined(GET_EVAL_PROTO) || defined(GET_LINK_PROTO) |
| 41554 | bool emitNarrowPtr(SourceInfo); |
| 41555 | #endif |
| 41556 | #ifdef GET_LINK_IMPL |
| 41557 | bool ByteCodeEmitter::emitNarrowPtr(SourceInfo L) { |
| 41558 | return emitOp<>(OP_NarrowPtr, L); |
| 41559 | } |
| 41560 | #endif |
| 41561 | #ifdef GET_EVAL_IMPL |
| 41562 | bool EvalEmitter::emitNarrowPtr(SourceInfo L) { |
| 41563 | if (!isActive()) return true; |
| 41564 | CurrentSource = L; |
| 41565 | return NarrowPtr(S); |
| 41566 | } |
| 41567 | #endif |
| 41568 | #ifdef GET_OPCODE_NAMES |
| 41569 | OP_NegSint8, |
| 41570 | OP_NegUint8, |
| 41571 | OP_NegSint16, |
| 41572 | OP_NegUint16, |
| 41573 | OP_NegSint32, |
| 41574 | OP_NegUint32, |
| 41575 | OP_NegSint64, |
| 41576 | OP_NegUint64, |
| 41577 | OP_NegIntAP, |
| 41578 | OP_NegIntAPS, |
| 41579 | OP_NegBool, |
| 41580 | OP_NegFloat, |
| 41581 | OP_NegFixedPoint, |
| 41582 | #endif |
| 41583 | #ifdef GET_INTERPFN_LIST |
| 41584 | &Interp_NegSint8, |
| 41585 | &Interp_NegUint8, |
| 41586 | &Interp_NegSint16, |
| 41587 | &Interp_NegUint16, |
| 41588 | &Interp_NegSint32, |
| 41589 | &Interp_NegUint32, |
| 41590 | &Interp_NegSint64, |
| 41591 | &Interp_NegUint64, |
| 41592 | &Interp_NegIntAP, |
| 41593 | &Interp_NegIntAPS, |
| 41594 | &Interp_NegBool, |
| 41595 | &Interp_NegFloat, |
| 41596 | &Interp_NegFixedPoint, |
| 41597 | #endif |
| 41598 | #ifdef GET_INTERPFN_DISPATCHERS |
| 41599 | PRESERVE_NONE |
| 41600 | static bool Interp_NegSint8(InterpState &S) { |
| 41601 | if (!Neg<PT_Sint8>(S, S.PC)) return false; |
| 41602 | #if USE_TAILCALLS |
| 41603 | MUSTTAIL return InterpNext(S); |
| 41604 | #else |
| 41605 | return true; |
| 41606 | #endif |
| 41607 | } |
| 41608 | PRESERVE_NONE |
| 41609 | static bool Interp_NegUint8(InterpState &S) { |
| 41610 | if (!Neg<PT_Uint8>(S, S.PC)) return false; |
| 41611 | #if USE_TAILCALLS |
| 41612 | MUSTTAIL return InterpNext(S); |
| 41613 | #else |
| 41614 | return true; |
| 41615 | #endif |
| 41616 | } |
| 41617 | PRESERVE_NONE |
| 41618 | static bool Interp_NegSint16(InterpState &S) { |
| 41619 | if (!Neg<PT_Sint16>(S, S.PC)) return false; |
| 41620 | #if USE_TAILCALLS |
| 41621 | MUSTTAIL return InterpNext(S); |
| 41622 | #else |
| 41623 | return true; |
| 41624 | #endif |
| 41625 | } |
| 41626 | PRESERVE_NONE |
| 41627 | static bool Interp_NegUint16(InterpState &S) { |
| 41628 | if (!Neg<PT_Uint16>(S, S.PC)) return false; |
| 41629 | #if USE_TAILCALLS |
| 41630 | MUSTTAIL return InterpNext(S); |
| 41631 | #else |
| 41632 | return true; |
| 41633 | #endif |
| 41634 | } |
| 41635 | PRESERVE_NONE |
| 41636 | static bool Interp_NegSint32(InterpState &S) { |
| 41637 | if (!Neg<PT_Sint32>(S, S.PC)) return false; |
| 41638 | #if USE_TAILCALLS |
| 41639 | MUSTTAIL return InterpNext(S); |
| 41640 | #else |
| 41641 | return true; |
| 41642 | #endif |
| 41643 | } |
| 41644 | PRESERVE_NONE |
| 41645 | static bool Interp_NegUint32(InterpState &S) { |
| 41646 | if (!Neg<PT_Uint32>(S, S.PC)) return false; |
| 41647 | #if USE_TAILCALLS |
| 41648 | MUSTTAIL return InterpNext(S); |
| 41649 | #else |
| 41650 | return true; |
| 41651 | #endif |
| 41652 | } |
| 41653 | PRESERVE_NONE |
| 41654 | static bool Interp_NegSint64(InterpState &S) { |
| 41655 | if (!Neg<PT_Sint64>(S, S.PC)) return false; |
| 41656 | #if USE_TAILCALLS |
| 41657 | MUSTTAIL return InterpNext(S); |
| 41658 | #else |
| 41659 | return true; |
| 41660 | #endif |
| 41661 | } |
| 41662 | PRESERVE_NONE |
| 41663 | static bool Interp_NegUint64(InterpState &S) { |
| 41664 | if (!Neg<PT_Uint64>(S, S.PC)) return false; |
| 41665 | #if USE_TAILCALLS |
| 41666 | MUSTTAIL return InterpNext(S); |
| 41667 | #else |
| 41668 | return true; |
| 41669 | #endif |
| 41670 | } |
| 41671 | PRESERVE_NONE |
| 41672 | static bool Interp_NegIntAP(InterpState &S) { |
| 41673 | if (!Neg<PT_IntAP>(S, S.PC)) return false; |
| 41674 | #if USE_TAILCALLS |
| 41675 | MUSTTAIL return InterpNext(S); |
| 41676 | #else |
| 41677 | return true; |
| 41678 | #endif |
| 41679 | } |
| 41680 | PRESERVE_NONE |
| 41681 | static bool Interp_NegIntAPS(InterpState &S) { |
| 41682 | if (!Neg<PT_IntAPS>(S, S.PC)) return false; |
| 41683 | #if USE_TAILCALLS |
| 41684 | MUSTTAIL return InterpNext(S); |
| 41685 | #else |
| 41686 | return true; |
| 41687 | #endif |
| 41688 | } |
| 41689 | PRESERVE_NONE |
| 41690 | static bool Interp_NegBool(InterpState &S) { |
| 41691 | if (!Neg<PT_Bool>(S, S.PC)) return false; |
| 41692 | #if USE_TAILCALLS |
| 41693 | MUSTTAIL return InterpNext(S); |
| 41694 | #else |
| 41695 | return true; |
| 41696 | #endif |
| 41697 | } |
| 41698 | PRESERVE_NONE |
| 41699 | static bool Interp_NegFloat(InterpState &S) { |
| 41700 | if (!Neg<PT_Float>(S, S.PC)) return false; |
| 41701 | #if USE_TAILCALLS |
| 41702 | MUSTTAIL return InterpNext(S); |
| 41703 | #else |
| 41704 | return true; |
| 41705 | #endif |
| 41706 | } |
| 41707 | PRESERVE_NONE |
| 41708 | static bool Interp_NegFixedPoint(InterpState &S) { |
| 41709 | if (!Neg<PT_FixedPoint>(S, S.PC)) return false; |
| 41710 | #if USE_TAILCALLS |
| 41711 | MUSTTAIL return InterpNext(S); |
| 41712 | #else |
| 41713 | return true; |
| 41714 | #endif |
| 41715 | } |
| 41716 | #endif |
| 41717 | #ifdef GET_DISASM |
| 41718 | case OP_NegSint8: |
| 41719 | Text.Op = PrintName("NegSint8" ); |
| 41720 | break; |
| 41721 | case OP_NegUint8: |
| 41722 | Text.Op = PrintName("NegUint8" ); |
| 41723 | break; |
| 41724 | case OP_NegSint16: |
| 41725 | Text.Op = PrintName("NegSint16" ); |
| 41726 | break; |
| 41727 | case OP_NegUint16: |
| 41728 | Text.Op = PrintName("NegUint16" ); |
| 41729 | break; |
| 41730 | case OP_NegSint32: |
| 41731 | Text.Op = PrintName("NegSint32" ); |
| 41732 | break; |
| 41733 | case OP_NegUint32: |
| 41734 | Text.Op = PrintName("NegUint32" ); |
| 41735 | break; |
| 41736 | case OP_NegSint64: |
| 41737 | Text.Op = PrintName("NegSint64" ); |
| 41738 | break; |
| 41739 | case OP_NegUint64: |
| 41740 | Text.Op = PrintName("NegUint64" ); |
| 41741 | break; |
| 41742 | case OP_NegIntAP: |
| 41743 | Text.Op = PrintName("NegIntAP" ); |
| 41744 | break; |
| 41745 | case OP_NegIntAPS: |
| 41746 | Text.Op = PrintName("NegIntAPS" ); |
| 41747 | break; |
| 41748 | case OP_NegBool: |
| 41749 | Text.Op = PrintName("NegBool" ); |
| 41750 | break; |
| 41751 | case OP_NegFloat: |
| 41752 | Text.Op = PrintName("NegFloat" ); |
| 41753 | break; |
| 41754 | case OP_NegFixedPoint: |
| 41755 | Text.Op = PrintName("NegFixedPoint" ); |
| 41756 | break; |
| 41757 | #endif |
| 41758 | #if defined(GET_EVAL_PROTO) || defined(GET_LINK_PROTO) |
| 41759 | bool emitNegSint8(SourceInfo); |
| 41760 | bool emitNegUint8(SourceInfo); |
| 41761 | bool emitNegSint16(SourceInfo); |
| 41762 | bool emitNegUint16(SourceInfo); |
| 41763 | bool emitNegSint32(SourceInfo); |
| 41764 | bool emitNegUint32(SourceInfo); |
| 41765 | bool emitNegSint64(SourceInfo); |
| 41766 | bool emitNegUint64(SourceInfo); |
| 41767 | bool emitNegIntAP(SourceInfo); |
| 41768 | bool emitNegIntAPS(SourceInfo); |
| 41769 | bool emitNegBool(SourceInfo); |
| 41770 | bool emitNegFloat(SourceInfo); |
| 41771 | bool emitNegFixedPoint(SourceInfo); |
| 41772 | #endif |
| 41773 | #if defined(GET_EVAL_PROTO) || defined(GET_LINK_PROTO) |
| 41774 | [[nodiscard]] bool emitNeg(PrimType, SourceInfo I); |
| 41775 | #endif |
| 41776 | #if defined(GET_EVAL_IMPL) || defined(GET_LINK_IMPL) |
| 41777 | bool |
| 41778 | #if defined(GET_EVAL_IMPL) |
| 41779 | EvalEmitter |
| 41780 | #else |
| 41781 | ByteCodeEmitter |
| 41782 | #endif |
| 41783 | ::emitNeg(PrimType T0, SourceInfo I) { |
| 41784 | switch (T0) { |
| 41785 | case PT_Sint8: |
| 41786 | return emitNegSint8(I); |
| 41787 | case PT_Uint8: |
| 41788 | return emitNegUint8(I); |
| 41789 | case PT_Sint16: |
| 41790 | return emitNegSint16(I); |
| 41791 | case PT_Uint16: |
| 41792 | return emitNegUint16(I); |
| 41793 | case PT_Sint32: |
| 41794 | return emitNegSint32(I); |
| 41795 | case PT_Uint32: |
| 41796 | return emitNegUint32(I); |
| 41797 | case PT_Sint64: |
| 41798 | return emitNegSint64(I); |
| 41799 | case PT_Uint64: |
| 41800 | return emitNegUint64(I); |
| 41801 | case PT_IntAP: |
| 41802 | return emitNegIntAP(I); |
| 41803 | case PT_IntAPS: |
| 41804 | return emitNegIntAPS(I); |
| 41805 | case PT_Bool: |
| 41806 | return emitNegBool(I); |
| 41807 | case PT_Float: |
| 41808 | return emitNegFloat(I); |
| 41809 | case PT_FixedPoint: |
| 41810 | return emitNegFixedPoint(I); |
| 41811 | default: llvm_unreachable("invalid type: emitNeg" ); |
| 41812 | } |
| 41813 | llvm_unreachable("invalid enum value" ); |
| 41814 | } |
| 41815 | #endif |
| 41816 | #ifdef GET_LINK_IMPL |
| 41817 | bool ByteCodeEmitter::emitNegSint8(SourceInfo L) { |
| 41818 | return emitOp<>(OP_NegSint8, L); |
| 41819 | } |
| 41820 | bool ByteCodeEmitter::emitNegUint8(SourceInfo L) { |
| 41821 | return emitOp<>(OP_NegUint8, L); |
| 41822 | } |
| 41823 | bool ByteCodeEmitter::emitNegSint16(SourceInfo L) { |
| 41824 | return emitOp<>(OP_NegSint16, L); |
| 41825 | } |
| 41826 | bool ByteCodeEmitter::emitNegUint16(SourceInfo L) { |
| 41827 | return emitOp<>(OP_NegUint16, L); |
| 41828 | } |
| 41829 | bool ByteCodeEmitter::emitNegSint32(SourceInfo L) { |
| 41830 | return emitOp<>(OP_NegSint32, L); |
| 41831 | } |
| 41832 | bool ByteCodeEmitter::emitNegUint32(SourceInfo L) { |
| 41833 | return emitOp<>(OP_NegUint32, L); |
| 41834 | } |
| 41835 | bool ByteCodeEmitter::emitNegSint64(SourceInfo L) { |
| 41836 | return emitOp<>(OP_NegSint64, L); |
| 41837 | } |
| 41838 | bool ByteCodeEmitter::emitNegUint64(SourceInfo L) { |
| 41839 | return emitOp<>(OP_NegUint64, L); |
| 41840 | } |
| 41841 | bool ByteCodeEmitter::emitNegIntAP(SourceInfo L) { |
| 41842 | return emitOp<>(OP_NegIntAP, L); |
| 41843 | } |
| 41844 | bool ByteCodeEmitter::emitNegIntAPS(SourceInfo L) { |
| 41845 | return emitOp<>(OP_NegIntAPS, L); |
| 41846 | } |
| 41847 | bool ByteCodeEmitter::emitNegBool(SourceInfo L) { |
| 41848 | return emitOp<>(OP_NegBool, L); |
| 41849 | } |
| 41850 | bool ByteCodeEmitter::emitNegFloat(SourceInfo L) { |
| 41851 | return emitOp<>(OP_NegFloat, L); |
| 41852 | } |
| 41853 | bool ByteCodeEmitter::emitNegFixedPoint(SourceInfo L) { |
| 41854 | return emitOp<>(OP_NegFixedPoint, L); |
| 41855 | } |
| 41856 | #endif |
| 41857 | #ifdef GET_EVAL_IMPL |
| 41858 | bool EvalEmitter::emitNegSint8(SourceInfo L) { |
| 41859 | if (!isActive()) return true; |
| 41860 | CurrentSource = L; |
| 41861 | return Neg<PT_Sint8>(S, CodePtr()); |
| 41862 | } |
| 41863 | bool EvalEmitter::emitNegUint8(SourceInfo L) { |
| 41864 | if (!isActive()) return true; |
| 41865 | CurrentSource = L; |
| 41866 | return Neg<PT_Uint8>(S, CodePtr()); |
| 41867 | } |
| 41868 | bool EvalEmitter::emitNegSint16(SourceInfo L) { |
| 41869 | if (!isActive()) return true; |
| 41870 | CurrentSource = L; |
| 41871 | return Neg<PT_Sint16>(S, CodePtr()); |
| 41872 | } |
| 41873 | bool EvalEmitter::emitNegUint16(SourceInfo L) { |
| 41874 | if (!isActive()) return true; |
| 41875 | CurrentSource = L; |
| 41876 | return Neg<PT_Uint16>(S, CodePtr()); |
| 41877 | } |
| 41878 | bool EvalEmitter::emitNegSint32(SourceInfo L) { |
| 41879 | if (!isActive()) return true; |
| 41880 | CurrentSource = L; |
| 41881 | return Neg<PT_Sint32>(S, CodePtr()); |
| 41882 | } |
| 41883 | bool EvalEmitter::emitNegUint32(SourceInfo L) { |
| 41884 | if (!isActive()) return true; |
| 41885 | CurrentSource = L; |
| 41886 | return Neg<PT_Uint32>(S, CodePtr()); |
| 41887 | } |
| 41888 | bool EvalEmitter::emitNegSint64(SourceInfo L) { |
| 41889 | if (!isActive()) return true; |
| 41890 | CurrentSource = L; |
| 41891 | return Neg<PT_Sint64>(S, CodePtr()); |
| 41892 | } |
| 41893 | bool EvalEmitter::emitNegUint64(SourceInfo L) { |
| 41894 | if (!isActive()) return true; |
| 41895 | CurrentSource = L; |
| 41896 | return Neg<PT_Uint64>(S, CodePtr()); |
| 41897 | } |
| 41898 | bool EvalEmitter::emitNegIntAP(SourceInfo L) { |
| 41899 | if (!isActive()) return true; |
| 41900 | CurrentSource = L; |
| 41901 | return Neg<PT_IntAP>(S, CodePtr()); |
| 41902 | } |
| 41903 | bool EvalEmitter::emitNegIntAPS(SourceInfo L) { |
| 41904 | if (!isActive()) return true; |
| 41905 | CurrentSource = L; |
| 41906 | return Neg<PT_IntAPS>(S, CodePtr()); |
| 41907 | } |
| 41908 | bool EvalEmitter::emitNegBool(SourceInfo L) { |
| 41909 | if (!isActive()) return true; |
| 41910 | CurrentSource = L; |
| 41911 | return Neg<PT_Bool>(S, CodePtr()); |
| 41912 | } |
| 41913 | bool EvalEmitter::emitNegFloat(SourceInfo L) { |
| 41914 | if (!isActive()) return true; |
| 41915 | CurrentSource = L; |
| 41916 | return Neg<PT_Float>(S, CodePtr()); |
| 41917 | } |
| 41918 | bool EvalEmitter::emitNegFixedPoint(SourceInfo L) { |
| 41919 | if (!isActive()) return true; |
| 41920 | CurrentSource = L; |
| 41921 | return Neg<PT_FixedPoint>(S, CodePtr()); |
| 41922 | } |
| 41923 | #endif |
| 41924 | #ifdef GET_OPCODE_NAMES |
| 41925 | OP_NoRet, |
| 41926 | #endif |
| 41927 | #ifdef GET_INTERPFN_LIST |
| 41928 | &Interp_NoRet, |
| 41929 | #endif |
| 41930 | #ifdef GET_INTERPFN_DISPATCHERS |
| 41931 | PRESERVE_NONE |
| 41932 | static bool Interp_NoRet(InterpState &S) { |
| 41933 | if (!NoRet(S)) return false; |
| 41934 | #if USE_TAILCALLS |
| 41935 | MUSTTAIL return InterpNext(S); |
| 41936 | #else |
| 41937 | return true; |
| 41938 | #endif |
| 41939 | } |
| 41940 | #endif |
| 41941 | #ifdef GET_DISASM |
| 41942 | case OP_NoRet: |
| 41943 | Text.Op = PrintName("NoRet" ); |
| 41944 | break; |
| 41945 | #endif |
| 41946 | #if defined(GET_EVAL_PROTO) || defined(GET_LINK_PROTO) |
| 41947 | bool emitNoRet(SourceInfo); |
| 41948 | #endif |
| 41949 | #ifdef GET_LINK_IMPL |
| 41950 | bool ByteCodeEmitter::emitNoRet(SourceInfo L) { |
| 41951 | return emitOp<>(OP_NoRet, L); |
| 41952 | } |
| 41953 | #endif |
| 41954 | #ifdef GET_EVAL_IMPL |
| 41955 | bool EvalEmitter::emitNoRet(SourceInfo L) { |
| 41956 | if (!isActive()) return true; |
| 41957 | CurrentSource = L; |
| 41958 | return NoRet(S); |
| 41959 | } |
| 41960 | #endif |
| 41961 | #ifdef GET_OPCODE_NAMES |
| 41962 | OP_NullPtr, |
| 41963 | OP_NullMemberPtr, |
| 41964 | #endif |
| 41965 | #ifdef GET_INTERPFN_LIST |
| 41966 | &Interp_NullPtr, |
| 41967 | &Interp_NullMemberPtr, |
| 41968 | #endif |
| 41969 | #ifdef GET_INTERPFN_DISPATCHERS |
| 41970 | PRESERVE_NONE |
| 41971 | static bool Interp_NullPtr(InterpState &S) { |
| 41972 | { |
| 41973 | const auto V0 = ReadArg<uint64_t>(S, S.PC); |
| 41974 | const auto V1 = ReadArg<const Type *>(S, S.PC); |
| 41975 | Null<PT_Ptr>(S, V0, V1); |
| 41976 | } |
| 41977 | #if USE_TAILCALLS |
| 41978 | MUSTTAIL return InterpNext(S); |
| 41979 | #else |
| 41980 | return true; |
| 41981 | #endif |
| 41982 | } |
| 41983 | PRESERVE_NONE |
| 41984 | static bool Interp_NullMemberPtr(InterpState &S) { |
| 41985 | { |
| 41986 | const auto V0 = ReadArg<uint64_t>(S, S.PC); |
| 41987 | const auto V1 = ReadArg<const Type *>(S, S.PC); |
| 41988 | Null<PT_MemberPtr>(S, V0, V1); |
| 41989 | } |
| 41990 | #if USE_TAILCALLS |
| 41991 | MUSTTAIL return InterpNext(S); |
| 41992 | #else |
| 41993 | return true; |
| 41994 | #endif |
| 41995 | } |
| 41996 | #endif |
| 41997 | #ifdef GET_DISASM |
| 41998 | case OP_NullPtr: |
| 41999 | Text.Op = PrintName("NullPtr" ); |
| 42000 | Text.Args.push_back(printArg<uint64_t>(PC)); |
| 42001 | Text.Args.push_back(printArg<const Type *>(PC)); |
| 42002 | break; |
| 42003 | case OP_NullMemberPtr: |
| 42004 | Text.Op = PrintName("NullMemberPtr" ); |
| 42005 | Text.Args.push_back(printArg<uint64_t>(PC)); |
| 42006 | Text.Args.push_back(printArg<const Type *>(PC)); |
| 42007 | break; |
| 42008 | #endif |
| 42009 | #if defined(GET_EVAL_PROTO) || defined(GET_LINK_PROTO) |
| 42010 | bool emitNullPtr( uint64_t , const Type * , SourceInfo); |
| 42011 | bool emitNullMemberPtr( uint64_t , const Type * , SourceInfo); |
| 42012 | #endif |
| 42013 | #if defined(GET_EVAL_PROTO) || defined(GET_LINK_PROTO) |
| 42014 | [[nodiscard]] bool emitNull(PrimType, uint64_t, const Type *, SourceInfo I); |
| 42015 | #endif |
| 42016 | #if defined(GET_EVAL_IMPL) || defined(GET_LINK_IMPL) |
| 42017 | bool |
| 42018 | #if defined(GET_EVAL_IMPL) |
| 42019 | EvalEmitter |
| 42020 | #else |
| 42021 | ByteCodeEmitter |
| 42022 | #endif |
| 42023 | ::emitNull(PrimType T0, uint64_t A0, const Type * A1, SourceInfo I) { |
| 42024 | switch (T0) { |
| 42025 | case PT_Ptr: |
| 42026 | return emitNullPtr(A0, A1, I); |
| 42027 | case PT_MemberPtr: |
| 42028 | return emitNullMemberPtr(A0, A1, I); |
| 42029 | default: llvm_unreachable("invalid type: emitNull" ); |
| 42030 | } |
| 42031 | llvm_unreachable("invalid enum value" ); |
| 42032 | } |
| 42033 | #endif |
| 42034 | #ifdef GET_LINK_IMPL |
| 42035 | bool ByteCodeEmitter::emitNullPtr( uint64_t A0, const Type * A1, SourceInfo L) { |
| 42036 | return emitOp<uint64_t, const Type *>(OP_NullPtr, A0, A1, L); |
| 42037 | } |
| 42038 | bool ByteCodeEmitter::emitNullMemberPtr( uint64_t A0, const Type * A1, SourceInfo L) { |
| 42039 | return emitOp<uint64_t, const Type *>(OP_NullMemberPtr, A0, A1, L); |
| 42040 | } |
| 42041 | #endif |
| 42042 | #ifdef GET_EVAL_IMPL |
| 42043 | bool EvalEmitter::emitNullPtr( uint64_t A0, const Type * A1, SourceInfo L) { |
| 42044 | if (!isActive()) return true; |
| 42045 | CurrentSource = L; |
| 42046 | return Null<PT_Ptr>(S, A0, A1); |
| 42047 | } |
| 42048 | bool EvalEmitter::emitNullMemberPtr( uint64_t A0, const Type * A1, SourceInfo L) { |
| 42049 | if (!isActive()) return true; |
| 42050 | CurrentSource = L; |
| 42051 | return Null<PT_MemberPtr>(S, A0, A1); |
| 42052 | } |
| 42053 | #endif |
| 42054 | #ifdef GET_OPCODE_NAMES |
| 42055 | OP_OffsetOfSint8, |
| 42056 | OP_OffsetOfUint8, |
| 42057 | OP_OffsetOfSint16, |
| 42058 | OP_OffsetOfUint16, |
| 42059 | OP_OffsetOfSint32, |
| 42060 | OP_OffsetOfUint32, |
| 42061 | OP_OffsetOfSint64, |
| 42062 | OP_OffsetOfUint64, |
| 42063 | OP_OffsetOfIntAP, |
| 42064 | OP_OffsetOfIntAPS, |
| 42065 | #endif |
| 42066 | #ifdef GET_INTERPFN_LIST |
| 42067 | &Interp_OffsetOfSint8, |
| 42068 | &Interp_OffsetOfUint8, |
| 42069 | &Interp_OffsetOfSint16, |
| 42070 | &Interp_OffsetOfUint16, |
| 42071 | &Interp_OffsetOfSint32, |
| 42072 | &Interp_OffsetOfUint32, |
| 42073 | &Interp_OffsetOfSint64, |
| 42074 | &Interp_OffsetOfUint64, |
| 42075 | &Interp_OffsetOfIntAP, |
| 42076 | &Interp_OffsetOfIntAPS, |
| 42077 | #endif |
| 42078 | #ifdef GET_INTERPFN_DISPATCHERS |
| 42079 | PRESERVE_NONE |
| 42080 | static bool Interp_OffsetOfSint8(InterpState &S) { |
| 42081 | { |
| 42082 | CodePtr OpPC = S.PC; |
| 42083 | const auto V0 = ReadArg<const OffsetOfExpr *>(S, S.PC); |
| 42084 | if (!OffsetOf<PT_Sint8>(S, OpPC, V0)) return false; |
| 42085 | } |
| 42086 | #if USE_TAILCALLS |
| 42087 | MUSTTAIL return InterpNext(S); |
| 42088 | #else |
| 42089 | return true; |
| 42090 | #endif |
| 42091 | } |
| 42092 | PRESERVE_NONE |
| 42093 | static bool Interp_OffsetOfUint8(InterpState &S) { |
| 42094 | { |
| 42095 | CodePtr OpPC = S.PC; |
| 42096 | const auto V0 = ReadArg<const OffsetOfExpr *>(S, S.PC); |
| 42097 | if (!OffsetOf<PT_Uint8>(S, OpPC, V0)) return false; |
| 42098 | } |
| 42099 | #if USE_TAILCALLS |
| 42100 | MUSTTAIL return InterpNext(S); |
| 42101 | #else |
| 42102 | return true; |
| 42103 | #endif |
| 42104 | } |
| 42105 | PRESERVE_NONE |
| 42106 | static bool Interp_OffsetOfSint16(InterpState &S) { |
| 42107 | { |
| 42108 | CodePtr OpPC = S.PC; |
| 42109 | const auto V0 = ReadArg<const OffsetOfExpr *>(S, S.PC); |
| 42110 | if (!OffsetOf<PT_Sint16>(S, OpPC, V0)) return false; |
| 42111 | } |
| 42112 | #if USE_TAILCALLS |
| 42113 | MUSTTAIL return InterpNext(S); |
| 42114 | #else |
| 42115 | return true; |
| 42116 | #endif |
| 42117 | } |
| 42118 | PRESERVE_NONE |
| 42119 | static bool Interp_OffsetOfUint16(InterpState &S) { |
| 42120 | { |
| 42121 | CodePtr OpPC = S.PC; |
| 42122 | const auto V0 = ReadArg<const OffsetOfExpr *>(S, S.PC); |
| 42123 | if (!OffsetOf<PT_Uint16>(S, OpPC, V0)) return false; |
| 42124 | } |
| 42125 | #if USE_TAILCALLS |
| 42126 | MUSTTAIL return InterpNext(S); |
| 42127 | #else |
| 42128 | return true; |
| 42129 | #endif |
| 42130 | } |
| 42131 | PRESERVE_NONE |
| 42132 | static bool Interp_OffsetOfSint32(InterpState &S) { |
| 42133 | { |
| 42134 | CodePtr OpPC = S.PC; |
| 42135 | const auto V0 = ReadArg<const OffsetOfExpr *>(S, S.PC); |
| 42136 | if (!OffsetOf<PT_Sint32>(S, OpPC, V0)) return false; |
| 42137 | } |
| 42138 | #if USE_TAILCALLS |
| 42139 | MUSTTAIL return InterpNext(S); |
| 42140 | #else |
| 42141 | return true; |
| 42142 | #endif |
| 42143 | } |
| 42144 | PRESERVE_NONE |
| 42145 | static bool Interp_OffsetOfUint32(InterpState &S) { |
| 42146 | { |
| 42147 | CodePtr OpPC = S.PC; |
| 42148 | const auto V0 = ReadArg<const OffsetOfExpr *>(S, S.PC); |
| 42149 | if (!OffsetOf<PT_Uint32>(S, OpPC, V0)) return false; |
| 42150 | } |
| 42151 | #if USE_TAILCALLS |
| 42152 | MUSTTAIL return InterpNext(S); |
| 42153 | #else |
| 42154 | return true; |
| 42155 | #endif |
| 42156 | } |
| 42157 | PRESERVE_NONE |
| 42158 | static bool Interp_OffsetOfSint64(InterpState &S) { |
| 42159 | { |
| 42160 | CodePtr OpPC = S.PC; |
| 42161 | const auto V0 = ReadArg<const OffsetOfExpr *>(S, S.PC); |
| 42162 | if (!OffsetOf<PT_Sint64>(S, OpPC, V0)) return false; |
| 42163 | } |
| 42164 | #if USE_TAILCALLS |
| 42165 | MUSTTAIL return InterpNext(S); |
| 42166 | #else |
| 42167 | return true; |
| 42168 | #endif |
| 42169 | } |
| 42170 | PRESERVE_NONE |
| 42171 | static bool Interp_OffsetOfUint64(InterpState &S) { |
| 42172 | { |
| 42173 | CodePtr OpPC = S.PC; |
| 42174 | const auto V0 = ReadArg<const OffsetOfExpr *>(S, S.PC); |
| 42175 | if (!OffsetOf<PT_Uint64>(S, OpPC, V0)) return false; |
| 42176 | } |
| 42177 | #if USE_TAILCALLS |
| 42178 | MUSTTAIL return InterpNext(S); |
| 42179 | #else |
| 42180 | return true; |
| 42181 | #endif |
| 42182 | } |
| 42183 | PRESERVE_NONE |
| 42184 | static bool Interp_OffsetOfIntAP(InterpState &S) { |
| 42185 | { |
| 42186 | CodePtr OpPC = S.PC; |
| 42187 | const auto V0 = ReadArg<const OffsetOfExpr *>(S, S.PC); |
| 42188 | if (!OffsetOf<PT_IntAP>(S, OpPC, V0)) return false; |
| 42189 | } |
| 42190 | #if USE_TAILCALLS |
| 42191 | MUSTTAIL return InterpNext(S); |
| 42192 | #else |
| 42193 | return true; |
| 42194 | #endif |
| 42195 | } |
| 42196 | PRESERVE_NONE |
| 42197 | static bool Interp_OffsetOfIntAPS(InterpState &S) { |
| 42198 | { |
| 42199 | CodePtr OpPC = S.PC; |
| 42200 | const auto V0 = ReadArg<const OffsetOfExpr *>(S, S.PC); |
| 42201 | if (!OffsetOf<PT_IntAPS>(S, OpPC, V0)) return false; |
| 42202 | } |
| 42203 | #if USE_TAILCALLS |
| 42204 | MUSTTAIL return InterpNext(S); |
| 42205 | #else |
| 42206 | return true; |
| 42207 | #endif |
| 42208 | } |
| 42209 | #endif |
| 42210 | #ifdef GET_DISASM |
| 42211 | case OP_OffsetOfSint8: |
| 42212 | Text.Op = PrintName("OffsetOfSint8" ); |
| 42213 | Text.Args.push_back(printArg<const OffsetOfExpr *>(PC)); |
| 42214 | break; |
| 42215 | case OP_OffsetOfUint8: |
| 42216 | Text.Op = PrintName("OffsetOfUint8" ); |
| 42217 | Text.Args.push_back(printArg<const OffsetOfExpr *>(PC)); |
| 42218 | break; |
| 42219 | case OP_OffsetOfSint16: |
| 42220 | Text.Op = PrintName("OffsetOfSint16" ); |
| 42221 | Text.Args.push_back(printArg<const OffsetOfExpr *>(PC)); |
| 42222 | break; |
| 42223 | case OP_OffsetOfUint16: |
| 42224 | Text.Op = PrintName("OffsetOfUint16" ); |
| 42225 | Text.Args.push_back(printArg<const OffsetOfExpr *>(PC)); |
| 42226 | break; |
| 42227 | case OP_OffsetOfSint32: |
| 42228 | Text.Op = PrintName("OffsetOfSint32" ); |
| 42229 | Text.Args.push_back(printArg<const OffsetOfExpr *>(PC)); |
| 42230 | break; |
| 42231 | case OP_OffsetOfUint32: |
| 42232 | Text.Op = PrintName("OffsetOfUint32" ); |
| 42233 | Text.Args.push_back(printArg<const OffsetOfExpr *>(PC)); |
| 42234 | break; |
| 42235 | case OP_OffsetOfSint64: |
| 42236 | Text.Op = PrintName("OffsetOfSint64" ); |
| 42237 | Text.Args.push_back(printArg<const OffsetOfExpr *>(PC)); |
| 42238 | break; |
| 42239 | case OP_OffsetOfUint64: |
| 42240 | Text.Op = PrintName("OffsetOfUint64" ); |
| 42241 | Text.Args.push_back(printArg<const OffsetOfExpr *>(PC)); |
| 42242 | break; |
| 42243 | case OP_OffsetOfIntAP: |
| 42244 | Text.Op = PrintName("OffsetOfIntAP" ); |
| 42245 | Text.Args.push_back(printArg<const OffsetOfExpr *>(PC)); |
| 42246 | break; |
| 42247 | case OP_OffsetOfIntAPS: |
| 42248 | Text.Op = PrintName("OffsetOfIntAPS" ); |
| 42249 | Text.Args.push_back(printArg<const OffsetOfExpr *>(PC)); |
| 42250 | break; |
| 42251 | #endif |
| 42252 | #if defined(GET_EVAL_PROTO) || defined(GET_LINK_PROTO) |
| 42253 | bool emitOffsetOfSint8( const OffsetOfExpr * , SourceInfo); |
| 42254 | bool emitOffsetOfUint8( const OffsetOfExpr * , SourceInfo); |
| 42255 | bool emitOffsetOfSint16( const OffsetOfExpr * , SourceInfo); |
| 42256 | bool emitOffsetOfUint16( const OffsetOfExpr * , SourceInfo); |
| 42257 | bool emitOffsetOfSint32( const OffsetOfExpr * , SourceInfo); |
| 42258 | bool emitOffsetOfUint32( const OffsetOfExpr * , SourceInfo); |
| 42259 | bool emitOffsetOfSint64( const OffsetOfExpr * , SourceInfo); |
| 42260 | bool emitOffsetOfUint64( const OffsetOfExpr * , SourceInfo); |
| 42261 | bool emitOffsetOfIntAP( const OffsetOfExpr * , SourceInfo); |
| 42262 | bool emitOffsetOfIntAPS( const OffsetOfExpr * , SourceInfo); |
| 42263 | #endif |
| 42264 | #if defined(GET_EVAL_PROTO) || defined(GET_LINK_PROTO) |
| 42265 | [[nodiscard]] bool emitOffsetOf(PrimType, const OffsetOfExpr *, SourceInfo I); |
| 42266 | #endif |
| 42267 | #if defined(GET_EVAL_IMPL) || defined(GET_LINK_IMPL) |
| 42268 | bool |
| 42269 | #if defined(GET_EVAL_IMPL) |
| 42270 | EvalEmitter |
| 42271 | #else |
| 42272 | ByteCodeEmitter |
| 42273 | #endif |
| 42274 | ::emitOffsetOf(PrimType T0, const OffsetOfExpr * A0, SourceInfo I) { |
| 42275 | switch (T0) { |
| 42276 | case PT_Sint8: |
| 42277 | return emitOffsetOfSint8(A0, I); |
| 42278 | case PT_Uint8: |
| 42279 | return emitOffsetOfUint8(A0, I); |
| 42280 | case PT_Sint16: |
| 42281 | return emitOffsetOfSint16(A0, I); |
| 42282 | case PT_Uint16: |
| 42283 | return emitOffsetOfUint16(A0, I); |
| 42284 | case PT_Sint32: |
| 42285 | return emitOffsetOfSint32(A0, I); |
| 42286 | case PT_Uint32: |
| 42287 | return emitOffsetOfUint32(A0, I); |
| 42288 | case PT_Sint64: |
| 42289 | return emitOffsetOfSint64(A0, I); |
| 42290 | case PT_Uint64: |
| 42291 | return emitOffsetOfUint64(A0, I); |
| 42292 | case PT_IntAP: |
| 42293 | return emitOffsetOfIntAP(A0, I); |
| 42294 | case PT_IntAPS: |
| 42295 | return emitOffsetOfIntAPS(A0, I); |
| 42296 | default: llvm_unreachable("invalid type: emitOffsetOf" ); |
| 42297 | } |
| 42298 | llvm_unreachable("invalid enum value" ); |
| 42299 | } |
| 42300 | #endif |
| 42301 | #ifdef GET_LINK_IMPL |
| 42302 | bool ByteCodeEmitter::emitOffsetOfSint8( const OffsetOfExpr * A0, SourceInfo L) { |
| 42303 | return emitOp<const OffsetOfExpr *>(OP_OffsetOfSint8, A0, L); |
| 42304 | } |
| 42305 | bool ByteCodeEmitter::emitOffsetOfUint8( const OffsetOfExpr * A0, SourceInfo L) { |
| 42306 | return emitOp<const OffsetOfExpr *>(OP_OffsetOfUint8, A0, L); |
| 42307 | } |
| 42308 | bool ByteCodeEmitter::emitOffsetOfSint16( const OffsetOfExpr * A0, SourceInfo L) { |
| 42309 | return emitOp<const OffsetOfExpr *>(OP_OffsetOfSint16, A0, L); |
| 42310 | } |
| 42311 | bool ByteCodeEmitter::emitOffsetOfUint16( const OffsetOfExpr * A0, SourceInfo L) { |
| 42312 | return emitOp<const OffsetOfExpr *>(OP_OffsetOfUint16, A0, L); |
| 42313 | } |
| 42314 | bool ByteCodeEmitter::emitOffsetOfSint32( const OffsetOfExpr * A0, SourceInfo L) { |
| 42315 | return emitOp<const OffsetOfExpr *>(OP_OffsetOfSint32, A0, L); |
| 42316 | } |
| 42317 | bool ByteCodeEmitter::emitOffsetOfUint32( const OffsetOfExpr * A0, SourceInfo L) { |
| 42318 | return emitOp<const OffsetOfExpr *>(OP_OffsetOfUint32, A0, L); |
| 42319 | } |
| 42320 | bool ByteCodeEmitter::emitOffsetOfSint64( const OffsetOfExpr * A0, SourceInfo L) { |
| 42321 | return emitOp<const OffsetOfExpr *>(OP_OffsetOfSint64, A0, L); |
| 42322 | } |
| 42323 | bool ByteCodeEmitter::emitOffsetOfUint64( const OffsetOfExpr * A0, SourceInfo L) { |
| 42324 | return emitOp<const OffsetOfExpr *>(OP_OffsetOfUint64, A0, L); |
| 42325 | } |
| 42326 | bool ByteCodeEmitter::emitOffsetOfIntAP( const OffsetOfExpr * A0, SourceInfo L) { |
| 42327 | return emitOp<const OffsetOfExpr *>(OP_OffsetOfIntAP, A0, L); |
| 42328 | } |
| 42329 | bool ByteCodeEmitter::emitOffsetOfIntAPS( const OffsetOfExpr * A0, SourceInfo L) { |
| 42330 | return emitOp<const OffsetOfExpr *>(OP_OffsetOfIntAPS, A0, L); |
| 42331 | } |
| 42332 | #endif |
| 42333 | #ifdef GET_EVAL_IMPL |
| 42334 | bool EvalEmitter::emitOffsetOfSint8( const OffsetOfExpr * A0, SourceInfo L) { |
| 42335 | if (!isActive()) return true; |
| 42336 | CurrentSource = L; |
| 42337 | return OffsetOf<PT_Sint8>(S, CodePtr(), A0); |
| 42338 | } |
| 42339 | bool EvalEmitter::emitOffsetOfUint8( const OffsetOfExpr * A0, SourceInfo L) { |
| 42340 | if (!isActive()) return true; |
| 42341 | CurrentSource = L; |
| 42342 | return OffsetOf<PT_Uint8>(S, CodePtr(), A0); |
| 42343 | } |
| 42344 | bool EvalEmitter::emitOffsetOfSint16( const OffsetOfExpr * A0, SourceInfo L) { |
| 42345 | if (!isActive()) return true; |
| 42346 | CurrentSource = L; |
| 42347 | return OffsetOf<PT_Sint16>(S, CodePtr(), A0); |
| 42348 | } |
| 42349 | bool EvalEmitter::emitOffsetOfUint16( const OffsetOfExpr * A0, SourceInfo L) { |
| 42350 | if (!isActive()) return true; |
| 42351 | CurrentSource = L; |
| 42352 | return OffsetOf<PT_Uint16>(S, CodePtr(), A0); |
| 42353 | } |
| 42354 | bool EvalEmitter::emitOffsetOfSint32( const OffsetOfExpr * A0, SourceInfo L) { |
| 42355 | if (!isActive()) return true; |
| 42356 | CurrentSource = L; |
| 42357 | return OffsetOf<PT_Sint32>(S, CodePtr(), A0); |
| 42358 | } |
| 42359 | bool EvalEmitter::emitOffsetOfUint32( const OffsetOfExpr * A0, SourceInfo L) { |
| 42360 | if (!isActive()) return true; |
| 42361 | CurrentSource = L; |
| 42362 | return OffsetOf<PT_Uint32>(S, CodePtr(), A0); |
| 42363 | } |
| 42364 | bool EvalEmitter::emitOffsetOfSint64( const OffsetOfExpr * A0, SourceInfo L) { |
| 42365 | if (!isActive()) return true; |
| 42366 | CurrentSource = L; |
| 42367 | return OffsetOf<PT_Sint64>(S, CodePtr(), A0); |
| 42368 | } |
| 42369 | bool EvalEmitter::emitOffsetOfUint64( const OffsetOfExpr * A0, SourceInfo L) { |
| 42370 | if (!isActive()) return true; |
| 42371 | CurrentSource = L; |
| 42372 | return OffsetOf<PT_Uint64>(S, CodePtr(), A0); |
| 42373 | } |
| 42374 | bool EvalEmitter::emitOffsetOfIntAP( const OffsetOfExpr * A0, SourceInfo L) { |
| 42375 | if (!isActive()) return true; |
| 42376 | CurrentSource = L; |
| 42377 | return OffsetOf<PT_IntAP>(S, CodePtr(), A0); |
| 42378 | } |
| 42379 | bool EvalEmitter::emitOffsetOfIntAPS( const OffsetOfExpr * A0, SourceInfo L) { |
| 42380 | if (!isActive()) return true; |
| 42381 | CurrentSource = L; |
| 42382 | return OffsetOf<PT_IntAPS>(S, CodePtr(), A0); |
| 42383 | } |
| 42384 | #endif |
| 42385 | #ifdef GET_OPCODE_NAMES |
| 42386 | OP_PopSint8, |
| 42387 | OP_PopUint8, |
| 42388 | OP_PopSint16, |
| 42389 | OP_PopUint16, |
| 42390 | OP_PopSint32, |
| 42391 | OP_PopUint32, |
| 42392 | OP_PopSint64, |
| 42393 | OP_PopUint64, |
| 42394 | OP_PopIntAP, |
| 42395 | OP_PopIntAPS, |
| 42396 | OP_PopBool, |
| 42397 | OP_PopFixedPoint, |
| 42398 | OP_PopPtr, |
| 42399 | OP_PopMemberPtr, |
| 42400 | OP_PopFloat, |
| 42401 | OP_PopReflect, |
| 42402 | #endif |
| 42403 | #ifdef GET_INTERPFN_LIST |
| 42404 | &Interp_PopSint8, |
| 42405 | &Interp_PopUint8, |
| 42406 | &Interp_PopSint16, |
| 42407 | &Interp_PopUint16, |
| 42408 | &Interp_PopSint32, |
| 42409 | &Interp_PopUint32, |
| 42410 | &Interp_PopSint64, |
| 42411 | &Interp_PopUint64, |
| 42412 | &Interp_PopIntAP, |
| 42413 | &Interp_PopIntAPS, |
| 42414 | &Interp_PopBool, |
| 42415 | &Interp_PopFixedPoint, |
| 42416 | &Interp_PopPtr, |
| 42417 | &Interp_PopMemberPtr, |
| 42418 | &Interp_PopFloat, |
| 42419 | &Interp_PopReflect, |
| 42420 | #endif |
| 42421 | #ifdef GET_INTERPFN_DISPATCHERS |
| 42422 | PRESERVE_NONE |
| 42423 | static bool Interp_PopSint8(InterpState &S) { |
| 42424 | Pop<PT_Sint8>(S); |
| 42425 | #if USE_TAILCALLS |
| 42426 | MUSTTAIL return InterpNext(S); |
| 42427 | #else |
| 42428 | return true; |
| 42429 | #endif |
| 42430 | } |
| 42431 | PRESERVE_NONE |
| 42432 | static bool Interp_PopUint8(InterpState &S) { |
| 42433 | Pop<PT_Uint8>(S); |
| 42434 | #if USE_TAILCALLS |
| 42435 | MUSTTAIL return InterpNext(S); |
| 42436 | #else |
| 42437 | return true; |
| 42438 | #endif |
| 42439 | } |
| 42440 | PRESERVE_NONE |
| 42441 | static bool Interp_PopSint16(InterpState &S) { |
| 42442 | Pop<PT_Sint16>(S); |
| 42443 | #if USE_TAILCALLS |
| 42444 | MUSTTAIL return InterpNext(S); |
| 42445 | #else |
| 42446 | return true; |
| 42447 | #endif |
| 42448 | } |
| 42449 | PRESERVE_NONE |
| 42450 | static bool Interp_PopUint16(InterpState &S) { |
| 42451 | Pop<PT_Uint16>(S); |
| 42452 | #if USE_TAILCALLS |
| 42453 | MUSTTAIL return InterpNext(S); |
| 42454 | #else |
| 42455 | return true; |
| 42456 | #endif |
| 42457 | } |
| 42458 | PRESERVE_NONE |
| 42459 | static bool Interp_PopSint32(InterpState &S) { |
| 42460 | Pop<PT_Sint32>(S); |
| 42461 | #if USE_TAILCALLS |
| 42462 | MUSTTAIL return InterpNext(S); |
| 42463 | #else |
| 42464 | return true; |
| 42465 | #endif |
| 42466 | } |
| 42467 | PRESERVE_NONE |
| 42468 | static bool Interp_PopUint32(InterpState &S) { |
| 42469 | Pop<PT_Uint32>(S); |
| 42470 | #if USE_TAILCALLS |
| 42471 | MUSTTAIL return InterpNext(S); |
| 42472 | #else |
| 42473 | return true; |
| 42474 | #endif |
| 42475 | } |
| 42476 | PRESERVE_NONE |
| 42477 | static bool Interp_PopSint64(InterpState &S) { |
| 42478 | Pop<PT_Sint64>(S); |
| 42479 | #if USE_TAILCALLS |
| 42480 | MUSTTAIL return InterpNext(S); |
| 42481 | #else |
| 42482 | return true; |
| 42483 | #endif |
| 42484 | } |
| 42485 | PRESERVE_NONE |
| 42486 | static bool Interp_PopUint64(InterpState &S) { |
| 42487 | Pop<PT_Uint64>(S); |
| 42488 | #if USE_TAILCALLS |
| 42489 | MUSTTAIL return InterpNext(S); |
| 42490 | #else |
| 42491 | return true; |
| 42492 | #endif |
| 42493 | } |
| 42494 | PRESERVE_NONE |
| 42495 | static bool Interp_PopIntAP(InterpState &S) { |
| 42496 | Pop<PT_IntAP>(S); |
| 42497 | #if USE_TAILCALLS |
| 42498 | MUSTTAIL return InterpNext(S); |
| 42499 | #else |
| 42500 | return true; |
| 42501 | #endif |
| 42502 | } |
| 42503 | PRESERVE_NONE |
| 42504 | static bool Interp_PopIntAPS(InterpState &S) { |
| 42505 | Pop<PT_IntAPS>(S); |
| 42506 | #if USE_TAILCALLS |
| 42507 | MUSTTAIL return InterpNext(S); |
| 42508 | #else |
| 42509 | return true; |
| 42510 | #endif |
| 42511 | } |
| 42512 | PRESERVE_NONE |
| 42513 | static bool Interp_PopBool(InterpState &S) { |
| 42514 | Pop<PT_Bool>(S); |
| 42515 | #if USE_TAILCALLS |
| 42516 | MUSTTAIL return InterpNext(S); |
| 42517 | #else |
| 42518 | return true; |
| 42519 | #endif |
| 42520 | } |
| 42521 | PRESERVE_NONE |
| 42522 | static bool Interp_PopFixedPoint(InterpState &S) { |
| 42523 | Pop<PT_FixedPoint>(S); |
| 42524 | #if USE_TAILCALLS |
| 42525 | MUSTTAIL return InterpNext(S); |
| 42526 | #else |
| 42527 | return true; |
| 42528 | #endif |
| 42529 | } |
| 42530 | PRESERVE_NONE |
| 42531 | static bool Interp_PopPtr(InterpState &S) { |
| 42532 | Pop<PT_Ptr>(S); |
| 42533 | #if USE_TAILCALLS |
| 42534 | MUSTTAIL return InterpNext(S); |
| 42535 | #else |
| 42536 | return true; |
| 42537 | #endif |
| 42538 | } |
| 42539 | PRESERVE_NONE |
| 42540 | static bool Interp_PopMemberPtr(InterpState &S) { |
| 42541 | Pop<PT_MemberPtr>(S); |
| 42542 | #if USE_TAILCALLS |
| 42543 | MUSTTAIL return InterpNext(S); |
| 42544 | #else |
| 42545 | return true; |
| 42546 | #endif |
| 42547 | } |
| 42548 | PRESERVE_NONE |
| 42549 | static bool Interp_PopFloat(InterpState &S) { |
| 42550 | Pop<PT_Float>(S); |
| 42551 | #if USE_TAILCALLS |
| 42552 | MUSTTAIL return InterpNext(S); |
| 42553 | #else |
| 42554 | return true; |
| 42555 | #endif |
| 42556 | } |
| 42557 | PRESERVE_NONE |
| 42558 | static bool Interp_PopReflect(InterpState &S) { |
| 42559 | Pop<PT_Reflect>(S); |
| 42560 | #if USE_TAILCALLS |
| 42561 | MUSTTAIL return InterpNext(S); |
| 42562 | #else |
| 42563 | return true; |
| 42564 | #endif |
| 42565 | } |
| 42566 | #endif |
| 42567 | #ifdef GET_DISASM |
| 42568 | case OP_PopSint8: |
| 42569 | Text.Op = PrintName("PopSint8" ); |
| 42570 | break; |
| 42571 | case OP_PopUint8: |
| 42572 | Text.Op = PrintName("PopUint8" ); |
| 42573 | break; |
| 42574 | case OP_PopSint16: |
| 42575 | Text.Op = PrintName("PopSint16" ); |
| 42576 | break; |
| 42577 | case OP_PopUint16: |
| 42578 | Text.Op = PrintName("PopUint16" ); |
| 42579 | break; |
| 42580 | case OP_PopSint32: |
| 42581 | Text.Op = PrintName("PopSint32" ); |
| 42582 | break; |
| 42583 | case OP_PopUint32: |
| 42584 | Text.Op = PrintName("PopUint32" ); |
| 42585 | break; |
| 42586 | case OP_PopSint64: |
| 42587 | Text.Op = PrintName("PopSint64" ); |
| 42588 | break; |
| 42589 | case OP_PopUint64: |
| 42590 | Text.Op = PrintName("PopUint64" ); |
| 42591 | break; |
| 42592 | case OP_PopIntAP: |
| 42593 | Text.Op = PrintName("PopIntAP" ); |
| 42594 | break; |
| 42595 | case OP_PopIntAPS: |
| 42596 | Text.Op = PrintName("PopIntAPS" ); |
| 42597 | break; |
| 42598 | case OP_PopBool: |
| 42599 | Text.Op = PrintName("PopBool" ); |
| 42600 | break; |
| 42601 | case OP_PopFixedPoint: |
| 42602 | Text.Op = PrintName("PopFixedPoint" ); |
| 42603 | break; |
| 42604 | case OP_PopPtr: |
| 42605 | Text.Op = PrintName("PopPtr" ); |
| 42606 | break; |
| 42607 | case OP_PopMemberPtr: |
| 42608 | Text.Op = PrintName("PopMemberPtr" ); |
| 42609 | break; |
| 42610 | case OP_PopFloat: |
| 42611 | Text.Op = PrintName("PopFloat" ); |
| 42612 | break; |
| 42613 | case OP_PopReflect: |
| 42614 | Text.Op = PrintName("PopReflect" ); |
| 42615 | break; |
| 42616 | #endif |
| 42617 | #if defined(GET_EVAL_PROTO) || defined(GET_LINK_PROTO) |
| 42618 | bool emitPopSint8(SourceInfo); |
| 42619 | bool emitPopUint8(SourceInfo); |
| 42620 | bool emitPopSint16(SourceInfo); |
| 42621 | bool emitPopUint16(SourceInfo); |
| 42622 | bool emitPopSint32(SourceInfo); |
| 42623 | bool emitPopUint32(SourceInfo); |
| 42624 | bool emitPopSint64(SourceInfo); |
| 42625 | bool emitPopUint64(SourceInfo); |
| 42626 | bool emitPopIntAP(SourceInfo); |
| 42627 | bool emitPopIntAPS(SourceInfo); |
| 42628 | bool emitPopBool(SourceInfo); |
| 42629 | bool emitPopFixedPoint(SourceInfo); |
| 42630 | bool emitPopPtr(SourceInfo); |
| 42631 | bool emitPopMemberPtr(SourceInfo); |
| 42632 | bool emitPopFloat(SourceInfo); |
| 42633 | bool emitPopReflect(SourceInfo); |
| 42634 | #endif |
| 42635 | #if defined(GET_EVAL_PROTO) || defined(GET_LINK_PROTO) |
| 42636 | [[nodiscard]] bool emitPop(PrimType, SourceInfo I); |
| 42637 | #endif |
| 42638 | #if defined(GET_EVAL_IMPL) || defined(GET_LINK_IMPL) |
| 42639 | bool |
| 42640 | #if defined(GET_EVAL_IMPL) |
| 42641 | EvalEmitter |
| 42642 | #else |
| 42643 | ByteCodeEmitter |
| 42644 | #endif |
| 42645 | ::emitPop(PrimType T0, SourceInfo I) { |
| 42646 | switch (T0) { |
| 42647 | case PT_Sint8: |
| 42648 | return emitPopSint8(I); |
| 42649 | case PT_Uint8: |
| 42650 | return emitPopUint8(I); |
| 42651 | case PT_Sint16: |
| 42652 | return emitPopSint16(I); |
| 42653 | case PT_Uint16: |
| 42654 | return emitPopUint16(I); |
| 42655 | case PT_Sint32: |
| 42656 | return emitPopSint32(I); |
| 42657 | case PT_Uint32: |
| 42658 | return emitPopUint32(I); |
| 42659 | case PT_Sint64: |
| 42660 | return emitPopSint64(I); |
| 42661 | case PT_Uint64: |
| 42662 | return emitPopUint64(I); |
| 42663 | case PT_IntAP: |
| 42664 | return emitPopIntAP(I); |
| 42665 | case PT_IntAPS: |
| 42666 | return emitPopIntAPS(I); |
| 42667 | case PT_Bool: |
| 42668 | return emitPopBool(I); |
| 42669 | case PT_FixedPoint: |
| 42670 | return emitPopFixedPoint(I); |
| 42671 | case PT_Ptr: |
| 42672 | return emitPopPtr(I); |
| 42673 | case PT_MemberPtr: |
| 42674 | return emitPopMemberPtr(I); |
| 42675 | case PT_Float: |
| 42676 | return emitPopFloat(I); |
| 42677 | case PT_Reflect: |
| 42678 | return emitPopReflect(I); |
| 42679 | } |
| 42680 | llvm_unreachable("invalid enum value" ); |
| 42681 | } |
| 42682 | #endif |
| 42683 | #ifdef GET_LINK_IMPL |
| 42684 | bool ByteCodeEmitter::emitPopSint8(SourceInfo L) { |
| 42685 | return emitOp<>(OP_PopSint8, L); |
| 42686 | } |
| 42687 | bool ByteCodeEmitter::emitPopUint8(SourceInfo L) { |
| 42688 | return emitOp<>(OP_PopUint8, L); |
| 42689 | } |
| 42690 | bool ByteCodeEmitter::emitPopSint16(SourceInfo L) { |
| 42691 | return emitOp<>(OP_PopSint16, L); |
| 42692 | } |
| 42693 | bool ByteCodeEmitter::emitPopUint16(SourceInfo L) { |
| 42694 | return emitOp<>(OP_PopUint16, L); |
| 42695 | } |
| 42696 | bool ByteCodeEmitter::emitPopSint32(SourceInfo L) { |
| 42697 | return emitOp<>(OP_PopSint32, L); |
| 42698 | } |
| 42699 | bool ByteCodeEmitter::emitPopUint32(SourceInfo L) { |
| 42700 | return emitOp<>(OP_PopUint32, L); |
| 42701 | } |
| 42702 | bool ByteCodeEmitter::emitPopSint64(SourceInfo L) { |
| 42703 | return emitOp<>(OP_PopSint64, L); |
| 42704 | } |
| 42705 | bool ByteCodeEmitter::emitPopUint64(SourceInfo L) { |
| 42706 | return emitOp<>(OP_PopUint64, L); |
| 42707 | } |
| 42708 | bool ByteCodeEmitter::emitPopIntAP(SourceInfo L) { |
| 42709 | return emitOp<>(OP_PopIntAP, L); |
| 42710 | } |
| 42711 | bool ByteCodeEmitter::emitPopIntAPS(SourceInfo L) { |
| 42712 | return emitOp<>(OP_PopIntAPS, L); |
| 42713 | } |
| 42714 | bool ByteCodeEmitter::emitPopBool(SourceInfo L) { |
| 42715 | return emitOp<>(OP_PopBool, L); |
| 42716 | } |
| 42717 | bool ByteCodeEmitter::emitPopFixedPoint(SourceInfo L) { |
| 42718 | return emitOp<>(OP_PopFixedPoint, L); |
| 42719 | } |
| 42720 | bool ByteCodeEmitter::emitPopPtr(SourceInfo L) { |
| 42721 | return emitOp<>(OP_PopPtr, L); |
| 42722 | } |
| 42723 | bool ByteCodeEmitter::emitPopMemberPtr(SourceInfo L) { |
| 42724 | return emitOp<>(OP_PopMemberPtr, L); |
| 42725 | } |
| 42726 | bool ByteCodeEmitter::emitPopFloat(SourceInfo L) { |
| 42727 | return emitOp<>(OP_PopFloat, L); |
| 42728 | } |
| 42729 | bool ByteCodeEmitter::emitPopReflect(SourceInfo L) { |
| 42730 | return emitOp<>(OP_PopReflect, L); |
| 42731 | } |
| 42732 | #endif |
| 42733 | #ifdef GET_EVAL_IMPL |
| 42734 | bool EvalEmitter::emitPopSint8(SourceInfo L) { |
| 42735 | if (!isActive()) return true; |
| 42736 | CurrentSource = L; |
| 42737 | return Pop<PT_Sint8>(S); |
| 42738 | } |
| 42739 | bool EvalEmitter::emitPopUint8(SourceInfo L) { |
| 42740 | if (!isActive()) return true; |
| 42741 | CurrentSource = L; |
| 42742 | return Pop<PT_Uint8>(S); |
| 42743 | } |
| 42744 | bool EvalEmitter::emitPopSint16(SourceInfo L) { |
| 42745 | if (!isActive()) return true; |
| 42746 | CurrentSource = L; |
| 42747 | return Pop<PT_Sint16>(S); |
| 42748 | } |
| 42749 | bool EvalEmitter::emitPopUint16(SourceInfo L) { |
| 42750 | if (!isActive()) return true; |
| 42751 | CurrentSource = L; |
| 42752 | return Pop<PT_Uint16>(S); |
| 42753 | } |
| 42754 | bool EvalEmitter::emitPopSint32(SourceInfo L) { |
| 42755 | if (!isActive()) return true; |
| 42756 | CurrentSource = L; |
| 42757 | return Pop<PT_Sint32>(S); |
| 42758 | } |
| 42759 | bool EvalEmitter::emitPopUint32(SourceInfo L) { |
| 42760 | if (!isActive()) return true; |
| 42761 | CurrentSource = L; |
| 42762 | return Pop<PT_Uint32>(S); |
| 42763 | } |
| 42764 | bool EvalEmitter::emitPopSint64(SourceInfo L) { |
| 42765 | if (!isActive()) return true; |
| 42766 | CurrentSource = L; |
| 42767 | return Pop<PT_Sint64>(S); |
| 42768 | } |
| 42769 | bool EvalEmitter::emitPopUint64(SourceInfo L) { |
| 42770 | if (!isActive()) return true; |
| 42771 | CurrentSource = L; |
| 42772 | return Pop<PT_Uint64>(S); |
| 42773 | } |
| 42774 | bool EvalEmitter::emitPopIntAP(SourceInfo L) { |
| 42775 | if (!isActive()) return true; |
| 42776 | CurrentSource = L; |
| 42777 | return Pop<PT_IntAP>(S); |
| 42778 | } |
| 42779 | bool EvalEmitter::emitPopIntAPS(SourceInfo L) { |
| 42780 | if (!isActive()) return true; |
| 42781 | CurrentSource = L; |
| 42782 | return Pop<PT_IntAPS>(S); |
| 42783 | } |
| 42784 | bool EvalEmitter::emitPopBool(SourceInfo L) { |
| 42785 | if (!isActive()) return true; |
| 42786 | CurrentSource = L; |
| 42787 | return Pop<PT_Bool>(S); |
| 42788 | } |
| 42789 | bool EvalEmitter::emitPopFixedPoint(SourceInfo L) { |
| 42790 | if (!isActive()) return true; |
| 42791 | CurrentSource = L; |
| 42792 | return Pop<PT_FixedPoint>(S); |
| 42793 | } |
| 42794 | bool EvalEmitter::emitPopPtr(SourceInfo L) { |
| 42795 | if (!isActive()) return true; |
| 42796 | CurrentSource = L; |
| 42797 | return Pop<PT_Ptr>(S); |
| 42798 | } |
| 42799 | bool EvalEmitter::emitPopMemberPtr(SourceInfo L) { |
| 42800 | if (!isActive()) return true; |
| 42801 | CurrentSource = L; |
| 42802 | return Pop<PT_MemberPtr>(S); |
| 42803 | } |
| 42804 | bool EvalEmitter::emitPopFloat(SourceInfo L) { |
| 42805 | if (!isActive()) return true; |
| 42806 | CurrentSource = L; |
| 42807 | return Pop<PT_Float>(S); |
| 42808 | } |
| 42809 | bool EvalEmitter::emitPopReflect(SourceInfo L) { |
| 42810 | if (!isActive()) return true; |
| 42811 | CurrentSource = L; |
| 42812 | return Pop<PT_Reflect>(S); |
| 42813 | } |
| 42814 | #endif |
| 42815 | #ifdef GET_OPCODE_NAMES |
| 42816 | OP_PopCC, |
| 42817 | #endif |
| 42818 | #ifdef GET_INTERPFN_LIST |
| 42819 | &Interp_PopCC, |
| 42820 | #endif |
| 42821 | #ifdef GET_INTERPFN_DISPATCHERS |
| 42822 | PRESERVE_NONE |
| 42823 | static bool Interp_PopCC(InterpState &S) { |
| 42824 | PopCC(S); |
| 42825 | #if USE_TAILCALLS |
| 42826 | MUSTTAIL return InterpNext(S); |
| 42827 | #else |
| 42828 | return true; |
| 42829 | #endif |
| 42830 | } |
| 42831 | #endif |
| 42832 | #ifdef GET_DISASM |
| 42833 | case OP_PopCC: |
| 42834 | Text.Op = PrintName("PopCC" ); |
| 42835 | break; |
| 42836 | #endif |
| 42837 | #if defined(GET_EVAL_PROTO) || defined(GET_LINK_PROTO) |
| 42838 | bool emitPopCC(SourceInfo); |
| 42839 | #endif |
| 42840 | #ifdef GET_LINK_IMPL |
| 42841 | bool ByteCodeEmitter::emitPopCC(SourceInfo L) { |
| 42842 | return emitOp<>(OP_PopCC, L); |
| 42843 | } |
| 42844 | #endif |
| 42845 | #ifdef GET_EVAL_IMPL |
| 42846 | bool EvalEmitter::emitPopCC(SourceInfo L) { |
| 42847 | if (!isActive()) return true; |
| 42848 | CurrentSource = L; |
| 42849 | return PopCC(S); |
| 42850 | } |
| 42851 | #endif |
| 42852 | #ifdef GET_OPCODE_NAMES |
| 42853 | OP_PopIgnoreDiags, |
| 42854 | #endif |
| 42855 | #ifdef GET_INTERPFN_LIST |
| 42856 | &Interp_PopIgnoreDiags, |
| 42857 | #endif |
| 42858 | #ifdef GET_INTERPFN_DISPATCHERS |
| 42859 | PRESERVE_NONE |
| 42860 | static bool Interp_PopIgnoreDiags(InterpState &S) { |
| 42861 | PopIgnoreDiags(S); |
| 42862 | #if USE_TAILCALLS |
| 42863 | MUSTTAIL return InterpNext(S); |
| 42864 | #else |
| 42865 | return true; |
| 42866 | #endif |
| 42867 | } |
| 42868 | #endif |
| 42869 | #ifdef GET_DISASM |
| 42870 | case OP_PopIgnoreDiags: |
| 42871 | Text.Op = PrintName("PopIgnoreDiags" ); |
| 42872 | break; |
| 42873 | #endif |
| 42874 | #if defined(GET_EVAL_PROTO) || defined(GET_LINK_PROTO) |
| 42875 | bool emitPopIgnoreDiags(SourceInfo); |
| 42876 | #endif |
| 42877 | #ifdef GET_LINK_IMPL |
| 42878 | bool ByteCodeEmitter::emitPopIgnoreDiags(SourceInfo L) { |
| 42879 | return emitOp<>(OP_PopIgnoreDiags, L); |
| 42880 | } |
| 42881 | #endif |
| 42882 | #ifdef GET_EVAL_IMPL |
| 42883 | bool EvalEmitter::emitPopIgnoreDiags(SourceInfo L) { |
| 42884 | if (!isActive()) return true; |
| 42885 | CurrentSource = L; |
| 42886 | return PopIgnoreDiags(S); |
| 42887 | } |
| 42888 | #endif |
| 42889 | #ifdef GET_OPCODE_NAMES |
| 42890 | OP_PopMSVCCE, |
| 42891 | #endif |
| 42892 | #ifdef GET_INTERPFN_LIST |
| 42893 | &Interp_PopMSVCCE, |
| 42894 | #endif |
| 42895 | #ifdef GET_INTERPFN_DISPATCHERS |
| 42896 | PRESERVE_NONE |
| 42897 | static bool Interp_PopMSVCCE(InterpState &S) { |
| 42898 | PopMSVCCE(S); |
| 42899 | #if USE_TAILCALLS |
| 42900 | MUSTTAIL return InterpNext(S); |
| 42901 | #else |
| 42902 | return true; |
| 42903 | #endif |
| 42904 | } |
| 42905 | #endif |
| 42906 | #ifdef GET_DISASM |
| 42907 | case OP_PopMSVCCE: |
| 42908 | Text.Op = PrintName("PopMSVCCE" ); |
| 42909 | break; |
| 42910 | #endif |
| 42911 | #if defined(GET_EVAL_PROTO) || defined(GET_LINK_PROTO) |
| 42912 | bool emitPopMSVCCE(SourceInfo); |
| 42913 | #endif |
| 42914 | #ifdef GET_LINK_IMPL |
| 42915 | bool ByteCodeEmitter::emitPopMSVCCE(SourceInfo L) { |
| 42916 | return emitOp<>(OP_PopMSVCCE, L); |
| 42917 | } |
| 42918 | #endif |
| 42919 | #ifdef GET_EVAL_IMPL |
| 42920 | bool EvalEmitter::emitPopMSVCCE(SourceInfo L) { |
| 42921 | if (!isActive()) return true; |
| 42922 | CurrentSource = L; |
| 42923 | return PopMSVCCE(S); |
| 42924 | } |
| 42925 | #endif |
| 42926 | #ifdef GET_OPCODE_NAMES |
| 42927 | OP_PreDecSint8, |
| 42928 | OP_PreDecUint8, |
| 42929 | OP_PreDecSint16, |
| 42930 | OP_PreDecUint16, |
| 42931 | OP_PreDecSint32, |
| 42932 | OP_PreDecUint32, |
| 42933 | OP_PreDecSint64, |
| 42934 | OP_PreDecUint64, |
| 42935 | OP_PreDecIntAP, |
| 42936 | OP_PreDecIntAPS, |
| 42937 | OP_PreDecBool, |
| 42938 | OP_PreDecFixedPoint, |
| 42939 | #endif |
| 42940 | #ifdef GET_INTERPFN_LIST |
| 42941 | &Interp_PreDecSint8, |
| 42942 | &Interp_PreDecUint8, |
| 42943 | &Interp_PreDecSint16, |
| 42944 | &Interp_PreDecUint16, |
| 42945 | &Interp_PreDecSint32, |
| 42946 | &Interp_PreDecUint32, |
| 42947 | &Interp_PreDecSint64, |
| 42948 | &Interp_PreDecUint64, |
| 42949 | &Interp_PreDecIntAP, |
| 42950 | &Interp_PreDecIntAPS, |
| 42951 | &Interp_PreDecBool, |
| 42952 | &Interp_PreDecFixedPoint, |
| 42953 | #endif |
| 42954 | #ifdef GET_INTERPFN_DISPATCHERS |
| 42955 | PRESERVE_NONE |
| 42956 | static bool Interp_PreDecSint8(InterpState &S) { |
| 42957 | { |
| 42958 | CodePtr OpPC = S.PC; |
| 42959 | const auto V0 = ReadArg<bool>(S, S.PC); |
| 42960 | if (!PreDec<PT_Sint8>(S, OpPC, V0)) return false; |
| 42961 | } |
| 42962 | #if USE_TAILCALLS |
| 42963 | MUSTTAIL return InterpNext(S); |
| 42964 | #else |
| 42965 | return true; |
| 42966 | #endif |
| 42967 | } |
| 42968 | PRESERVE_NONE |
| 42969 | static bool Interp_PreDecUint8(InterpState &S) { |
| 42970 | { |
| 42971 | CodePtr OpPC = S.PC; |
| 42972 | const auto V0 = ReadArg<bool>(S, S.PC); |
| 42973 | if (!PreDec<PT_Uint8>(S, OpPC, V0)) return false; |
| 42974 | } |
| 42975 | #if USE_TAILCALLS |
| 42976 | MUSTTAIL return InterpNext(S); |
| 42977 | #else |
| 42978 | return true; |
| 42979 | #endif |
| 42980 | } |
| 42981 | PRESERVE_NONE |
| 42982 | static bool Interp_PreDecSint16(InterpState &S) { |
| 42983 | { |
| 42984 | CodePtr OpPC = S.PC; |
| 42985 | const auto V0 = ReadArg<bool>(S, S.PC); |
| 42986 | if (!PreDec<PT_Sint16>(S, OpPC, V0)) return false; |
| 42987 | } |
| 42988 | #if USE_TAILCALLS |
| 42989 | MUSTTAIL return InterpNext(S); |
| 42990 | #else |
| 42991 | return true; |
| 42992 | #endif |
| 42993 | } |
| 42994 | PRESERVE_NONE |
| 42995 | static bool Interp_PreDecUint16(InterpState &S) { |
| 42996 | { |
| 42997 | CodePtr OpPC = S.PC; |
| 42998 | const auto V0 = ReadArg<bool>(S, S.PC); |
| 42999 | if (!PreDec<PT_Uint16>(S, OpPC, V0)) return false; |
| 43000 | } |
| 43001 | #if USE_TAILCALLS |
| 43002 | MUSTTAIL return InterpNext(S); |
| 43003 | #else |
| 43004 | return true; |
| 43005 | #endif |
| 43006 | } |
| 43007 | PRESERVE_NONE |
| 43008 | static bool Interp_PreDecSint32(InterpState &S) { |
| 43009 | { |
| 43010 | CodePtr OpPC = S.PC; |
| 43011 | const auto V0 = ReadArg<bool>(S, S.PC); |
| 43012 | if (!PreDec<PT_Sint32>(S, OpPC, V0)) return false; |
| 43013 | } |
| 43014 | #if USE_TAILCALLS |
| 43015 | MUSTTAIL return InterpNext(S); |
| 43016 | #else |
| 43017 | return true; |
| 43018 | #endif |
| 43019 | } |
| 43020 | PRESERVE_NONE |
| 43021 | static bool Interp_PreDecUint32(InterpState &S) { |
| 43022 | { |
| 43023 | CodePtr OpPC = S.PC; |
| 43024 | const auto V0 = ReadArg<bool>(S, S.PC); |
| 43025 | if (!PreDec<PT_Uint32>(S, OpPC, V0)) return false; |
| 43026 | } |
| 43027 | #if USE_TAILCALLS |
| 43028 | MUSTTAIL return InterpNext(S); |
| 43029 | #else |
| 43030 | return true; |
| 43031 | #endif |
| 43032 | } |
| 43033 | PRESERVE_NONE |
| 43034 | static bool Interp_PreDecSint64(InterpState &S) { |
| 43035 | { |
| 43036 | CodePtr OpPC = S.PC; |
| 43037 | const auto V0 = ReadArg<bool>(S, S.PC); |
| 43038 | if (!PreDec<PT_Sint64>(S, OpPC, V0)) return false; |
| 43039 | } |
| 43040 | #if USE_TAILCALLS |
| 43041 | MUSTTAIL return InterpNext(S); |
| 43042 | #else |
| 43043 | return true; |
| 43044 | #endif |
| 43045 | } |
| 43046 | PRESERVE_NONE |
| 43047 | static bool Interp_PreDecUint64(InterpState &S) { |
| 43048 | { |
| 43049 | CodePtr OpPC = S.PC; |
| 43050 | const auto V0 = ReadArg<bool>(S, S.PC); |
| 43051 | if (!PreDec<PT_Uint64>(S, OpPC, V0)) return false; |
| 43052 | } |
| 43053 | #if USE_TAILCALLS |
| 43054 | MUSTTAIL return InterpNext(S); |
| 43055 | #else |
| 43056 | return true; |
| 43057 | #endif |
| 43058 | } |
| 43059 | PRESERVE_NONE |
| 43060 | static bool Interp_PreDecIntAP(InterpState &S) { |
| 43061 | { |
| 43062 | CodePtr OpPC = S.PC; |
| 43063 | const auto V0 = ReadArg<bool>(S, S.PC); |
| 43064 | if (!PreDec<PT_IntAP>(S, OpPC, V0)) return false; |
| 43065 | } |
| 43066 | #if USE_TAILCALLS |
| 43067 | MUSTTAIL return InterpNext(S); |
| 43068 | #else |
| 43069 | return true; |
| 43070 | #endif |
| 43071 | } |
| 43072 | PRESERVE_NONE |
| 43073 | static bool Interp_PreDecIntAPS(InterpState &S) { |
| 43074 | { |
| 43075 | CodePtr OpPC = S.PC; |
| 43076 | const auto V0 = ReadArg<bool>(S, S.PC); |
| 43077 | if (!PreDec<PT_IntAPS>(S, OpPC, V0)) return false; |
| 43078 | } |
| 43079 | #if USE_TAILCALLS |
| 43080 | MUSTTAIL return InterpNext(S); |
| 43081 | #else |
| 43082 | return true; |
| 43083 | #endif |
| 43084 | } |
| 43085 | PRESERVE_NONE |
| 43086 | static bool Interp_PreDecBool(InterpState &S) { |
| 43087 | { |
| 43088 | CodePtr OpPC = S.PC; |
| 43089 | const auto V0 = ReadArg<bool>(S, S.PC); |
| 43090 | if (!PreDec<PT_Bool>(S, OpPC, V0)) return false; |
| 43091 | } |
| 43092 | #if USE_TAILCALLS |
| 43093 | MUSTTAIL return InterpNext(S); |
| 43094 | #else |
| 43095 | return true; |
| 43096 | #endif |
| 43097 | } |
| 43098 | PRESERVE_NONE |
| 43099 | static bool Interp_PreDecFixedPoint(InterpState &S) { |
| 43100 | { |
| 43101 | CodePtr OpPC = S.PC; |
| 43102 | const auto V0 = ReadArg<bool>(S, S.PC); |
| 43103 | if (!PreDec<PT_FixedPoint>(S, OpPC, V0)) return false; |
| 43104 | } |
| 43105 | #if USE_TAILCALLS |
| 43106 | MUSTTAIL return InterpNext(S); |
| 43107 | #else |
| 43108 | return true; |
| 43109 | #endif |
| 43110 | } |
| 43111 | #endif |
| 43112 | #ifdef GET_DISASM |
| 43113 | case OP_PreDecSint8: |
| 43114 | Text.Op = PrintName("PreDecSint8" ); |
| 43115 | Text.Args.push_back(printArg<bool>(PC)); |
| 43116 | break; |
| 43117 | case OP_PreDecUint8: |
| 43118 | Text.Op = PrintName("PreDecUint8" ); |
| 43119 | Text.Args.push_back(printArg<bool>(PC)); |
| 43120 | break; |
| 43121 | case OP_PreDecSint16: |
| 43122 | Text.Op = PrintName("PreDecSint16" ); |
| 43123 | Text.Args.push_back(printArg<bool>(PC)); |
| 43124 | break; |
| 43125 | case OP_PreDecUint16: |
| 43126 | Text.Op = PrintName("PreDecUint16" ); |
| 43127 | Text.Args.push_back(printArg<bool>(PC)); |
| 43128 | break; |
| 43129 | case OP_PreDecSint32: |
| 43130 | Text.Op = PrintName("PreDecSint32" ); |
| 43131 | Text.Args.push_back(printArg<bool>(PC)); |
| 43132 | break; |
| 43133 | case OP_PreDecUint32: |
| 43134 | Text.Op = PrintName("PreDecUint32" ); |
| 43135 | Text.Args.push_back(printArg<bool>(PC)); |
| 43136 | break; |
| 43137 | case OP_PreDecSint64: |
| 43138 | Text.Op = PrintName("PreDecSint64" ); |
| 43139 | Text.Args.push_back(printArg<bool>(PC)); |
| 43140 | break; |
| 43141 | case OP_PreDecUint64: |
| 43142 | Text.Op = PrintName("PreDecUint64" ); |
| 43143 | Text.Args.push_back(printArg<bool>(PC)); |
| 43144 | break; |
| 43145 | case OP_PreDecIntAP: |
| 43146 | Text.Op = PrintName("PreDecIntAP" ); |
| 43147 | Text.Args.push_back(printArg<bool>(PC)); |
| 43148 | break; |
| 43149 | case OP_PreDecIntAPS: |
| 43150 | Text.Op = PrintName("PreDecIntAPS" ); |
| 43151 | Text.Args.push_back(printArg<bool>(PC)); |
| 43152 | break; |
| 43153 | case OP_PreDecBool: |
| 43154 | Text.Op = PrintName("PreDecBool" ); |
| 43155 | Text.Args.push_back(printArg<bool>(PC)); |
| 43156 | break; |
| 43157 | case OP_PreDecFixedPoint: |
| 43158 | Text.Op = PrintName("PreDecFixedPoint" ); |
| 43159 | Text.Args.push_back(printArg<bool>(PC)); |
| 43160 | break; |
| 43161 | #endif |
| 43162 | #if defined(GET_EVAL_PROTO) || defined(GET_LINK_PROTO) |
| 43163 | bool emitPreDecSint8( bool , SourceInfo); |
| 43164 | bool emitPreDecUint8( bool , SourceInfo); |
| 43165 | bool emitPreDecSint16( bool , SourceInfo); |
| 43166 | bool emitPreDecUint16( bool , SourceInfo); |
| 43167 | bool emitPreDecSint32( bool , SourceInfo); |
| 43168 | bool emitPreDecUint32( bool , SourceInfo); |
| 43169 | bool emitPreDecSint64( bool , SourceInfo); |
| 43170 | bool emitPreDecUint64( bool , SourceInfo); |
| 43171 | bool emitPreDecIntAP( bool , SourceInfo); |
| 43172 | bool emitPreDecIntAPS( bool , SourceInfo); |
| 43173 | bool emitPreDecBool( bool , SourceInfo); |
| 43174 | bool emitPreDecFixedPoint( bool , SourceInfo); |
| 43175 | #endif |
| 43176 | #if defined(GET_EVAL_PROTO) || defined(GET_LINK_PROTO) |
| 43177 | [[nodiscard]] bool emitPreDec(PrimType, bool, SourceInfo I); |
| 43178 | #endif |
| 43179 | #if defined(GET_EVAL_IMPL) || defined(GET_LINK_IMPL) |
| 43180 | bool |
| 43181 | #if defined(GET_EVAL_IMPL) |
| 43182 | EvalEmitter |
| 43183 | #else |
| 43184 | ByteCodeEmitter |
| 43185 | #endif |
| 43186 | ::emitPreDec(PrimType T0, bool A0, SourceInfo I) { |
| 43187 | switch (T0) { |
| 43188 | case PT_Sint8: |
| 43189 | return emitPreDecSint8(A0, I); |
| 43190 | case PT_Uint8: |
| 43191 | return emitPreDecUint8(A0, I); |
| 43192 | case PT_Sint16: |
| 43193 | return emitPreDecSint16(A0, I); |
| 43194 | case PT_Uint16: |
| 43195 | return emitPreDecUint16(A0, I); |
| 43196 | case PT_Sint32: |
| 43197 | return emitPreDecSint32(A0, I); |
| 43198 | case PT_Uint32: |
| 43199 | return emitPreDecUint32(A0, I); |
| 43200 | case PT_Sint64: |
| 43201 | return emitPreDecSint64(A0, I); |
| 43202 | case PT_Uint64: |
| 43203 | return emitPreDecUint64(A0, I); |
| 43204 | case PT_IntAP: |
| 43205 | return emitPreDecIntAP(A0, I); |
| 43206 | case PT_IntAPS: |
| 43207 | return emitPreDecIntAPS(A0, I); |
| 43208 | case PT_Bool: |
| 43209 | return emitPreDecBool(A0, I); |
| 43210 | case PT_FixedPoint: |
| 43211 | return emitPreDecFixedPoint(A0, I); |
| 43212 | default: llvm_unreachable("invalid type: emitPreDec" ); |
| 43213 | } |
| 43214 | llvm_unreachable("invalid enum value" ); |
| 43215 | } |
| 43216 | #endif |
| 43217 | #ifdef GET_LINK_IMPL |
| 43218 | bool ByteCodeEmitter::emitPreDecSint8( bool A0, SourceInfo L) { |
| 43219 | return emitOp<bool>(OP_PreDecSint8, A0, L); |
| 43220 | } |
| 43221 | bool ByteCodeEmitter::emitPreDecUint8( bool A0, SourceInfo L) { |
| 43222 | return emitOp<bool>(OP_PreDecUint8, A0, L); |
| 43223 | } |
| 43224 | bool ByteCodeEmitter::emitPreDecSint16( bool A0, SourceInfo L) { |
| 43225 | return emitOp<bool>(OP_PreDecSint16, A0, L); |
| 43226 | } |
| 43227 | bool ByteCodeEmitter::emitPreDecUint16( bool A0, SourceInfo L) { |
| 43228 | return emitOp<bool>(OP_PreDecUint16, A0, L); |
| 43229 | } |
| 43230 | bool ByteCodeEmitter::emitPreDecSint32( bool A0, SourceInfo L) { |
| 43231 | return emitOp<bool>(OP_PreDecSint32, A0, L); |
| 43232 | } |
| 43233 | bool ByteCodeEmitter::emitPreDecUint32( bool A0, SourceInfo L) { |
| 43234 | return emitOp<bool>(OP_PreDecUint32, A0, L); |
| 43235 | } |
| 43236 | bool ByteCodeEmitter::emitPreDecSint64( bool A0, SourceInfo L) { |
| 43237 | return emitOp<bool>(OP_PreDecSint64, A0, L); |
| 43238 | } |
| 43239 | bool ByteCodeEmitter::emitPreDecUint64( bool A0, SourceInfo L) { |
| 43240 | return emitOp<bool>(OP_PreDecUint64, A0, L); |
| 43241 | } |
| 43242 | bool ByteCodeEmitter::emitPreDecIntAP( bool A0, SourceInfo L) { |
| 43243 | return emitOp<bool>(OP_PreDecIntAP, A0, L); |
| 43244 | } |
| 43245 | bool ByteCodeEmitter::emitPreDecIntAPS( bool A0, SourceInfo L) { |
| 43246 | return emitOp<bool>(OP_PreDecIntAPS, A0, L); |
| 43247 | } |
| 43248 | bool ByteCodeEmitter::emitPreDecBool( bool A0, SourceInfo L) { |
| 43249 | return emitOp<bool>(OP_PreDecBool, A0, L); |
| 43250 | } |
| 43251 | bool ByteCodeEmitter::emitPreDecFixedPoint( bool A0, SourceInfo L) { |
| 43252 | return emitOp<bool>(OP_PreDecFixedPoint, A0, L); |
| 43253 | } |
| 43254 | #endif |
| 43255 | #ifdef GET_EVAL_IMPL |
| 43256 | bool EvalEmitter::emitPreDecSint8( bool A0, SourceInfo L) { |
| 43257 | if (!isActive()) return true; |
| 43258 | CurrentSource = L; |
| 43259 | return PreDec<PT_Sint8>(S, CodePtr(), A0); |
| 43260 | } |
| 43261 | bool EvalEmitter::emitPreDecUint8( bool A0, SourceInfo L) { |
| 43262 | if (!isActive()) return true; |
| 43263 | CurrentSource = L; |
| 43264 | return PreDec<PT_Uint8>(S, CodePtr(), A0); |
| 43265 | } |
| 43266 | bool EvalEmitter::emitPreDecSint16( bool A0, SourceInfo L) { |
| 43267 | if (!isActive()) return true; |
| 43268 | CurrentSource = L; |
| 43269 | return PreDec<PT_Sint16>(S, CodePtr(), A0); |
| 43270 | } |
| 43271 | bool EvalEmitter::emitPreDecUint16( bool A0, SourceInfo L) { |
| 43272 | if (!isActive()) return true; |
| 43273 | CurrentSource = L; |
| 43274 | return PreDec<PT_Uint16>(S, CodePtr(), A0); |
| 43275 | } |
| 43276 | bool EvalEmitter::emitPreDecSint32( bool A0, SourceInfo L) { |
| 43277 | if (!isActive()) return true; |
| 43278 | CurrentSource = L; |
| 43279 | return PreDec<PT_Sint32>(S, CodePtr(), A0); |
| 43280 | } |
| 43281 | bool EvalEmitter::emitPreDecUint32( bool A0, SourceInfo L) { |
| 43282 | if (!isActive()) return true; |
| 43283 | CurrentSource = L; |
| 43284 | return PreDec<PT_Uint32>(S, CodePtr(), A0); |
| 43285 | } |
| 43286 | bool EvalEmitter::emitPreDecSint64( bool A0, SourceInfo L) { |
| 43287 | if (!isActive()) return true; |
| 43288 | CurrentSource = L; |
| 43289 | return PreDec<PT_Sint64>(S, CodePtr(), A0); |
| 43290 | } |
| 43291 | bool EvalEmitter::emitPreDecUint64( bool A0, SourceInfo L) { |
| 43292 | if (!isActive()) return true; |
| 43293 | CurrentSource = L; |
| 43294 | return PreDec<PT_Uint64>(S, CodePtr(), A0); |
| 43295 | } |
| 43296 | bool EvalEmitter::emitPreDecIntAP( bool A0, SourceInfo L) { |
| 43297 | if (!isActive()) return true; |
| 43298 | CurrentSource = L; |
| 43299 | return PreDec<PT_IntAP>(S, CodePtr(), A0); |
| 43300 | } |
| 43301 | bool EvalEmitter::emitPreDecIntAPS( bool A0, SourceInfo L) { |
| 43302 | if (!isActive()) return true; |
| 43303 | CurrentSource = L; |
| 43304 | return PreDec<PT_IntAPS>(S, CodePtr(), A0); |
| 43305 | } |
| 43306 | bool EvalEmitter::emitPreDecBool( bool A0, SourceInfo L) { |
| 43307 | if (!isActive()) return true; |
| 43308 | CurrentSource = L; |
| 43309 | return PreDec<PT_Bool>(S, CodePtr(), A0); |
| 43310 | } |
| 43311 | bool EvalEmitter::emitPreDecFixedPoint( bool A0, SourceInfo L) { |
| 43312 | if (!isActive()) return true; |
| 43313 | CurrentSource = L; |
| 43314 | return PreDec<PT_FixedPoint>(S, CodePtr(), A0); |
| 43315 | } |
| 43316 | #endif |
| 43317 | #ifdef GET_OPCODE_NAMES |
| 43318 | OP_PreDecBitfieldSint8, |
| 43319 | OP_PreDecBitfieldUint8, |
| 43320 | OP_PreDecBitfieldSint16, |
| 43321 | OP_PreDecBitfieldUint16, |
| 43322 | OP_PreDecBitfieldSint32, |
| 43323 | OP_PreDecBitfieldUint32, |
| 43324 | OP_PreDecBitfieldSint64, |
| 43325 | OP_PreDecBitfieldUint64, |
| 43326 | OP_PreDecBitfieldIntAP, |
| 43327 | OP_PreDecBitfieldIntAPS, |
| 43328 | OP_PreDecBitfieldBool, |
| 43329 | OP_PreDecBitfieldFixedPoint, |
| 43330 | #endif |
| 43331 | #ifdef GET_INTERPFN_LIST |
| 43332 | &Interp_PreDecBitfieldSint8, |
| 43333 | &Interp_PreDecBitfieldUint8, |
| 43334 | &Interp_PreDecBitfieldSint16, |
| 43335 | &Interp_PreDecBitfieldUint16, |
| 43336 | &Interp_PreDecBitfieldSint32, |
| 43337 | &Interp_PreDecBitfieldUint32, |
| 43338 | &Interp_PreDecBitfieldSint64, |
| 43339 | &Interp_PreDecBitfieldUint64, |
| 43340 | &Interp_PreDecBitfieldIntAP, |
| 43341 | &Interp_PreDecBitfieldIntAPS, |
| 43342 | &Interp_PreDecBitfieldBool, |
| 43343 | &Interp_PreDecBitfieldFixedPoint, |
| 43344 | #endif |
| 43345 | #ifdef GET_INTERPFN_DISPATCHERS |
| 43346 | PRESERVE_NONE |
| 43347 | static bool Interp_PreDecBitfieldSint8(InterpState &S) { |
| 43348 | { |
| 43349 | CodePtr OpPC = S.PC; |
| 43350 | const auto V0 = ReadArg<bool>(S, S.PC); |
| 43351 | const auto V1 = ReadArg<uint32_t>(S, S.PC); |
| 43352 | if (!PreDecBitfield<PT_Sint8>(S, OpPC, V0, V1)) return false; |
| 43353 | } |
| 43354 | #if USE_TAILCALLS |
| 43355 | MUSTTAIL return InterpNext(S); |
| 43356 | #else |
| 43357 | return true; |
| 43358 | #endif |
| 43359 | } |
| 43360 | PRESERVE_NONE |
| 43361 | static bool Interp_PreDecBitfieldUint8(InterpState &S) { |
| 43362 | { |
| 43363 | CodePtr OpPC = S.PC; |
| 43364 | const auto V0 = ReadArg<bool>(S, S.PC); |
| 43365 | const auto V1 = ReadArg<uint32_t>(S, S.PC); |
| 43366 | if (!PreDecBitfield<PT_Uint8>(S, OpPC, V0, V1)) return false; |
| 43367 | } |
| 43368 | #if USE_TAILCALLS |
| 43369 | MUSTTAIL return InterpNext(S); |
| 43370 | #else |
| 43371 | return true; |
| 43372 | #endif |
| 43373 | } |
| 43374 | PRESERVE_NONE |
| 43375 | static bool Interp_PreDecBitfieldSint16(InterpState &S) { |
| 43376 | { |
| 43377 | CodePtr OpPC = S.PC; |
| 43378 | const auto V0 = ReadArg<bool>(S, S.PC); |
| 43379 | const auto V1 = ReadArg<uint32_t>(S, S.PC); |
| 43380 | if (!PreDecBitfield<PT_Sint16>(S, OpPC, V0, V1)) return false; |
| 43381 | } |
| 43382 | #if USE_TAILCALLS |
| 43383 | MUSTTAIL return InterpNext(S); |
| 43384 | #else |
| 43385 | return true; |
| 43386 | #endif |
| 43387 | } |
| 43388 | PRESERVE_NONE |
| 43389 | static bool Interp_PreDecBitfieldUint16(InterpState &S) { |
| 43390 | { |
| 43391 | CodePtr OpPC = S.PC; |
| 43392 | const auto V0 = ReadArg<bool>(S, S.PC); |
| 43393 | const auto V1 = ReadArg<uint32_t>(S, S.PC); |
| 43394 | if (!PreDecBitfield<PT_Uint16>(S, OpPC, V0, V1)) return false; |
| 43395 | } |
| 43396 | #if USE_TAILCALLS |
| 43397 | MUSTTAIL return InterpNext(S); |
| 43398 | #else |
| 43399 | return true; |
| 43400 | #endif |
| 43401 | } |
| 43402 | PRESERVE_NONE |
| 43403 | static bool Interp_PreDecBitfieldSint32(InterpState &S) { |
| 43404 | { |
| 43405 | CodePtr OpPC = S.PC; |
| 43406 | const auto V0 = ReadArg<bool>(S, S.PC); |
| 43407 | const auto V1 = ReadArg<uint32_t>(S, S.PC); |
| 43408 | if (!PreDecBitfield<PT_Sint32>(S, OpPC, V0, V1)) return false; |
| 43409 | } |
| 43410 | #if USE_TAILCALLS |
| 43411 | MUSTTAIL return InterpNext(S); |
| 43412 | #else |
| 43413 | return true; |
| 43414 | #endif |
| 43415 | } |
| 43416 | PRESERVE_NONE |
| 43417 | static bool Interp_PreDecBitfieldUint32(InterpState &S) { |
| 43418 | { |
| 43419 | CodePtr OpPC = S.PC; |
| 43420 | const auto V0 = ReadArg<bool>(S, S.PC); |
| 43421 | const auto V1 = ReadArg<uint32_t>(S, S.PC); |
| 43422 | if (!PreDecBitfield<PT_Uint32>(S, OpPC, V0, V1)) return false; |
| 43423 | } |
| 43424 | #if USE_TAILCALLS |
| 43425 | MUSTTAIL return InterpNext(S); |
| 43426 | #else |
| 43427 | return true; |
| 43428 | #endif |
| 43429 | } |
| 43430 | PRESERVE_NONE |
| 43431 | static bool Interp_PreDecBitfieldSint64(InterpState &S) { |
| 43432 | { |
| 43433 | CodePtr OpPC = S.PC; |
| 43434 | const auto V0 = ReadArg<bool>(S, S.PC); |
| 43435 | const auto V1 = ReadArg<uint32_t>(S, S.PC); |
| 43436 | if (!PreDecBitfield<PT_Sint64>(S, OpPC, V0, V1)) return false; |
| 43437 | } |
| 43438 | #if USE_TAILCALLS |
| 43439 | MUSTTAIL return InterpNext(S); |
| 43440 | #else |
| 43441 | return true; |
| 43442 | #endif |
| 43443 | } |
| 43444 | PRESERVE_NONE |
| 43445 | static bool Interp_PreDecBitfieldUint64(InterpState &S) { |
| 43446 | { |
| 43447 | CodePtr OpPC = S.PC; |
| 43448 | const auto V0 = ReadArg<bool>(S, S.PC); |
| 43449 | const auto V1 = ReadArg<uint32_t>(S, S.PC); |
| 43450 | if (!PreDecBitfield<PT_Uint64>(S, OpPC, V0, V1)) return false; |
| 43451 | } |
| 43452 | #if USE_TAILCALLS |
| 43453 | MUSTTAIL return InterpNext(S); |
| 43454 | #else |
| 43455 | return true; |
| 43456 | #endif |
| 43457 | } |
| 43458 | PRESERVE_NONE |
| 43459 | static bool Interp_PreDecBitfieldIntAP(InterpState &S) { |
| 43460 | { |
| 43461 | CodePtr OpPC = S.PC; |
| 43462 | const auto V0 = ReadArg<bool>(S, S.PC); |
| 43463 | const auto V1 = ReadArg<uint32_t>(S, S.PC); |
| 43464 | if (!PreDecBitfield<PT_IntAP>(S, OpPC, V0, V1)) return false; |
| 43465 | } |
| 43466 | #if USE_TAILCALLS |
| 43467 | MUSTTAIL return InterpNext(S); |
| 43468 | #else |
| 43469 | return true; |
| 43470 | #endif |
| 43471 | } |
| 43472 | PRESERVE_NONE |
| 43473 | static bool Interp_PreDecBitfieldIntAPS(InterpState &S) { |
| 43474 | { |
| 43475 | CodePtr OpPC = S.PC; |
| 43476 | const auto V0 = ReadArg<bool>(S, S.PC); |
| 43477 | const auto V1 = ReadArg<uint32_t>(S, S.PC); |
| 43478 | if (!PreDecBitfield<PT_IntAPS>(S, OpPC, V0, V1)) return false; |
| 43479 | } |
| 43480 | #if USE_TAILCALLS |
| 43481 | MUSTTAIL return InterpNext(S); |
| 43482 | #else |
| 43483 | return true; |
| 43484 | #endif |
| 43485 | } |
| 43486 | PRESERVE_NONE |
| 43487 | static bool Interp_PreDecBitfieldBool(InterpState &S) { |
| 43488 | { |
| 43489 | CodePtr OpPC = S.PC; |
| 43490 | const auto V0 = ReadArg<bool>(S, S.PC); |
| 43491 | const auto V1 = ReadArg<uint32_t>(S, S.PC); |
| 43492 | if (!PreDecBitfield<PT_Bool>(S, OpPC, V0, V1)) return false; |
| 43493 | } |
| 43494 | #if USE_TAILCALLS |
| 43495 | MUSTTAIL return InterpNext(S); |
| 43496 | #else |
| 43497 | return true; |
| 43498 | #endif |
| 43499 | } |
| 43500 | PRESERVE_NONE |
| 43501 | static bool Interp_PreDecBitfieldFixedPoint(InterpState &S) { |
| 43502 | { |
| 43503 | CodePtr OpPC = S.PC; |
| 43504 | const auto V0 = ReadArg<bool>(S, S.PC); |
| 43505 | const auto V1 = ReadArg<uint32_t>(S, S.PC); |
| 43506 | if (!PreDecBitfield<PT_FixedPoint>(S, OpPC, V0, V1)) return false; |
| 43507 | } |
| 43508 | #if USE_TAILCALLS |
| 43509 | MUSTTAIL return InterpNext(S); |
| 43510 | #else |
| 43511 | return true; |
| 43512 | #endif |
| 43513 | } |
| 43514 | #endif |
| 43515 | #ifdef GET_DISASM |
| 43516 | case OP_PreDecBitfieldSint8: |
| 43517 | Text.Op = PrintName("PreDecBitfieldSint8" ); |
| 43518 | Text.Args.push_back(printArg<bool>(PC)); |
| 43519 | Text.Args.push_back(printArg<uint32_t>(PC)); |
| 43520 | break; |
| 43521 | case OP_PreDecBitfieldUint8: |
| 43522 | Text.Op = PrintName("PreDecBitfieldUint8" ); |
| 43523 | Text.Args.push_back(printArg<bool>(PC)); |
| 43524 | Text.Args.push_back(printArg<uint32_t>(PC)); |
| 43525 | break; |
| 43526 | case OP_PreDecBitfieldSint16: |
| 43527 | Text.Op = PrintName("PreDecBitfieldSint16" ); |
| 43528 | Text.Args.push_back(printArg<bool>(PC)); |
| 43529 | Text.Args.push_back(printArg<uint32_t>(PC)); |
| 43530 | break; |
| 43531 | case OP_PreDecBitfieldUint16: |
| 43532 | Text.Op = PrintName("PreDecBitfieldUint16" ); |
| 43533 | Text.Args.push_back(printArg<bool>(PC)); |
| 43534 | Text.Args.push_back(printArg<uint32_t>(PC)); |
| 43535 | break; |
| 43536 | case OP_PreDecBitfieldSint32: |
| 43537 | Text.Op = PrintName("PreDecBitfieldSint32" ); |
| 43538 | Text.Args.push_back(printArg<bool>(PC)); |
| 43539 | Text.Args.push_back(printArg<uint32_t>(PC)); |
| 43540 | break; |
| 43541 | case OP_PreDecBitfieldUint32: |
| 43542 | Text.Op = PrintName("PreDecBitfieldUint32" ); |
| 43543 | Text.Args.push_back(printArg<bool>(PC)); |
| 43544 | Text.Args.push_back(printArg<uint32_t>(PC)); |
| 43545 | break; |
| 43546 | case OP_PreDecBitfieldSint64: |
| 43547 | Text.Op = PrintName("PreDecBitfieldSint64" ); |
| 43548 | Text.Args.push_back(printArg<bool>(PC)); |
| 43549 | Text.Args.push_back(printArg<uint32_t>(PC)); |
| 43550 | break; |
| 43551 | case OP_PreDecBitfieldUint64: |
| 43552 | Text.Op = PrintName("PreDecBitfieldUint64" ); |
| 43553 | Text.Args.push_back(printArg<bool>(PC)); |
| 43554 | Text.Args.push_back(printArg<uint32_t>(PC)); |
| 43555 | break; |
| 43556 | case OP_PreDecBitfieldIntAP: |
| 43557 | Text.Op = PrintName("PreDecBitfieldIntAP" ); |
| 43558 | Text.Args.push_back(printArg<bool>(PC)); |
| 43559 | Text.Args.push_back(printArg<uint32_t>(PC)); |
| 43560 | break; |
| 43561 | case OP_PreDecBitfieldIntAPS: |
| 43562 | Text.Op = PrintName("PreDecBitfieldIntAPS" ); |
| 43563 | Text.Args.push_back(printArg<bool>(PC)); |
| 43564 | Text.Args.push_back(printArg<uint32_t>(PC)); |
| 43565 | break; |
| 43566 | case OP_PreDecBitfieldBool: |
| 43567 | Text.Op = PrintName("PreDecBitfieldBool" ); |
| 43568 | Text.Args.push_back(printArg<bool>(PC)); |
| 43569 | Text.Args.push_back(printArg<uint32_t>(PC)); |
| 43570 | break; |
| 43571 | case OP_PreDecBitfieldFixedPoint: |
| 43572 | Text.Op = PrintName("PreDecBitfieldFixedPoint" ); |
| 43573 | Text.Args.push_back(printArg<bool>(PC)); |
| 43574 | Text.Args.push_back(printArg<uint32_t>(PC)); |
| 43575 | break; |
| 43576 | #endif |
| 43577 | #if defined(GET_EVAL_PROTO) || defined(GET_LINK_PROTO) |
| 43578 | bool emitPreDecBitfieldSint8( bool , uint32_t , SourceInfo); |
| 43579 | bool emitPreDecBitfieldUint8( bool , uint32_t , SourceInfo); |
| 43580 | bool emitPreDecBitfieldSint16( bool , uint32_t , SourceInfo); |
| 43581 | bool emitPreDecBitfieldUint16( bool , uint32_t , SourceInfo); |
| 43582 | bool emitPreDecBitfieldSint32( bool , uint32_t , SourceInfo); |
| 43583 | bool emitPreDecBitfieldUint32( bool , uint32_t , SourceInfo); |
| 43584 | bool emitPreDecBitfieldSint64( bool , uint32_t , SourceInfo); |
| 43585 | bool emitPreDecBitfieldUint64( bool , uint32_t , SourceInfo); |
| 43586 | bool emitPreDecBitfieldIntAP( bool , uint32_t , SourceInfo); |
| 43587 | bool emitPreDecBitfieldIntAPS( bool , uint32_t , SourceInfo); |
| 43588 | bool emitPreDecBitfieldBool( bool , uint32_t , SourceInfo); |
| 43589 | bool emitPreDecBitfieldFixedPoint( bool , uint32_t , SourceInfo); |
| 43590 | #endif |
| 43591 | #if defined(GET_EVAL_PROTO) || defined(GET_LINK_PROTO) |
| 43592 | [[nodiscard]] bool emitPreDecBitfield(PrimType, bool, uint32_t, SourceInfo I); |
| 43593 | #endif |
| 43594 | #if defined(GET_EVAL_IMPL) || defined(GET_LINK_IMPL) |
| 43595 | bool |
| 43596 | #if defined(GET_EVAL_IMPL) |
| 43597 | EvalEmitter |
| 43598 | #else |
| 43599 | ByteCodeEmitter |
| 43600 | #endif |
| 43601 | ::emitPreDecBitfield(PrimType T0, bool A0, uint32_t A1, SourceInfo I) { |
| 43602 | switch (T0) { |
| 43603 | case PT_Sint8: |
| 43604 | return emitPreDecBitfieldSint8(A0, A1, I); |
| 43605 | case PT_Uint8: |
| 43606 | return emitPreDecBitfieldUint8(A0, A1, I); |
| 43607 | case PT_Sint16: |
| 43608 | return emitPreDecBitfieldSint16(A0, A1, I); |
| 43609 | case PT_Uint16: |
| 43610 | return emitPreDecBitfieldUint16(A0, A1, I); |
| 43611 | case PT_Sint32: |
| 43612 | return emitPreDecBitfieldSint32(A0, A1, I); |
| 43613 | case PT_Uint32: |
| 43614 | return emitPreDecBitfieldUint32(A0, A1, I); |
| 43615 | case PT_Sint64: |
| 43616 | return emitPreDecBitfieldSint64(A0, A1, I); |
| 43617 | case PT_Uint64: |
| 43618 | return emitPreDecBitfieldUint64(A0, A1, I); |
| 43619 | case PT_IntAP: |
| 43620 | return emitPreDecBitfieldIntAP(A0, A1, I); |
| 43621 | case PT_IntAPS: |
| 43622 | return emitPreDecBitfieldIntAPS(A0, A1, I); |
| 43623 | case PT_Bool: |
| 43624 | return emitPreDecBitfieldBool(A0, A1, I); |
| 43625 | case PT_FixedPoint: |
| 43626 | return emitPreDecBitfieldFixedPoint(A0, A1, I); |
| 43627 | default: llvm_unreachable("invalid type: emitPreDecBitfield" ); |
| 43628 | } |
| 43629 | llvm_unreachable("invalid enum value" ); |
| 43630 | } |
| 43631 | #endif |
| 43632 | #ifdef GET_LINK_IMPL |
| 43633 | bool ByteCodeEmitter::emitPreDecBitfieldSint8( bool A0, uint32_t A1, SourceInfo L) { |
| 43634 | return emitOp<bool, uint32_t>(OP_PreDecBitfieldSint8, A0, A1, L); |
| 43635 | } |
| 43636 | bool ByteCodeEmitter::emitPreDecBitfieldUint8( bool A0, uint32_t A1, SourceInfo L) { |
| 43637 | return emitOp<bool, uint32_t>(OP_PreDecBitfieldUint8, A0, A1, L); |
| 43638 | } |
| 43639 | bool ByteCodeEmitter::emitPreDecBitfieldSint16( bool A0, uint32_t A1, SourceInfo L) { |
| 43640 | return emitOp<bool, uint32_t>(OP_PreDecBitfieldSint16, A0, A1, L); |
| 43641 | } |
| 43642 | bool ByteCodeEmitter::emitPreDecBitfieldUint16( bool A0, uint32_t A1, SourceInfo L) { |
| 43643 | return emitOp<bool, uint32_t>(OP_PreDecBitfieldUint16, A0, A1, L); |
| 43644 | } |
| 43645 | bool ByteCodeEmitter::emitPreDecBitfieldSint32( bool A0, uint32_t A1, SourceInfo L) { |
| 43646 | return emitOp<bool, uint32_t>(OP_PreDecBitfieldSint32, A0, A1, L); |
| 43647 | } |
| 43648 | bool ByteCodeEmitter::emitPreDecBitfieldUint32( bool A0, uint32_t A1, SourceInfo L) { |
| 43649 | return emitOp<bool, uint32_t>(OP_PreDecBitfieldUint32, A0, A1, L); |
| 43650 | } |
| 43651 | bool ByteCodeEmitter::emitPreDecBitfieldSint64( bool A0, uint32_t A1, SourceInfo L) { |
| 43652 | return emitOp<bool, uint32_t>(OP_PreDecBitfieldSint64, A0, A1, L); |
| 43653 | } |
| 43654 | bool ByteCodeEmitter::emitPreDecBitfieldUint64( bool A0, uint32_t A1, SourceInfo L) { |
| 43655 | return emitOp<bool, uint32_t>(OP_PreDecBitfieldUint64, A0, A1, L); |
| 43656 | } |
| 43657 | bool ByteCodeEmitter::emitPreDecBitfieldIntAP( bool A0, uint32_t A1, SourceInfo L) { |
| 43658 | return emitOp<bool, uint32_t>(OP_PreDecBitfieldIntAP, A0, A1, L); |
| 43659 | } |
| 43660 | bool ByteCodeEmitter::emitPreDecBitfieldIntAPS( bool A0, uint32_t A1, SourceInfo L) { |
| 43661 | return emitOp<bool, uint32_t>(OP_PreDecBitfieldIntAPS, A0, A1, L); |
| 43662 | } |
| 43663 | bool ByteCodeEmitter::emitPreDecBitfieldBool( bool A0, uint32_t A1, SourceInfo L) { |
| 43664 | return emitOp<bool, uint32_t>(OP_PreDecBitfieldBool, A0, A1, L); |
| 43665 | } |
| 43666 | bool ByteCodeEmitter::emitPreDecBitfieldFixedPoint( bool A0, uint32_t A1, SourceInfo L) { |
| 43667 | return emitOp<bool, uint32_t>(OP_PreDecBitfieldFixedPoint, A0, A1, L); |
| 43668 | } |
| 43669 | #endif |
| 43670 | #ifdef GET_EVAL_IMPL |
| 43671 | bool EvalEmitter::emitPreDecBitfieldSint8( bool A0, uint32_t A1, SourceInfo L) { |
| 43672 | if (!isActive()) return true; |
| 43673 | CurrentSource = L; |
| 43674 | return PreDecBitfield<PT_Sint8>(S, CodePtr(), A0, A1); |
| 43675 | } |
| 43676 | bool EvalEmitter::emitPreDecBitfieldUint8( bool A0, uint32_t A1, SourceInfo L) { |
| 43677 | if (!isActive()) return true; |
| 43678 | CurrentSource = L; |
| 43679 | return PreDecBitfield<PT_Uint8>(S, CodePtr(), A0, A1); |
| 43680 | } |
| 43681 | bool EvalEmitter::emitPreDecBitfieldSint16( bool A0, uint32_t A1, SourceInfo L) { |
| 43682 | if (!isActive()) return true; |
| 43683 | CurrentSource = L; |
| 43684 | return PreDecBitfield<PT_Sint16>(S, CodePtr(), A0, A1); |
| 43685 | } |
| 43686 | bool EvalEmitter::emitPreDecBitfieldUint16( bool A0, uint32_t A1, SourceInfo L) { |
| 43687 | if (!isActive()) return true; |
| 43688 | CurrentSource = L; |
| 43689 | return PreDecBitfield<PT_Uint16>(S, CodePtr(), A0, A1); |
| 43690 | } |
| 43691 | bool EvalEmitter::emitPreDecBitfieldSint32( bool A0, uint32_t A1, SourceInfo L) { |
| 43692 | if (!isActive()) return true; |
| 43693 | CurrentSource = L; |
| 43694 | return PreDecBitfield<PT_Sint32>(S, CodePtr(), A0, A1); |
| 43695 | } |
| 43696 | bool EvalEmitter::emitPreDecBitfieldUint32( bool A0, uint32_t A1, SourceInfo L) { |
| 43697 | if (!isActive()) return true; |
| 43698 | CurrentSource = L; |
| 43699 | return PreDecBitfield<PT_Uint32>(S, CodePtr(), A0, A1); |
| 43700 | } |
| 43701 | bool EvalEmitter::emitPreDecBitfieldSint64( bool A0, uint32_t A1, SourceInfo L) { |
| 43702 | if (!isActive()) return true; |
| 43703 | CurrentSource = L; |
| 43704 | return PreDecBitfield<PT_Sint64>(S, CodePtr(), A0, A1); |
| 43705 | } |
| 43706 | bool EvalEmitter::emitPreDecBitfieldUint64( bool A0, uint32_t A1, SourceInfo L) { |
| 43707 | if (!isActive()) return true; |
| 43708 | CurrentSource = L; |
| 43709 | return PreDecBitfield<PT_Uint64>(S, CodePtr(), A0, A1); |
| 43710 | } |
| 43711 | bool EvalEmitter::emitPreDecBitfieldIntAP( bool A0, uint32_t A1, SourceInfo L) { |
| 43712 | if (!isActive()) return true; |
| 43713 | CurrentSource = L; |
| 43714 | return PreDecBitfield<PT_IntAP>(S, CodePtr(), A0, A1); |
| 43715 | } |
| 43716 | bool EvalEmitter::emitPreDecBitfieldIntAPS( bool A0, uint32_t A1, SourceInfo L) { |
| 43717 | if (!isActive()) return true; |
| 43718 | CurrentSource = L; |
| 43719 | return PreDecBitfield<PT_IntAPS>(S, CodePtr(), A0, A1); |
| 43720 | } |
| 43721 | bool EvalEmitter::emitPreDecBitfieldBool( bool A0, uint32_t A1, SourceInfo L) { |
| 43722 | if (!isActive()) return true; |
| 43723 | CurrentSource = L; |
| 43724 | return PreDecBitfield<PT_Bool>(S, CodePtr(), A0, A1); |
| 43725 | } |
| 43726 | bool EvalEmitter::emitPreDecBitfieldFixedPoint( bool A0, uint32_t A1, SourceInfo L) { |
| 43727 | if (!isActive()) return true; |
| 43728 | CurrentSource = L; |
| 43729 | return PreDecBitfield<PT_FixedPoint>(S, CodePtr(), A0, A1); |
| 43730 | } |
| 43731 | #endif |
| 43732 | #ifdef GET_OPCODE_NAMES |
| 43733 | OP_PreIncSint8, |
| 43734 | OP_PreIncUint8, |
| 43735 | OP_PreIncSint16, |
| 43736 | OP_PreIncUint16, |
| 43737 | OP_PreIncSint32, |
| 43738 | OP_PreIncUint32, |
| 43739 | OP_PreIncSint64, |
| 43740 | OP_PreIncUint64, |
| 43741 | OP_PreIncIntAP, |
| 43742 | OP_PreIncIntAPS, |
| 43743 | OP_PreIncBool, |
| 43744 | OP_PreIncFixedPoint, |
| 43745 | #endif |
| 43746 | #ifdef GET_INTERPFN_LIST |
| 43747 | &Interp_PreIncSint8, |
| 43748 | &Interp_PreIncUint8, |
| 43749 | &Interp_PreIncSint16, |
| 43750 | &Interp_PreIncUint16, |
| 43751 | &Interp_PreIncSint32, |
| 43752 | &Interp_PreIncUint32, |
| 43753 | &Interp_PreIncSint64, |
| 43754 | &Interp_PreIncUint64, |
| 43755 | &Interp_PreIncIntAP, |
| 43756 | &Interp_PreIncIntAPS, |
| 43757 | &Interp_PreIncBool, |
| 43758 | &Interp_PreIncFixedPoint, |
| 43759 | #endif |
| 43760 | #ifdef GET_INTERPFN_DISPATCHERS |
| 43761 | PRESERVE_NONE |
| 43762 | static bool Interp_PreIncSint8(InterpState &S) { |
| 43763 | { |
| 43764 | CodePtr OpPC = S.PC; |
| 43765 | const auto V0 = ReadArg<bool>(S, S.PC); |
| 43766 | if (!PreInc<PT_Sint8>(S, OpPC, V0)) return false; |
| 43767 | } |
| 43768 | #if USE_TAILCALLS |
| 43769 | MUSTTAIL return InterpNext(S); |
| 43770 | #else |
| 43771 | return true; |
| 43772 | #endif |
| 43773 | } |
| 43774 | PRESERVE_NONE |
| 43775 | static bool Interp_PreIncUint8(InterpState &S) { |
| 43776 | { |
| 43777 | CodePtr OpPC = S.PC; |
| 43778 | const auto V0 = ReadArg<bool>(S, S.PC); |
| 43779 | if (!PreInc<PT_Uint8>(S, OpPC, V0)) return false; |
| 43780 | } |
| 43781 | #if USE_TAILCALLS |
| 43782 | MUSTTAIL return InterpNext(S); |
| 43783 | #else |
| 43784 | return true; |
| 43785 | #endif |
| 43786 | } |
| 43787 | PRESERVE_NONE |
| 43788 | static bool Interp_PreIncSint16(InterpState &S) { |
| 43789 | { |
| 43790 | CodePtr OpPC = S.PC; |
| 43791 | const auto V0 = ReadArg<bool>(S, S.PC); |
| 43792 | if (!PreInc<PT_Sint16>(S, OpPC, V0)) return false; |
| 43793 | } |
| 43794 | #if USE_TAILCALLS |
| 43795 | MUSTTAIL return InterpNext(S); |
| 43796 | #else |
| 43797 | return true; |
| 43798 | #endif |
| 43799 | } |
| 43800 | PRESERVE_NONE |
| 43801 | static bool Interp_PreIncUint16(InterpState &S) { |
| 43802 | { |
| 43803 | CodePtr OpPC = S.PC; |
| 43804 | const auto V0 = ReadArg<bool>(S, S.PC); |
| 43805 | if (!PreInc<PT_Uint16>(S, OpPC, V0)) return false; |
| 43806 | } |
| 43807 | #if USE_TAILCALLS |
| 43808 | MUSTTAIL return InterpNext(S); |
| 43809 | #else |
| 43810 | return true; |
| 43811 | #endif |
| 43812 | } |
| 43813 | PRESERVE_NONE |
| 43814 | static bool Interp_PreIncSint32(InterpState &S) { |
| 43815 | { |
| 43816 | CodePtr OpPC = S.PC; |
| 43817 | const auto V0 = ReadArg<bool>(S, S.PC); |
| 43818 | if (!PreInc<PT_Sint32>(S, OpPC, V0)) return false; |
| 43819 | } |
| 43820 | #if USE_TAILCALLS |
| 43821 | MUSTTAIL return InterpNext(S); |
| 43822 | #else |
| 43823 | return true; |
| 43824 | #endif |
| 43825 | } |
| 43826 | PRESERVE_NONE |
| 43827 | static bool Interp_PreIncUint32(InterpState &S) { |
| 43828 | { |
| 43829 | CodePtr OpPC = S.PC; |
| 43830 | const auto V0 = ReadArg<bool>(S, S.PC); |
| 43831 | if (!PreInc<PT_Uint32>(S, OpPC, V0)) return false; |
| 43832 | } |
| 43833 | #if USE_TAILCALLS |
| 43834 | MUSTTAIL return InterpNext(S); |
| 43835 | #else |
| 43836 | return true; |
| 43837 | #endif |
| 43838 | } |
| 43839 | PRESERVE_NONE |
| 43840 | static bool Interp_PreIncSint64(InterpState &S) { |
| 43841 | { |
| 43842 | CodePtr OpPC = S.PC; |
| 43843 | const auto V0 = ReadArg<bool>(S, S.PC); |
| 43844 | if (!PreInc<PT_Sint64>(S, OpPC, V0)) return false; |
| 43845 | } |
| 43846 | #if USE_TAILCALLS |
| 43847 | MUSTTAIL return InterpNext(S); |
| 43848 | #else |
| 43849 | return true; |
| 43850 | #endif |
| 43851 | } |
| 43852 | PRESERVE_NONE |
| 43853 | static bool Interp_PreIncUint64(InterpState &S) { |
| 43854 | { |
| 43855 | CodePtr OpPC = S.PC; |
| 43856 | const auto V0 = ReadArg<bool>(S, S.PC); |
| 43857 | if (!PreInc<PT_Uint64>(S, OpPC, V0)) return false; |
| 43858 | } |
| 43859 | #if USE_TAILCALLS |
| 43860 | MUSTTAIL return InterpNext(S); |
| 43861 | #else |
| 43862 | return true; |
| 43863 | #endif |
| 43864 | } |
| 43865 | PRESERVE_NONE |
| 43866 | static bool Interp_PreIncIntAP(InterpState &S) { |
| 43867 | { |
| 43868 | CodePtr OpPC = S.PC; |
| 43869 | const auto V0 = ReadArg<bool>(S, S.PC); |
| 43870 | if (!PreInc<PT_IntAP>(S, OpPC, V0)) return false; |
| 43871 | } |
| 43872 | #if USE_TAILCALLS |
| 43873 | MUSTTAIL return InterpNext(S); |
| 43874 | #else |
| 43875 | return true; |
| 43876 | #endif |
| 43877 | } |
| 43878 | PRESERVE_NONE |
| 43879 | static bool Interp_PreIncIntAPS(InterpState &S) { |
| 43880 | { |
| 43881 | CodePtr OpPC = S.PC; |
| 43882 | const auto V0 = ReadArg<bool>(S, S.PC); |
| 43883 | if (!PreInc<PT_IntAPS>(S, OpPC, V0)) return false; |
| 43884 | } |
| 43885 | #if USE_TAILCALLS |
| 43886 | MUSTTAIL return InterpNext(S); |
| 43887 | #else |
| 43888 | return true; |
| 43889 | #endif |
| 43890 | } |
| 43891 | PRESERVE_NONE |
| 43892 | static bool Interp_PreIncBool(InterpState &S) { |
| 43893 | { |
| 43894 | CodePtr OpPC = S.PC; |
| 43895 | const auto V0 = ReadArg<bool>(S, S.PC); |
| 43896 | if (!PreInc<PT_Bool>(S, OpPC, V0)) return false; |
| 43897 | } |
| 43898 | #if USE_TAILCALLS |
| 43899 | MUSTTAIL return InterpNext(S); |
| 43900 | #else |
| 43901 | return true; |
| 43902 | #endif |
| 43903 | } |
| 43904 | PRESERVE_NONE |
| 43905 | static bool Interp_PreIncFixedPoint(InterpState &S) { |
| 43906 | { |
| 43907 | CodePtr OpPC = S.PC; |
| 43908 | const auto V0 = ReadArg<bool>(S, S.PC); |
| 43909 | if (!PreInc<PT_FixedPoint>(S, OpPC, V0)) return false; |
| 43910 | } |
| 43911 | #if USE_TAILCALLS |
| 43912 | MUSTTAIL return InterpNext(S); |
| 43913 | #else |
| 43914 | return true; |
| 43915 | #endif |
| 43916 | } |
| 43917 | #endif |
| 43918 | #ifdef GET_DISASM |
| 43919 | case OP_PreIncSint8: |
| 43920 | Text.Op = PrintName("PreIncSint8" ); |
| 43921 | Text.Args.push_back(printArg<bool>(PC)); |
| 43922 | break; |
| 43923 | case OP_PreIncUint8: |
| 43924 | Text.Op = PrintName("PreIncUint8" ); |
| 43925 | Text.Args.push_back(printArg<bool>(PC)); |
| 43926 | break; |
| 43927 | case OP_PreIncSint16: |
| 43928 | Text.Op = PrintName("PreIncSint16" ); |
| 43929 | Text.Args.push_back(printArg<bool>(PC)); |
| 43930 | break; |
| 43931 | case OP_PreIncUint16: |
| 43932 | Text.Op = PrintName("PreIncUint16" ); |
| 43933 | Text.Args.push_back(printArg<bool>(PC)); |
| 43934 | break; |
| 43935 | case OP_PreIncSint32: |
| 43936 | Text.Op = PrintName("PreIncSint32" ); |
| 43937 | Text.Args.push_back(printArg<bool>(PC)); |
| 43938 | break; |
| 43939 | case OP_PreIncUint32: |
| 43940 | Text.Op = PrintName("PreIncUint32" ); |
| 43941 | Text.Args.push_back(printArg<bool>(PC)); |
| 43942 | break; |
| 43943 | case OP_PreIncSint64: |
| 43944 | Text.Op = PrintName("PreIncSint64" ); |
| 43945 | Text.Args.push_back(printArg<bool>(PC)); |
| 43946 | break; |
| 43947 | case OP_PreIncUint64: |
| 43948 | Text.Op = PrintName("PreIncUint64" ); |
| 43949 | Text.Args.push_back(printArg<bool>(PC)); |
| 43950 | break; |
| 43951 | case OP_PreIncIntAP: |
| 43952 | Text.Op = PrintName("PreIncIntAP" ); |
| 43953 | Text.Args.push_back(printArg<bool>(PC)); |
| 43954 | break; |
| 43955 | case OP_PreIncIntAPS: |
| 43956 | Text.Op = PrintName("PreIncIntAPS" ); |
| 43957 | Text.Args.push_back(printArg<bool>(PC)); |
| 43958 | break; |
| 43959 | case OP_PreIncBool: |
| 43960 | Text.Op = PrintName("PreIncBool" ); |
| 43961 | Text.Args.push_back(printArg<bool>(PC)); |
| 43962 | break; |
| 43963 | case OP_PreIncFixedPoint: |
| 43964 | Text.Op = PrintName("PreIncFixedPoint" ); |
| 43965 | Text.Args.push_back(printArg<bool>(PC)); |
| 43966 | break; |
| 43967 | #endif |
| 43968 | #if defined(GET_EVAL_PROTO) || defined(GET_LINK_PROTO) |
| 43969 | bool emitPreIncSint8( bool , SourceInfo); |
| 43970 | bool emitPreIncUint8( bool , SourceInfo); |
| 43971 | bool emitPreIncSint16( bool , SourceInfo); |
| 43972 | bool emitPreIncUint16( bool , SourceInfo); |
| 43973 | bool emitPreIncSint32( bool , SourceInfo); |
| 43974 | bool emitPreIncUint32( bool , SourceInfo); |
| 43975 | bool emitPreIncSint64( bool , SourceInfo); |
| 43976 | bool emitPreIncUint64( bool , SourceInfo); |
| 43977 | bool emitPreIncIntAP( bool , SourceInfo); |
| 43978 | bool emitPreIncIntAPS( bool , SourceInfo); |
| 43979 | bool emitPreIncBool( bool , SourceInfo); |
| 43980 | bool emitPreIncFixedPoint( bool , SourceInfo); |
| 43981 | #endif |
| 43982 | #if defined(GET_EVAL_PROTO) || defined(GET_LINK_PROTO) |
| 43983 | [[nodiscard]] bool emitPreInc(PrimType, bool, SourceInfo I); |
| 43984 | #endif |
| 43985 | #if defined(GET_EVAL_IMPL) || defined(GET_LINK_IMPL) |
| 43986 | bool |
| 43987 | #if defined(GET_EVAL_IMPL) |
| 43988 | EvalEmitter |
| 43989 | #else |
| 43990 | ByteCodeEmitter |
| 43991 | #endif |
| 43992 | ::emitPreInc(PrimType T0, bool A0, SourceInfo I) { |
| 43993 | switch (T0) { |
| 43994 | case PT_Sint8: |
| 43995 | return emitPreIncSint8(A0, I); |
| 43996 | case PT_Uint8: |
| 43997 | return emitPreIncUint8(A0, I); |
| 43998 | case PT_Sint16: |
| 43999 | return emitPreIncSint16(A0, I); |
| 44000 | case PT_Uint16: |
| 44001 | return emitPreIncUint16(A0, I); |
| 44002 | case PT_Sint32: |
| 44003 | return emitPreIncSint32(A0, I); |
| 44004 | case PT_Uint32: |
| 44005 | return emitPreIncUint32(A0, I); |
| 44006 | case PT_Sint64: |
| 44007 | return emitPreIncSint64(A0, I); |
| 44008 | case PT_Uint64: |
| 44009 | return emitPreIncUint64(A0, I); |
| 44010 | case PT_IntAP: |
| 44011 | return emitPreIncIntAP(A0, I); |
| 44012 | case PT_IntAPS: |
| 44013 | return emitPreIncIntAPS(A0, I); |
| 44014 | case PT_Bool: |
| 44015 | return emitPreIncBool(A0, I); |
| 44016 | case PT_FixedPoint: |
| 44017 | return emitPreIncFixedPoint(A0, I); |
| 44018 | default: llvm_unreachable("invalid type: emitPreInc" ); |
| 44019 | } |
| 44020 | llvm_unreachable("invalid enum value" ); |
| 44021 | } |
| 44022 | #endif |
| 44023 | #ifdef GET_LINK_IMPL |
| 44024 | bool ByteCodeEmitter::emitPreIncSint8( bool A0, SourceInfo L) { |
| 44025 | return emitOp<bool>(OP_PreIncSint8, A0, L); |
| 44026 | } |
| 44027 | bool ByteCodeEmitter::emitPreIncUint8( bool A0, SourceInfo L) { |
| 44028 | return emitOp<bool>(OP_PreIncUint8, A0, L); |
| 44029 | } |
| 44030 | bool ByteCodeEmitter::emitPreIncSint16( bool A0, SourceInfo L) { |
| 44031 | return emitOp<bool>(OP_PreIncSint16, A0, L); |
| 44032 | } |
| 44033 | bool ByteCodeEmitter::emitPreIncUint16( bool A0, SourceInfo L) { |
| 44034 | return emitOp<bool>(OP_PreIncUint16, A0, L); |
| 44035 | } |
| 44036 | bool ByteCodeEmitter::emitPreIncSint32( bool A0, SourceInfo L) { |
| 44037 | return emitOp<bool>(OP_PreIncSint32, A0, L); |
| 44038 | } |
| 44039 | bool ByteCodeEmitter::emitPreIncUint32( bool A0, SourceInfo L) { |
| 44040 | return emitOp<bool>(OP_PreIncUint32, A0, L); |
| 44041 | } |
| 44042 | bool ByteCodeEmitter::emitPreIncSint64( bool A0, SourceInfo L) { |
| 44043 | return emitOp<bool>(OP_PreIncSint64, A0, L); |
| 44044 | } |
| 44045 | bool ByteCodeEmitter::emitPreIncUint64( bool A0, SourceInfo L) { |
| 44046 | return emitOp<bool>(OP_PreIncUint64, A0, L); |
| 44047 | } |
| 44048 | bool ByteCodeEmitter::emitPreIncIntAP( bool A0, SourceInfo L) { |
| 44049 | return emitOp<bool>(OP_PreIncIntAP, A0, L); |
| 44050 | } |
| 44051 | bool ByteCodeEmitter::emitPreIncIntAPS( bool A0, SourceInfo L) { |
| 44052 | return emitOp<bool>(OP_PreIncIntAPS, A0, L); |
| 44053 | } |
| 44054 | bool ByteCodeEmitter::emitPreIncBool( bool A0, SourceInfo L) { |
| 44055 | return emitOp<bool>(OP_PreIncBool, A0, L); |
| 44056 | } |
| 44057 | bool ByteCodeEmitter::emitPreIncFixedPoint( bool A0, SourceInfo L) { |
| 44058 | return emitOp<bool>(OP_PreIncFixedPoint, A0, L); |
| 44059 | } |
| 44060 | #endif |
| 44061 | #ifdef GET_EVAL_IMPL |
| 44062 | bool EvalEmitter::emitPreIncSint8( bool A0, SourceInfo L) { |
| 44063 | if (!isActive()) return true; |
| 44064 | CurrentSource = L; |
| 44065 | return PreInc<PT_Sint8>(S, CodePtr(), A0); |
| 44066 | } |
| 44067 | bool EvalEmitter::emitPreIncUint8( bool A0, SourceInfo L) { |
| 44068 | if (!isActive()) return true; |
| 44069 | CurrentSource = L; |
| 44070 | return PreInc<PT_Uint8>(S, CodePtr(), A0); |
| 44071 | } |
| 44072 | bool EvalEmitter::emitPreIncSint16( bool A0, SourceInfo L) { |
| 44073 | if (!isActive()) return true; |
| 44074 | CurrentSource = L; |
| 44075 | return PreInc<PT_Sint16>(S, CodePtr(), A0); |
| 44076 | } |
| 44077 | bool EvalEmitter::emitPreIncUint16( bool A0, SourceInfo L) { |
| 44078 | if (!isActive()) return true; |
| 44079 | CurrentSource = L; |
| 44080 | return PreInc<PT_Uint16>(S, CodePtr(), A0); |
| 44081 | } |
| 44082 | bool EvalEmitter::emitPreIncSint32( bool A0, SourceInfo L) { |
| 44083 | if (!isActive()) return true; |
| 44084 | CurrentSource = L; |
| 44085 | return PreInc<PT_Sint32>(S, CodePtr(), A0); |
| 44086 | } |
| 44087 | bool EvalEmitter::emitPreIncUint32( bool A0, SourceInfo L) { |
| 44088 | if (!isActive()) return true; |
| 44089 | CurrentSource = L; |
| 44090 | return PreInc<PT_Uint32>(S, CodePtr(), A0); |
| 44091 | } |
| 44092 | bool EvalEmitter::emitPreIncSint64( bool A0, SourceInfo L) { |
| 44093 | if (!isActive()) return true; |
| 44094 | CurrentSource = L; |
| 44095 | return PreInc<PT_Sint64>(S, CodePtr(), A0); |
| 44096 | } |
| 44097 | bool EvalEmitter::emitPreIncUint64( bool A0, SourceInfo L) { |
| 44098 | if (!isActive()) return true; |
| 44099 | CurrentSource = L; |
| 44100 | return PreInc<PT_Uint64>(S, CodePtr(), A0); |
| 44101 | } |
| 44102 | bool EvalEmitter::emitPreIncIntAP( bool A0, SourceInfo L) { |
| 44103 | if (!isActive()) return true; |
| 44104 | CurrentSource = L; |
| 44105 | return PreInc<PT_IntAP>(S, CodePtr(), A0); |
| 44106 | } |
| 44107 | bool EvalEmitter::emitPreIncIntAPS( bool A0, SourceInfo L) { |
| 44108 | if (!isActive()) return true; |
| 44109 | CurrentSource = L; |
| 44110 | return PreInc<PT_IntAPS>(S, CodePtr(), A0); |
| 44111 | } |
| 44112 | bool EvalEmitter::emitPreIncBool( bool A0, SourceInfo L) { |
| 44113 | if (!isActive()) return true; |
| 44114 | CurrentSource = L; |
| 44115 | return PreInc<PT_Bool>(S, CodePtr(), A0); |
| 44116 | } |
| 44117 | bool EvalEmitter::emitPreIncFixedPoint( bool A0, SourceInfo L) { |
| 44118 | if (!isActive()) return true; |
| 44119 | CurrentSource = L; |
| 44120 | return PreInc<PT_FixedPoint>(S, CodePtr(), A0); |
| 44121 | } |
| 44122 | #endif |
| 44123 | #ifdef GET_OPCODE_NAMES |
| 44124 | OP_PreIncBitfieldSint8, |
| 44125 | OP_PreIncBitfieldUint8, |
| 44126 | OP_PreIncBitfieldSint16, |
| 44127 | OP_PreIncBitfieldUint16, |
| 44128 | OP_PreIncBitfieldSint32, |
| 44129 | OP_PreIncBitfieldUint32, |
| 44130 | OP_PreIncBitfieldSint64, |
| 44131 | OP_PreIncBitfieldUint64, |
| 44132 | OP_PreIncBitfieldIntAP, |
| 44133 | OP_PreIncBitfieldIntAPS, |
| 44134 | OP_PreIncBitfieldBool, |
| 44135 | OP_PreIncBitfieldFixedPoint, |
| 44136 | #endif |
| 44137 | #ifdef GET_INTERPFN_LIST |
| 44138 | &Interp_PreIncBitfieldSint8, |
| 44139 | &Interp_PreIncBitfieldUint8, |
| 44140 | &Interp_PreIncBitfieldSint16, |
| 44141 | &Interp_PreIncBitfieldUint16, |
| 44142 | &Interp_PreIncBitfieldSint32, |
| 44143 | &Interp_PreIncBitfieldUint32, |
| 44144 | &Interp_PreIncBitfieldSint64, |
| 44145 | &Interp_PreIncBitfieldUint64, |
| 44146 | &Interp_PreIncBitfieldIntAP, |
| 44147 | &Interp_PreIncBitfieldIntAPS, |
| 44148 | &Interp_PreIncBitfieldBool, |
| 44149 | &Interp_PreIncBitfieldFixedPoint, |
| 44150 | #endif |
| 44151 | #ifdef GET_INTERPFN_DISPATCHERS |
| 44152 | PRESERVE_NONE |
| 44153 | static bool Interp_PreIncBitfieldSint8(InterpState &S) { |
| 44154 | { |
| 44155 | CodePtr OpPC = S.PC; |
| 44156 | const auto V0 = ReadArg<bool>(S, S.PC); |
| 44157 | const auto V1 = ReadArg<uint32_t>(S, S.PC); |
| 44158 | if (!PreIncBitfield<PT_Sint8>(S, OpPC, V0, V1)) return false; |
| 44159 | } |
| 44160 | #if USE_TAILCALLS |
| 44161 | MUSTTAIL return InterpNext(S); |
| 44162 | #else |
| 44163 | return true; |
| 44164 | #endif |
| 44165 | } |
| 44166 | PRESERVE_NONE |
| 44167 | static bool Interp_PreIncBitfieldUint8(InterpState &S) { |
| 44168 | { |
| 44169 | CodePtr OpPC = S.PC; |
| 44170 | const auto V0 = ReadArg<bool>(S, S.PC); |
| 44171 | const auto V1 = ReadArg<uint32_t>(S, S.PC); |
| 44172 | if (!PreIncBitfield<PT_Uint8>(S, OpPC, V0, V1)) return false; |
| 44173 | } |
| 44174 | #if USE_TAILCALLS |
| 44175 | MUSTTAIL return InterpNext(S); |
| 44176 | #else |
| 44177 | return true; |
| 44178 | #endif |
| 44179 | } |
| 44180 | PRESERVE_NONE |
| 44181 | static bool Interp_PreIncBitfieldSint16(InterpState &S) { |
| 44182 | { |
| 44183 | CodePtr OpPC = S.PC; |
| 44184 | const auto V0 = ReadArg<bool>(S, S.PC); |
| 44185 | const auto V1 = ReadArg<uint32_t>(S, S.PC); |
| 44186 | if (!PreIncBitfield<PT_Sint16>(S, OpPC, V0, V1)) return false; |
| 44187 | } |
| 44188 | #if USE_TAILCALLS |
| 44189 | MUSTTAIL return InterpNext(S); |
| 44190 | #else |
| 44191 | return true; |
| 44192 | #endif |
| 44193 | } |
| 44194 | PRESERVE_NONE |
| 44195 | static bool Interp_PreIncBitfieldUint16(InterpState &S) { |
| 44196 | { |
| 44197 | CodePtr OpPC = S.PC; |
| 44198 | const auto V0 = ReadArg<bool>(S, S.PC); |
| 44199 | const auto V1 = ReadArg<uint32_t>(S, S.PC); |
| 44200 | if (!PreIncBitfield<PT_Uint16>(S, OpPC, V0, V1)) return false; |
| 44201 | } |
| 44202 | #if USE_TAILCALLS |
| 44203 | MUSTTAIL return InterpNext(S); |
| 44204 | #else |
| 44205 | return true; |
| 44206 | #endif |
| 44207 | } |
| 44208 | PRESERVE_NONE |
| 44209 | static bool Interp_PreIncBitfieldSint32(InterpState &S) { |
| 44210 | { |
| 44211 | CodePtr OpPC = S.PC; |
| 44212 | const auto V0 = ReadArg<bool>(S, S.PC); |
| 44213 | const auto V1 = ReadArg<uint32_t>(S, S.PC); |
| 44214 | if (!PreIncBitfield<PT_Sint32>(S, OpPC, V0, V1)) return false; |
| 44215 | } |
| 44216 | #if USE_TAILCALLS |
| 44217 | MUSTTAIL return InterpNext(S); |
| 44218 | #else |
| 44219 | return true; |
| 44220 | #endif |
| 44221 | } |
| 44222 | PRESERVE_NONE |
| 44223 | static bool Interp_PreIncBitfieldUint32(InterpState &S) { |
| 44224 | { |
| 44225 | CodePtr OpPC = S.PC; |
| 44226 | const auto V0 = ReadArg<bool>(S, S.PC); |
| 44227 | const auto V1 = ReadArg<uint32_t>(S, S.PC); |
| 44228 | if (!PreIncBitfield<PT_Uint32>(S, OpPC, V0, V1)) return false; |
| 44229 | } |
| 44230 | #if USE_TAILCALLS |
| 44231 | MUSTTAIL return InterpNext(S); |
| 44232 | #else |
| 44233 | return true; |
| 44234 | #endif |
| 44235 | } |
| 44236 | PRESERVE_NONE |
| 44237 | static bool Interp_PreIncBitfieldSint64(InterpState &S) { |
| 44238 | { |
| 44239 | CodePtr OpPC = S.PC; |
| 44240 | const auto V0 = ReadArg<bool>(S, S.PC); |
| 44241 | const auto V1 = ReadArg<uint32_t>(S, S.PC); |
| 44242 | if (!PreIncBitfield<PT_Sint64>(S, OpPC, V0, V1)) return false; |
| 44243 | } |
| 44244 | #if USE_TAILCALLS |
| 44245 | MUSTTAIL return InterpNext(S); |
| 44246 | #else |
| 44247 | return true; |
| 44248 | #endif |
| 44249 | } |
| 44250 | PRESERVE_NONE |
| 44251 | static bool Interp_PreIncBitfieldUint64(InterpState &S) { |
| 44252 | { |
| 44253 | CodePtr OpPC = S.PC; |
| 44254 | const auto V0 = ReadArg<bool>(S, S.PC); |
| 44255 | const auto V1 = ReadArg<uint32_t>(S, S.PC); |
| 44256 | if (!PreIncBitfield<PT_Uint64>(S, OpPC, V0, V1)) return false; |
| 44257 | } |
| 44258 | #if USE_TAILCALLS |
| 44259 | MUSTTAIL return InterpNext(S); |
| 44260 | #else |
| 44261 | return true; |
| 44262 | #endif |
| 44263 | } |
| 44264 | PRESERVE_NONE |
| 44265 | static bool Interp_PreIncBitfieldIntAP(InterpState &S) { |
| 44266 | { |
| 44267 | CodePtr OpPC = S.PC; |
| 44268 | const auto V0 = ReadArg<bool>(S, S.PC); |
| 44269 | const auto V1 = ReadArg<uint32_t>(S, S.PC); |
| 44270 | if (!PreIncBitfield<PT_IntAP>(S, OpPC, V0, V1)) return false; |
| 44271 | } |
| 44272 | #if USE_TAILCALLS |
| 44273 | MUSTTAIL return InterpNext(S); |
| 44274 | #else |
| 44275 | return true; |
| 44276 | #endif |
| 44277 | } |
| 44278 | PRESERVE_NONE |
| 44279 | static bool Interp_PreIncBitfieldIntAPS(InterpState &S) { |
| 44280 | { |
| 44281 | CodePtr OpPC = S.PC; |
| 44282 | const auto V0 = ReadArg<bool>(S, S.PC); |
| 44283 | const auto V1 = ReadArg<uint32_t>(S, S.PC); |
| 44284 | if (!PreIncBitfield<PT_IntAPS>(S, OpPC, V0, V1)) return false; |
| 44285 | } |
| 44286 | #if USE_TAILCALLS |
| 44287 | MUSTTAIL return InterpNext(S); |
| 44288 | #else |
| 44289 | return true; |
| 44290 | #endif |
| 44291 | } |
| 44292 | PRESERVE_NONE |
| 44293 | static bool Interp_PreIncBitfieldBool(InterpState &S) { |
| 44294 | { |
| 44295 | CodePtr OpPC = S.PC; |
| 44296 | const auto V0 = ReadArg<bool>(S, S.PC); |
| 44297 | const auto V1 = ReadArg<uint32_t>(S, S.PC); |
| 44298 | if (!PreIncBitfield<PT_Bool>(S, OpPC, V0, V1)) return false; |
| 44299 | } |
| 44300 | #if USE_TAILCALLS |
| 44301 | MUSTTAIL return InterpNext(S); |
| 44302 | #else |
| 44303 | return true; |
| 44304 | #endif |
| 44305 | } |
| 44306 | PRESERVE_NONE |
| 44307 | static bool Interp_PreIncBitfieldFixedPoint(InterpState &S) { |
| 44308 | { |
| 44309 | CodePtr OpPC = S.PC; |
| 44310 | const auto V0 = ReadArg<bool>(S, S.PC); |
| 44311 | const auto V1 = ReadArg<uint32_t>(S, S.PC); |
| 44312 | if (!PreIncBitfield<PT_FixedPoint>(S, OpPC, V0, V1)) return false; |
| 44313 | } |
| 44314 | #if USE_TAILCALLS |
| 44315 | MUSTTAIL return InterpNext(S); |
| 44316 | #else |
| 44317 | return true; |
| 44318 | #endif |
| 44319 | } |
| 44320 | #endif |
| 44321 | #ifdef GET_DISASM |
| 44322 | case OP_PreIncBitfieldSint8: |
| 44323 | Text.Op = PrintName("PreIncBitfieldSint8" ); |
| 44324 | Text.Args.push_back(printArg<bool>(PC)); |
| 44325 | Text.Args.push_back(printArg<uint32_t>(PC)); |
| 44326 | break; |
| 44327 | case OP_PreIncBitfieldUint8: |
| 44328 | Text.Op = PrintName("PreIncBitfieldUint8" ); |
| 44329 | Text.Args.push_back(printArg<bool>(PC)); |
| 44330 | Text.Args.push_back(printArg<uint32_t>(PC)); |
| 44331 | break; |
| 44332 | case OP_PreIncBitfieldSint16: |
| 44333 | Text.Op = PrintName("PreIncBitfieldSint16" ); |
| 44334 | Text.Args.push_back(printArg<bool>(PC)); |
| 44335 | Text.Args.push_back(printArg<uint32_t>(PC)); |
| 44336 | break; |
| 44337 | case OP_PreIncBitfieldUint16: |
| 44338 | Text.Op = PrintName("PreIncBitfieldUint16" ); |
| 44339 | Text.Args.push_back(printArg<bool>(PC)); |
| 44340 | Text.Args.push_back(printArg<uint32_t>(PC)); |
| 44341 | break; |
| 44342 | case OP_PreIncBitfieldSint32: |
| 44343 | Text.Op = PrintName("PreIncBitfieldSint32" ); |
| 44344 | Text.Args.push_back(printArg<bool>(PC)); |
| 44345 | Text.Args.push_back(printArg<uint32_t>(PC)); |
| 44346 | break; |
| 44347 | case OP_PreIncBitfieldUint32: |
| 44348 | Text.Op = PrintName("PreIncBitfieldUint32" ); |
| 44349 | Text.Args.push_back(printArg<bool>(PC)); |
| 44350 | Text.Args.push_back(printArg<uint32_t>(PC)); |
| 44351 | break; |
| 44352 | case OP_PreIncBitfieldSint64: |
| 44353 | Text.Op = PrintName("PreIncBitfieldSint64" ); |
| 44354 | Text.Args.push_back(printArg<bool>(PC)); |
| 44355 | Text.Args.push_back(printArg<uint32_t>(PC)); |
| 44356 | break; |
| 44357 | case OP_PreIncBitfieldUint64: |
| 44358 | Text.Op = PrintName("PreIncBitfieldUint64" ); |
| 44359 | Text.Args.push_back(printArg<bool>(PC)); |
| 44360 | Text.Args.push_back(printArg<uint32_t>(PC)); |
| 44361 | break; |
| 44362 | case OP_PreIncBitfieldIntAP: |
| 44363 | Text.Op = PrintName("PreIncBitfieldIntAP" ); |
| 44364 | Text.Args.push_back(printArg<bool>(PC)); |
| 44365 | Text.Args.push_back(printArg<uint32_t>(PC)); |
| 44366 | break; |
| 44367 | case OP_PreIncBitfieldIntAPS: |
| 44368 | Text.Op = PrintName("PreIncBitfieldIntAPS" ); |
| 44369 | Text.Args.push_back(printArg<bool>(PC)); |
| 44370 | Text.Args.push_back(printArg<uint32_t>(PC)); |
| 44371 | break; |
| 44372 | case OP_PreIncBitfieldBool: |
| 44373 | Text.Op = PrintName("PreIncBitfieldBool" ); |
| 44374 | Text.Args.push_back(printArg<bool>(PC)); |
| 44375 | Text.Args.push_back(printArg<uint32_t>(PC)); |
| 44376 | break; |
| 44377 | case OP_PreIncBitfieldFixedPoint: |
| 44378 | Text.Op = PrintName("PreIncBitfieldFixedPoint" ); |
| 44379 | Text.Args.push_back(printArg<bool>(PC)); |
| 44380 | Text.Args.push_back(printArg<uint32_t>(PC)); |
| 44381 | break; |
| 44382 | #endif |
| 44383 | #if defined(GET_EVAL_PROTO) || defined(GET_LINK_PROTO) |
| 44384 | bool emitPreIncBitfieldSint8( bool , uint32_t , SourceInfo); |
| 44385 | bool emitPreIncBitfieldUint8( bool , uint32_t , SourceInfo); |
| 44386 | bool emitPreIncBitfieldSint16( bool , uint32_t , SourceInfo); |
| 44387 | bool emitPreIncBitfieldUint16( bool , uint32_t , SourceInfo); |
| 44388 | bool emitPreIncBitfieldSint32( bool , uint32_t , SourceInfo); |
| 44389 | bool emitPreIncBitfieldUint32( bool , uint32_t , SourceInfo); |
| 44390 | bool emitPreIncBitfieldSint64( bool , uint32_t , SourceInfo); |
| 44391 | bool emitPreIncBitfieldUint64( bool , uint32_t , SourceInfo); |
| 44392 | bool emitPreIncBitfieldIntAP( bool , uint32_t , SourceInfo); |
| 44393 | bool emitPreIncBitfieldIntAPS( bool , uint32_t , SourceInfo); |
| 44394 | bool emitPreIncBitfieldBool( bool , uint32_t , SourceInfo); |
| 44395 | bool emitPreIncBitfieldFixedPoint( bool , uint32_t , SourceInfo); |
| 44396 | #endif |
| 44397 | #if defined(GET_EVAL_PROTO) || defined(GET_LINK_PROTO) |
| 44398 | [[nodiscard]] bool emitPreIncBitfield(PrimType, bool, uint32_t, SourceInfo I); |
| 44399 | #endif |
| 44400 | #if defined(GET_EVAL_IMPL) || defined(GET_LINK_IMPL) |
| 44401 | bool |
| 44402 | #if defined(GET_EVAL_IMPL) |
| 44403 | EvalEmitter |
| 44404 | #else |
| 44405 | ByteCodeEmitter |
| 44406 | #endif |
| 44407 | ::emitPreIncBitfield(PrimType T0, bool A0, uint32_t A1, SourceInfo I) { |
| 44408 | switch (T0) { |
| 44409 | case PT_Sint8: |
| 44410 | return emitPreIncBitfieldSint8(A0, A1, I); |
| 44411 | case PT_Uint8: |
| 44412 | return emitPreIncBitfieldUint8(A0, A1, I); |
| 44413 | case PT_Sint16: |
| 44414 | return emitPreIncBitfieldSint16(A0, A1, I); |
| 44415 | case PT_Uint16: |
| 44416 | return emitPreIncBitfieldUint16(A0, A1, I); |
| 44417 | case PT_Sint32: |
| 44418 | return emitPreIncBitfieldSint32(A0, A1, I); |
| 44419 | case PT_Uint32: |
| 44420 | return emitPreIncBitfieldUint32(A0, A1, I); |
| 44421 | case PT_Sint64: |
| 44422 | return emitPreIncBitfieldSint64(A0, A1, I); |
| 44423 | case PT_Uint64: |
| 44424 | return emitPreIncBitfieldUint64(A0, A1, I); |
| 44425 | case PT_IntAP: |
| 44426 | return emitPreIncBitfieldIntAP(A0, A1, I); |
| 44427 | case PT_IntAPS: |
| 44428 | return emitPreIncBitfieldIntAPS(A0, A1, I); |
| 44429 | case PT_Bool: |
| 44430 | return emitPreIncBitfieldBool(A0, A1, I); |
| 44431 | case PT_FixedPoint: |
| 44432 | return emitPreIncBitfieldFixedPoint(A0, A1, I); |
| 44433 | default: llvm_unreachable("invalid type: emitPreIncBitfield" ); |
| 44434 | } |
| 44435 | llvm_unreachable("invalid enum value" ); |
| 44436 | } |
| 44437 | #endif |
| 44438 | #ifdef GET_LINK_IMPL |
| 44439 | bool ByteCodeEmitter::emitPreIncBitfieldSint8( bool A0, uint32_t A1, SourceInfo L) { |
| 44440 | return emitOp<bool, uint32_t>(OP_PreIncBitfieldSint8, A0, A1, L); |
| 44441 | } |
| 44442 | bool ByteCodeEmitter::emitPreIncBitfieldUint8( bool A0, uint32_t A1, SourceInfo L) { |
| 44443 | return emitOp<bool, uint32_t>(OP_PreIncBitfieldUint8, A0, A1, L); |
| 44444 | } |
| 44445 | bool ByteCodeEmitter::emitPreIncBitfieldSint16( bool A0, uint32_t A1, SourceInfo L) { |
| 44446 | return emitOp<bool, uint32_t>(OP_PreIncBitfieldSint16, A0, A1, L); |
| 44447 | } |
| 44448 | bool ByteCodeEmitter::emitPreIncBitfieldUint16( bool A0, uint32_t A1, SourceInfo L) { |
| 44449 | return emitOp<bool, uint32_t>(OP_PreIncBitfieldUint16, A0, A1, L); |
| 44450 | } |
| 44451 | bool ByteCodeEmitter::emitPreIncBitfieldSint32( bool A0, uint32_t A1, SourceInfo L) { |
| 44452 | return emitOp<bool, uint32_t>(OP_PreIncBitfieldSint32, A0, A1, L); |
| 44453 | } |
| 44454 | bool ByteCodeEmitter::emitPreIncBitfieldUint32( bool A0, uint32_t A1, SourceInfo L) { |
| 44455 | return emitOp<bool, uint32_t>(OP_PreIncBitfieldUint32, A0, A1, L); |
| 44456 | } |
| 44457 | bool ByteCodeEmitter::emitPreIncBitfieldSint64( bool A0, uint32_t A1, SourceInfo L) { |
| 44458 | return emitOp<bool, uint32_t>(OP_PreIncBitfieldSint64, A0, A1, L); |
| 44459 | } |
| 44460 | bool ByteCodeEmitter::emitPreIncBitfieldUint64( bool A0, uint32_t A1, SourceInfo L) { |
| 44461 | return emitOp<bool, uint32_t>(OP_PreIncBitfieldUint64, A0, A1, L); |
| 44462 | } |
| 44463 | bool ByteCodeEmitter::emitPreIncBitfieldIntAP( bool A0, uint32_t A1, SourceInfo L) { |
| 44464 | return emitOp<bool, uint32_t>(OP_PreIncBitfieldIntAP, A0, A1, L); |
| 44465 | } |
| 44466 | bool ByteCodeEmitter::emitPreIncBitfieldIntAPS( bool A0, uint32_t A1, SourceInfo L) { |
| 44467 | return emitOp<bool, uint32_t>(OP_PreIncBitfieldIntAPS, A0, A1, L); |
| 44468 | } |
| 44469 | bool ByteCodeEmitter::emitPreIncBitfieldBool( bool A0, uint32_t A1, SourceInfo L) { |
| 44470 | return emitOp<bool, uint32_t>(OP_PreIncBitfieldBool, A0, A1, L); |
| 44471 | } |
| 44472 | bool ByteCodeEmitter::emitPreIncBitfieldFixedPoint( bool A0, uint32_t A1, SourceInfo L) { |
| 44473 | return emitOp<bool, uint32_t>(OP_PreIncBitfieldFixedPoint, A0, A1, L); |
| 44474 | } |
| 44475 | #endif |
| 44476 | #ifdef GET_EVAL_IMPL |
| 44477 | bool EvalEmitter::emitPreIncBitfieldSint8( bool A0, uint32_t A1, SourceInfo L) { |
| 44478 | if (!isActive()) return true; |
| 44479 | CurrentSource = L; |
| 44480 | return PreIncBitfield<PT_Sint8>(S, CodePtr(), A0, A1); |
| 44481 | } |
| 44482 | bool EvalEmitter::emitPreIncBitfieldUint8( bool A0, uint32_t A1, SourceInfo L) { |
| 44483 | if (!isActive()) return true; |
| 44484 | CurrentSource = L; |
| 44485 | return PreIncBitfield<PT_Uint8>(S, CodePtr(), A0, A1); |
| 44486 | } |
| 44487 | bool EvalEmitter::emitPreIncBitfieldSint16( bool A0, uint32_t A1, SourceInfo L) { |
| 44488 | if (!isActive()) return true; |
| 44489 | CurrentSource = L; |
| 44490 | return PreIncBitfield<PT_Sint16>(S, CodePtr(), A0, A1); |
| 44491 | } |
| 44492 | bool EvalEmitter::emitPreIncBitfieldUint16( bool A0, uint32_t A1, SourceInfo L) { |
| 44493 | if (!isActive()) return true; |
| 44494 | CurrentSource = L; |
| 44495 | return PreIncBitfield<PT_Uint16>(S, CodePtr(), A0, A1); |
| 44496 | } |
| 44497 | bool EvalEmitter::emitPreIncBitfieldSint32( bool A0, uint32_t A1, SourceInfo L) { |
| 44498 | if (!isActive()) return true; |
| 44499 | CurrentSource = L; |
| 44500 | return PreIncBitfield<PT_Sint32>(S, CodePtr(), A0, A1); |
| 44501 | } |
| 44502 | bool EvalEmitter::emitPreIncBitfieldUint32( bool A0, uint32_t A1, SourceInfo L) { |
| 44503 | if (!isActive()) return true; |
| 44504 | CurrentSource = L; |
| 44505 | return PreIncBitfield<PT_Uint32>(S, CodePtr(), A0, A1); |
| 44506 | } |
| 44507 | bool EvalEmitter::emitPreIncBitfieldSint64( bool A0, uint32_t A1, SourceInfo L) { |
| 44508 | if (!isActive()) return true; |
| 44509 | CurrentSource = L; |
| 44510 | return PreIncBitfield<PT_Sint64>(S, CodePtr(), A0, A1); |
| 44511 | } |
| 44512 | bool EvalEmitter::emitPreIncBitfieldUint64( bool A0, uint32_t A1, SourceInfo L) { |
| 44513 | if (!isActive()) return true; |
| 44514 | CurrentSource = L; |
| 44515 | return PreIncBitfield<PT_Uint64>(S, CodePtr(), A0, A1); |
| 44516 | } |
| 44517 | bool EvalEmitter::emitPreIncBitfieldIntAP( bool A0, uint32_t A1, SourceInfo L) { |
| 44518 | if (!isActive()) return true; |
| 44519 | CurrentSource = L; |
| 44520 | return PreIncBitfield<PT_IntAP>(S, CodePtr(), A0, A1); |
| 44521 | } |
| 44522 | bool EvalEmitter::emitPreIncBitfieldIntAPS( bool A0, uint32_t A1, SourceInfo L) { |
| 44523 | if (!isActive()) return true; |
| 44524 | CurrentSource = L; |
| 44525 | return PreIncBitfield<PT_IntAPS>(S, CodePtr(), A0, A1); |
| 44526 | } |
| 44527 | bool EvalEmitter::emitPreIncBitfieldBool( bool A0, uint32_t A1, SourceInfo L) { |
| 44528 | if (!isActive()) return true; |
| 44529 | CurrentSource = L; |
| 44530 | return PreIncBitfield<PT_Bool>(S, CodePtr(), A0, A1); |
| 44531 | } |
| 44532 | bool EvalEmitter::emitPreIncBitfieldFixedPoint( bool A0, uint32_t A1, SourceInfo L) { |
| 44533 | if (!isActive()) return true; |
| 44534 | CurrentSource = L; |
| 44535 | return PreIncBitfield<PT_FixedPoint>(S, CodePtr(), A0, A1); |
| 44536 | } |
| 44537 | #endif |
| 44538 | #ifdef GET_OPCODE_NAMES |
| 44539 | OP_PseudoDtor, |
| 44540 | #endif |
| 44541 | #ifdef GET_INTERPFN_LIST |
| 44542 | &Interp_PseudoDtor, |
| 44543 | #endif |
| 44544 | #ifdef GET_INTERPFN_DISPATCHERS |
| 44545 | PRESERVE_NONE |
| 44546 | static bool Interp_PseudoDtor(InterpState &S) { |
| 44547 | if (!PseudoDtor(S, S.PC)) return false; |
| 44548 | #if USE_TAILCALLS |
| 44549 | MUSTTAIL return InterpNext(S); |
| 44550 | #else |
| 44551 | return true; |
| 44552 | #endif |
| 44553 | } |
| 44554 | #endif |
| 44555 | #ifdef GET_DISASM |
| 44556 | case OP_PseudoDtor: |
| 44557 | Text.Op = PrintName("PseudoDtor" ); |
| 44558 | break; |
| 44559 | #endif |
| 44560 | #if defined(GET_EVAL_PROTO) || defined(GET_LINK_PROTO) |
| 44561 | bool emitPseudoDtor(SourceInfo); |
| 44562 | #endif |
| 44563 | #ifdef GET_LINK_IMPL |
| 44564 | bool ByteCodeEmitter::emitPseudoDtor(SourceInfo L) { |
| 44565 | return emitOp<>(OP_PseudoDtor, L); |
| 44566 | } |
| 44567 | #endif |
| 44568 | #ifdef GET_EVAL_IMPL |
| 44569 | bool EvalEmitter::emitPseudoDtor(SourceInfo L) { |
| 44570 | if (!isActive()) return true; |
| 44571 | CurrentSource = L; |
| 44572 | return PseudoDtor(S, CodePtr()); |
| 44573 | } |
| 44574 | #endif |
| 44575 | #ifdef GET_OPCODE_NAMES |
| 44576 | OP_PtrPtrCast, |
| 44577 | #endif |
| 44578 | #ifdef GET_INTERPFN_LIST |
| 44579 | &Interp_PtrPtrCast, |
| 44580 | #endif |
| 44581 | #ifdef GET_INTERPFN_DISPATCHERS |
| 44582 | PRESERVE_NONE |
| 44583 | static bool Interp_PtrPtrCast(InterpState &S) { |
| 44584 | { |
| 44585 | CodePtr OpPC = S.PC; |
| 44586 | const auto V0 = ReadArg<bool>(S, S.PC); |
| 44587 | const auto V1 = ReadArg<const Type *>(S, S.PC); |
| 44588 | if (!PtrPtrCast(S, OpPC, V0, V1)) return false; |
| 44589 | } |
| 44590 | #if USE_TAILCALLS |
| 44591 | MUSTTAIL return InterpNext(S); |
| 44592 | #else |
| 44593 | return true; |
| 44594 | #endif |
| 44595 | } |
| 44596 | #endif |
| 44597 | #ifdef GET_DISASM |
| 44598 | case OP_PtrPtrCast: |
| 44599 | Text.Op = PrintName("PtrPtrCast" ); |
| 44600 | Text.Args.push_back(printArg<bool>(PC)); |
| 44601 | Text.Args.push_back(printArg<const Type *>(PC)); |
| 44602 | break; |
| 44603 | #endif |
| 44604 | #if defined(GET_EVAL_PROTO) || defined(GET_LINK_PROTO) |
| 44605 | bool emitPtrPtrCast( bool , const Type * , SourceInfo); |
| 44606 | #endif |
| 44607 | #ifdef GET_LINK_IMPL |
| 44608 | bool ByteCodeEmitter::emitPtrPtrCast( bool A0, const Type * A1, SourceInfo L) { |
| 44609 | return emitOp<bool, const Type *>(OP_PtrPtrCast, A0, A1, L); |
| 44610 | } |
| 44611 | #endif |
| 44612 | #ifdef GET_EVAL_IMPL |
| 44613 | bool EvalEmitter::emitPtrPtrCast( bool A0, const Type * A1, SourceInfo L) { |
| 44614 | if (!isActive()) return true; |
| 44615 | CurrentSource = L; |
| 44616 | return PtrPtrCast(S, CodePtr(), A0, A1); |
| 44617 | } |
| 44618 | #endif |
| 44619 | #ifdef GET_OPCODE_NAMES |
| 44620 | OP_PushCC, |
| 44621 | #endif |
| 44622 | #ifdef GET_INTERPFN_LIST |
| 44623 | &Interp_PushCC, |
| 44624 | #endif |
| 44625 | #ifdef GET_INTERPFN_DISPATCHERS |
| 44626 | PRESERVE_NONE |
| 44627 | static bool Interp_PushCC(InterpState &S) { |
| 44628 | { |
| 44629 | const auto V0 = ReadArg<bool>(S, S.PC); |
| 44630 | PushCC(S, V0); |
| 44631 | } |
| 44632 | #if USE_TAILCALLS |
| 44633 | MUSTTAIL return InterpNext(S); |
| 44634 | #else |
| 44635 | return true; |
| 44636 | #endif |
| 44637 | } |
| 44638 | #endif |
| 44639 | #ifdef GET_DISASM |
| 44640 | case OP_PushCC: |
| 44641 | Text.Op = PrintName("PushCC" ); |
| 44642 | Text.Args.push_back(printArg<bool>(PC)); |
| 44643 | break; |
| 44644 | #endif |
| 44645 | #if defined(GET_EVAL_PROTO) || defined(GET_LINK_PROTO) |
| 44646 | bool emitPushCC( bool , SourceInfo); |
| 44647 | #endif |
| 44648 | #ifdef GET_LINK_IMPL |
| 44649 | bool ByteCodeEmitter::emitPushCC( bool A0, SourceInfo L) { |
| 44650 | return emitOp<bool>(OP_PushCC, A0, L); |
| 44651 | } |
| 44652 | #endif |
| 44653 | #ifdef GET_EVAL_IMPL |
| 44654 | bool EvalEmitter::emitPushCC( bool A0, SourceInfo L) { |
| 44655 | if (!isActive()) return true; |
| 44656 | CurrentSource = L; |
| 44657 | return PushCC(S, A0); |
| 44658 | } |
| 44659 | #endif |
| 44660 | #ifdef GET_OPCODE_NAMES |
| 44661 | OP_PushIgnoreDiags, |
| 44662 | #endif |
| 44663 | #ifdef GET_INTERPFN_LIST |
| 44664 | &Interp_PushIgnoreDiags, |
| 44665 | #endif |
| 44666 | #ifdef GET_INTERPFN_DISPATCHERS |
| 44667 | PRESERVE_NONE |
| 44668 | static bool Interp_PushIgnoreDiags(InterpState &S) { |
| 44669 | PushIgnoreDiags(S); |
| 44670 | #if USE_TAILCALLS |
| 44671 | MUSTTAIL return InterpNext(S); |
| 44672 | #else |
| 44673 | return true; |
| 44674 | #endif |
| 44675 | } |
| 44676 | #endif |
| 44677 | #ifdef GET_DISASM |
| 44678 | case OP_PushIgnoreDiags: |
| 44679 | Text.Op = PrintName("PushIgnoreDiags" ); |
| 44680 | break; |
| 44681 | #endif |
| 44682 | #if defined(GET_EVAL_PROTO) || defined(GET_LINK_PROTO) |
| 44683 | bool emitPushIgnoreDiags(SourceInfo); |
| 44684 | #endif |
| 44685 | #ifdef GET_LINK_IMPL |
| 44686 | bool ByteCodeEmitter::emitPushIgnoreDiags(SourceInfo L) { |
| 44687 | return emitOp<>(OP_PushIgnoreDiags, L); |
| 44688 | } |
| 44689 | #endif |
| 44690 | #ifdef GET_EVAL_IMPL |
| 44691 | bool EvalEmitter::emitPushIgnoreDiags(SourceInfo L) { |
| 44692 | if (!isActive()) return true; |
| 44693 | CurrentSource = L; |
| 44694 | return PushIgnoreDiags(S); |
| 44695 | } |
| 44696 | #endif |
| 44697 | #ifdef GET_OPCODE_NAMES |
| 44698 | OP_PushMSVCCE, |
| 44699 | #endif |
| 44700 | #ifdef GET_INTERPFN_LIST |
| 44701 | &Interp_PushMSVCCE, |
| 44702 | #endif |
| 44703 | #ifdef GET_INTERPFN_DISPATCHERS |
| 44704 | PRESERVE_NONE |
| 44705 | static bool Interp_PushMSVCCE(InterpState &S) { |
| 44706 | PushMSVCCE(S); |
| 44707 | #if USE_TAILCALLS |
| 44708 | MUSTTAIL return InterpNext(S); |
| 44709 | #else |
| 44710 | return true; |
| 44711 | #endif |
| 44712 | } |
| 44713 | #endif |
| 44714 | #ifdef GET_DISASM |
| 44715 | case OP_PushMSVCCE: |
| 44716 | Text.Op = PrintName("PushMSVCCE" ); |
| 44717 | break; |
| 44718 | #endif |
| 44719 | #if defined(GET_EVAL_PROTO) || defined(GET_LINK_PROTO) |
| 44720 | bool emitPushMSVCCE(SourceInfo); |
| 44721 | #endif |
| 44722 | #ifdef GET_LINK_IMPL |
| 44723 | bool ByteCodeEmitter::emitPushMSVCCE(SourceInfo L) { |
| 44724 | return emitOp<>(OP_PushMSVCCE, L); |
| 44725 | } |
| 44726 | #endif |
| 44727 | #ifdef GET_EVAL_IMPL |
| 44728 | bool EvalEmitter::emitPushMSVCCE(SourceInfo L) { |
| 44729 | if (!isActive()) return true; |
| 44730 | CurrentSource = L; |
| 44731 | return PushMSVCCE(S); |
| 44732 | } |
| 44733 | #endif |
| 44734 | #ifdef GET_OPCODE_NAMES |
| 44735 | OP_RVOPtr, |
| 44736 | #endif |
| 44737 | #ifdef GET_INTERPFN_LIST |
| 44738 | &Interp_RVOPtr, |
| 44739 | #endif |
| 44740 | #ifdef GET_INTERPFN_DISPATCHERS |
| 44741 | PRESERVE_NONE |
| 44742 | static bool Interp_RVOPtr(InterpState &S) { |
| 44743 | if (!RVOPtr(S)) return false; |
| 44744 | #if USE_TAILCALLS |
| 44745 | MUSTTAIL return InterpNext(S); |
| 44746 | #else |
| 44747 | return true; |
| 44748 | #endif |
| 44749 | } |
| 44750 | #endif |
| 44751 | #ifdef GET_DISASM |
| 44752 | case OP_RVOPtr: |
| 44753 | Text.Op = PrintName("RVOPtr" ); |
| 44754 | break; |
| 44755 | #endif |
| 44756 | #if defined(GET_EVAL_PROTO) || defined(GET_LINK_PROTO) |
| 44757 | bool emitRVOPtr(SourceInfo); |
| 44758 | #endif |
| 44759 | #ifdef GET_LINK_IMPL |
| 44760 | bool ByteCodeEmitter::emitRVOPtr(SourceInfo L) { |
| 44761 | return emitOp<>(OP_RVOPtr, L); |
| 44762 | } |
| 44763 | #endif |
| 44764 | #ifdef GET_EVAL_IMPL |
| 44765 | bool EvalEmitter::emitRVOPtr(SourceInfo L) { |
| 44766 | if (!isActive()) return true; |
| 44767 | CurrentSource = L; |
| 44768 | return RVOPtr(S); |
| 44769 | } |
| 44770 | #endif |
| 44771 | #ifdef GET_OPCODE_NAMES |
| 44772 | OP_ReflectValue, |
| 44773 | #endif |
| 44774 | #ifdef GET_INTERPFN_LIST |
| 44775 | &Interp_ReflectValue, |
| 44776 | #endif |
| 44777 | #ifdef GET_INTERPFN_DISPATCHERS |
| 44778 | PRESERVE_NONE |
| 44779 | static bool Interp_ReflectValue(InterpState &S) { |
| 44780 | { |
| 44781 | CodePtr OpPC = S.PC; |
| 44782 | const auto V0 = ReadArg<ReflectionKind>(S, S.PC); |
| 44783 | const auto V1 = ReadArg<const void *>(S, S.PC); |
| 44784 | if (!ReflectValue(S, OpPC, V0, V1)) return false; |
| 44785 | } |
| 44786 | #if USE_TAILCALLS |
| 44787 | MUSTTAIL return InterpNext(S); |
| 44788 | #else |
| 44789 | return true; |
| 44790 | #endif |
| 44791 | } |
| 44792 | #endif |
| 44793 | #ifdef GET_DISASM |
| 44794 | case OP_ReflectValue: |
| 44795 | Text.Op = PrintName("ReflectValue" ); |
| 44796 | Text.Args.push_back(printArg<ReflectionKind>(PC)); |
| 44797 | Text.Args.push_back(printArg<const void *>(PC)); |
| 44798 | break; |
| 44799 | #endif |
| 44800 | #if defined(GET_EVAL_PROTO) || defined(GET_LINK_PROTO) |
| 44801 | bool emitReflectValue( ReflectionKind , const void * , SourceInfo); |
| 44802 | #endif |
| 44803 | #ifdef GET_LINK_IMPL |
| 44804 | bool ByteCodeEmitter::emitReflectValue( ReflectionKind A0, const void * A1, SourceInfo L) { |
| 44805 | return emitOp<ReflectionKind, const void *>(OP_ReflectValue, A0, A1, L); |
| 44806 | } |
| 44807 | #endif |
| 44808 | #ifdef GET_EVAL_IMPL |
| 44809 | bool EvalEmitter::emitReflectValue( ReflectionKind A0, const void * A1, SourceInfo L) { |
| 44810 | if (!isActive()) return true; |
| 44811 | CurrentSource = L; |
| 44812 | return ReflectValue(S, CodePtr(), A0, A1); |
| 44813 | } |
| 44814 | #endif |
| 44815 | #ifdef GET_OPCODE_NAMES |
| 44816 | OP_RemSint8, |
| 44817 | OP_RemUint8, |
| 44818 | OP_RemSint16, |
| 44819 | OP_RemUint16, |
| 44820 | OP_RemSint32, |
| 44821 | OP_RemUint32, |
| 44822 | OP_RemSint64, |
| 44823 | OP_RemUint64, |
| 44824 | OP_RemIntAP, |
| 44825 | OP_RemIntAPS, |
| 44826 | OP_RemFixedPoint, |
| 44827 | #endif |
| 44828 | #ifdef GET_INTERPFN_LIST |
| 44829 | &Interp_RemSint8, |
| 44830 | &Interp_RemUint8, |
| 44831 | &Interp_RemSint16, |
| 44832 | &Interp_RemUint16, |
| 44833 | &Interp_RemSint32, |
| 44834 | &Interp_RemUint32, |
| 44835 | &Interp_RemSint64, |
| 44836 | &Interp_RemUint64, |
| 44837 | &Interp_RemIntAP, |
| 44838 | &Interp_RemIntAPS, |
| 44839 | &Interp_RemFixedPoint, |
| 44840 | #endif |
| 44841 | #ifdef GET_INTERPFN_DISPATCHERS |
| 44842 | PRESERVE_NONE |
| 44843 | static bool Interp_RemSint8(InterpState &S) { |
| 44844 | if (!Rem<PT_Sint8>(S, S.PC)) return false; |
| 44845 | #if USE_TAILCALLS |
| 44846 | MUSTTAIL return InterpNext(S); |
| 44847 | #else |
| 44848 | return true; |
| 44849 | #endif |
| 44850 | } |
| 44851 | PRESERVE_NONE |
| 44852 | static bool Interp_RemUint8(InterpState &S) { |
| 44853 | if (!Rem<PT_Uint8>(S, S.PC)) return false; |
| 44854 | #if USE_TAILCALLS |
| 44855 | MUSTTAIL return InterpNext(S); |
| 44856 | #else |
| 44857 | return true; |
| 44858 | #endif |
| 44859 | } |
| 44860 | PRESERVE_NONE |
| 44861 | static bool Interp_RemSint16(InterpState &S) { |
| 44862 | if (!Rem<PT_Sint16>(S, S.PC)) return false; |
| 44863 | #if USE_TAILCALLS |
| 44864 | MUSTTAIL return InterpNext(S); |
| 44865 | #else |
| 44866 | return true; |
| 44867 | #endif |
| 44868 | } |
| 44869 | PRESERVE_NONE |
| 44870 | static bool Interp_RemUint16(InterpState &S) { |
| 44871 | if (!Rem<PT_Uint16>(S, S.PC)) return false; |
| 44872 | #if USE_TAILCALLS |
| 44873 | MUSTTAIL return InterpNext(S); |
| 44874 | #else |
| 44875 | return true; |
| 44876 | #endif |
| 44877 | } |
| 44878 | PRESERVE_NONE |
| 44879 | static bool Interp_RemSint32(InterpState &S) { |
| 44880 | if (!Rem<PT_Sint32>(S, S.PC)) return false; |
| 44881 | #if USE_TAILCALLS |
| 44882 | MUSTTAIL return InterpNext(S); |
| 44883 | #else |
| 44884 | return true; |
| 44885 | #endif |
| 44886 | } |
| 44887 | PRESERVE_NONE |
| 44888 | static bool Interp_RemUint32(InterpState &S) { |
| 44889 | if (!Rem<PT_Uint32>(S, S.PC)) return false; |
| 44890 | #if USE_TAILCALLS |
| 44891 | MUSTTAIL return InterpNext(S); |
| 44892 | #else |
| 44893 | return true; |
| 44894 | #endif |
| 44895 | } |
| 44896 | PRESERVE_NONE |
| 44897 | static bool Interp_RemSint64(InterpState &S) { |
| 44898 | if (!Rem<PT_Sint64>(S, S.PC)) return false; |
| 44899 | #if USE_TAILCALLS |
| 44900 | MUSTTAIL return InterpNext(S); |
| 44901 | #else |
| 44902 | return true; |
| 44903 | #endif |
| 44904 | } |
| 44905 | PRESERVE_NONE |
| 44906 | static bool Interp_RemUint64(InterpState &S) { |
| 44907 | if (!Rem<PT_Uint64>(S, S.PC)) return false; |
| 44908 | #if USE_TAILCALLS |
| 44909 | MUSTTAIL return InterpNext(S); |
| 44910 | #else |
| 44911 | return true; |
| 44912 | #endif |
| 44913 | } |
| 44914 | PRESERVE_NONE |
| 44915 | static bool Interp_RemIntAP(InterpState &S) { |
| 44916 | if (!Rem<PT_IntAP>(S, S.PC)) return false; |
| 44917 | #if USE_TAILCALLS |
| 44918 | MUSTTAIL return InterpNext(S); |
| 44919 | #else |
| 44920 | return true; |
| 44921 | #endif |
| 44922 | } |
| 44923 | PRESERVE_NONE |
| 44924 | static bool Interp_RemIntAPS(InterpState &S) { |
| 44925 | if (!Rem<PT_IntAPS>(S, S.PC)) return false; |
| 44926 | #if USE_TAILCALLS |
| 44927 | MUSTTAIL return InterpNext(S); |
| 44928 | #else |
| 44929 | return true; |
| 44930 | #endif |
| 44931 | } |
| 44932 | PRESERVE_NONE |
| 44933 | static bool Interp_RemFixedPoint(InterpState &S) { |
| 44934 | if (!Rem<PT_FixedPoint>(S, S.PC)) return false; |
| 44935 | #if USE_TAILCALLS |
| 44936 | MUSTTAIL return InterpNext(S); |
| 44937 | #else |
| 44938 | return true; |
| 44939 | #endif |
| 44940 | } |
| 44941 | #endif |
| 44942 | #ifdef GET_DISASM |
| 44943 | case OP_RemSint8: |
| 44944 | Text.Op = PrintName("RemSint8" ); |
| 44945 | break; |
| 44946 | case OP_RemUint8: |
| 44947 | Text.Op = PrintName("RemUint8" ); |
| 44948 | break; |
| 44949 | case OP_RemSint16: |
| 44950 | Text.Op = PrintName("RemSint16" ); |
| 44951 | break; |
| 44952 | case OP_RemUint16: |
| 44953 | Text.Op = PrintName("RemUint16" ); |
| 44954 | break; |
| 44955 | case OP_RemSint32: |
| 44956 | Text.Op = PrintName("RemSint32" ); |
| 44957 | break; |
| 44958 | case OP_RemUint32: |
| 44959 | Text.Op = PrintName("RemUint32" ); |
| 44960 | break; |
| 44961 | case OP_RemSint64: |
| 44962 | Text.Op = PrintName("RemSint64" ); |
| 44963 | break; |
| 44964 | case OP_RemUint64: |
| 44965 | Text.Op = PrintName("RemUint64" ); |
| 44966 | break; |
| 44967 | case OP_RemIntAP: |
| 44968 | Text.Op = PrintName("RemIntAP" ); |
| 44969 | break; |
| 44970 | case OP_RemIntAPS: |
| 44971 | Text.Op = PrintName("RemIntAPS" ); |
| 44972 | break; |
| 44973 | case OP_RemFixedPoint: |
| 44974 | Text.Op = PrintName("RemFixedPoint" ); |
| 44975 | break; |
| 44976 | #endif |
| 44977 | #if defined(GET_EVAL_PROTO) || defined(GET_LINK_PROTO) |
| 44978 | bool emitRemSint8(SourceInfo); |
| 44979 | bool emitRemUint8(SourceInfo); |
| 44980 | bool emitRemSint16(SourceInfo); |
| 44981 | bool emitRemUint16(SourceInfo); |
| 44982 | bool emitRemSint32(SourceInfo); |
| 44983 | bool emitRemUint32(SourceInfo); |
| 44984 | bool emitRemSint64(SourceInfo); |
| 44985 | bool emitRemUint64(SourceInfo); |
| 44986 | bool emitRemIntAP(SourceInfo); |
| 44987 | bool emitRemIntAPS(SourceInfo); |
| 44988 | bool emitRemFixedPoint(SourceInfo); |
| 44989 | #endif |
| 44990 | #if defined(GET_EVAL_PROTO) || defined(GET_LINK_PROTO) |
| 44991 | [[nodiscard]] bool emitRem(PrimType, SourceInfo I); |
| 44992 | #endif |
| 44993 | #if defined(GET_EVAL_IMPL) || defined(GET_LINK_IMPL) |
| 44994 | bool |
| 44995 | #if defined(GET_EVAL_IMPL) |
| 44996 | EvalEmitter |
| 44997 | #else |
| 44998 | ByteCodeEmitter |
| 44999 | #endif |
| 45000 | ::emitRem(PrimType T0, SourceInfo I) { |
| 45001 | switch (T0) { |
| 45002 | case PT_Sint8: |
| 45003 | return emitRemSint8(I); |
| 45004 | case PT_Uint8: |
| 45005 | return emitRemUint8(I); |
| 45006 | case PT_Sint16: |
| 45007 | return emitRemSint16(I); |
| 45008 | case PT_Uint16: |
| 45009 | return emitRemUint16(I); |
| 45010 | case PT_Sint32: |
| 45011 | return emitRemSint32(I); |
| 45012 | case PT_Uint32: |
| 45013 | return emitRemUint32(I); |
| 45014 | case PT_Sint64: |
| 45015 | return emitRemSint64(I); |
| 45016 | case PT_Uint64: |
| 45017 | return emitRemUint64(I); |
| 45018 | case PT_IntAP: |
| 45019 | return emitRemIntAP(I); |
| 45020 | case PT_IntAPS: |
| 45021 | return emitRemIntAPS(I); |
| 45022 | case PT_FixedPoint: |
| 45023 | return emitRemFixedPoint(I); |
| 45024 | default: llvm_unreachable("invalid type: emitRem" ); |
| 45025 | } |
| 45026 | llvm_unreachable("invalid enum value" ); |
| 45027 | } |
| 45028 | #endif |
| 45029 | #ifdef GET_LINK_IMPL |
| 45030 | bool ByteCodeEmitter::emitRemSint8(SourceInfo L) { |
| 45031 | return emitOp<>(OP_RemSint8, L); |
| 45032 | } |
| 45033 | bool ByteCodeEmitter::emitRemUint8(SourceInfo L) { |
| 45034 | return emitOp<>(OP_RemUint8, L); |
| 45035 | } |
| 45036 | bool ByteCodeEmitter::emitRemSint16(SourceInfo L) { |
| 45037 | return emitOp<>(OP_RemSint16, L); |
| 45038 | } |
| 45039 | bool ByteCodeEmitter::emitRemUint16(SourceInfo L) { |
| 45040 | return emitOp<>(OP_RemUint16, L); |
| 45041 | } |
| 45042 | bool ByteCodeEmitter::emitRemSint32(SourceInfo L) { |
| 45043 | return emitOp<>(OP_RemSint32, L); |
| 45044 | } |
| 45045 | bool ByteCodeEmitter::emitRemUint32(SourceInfo L) { |
| 45046 | return emitOp<>(OP_RemUint32, L); |
| 45047 | } |
| 45048 | bool ByteCodeEmitter::emitRemSint64(SourceInfo L) { |
| 45049 | return emitOp<>(OP_RemSint64, L); |
| 45050 | } |
| 45051 | bool ByteCodeEmitter::emitRemUint64(SourceInfo L) { |
| 45052 | return emitOp<>(OP_RemUint64, L); |
| 45053 | } |
| 45054 | bool ByteCodeEmitter::emitRemIntAP(SourceInfo L) { |
| 45055 | return emitOp<>(OP_RemIntAP, L); |
| 45056 | } |
| 45057 | bool ByteCodeEmitter::emitRemIntAPS(SourceInfo L) { |
| 45058 | return emitOp<>(OP_RemIntAPS, L); |
| 45059 | } |
| 45060 | bool ByteCodeEmitter::emitRemFixedPoint(SourceInfo L) { |
| 45061 | return emitOp<>(OP_RemFixedPoint, L); |
| 45062 | } |
| 45063 | #endif |
| 45064 | #ifdef GET_EVAL_IMPL |
| 45065 | bool EvalEmitter::emitRemSint8(SourceInfo L) { |
| 45066 | if (!isActive()) return true; |
| 45067 | CurrentSource = L; |
| 45068 | return Rem<PT_Sint8>(S, CodePtr()); |
| 45069 | } |
| 45070 | bool EvalEmitter::emitRemUint8(SourceInfo L) { |
| 45071 | if (!isActive()) return true; |
| 45072 | CurrentSource = L; |
| 45073 | return Rem<PT_Uint8>(S, CodePtr()); |
| 45074 | } |
| 45075 | bool EvalEmitter::emitRemSint16(SourceInfo L) { |
| 45076 | if (!isActive()) return true; |
| 45077 | CurrentSource = L; |
| 45078 | return Rem<PT_Sint16>(S, CodePtr()); |
| 45079 | } |
| 45080 | bool EvalEmitter::emitRemUint16(SourceInfo L) { |
| 45081 | if (!isActive()) return true; |
| 45082 | CurrentSource = L; |
| 45083 | return Rem<PT_Uint16>(S, CodePtr()); |
| 45084 | } |
| 45085 | bool EvalEmitter::emitRemSint32(SourceInfo L) { |
| 45086 | if (!isActive()) return true; |
| 45087 | CurrentSource = L; |
| 45088 | return Rem<PT_Sint32>(S, CodePtr()); |
| 45089 | } |
| 45090 | bool EvalEmitter::emitRemUint32(SourceInfo L) { |
| 45091 | if (!isActive()) return true; |
| 45092 | CurrentSource = L; |
| 45093 | return Rem<PT_Uint32>(S, CodePtr()); |
| 45094 | } |
| 45095 | bool EvalEmitter::emitRemSint64(SourceInfo L) { |
| 45096 | if (!isActive()) return true; |
| 45097 | CurrentSource = L; |
| 45098 | return Rem<PT_Sint64>(S, CodePtr()); |
| 45099 | } |
| 45100 | bool EvalEmitter::emitRemUint64(SourceInfo L) { |
| 45101 | if (!isActive()) return true; |
| 45102 | CurrentSource = L; |
| 45103 | return Rem<PT_Uint64>(S, CodePtr()); |
| 45104 | } |
| 45105 | bool EvalEmitter::emitRemIntAP(SourceInfo L) { |
| 45106 | if (!isActive()) return true; |
| 45107 | CurrentSource = L; |
| 45108 | return Rem<PT_IntAP>(S, CodePtr()); |
| 45109 | } |
| 45110 | bool EvalEmitter::emitRemIntAPS(SourceInfo L) { |
| 45111 | if (!isActive()) return true; |
| 45112 | CurrentSource = L; |
| 45113 | return Rem<PT_IntAPS>(S, CodePtr()); |
| 45114 | } |
| 45115 | bool EvalEmitter::emitRemFixedPoint(SourceInfo L) { |
| 45116 | if (!isActive()) return true; |
| 45117 | CurrentSource = L; |
| 45118 | return Rem<PT_FixedPoint>(S, CodePtr()); |
| 45119 | } |
| 45120 | #endif |
| 45121 | #ifdef GET_OPCODE_NAMES |
| 45122 | OP_RetSint8, |
| 45123 | OP_RetUint8, |
| 45124 | OP_RetSint16, |
| 45125 | OP_RetUint16, |
| 45126 | OP_RetSint32, |
| 45127 | OP_RetUint32, |
| 45128 | OP_RetSint64, |
| 45129 | OP_RetUint64, |
| 45130 | OP_RetIntAP, |
| 45131 | OP_RetIntAPS, |
| 45132 | OP_RetBool, |
| 45133 | OP_RetFixedPoint, |
| 45134 | OP_RetPtr, |
| 45135 | OP_RetMemberPtr, |
| 45136 | OP_RetFloat, |
| 45137 | OP_RetReflect, |
| 45138 | #endif |
| 45139 | #ifdef GET_INTERPFN_LIST |
| 45140 | &Interp_RetSint8, |
| 45141 | &Interp_RetUint8, |
| 45142 | &Interp_RetSint16, |
| 45143 | &Interp_RetUint16, |
| 45144 | &Interp_RetSint32, |
| 45145 | &Interp_RetUint32, |
| 45146 | &Interp_RetSint64, |
| 45147 | &Interp_RetUint64, |
| 45148 | &Interp_RetIntAP, |
| 45149 | &Interp_RetIntAPS, |
| 45150 | &Interp_RetBool, |
| 45151 | &Interp_RetFixedPoint, |
| 45152 | &Interp_RetPtr, |
| 45153 | &Interp_RetMemberPtr, |
| 45154 | &Interp_RetFloat, |
| 45155 | &Interp_RetReflect, |
| 45156 | #endif |
| 45157 | #ifdef GET_INTERPFN_DISPATCHERS |
| 45158 | PRESERVE_NONE |
| 45159 | static bool Interp_RetSint8(InterpState &S) { |
| 45160 | MUSTTAIL return Ret<PT_Sint8>(S); |
| 45161 | } |
| 45162 | PRESERVE_NONE |
| 45163 | static bool Interp_RetUint8(InterpState &S) { |
| 45164 | MUSTTAIL return Ret<PT_Uint8>(S); |
| 45165 | } |
| 45166 | PRESERVE_NONE |
| 45167 | static bool Interp_RetSint16(InterpState &S) { |
| 45168 | MUSTTAIL return Ret<PT_Sint16>(S); |
| 45169 | } |
| 45170 | PRESERVE_NONE |
| 45171 | static bool Interp_RetUint16(InterpState &S) { |
| 45172 | MUSTTAIL return Ret<PT_Uint16>(S); |
| 45173 | } |
| 45174 | PRESERVE_NONE |
| 45175 | static bool Interp_RetSint32(InterpState &S) { |
| 45176 | MUSTTAIL return Ret<PT_Sint32>(S); |
| 45177 | } |
| 45178 | PRESERVE_NONE |
| 45179 | static bool Interp_RetUint32(InterpState &S) { |
| 45180 | MUSTTAIL return Ret<PT_Uint32>(S); |
| 45181 | } |
| 45182 | PRESERVE_NONE |
| 45183 | static bool Interp_RetSint64(InterpState &S) { |
| 45184 | MUSTTAIL return Ret<PT_Sint64>(S); |
| 45185 | } |
| 45186 | PRESERVE_NONE |
| 45187 | static bool Interp_RetUint64(InterpState &S) { |
| 45188 | MUSTTAIL return Ret<PT_Uint64>(S); |
| 45189 | } |
| 45190 | PRESERVE_NONE |
| 45191 | static bool Interp_RetIntAP(InterpState &S) { |
| 45192 | MUSTTAIL return Ret<PT_IntAP>(S); |
| 45193 | } |
| 45194 | PRESERVE_NONE |
| 45195 | static bool Interp_RetIntAPS(InterpState &S) { |
| 45196 | MUSTTAIL return Ret<PT_IntAPS>(S); |
| 45197 | } |
| 45198 | PRESERVE_NONE |
| 45199 | static bool Interp_RetBool(InterpState &S) { |
| 45200 | MUSTTAIL return Ret<PT_Bool>(S); |
| 45201 | } |
| 45202 | PRESERVE_NONE |
| 45203 | static bool Interp_RetFixedPoint(InterpState &S) { |
| 45204 | MUSTTAIL return Ret<PT_FixedPoint>(S); |
| 45205 | } |
| 45206 | PRESERVE_NONE |
| 45207 | static bool Interp_RetPtr(InterpState &S) { |
| 45208 | MUSTTAIL return Ret<PT_Ptr>(S); |
| 45209 | } |
| 45210 | PRESERVE_NONE |
| 45211 | static bool Interp_RetMemberPtr(InterpState &S) { |
| 45212 | MUSTTAIL return Ret<PT_MemberPtr>(S); |
| 45213 | } |
| 45214 | PRESERVE_NONE |
| 45215 | static bool Interp_RetFloat(InterpState &S) { |
| 45216 | MUSTTAIL return Ret<PT_Float>(S); |
| 45217 | } |
| 45218 | PRESERVE_NONE |
| 45219 | static bool Interp_RetReflect(InterpState &S) { |
| 45220 | MUSTTAIL return Ret<PT_Reflect>(S); |
| 45221 | } |
| 45222 | #endif |
| 45223 | #ifdef GET_DISASM |
| 45224 | case OP_RetSint8: |
| 45225 | Text.Op = PrintName("RetSint8" ); |
| 45226 | break; |
| 45227 | case OP_RetUint8: |
| 45228 | Text.Op = PrintName("RetUint8" ); |
| 45229 | break; |
| 45230 | case OP_RetSint16: |
| 45231 | Text.Op = PrintName("RetSint16" ); |
| 45232 | break; |
| 45233 | case OP_RetUint16: |
| 45234 | Text.Op = PrintName("RetUint16" ); |
| 45235 | break; |
| 45236 | case OP_RetSint32: |
| 45237 | Text.Op = PrintName("RetSint32" ); |
| 45238 | break; |
| 45239 | case OP_RetUint32: |
| 45240 | Text.Op = PrintName("RetUint32" ); |
| 45241 | break; |
| 45242 | case OP_RetSint64: |
| 45243 | Text.Op = PrintName("RetSint64" ); |
| 45244 | break; |
| 45245 | case OP_RetUint64: |
| 45246 | Text.Op = PrintName("RetUint64" ); |
| 45247 | break; |
| 45248 | case OP_RetIntAP: |
| 45249 | Text.Op = PrintName("RetIntAP" ); |
| 45250 | break; |
| 45251 | case OP_RetIntAPS: |
| 45252 | Text.Op = PrintName("RetIntAPS" ); |
| 45253 | break; |
| 45254 | case OP_RetBool: |
| 45255 | Text.Op = PrintName("RetBool" ); |
| 45256 | break; |
| 45257 | case OP_RetFixedPoint: |
| 45258 | Text.Op = PrintName("RetFixedPoint" ); |
| 45259 | break; |
| 45260 | case OP_RetPtr: |
| 45261 | Text.Op = PrintName("RetPtr" ); |
| 45262 | break; |
| 45263 | case OP_RetMemberPtr: |
| 45264 | Text.Op = PrintName("RetMemberPtr" ); |
| 45265 | break; |
| 45266 | case OP_RetFloat: |
| 45267 | Text.Op = PrintName("RetFloat" ); |
| 45268 | break; |
| 45269 | case OP_RetReflect: |
| 45270 | Text.Op = PrintName("RetReflect" ); |
| 45271 | break; |
| 45272 | #endif |
| 45273 | #if defined(GET_EVAL_PROTO) || defined(GET_LINK_PROTO) |
| 45274 | bool emitRetSint8(SourceInfo); |
| 45275 | bool emitRetUint8(SourceInfo); |
| 45276 | bool emitRetSint16(SourceInfo); |
| 45277 | bool emitRetUint16(SourceInfo); |
| 45278 | bool emitRetSint32(SourceInfo); |
| 45279 | bool emitRetUint32(SourceInfo); |
| 45280 | bool emitRetSint64(SourceInfo); |
| 45281 | bool emitRetUint64(SourceInfo); |
| 45282 | bool emitRetIntAP(SourceInfo); |
| 45283 | bool emitRetIntAPS(SourceInfo); |
| 45284 | bool emitRetBool(SourceInfo); |
| 45285 | bool emitRetFixedPoint(SourceInfo); |
| 45286 | bool emitRetPtr(SourceInfo); |
| 45287 | bool emitRetMemberPtr(SourceInfo); |
| 45288 | bool emitRetFloat(SourceInfo); |
| 45289 | bool emitRetReflect(SourceInfo); |
| 45290 | #if defined(GET_EVAL_PROTO) |
| 45291 | template<PrimType> |
| 45292 | bool emitRet(SourceInfo); |
| 45293 | #endif |
| 45294 | #endif |
| 45295 | #if defined(GET_EVAL_PROTO) || defined(GET_LINK_PROTO) |
| 45296 | [[nodiscard]] bool emitRet(PrimType, SourceInfo I); |
| 45297 | #endif |
| 45298 | #if defined(GET_EVAL_IMPL) || defined(GET_LINK_IMPL) |
| 45299 | bool |
| 45300 | #if defined(GET_EVAL_IMPL) |
| 45301 | EvalEmitter |
| 45302 | #else |
| 45303 | ByteCodeEmitter |
| 45304 | #endif |
| 45305 | ::emitRet(PrimType T0, SourceInfo I) { |
| 45306 | switch (T0) { |
| 45307 | case PT_Sint8: |
| 45308 | #ifdef GET_LINK_IMPL |
| 45309 | return emitRetSint8 |
| 45310 | #else |
| 45311 | return emitRet<PT_Sint8> |
| 45312 | #endif |
| 45313 | (I); |
| 45314 | case PT_Uint8: |
| 45315 | #ifdef GET_LINK_IMPL |
| 45316 | return emitRetUint8 |
| 45317 | #else |
| 45318 | return emitRet<PT_Uint8> |
| 45319 | #endif |
| 45320 | (I); |
| 45321 | case PT_Sint16: |
| 45322 | #ifdef GET_LINK_IMPL |
| 45323 | return emitRetSint16 |
| 45324 | #else |
| 45325 | return emitRet<PT_Sint16> |
| 45326 | #endif |
| 45327 | (I); |
| 45328 | case PT_Uint16: |
| 45329 | #ifdef GET_LINK_IMPL |
| 45330 | return emitRetUint16 |
| 45331 | #else |
| 45332 | return emitRet<PT_Uint16> |
| 45333 | #endif |
| 45334 | (I); |
| 45335 | case PT_Sint32: |
| 45336 | #ifdef GET_LINK_IMPL |
| 45337 | return emitRetSint32 |
| 45338 | #else |
| 45339 | return emitRet<PT_Sint32> |
| 45340 | #endif |
| 45341 | (I); |
| 45342 | case PT_Uint32: |
| 45343 | #ifdef GET_LINK_IMPL |
| 45344 | return emitRetUint32 |
| 45345 | #else |
| 45346 | return emitRet<PT_Uint32> |
| 45347 | #endif |
| 45348 | (I); |
| 45349 | case PT_Sint64: |
| 45350 | #ifdef GET_LINK_IMPL |
| 45351 | return emitRetSint64 |
| 45352 | #else |
| 45353 | return emitRet<PT_Sint64> |
| 45354 | #endif |
| 45355 | (I); |
| 45356 | case PT_Uint64: |
| 45357 | #ifdef GET_LINK_IMPL |
| 45358 | return emitRetUint64 |
| 45359 | #else |
| 45360 | return emitRet<PT_Uint64> |
| 45361 | #endif |
| 45362 | (I); |
| 45363 | case PT_IntAP: |
| 45364 | #ifdef GET_LINK_IMPL |
| 45365 | return emitRetIntAP |
| 45366 | #else |
| 45367 | return emitRet<PT_IntAP> |
| 45368 | #endif |
| 45369 | (I); |
| 45370 | case PT_IntAPS: |
| 45371 | #ifdef GET_LINK_IMPL |
| 45372 | return emitRetIntAPS |
| 45373 | #else |
| 45374 | return emitRet<PT_IntAPS> |
| 45375 | #endif |
| 45376 | (I); |
| 45377 | case PT_Bool: |
| 45378 | #ifdef GET_LINK_IMPL |
| 45379 | return emitRetBool |
| 45380 | #else |
| 45381 | return emitRet<PT_Bool> |
| 45382 | #endif |
| 45383 | (I); |
| 45384 | case PT_FixedPoint: |
| 45385 | #ifdef GET_LINK_IMPL |
| 45386 | return emitRetFixedPoint |
| 45387 | #else |
| 45388 | return emitRet<PT_FixedPoint> |
| 45389 | #endif |
| 45390 | (I); |
| 45391 | case PT_Ptr: |
| 45392 | #ifdef GET_LINK_IMPL |
| 45393 | return emitRetPtr |
| 45394 | #else |
| 45395 | return emitRet<PT_Ptr> |
| 45396 | #endif |
| 45397 | (I); |
| 45398 | case PT_MemberPtr: |
| 45399 | #ifdef GET_LINK_IMPL |
| 45400 | return emitRetMemberPtr |
| 45401 | #else |
| 45402 | return emitRet<PT_MemberPtr> |
| 45403 | #endif |
| 45404 | (I); |
| 45405 | case PT_Float: |
| 45406 | #ifdef GET_LINK_IMPL |
| 45407 | return emitRetFloat |
| 45408 | #else |
| 45409 | return emitRet<PT_Float> |
| 45410 | #endif |
| 45411 | (I); |
| 45412 | case PT_Reflect: |
| 45413 | #ifdef GET_LINK_IMPL |
| 45414 | return emitRetReflect |
| 45415 | #else |
| 45416 | return emitRet<PT_Reflect> |
| 45417 | #endif |
| 45418 | (I); |
| 45419 | } |
| 45420 | llvm_unreachable("invalid enum value" ); |
| 45421 | } |
| 45422 | #endif |
| 45423 | #ifdef GET_LINK_IMPL |
| 45424 | bool ByteCodeEmitter::emitRetSint8(SourceInfo L) { |
| 45425 | return emitOp<>(OP_RetSint8, L); |
| 45426 | } |
| 45427 | bool ByteCodeEmitter::emitRetUint8(SourceInfo L) { |
| 45428 | return emitOp<>(OP_RetUint8, L); |
| 45429 | } |
| 45430 | bool ByteCodeEmitter::emitRetSint16(SourceInfo L) { |
| 45431 | return emitOp<>(OP_RetSint16, L); |
| 45432 | } |
| 45433 | bool ByteCodeEmitter::emitRetUint16(SourceInfo L) { |
| 45434 | return emitOp<>(OP_RetUint16, L); |
| 45435 | } |
| 45436 | bool ByteCodeEmitter::emitRetSint32(SourceInfo L) { |
| 45437 | return emitOp<>(OP_RetSint32, L); |
| 45438 | } |
| 45439 | bool ByteCodeEmitter::emitRetUint32(SourceInfo L) { |
| 45440 | return emitOp<>(OP_RetUint32, L); |
| 45441 | } |
| 45442 | bool ByteCodeEmitter::emitRetSint64(SourceInfo L) { |
| 45443 | return emitOp<>(OP_RetSint64, L); |
| 45444 | } |
| 45445 | bool ByteCodeEmitter::emitRetUint64(SourceInfo L) { |
| 45446 | return emitOp<>(OP_RetUint64, L); |
| 45447 | } |
| 45448 | bool ByteCodeEmitter::emitRetIntAP(SourceInfo L) { |
| 45449 | return emitOp<>(OP_RetIntAP, L); |
| 45450 | } |
| 45451 | bool ByteCodeEmitter::emitRetIntAPS(SourceInfo L) { |
| 45452 | return emitOp<>(OP_RetIntAPS, L); |
| 45453 | } |
| 45454 | bool ByteCodeEmitter::emitRetBool(SourceInfo L) { |
| 45455 | return emitOp<>(OP_RetBool, L); |
| 45456 | } |
| 45457 | bool ByteCodeEmitter::emitRetFixedPoint(SourceInfo L) { |
| 45458 | return emitOp<>(OP_RetFixedPoint, L); |
| 45459 | } |
| 45460 | bool ByteCodeEmitter::emitRetPtr(SourceInfo L) { |
| 45461 | return emitOp<>(OP_RetPtr, L); |
| 45462 | } |
| 45463 | bool ByteCodeEmitter::emitRetMemberPtr(SourceInfo L) { |
| 45464 | return emitOp<>(OP_RetMemberPtr, L); |
| 45465 | } |
| 45466 | bool ByteCodeEmitter::emitRetFloat(SourceInfo L) { |
| 45467 | return emitOp<>(OP_RetFloat, L); |
| 45468 | } |
| 45469 | bool ByteCodeEmitter::emitRetReflect(SourceInfo L) { |
| 45470 | return emitOp<>(OP_RetReflect, L); |
| 45471 | } |
| 45472 | #endif |
| 45473 | #ifdef GET_OPCODE_NAMES |
| 45474 | OP_RetValue, |
| 45475 | #endif |
| 45476 | #ifdef GET_INTERPFN_LIST |
| 45477 | &Interp_RetValue, |
| 45478 | #endif |
| 45479 | #ifdef GET_INTERPFN_DISPATCHERS |
| 45480 | PRESERVE_NONE |
| 45481 | static bool Interp_RetValue(InterpState &S) { |
| 45482 | MUSTTAIL return RetValue(S); |
| 45483 | } |
| 45484 | #endif |
| 45485 | #ifdef GET_DISASM |
| 45486 | case OP_RetValue: |
| 45487 | Text.Op = PrintName("RetValue" ); |
| 45488 | break; |
| 45489 | #endif |
| 45490 | #if defined(GET_EVAL_PROTO) || defined(GET_LINK_PROTO) |
| 45491 | bool emitRetValue(SourceInfo); |
| 45492 | #endif |
| 45493 | #ifdef GET_LINK_IMPL |
| 45494 | bool ByteCodeEmitter::emitRetValue(SourceInfo L) { |
| 45495 | return emitOp<>(OP_RetValue, L); |
| 45496 | } |
| 45497 | #endif |
| 45498 | #ifdef GET_OPCODE_NAMES |
| 45499 | OP_RetVoid, |
| 45500 | #endif |
| 45501 | #ifdef GET_INTERPFN_LIST |
| 45502 | &Interp_RetVoid, |
| 45503 | #endif |
| 45504 | #ifdef GET_INTERPFN_DISPATCHERS |
| 45505 | PRESERVE_NONE |
| 45506 | static bool Interp_RetVoid(InterpState &S) { |
| 45507 | MUSTTAIL return RetVoid(S); |
| 45508 | } |
| 45509 | #endif |
| 45510 | #ifdef GET_DISASM |
| 45511 | case OP_RetVoid: |
| 45512 | Text.Op = PrintName("RetVoid" ); |
| 45513 | break; |
| 45514 | #endif |
| 45515 | #if defined(GET_EVAL_PROTO) || defined(GET_LINK_PROTO) |
| 45516 | bool emitRetVoid(SourceInfo); |
| 45517 | #endif |
| 45518 | #ifdef GET_LINK_IMPL |
| 45519 | bool ByteCodeEmitter::emitRetVoid(SourceInfo L) { |
| 45520 | return emitOp<>(OP_RetVoid, L); |
| 45521 | } |
| 45522 | #endif |
| 45523 | #ifdef GET_OPCODE_NAMES |
| 45524 | OP_SetGlobalSint8, |
| 45525 | OP_SetGlobalUint8, |
| 45526 | OP_SetGlobalSint16, |
| 45527 | OP_SetGlobalUint16, |
| 45528 | OP_SetGlobalSint32, |
| 45529 | OP_SetGlobalUint32, |
| 45530 | OP_SetGlobalSint64, |
| 45531 | OP_SetGlobalUint64, |
| 45532 | OP_SetGlobalIntAP, |
| 45533 | OP_SetGlobalIntAPS, |
| 45534 | OP_SetGlobalBool, |
| 45535 | OP_SetGlobalFixedPoint, |
| 45536 | OP_SetGlobalPtr, |
| 45537 | OP_SetGlobalMemberPtr, |
| 45538 | OP_SetGlobalFloat, |
| 45539 | OP_SetGlobalReflect, |
| 45540 | #endif |
| 45541 | #ifdef GET_INTERPFN_LIST |
| 45542 | &Interp_SetGlobalSint8, |
| 45543 | &Interp_SetGlobalUint8, |
| 45544 | &Interp_SetGlobalSint16, |
| 45545 | &Interp_SetGlobalUint16, |
| 45546 | &Interp_SetGlobalSint32, |
| 45547 | &Interp_SetGlobalUint32, |
| 45548 | &Interp_SetGlobalSint64, |
| 45549 | &Interp_SetGlobalUint64, |
| 45550 | &Interp_SetGlobalIntAP, |
| 45551 | &Interp_SetGlobalIntAPS, |
| 45552 | &Interp_SetGlobalBool, |
| 45553 | &Interp_SetGlobalFixedPoint, |
| 45554 | &Interp_SetGlobalPtr, |
| 45555 | &Interp_SetGlobalMemberPtr, |
| 45556 | &Interp_SetGlobalFloat, |
| 45557 | &Interp_SetGlobalReflect, |
| 45558 | #endif |
| 45559 | #ifdef GET_INTERPFN_DISPATCHERS |
| 45560 | PRESERVE_NONE |
| 45561 | static bool Interp_SetGlobalSint8(InterpState &S) { |
| 45562 | { |
| 45563 | CodePtr OpPC = S.PC; |
| 45564 | const auto V0 = ReadArg<uint32_t>(S, S.PC); |
| 45565 | if (!SetGlobal<PT_Sint8>(S, OpPC, V0)) return false; |
| 45566 | } |
| 45567 | #if USE_TAILCALLS |
| 45568 | MUSTTAIL return InterpNext(S); |
| 45569 | #else |
| 45570 | return true; |
| 45571 | #endif |
| 45572 | } |
| 45573 | PRESERVE_NONE |
| 45574 | static bool Interp_SetGlobalUint8(InterpState &S) { |
| 45575 | { |
| 45576 | CodePtr OpPC = S.PC; |
| 45577 | const auto V0 = ReadArg<uint32_t>(S, S.PC); |
| 45578 | if (!SetGlobal<PT_Uint8>(S, OpPC, V0)) return false; |
| 45579 | } |
| 45580 | #if USE_TAILCALLS |
| 45581 | MUSTTAIL return InterpNext(S); |
| 45582 | #else |
| 45583 | return true; |
| 45584 | #endif |
| 45585 | } |
| 45586 | PRESERVE_NONE |
| 45587 | static bool Interp_SetGlobalSint16(InterpState &S) { |
| 45588 | { |
| 45589 | CodePtr OpPC = S.PC; |
| 45590 | const auto V0 = ReadArg<uint32_t>(S, S.PC); |
| 45591 | if (!SetGlobal<PT_Sint16>(S, OpPC, V0)) return false; |
| 45592 | } |
| 45593 | #if USE_TAILCALLS |
| 45594 | MUSTTAIL return InterpNext(S); |
| 45595 | #else |
| 45596 | return true; |
| 45597 | #endif |
| 45598 | } |
| 45599 | PRESERVE_NONE |
| 45600 | static bool Interp_SetGlobalUint16(InterpState &S) { |
| 45601 | { |
| 45602 | CodePtr OpPC = S.PC; |
| 45603 | const auto V0 = ReadArg<uint32_t>(S, S.PC); |
| 45604 | if (!SetGlobal<PT_Uint16>(S, OpPC, V0)) return false; |
| 45605 | } |
| 45606 | #if USE_TAILCALLS |
| 45607 | MUSTTAIL return InterpNext(S); |
| 45608 | #else |
| 45609 | return true; |
| 45610 | #endif |
| 45611 | } |
| 45612 | PRESERVE_NONE |
| 45613 | static bool Interp_SetGlobalSint32(InterpState &S) { |
| 45614 | { |
| 45615 | CodePtr OpPC = S.PC; |
| 45616 | const auto V0 = ReadArg<uint32_t>(S, S.PC); |
| 45617 | if (!SetGlobal<PT_Sint32>(S, OpPC, V0)) return false; |
| 45618 | } |
| 45619 | #if USE_TAILCALLS |
| 45620 | MUSTTAIL return InterpNext(S); |
| 45621 | #else |
| 45622 | return true; |
| 45623 | #endif |
| 45624 | } |
| 45625 | PRESERVE_NONE |
| 45626 | static bool Interp_SetGlobalUint32(InterpState &S) { |
| 45627 | { |
| 45628 | CodePtr OpPC = S.PC; |
| 45629 | const auto V0 = ReadArg<uint32_t>(S, S.PC); |
| 45630 | if (!SetGlobal<PT_Uint32>(S, OpPC, V0)) return false; |
| 45631 | } |
| 45632 | #if USE_TAILCALLS |
| 45633 | MUSTTAIL return InterpNext(S); |
| 45634 | #else |
| 45635 | return true; |
| 45636 | #endif |
| 45637 | } |
| 45638 | PRESERVE_NONE |
| 45639 | static bool Interp_SetGlobalSint64(InterpState &S) { |
| 45640 | { |
| 45641 | CodePtr OpPC = S.PC; |
| 45642 | const auto V0 = ReadArg<uint32_t>(S, S.PC); |
| 45643 | if (!SetGlobal<PT_Sint64>(S, OpPC, V0)) return false; |
| 45644 | } |
| 45645 | #if USE_TAILCALLS |
| 45646 | MUSTTAIL return InterpNext(S); |
| 45647 | #else |
| 45648 | return true; |
| 45649 | #endif |
| 45650 | } |
| 45651 | PRESERVE_NONE |
| 45652 | static bool Interp_SetGlobalUint64(InterpState &S) { |
| 45653 | { |
| 45654 | CodePtr OpPC = S.PC; |
| 45655 | const auto V0 = ReadArg<uint32_t>(S, S.PC); |
| 45656 | if (!SetGlobal<PT_Uint64>(S, OpPC, V0)) return false; |
| 45657 | } |
| 45658 | #if USE_TAILCALLS |
| 45659 | MUSTTAIL return InterpNext(S); |
| 45660 | #else |
| 45661 | return true; |
| 45662 | #endif |
| 45663 | } |
| 45664 | PRESERVE_NONE |
| 45665 | static bool Interp_SetGlobalIntAP(InterpState &S) { |
| 45666 | { |
| 45667 | CodePtr OpPC = S.PC; |
| 45668 | const auto V0 = ReadArg<uint32_t>(S, S.PC); |
| 45669 | if (!SetGlobal<PT_IntAP>(S, OpPC, V0)) return false; |
| 45670 | } |
| 45671 | #if USE_TAILCALLS |
| 45672 | MUSTTAIL return InterpNext(S); |
| 45673 | #else |
| 45674 | return true; |
| 45675 | #endif |
| 45676 | } |
| 45677 | PRESERVE_NONE |
| 45678 | static bool Interp_SetGlobalIntAPS(InterpState &S) { |
| 45679 | { |
| 45680 | CodePtr OpPC = S.PC; |
| 45681 | const auto V0 = ReadArg<uint32_t>(S, S.PC); |
| 45682 | if (!SetGlobal<PT_IntAPS>(S, OpPC, V0)) return false; |
| 45683 | } |
| 45684 | #if USE_TAILCALLS |
| 45685 | MUSTTAIL return InterpNext(S); |
| 45686 | #else |
| 45687 | return true; |
| 45688 | #endif |
| 45689 | } |
| 45690 | PRESERVE_NONE |
| 45691 | static bool Interp_SetGlobalBool(InterpState &S) { |
| 45692 | { |
| 45693 | CodePtr OpPC = S.PC; |
| 45694 | const auto V0 = ReadArg<uint32_t>(S, S.PC); |
| 45695 | if (!SetGlobal<PT_Bool>(S, OpPC, V0)) return false; |
| 45696 | } |
| 45697 | #if USE_TAILCALLS |
| 45698 | MUSTTAIL return InterpNext(S); |
| 45699 | #else |
| 45700 | return true; |
| 45701 | #endif |
| 45702 | } |
| 45703 | PRESERVE_NONE |
| 45704 | static bool Interp_SetGlobalFixedPoint(InterpState &S) { |
| 45705 | { |
| 45706 | CodePtr OpPC = S.PC; |
| 45707 | const auto V0 = ReadArg<uint32_t>(S, S.PC); |
| 45708 | if (!SetGlobal<PT_FixedPoint>(S, OpPC, V0)) return false; |
| 45709 | } |
| 45710 | #if USE_TAILCALLS |
| 45711 | MUSTTAIL return InterpNext(S); |
| 45712 | #else |
| 45713 | return true; |
| 45714 | #endif |
| 45715 | } |
| 45716 | PRESERVE_NONE |
| 45717 | static bool Interp_SetGlobalPtr(InterpState &S) { |
| 45718 | { |
| 45719 | CodePtr OpPC = S.PC; |
| 45720 | const auto V0 = ReadArg<uint32_t>(S, S.PC); |
| 45721 | if (!SetGlobal<PT_Ptr>(S, OpPC, V0)) return false; |
| 45722 | } |
| 45723 | #if USE_TAILCALLS |
| 45724 | MUSTTAIL return InterpNext(S); |
| 45725 | #else |
| 45726 | return true; |
| 45727 | #endif |
| 45728 | } |
| 45729 | PRESERVE_NONE |
| 45730 | static bool Interp_SetGlobalMemberPtr(InterpState &S) { |
| 45731 | { |
| 45732 | CodePtr OpPC = S.PC; |
| 45733 | const auto V0 = ReadArg<uint32_t>(S, S.PC); |
| 45734 | if (!SetGlobal<PT_MemberPtr>(S, OpPC, V0)) return false; |
| 45735 | } |
| 45736 | #if USE_TAILCALLS |
| 45737 | MUSTTAIL return InterpNext(S); |
| 45738 | #else |
| 45739 | return true; |
| 45740 | #endif |
| 45741 | } |
| 45742 | PRESERVE_NONE |
| 45743 | static bool Interp_SetGlobalFloat(InterpState &S) { |
| 45744 | { |
| 45745 | CodePtr OpPC = S.PC; |
| 45746 | const auto V0 = ReadArg<uint32_t>(S, S.PC); |
| 45747 | if (!SetGlobal<PT_Float>(S, OpPC, V0)) return false; |
| 45748 | } |
| 45749 | #if USE_TAILCALLS |
| 45750 | MUSTTAIL return InterpNext(S); |
| 45751 | #else |
| 45752 | return true; |
| 45753 | #endif |
| 45754 | } |
| 45755 | PRESERVE_NONE |
| 45756 | static bool Interp_SetGlobalReflect(InterpState &S) { |
| 45757 | { |
| 45758 | CodePtr OpPC = S.PC; |
| 45759 | const auto V0 = ReadArg<uint32_t>(S, S.PC); |
| 45760 | if (!SetGlobal<PT_Reflect>(S, OpPC, V0)) return false; |
| 45761 | } |
| 45762 | #if USE_TAILCALLS |
| 45763 | MUSTTAIL return InterpNext(S); |
| 45764 | #else |
| 45765 | return true; |
| 45766 | #endif |
| 45767 | } |
| 45768 | #endif |
| 45769 | #ifdef GET_DISASM |
| 45770 | case OP_SetGlobalSint8: |
| 45771 | Text.Op = PrintName("SetGlobalSint8" ); |
| 45772 | Text.Args.push_back(printArg<uint32_t>(PC)); |
| 45773 | break; |
| 45774 | case OP_SetGlobalUint8: |
| 45775 | Text.Op = PrintName("SetGlobalUint8" ); |
| 45776 | Text.Args.push_back(printArg<uint32_t>(PC)); |
| 45777 | break; |
| 45778 | case OP_SetGlobalSint16: |
| 45779 | Text.Op = PrintName("SetGlobalSint16" ); |
| 45780 | Text.Args.push_back(printArg<uint32_t>(PC)); |
| 45781 | break; |
| 45782 | case OP_SetGlobalUint16: |
| 45783 | Text.Op = PrintName("SetGlobalUint16" ); |
| 45784 | Text.Args.push_back(printArg<uint32_t>(PC)); |
| 45785 | break; |
| 45786 | case OP_SetGlobalSint32: |
| 45787 | Text.Op = PrintName("SetGlobalSint32" ); |
| 45788 | Text.Args.push_back(printArg<uint32_t>(PC)); |
| 45789 | break; |
| 45790 | case OP_SetGlobalUint32: |
| 45791 | Text.Op = PrintName("SetGlobalUint32" ); |
| 45792 | Text.Args.push_back(printArg<uint32_t>(PC)); |
| 45793 | break; |
| 45794 | case OP_SetGlobalSint64: |
| 45795 | Text.Op = PrintName("SetGlobalSint64" ); |
| 45796 | Text.Args.push_back(printArg<uint32_t>(PC)); |
| 45797 | break; |
| 45798 | case OP_SetGlobalUint64: |
| 45799 | Text.Op = PrintName("SetGlobalUint64" ); |
| 45800 | Text.Args.push_back(printArg<uint32_t>(PC)); |
| 45801 | break; |
| 45802 | case OP_SetGlobalIntAP: |
| 45803 | Text.Op = PrintName("SetGlobalIntAP" ); |
| 45804 | Text.Args.push_back(printArg<uint32_t>(PC)); |
| 45805 | break; |
| 45806 | case OP_SetGlobalIntAPS: |
| 45807 | Text.Op = PrintName("SetGlobalIntAPS" ); |
| 45808 | Text.Args.push_back(printArg<uint32_t>(PC)); |
| 45809 | break; |
| 45810 | case OP_SetGlobalBool: |
| 45811 | Text.Op = PrintName("SetGlobalBool" ); |
| 45812 | Text.Args.push_back(printArg<uint32_t>(PC)); |
| 45813 | break; |
| 45814 | case OP_SetGlobalFixedPoint: |
| 45815 | Text.Op = PrintName("SetGlobalFixedPoint" ); |
| 45816 | Text.Args.push_back(printArg<uint32_t>(PC)); |
| 45817 | break; |
| 45818 | case OP_SetGlobalPtr: |
| 45819 | Text.Op = PrintName("SetGlobalPtr" ); |
| 45820 | Text.Args.push_back(printArg<uint32_t>(PC)); |
| 45821 | break; |
| 45822 | case OP_SetGlobalMemberPtr: |
| 45823 | Text.Op = PrintName("SetGlobalMemberPtr" ); |
| 45824 | Text.Args.push_back(printArg<uint32_t>(PC)); |
| 45825 | break; |
| 45826 | case OP_SetGlobalFloat: |
| 45827 | Text.Op = PrintName("SetGlobalFloat" ); |
| 45828 | Text.Args.push_back(printArg<uint32_t>(PC)); |
| 45829 | break; |
| 45830 | case OP_SetGlobalReflect: |
| 45831 | Text.Op = PrintName("SetGlobalReflect" ); |
| 45832 | Text.Args.push_back(printArg<uint32_t>(PC)); |
| 45833 | break; |
| 45834 | #endif |
| 45835 | #if defined(GET_EVAL_PROTO) || defined(GET_LINK_PROTO) |
| 45836 | bool emitSetGlobalSint8( uint32_t , SourceInfo); |
| 45837 | bool emitSetGlobalUint8( uint32_t , SourceInfo); |
| 45838 | bool emitSetGlobalSint16( uint32_t , SourceInfo); |
| 45839 | bool emitSetGlobalUint16( uint32_t , SourceInfo); |
| 45840 | bool emitSetGlobalSint32( uint32_t , SourceInfo); |
| 45841 | bool emitSetGlobalUint32( uint32_t , SourceInfo); |
| 45842 | bool emitSetGlobalSint64( uint32_t , SourceInfo); |
| 45843 | bool emitSetGlobalUint64( uint32_t , SourceInfo); |
| 45844 | bool emitSetGlobalIntAP( uint32_t , SourceInfo); |
| 45845 | bool emitSetGlobalIntAPS( uint32_t , SourceInfo); |
| 45846 | bool emitSetGlobalBool( uint32_t , SourceInfo); |
| 45847 | bool emitSetGlobalFixedPoint( uint32_t , SourceInfo); |
| 45848 | bool emitSetGlobalPtr( uint32_t , SourceInfo); |
| 45849 | bool emitSetGlobalMemberPtr( uint32_t , SourceInfo); |
| 45850 | bool emitSetGlobalFloat( uint32_t , SourceInfo); |
| 45851 | bool emitSetGlobalReflect( uint32_t , SourceInfo); |
| 45852 | #endif |
| 45853 | #if defined(GET_EVAL_PROTO) || defined(GET_LINK_PROTO) |
| 45854 | [[nodiscard]] bool emitSetGlobal(PrimType, uint32_t, SourceInfo I); |
| 45855 | #endif |
| 45856 | #if defined(GET_EVAL_IMPL) || defined(GET_LINK_IMPL) |
| 45857 | bool |
| 45858 | #if defined(GET_EVAL_IMPL) |
| 45859 | EvalEmitter |
| 45860 | #else |
| 45861 | ByteCodeEmitter |
| 45862 | #endif |
| 45863 | ::emitSetGlobal(PrimType T0, uint32_t A0, SourceInfo I) { |
| 45864 | switch (T0) { |
| 45865 | case PT_Sint8: |
| 45866 | return emitSetGlobalSint8(A0, I); |
| 45867 | case PT_Uint8: |
| 45868 | return emitSetGlobalUint8(A0, I); |
| 45869 | case PT_Sint16: |
| 45870 | return emitSetGlobalSint16(A0, I); |
| 45871 | case PT_Uint16: |
| 45872 | return emitSetGlobalUint16(A0, I); |
| 45873 | case PT_Sint32: |
| 45874 | return emitSetGlobalSint32(A0, I); |
| 45875 | case PT_Uint32: |
| 45876 | return emitSetGlobalUint32(A0, I); |
| 45877 | case PT_Sint64: |
| 45878 | return emitSetGlobalSint64(A0, I); |
| 45879 | case PT_Uint64: |
| 45880 | return emitSetGlobalUint64(A0, I); |
| 45881 | case PT_IntAP: |
| 45882 | return emitSetGlobalIntAP(A0, I); |
| 45883 | case PT_IntAPS: |
| 45884 | return emitSetGlobalIntAPS(A0, I); |
| 45885 | case PT_Bool: |
| 45886 | return emitSetGlobalBool(A0, I); |
| 45887 | case PT_FixedPoint: |
| 45888 | return emitSetGlobalFixedPoint(A0, I); |
| 45889 | case PT_Ptr: |
| 45890 | return emitSetGlobalPtr(A0, I); |
| 45891 | case PT_MemberPtr: |
| 45892 | return emitSetGlobalMemberPtr(A0, I); |
| 45893 | case PT_Float: |
| 45894 | return emitSetGlobalFloat(A0, I); |
| 45895 | case PT_Reflect: |
| 45896 | return emitSetGlobalReflect(A0, I); |
| 45897 | } |
| 45898 | llvm_unreachable("invalid enum value" ); |
| 45899 | } |
| 45900 | #endif |
| 45901 | #ifdef GET_LINK_IMPL |
| 45902 | bool ByteCodeEmitter::emitSetGlobalSint8( uint32_t A0, SourceInfo L) { |
| 45903 | return emitOp<uint32_t>(OP_SetGlobalSint8, A0, L); |
| 45904 | } |
| 45905 | bool ByteCodeEmitter::emitSetGlobalUint8( uint32_t A0, SourceInfo L) { |
| 45906 | return emitOp<uint32_t>(OP_SetGlobalUint8, A0, L); |
| 45907 | } |
| 45908 | bool ByteCodeEmitter::emitSetGlobalSint16( uint32_t A0, SourceInfo L) { |
| 45909 | return emitOp<uint32_t>(OP_SetGlobalSint16, A0, L); |
| 45910 | } |
| 45911 | bool ByteCodeEmitter::emitSetGlobalUint16( uint32_t A0, SourceInfo L) { |
| 45912 | return emitOp<uint32_t>(OP_SetGlobalUint16, A0, L); |
| 45913 | } |
| 45914 | bool ByteCodeEmitter::emitSetGlobalSint32( uint32_t A0, SourceInfo L) { |
| 45915 | return emitOp<uint32_t>(OP_SetGlobalSint32, A0, L); |
| 45916 | } |
| 45917 | bool ByteCodeEmitter::emitSetGlobalUint32( uint32_t A0, SourceInfo L) { |
| 45918 | return emitOp<uint32_t>(OP_SetGlobalUint32, A0, L); |
| 45919 | } |
| 45920 | bool ByteCodeEmitter::emitSetGlobalSint64( uint32_t A0, SourceInfo L) { |
| 45921 | return emitOp<uint32_t>(OP_SetGlobalSint64, A0, L); |
| 45922 | } |
| 45923 | bool ByteCodeEmitter::emitSetGlobalUint64( uint32_t A0, SourceInfo L) { |
| 45924 | return emitOp<uint32_t>(OP_SetGlobalUint64, A0, L); |
| 45925 | } |
| 45926 | bool ByteCodeEmitter::emitSetGlobalIntAP( uint32_t A0, SourceInfo L) { |
| 45927 | return emitOp<uint32_t>(OP_SetGlobalIntAP, A0, L); |
| 45928 | } |
| 45929 | bool ByteCodeEmitter::emitSetGlobalIntAPS( uint32_t A0, SourceInfo L) { |
| 45930 | return emitOp<uint32_t>(OP_SetGlobalIntAPS, A0, L); |
| 45931 | } |
| 45932 | bool ByteCodeEmitter::emitSetGlobalBool( uint32_t A0, SourceInfo L) { |
| 45933 | return emitOp<uint32_t>(OP_SetGlobalBool, A0, L); |
| 45934 | } |
| 45935 | bool ByteCodeEmitter::emitSetGlobalFixedPoint( uint32_t A0, SourceInfo L) { |
| 45936 | return emitOp<uint32_t>(OP_SetGlobalFixedPoint, A0, L); |
| 45937 | } |
| 45938 | bool ByteCodeEmitter::emitSetGlobalPtr( uint32_t A0, SourceInfo L) { |
| 45939 | return emitOp<uint32_t>(OP_SetGlobalPtr, A0, L); |
| 45940 | } |
| 45941 | bool ByteCodeEmitter::emitSetGlobalMemberPtr( uint32_t A0, SourceInfo L) { |
| 45942 | return emitOp<uint32_t>(OP_SetGlobalMemberPtr, A0, L); |
| 45943 | } |
| 45944 | bool ByteCodeEmitter::emitSetGlobalFloat( uint32_t A0, SourceInfo L) { |
| 45945 | return emitOp<uint32_t>(OP_SetGlobalFloat, A0, L); |
| 45946 | } |
| 45947 | bool ByteCodeEmitter::emitSetGlobalReflect( uint32_t A0, SourceInfo L) { |
| 45948 | return emitOp<uint32_t>(OP_SetGlobalReflect, A0, L); |
| 45949 | } |
| 45950 | #endif |
| 45951 | #ifdef GET_EVAL_IMPL |
| 45952 | bool EvalEmitter::emitSetGlobalSint8( uint32_t A0, SourceInfo L) { |
| 45953 | if (!isActive()) return true; |
| 45954 | CurrentSource = L; |
| 45955 | return SetGlobal<PT_Sint8>(S, CodePtr(), A0); |
| 45956 | } |
| 45957 | bool EvalEmitter::emitSetGlobalUint8( uint32_t A0, SourceInfo L) { |
| 45958 | if (!isActive()) return true; |
| 45959 | CurrentSource = L; |
| 45960 | return SetGlobal<PT_Uint8>(S, CodePtr(), A0); |
| 45961 | } |
| 45962 | bool EvalEmitter::emitSetGlobalSint16( uint32_t A0, SourceInfo L) { |
| 45963 | if (!isActive()) return true; |
| 45964 | CurrentSource = L; |
| 45965 | return SetGlobal<PT_Sint16>(S, CodePtr(), A0); |
| 45966 | } |
| 45967 | bool EvalEmitter::emitSetGlobalUint16( uint32_t A0, SourceInfo L) { |
| 45968 | if (!isActive()) return true; |
| 45969 | CurrentSource = L; |
| 45970 | return SetGlobal<PT_Uint16>(S, CodePtr(), A0); |
| 45971 | } |
| 45972 | bool EvalEmitter::emitSetGlobalSint32( uint32_t A0, SourceInfo L) { |
| 45973 | if (!isActive()) return true; |
| 45974 | CurrentSource = L; |
| 45975 | return SetGlobal<PT_Sint32>(S, CodePtr(), A0); |
| 45976 | } |
| 45977 | bool EvalEmitter::emitSetGlobalUint32( uint32_t A0, SourceInfo L) { |
| 45978 | if (!isActive()) return true; |
| 45979 | CurrentSource = L; |
| 45980 | return SetGlobal<PT_Uint32>(S, CodePtr(), A0); |
| 45981 | } |
| 45982 | bool EvalEmitter::emitSetGlobalSint64( uint32_t A0, SourceInfo L) { |
| 45983 | if (!isActive()) return true; |
| 45984 | CurrentSource = L; |
| 45985 | return SetGlobal<PT_Sint64>(S, CodePtr(), A0); |
| 45986 | } |
| 45987 | bool EvalEmitter::emitSetGlobalUint64( uint32_t A0, SourceInfo L) { |
| 45988 | if (!isActive()) return true; |
| 45989 | CurrentSource = L; |
| 45990 | return SetGlobal<PT_Uint64>(S, CodePtr(), A0); |
| 45991 | } |
| 45992 | bool EvalEmitter::emitSetGlobalIntAP( uint32_t A0, SourceInfo L) { |
| 45993 | if (!isActive()) return true; |
| 45994 | CurrentSource = L; |
| 45995 | return SetGlobal<PT_IntAP>(S, CodePtr(), A0); |
| 45996 | } |
| 45997 | bool EvalEmitter::emitSetGlobalIntAPS( uint32_t A0, SourceInfo L) { |
| 45998 | if (!isActive()) return true; |
| 45999 | CurrentSource = L; |
| 46000 | return SetGlobal<PT_IntAPS>(S, CodePtr(), A0); |
| 46001 | } |
| 46002 | bool EvalEmitter::emitSetGlobalBool( uint32_t A0, SourceInfo L) { |
| 46003 | if (!isActive()) return true; |
| 46004 | CurrentSource = L; |
| 46005 | return SetGlobal<PT_Bool>(S, CodePtr(), A0); |
| 46006 | } |
| 46007 | bool EvalEmitter::emitSetGlobalFixedPoint( uint32_t A0, SourceInfo L) { |
| 46008 | if (!isActive()) return true; |
| 46009 | CurrentSource = L; |
| 46010 | return SetGlobal<PT_FixedPoint>(S, CodePtr(), A0); |
| 46011 | } |
| 46012 | bool EvalEmitter::emitSetGlobalPtr( uint32_t A0, SourceInfo L) { |
| 46013 | if (!isActive()) return true; |
| 46014 | CurrentSource = L; |
| 46015 | return SetGlobal<PT_Ptr>(S, CodePtr(), A0); |
| 46016 | } |
| 46017 | bool EvalEmitter::emitSetGlobalMemberPtr( uint32_t A0, SourceInfo L) { |
| 46018 | if (!isActive()) return true; |
| 46019 | CurrentSource = L; |
| 46020 | return SetGlobal<PT_MemberPtr>(S, CodePtr(), A0); |
| 46021 | } |
| 46022 | bool EvalEmitter::emitSetGlobalFloat( uint32_t A0, SourceInfo L) { |
| 46023 | if (!isActive()) return true; |
| 46024 | CurrentSource = L; |
| 46025 | return SetGlobal<PT_Float>(S, CodePtr(), A0); |
| 46026 | } |
| 46027 | bool EvalEmitter::emitSetGlobalReflect( uint32_t A0, SourceInfo L) { |
| 46028 | if (!isActive()) return true; |
| 46029 | CurrentSource = L; |
| 46030 | return SetGlobal<PT_Reflect>(S, CodePtr(), A0); |
| 46031 | } |
| 46032 | #endif |
| 46033 | #ifdef GET_OPCODE_NAMES |
| 46034 | OP_SetLocalSint8, |
| 46035 | OP_SetLocalUint8, |
| 46036 | OP_SetLocalSint16, |
| 46037 | OP_SetLocalUint16, |
| 46038 | OP_SetLocalSint32, |
| 46039 | OP_SetLocalUint32, |
| 46040 | OP_SetLocalSint64, |
| 46041 | OP_SetLocalUint64, |
| 46042 | OP_SetLocalIntAP, |
| 46043 | OP_SetLocalIntAPS, |
| 46044 | OP_SetLocalBool, |
| 46045 | OP_SetLocalFixedPoint, |
| 46046 | OP_SetLocalPtr, |
| 46047 | OP_SetLocalMemberPtr, |
| 46048 | OP_SetLocalFloat, |
| 46049 | OP_SetLocalReflect, |
| 46050 | #endif |
| 46051 | #ifdef GET_INTERPFN_LIST |
| 46052 | &Interp_SetLocalSint8, |
| 46053 | &Interp_SetLocalUint8, |
| 46054 | &Interp_SetLocalSint16, |
| 46055 | &Interp_SetLocalUint16, |
| 46056 | &Interp_SetLocalSint32, |
| 46057 | &Interp_SetLocalUint32, |
| 46058 | &Interp_SetLocalSint64, |
| 46059 | &Interp_SetLocalUint64, |
| 46060 | &Interp_SetLocalIntAP, |
| 46061 | &Interp_SetLocalIntAPS, |
| 46062 | &Interp_SetLocalBool, |
| 46063 | &Interp_SetLocalFixedPoint, |
| 46064 | &Interp_SetLocalPtr, |
| 46065 | &Interp_SetLocalMemberPtr, |
| 46066 | &Interp_SetLocalFloat, |
| 46067 | &Interp_SetLocalReflect, |
| 46068 | #endif |
| 46069 | #ifdef GET_INTERPFN_DISPATCHERS |
| 46070 | PRESERVE_NONE |
| 46071 | static bool Interp_SetLocalSint8(InterpState &S) { |
| 46072 | { |
| 46073 | const auto V0 = ReadArg<uint32_t>(S, S.PC); |
| 46074 | SetLocal<PT_Sint8>(S, V0); |
| 46075 | } |
| 46076 | #if USE_TAILCALLS |
| 46077 | MUSTTAIL return InterpNext(S); |
| 46078 | #else |
| 46079 | return true; |
| 46080 | #endif |
| 46081 | } |
| 46082 | PRESERVE_NONE |
| 46083 | static bool Interp_SetLocalUint8(InterpState &S) { |
| 46084 | { |
| 46085 | const auto V0 = ReadArg<uint32_t>(S, S.PC); |
| 46086 | SetLocal<PT_Uint8>(S, V0); |
| 46087 | } |
| 46088 | #if USE_TAILCALLS |
| 46089 | MUSTTAIL return InterpNext(S); |
| 46090 | #else |
| 46091 | return true; |
| 46092 | #endif |
| 46093 | } |
| 46094 | PRESERVE_NONE |
| 46095 | static bool Interp_SetLocalSint16(InterpState &S) { |
| 46096 | { |
| 46097 | const auto V0 = ReadArg<uint32_t>(S, S.PC); |
| 46098 | SetLocal<PT_Sint16>(S, V0); |
| 46099 | } |
| 46100 | #if USE_TAILCALLS |
| 46101 | MUSTTAIL return InterpNext(S); |
| 46102 | #else |
| 46103 | return true; |
| 46104 | #endif |
| 46105 | } |
| 46106 | PRESERVE_NONE |
| 46107 | static bool Interp_SetLocalUint16(InterpState &S) { |
| 46108 | { |
| 46109 | const auto V0 = ReadArg<uint32_t>(S, S.PC); |
| 46110 | SetLocal<PT_Uint16>(S, V0); |
| 46111 | } |
| 46112 | #if USE_TAILCALLS |
| 46113 | MUSTTAIL return InterpNext(S); |
| 46114 | #else |
| 46115 | return true; |
| 46116 | #endif |
| 46117 | } |
| 46118 | PRESERVE_NONE |
| 46119 | static bool Interp_SetLocalSint32(InterpState &S) { |
| 46120 | { |
| 46121 | const auto V0 = ReadArg<uint32_t>(S, S.PC); |
| 46122 | SetLocal<PT_Sint32>(S, V0); |
| 46123 | } |
| 46124 | #if USE_TAILCALLS |
| 46125 | MUSTTAIL return InterpNext(S); |
| 46126 | #else |
| 46127 | return true; |
| 46128 | #endif |
| 46129 | } |
| 46130 | PRESERVE_NONE |
| 46131 | static bool Interp_SetLocalUint32(InterpState &S) { |
| 46132 | { |
| 46133 | const auto V0 = ReadArg<uint32_t>(S, S.PC); |
| 46134 | SetLocal<PT_Uint32>(S, V0); |
| 46135 | } |
| 46136 | #if USE_TAILCALLS |
| 46137 | MUSTTAIL return InterpNext(S); |
| 46138 | #else |
| 46139 | return true; |
| 46140 | #endif |
| 46141 | } |
| 46142 | PRESERVE_NONE |
| 46143 | static bool Interp_SetLocalSint64(InterpState &S) { |
| 46144 | { |
| 46145 | const auto V0 = ReadArg<uint32_t>(S, S.PC); |
| 46146 | SetLocal<PT_Sint64>(S, V0); |
| 46147 | } |
| 46148 | #if USE_TAILCALLS |
| 46149 | MUSTTAIL return InterpNext(S); |
| 46150 | #else |
| 46151 | return true; |
| 46152 | #endif |
| 46153 | } |
| 46154 | PRESERVE_NONE |
| 46155 | static bool Interp_SetLocalUint64(InterpState &S) { |
| 46156 | { |
| 46157 | const auto V0 = ReadArg<uint32_t>(S, S.PC); |
| 46158 | SetLocal<PT_Uint64>(S, V0); |
| 46159 | } |
| 46160 | #if USE_TAILCALLS |
| 46161 | MUSTTAIL return InterpNext(S); |
| 46162 | #else |
| 46163 | return true; |
| 46164 | #endif |
| 46165 | } |
| 46166 | PRESERVE_NONE |
| 46167 | static bool Interp_SetLocalIntAP(InterpState &S) { |
| 46168 | { |
| 46169 | const auto V0 = ReadArg<uint32_t>(S, S.PC); |
| 46170 | SetLocal<PT_IntAP>(S, V0); |
| 46171 | } |
| 46172 | #if USE_TAILCALLS |
| 46173 | MUSTTAIL return InterpNext(S); |
| 46174 | #else |
| 46175 | return true; |
| 46176 | #endif |
| 46177 | } |
| 46178 | PRESERVE_NONE |
| 46179 | static bool Interp_SetLocalIntAPS(InterpState &S) { |
| 46180 | { |
| 46181 | const auto V0 = ReadArg<uint32_t>(S, S.PC); |
| 46182 | SetLocal<PT_IntAPS>(S, V0); |
| 46183 | } |
| 46184 | #if USE_TAILCALLS |
| 46185 | MUSTTAIL return InterpNext(S); |
| 46186 | #else |
| 46187 | return true; |
| 46188 | #endif |
| 46189 | } |
| 46190 | PRESERVE_NONE |
| 46191 | static bool Interp_SetLocalBool(InterpState &S) { |
| 46192 | { |
| 46193 | const auto V0 = ReadArg<uint32_t>(S, S.PC); |
| 46194 | SetLocal<PT_Bool>(S, V0); |
| 46195 | } |
| 46196 | #if USE_TAILCALLS |
| 46197 | MUSTTAIL return InterpNext(S); |
| 46198 | #else |
| 46199 | return true; |
| 46200 | #endif |
| 46201 | } |
| 46202 | PRESERVE_NONE |
| 46203 | static bool Interp_SetLocalFixedPoint(InterpState &S) { |
| 46204 | { |
| 46205 | const auto V0 = ReadArg<uint32_t>(S, S.PC); |
| 46206 | SetLocal<PT_FixedPoint>(S, V0); |
| 46207 | } |
| 46208 | #if USE_TAILCALLS |
| 46209 | MUSTTAIL return InterpNext(S); |
| 46210 | #else |
| 46211 | return true; |
| 46212 | #endif |
| 46213 | } |
| 46214 | PRESERVE_NONE |
| 46215 | static bool Interp_SetLocalPtr(InterpState &S) { |
| 46216 | { |
| 46217 | const auto V0 = ReadArg<uint32_t>(S, S.PC); |
| 46218 | SetLocal<PT_Ptr>(S, V0); |
| 46219 | } |
| 46220 | #if USE_TAILCALLS |
| 46221 | MUSTTAIL return InterpNext(S); |
| 46222 | #else |
| 46223 | return true; |
| 46224 | #endif |
| 46225 | } |
| 46226 | PRESERVE_NONE |
| 46227 | static bool Interp_SetLocalMemberPtr(InterpState &S) { |
| 46228 | { |
| 46229 | const auto V0 = ReadArg<uint32_t>(S, S.PC); |
| 46230 | SetLocal<PT_MemberPtr>(S, V0); |
| 46231 | } |
| 46232 | #if USE_TAILCALLS |
| 46233 | MUSTTAIL return InterpNext(S); |
| 46234 | #else |
| 46235 | return true; |
| 46236 | #endif |
| 46237 | } |
| 46238 | PRESERVE_NONE |
| 46239 | static bool Interp_SetLocalFloat(InterpState &S) { |
| 46240 | { |
| 46241 | const auto V0 = ReadArg<uint32_t>(S, S.PC); |
| 46242 | SetLocal<PT_Float>(S, V0); |
| 46243 | } |
| 46244 | #if USE_TAILCALLS |
| 46245 | MUSTTAIL return InterpNext(S); |
| 46246 | #else |
| 46247 | return true; |
| 46248 | #endif |
| 46249 | } |
| 46250 | PRESERVE_NONE |
| 46251 | static bool Interp_SetLocalReflect(InterpState &S) { |
| 46252 | { |
| 46253 | const auto V0 = ReadArg<uint32_t>(S, S.PC); |
| 46254 | SetLocal<PT_Reflect>(S, V0); |
| 46255 | } |
| 46256 | #if USE_TAILCALLS |
| 46257 | MUSTTAIL return InterpNext(S); |
| 46258 | #else |
| 46259 | return true; |
| 46260 | #endif |
| 46261 | } |
| 46262 | #endif |
| 46263 | #ifdef GET_DISASM |
| 46264 | case OP_SetLocalSint8: |
| 46265 | Text.Op = PrintName("SetLocalSint8" ); |
| 46266 | Text.Args.push_back(printArg<uint32_t>(PC)); |
| 46267 | break; |
| 46268 | case OP_SetLocalUint8: |
| 46269 | Text.Op = PrintName("SetLocalUint8" ); |
| 46270 | Text.Args.push_back(printArg<uint32_t>(PC)); |
| 46271 | break; |
| 46272 | case OP_SetLocalSint16: |
| 46273 | Text.Op = PrintName("SetLocalSint16" ); |
| 46274 | Text.Args.push_back(printArg<uint32_t>(PC)); |
| 46275 | break; |
| 46276 | case OP_SetLocalUint16: |
| 46277 | Text.Op = PrintName("SetLocalUint16" ); |
| 46278 | Text.Args.push_back(printArg<uint32_t>(PC)); |
| 46279 | break; |
| 46280 | case OP_SetLocalSint32: |
| 46281 | Text.Op = PrintName("SetLocalSint32" ); |
| 46282 | Text.Args.push_back(printArg<uint32_t>(PC)); |
| 46283 | break; |
| 46284 | case OP_SetLocalUint32: |
| 46285 | Text.Op = PrintName("SetLocalUint32" ); |
| 46286 | Text.Args.push_back(printArg<uint32_t>(PC)); |
| 46287 | break; |
| 46288 | case OP_SetLocalSint64: |
| 46289 | Text.Op = PrintName("SetLocalSint64" ); |
| 46290 | Text.Args.push_back(printArg<uint32_t>(PC)); |
| 46291 | break; |
| 46292 | case OP_SetLocalUint64: |
| 46293 | Text.Op = PrintName("SetLocalUint64" ); |
| 46294 | Text.Args.push_back(printArg<uint32_t>(PC)); |
| 46295 | break; |
| 46296 | case OP_SetLocalIntAP: |
| 46297 | Text.Op = PrintName("SetLocalIntAP" ); |
| 46298 | Text.Args.push_back(printArg<uint32_t>(PC)); |
| 46299 | break; |
| 46300 | case OP_SetLocalIntAPS: |
| 46301 | Text.Op = PrintName("SetLocalIntAPS" ); |
| 46302 | Text.Args.push_back(printArg<uint32_t>(PC)); |
| 46303 | break; |
| 46304 | case OP_SetLocalBool: |
| 46305 | Text.Op = PrintName("SetLocalBool" ); |
| 46306 | Text.Args.push_back(printArg<uint32_t>(PC)); |
| 46307 | break; |
| 46308 | case OP_SetLocalFixedPoint: |
| 46309 | Text.Op = PrintName("SetLocalFixedPoint" ); |
| 46310 | Text.Args.push_back(printArg<uint32_t>(PC)); |
| 46311 | break; |
| 46312 | case OP_SetLocalPtr: |
| 46313 | Text.Op = PrintName("SetLocalPtr" ); |
| 46314 | Text.Args.push_back(printArg<uint32_t>(PC)); |
| 46315 | break; |
| 46316 | case OP_SetLocalMemberPtr: |
| 46317 | Text.Op = PrintName("SetLocalMemberPtr" ); |
| 46318 | Text.Args.push_back(printArg<uint32_t>(PC)); |
| 46319 | break; |
| 46320 | case OP_SetLocalFloat: |
| 46321 | Text.Op = PrintName("SetLocalFloat" ); |
| 46322 | Text.Args.push_back(printArg<uint32_t>(PC)); |
| 46323 | break; |
| 46324 | case OP_SetLocalReflect: |
| 46325 | Text.Op = PrintName("SetLocalReflect" ); |
| 46326 | Text.Args.push_back(printArg<uint32_t>(PC)); |
| 46327 | break; |
| 46328 | #endif |
| 46329 | #if defined(GET_EVAL_PROTO) || defined(GET_LINK_PROTO) |
| 46330 | bool emitSetLocalSint8( uint32_t , SourceInfo); |
| 46331 | bool emitSetLocalUint8( uint32_t , SourceInfo); |
| 46332 | bool emitSetLocalSint16( uint32_t , SourceInfo); |
| 46333 | bool emitSetLocalUint16( uint32_t , SourceInfo); |
| 46334 | bool emitSetLocalSint32( uint32_t , SourceInfo); |
| 46335 | bool emitSetLocalUint32( uint32_t , SourceInfo); |
| 46336 | bool emitSetLocalSint64( uint32_t , SourceInfo); |
| 46337 | bool emitSetLocalUint64( uint32_t , SourceInfo); |
| 46338 | bool emitSetLocalIntAP( uint32_t , SourceInfo); |
| 46339 | bool emitSetLocalIntAPS( uint32_t , SourceInfo); |
| 46340 | bool emitSetLocalBool( uint32_t , SourceInfo); |
| 46341 | bool emitSetLocalFixedPoint( uint32_t , SourceInfo); |
| 46342 | bool emitSetLocalPtr( uint32_t , SourceInfo); |
| 46343 | bool emitSetLocalMemberPtr( uint32_t , SourceInfo); |
| 46344 | bool emitSetLocalFloat( uint32_t , SourceInfo); |
| 46345 | bool emitSetLocalReflect( uint32_t , SourceInfo); |
| 46346 | #if defined(GET_EVAL_PROTO) |
| 46347 | template<PrimType> |
| 46348 | bool emitSetLocal(uint32_t, SourceInfo); |
| 46349 | #endif |
| 46350 | #endif |
| 46351 | #if defined(GET_EVAL_PROTO) || defined(GET_LINK_PROTO) |
| 46352 | [[nodiscard]] bool emitSetLocal(PrimType, uint32_t, SourceInfo I); |
| 46353 | #endif |
| 46354 | #if defined(GET_EVAL_IMPL) || defined(GET_LINK_IMPL) |
| 46355 | bool |
| 46356 | #if defined(GET_EVAL_IMPL) |
| 46357 | EvalEmitter |
| 46358 | #else |
| 46359 | ByteCodeEmitter |
| 46360 | #endif |
| 46361 | ::emitSetLocal(PrimType T0, uint32_t A0, SourceInfo I) { |
| 46362 | switch (T0) { |
| 46363 | case PT_Sint8: |
| 46364 | #ifdef GET_LINK_IMPL |
| 46365 | return emitSetLocalSint8 |
| 46366 | #else |
| 46367 | return emitSetLocal<PT_Sint8> |
| 46368 | #endif |
| 46369 | (A0, I); |
| 46370 | case PT_Uint8: |
| 46371 | #ifdef GET_LINK_IMPL |
| 46372 | return emitSetLocalUint8 |
| 46373 | #else |
| 46374 | return emitSetLocal<PT_Uint8> |
| 46375 | #endif |
| 46376 | (A0, I); |
| 46377 | case PT_Sint16: |
| 46378 | #ifdef GET_LINK_IMPL |
| 46379 | return emitSetLocalSint16 |
| 46380 | #else |
| 46381 | return emitSetLocal<PT_Sint16> |
| 46382 | #endif |
| 46383 | (A0, I); |
| 46384 | case PT_Uint16: |
| 46385 | #ifdef GET_LINK_IMPL |
| 46386 | return emitSetLocalUint16 |
| 46387 | #else |
| 46388 | return emitSetLocal<PT_Uint16> |
| 46389 | #endif |
| 46390 | (A0, I); |
| 46391 | case PT_Sint32: |
| 46392 | #ifdef GET_LINK_IMPL |
| 46393 | return emitSetLocalSint32 |
| 46394 | #else |
| 46395 | return emitSetLocal<PT_Sint32> |
| 46396 | #endif |
| 46397 | (A0, I); |
| 46398 | case PT_Uint32: |
| 46399 | #ifdef GET_LINK_IMPL |
| 46400 | return emitSetLocalUint32 |
| 46401 | #else |
| 46402 | return emitSetLocal<PT_Uint32> |
| 46403 | #endif |
| 46404 | (A0, I); |
| 46405 | case PT_Sint64: |
| 46406 | #ifdef GET_LINK_IMPL |
| 46407 | return emitSetLocalSint64 |
| 46408 | #else |
| 46409 | return emitSetLocal<PT_Sint64> |
| 46410 | #endif |
| 46411 | (A0, I); |
| 46412 | case PT_Uint64: |
| 46413 | #ifdef GET_LINK_IMPL |
| 46414 | return emitSetLocalUint64 |
| 46415 | #else |
| 46416 | return emitSetLocal<PT_Uint64> |
| 46417 | #endif |
| 46418 | (A0, I); |
| 46419 | case PT_IntAP: |
| 46420 | #ifdef GET_LINK_IMPL |
| 46421 | return emitSetLocalIntAP |
| 46422 | #else |
| 46423 | return emitSetLocal<PT_IntAP> |
| 46424 | #endif |
| 46425 | (A0, I); |
| 46426 | case PT_IntAPS: |
| 46427 | #ifdef GET_LINK_IMPL |
| 46428 | return emitSetLocalIntAPS |
| 46429 | #else |
| 46430 | return emitSetLocal<PT_IntAPS> |
| 46431 | #endif |
| 46432 | (A0, I); |
| 46433 | case PT_Bool: |
| 46434 | #ifdef GET_LINK_IMPL |
| 46435 | return emitSetLocalBool |
| 46436 | #else |
| 46437 | return emitSetLocal<PT_Bool> |
| 46438 | #endif |
| 46439 | (A0, I); |
| 46440 | case PT_FixedPoint: |
| 46441 | #ifdef GET_LINK_IMPL |
| 46442 | return emitSetLocalFixedPoint |
| 46443 | #else |
| 46444 | return emitSetLocal<PT_FixedPoint> |
| 46445 | #endif |
| 46446 | (A0, I); |
| 46447 | case PT_Ptr: |
| 46448 | #ifdef GET_LINK_IMPL |
| 46449 | return emitSetLocalPtr |
| 46450 | #else |
| 46451 | return emitSetLocal<PT_Ptr> |
| 46452 | #endif |
| 46453 | (A0, I); |
| 46454 | case PT_MemberPtr: |
| 46455 | #ifdef GET_LINK_IMPL |
| 46456 | return emitSetLocalMemberPtr |
| 46457 | #else |
| 46458 | return emitSetLocal<PT_MemberPtr> |
| 46459 | #endif |
| 46460 | (A0, I); |
| 46461 | case PT_Float: |
| 46462 | #ifdef GET_LINK_IMPL |
| 46463 | return emitSetLocalFloat |
| 46464 | #else |
| 46465 | return emitSetLocal<PT_Float> |
| 46466 | #endif |
| 46467 | (A0, I); |
| 46468 | case PT_Reflect: |
| 46469 | #ifdef GET_LINK_IMPL |
| 46470 | return emitSetLocalReflect |
| 46471 | #else |
| 46472 | return emitSetLocal<PT_Reflect> |
| 46473 | #endif |
| 46474 | (A0, I); |
| 46475 | } |
| 46476 | llvm_unreachable("invalid enum value" ); |
| 46477 | } |
| 46478 | #endif |
| 46479 | #ifdef GET_LINK_IMPL |
| 46480 | bool ByteCodeEmitter::emitSetLocalSint8( uint32_t A0, SourceInfo L) { |
| 46481 | return emitOp<uint32_t>(OP_SetLocalSint8, A0, L); |
| 46482 | } |
| 46483 | bool ByteCodeEmitter::emitSetLocalUint8( uint32_t A0, SourceInfo L) { |
| 46484 | return emitOp<uint32_t>(OP_SetLocalUint8, A0, L); |
| 46485 | } |
| 46486 | bool ByteCodeEmitter::emitSetLocalSint16( uint32_t A0, SourceInfo L) { |
| 46487 | return emitOp<uint32_t>(OP_SetLocalSint16, A0, L); |
| 46488 | } |
| 46489 | bool ByteCodeEmitter::emitSetLocalUint16( uint32_t A0, SourceInfo L) { |
| 46490 | return emitOp<uint32_t>(OP_SetLocalUint16, A0, L); |
| 46491 | } |
| 46492 | bool ByteCodeEmitter::emitSetLocalSint32( uint32_t A0, SourceInfo L) { |
| 46493 | return emitOp<uint32_t>(OP_SetLocalSint32, A0, L); |
| 46494 | } |
| 46495 | bool ByteCodeEmitter::emitSetLocalUint32( uint32_t A0, SourceInfo L) { |
| 46496 | return emitOp<uint32_t>(OP_SetLocalUint32, A0, L); |
| 46497 | } |
| 46498 | bool ByteCodeEmitter::emitSetLocalSint64( uint32_t A0, SourceInfo L) { |
| 46499 | return emitOp<uint32_t>(OP_SetLocalSint64, A0, L); |
| 46500 | } |
| 46501 | bool ByteCodeEmitter::emitSetLocalUint64( uint32_t A0, SourceInfo L) { |
| 46502 | return emitOp<uint32_t>(OP_SetLocalUint64, A0, L); |
| 46503 | } |
| 46504 | bool ByteCodeEmitter::emitSetLocalIntAP( uint32_t A0, SourceInfo L) { |
| 46505 | return emitOp<uint32_t>(OP_SetLocalIntAP, A0, L); |
| 46506 | } |
| 46507 | bool ByteCodeEmitter::emitSetLocalIntAPS( uint32_t A0, SourceInfo L) { |
| 46508 | return emitOp<uint32_t>(OP_SetLocalIntAPS, A0, L); |
| 46509 | } |
| 46510 | bool ByteCodeEmitter::emitSetLocalBool( uint32_t A0, SourceInfo L) { |
| 46511 | return emitOp<uint32_t>(OP_SetLocalBool, A0, L); |
| 46512 | } |
| 46513 | bool ByteCodeEmitter::emitSetLocalFixedPoint( uint32_t A0, SourceInfo L) { |
| 46514 | return emitOp<uint32_t>(OP_SetLocalFixedPoint, A0, L); |
| 46515 | } |
| 46516 | bool ByteCodeEmitter::emitSetLocalPtr( uint32_t A0, SourceInfo L) { |
| 46517 | return emitOp<uint32_t>(OP_SetLocalPtr, A0, L); |
| 46518 | } |
| 46519 | bool ByteCodeEmitter::emitSetLocalMemberPtr( uint32_t A0, SourceInfo L) { |
| 46520 | return emitOp<uint32_t>(OP_SetLocalMemberPtr, A0, L); |
| 46521 | } |
| 46522 | bool ByteCodeEmitter::emitSetLocalFloat( uint32_t A0, SourceInfo L) { |
| 46523 | return emitOp<uint32_t>(OP_SetLocalFloat, A0, L); |
| 46524 | } |
| 46525 | bool ByteCodeEmitter::emitSetLocalReflect( uint32_t A0, SourceInfo L) { |
| 46526 | return emitOp<uint32_t>(OP_SetLocalReflect, A0, L); |
| 46527 | } |
| 46528 | #endif |
| 46529 | #ifdef GET_OPCODE_NAMES |
| 46530 | OP_SetParamSint8, |
| 46531 | OP_SetParamUint8, |
| 46532 | OP_SetParamSint16, |
| 46533 | OP_SetParamUint16, |
| 46534 | OP_SetParamSint32, |
| 46535 | OP_SetParamUint32, |
| 46536 | OP_SetParamSint64, |
| 46537 | OP_SetParamUint64, |
| 46538 | OP_SetParamIntAP, |
| 46539 | OP_SetParamIntAPS, |
| 46540 | OP_SetParamBool, |
| 46541 | OP_SetParamFixedPoint, |
| 46542 | OP_SetParamPtr, |
| 46543 | OP_SetParamMemberPtr, |
| 46544 | OP_SetParamFloat, |
| 46545 | OP_SetParamReflect, |
| 46546 | #endif |
| 46547 | #ifdef GET_INTERPFN_LIST |
| 46548 | &Interp_SetParamSint8, |
| 46549 | &Interp_SetParamUint8, |
| 46550 | &Interp_SetParamSint16, |
| 46551 | &Interp_SetParamUint16, |
| 46552 | &Interp_SetParamSint32, |
| 46553 | &Interp_SetParamUint32, |
| 46554 | &Interp_SetParamSint64, |
| 46555 | &Interp_SetParamUint64, |
| 46556 | &Interp_SetParamIntAP, |
| 46557 | &Interp_SetParamIntAPS, |
| 46558 | &Interp_SetParamBool, |
| 46559 | &Interp_SetParamFixedPoint, |
| 46560 | &Interp_SetParamPtr, |
| 46561 | &Interp_SetParamMemberPtr, |
| 46562 | &Interp_SetParamFloat, |
| 46563 | &Interp_SetParamReflect, |
| 46564 | #endif |
| 46565 | #ifdef GET_INTERPFN_DISPATCHERS |
| 46566 | PRESERVE_NONE |
| 46567 | static bool Interp_SetParamSint8(InterpState &S) { |
| 46568 | { |
| 46569 | const auto V0 = ReadArg<uint32_t>(S, S.PC); |
| 46570 | SetParam<PT_Sint8>(S, V0); |
| 46571 | } |
| 46572 | #if USE_TAILCALLS |
| 46573 | MUSTTAIL return InterpNext(S); |
| 46574 | #else |
| 46575 | return true; |
| 46576 | #endif |
| 46577 | } |
| 46578 | PRESERVE_NONE |
| 46579 | static bool Interp_SetParamUint8(InterpState &S) { |
| 46580 | { |
| 46581 | const auto V0 = ReadArg<uint32_t>(S, S.PC); |
| 46582 | SetParam<PT_Uint8>(S, V0); |
| 46583 | } |
| 46584 | #if USE_TAILCALLS |
| 46585 | MUSTTAIL return InterpNext(S); |
| 46586 | #else |
| 46587 | return true; |
| 46588 | #endif |
| 46589 | } |
| 46590 | PRESERVE_NONE |
| 46591 | static bool Interp_SetParamSint16(InterpState &S) { |
| 46592 | { |
| 46593 | const auto V0 = ReadArg<uint32_t>(S, S.PC); |
| 46594 | SetParam<PT_Sint16>(S, V0); |
| 46595 | } |
| 46596 | #if USE_TAILCALLS |
| 46597 | MUSTTAIL return InterpNext(S); |
| 46598 | #else |
| 46599 | return true; |
| 46600 | #endif |
| 46601 | } |
| 46602 | PRESERVE_NONE |
| 46603 | static bool Interp_SetParamUint16(InterpState &S) { |
| 46604 | { |
| 46605 | const auto V0 = ReadArg<uint32_t>(S, S.PC); |
| 46606 | SetParam<PT_Uint16>(S, V0); |
| 46607 | } |
| 46608 | #if USE_TAILCALLS |
| 46609 | MUSTTAIL return InterpNext(S); |
| 46610 | #else |
| 46611 | return true; |
| 46612 | #endif |
| 46613 | } |
| 46614 | PRESERVE_NONE |
| 46615 | static bool Interp_SetParamSint32(InterpState &S) { |
| 46616 | { |
| 46617 | const auto V0 = ReadArg<uint32_t>(S, S.PC); |
| 46618 | SetParam<PT_Sint32>(S, V0); |
| 46619 | } |
| 46620 | #if USE_TAILCALLS |
| 46621 | MUSTTAIL return InterpNext(S); |
| 46622 | #else |
| 46623 | return true; |
| 46624 | #endif |
| 46625 | } |
| 46626 | PRESERVE_NONE |
| 46627 | static bool Interp_SetParamUint32(InterpState &S) { |
| 46628 | { |
| 46629 | const auto V0 = ReadArg<uint32_t>(S, S.PC); |
| 46630 | SetParam<PT_Uint32>(S, V0); |
| 46631 | } |
| 46632 | #if USE_TAILCALLS |
| 46633 | MUSTTAIL return InterpNext(S); |
| 46634 | #else |
| 46635 | return true; |
| 46636 | #endif |
| 46637 | } |
| 46638 | PRESERVE_NONE |
| 46639 | static bool Interp_SetParamSint64(InterpState &S) { |
| 46640 | { |
| 46641 | const auto V0 = ReadArg<uint32_t>(S, S.PC); |
| 46642 | SetParam<PT_Sint64>(S, V0); |
| 46643 | } |
| 46644 | #if USE_TAILCALLS |
| 46645 | MUSTTAIL return InterpNext(S); |
| 46646 | #else |
| 46647 | return true; |
| 46648 | #endif |
| 46649 | } |
| 46650 | PRESERVE_NONE |
| 46651 | static bool Interp_SetParamUint64(InterpState &S) { |
| 46652 | { |
| 46653 | const auto V0 = ReadArg<uint32_t>(S, S.PC); |
| 46654 | SetParam<PT_Uint64>(S, V0); |
| 46655 | } |
| 46656 | #if USE_TAILCALLS |
| 46657 | MUSTTAIL return InterpNext(S); |
| 46658 | #else |
| 46659 | return true; |
| 46660 | #endif |
| 46661 | } |
| 46662 | PRESERVE_NONE |
| 46663 | static bool Interp_SetParamIntAP(InterpState &S) { |
| 46664 | { |
| 46665 | const auto V0 = ReadArg<uint32_t>(S, S.PC); |
| 46666 | SetParam<PT_IntAP>(S, V0); |
| 46667 | } |
| 46668 | #if USE_TAILCALLS |
| 46669 | MUSTTAIL return InterpNext(S); |
| 46670 | #else |
| 46671 | return true; |
| 46672 | #endif |
| 46673 | } |
| 46674 | PRESERVE_NONE |
| 46675 | static bool Interp_SetParamIntAPS(InterpState &S) { |
| 46676 | { |
| 46677 | const auto V0 = ReadArg<uint32_t>(S, S.PC); |
| 46678 | SetParam<PT_IntAPS>(S, V0); |
| 46679 | } |
| 46680 | #if USE_TAILCALLS |
| 46681 | MUSTTAIL return InterpNext(S); |
| 46682 | #else |
| 46683 | return true; |
| 46684 | #endif |
| 46685 | } |
| 46686 | PRESERVE_NONE |
| 46687 | static bool Interp_SetParamBool(InterpState &S) { |
| 46688 | { |
| 46689 | const auto V0 = ReadArg<uint32_t>(S, S.PC); |
| 46690 | SetParam<PT_Bool>(S, V0); |
| 46691 | } |
| 46692 | #if USE_TAILCALLS |
| 46693 | MUSTTAIL return InterpNext(S); |
| 46694 | #else |
| 46695 | return true; |
| 46696 | #endif |
| 46697 | } |
| 46698 | PRESERVE_NONE |
| 46699 | static bool Interp_SetParamFixedPoint(InterpState &S) { |
| 46700 | { |
| 46701 | const auto V0 = ReadArg<uint32_t>(S, S.PC); |
| 46702 | SetParam<PT_FixedPoint>(S, V0); |
| 46703 | } |
| 46704 | #if USE_TAILCALLS |
| 46705 | MUSTTAIL return InterpNext(S); |
| 46706 | #else |
| 46707 | return true; |
| 46708 | #endif |
| 46709 | } |
| 46710 | PRESERVE_NONE |
| 46711 | static bool Interp_SetParamPtr(InterpState &S) { |
| 46712 | { |
| 46713 | const auto V0 = ReadArg<uint32_t>(S, S.PC); |
| 46714 | SetParam<PT_Ptr>(S, V0); |
| 46715 | } |
| 46716 | #if USE_TAILCALLS |
| 46717 | MUSTTAIL return InterpNext(S); |
| 46718 | #else |
| 46719 | return true; |
| 46720 | #endif |
| 46721 | } |
| 46722 | PRESERVE_NONE |
| 46723 | static bool Interp_SetParamMemberPtr(InterpState &S) { |
| 46724 | { |
| 46725 | const auto V0 = ReadArg<uint32_t>(S, S.PC); |
| 46726 | SetParam<PT_MemberPtr>(S, V0); |
| 46727 | } |
| 46728 | #if USE_TAILCALLS |
| 46729 | MUSTTAIL return InterpNext(S); |
| 46730 | #else |
| 46731 | return true; |
| 46732 | #endif |
| 46733 | } |
| 46734 | PRESERVE_NONE |
| 46735 | static bool Interp_SetParamFloat(InterpState &S) { |
| 46736 | { |
| 46737 | const auto V0 = ReadArg<uint32_t>(S, S.PC); |
| 46738 | SetParam<PT_Float>(S, V0); |
| 46739 | } |
| 46740 | #if USE_TAILCALLS |
| 46741 | MUSTTAIL return InterpNext(S); |
| 46742 | #else |
| 46743 | return true; |
| 46744 | #endif |
| 46745 | } |
| 46746 | PRESERVE_NONE |
| 46747 | static bool Interp_SetParamReflect(InterpState &S) { |
| 46748 | { |
| 46749 | const auto V0 = ReadArg<uint32_t>(S, S.PC); |
| 46750 | SetParam<PT_Reflect>(S, V0); |
| 46751 | } |
| 46752 | #if USE_TAILCALLS |
| 46753 | MUSTTAIL return InterpNext(S); |
| 46754 | #else |
| 46755 | return true; |
| 46756 | #endif |
| 46757 | } |
| 46758 | #endif |
| 46759 | #ifdef GET_DISASM |
| 46760 | case OP_SetParamSint8: |
| 46761 | Text.Op = PrintName("SetParamSint8" ); |
| 46762 | Text.Args.push_back(printArg<uint32_t>(PC)); |
| 46763 | break; |
| 46764 | case OP_SetParamUint8: |
| 46765 | Text.Op = PrintName("SetParamUint8" ); |
| 46766 | Text.Args.push_back(printArg<uint32_t>(PC)); |
| 46767 | break; |
| 46768 | case OP_SetParamSint16: |
| 46769 | Text.Op = PrintName("SetParamSint16" ); |
| 46770 | Text.Args.push_back(printArg<uint32_t>(PC)); |
| 46771 | break; |
| 46772 | case OP_SetParamUint16: |
| 46773 | Text.Op = PrintName("SetParamUint16" ); |
| 46774 | Text.Args.push_back(printArg<uint32_t>(PC)); |
| 46775 | break; |
| 46776 | case OP_SetParamSint32: |
| 46777 | Text.Op = PrintName("SetParamSint32" ); |
| 46778 | Text.Args.push_back(printArg<uint32_t>(PC)); |
| 46779 | break; |
| 46780 | case OP_SetParamUint32: |
| 46781 | Text.Op = PrintName("SetParamUint32" ); |
| 46782 | Text.Args.push_back(printArg<uint32_t>(PC)); |
| 46783 | break; |
| 46784 | case OP_SetParamSint64: |
| 46785 | Text.Op = PrintName("SetParamSint64" ); |
| 46786 | Text.Args.push_back(printArg<uint32_t>(PC)); |
| 46787 | break; |
| 46788 | case OP_SetParamUint64: |
| 46789 | Text.Op = PrintName("SetParamUint64" ); |
| 46790 | Text.Args.push_back(printArg<uint32_t>(PC)); |
| 46791 | break; |
| 46792 | case OP_SetParamIntAP: |
| 46793 | Text.Op = PrintName("SetParamIntAP" ); |
| 46794 | Text.Args.push_back(printArg<uint32_t>(PC)); |
| 46795 | break; |
| 46796 | case OP_SetParamIntAPS: |
| 46797 | Text.Op = PrintName("SetParamIntAPS" ); |
| 46798 | Text.Args.push_back(printArg<uint32_t>(PC)); |
| 46799 | break; |
| 46800 | case OP_SetParamBool: |
| 46801 | Text.Op = PrintName("SetParamBool" ); |
| 46802 | Text.Args.push_back(printArg<uint32_t>(PC)); |
| 46803 | break; |
| 46804 | case OP_SetParamFixedPoint: |
| 46805 | Text.Op = PrintName("SetParamFixedPoint" ); |
| 46806 | Text.Args.push_back(printArg<uint32_t>(PC)); |
| 46807 | break; |
| 46808 | case OP_SetParamPtr: |
| 46809 | Text.Op = PrintName("SetParamPtr" ); |
| 46810 | Text.Args.push_back(printArg<uint32_t>(PC)); |
| 46811 | break; |
| 46812 | case OP_SetParamMemberPtr: |
| 46813 | Text.Op = PrintName("SetParamMemberPtr" ); |
| 46814 | Text.Args.push_back(printArg<uint32_t>(PC)); |
| 46815 | break; |
| 46816 | case OP_SetParamFloat: |
| 46817 | Text.Op = PrintName("SetParamFloat" ); |
| 46818 | Text.Args.push_back(printArg<uint32_t>(PC)); |
| 46819 | break; |
| 46820 | case OP_SetParamReflect: |
| 46821 | Text.Op = PrintName("SetParamReflect" ); |
| 46822 | Text.Args.push_back(printArg<uint32_t>(PC)); |
| 46823 | break; |
| 46824 | #endif |
| 46825 | #if defined(GET_EVAL_PROTO) || defined(GET_LINK_PROTO) |
| 46826 | bool emitSetParamSint8( uint32_t , SourceInfo); |
| 46827 | bool emitSetParamUint8( uint32_t , SourceInfo); |
| 46828 | bool emitSetParamSint16( uint32_t , SourceInfo); |
| 46829 | bool emitSetParamUint16( uint32_t , SourceInfo); |
| 46830 | bool emitSetParamSint32( uint32_t , SourceInfo); |
| 46831 | bool emitSetParamUint32( uint32_t , SourceInfo); |
| 46832 | bool emitSetParamSint64( uint32_t , SourceInfo); |
| 46833 | bool emitSetParamUint64( uint32_t , SourceInfo); |
| 46834 | bool emitSetParamIntAP( uint32_t , SourceInfo); |
| 46835 | bool emitSetParamIntAPS( uint32_t , SourceInfo); |
| 46836 | bool emitSetParamBool( uint32_t , SourceInfo); |
| 46837 | bool emitSetParamFixedPoint( uint32_t , SourceInfo); |
| 46838 | bool emitSetParamPtr( uint32_t , SourceInfo); |
| 46839 | bool emitSetParamMemberPtr( uint32_t , SourceInfo); |
| 46840 | bool emitSetParamFloat( uint32_t , SourceInfo); |
| 46841 | bool emitSetParamReflect( uint32_t , SourceInfo); |
| 46842 | #endif |
| 46843 | #if defined(GET_EVAL_PROTO) || defined(GET_LINK_PROTO) |
| 46844 | [[nodiscard]] bool emitSetParam(PrimType, uint32_t, SourceInfo I); |
| 46845 | #endif |
| 46846 | #if defined(GET_EVAL_IMPL) || defined(GET_LINK_IMPL) |
| 46847 | bool |
| 46848 | #if defined(GET_EVAL_IMPL) |
| 46849 | EvalEmitter |
| 46850 | #else |
| 46851 | ByteCodeEmitter |
| 46852 | #endif |
| 46853 | ::emitSetParam(PrimType T0, uint32_t A0, SourceInfo I) { |
| 46854 | switch (T0) { |
| 46855 | case PT_Sint8: |
| 46856 | return emitSetParamSint8(A0, I); |
| 46857 | case PT_Uint8: |
| 46858 | return emitSetParamUint8(A0, I); |
| 46859 | case PT_Sint16: |
| 46860 | return emitSetParamSint16(A0, I); |
| 46861 | case PT_Uint16: |
| 46862 | return emitSetParamUint16(A0, I); |
| 46863 | case PT_Sint32: |
| 46864 | return emitSetParamSint32(A0, I); |
| 46865 | case PT_Uint32: |
| 46866 | return emitSetParamUint32(A0, I); |
| 46867 | case PT_Sint64: |
| 46868 | return emitSetParamSint64(A0, I); |
| 46869 | case PT_Uint64: |
| 46870 | return emitSetParamUint64(A0, I); |
| 46871 | case PT_IntAP: |
| 46872 | return emitSetParamIntAP(A0, I); |
| 46873 | case PT_IntAPS: |
| 46874 | return emitSetParamIntAPS(A0, I); |
| 46875 | case PT_Bool: |
| 46876 | return emitSetParamBool(A0, I); |
| 46877 | case PT_FixedPoint: |
| 46878 | return emitSetParamFixedPoint(A0, I); |
| 46879 | case PT_Ptr: |
| 46880 | return emitSetParamPtr(A0, I); |
| 46881 | case PT_MemberPtr: |
| 46882 | return emitSetParamMemberPtr(A0, I); |
| 46883 | case PT_Float: |
| 46884 | return emitSetParamFloat(A0, I); |
| 46885 | case PT_Reflect: |
| 46886 | return emitSetParamReflect(A0, I); |
| 46887 | } |
| 46888 | llvm_unreachable("invalid enum value" ); |
| 46889 | } |
| 46890 | #endif |
| 46891 | #ifdef GET_LINK_IMPL |
| 46892 | bool ByteCodeEmitter::emitSetParamSint8( uint32_t A0, SourceInfo L) { |
| 46893 | return emitOp<uint32_t>(OP_SetParamSint8, A0, L); |
| 46894 | } |
| 46895 | bool ByteCodeEmitter::emitSetParamUint8( uint32_t A0, SourceInfo L) { |
| 46896 | return emitOp<uint32_t>(OP_SetParamUint8, A0, L); |
| 46897 | } |
| 46898 | bool ByteCodeEmitter::emitSetParamSint16( uint32_t A0, SourceInfo L) { |
| 46899 | return emitOp<uint32_t>(OP_SetParamSint16, A0, L); |
| 46900 | } |
| 46901 | bool ByteCodeEmitter::emitSetParamUint16( uint32_t A0, SourceInfo L) { |
| 46902 | return emitOp<uint32_t>(OP_SetParamUint16, A0, L); |
| 46903 | } |
| 46904 | bool ByteCodeEmitter::emitSetParamSint32( uint32_t A0, SourceInfo L) { |
| 46905 | return emitOp<uint32_t>(OP_SetParamSint32, A0, L); |
| 46906 | } |
| 46907 | bool ByteCodeEmitter::emitSetParamUint32( uint32_t A0, SourceInfo L) { |
| 46908 | return emitOp<uint32_t>(OP_SetParamUint32, A0, L); |
| 46909 | } |
| 46910 | bool ByteCodeEmitter::emitSetParamSint64( uint32_t A0, SourceInfo L) { |
| 46911 | return emitOp<uint32_t>(OP_SetParamSint64, A0, L); |
| 46912 | } |
| 46913 | bool ByteCodeEmitter::emitSetParamUint64( uint32_t A0, SourceInfo L) { |
| 46914 | return emitOp<uint32_t>(OP_SetParamUint64, A0, L); |
| 46915 | } |
| 46916 | bool ByteCodeEmitter::emitSetParamIntAP( uint32_t A0, SourceInfo L) { |
| 46917 | return emitOp<uint32_t>(OP_SetParamIntAP, A0, L); |
| 46918 | } |
| 46919 | bool ByteCodeEmitter::emitSetParamIntAPS( uint32_t A0, SourceInfo L) { |
| 46920 | return emitOp<uint32_t>(OP_SetParamIntAPS, A0, L); |
| 46921 | } |
| 46922 | bool ByteCodeEmitter::emitSetParamBool( uint32_t A0, SourceInfo L) { |
| 46923 | return emitOp<uint32_t>(OP_SetParamBool, A0, L); |
| 46924 | } |
| 46925 | bool ByteCodeEmitter::emitSetParamFixedPoint( uint32_t A0, SourceInfo L) { |
| 46926 | return emitOp<uint32_t>(OP_SetParamFixedPoint, A0, L); |
| 46927 | } |
| 46928 | bool ByteCodeEmitter::emitSetParamPtr( uint32_t A0, SourceInfo L) { |
| 46929 | return emitOp<uint32_t>(OP_SetParamPtr, A0, L); |
| 46930 | } |
| 46931 | bool ByteCodeEmitter::emitSetParamMemberPtr( uint32_t A0, SourceInfo L) { |
| 46932 | return emitOp<uint32_t>(OP_SetParamMemberPtr, A0, L); |
| 46933 | } |
| 46934 | bool ByteCodeEmitter::emitSetParamFloat( uint32_t A0, SourceInfo L) { |
| 46935 | return emitOp<uint32_t>(OP_SetParamFloat, A0, L); |
| 46936 | } |
| 46937 | bool ByteCodeEmitter::emitSetParamReflect( uint32_t A0, SourceInfo L) { |
| 46938 | return emitOp<uint32_t>(OP_SetParamReflect, A0, L); |
| 46939 | } |
| 46940 | #endif |
| 46941 | #ifdef GET_EVAL_IMPL |
| 46942 | bool EvalEmitter::emitSetParamSint8( uint32_t A0, SourceInfo L) { |
| 46943 | if (!isActive()) return true; |
| 46944 | CurrentSource = L; |
| 46945 | return SetParam<PT_Sint8>(S, A0); |
| 46946 | } |
| 46947 | bool EvalEmitter::emitSetParamUint8( uint32_t A0, SourceInfo L) { |
| 46948 | if (!isActive()) return true; |
| 46949 | CurrentSource = L; |
| 46950 | return SetParam<PT_Uint8>(S, A0); |
| 46951 | } |
| 46952 | bool EvalEmitter::emitSetParamSint16( uint32_t A0, SourceInfo L) { |
| 46953 | if (!isActive()) return true; |
| 46954 | CurrentSource = L; |
| 46955 | return SetParam<PT_Sint16>(S, A0); |
| 46956 | } |
| 46957 | bool EvalEmitter::emitSetParamUint16( uint32_t A0, SourceInfo L) { |
| 46958 | if (!isActive()) return true; |
| 46959 | CurrentSource = L; |
| 46960 | return SetParam<PT_Uint16>(S, A0); |
| 46961 | } |
| 46962 | bool EvalEmitter::emitSetParamSint32( uint32_t A0, SourceInfo L) { |
| 46963 | if (!isActive()) return true; |
| 46964 | CurrentSource = L; |
| 46965 | return SetParam<PT_Sint32>(S, A0); |
| 46966 | } |
| 46967 | bool EvalEmitter::emitSetParamUint32( uint32_t A0, SourceInfo L) { |
| 46968 | if (!isActive()) return true; |
| 46969 | CurrentSource = L; |
| 46970 | return SetParam<PT_Uint32>(S, A0); |
| 46971 | } |
| 46972 | bool EvalEmitter::emitSetParamSint64( uint32_t A0, SourceInfo L) { |
| 46973 | if (!isActive()) return true; |
| 46974 | CurrentSource = L; |
| 46975 | return SetParam<PT_Sint64>(S, A0); |
| 46976 | } |
| 46977 | bool EvalEmitter::emitSetParamUint64( uint32_t A0, SourceInfo L) { |
| 46978 | if (!isActive()) return true; |
| 46979 | CurrentSource = L; |
| 46980 | return SetParam<PT_Uint64>(S, A0); |
| 46981 | } |
| 46982 | bool EvalEmitter::emitSetParamIntAP( uint32_t A0, SourceInfo L) { |
| 46983 | if (!isActive()) return true; |
| 46984 | CurrentSource = L; |
| 46985 | return SetParam<PT_IntAP>(S, A0); |
| 46986 | } |
| 46987 | bool EvalEmitter::emitSetParamIntAPS( uint32_t A0, SourceInfo L) { |
| 46988 | if (!isActive()) return true; |
| 46989 | CurrentSource = L; |
| 46990 | return SetParam<PT_IntAPS>(S, A0); |
| 46991 | } |
| 46992 | bool EvalEmitter::emitSetParamBool( uint32_t A0, SourceInfo L) { |
| 46993 | if (!isActive()) return true; |
| 46994 | CurrentSource = L; |
| 46995 | return SetParam<PT_Bool>(S, A0); |
| 46996 | } |
| 46997 | bool EvalEmitter::emitSetParamFixedPoint( uint32_t A0, SourceInfo L) { |
| 46998 | if (!isActive()) return true; |
| 46999 | CurrentSource = L; |
| 47000 | return SetParam<PT_FixedPoint>(S, A0); |
| 47001 | } |
| 47002 | bool EvalEmitter::emitSetParamPtr( uint32_t A0, SourceInfo L) { |
| 47003 | if (!isActive()) return true; |
| 47004 | CurrentSource = L; |
| 47005 | return SetParam<PT_Ptr>(S, A0); |
| 47006 | } |
| 47007 | bool EvalEmitter::emitSetParamMemberPtr( uint32_t A0, SourceInfo L) { |
| 47008 | if (!isActive()) return true; |
| 47009 | CurrentSource = L; |
| 47010 | return SetParam<PT_MemberPtr>(S, A0); |
| 47011 | } |
| 47012 | bool EvalEmitter::emitSetParamFloat( uint32_t A0, SourceInfo L) { |
| 47013 | if (!isActive()) return true; |
| 47014 | CurrentSource = L; |
| 47015 | return SetParam<PT_Float>(S, A0); |
| 47016 | } |
| 47017 | bool EvalEmitter::emitSetParamReflect( uint32_t A0, SourceInfo L) { |
| 47018 | if (!isActive()) return true; |
| 47019 | CurrentSource = L; |
| 47020 | return SetParam<PT_Reflect>(S, A0); |
| 47021 | } |
| 47022 | #endif |
| 47023 | #ifdef GET_OPCODE_NAMES |
| 47024 | OP_ShiftFixedPoint, |
| 47025 | #endif |
| 47026 | #ifdef GET_INTERPFN_LIST |
| 47027 | &Interp_ShiftFixedPoint, |
| 47028 | #endif |
| 47029 | #ifdef GET_INTERPFN_DISPATCHERS |
| 47030 | PRESERVE_NONE |
| 47031 | static bool Interp_ShiftFixedPoint(InterpState &S) { |
| 47032 | { |
| 47033 | CodePtr OpPC = S.PC; |
| 47034 | const auto V0 = ReadArg<bool>(S, S.PC); |
| 47035 | if (!ShiftFixedPoint(S, OpPC, V0)) return false; |
| 47036 | } |
| 47037 | #if USE_TAILCALLS |
| 47038 | MUSTTAIL return InterpNext(S); |
| 47039 | #else |
| 47040 | return true; |
| 47041 | #endif |
| 47042 | } |
| 47043 | #endif |
| 47044 | #ifdef GET_DISASM |
| 47045 | case OP_ShiftFixedPoint: |
| 47046 | Text.Op = PrintName("ShiftFixedPoint" ); |
| 47047 | Text.Args.push_back(printArg<bool>(PC)); |
| 47048 | break; |
| 47049 | #endif |
| 47050 | #if defined(GET_EVAL_PROTO) || defined(GET_LINK_PROTO) |
| 47051 | bool emitShiftFixedPoint( bool , SourceInfo); |
| 47052 | #endif |
| 47053 | #ifdef GET_LINK_IMPL |
| 47054 | bool ByteCodeEmitter::emitShiftFixedPoint( bool A0, SourceInfo L) { |
| 47055 | return emitOp<bool>(OP_ShiftFixedPoint, A0, L); |
| 47056 | } |
| 47057 | #endif |
| 47058 | #ifdef GET_EVAL_IMPL |
| 47059 | bool EvalEmitter::emitShiftFixedPoint( bool A0, SourceInfo L) { |
| 47060 | if (!isActive()) return true; |
| 47061 | CurrentSource = L; |
| 47062 | return ShiftFixedPoint(S, CodePtr(), A0); |
| 47063 | } |
| 47064 | #endif |
| 47065 | #ifdef GET_OPCODE_NAMES |
| 47066 | OP_ShlSint8Sint8, |
| 47067 | OP_ShlSint8Uint8, |
| 47068 | OP_ShlSint8Sint16, |
| 47069 | OP_ShlSint8Uint16, |
| 47070 | OP_ShlSint8Sint32, |
| 47071 | OP_ShlSint8Uint32, |
| 47072 | OP_ShlSint8Sint64, |
| 47073 | OP_ShlSint8Uint64, |
| 47074 | OP_ShlSint8IntAP, |
| 47075 | OP_ShlSint8IntAPS, |
| 47076 | OP_ShlUint8Sint8, |
| 47077 | OP_ShlUint8Uint8, |
| 47078 | OP_ShlUint8Sint16, |
| 47079 | OP_ShlUint8Uint16, |
| 47080 | OP_ShlUint8Sint32, |
| 47081 | OP_ShlUint8Uint32, |
| 47082 | OP_ShlUint8Sint64, |
| 47083 | OP_ShlUint8Uint64, |
| 47084 | OP_ShlUint8IntAP, |
| 47085 | OP_ShlUint8IntAPS, |
| 47086 | OP_ShlSint16Sint8, |
| 47087 | OP_ShlSint16Uint8, |
| 47088 | OP_ShlSint16Sint16, |
| 47089 | OP_ShlSint16Uint16, |
| 47090 | OP_ShlSint16Sint32, |
| 47091 | OP_ShlSint16Uint32, |
| 47092 | OP_ShlSint16Sint64, |
| 47093 | OP_ShlSint16Uint64, |
| 47094 | OP_ShlSint16IntAP, |
| 47095 | OP_ShlSint16IntAPS, |
| 47096 | OP_ShlUint16Sint8, |
| 47097 | OP_ShlUint16Uint8, |
| 47098 | OP_ShlUint16Sint16, |
| 47099 | OP_ShlUint16Uint16, |
| 47100 | OP_ShlUint16Sint32, |
| 47101 | OP_ShlUint16Uint32, |
| 47102 | OP_ShlUint16Sint64, |
| 47103 | OP_ShlUint16Uint64, |
| 47104 | OP_ShlUint16IntAP, |
| 47105 | OP_ShlUint16IntAPS, |
| 47106 | OP_ShlSint32Sint8, |
| 47107 | OP_ShlSint32Uint8, |
| 47108 | OP_ShlSint32Sint16, |
| 47109 | OP_ShlSint32Uint16, |
| 47110 | OP_ShlSint32Sint32, |
| 47111 | OP_ShlSint32Uint32, |
| 47112 | OP_ShlSint32Sint64, |
| 47113 | OP_ShlSint32Uint64, |
| 47114 | OP_ShlSint32IntAP, |
| 47115 | OP_ShlSint32IntAPS, |
| 47116 | OP_ShlUint32Sint8, |
| 47117 | OP_ShlUint32Uint8, |
| 47118 | OP_ShlUint32Sint16, |
| 47119 | OP_ShlUint32Uint16, |
| 47120 | OP_ShlUint32Sint32, |
| 47121 | OP_ShlUint32Uint32, |
| 47122 | OP_ShlUint32Sint64, |
| 47123 | OP_ShlUint32Uint64, |
| 47124 | OP_ShlUint32IntAP, |
| 47125 | OP_ShlUint32IntAPS, |
| 47126 | OP_ShlSint64Sint8, |
| 47127 | OP_ShlSint64Uint8, |
| 47128 | OP_ShlSint64Sint16, |
| 47129 | OP_ShlSint64Uint16, |
| 47130 | OP_ShlSint64Sint32, |
| 47131 | OP_ShlSint64Uint32, |
| 47132 | OP_ShlSint64Sint64, |
| 47133 | OP_ShlSint64Uint64, |
| 47134 | OP_ShlSint64IntAP, |
| 47135 | OP_ShlSint64IntAPS, |
| 47136 | OP_ShlUint64Sint8, |
| 47137 | OP_ShlUint64Uint8, |
| 47138 | OP_ShlUint64Sint16, |
| 47139 | OP_ShlUint64Uint16, |
| 47140 | OP_ShlUint64Sint32, |
| 47141 | OP_ShlUint64Uint32, |
| 47142 | OP_ShlUint64Sint64, |
| 47143 | OP_ShlUint64Uint64, |
| 47144 | OP_ShlUint64IntAP, |
| 47145 | OP_ShlUint64IntAPS, |
| 47146 | OP_ShlIntAPSint8, |
| 47147 | OP_ShlIntAPUint8, |
| 47148 | OP_ShlIntAPSint16, |
| 47149 | OP_ShlIntAPUint16, |
| 47150 | OP_ShlIntAPSint32, |
| 47151 | OP_ShlIntAPUint32, |
| 47152 | OP_ShlIntAPSint64, |
| 47153 | OP_ShlIntAPUint64, |
| 47154 | OP_ShlIntAPIntAP, |
| 47155 | OP_ShlIntAPIntAPS, |
| 47156 | OP_ShlIntAPSSint8, |
| 47157 | OP_ShlIntAPSUint8, |
| 47158 | OP_ShlIntAPSSint16, |
| 47159 | OP_ShlIntAPSUint16, |
| 47160 | OP_ShlIntAPSSint32, |
| 47161 | OP_ShlIntAPSUint32, |
| 47162 | OP_ShlIntAPSSint64, |
| 47163 | OP_ShlIntAPSUint64, |
| 47164 | OP_ShlIntAPSIntAP, |
| 47165 | OP_ShlIntAPSIntAPS, |
| 47166 | #endif |
| 47167 | #ifdef GET_INTERPFN_LIST |
| 47168 | &Interp_ShlSint8Sint8, |
| 47169 | &Interp_ShlSint8Uint8, |
| 47170 | &Interp_ShlSint8Sint16, |
| 47171 | &Interp_ShlSint8Uint16, |
| 47172 | &Interp_ShlSint8Sint32, |
| 47173 | &Interp_ShlSint8Uint32, |
| 47174 | &Interp_ShlSint8Sint64, |
| 47175 | &Interp_ShlSint8Uint64, |
| 47176 | &Interp_ShlSint8IntAP, |
| 47177 | &Interp_ShlSint8IntAPS, |
| 47178 | &Interp_ShlUint8Sint8, |
| 47179 | &Interp_ShlUint8Uint8, |
| 47180 | &Interp_ShlUint8Sint16, |
| 47181 | &Interp_ShlUint8Uint16, |
| 47182 | &Interp_ShlUint8Sint32, |
| 47183 | &Interp_ShlUint8Uint32, |
| 47184 | &Interp_ShlUint8Sint64, |
| 47185 | &Interp_ShlUint8Uint64, |
| 47186 | &Interp_ShlUint8IntAP, |
| 47187 | &Interp_ShlUint8IntAPS, |
| 47188 | &Interp_ShlSint16Sint8, |
| 47189 | &Interp_ShlSint16Uint8, |
| 47190 | &Interp_ShlSint16Sint16, |
| 47191 | &Interp_ShlSint16Uint16, |
| 47192 | &Interp_ShlSint16Sint32, |
| 47193 | &Interp_ShlSint16Uint32, |
| 47194 | &Interp_ShlSint16Sint64, |
| 47195 | &Interp_ShlSint16Uint64, |
| 47196 | &Interp_ShlSint16IntAP, |
| 47197 | &Interp_ShlSint16IntAPS, |
| 47198 | &Interp_ShlUint16Sint8, |
| 47199 | &Interp_ShlUint16Uint8, |
| 47200 | &Interp_ShlUint16Sint16, |
| 47201 | &Interp_ShlUint16Uint16, |
| 47202 | &Interp_ShlUint16Sint32, |
| 47203 | &Interp_ShlUint16Uint32, |
| 47204 | &Interp_ShlUint16Sint64, |
| 47205 | &Interp_ShlUint16Uint64, |
| 47206 | &Interp_ShlUint16IntAP, |
| 47207 | &Interp_ShlUint16IntAPS, |
| 47208 | &Interp_ShlSint32Sint8, |
| 47209 | &Interp_ShlSint32Uint8, |
| 47210 | &Interp_ShlSint32Sint16, |
| 47211 | &Interp_ShlSint32Uint16, |
| 47212 | &Interp_ShlSint32Sint32, |
| 47213 | &Interp_ShlSint32Uint32, |
| 47214 | &Interp_ShlSint32Sint64, |
| 47215 | &Interp_ShlSint32Uint64, |
| 47216 | &Interp_ShlSint32IntAP, |
| 47217 | &Interp_ShlSint32IntAPS, |
| 47218 | &Interp_ShlUint32Sint8, |
| 47219 | &Interp_ShlUint32Uint8, |
| 47220 | &Interp_ShlUint32Sint16, |
| 47221 | &Interp_ShlUint32Uint16, |
| 47222 | &Interp_ShlUint32Sint32, |
| 47223 | &Interp_ShlUint32Uint32, |
| 47224 | &Interp_ShlUint32Sint64, |
| 47225 | &Interp_ShlUint32Uint64, |
| 47226 | &Interp_ShlUint32IntAP, |
| 47227 | &Interp_ShlUint32IntAPS, |
| 47228 | &Interp_ShlSint64Sint8, |
| 47229 | &Interp_ShlSint64Uint8, |
| 47230 | &Interp_ShlSint64Sint16, |
| 47231 | &Interp_ShlSint64Uint16, |
| 47232 | &Interp_ShlSint64Sint32, |
| 47233 | &Interp_ShlSint64Uint32, |
| 47234 | &Interp_ShlSint64Sint64, |
| 47235 | &Interp_ShlSint64Uint64, |
| 47236 | &Interp_ShlSint64IntAP, |
| 47237 | &Interp_ShlSint64IntAPS, |
| 47238 | &Interp_ShlUint64Sint8, |
| 47239 | &Interp_ShlUint64Uint8, |
| 47240 | &Interp_ShlUint64Sint16, |
| 47241 | &Interp_ShlUint64Uint16, |
| 47242 | &Interp_ShlUint64Sint32, |
| 47243 | &Interp_ShlUint64Uint32, |
| 47244 | &Interp_ShlUint64Sint64, |
| 47245 | &Interp_ShlUint64Uint64, |
| 47246 | &Interp_ShlUint64IntAP, |
| 47247 | &Interp_ShlUint64IntAPS, |
| 47248 | &Interp_ShlIntAPSint8, |
| 47249 | &Interp_ShlIntAPUint8, |
| 47250 | &Interp_ShlIntAPSint16, |
| 47251 | &Interp_ShlIntAPUint16, |
| 47252 | &Interp_ShlIntAPSint32, |
| 47253 | &Interp_ShlIntAPUint32, |
| 47254 | &Interp_ShlIntAPSint64, |
| 47255 | &Interp_ShlIntAPUint64, |
| 47256 | &Interp_ShlIntAPIntAP, |
| 47257 | &Interp_ShlIntAPIntAPS, |
| 47258 | &Interp_ShlIntAPSSint8, |
| 47259 | &Interp_ShlIntAPSUint8, |
| 47260 | &Interp_ShlIntAPSSint16, |
| 47261 | &Interp_ShlIntAPSUint16, |
| 47262 | &Interp_ShlIntAPSSint32, |
| 47263 | &Interp_ShlIntAPSUint32, |
| 47264 | &Interp_ShlIntAPSSint64, |
| 47265 | &Interp_ShlIntAPSUint64, |
| 47266 | &Interp_ShlIntAPSIntAP, |
| 47267 | &Interp_ShlIntAPSIntAPS, |
| 47268 | #endif |
| 47269 | #ifdef GET_INTERPFN_DISPATCHERS |
| 47270 | PRESERVE_NONE |
| 47271 | static bool Interp_ShlSint8Sint8(InterpState &S) { |
| 47272 | if (!Shl<PT_Sint8, PT_Sint8>(S, S.PC)) return false; |
| 47273 | #if USE_TAILCALLS |
| 47274 | MUSTTAIL return InterpNext(S); |
| 47275 | #else |
| 47276 | return true; |
| 47277 | #endif |
| 47278 | } |
| 47279 | PRESERVE_NONE |
| 47280 | static bool Interp_ShlSint8Uint8(InterpState &S) { |
| 47281 | if (!Shl<PT_Sint8, PT_Uint8>(S, S.PC)) return false; |
| 47282 | #if USE_TAILCALLS |
| 47283 | MUSTTAIL return InterpNext(S); |
| 47284 | #else |
| 47285 | return true; |
| 47286 | #endif |
| 47287 | } |
| 47288 | PRESERVE_NONE |
| 47289 | static bool Interp_ShlSint8Sint16(InterpState &S) { |
| 47290 | if (!Shl<PT_Sint8, PT_Sint16>(S, S.PC)) return false; |
| 47291 | #if USE_TAILCALLS |
| 47292 | MUSTTAIL return InterpNext(S); |
| 47293 | #else |
| 47294 | return true; |
| 47295 | #endif |
| 47296 | } |
| 47297 | PRESERVE_NONE |
| 47298 | static bool Interp_ShlSint8Uint16(InterpState &S) { |
| 47299 | if (!Shl<PT_Sint8, PT_Uint16>(S, S.PC)) return false; |
| 47300 | #if USE_TAILCALLS |
| 47301 | MUSTTAIL return InterpNext(S); |
| 47302 | #else |
| 47303 | return true; |
| 47304 | #endif |
| 47305 | } |
| 47306 | PRESERVE_NONE |
| 47307 | static bool Interp_ShlSint8Sint32(InterpState &S) { |
| 47308 | if (!Shl<PT_Sint8, PT_Sint32>(S, S.PC)) return false; |
| 47309 | #if USE_TAILCALLS |
| 47310 | MUSTTAIL return InterpNext(S); |
| 47311 | #else |
| 47312 | return true; |
| 47313 | #endif |
| 47314 | } |
| 47315 | PRESERVE_NONE |
| 47316 | static bool Interp_ShlSint8Uint32(InterpState &S) { |
| 47317 | if (!Shl<PT_Sint8, PT_Uint32>(S, S.PC)) return false; |
| 47318 | #if USE_TAILCALLS |
| 47319 | MUSTTAIL return InterpNext(S); |
| 47320 | #else |
| 47321 | return true; |
| 47322 | #endif |
| 47323 | } |
| 47324 | PRESERVE_NONE |
| 47325 | static bool Interp_ShlSint8Sint64(InterpState &S) { |
| 47326 | if (!Shl<PT_Sint8, PT_Sint64>(S, S.PC)) return false; |
| 47327 | #if USE_TAILCALLS |
| 47328 | MUSTTAIL return InterpNext(S); |
| 47329 | #else |
| 47330 | return true; |
| 47331 | #endif |
| 47332 | } |
| 47333 | PRESERVE_NONE |
| 47334 | static bool Interp_ShlSint8Uint64(InterpState &S) { |
| 47335 | if (!Shl<PT_Sint8, PT_Uint64>(S, S.PC)) return false; |
| 47336 | #if USE_TAILCALLS |
| 47337 | MUSTTAIL return InterpNext(S); |
| 47338 | #else |
| 47339 | return true; |
| 47340 | #endif |
| 47341 | } |
| 47342 | PRESERVE_NONE |
| 47343 | static bool Interp_ShlSint8IntAP(InterpState &S) { |
| 47344 | if (!Shl<PT_Sint8, PT_IntAP>(S, S.PC)) return false; |
| 47345 | #if USE_TAILCALLS |
| 47346 | MUSTTAIL return InterpNext(S); |
| 47347 | #else |
| 47348 | return true; |
| 47349 | #endif |
| 47350 | } |
| 47351 | PRESERVE_NONE |
| 47352 | static bool Interp_ShlSint8IntAPS(InterpState &S) { |
| 47353 | if (!Shl<PT_Sint8, PT_IntAPS>(S, S.PC)) return false; |
| 47354 | #if USE_TAILCALLS |
| 47355 | MUSTTAIL return InterpNext(S); |
| 47356 | #else |
| 47357 | return true; |
| 47358 | #endif |
| 47359 | } |
| 47360 | PRESERVE_NONE |
| 47361 | static bool Interp_ShlUint8Sint8(InterpState &S) { |
| 47362 | if (!Shl<PT_Uint8, PT_Sint8>(S, S.PC)) return false; |
| 47363 | #if USE_TAILCALLS |
| 47364 | MUSTTAIL return InterpNext(S); |
| 47365 | #else |
| 47366 | return true; |
| 47367 | #endif |
| 47368 | } |
| 47369 | PRESERVE_NONE |
| 47370 | static bool Interp_ShlUint8Uint8(InterpState &S) { |
| 47371 | if (!Shl<PT_Uint8, PT_Uint8>(S, S.PC)) return false; |
| 47372 | #if USE_TAILCALLS |
| 47373 | MUSTTAIL return InterpNext(S); |
| 47374 | #else |
| 47375 | return true; |
| 47376 | #endif |
| 47377 | } |
| 47378 | PRESERVE_NONE |
| 47379 | static bool Interp_ShlUint8Sint16(InterpState &S) { |
| 47380 | if (!Shl<PT_Uint8, PT_Sint16>(S, S.PC)) return false; |
| 47381 | #if USE_TAILCALLS |
| 47382 | MUSTTAIL return InterpNext(S); |
| 47383 | #else |
| 47384 | return true; |
| 47385 | #endif |
| 47386 | } |
| 47387 | PRESERVE_NONE |
| 47388 | static bool Interp_ShlUint8Uint16(InterpState &S) { |
| 47389 | if (!Shl<PT_Uint8, PT_Uint16>(S, S.PC)) return false; |
| 47390 | #if USE_TAILCALLS |
| 47391 | MUSTTAIL return InterpNext(S); |
| 47392 | #else |
| 47393 | return true; |
| 47394 | #endif |
| 47395 | } |
| 47396 | PRESERVE_NONE |
| 47397 | static bool Interp_ShlUint8Sint32(InterpState &S) { |
| 47398 | if (!Shl<PT_Uint8, PT_Sint32>(S, S.PC)) return false; |
| 47399 | #if USE_TAILCALLS |
| 47400 | MUSTTAIL return InterpNext(S); |
| 47401 | #else |
| 47402 | return true; |
| 47403 | #endif |
| 47404 | } |
| 47405 | PRESERVE_NONE |
| 47406 | static bool Interp_ShlUint8Uint32(InterpState &S) { |
| 47407 | if (!Shl<PT_Uint8, PT_Uint32>(S, S.PC)) return false; |
| 47408 | #if USE_TAILCALLS |
| 47409 | MUSTTAIL return InterpNext(S); |
| 47410 | #else |
| 47411 | return true; |
| 47412 | #endif |
| 47413 | } |
| 47414 | PRESERVE_NONE |
| 47415 | static bool Interp_ShlUint8Sint64(InterpState &S) { |
| 47416 | if (!Shl<PT_Uint8, PT_Sint64>(S, S.PC)) return false; |
| 47417 | #if USE_TAILCALLS |
| 47418 | MUSTTAIL return InterpNext(S); |
| 47419 | #else |
| 47420 | return true; |
| 47421 | #endif |
| 47422 | } |
| 47423 | PRESERVE_NONE |
| 47424 | static bool Interp_ShlUint8Uint64(InterpState &S) { |
| 47425 | if (!Shl<PT_Uint8, PT_Uint64>(S, S.PC)) return false; |
| 47426 | #if USE_TAILCALLS |
| 47427 | MUSTTAIL return InterpNext(S); |
| 47428 | #else |
| 47429 | return true; |
| 47430 | #endif |
| 47431 | } |
| 47432 | PRESERVE_NONE |
| 47433 | static bool Interp_ShlUint8IntAP(InterpState &S) { |
| 47434 | if (!Shl<PT_Uint8, PT_IntAP>(S, S.PC)) return false; |
| 47435 | #if USE_TAILCALLS |
| 47436 | MUSTTAIL return InterpNext(S); |
| 47437 | #else |
| 47438 | return true; |
| 47439 | #endif |
| 47440 | } |
| 47441 | PRESERVE_NONE |
| 47442 | static bool Interp_ShlUint8IntAPS(InterpState &S) { |
| 47443 | if (!Shl<PT_Uint8, PT_IntAPS>(S, S.PC)) return false; |
| 47444 | #if USE_TAILCALLS |
| 47445 | MUSTTAIL return InterpNext(S); |
| 47446 | #else |
| 47447 | return true; |
| 47448 | #endif |
| 47449 | } |
| 47450 | PRESERVE_NONE |
| 47451 | static bool Interp_ShlSint16Sint8(InterpState &S) { |
| 47452 | if (!Shl<PT_Sint16, PT_Sint8>(S, S.PC)) return false; |
| 47453 | #if USE_TAILCALLS |
| 47454 | MUSTTAIL return InterpNext(S); |
| 47455 | #else |
| 47456 | return true; |
| 47457 | #endif |
| 47458 | } |
| 47459 | PRESERVE_NONE |
| 47460 | static bool Interp_ShlSint16Uint8(InterpState &S) { |
| 47461 | if (!Shl<PT_Sint16, PT_Uint8>(S, S.PC)) return false; |
| 47462 | #if USE_TAILCALLS |
| 47463 | MUSTTAIL return InterpNext(S); |
| 47464 | #else |
| 47465 | return true; |
| 47466 | #endif |
| 47467 | } |
| 47468 | PRESERVE_NONE |
| 47469 | static bool Interp_ShlSint16Sint16(InterpState &S) { |
| 47470 | if (!Shl<PT_Sint16, PT_Sint16>(S, S.PC)) return false; |
| 47471 | #if USE_TAILCALLS |
| 47472 | MUSTTAIL return InterpNext(S); |
| 47473 | #else |
| 47474 | return true; |
| 47475 | #endif |
| 47476 | } |
| 47477 | PRESERVE_NONE |
| 47478 | static bool Interp_ShlSint16Uint16(InterpState &S) { |
| 47479 | if (!Shl<PT_Sint16, PT_Uint16>(S, S.PC)) return false; |
| 47480 | #if USE_TAILCALLS |
| 47481 | MUSTTAIL return InterpNext(S); |
| 47482 | #else |
| 47483 | return true; |
| 47484 | #endif |
| 47485 | } |
| 47486 | PRESERVE_NONE |
| 47487 | static bool Interp_ShlSint16Sint32(InterpState &S) { |
| 47488 | if (!Shl<PT_Sint16, PT_Sint32>(S, S.PC)) return false; |
| 47489 | #if USE_TAILCALLS |
| 47490 | MUSTTAIL return InterpNext(S); |
| 47491 | #else |
| 47492 | return true; |
| 47493 | #endif |
| 47494 | } |
| 47495 | PRESERVE_NONE |
| 47496 | static bool Interp_ShlSint16Uint32(InterpState &S) { |
| 47497 | if (!Shl<PT_Sint16, PT_Uint32>(S, S.PC)) return false; |
| 47498 | #if USE_TAILCALLS |
| 47499 | MUSTTAIL return InterpNext(S); |
| 47500 | #else |
| 47501 | return true; |
| 47502 | #endif |
| 47503 | } |
| 47504 | PRESERVE_NONE |
| 47505 | static bool Interp_ShlSint16Sint64(InterpState &S) { |
| 47506 | if (!Shl<PT_Sint16, PT_Sint64>(S, S.PC)) return false; |
| 47507 | #if USE_TAILCALLS |
| 47508 | MUSTTAIL return InterpNext(S); |
| 47509 | #else |
| 47510 | return true; |
| 47511 | #endif |
| 47512 | } |
| 47513 | PRESERVE_NONE |
| 47514 | static bool Interp_ShlSint16Uint64(InterpState &S) { |
| 47515 | if (!Shl<PT_Sint16, PT_Uint64>(S, S.PC)) return false; |
| 47516 | #if USE_TAILCALLS |
| 47517 | MUSTTAIL return InterpNext(S); |
| 47518 | #else |
| 47519 | return true; |
| 47520 | #endif |
| 47521 | } |
| 47522 | PRESERVE_NONE |
| 47523 | static bool Interp_ShlSint16IntAP(InterpState &S) { |
| 47524 | if (!Shl<PT_Sint16, PT_IntAP>(S, S.PC)) return false; |
| 47525 | #if USE_TAILCALLS |
| 47526 | MUSTTAIL return InterpNext(S); |
| 47527 | #else |
| 47528 | return true; |
| 47529 | #endif |
| 47530 | } |
| 47531 | PRESERVE_NONE |
| 47532 | static bool Interp_ShlSint16IntAPS(InterpState &S) { |
| 47533 | if (!Shl<PT_Sint16, PT_IntAPS>(S, S.PC)) return false; |
| 47534 | #if USE_TAILCALLS |
| 47535 | MUSTTAIL return InterpNext(S); |
| 47536 | #else |
| 47537 | return true; |
| 47538 | #endif |
| 47539 | } |
| 47540 | PRESERVE_NONE |
| 47541 | static bool Interp_ShlUint16Sint8(InterpState &S) { |
| 47542 | if (!Shl<PT_Uint16, PT_Sint8>(S, S.PC)) return false; |
| 47543 | #if USE_TAILCALLS |
| 47544 | MUSTTAIL return InterpNext(S); |
| 47545 | #else |
| 47546 | return true; |
| 47547 | #endif |
| 47548 | } |
| 47549 | PRESERVE_NONE |
| 47550 | static bool Interp_ShlUint16Uint8(InterpState &S) { |
| 47551 | if (!Shl<PT_Uint16, PT_Uint8>(S, S.PC)) return false; |
| 47552 | #if USE_TAILCALLS |
| 47553 | MUSTTAIL return InterpNext(S); |
| 47554 | #else |
| 47555 | return true; |
| 47556 | #endif |
| 47557 | } |
| 47558 | PRESERVE_NONE |
| 47559 | static bool Interp_ShlUint16Sint16(InterpState &S) { |
| 47560 | if (!Shl<PT_Uint16, PT_Sint16>(S, S.PC)) return false; |
| 47561 | #if USE_TAILCALLS |
| 47562 | MUSTTAIL return InterpNext(S); |
| 47563 | #else |
| 47564 | return true; |
| 47565 | #endif |
| 47566 | } |
| 47567 | PRESERVE_NONE |
| 47568 | static bool Interp_ShlUint16Uint16(InterpState &S) { |
| 47569 | if (!Shl<PT_Uint16, PT_Uint16>(S, S.PC)) return false; |
| 47570 | #if USE_TAILCALLS |
| 47571 | MUSTTAIL return InterpNext(S); |
| 47572 | #else |
| 47573 | return true; |
| 47574 | #endif |
| 47575 | } |
| 47576 | PRESERVE_NONE |
| 47577 | static bool Interp_ShlUint16Sint32(InterpState &S) { |
| 47578 | if (!Shl<PT_Uint16, PT_Sint32>(S, S.PC)) return false; |
| 47579 | #if USE_TAILCALLS |
| 47580 | MUSTTAIL return InterpNext(S); |
| 47581 | #else |
| 47582 | return true; |
| 47583 | #endif |
| 47584 | } |
| 47585 | PRESERVE_NONE |
| 47586 | static bool Interp_ShlUint16Uint32(InterpState &S) { |
| 47587 | if (!Shl<PT_Uint16, PT_Uint32>(S, S.PC)) return false; |
| 47588 | #if USE_TAILCALLS |
| 47589 | MUSTTAIL return InterpNext(S); |
| 47590 | #else |
| 47591 | return true; |
| 47592 | #endif |
| 47593 | } |
| 47594 | PRESERVE_NONE |
| 47595 | static bool Interp_ShlUint16Sint64(InterpState &S) { |
| 47596 | if (!Shl<PT_Uint16, PT_Sint64>(S, S.PC)) return false; |
| 47597 | #if USE_TAILCALLS |
| 47598 | MUSTTAIL return InterpNext(S); |
| 47599 | #else |
| 47600 | return true; |
| 47601 | #endif |
| 47602 | } |
| 47603 | PRESERVE_NONE |
| 47604 | static bool Interp_ShlUint16Uint64(InterpState &S) { |
| 47605 | if (!Shl<PT_Uint16, PT_Uint64>(S, S.PC)) return false; |
| 47606 | #if USE_TAILCALLS |
| 47607 | MUSTTAIL return InterpNext(S); |
| 47608 | #else |
| 47609 | return true; |
| 47610 | #endif |
| 47611 | } |
| 47612 | PRESERVE_NONE |
| 47613 | static bool Interp_ShlUint16IntAP(InterpState &S) { |
| 47614 | if (!Shl<PT_Uint16, PT_IntAP>(S, S.PC)) return false; |
| 47615 | #if USE_TAILCALLS |
| 47616 | MUSTTAIL return InterpNext(S); |
| 47617 | #else |
| 47618 | return true; |
| 47619 | #endif |
| 47620 | } |
| 47621 | PRESERVE_NONE |
| 47622 | static bool Interp_ShlUint16IntAPS(InterpState &S) { |
| 47623 | if (!Shl<PT_Uint16, PT_IntAPS>(S, S.PC)) return false; |
| 47624 | #if USE_TAILCALLS |
| 47625 | MUSTTAIL return InterpNext(S); |
| 47626 | #else |
| 47627 | return true; |
| 47628 | #endif |
| 47629 | } |
| 47630 | PRESERVE_NONE |
| 47631 | static bool Interp_ShlSint32Sint8(InterpState &S) { |
| 47632 | if (!Shl<PT_Sint32, PT_Sint8>(S, S.PC)) return false; |
| 47633 | #if USE_TAILCALLS |
| 47634 | MUSTTAIL return InterpNext(S); |
| 47635 | #else |
| 47636 | return true; |
| 47637 | #endif |
| 47638 | } |
| 47639 | PRESERVE_NONE |
| 47640 | static bool Interp_ShlSint32Uint8(InterpState &S) { |
| 47641 | if (!Shl<PT_Sint32, PT_Uint8>(S, S.PC)) return false; |
| 47642 | #if USE_TAILCALLS |
| 47643 | MUSTTAIL return InterpNext(S); |
| 47644 | #else |
| 47645 | return true; |
| 47646 | #endif |
| 47647 | } |
| 47648 | PRESERVE_NONE |
| 47649 | static bool Interp_ShlSint32Sint16(InterpState &S) { |
| 47650 | if (!Shl<PT_Sint32, PT_Sint16>(S, S.PC)) return false; |
| 47651 | #if USE_TAILCALLS |
| 47652 | MUSTTAIL return InterpNext(S); |
| 47653 | #else |
| 47654 | return true; |
| 47655 | #endif |
| 47656 | } |
| 47657 | PRESERVE_NONE |
| 47658 | static bool Interp_ShlSint32Uint16(InterpState &S) { |
| 47659 | if (!Shl<PT_Sint32, PT_Uint16>(S, S.PC)) return false; |
| 47660 | #if USE_TAILCALLS |
| 47661 | MUSTTAIL return InterpNext(S); |
| 47662 | #else |
| 47663 | return true; |
| 47664 | #endif |
| 47665 | } |
| 47666 | PRESERVE_NONE |
| 47667 | static bool Interp_ShlSint32Sint32(InterpState &S) { |
| 47668 | if (!Shl<PT_Sint32, PT_Sint32>(S, S.PC)) return false; |
| 47669 | #if USE_TAILCALLS |
| 47670 | MUSTTAIL return InterpNext(S); |
| 47671 | #else |
| 47672 | return true; |
| 47673 | #endif |
| 47674 | } |
| 47675 | PRESERVE_NONE |
| 47676 | static bool Interp_ShlSint32Uint32(InterpState &S) { |
| 47677 | if (!Shl<PT_Sint32, PT_Uint32>(S, S.PC)) return false; |
| 47678 | #if USE_TAILCALLS |
| 47679 | MUSTTAIL return InterpNext(S); |
| 47680 | #else |
| 47681 | return true; |
| 47682 | #endif |
| 47683 | } |
| 47684 | PRESERVE_NONE |
| 47685 | static bool Interp_ShlSint32Sint64(InterpState &S) { |
| 47686 | if (!Shl<PT_Sint32, PT_Sint64>(S, S.PC)) return false; |
| 47687 | #if USE_TAILCALLS |
| 47688 | MUSTTAIL return InterpNext(S); |
| 47689 | #else |
| 47690 | return true; |
| 47691 | #endif |
| 47692 | } |
| 47693 | PRESERVE_NONE |
| 47694 | static bool Interp_ShlSint32Uint64(InterpState &S) { |
| 47695 | if (!Shl<PT_Sint32, PT_Uint64>(S, S.PC)) return false; |
| 47696 | #if USE_TAILCALLS |
| 47697 | MUSTTAIL return InterpNext(S); |
| 47698 | #else |
| 47699 | return true; |
| 47700 | #endif |
| 47701 | } |
| 47702 | PRESERVE_NONE |
| 47703 | static bool Interp_ShlSint32IntAP(InterpState &S) { |
| 47704 | if (!Shl<PT_Sint32, PT_IntAP>(S, S.PC)) return false; |
| 47705 | #if USE_TAILCALLS |
| 47706 | MUSTTAIL return InterpNext(S); |
| 47707 | #else |
| 47708 | return true; |
| 47709 | #endif |
| 47710 | } |
| 47711 | PRESERVE_NONE |
| 47712 | static bool Interp_ShlSint32IntAPS(InterpState &S) { |
| 47713 | if (!Shl<PT_Sint32, PT_IntAPS>(S, S.PC)) return false; |
| 47714 | #if USE_TAILCALLS |
| 47715 | MUSTTAIL return InterpNext(S); |
| 47716 | #else |
| 47717 | return true; |
| 47718 | #endif |
| 47719 | } |
| 47720 | PRESERVE_NONE |
| 47721 | static bool Interp_ShlUint32Sint8(InterpState &S) { |
| 47722 | if (!Shl<PT_Uint32, PT_Sint8>(S, S.PC)) return false; |
| 47723 | #if USE_TAILCALLS |
| 47724 | MUSTTAIL return InterpNext(S); |
| 47725 | #else |
| 47726 | return true; |
| 47727 | #endif |
| 47728 | } |
| 47729 | PRESERVE_NONE |
| 47730 | static bool Interp_ShlUint32Uint8(InterpState &S) { |
| 47731 | if (!Shl<PT_Uint32, PT_Uint8>(S, S.PC)) return false; |
| 47732 | #if USE_TAILCALLS |
| 47733 | MUSTTAIL return InterpNext(S); |
| 47734 | #else |
| 47735 | return true; |
| 47736 | #endif |
| 47737 | } |
| 47738 | PRESERVE_NONE |
| 47739 | static bool Interp_ShlUint32Sint16(InterpState &S) { |
| 47740 | if (!Shl<PT_Uint32, PT_Sint16>(S, S.PC)) return false; |
| 47741 | #if USE_TAILCALLS |
| 47742 | MUSTTAIL return InterpNext(S); |
| 47743 | #else |
| 47744 | return true; |
| 47745 | #endif |
| 47746 | } |
| 47747 | PRESERVE_NONE |
| 47748 | static bool Interp_ShlUint32Uint16(InterpState &S) { |
| 47749 | if (!Shl<PT_Uint32, PT_Uint16>(S, S.PC)) return false; |
| 47750 | #if USE_TAILCALLS |
| 47751 | MUSTTAIL return InterpNext(S); |
| 47752 | #else |
| 47753 | return true; |
| 47754 | #endif |
| 47755 | } |
| 47756 | PRESERVE_NONE |
| 47757 | static bool Interp_ShlUint32Sint32(InterpState &S) { |
| 47758 | if (!Shl<PT_Uint32, PT_Sint32>(S, S.PC)) return false; |
| 47759 | #if USE_TAILCALLS |
| 47760 | MUSTTAIL return InterpNext(S); |
| 47761 | #else |
| 47762 | return true; |
| 47763 | #endif |
| 47764 | } |
| 47765 | PRESERVE_NONE |
| 47766 | static bool Interp_ShlUint32Uint32(InterpState &S) { |
| 47767 | if (!Shl<PT_Uint32, PT_Uint32>(S, S.PC)) return false; |
| 47768 | #if USE_TAILCALLS |
| 47769 | MUSTTAIL return InterpNext(S); |
| 47770 | #else |
| 47771 | return true; |
| 47772 | #endif |
| 47773 | } |
| 47774 | PRESERVE_NONE |
| 47775 | static bool Interp_ShlUint32Sint64(InterpState &S) { |
| 47776 | if (!Shl<PT_Uint32, PT_Sint64>(S, S.PC)) return false; |
| 47777 | #if USE_TAILCALLS |
| 47778 | MUSTTAIL return InterpNext(S); |
| 47779 | #else |
| 47780 | return true; |
| 47781 | #endif |
| 47782 | } |
| 47783 | PRESERVE_NONE |
| 47784 | static bool Interp_ShlUint32Uint64(InterpState &S) { |
| 47785 | if (!Shl<PT_Uint32, PT_Uint64>(S, S.PC)) return false; |
| 47786 | #if USE_TAILCALLS |
| 47787 | MUSTTAIL return InterpNext(S); |
| 47788 | #else |
| 47789 | return true; |
| 47790 | #endif |
| 47791 | } |
| 47792 | PRESERVE_NONE |
| 47793 | static bool Interp_ShlUint32IntAP(InterpState &S) { |
| 47794 | if (!Shl<PT_Uint32, PT_IntAP>(S, S.PC)) return false; |
| 47795 | #if USE_TAILCALLS |
| 47796 | MUSTTAIL return InterpNext(S); |
| 47797 | #else |
| 47798 | return true; |
| 47799 | #endif |
| 47800 | } |
| 47801 | PRESERVE_NONE |
| 47802 | static bool Interp_ShlUint32IntAPS(InterpState &S) { |
| 47803 | if (!Shl<PT_Uint32, PT_IntAPS>(S, S.PC)) return false; |
| 47804 | #if USE_TAILCALLS |
| 47805 | MUSTTAIL return InterpNext(S); |
| 47806 | #else |
| 47807 | return true; |
| 47808 | #endif |
| 47809 | } |
| 47810 | PRESERVE_NONE |
| 47811 | static bool Interp_ShlSint64Sint8(InterpState &S) { |
| 47812 | if (!Shl<PT_Sint64, PT_Sint8>(S, S.PC)) return false; |
| 47813 | #if USE_TAILCALLS |
| 47814 | MUSTTAIL return InterpNext(S); |
| 47815 | #else |
| 47816 | return true; |
| 47817 | #endif |
| 47818 | } |
| 47819 | PRESERVE_NONE |
| 47820 | static bool Interp_ShlSint64Uint8(InterpState &S) { |
| 47821 | if (!Shl<PT_Sint64, PT_Uint8>(S, S.PC)) return false; |
| 47822 | #if USE_TAILCALLS |
| 47823 | MUSTTAIL return InterpNext(S); |
| 47824 | #else |
| 47825 | return true; |
| 47826 | #endif |
| 47827 | } |
| 47828 | PRESERVE_NONE |
| 47829 | static bool Interp_ShlSint64Sint16(InterpState &S) { |
| 47830 | if (!Shl<PT_Sint64, PT_Sint16>(S, S.PC)) return false; |
| 47831 | #if USE_TAILCALLS |
| 47832 | MUSTTAIL return InterpNext(S); |
| 47833 | #else |
| 47834 | return true; |
| 47835 | #endif |
| 47836 | } |
| 47837 | PRESERVE_NONE |
| 47838 | static bool Interp_ShlSint64Uint16(InterpState &S) { |
| 47839 | if (!Shl<PT_Sint64, PT_Uint16>(S, S.PC)) return false; |
| 47840 | #if USE_TAILCALLS |
| 47841 | MUSTTAIL return InterpNext(S); |
| 47842 | #else |
| 47843 | return true; |
| 47844 | #endif |
| 47845 | } |
| 47846 | PRESERVE_NONE |
| 47847 | static bool Interp_ShlSint64Sint32(InterpState &S) { |
| 47848 | if (!Shl<PT_Sint64, PT_Sint32>(S, S.PC)) return false; |
| 47849 | #if USE_TAILCALLS |
| 47850 | MUSTTAIL return InterpNext(S); |
| 47851 | #else |
| 47852 | return true; |
| 47853 | #endif |
| 47854 | } |
| 47855 | PRESERVE_NONE |
| 47856 | static bool Interp_ShlSint64Uint32(InterpState &S) { |
| 47857 | if (!Shl<PT_Sint64, PT_Uint32>(S, S.PC)) return false; |
| 47858 | #if USE_TAILCALLS |
| 47859 | MUSTTAIL return InterpNext(S); |
| 47860 | #else |
| 47861 | return true; |
| 47862 | #endif |
| 47863 | } |
| 47864 | PRESERVE_NONE |
| 47865 | static bool Interp_ShlSint64Sint64(InterpState &S) { |
| 47866 | if (!Shl<PT_Sint64, PT_Sint64>(S, S.PC)) return false; |
| 47867 | #if USE_TAILCALLS |
| 47868 | MUSTTAIL return InterpNext(S); |
| 47869 | #else |
| 47870 | return true; |
| 47871 | #endif |
| 47872 | } |
| 47873 | PRESERVE_NONE |
| 47874 | static bool Interp_ShlSint64Uint64(InterpState &S) { |
| 47875 | if (!Shl<PT_Sint64, PT_Uint64>(S, S.PC)) return false; |
| 47876 | #if USE_TAILCALLS |
| 47877 | MUSTTAIL return InterpNext(S); |
| 47878 | #else |
| 47879 | return true; |
| 47880 | #endif |
| 47881 | } |
| 47882 | PRESERVE_NONE |
| 47883 | static bool Interp_ShlSint64IntAP(InterpState &S) { |
| 47884 | if (!Shl<PT_Sint64, PT_IntAP>(S, S.PC)) return false; |
| 47885 | #if USE_TAILCALLS |
| 47886 | MUSTTAIL return InterpNext(S); |
| 47887 | #else |
| 47888 | return true; |
| 47889 | #endif |
| 47890 | } |
| 47891 | PRESERVE_NONE |
| 47892 | static bool Interp_ShlSint64IntAPS(InterpState &S) { |
| 47893 | if (!Shl<PT_Sint64, PT_IntAPS>(S, S.PC)) return false; |
| 47894 | #if USE_TAILCALLS |
| 47895 | MUSTTAIL return InterpNext(S); |
| 47896 | #else |
| 47897 | return true; |
| 47898 | #endif |
| 47899 | } |
| 47900 | PRESERVE_NONE |
| 47901 | static bool Interp_ShlUint64Sint8(InterpState &S) { |
| 47902 | if (!Shl<PT_Uint64, PT_Sint8>(S, S.PC)) return false; |
| 47903 | #if USE_TAILCALLS |
| 47904 | MUSTTAIL return InterpNext(S); |
| 47905 | #else |
| 47906 | return true; |
| 47907 | #endif |
| 47908 | } |
| 47909 | PRESERVE_NONE |
| 47910 | static bool Interp_ShlUint64Uint8(InterpState &S) { |
| 47911 | if (!Shl<PT_Uint64, PT_Uint8>(S, S.PC)) return false; |
| 47912 | #if USE_TAILCALLS |
| 47913 | MUSTTAIL return InterpNext(S); |
| 47914 | #else |
| 47915 | return true; |
| 47916 | #endif |
| 47917 | } |
| 47918 | PRESERVE_NONE |
| 47919 | static bool Interp_ShlUint64Sint16(InterpState &S) { |
| 47920 | if (!Shl<PT_Uint64, PT_Sint16>(S, S.PC)) return false; |
| 47921 | #if USE_TAILCALLS |
| 47922 | MUSTTAIL return InterpNext(S); |
| 47923 | #else |
| 47924 | return true; |
| 47925 | #endif |
| 47926 | } |
| 47927 | PRESERVE_NONE |
| 47928 | static bool Interp_ShlUint64Uint16(InterpState &S) { |
| 47929 | if (!Shl<PT_Uint64, PT_Uint16>(S, S.PC)) return false; |
| 47930 | #if USE_TAILCALLS |
| 47931 | MUSTTAIL return InterpNext(S); |
| 47932 | #else |
| 47933 | return true; |
| 47934 | #endif |
| 47935 | } |
| 47936 | PRESERVE_NONE |
| 47937 | static bool Interp_ShlUint64Sint32(InterpState &S) { |
| 47938 | if (!Shl<PT_Uint64, PT_Sint32>(S, S.PC)) return false; |
| 47939 | #if USE_TAILCALLS |
| 47940 | MUSTTAIL return InterpNext(S); |
| 47941 | #else |
| 47942 | return true; |
| 47943 | #endif |
| 47944 | } |
| 47945 | PRESERVE_NONE |
| 47946 | static bool Interp_ShlUint64Uint32(InterpState &S) { |
| 47947 | if (!Shl<PT_Uint64, PT_Uint32>(S, S.PC)) return false; |
| 47948 | #if USE_TAILCALLS |
| 47949 | MUSTTAIL return InterpNext(S); |
| 47950 | #else |
| 47951 | return true; |
| 47952 | #endif |
| 47953 | } |
| 47954 | PRESERVE_NONE |
| 47955 | static bool Interp_ShlUint64Sint64(InterpState &S) { |
| 47956 | if (!Shl<PT_Uint64, PT_Sint64>(S, S.PC)) return false; |
| 47957 | #if USE_TAILCALLS |
| 47958 | MUSTTAIL return InterpNext(S); |
| 47959 | #else |
| 47960 | return true; |
| 47961 | #endif |
| 47962 | } |
| 47963 | PRESERVE_NONE |
| 47964 | static bool Interp_ShlUint64Uint64(InterpState &S) { |
| 47965 | if (!Shl<PT_Uint64, PT_Uint64>(S, S.PC)) return false; |
| 47966 | #if USE_TAILCALLS |
| 47967 | MUSTTAIL return InterpNext(S); |
| 47968 | #else |
| 47969 | return true; |
| 47970 | #endif |
| 47971 | } |
| 47972 | PRESERVE_NONE |
| 47973 | static bool Interp_ShlUint64IntAP(InterpState &S) { |
| 47974 | if (!Shl<PT_Uint64, PT_IntAP>(S, S.PC)) return false; |
| 47975 | #if USE_TAILCALLS |
| 47976 | MUSTTAIL return InterpNext(S); |
| 47977 | #else |
| 47978 | return true; |
| 47979 | #endif |
| 47980 | } |
| 47981 | PRESERVE_NONE |
| 47982 | static bool Interp_ShlUint64IntAPS(InterpState &S) { |
| 47983 | if (!Shl<PT_Uint64, PT_IntAPS>(S, S.PC)) return false; |
| 47984 | #if USE_TAILCALLS |
| 47985 | MUSTTAIL return InterpNext(S); |
| 47986 | #else |
| 47987 | return true; |
| 47988 | #endif |
| 47989 | } |
| 47990 | PRESERVE_NONE |
| 47991 | static bool Interp_ShlIntAPSint8(InterpState &S) { |
| 47992 | if (!Shl<PT_IntAP, PT_Sint8>(S, S.PC)) return false; |
| 47993 | #if USE_TAILCALLS |
| 47994 | MUSTTAIL return InterpNext(S); |
| 47995 | #else |
| 47996 | return true; |
| 47997 | #endif |
| 47998 | } |
| 47999 | PRESERVE_NONE |
| 48000 | static bool Interp_ShlIntAPUint8(InterpState &S) { |
| 48001 | if (!Shl<PT_IntAP, PT_Uint8>(S, S.PC)) return false; |
| 48002 | #if USE_TAILCALLS |
| 48003 | MUSTTAIL return InterpNext(S); |
| 48004 | #else |
| 48005 | return true; |
| 48006 | #endif |
| 48007 | } |
| 48008 | PRESERVE_NONE |
| 48009 | static bool Interp_ShlIntAPSint16(InterpState &S) { |
| 48010 | if (!Shl<PT_IntAP, PT_Sint16>(S, S.PC)) return false; |
| 48011 | #if USE_TAILCALLS |
| 48012 | MUSTTAIL return InterpNext(S); |
| 48013 | #else |
| 48014 | return true; |
| 48015 | #endif |
| 48016 | } |
| 48017 | PRESERVE_NONE |
| 48018 | static bool Interp_ShlIntAPUint16(InterpState &S) { |
| 48019 | if (!Shl<PT_IntAP, PT_Uint16>(S, S.PC)) return false; |
| 48020 | #if USE_TAILCALLS |
| 48021 | MUSTTAIL return InterpNext(S); |
| 48022 | #else |
| 48023 | return true; |
| 48024 | #endif |
| 48025 | } |
| 48026 | PRESERVE_NONE |
| 48027 | static bool Interp_ShlIntAPSint32(InterpState &S) { |
| 48028 | if (!Shl<PT_IntAP, PT_Sint32>(S, S.PC)) return false; |
| 48029 | #if USE_TAILCALLS |
| 48030 | MUSTTAIL return InterpNext(S); |
| 48031 | #else |
| 48032 | return true; |
| 48033 | #endif |
| 48034 | } |
| 48035 | PRESERVE_NONE |
| 48036 | static bool Interp_ShlIntAPUint32(InterpState &S) { |
| 48037 | if (!Shl<PT_IntAP, PT_Uint32>(S, S.PC)) return false; |
| 48038 | #if USE_TAILCALLS |
| 48039 | MUSTTAIL return InterpNext(S); |
| 48040 | #else |
| 48041 | return true; |
| 48042 | #endif |
| 48043 | } |
| 48044 | PRESERVE_NONE |
| 48045 | static bool Interp_ShlIntAPSint64(InterpState &S) { |
| 48046 | if (!Shl<PT_IntAP, PT_Sint64>(S, S.PC)) return false; |
| 48047 | #if USE_TAILCALLS |
| 48048 | MUSTTAIL return InterpNext(S); |
| 48049 | #else |
| 48050 | return true; |
| 48051 | #endif |
| 48052 | } |
| 48053 | PRESERVE_NONE |
| 48054 | static bool Interp_ShlIntAPUint64(InterpState &S) { |
| 48055 | if (!Shl<PT_IntAP, PT_Uint64>(S, S.PC)) return false; |
| 48056 | #if USE_TAILCALLS |
| 48057 | MUSTTAIL return InterpNext(S); |
| 48058 | #else |
| 48059 | return true; |
| 48060 | #endif |
| 48061 | } |
| 48062 | PRESERVE_NONE |
| 48063 | static bool Interp_ShlIntAPIntAP(InterpState &S) { |
| 48064 | if (!Shl<PT_IntAP, PT_IntAP>(S, S.PC)) return false; |
| 48065 | #if USE_TAILCALLS |
| 48066 | MUSTTAIL return InterpNext(S); |
| 48067 | #else |
| 48068 | return true; |
| 48069 | #endif |
| 48070 | } |
| 48071 | PRESERVE_NONE |
| 48072 | static bool Interp_ShlIntAPIntAPS(InterpState &S) { |
| 48073 | if (!Shl<PT_IntAP, PT_IntAPS>(S, S.PC)) return false; |
| 48074 | #if USE_TAILCALLS |
| 48075 | MUSTTAIL return InterpNext(S); |
| 48076 | #else |
| 48077 | return true; |
| 48078 | #endif |
| 48079 | } |
| 48080 | PRESERVE_NONE |
| 48081 | static bool Interp_ShlIntAPSSint8(InterpState &S) { |
| 48082 | if (!Shl<PT_IntAPS, PT_Sint8>(S, S.PC)) return false; |
| 48083 | #if USE_TAILCALLS |
| 48084 | MUSTTAIL return InterpNext(S); |
| 48085 | #else |
| 48086 | return true; |
| 48087 | #endif |
| 48088 | } |
| 48089 | PRESERVE_NONE |
| 48090 | static bool Interp_ShlIntAPSUint8(InterpState &S) { |
| 48091 | if (!Shl<PT_IntAPS, PT_Uint8>(S, S.PC)) return false; |
| 48092 | #if USE_TAILCALLS |
| 48093 | MUSTTAIL return InterpNext(S); |
| 48094 | #else |
| 48095 | return true; |
| 48096 | #endif |
| 48097 | } |
| 48098 | PRESERVE_NONE |
| 48099 | static bool Interp_ShlIntAPSSint16(InterpState &S) { |
| 48100 | if (!Shl<PT_IntAPS, PT_Sint16>(S, S.PC)) return false; |
| 48101 | #if USE_TAILCALLS |
| 48102 | MUSTTAIL return InterpNext(S); |
| 48103 | #else |
| 48104 | return true; |
| 48105 | #endif |
| 48106 | } |
| 48107 | PRESERVE_NONE |
| 48108 | static bool Interp_ShlIntAPSUint16(InterpState &S) { |
| 48109 | if (!Shl<PT_IntAPS, PT_Uint16>(S, S.PC)) return false; |
| 48110 | #if USE_TAILCALLS |
| 48111 | MUSTTAIL return InterpNext(S); |
| 48112 | #else |
| 48113 | return true; |
| 48114 | #endif |
| 48115 | } |
| 48116 | PRESERVE_NONE |
| 48117 | static bool Interp_ShlIntAPSSint32(InterpState &S) { |
| 48118 | if (!Shl<PT_IntAPS, PT_Sint32>(S, S.PC)) return false; |
| 48119 | #if USE_TAILCALLS |
| 48120 | MUSTTAIL return InterpNext(S); |
| 48121 | #else |
| 48122 | return true; |
| 48123 | #endif |
| 48124 | } |
| 48125 | PRESERVE_NONE |
| 48126 | static bool Interp_ShlIntAPSUint32(InterpState &S) { |
| 48127 | if (!Shl<PT_IntAPS, PT_Uint32>(S, S.PC)) return false; |
| 48128 | #if USE_TAILCALLS |
| 48129 | MUSTTAIL return InterpNext(S); |
| 48130 | #else |
| 48131 | return true; |
| 48132 | #endif |
| 48133 | } |
| 48134 | PRESERVE_NONE |
| 48135 | static bool Interp_ShlIntAPSSint64(InterpState &S) { |
| 48136 | if (!Shl<PT_IntAPS, PT_Sint64>(S, S.PC)) return false; |
| 48137 | #if USE_TAILCALLS |
| 48138 | MUSTTAIL return InterpNext(S); |
| 48139 | #else |
| 48140 | return true; |
| 48141 | #endif |
| 48142 | } |
| 48143 | PRESERVE_NONE |
| 48144 | static bool Interp_ShlIntAPSUint64(InterpState &S) { |
| 48145 | if (!Shl<PT_IntAPS, PT_Uint64>(S, S.PC)) return false; |
| 48146 | #if USE_TAILCALLS |
| 48147 | MUSTTAIL return InterpNext(S); |
| 48148 | #else |
| 48149 | return true; |
| 48150 | #endif |
| 48151 | } |
| 48152 | PRESERVE_NONE |
| 48153 | static bool Interp_ShlIntAPSIntAP(InterpState &S) { |
| 48154 | if (!Shl<PT_IntAPS, PT_IntAP>(S, S.PC)) return false; |
| 48155 | #if USE_TAILCALLS |
| 48156 | MUSTTAIL return InterpNext(S); |
| 48157 | #else |
| 48158 | return true; |
| 48159 | #endif |
| 48160 | } |
| 48161 | PRESERVE_NONE |
| 48162 | static bool Interp_ShlIntAPSIntAPS(InterpState &S) { |
| 48163 | if (!Shl<PT_IntAPS, PT_IntAPS>(S, S.PC)) return false; |
| 48164 | #if USE_TAILCALLS |
| 48165 | MUSTTAIL return InterpNext(S); |
| 48166 | #else |
| 48167 | return true; |
| 48168 | #endif |
| 48169 | } |
| 48170 | #endif |
| 48171 | #ifdef GET_DISASM |
| 48172 | case OP_ShlSint8Sint8: |
| 48173 | Text.Op = PrintName("ShlSint8Sint8" ); |
| 48174 | break; |
| 48175 | case OP_ShlSint8Uint8: |
| 48176 | Text.Op = PrintName("ShlSint8Uint8" ); |
| 48177 | break; |
| 48178 | case OP_ShlSint8Sint16: |
| 48179 | Text.Op = PrintName("ShlSint8Sint16" ); |
| 48180 | break; |
| 48181 | case OP_ShlSint8Uint16: |
| 48182 | Text.Op = PrintName("ShlSint8Uint16" ); |
| 48183 | break; |
| 48184 | case OP_ShlSint8Sint32: |
| 48185 | Text.Op = PrintName("ShlSint8Sint32" ); |
| 48186 | break; |
| 48187 | case OP_ShlSint8Uint32: |
| 48188 | Text.Op = PrintName("ShlSint8Uint32" ); |
| 48189 | break; |
| 48190 | case OP_ShlSint8Sint64: |
| 48191 | Text.Op = PrintName("ShlSint8Sint64" ); |
| 48192 | break; |
| 48193 | case OP_ShlSint8Uint64: |
| 48194 | Text.Op = PrintName("ShlSint8Uint64" ); |
| 48195 | break; |
| 48196 | case OP_ShlSint8IntAP: |
| 48197 | Text.Op = PrintName("ShlSint8IntAP" ); |
| 48198 | break; |
| 48199 | case OP_ShlSint8IntAPS: |
| 48200 | Text.Op = PrintName("ShlSint8IntAPS" ); |
| 48201 | break; |
| 48202 | case OP_ShlUint8Sint8: |
| 48203 | Text.Op = PrintName("ShlUint8Sint8" ); |
| 48204 | break; |
| 48205 | case OP_ShlUint8Uint8: |
| 48206 | Text.Op = PrintName("ShlUint8Uint8" ); |
| 48207 | break; |
| 48208 | case OP_ShlUint8Sint16: |
| 48209 | Text.Op = PrintName("ShlUint8Sint16" ); |
| 48210 | break; |
| 48211 | case OP_ShlUint8Uint16: |
| 48212 | Text.Op = PrintName("ShlUint8Uint16" ); |
| 48213 | break; |
| 48214 | case OP_ShlUint8Sint32: |
| 48215 | Text.Op = PrintName("ShlUint8Sint32" ); |
| 48216 | break; |
| 48217 | case OP_ShlUint8Uint32: |
| 48218 | Text.Op = PrintName("ShlUint8Uint32" ); |
| 48219 | break; |
| 48220 | case OP_ShlUint8Sint64: |
| 48221 | Text.Op = PrintName("ShlUint8Sint64" ); |
| 48222 | break; |
| 48223 | case OP_ShlUint8Uint64: |
| 48224 | Text.Op = PrintName("ShlUint8Uint64" ); |
| 48225 | break; |
| 48226 | case OP_ShlUint8IntAP: |
| 48227 | Text.Op = PrintName("ShlUint8IntAP" ); |
| 48228 | break; |
| 48229 | case OP_ShlUint8IntAPS: |
| 48230 | Text.Op = PrintName("ShlUint8IntAPS" ); |
| 48231 | break; |
| 48232 | case OP_ShlSint16Sint8: |
| 48233 | Text.Op = PrintName("ShlSint16Sint8" ); |
| 48234 | break; |
| 48235 | case OP_ShlSint16Uint8: |
| 48236 | Text.Op = PrintName("ShlSint16Uint8" ); |
| 48237 | break; |
| 48238 | case OP_ShlSint16Sint16: |
| 48239 | Text.Op = PrintName("ShlSint16Sint16" ); |
| 48240 | break; |
| 48241 | case OP_ShlSint16Uint16: |
| 48242 | Text.Op = PrintName("ShlSint16Uint16" ); |
| 48243 | break; |
| 48244 | case OP_ShlSint16Sint32: |
| 48245 | Text.Op = PrintName("ShlSint16Sint32" ); |
| 48246 | break; |
| 48247 | case OP_ShlSint16Uint32: |
| 48248 | Text.Op = PrintName("ShlSint16Uint32" ); |
| 48249 | break; |
| 48250 | case OP_ShlSint16Sint64: |
| 48251 | Text.Op = PrintName("ShlSint16Sint64" ); |
| 48252 | break; |
| 48253 | case OP_ShlSint16Uint64: |
| 48254 | Text.Op = PrintName("ShlSint16Uint64" ); |
| 48255 | break; |
| 48256 | case OP_ShlSint16IntAP: |
| 48257 | Text.Op = PrintName("ShlSint16IntAP" ); |
| 48258 | break; |
| 48259 | case OP_ShlSint16IntAPS: |
| 48260 | Text.Op = PrintName("ShlSint16IntAPS" ); |
| 48261 | break; |
| 48262 | case OP_ShlUint16Sint8: |
| 48263 | Text.Op = PrintName("ShlUint16Sint8" ); |
| 48264 | break; |
| 48265 | case OP_ShlUint16Uint8: |
| 48266 | Text.Op = PrintName("ShlUint16Uint8" ); |
| 48267 | break; |
| 48268 | case OP_ShlUint16Sint16: |
| 48269 | Text.Op = PrintName("ShlUint16Sint16" ); |
| 48270 | break; |
| 48271 | case OP_ShlUint16Uint16: |
| 48272 | Text.Op = PrintName("ShlUint16Uint16" ); |
| 48273 | break; |
| 48274 | case OP_ShlUint16Sint32: |
| 48275 | Text.Op = PrintName("ShlUint16Sint32" ); |
| 48276 | break; |
| 48277 | case OP_ShlUint16Uint32: |
| 48278 | Text.Op = PrintName("ShlUint16Uint32" ); |
| 48279 | break; |
| 48280 | case OP_ShlUint16Sint64: |
| 48281 | Text.Op = PrintName("ShlUint16Sint64" ); |
| 48282 | break; |
| 48283 | case OP_ShlUint16Uint64: |
| 48284 | Text.Op = PrintName("ShlUint16Uint64" ); |
| 48285 | break; |
| 48286 | case OP_ShlUint16IntAP: |
| 48287 | Text.Op = PrintName("ShlUint16IntAP" ); |
| 48288 | break; |
| 48289 | case OP_ShlUint16IntAPS: |
| 48290 | Text.Op = PrintName("ShlUint16IntAPS" ); |
| 48291 | break; |
| 48292 | case OP_ShlSint32Sint8: |
| 48293 | Text.Op = PrintName("ShlSint32Sint8" ); |
| 48294 | break; |
| 48295 | case OP_ShlSint32Uint8: |
| 48296 | Text.Op = PrintName("ShlSint32Uint8" ); |
| 48297 | break; |
| 48298 | case OP_ShlSint32Sint16: |
| 48299 | Text.Op = PrintName("ShlSint32Sint16" ); |
| 48300 | break; |
| 48301 | case OP_ShlSint32Uint16: |
| 48302 | Text.Op = PrintName("ShlSint32Uint16" ); |
| 48303 | break; |
| 48304 | case OP_ShlSint32Sint32: |
| 48305 | Text.Op = PrintName("ShlSint32Sint32" ); |
| 48306 | break; |
| 48307 | case OP_ShlSint32Uint32: |
| 48308 | Text.Op = PrintName("ShlSint32Uint32" ); |
| 48309 | break; |
| 48310 | case OP_ShlSint32Sint64: |
| 48311 | Text.Op = PrintName("ShlSint32Sint64" ); |
| 48312 | break; |
| 48313 | case OP_ShlSint32Uint64: |
| 48314 | Text.Op = PrintName("ShlSint32Uint64" ); |
| 48315 | break; |
| 48316 | case OP_ShlSint32IntAP: |
| 48317 | Text.Op = PrintName("ShlSint32IntAP" ); |
| 48318 | break; |
| 48319 | case OP_ShlSint32IntAPS: |
| 48320 | Text.Op = PrintName("ShlSint32IntAPS" ); |
| 48321 | break; |
| 48322 | case OP_ShlUint32Sint8: |
| 48323 | Text.Op = PrintName("ShlUint32Sint8" ); |
| 48324 | break; |
| 48325 | case OP_ShlUint32Uint8: |
| 48326 | Text.Op = PrintName("ShlUint32Uint8" ); |
| 48327 | break; |
| 48328 | case OP_ShlUint32Sint16: |
| 48329 | Text.Op = PrintName("ShlUint32Sint16" ); |
| 48330 | break; |
| 48331 | case OP_ShlUint32Uint16: |
| 48332 | Text.Op = PrintName("ShlUint32Uint16" ); |
| 48333 | break; |
| 48334 | case OP_ShlUint32Sint32: |
| 48335 | Text.Op = PrintName("ShlUint32Sint32" ); |
| 48336 | break; |
| 48337 | case OP_ShlUint32Uint32: |
| 48338 | Text.Op = PrintName("ShlUint32Uint32" ); |
| 48339 | break; |
| 48340 | case OP_ShlUint32Sint64: |
| 48341 | Text.Op = PrintName("ShlUint32Sint64" ); |
| 48342 | break; |
| 48343 | case OP_ShlUint32Uint64: |
| 48344 | Text.Op = PrintName("ShlUint32Uint64" ); |
| 48345 | break; |
| 48346 | case OP_ShlUint32IntAP: |
| 48347 | Text.Op = PrintName("ShlUint32IntAP" ); |
| 48348 | break; |
| 48349 | case OP_ShlUint32IntAPS: |
| 48350 | Text.Op = PrintName("ShlUint32IntAPS" ); |
| 48351 | break; |
| 48352 | case OP_ShlSint64Sint8: |
| 48353 | Text.Op = PrintName("ShlSint64Sint8" ); |
| 48354 | break; |
| 48355 | case OP_ShlSint64Uint8: |
| 48356 | Text.Op = PrintName("ShlSint64Uint8" ); |
| 48357 | break; |
| 48358 | case OP_ShlSint64Sint16: |
| 48359 | Text.Op = PrintName("ShlSint64Sint16" ); |
| 48360 | break; |
| 48361 | case OP_ShlSint64Uint16: |
| 48362 | Text.Op = PrintName("ShlSint64Uint16" ); |
| 48363 | break; |
| 48364 | case OP_ShlSint64Sint32: |
| 48365 | Text.Op = PrintName("ShlSint64Sint32" ); |
| 48366 | break; |
| 48367 | case OP_ShlSint64Uint32: |
| 48368 | Text.Op = PrintName("ShlSint64Uint32" ); |
| 48369 | break; |
| 48370 | case OP_ShlSint64Sint64: |
| 48371 | Text.Op = PrintName("ShlSint64Sint64" ); |
| 48372 | break; |
| 48373 | case OP_ShlSint64Uint64: |
| 48374 | Text.Op = PrintName("ShlSint64Uint64" ); |
| 48375 | break; |
| 48376 | case OP_ShlSint64IntAP: |
| 48377 | Text.Op = PrintName("ShlSint64IntAP" ); |
| 48378 | break; |
| 48379 | case OP_ShlSint64IntAPS: |
| 48380 | Text.Op = PrintName("ShlSint64IntAPS" ); |
| 48381 | break; |
| 48382 | case OP_ShlUint64Sint8: |
| 48383 | Text.Op = PrintName("ShlUint64Sint8" ); |
| 48384 | break; |
| 48385 | case OP_ShlUint64Uint8: |
| 48386 | Text.Op = PrintName("ShlUint64Uint8" ); |
| 48387 | break; |
| 48388 | case OP_ShlUint64Sint16: |
| 48389 | Text.Op = PrintName("ShlUint64Sint16" ); |
| 48390 | break; |
| 48391 | case OP_ShlUint64Uint16: |
| 48392 | Text.Op = PrintName("ShlUint64Uint16" ); |
| 48393 | break; |
| 48394 | case OP_ShlUint64Sint32: |
| 48395 | Text.Op = PrintName("ShlUint64Sint32" ); |
| 48396 | break; |
| 48397 | case OP_ShlUint64Uint32: |
| 48398 | Text.Op = PrintName("ShlUint64Uint32" ); |
| 48399 | break; |
| 48400 | case OP_ShlUint64Sint64: |
| 48401 | Text.Op = PrintName("ShlUint64Sint64" ); |
| 48402 | break; |
| 48403 | case OP_ShlUint64Uint64: |
| 48404 | Text.Op = PrintName("ShlUint64Uint64" ); |
| 48405 | break; |
| 48406 | case OP_ShlUint64IntAP: |
| 48407 | Text.Op = PrintName("ShlUint64IntAP" ); |
| 48408 | break; |
| 48409 | case OP_ShlUint64IntAPS: |
| 48410 | Text.Op = PrintName("ShlUint64IntAPS" ); |
| 48411 | break; |
| 48412 | case OP_ShlIntAPSint8: |
| 48413 | Text.Op = PrintName("ShlIntAPSint8" ); |
| 48414 | break; |
| 48415 | case OP_ShlIntAPUint8: |
| 48416 | Text.Op = PrintName("ShlIntAPUint8" ); |
| 48417 | break; |
| 48418 | case OP_ShlIntAPSint16: |
| 48419 | Text.Op = PrintName("ShlIntAPSint16" ); |
| 48420 | break; |
| 48421 | case OP_ShlIntAPUint16: |
| 48422 | Text.Op = PrintName("ShlIntAPUint16" ); |
| 48423 | break; |
| 48424 | case OP_ShlIntAPSint32: |
| 48425 | Text.Op = PrintName("ShlIntAPSint32" ); |
| 48426 | break; |
| 48427 | case OP_ShlIntAPUint32: |
| 48428 | Text.Op = PrintName("ShlIntAPUint32" ); |
| 48429 | break; |
| 48430 | case OP_ShlIntAPSint64: |
| 48431 | Text.Op = PrintName("ShlIntAPSint64" ); |
| 48432 | break; |
| 48433 | case OP_ShlIntAPUint64: |
| 48434 | Text.Op = PrintName("ShlIntAPUint64" ); |
| 48435 | break; |
| 48436 | case OP_ShlIntAPIntAP: |
| 48437 | Text.Op = PrintName("ShlIntAPIntAP" ); |
| 48438 | break; |
| 48439 | case OP_ShlIntAPIntAPS: |
| 48440 | Text.Op = PrintName("ShlIntAPIntAPS" ); |
| 48441 | break; |
| 48442 | case OP_ShlIntAPSSint8: |
| 48443 | Text.Op = PrintName("ShlIntAPSSint8" ); |
| 48444 | break; |
| 48445 | case OP_ShlIntAPSUint8: |
| 48446 | Text.Op = PrintName("ShlIntAPSUint8" ); |
| 48447 | break; |
| 48448 | case OP_ShlIntAPSSint16: |
| 48449 | Text.Op = PrintName("ShlIntAPSSint16" ); |
| 48450 | break; |
| 48451 | case OP_ShlIntAPSUint16: |
| 48452 | Text.Op = PrintName("ShlIntAPSUint16" ); |
| 48453 | break; |
| 48454 | case OP_ShlIntAPSSint32: |
| 48455 | Text.Op = PrintName("ShlIntAPSSint32" ); |
| 48456 | break; |
| 48457 | case OP_ShlIntAPSUint32: |
| 48458 | Text.Op = PrintName("ShlIntAPSUint32" ); |
| 48459 | break; |
| 48460 | case OP_ShlIntAPSSint64: |
| 48461 | Text.Op = PrintName("ShlIntAPSSint64" ); |
| 48462 | break; |
| 48463 | case OP_ShlIntAPSUint64: |
| 48464 | Text.Op = PrintName("ShlIntAPSUint64" ); |
| 48465 | break; |
| 48466 | case OP_ShlIntAPSIntAP: |
| 48467 | Text.Op = PrintName("ShlIntAPSIntAP" ); |
| 48468 | break; |
| 48469 | case OP_ShlIntAPSIntAPS: |
| 48470 | Text.Op = PrintName("ShlIntAPSIntAPS" ); |
| 48471 | break; |
| 48472 | #endif |
| 48473 | #if defined(GET_EVAL_PROTO) || defined(GET_LINK_PROTO) |
| 48474 | bool emitShlSint8Sint8(SourceInfo); |
| 48475 | bool emitShlSint8Uint8(SourceInfo); |
| 48476 | bool emitShlSint8Sint16(SourceInfo); |
| 48477 | bool emitShlSint8Uint16(SourceInfo); |
| 48478 | bool emitShlSint8Sint32(SourceInfo); |
| 48479 | bool emitShlSint8Uint32(SourceInfo); |
| 48480 | bool emitShlSint8Sint64(SourceInfo); |
| 48481 | bool emitShlSint8Uint64(SourceInfo); |
| 48482 | bool emitShlSint8IntAP(SourceInfo); |
| 48483 | bool emitShlSint8IntAPS(SourceInfo); |
| 48484 | bool emitShlUint8Sint8(SourceInfo); |
| 48485 | bool emitShlUint8Uint8(SourceInfo); |
| 48486 | bool emitShlUint8Sint16(SourceInfo); |
| 48487 | bool emitShlUint8Uint16(SourceInfo); |
| 48488 | bool emitShlUint8Sint32(SourceInfo); |
| 48489 | bool emitShlUint8Uint32(SourceInfo); |
| 48490 | bool emitShlUint8Sint64(SourceInfo); |
| 48491 | bool emitShlUint8Uint64(SourceInfo); |
| 48492 | bool emitShlUint8IntAP(SourceInfo); |
| 48493 | bool emitShlUint8IntAPS(SourceInfo); |
| 48494 | bool emitShlSint16Sint8(SourceInfo); |
| 48495 | bool emitShlSint16Uint8(SourceInfo); |
| 48496 | bool emitShlSint16Sint16(SourceInfo); |
| 48497 | bool emitShlSint16Uint16(SourceInfo); |
| 48498 | bool emitShlSint16Sint32(SourceInfo); |
| 48499 | bool emitShlSint16Uint32(SourceInfo); |
| 48500 | bool emitShlSint16Sint64(SourceInfo); |
| 48501 | bool emitShlSint16Uint64(SourceInfo); |
| 48502 | bool emitShlSint16IntAP(SourceInfo); |
| 48503 | bool emitShlSint16IntAPS(SourceInfo); |
| 48504 | bool emitShlUint16Sint8(SourceInfo); |
| 48505 | bool emitShlUint16Uint8(SourceInfo); |
| 48506 | bool emitShlUint16Sint16(SourceInfo); |
| 48507 | bool emitShlUint16Uint16(SourceInfo); |
| 48508 | bool emitShlUint16Sint32(SourceInfo); |
| 48509 | bool emitShlUint16Uint32(SourceInfo); |
| 48510 | bool emitShlUint16Sint64(SourceInfo); |
| 48511 | bool emitShlUint16Uint64(SourceInfo); |
| 48512 | bool emitShlUint16IntAP(SourceInfo); |
| 48513 | bool emitShlUint16IntAPS(SourceInfo); |
| 48514 | bool emitShlSint32Sint8(SourceInfo); |
| 48515 | bool emitShlSint32Uint8(SourceInfo); |
| 48516 | bool emitShlSint32Sint16(SourceInfo); |
| 48517 | bool emitShlSint32Uint16(SourceInfo); |
| 48518 | bool emitShlSint32Sint32(SourceInfo); |
| 48519 | bool emitShlSint32Uint32(SourceInfo); |
| 48520 | bool emitShlSint32Sint64(SourceInfo); |
| 48521 | bool emitShlSint32Uint64(SourceInfo); |
| 48522 | bool emitShlSint32IntAP(SourceInfo); |
| 48523 | bool emitShlSint32IntAPS(SourceInfo); |
| 48524 | bool emitShlUint32Sint8(SourceInfo); |
| 48525 | bool emitShlUint32Uint8(SourceInfo); |
| 48526 | bool emitShlUint32Sint16(SourceInfo); |
| 48527 | bool emitShlUint32Uint16(SourceInfo); |
| 48528 | bool emitShlUint32Sint32(SourceInfo); |
| 48529 | bool emitShlUint32Uint32(SourceInfo); |
| 48530 | bool emitShlUint32Sint64(SourceInfo); |
| 48531 | bool emitShlUint32Uint64(SourceInfo); |
| 48532 | bool emitShlUint32IntAP(SourceInfo); |
| 48533 | bool emitShlUint32IntAPS(SourceInfo); |
| 48534 | bool emitShlSint64Sint8(SourceInfo); |
| 48535 | bool emitShlSint64Uint8(SourceInfo); |
| 48536 | bool emitShlSint64Sint16(SourceInfo); |
| 48537 | bool emitShlSint64Uint16(SourceInfo); |
| 48538 | bool emitShlSint64Sint32(SourceInfo); |
| 48539 | bool emitShlSint64Uint32(SourceInfo); |
| 48540 | bool emitShlSint64Sint64(SourceInfo); |
| 48541 | bool emitShlSint64Uint64(SourceInfo); |
| 48542 | bool emitShlSint64IntAP(SourceInfo); |
| 48543 | bool emitShlSint64IntAPS(SourceInfo); |
| 48544 | bool emitShlUint64Sint8(SourceInfo); |
| 48545 | bool emitShlUint64Uint8(SourceInfo); |
| 48546 | bool emitShlUint64Sint16(SourceInfo); |
| 48547 | bool emitShlUint64Uint16(SourceInfo); |
| 48548 | bool emitShlUint64Sint32(SourceInfo); |
| 48549 | bool emitShlUint64Uint32(SourceInfo); |
| 48550 | bool emitShlUint64Sint64(SourceInfo); |
| 48551 | bool emitShlUint64Uint64(SourceInfo); |
| 48552 | bool emitShlUint64IntAP(SourceInfo); |
| 48553 | bool emitShlUint64IntAPS(SourceInfo); |
| 48554 | bool emitShlIntAPSint8(SourceInfo); |
| 48555 | bool emitShlIntAPUint8(SourceInfo); |
| 48556 | bool emitShlIntAPSint16(SourceInfo); |
| 48557 | bool emitShlIntAPUint16(SourceInfo); |
| 48558 | bool emitShlIntAPSint32(SourceInfo); |
| 48559 | bool emitShlIntAPUint32(SourceInfo); |
| 48560 | bool emitShlIntAPSint64(SourceInfo); |
| 48561 | bool emitShlIntAPUint64(SourceInfo); |
| 48562 | bool emitShlIntAPIntAP(SourceInfo); |
| 48563 | bool emitShlIntAPIntAPS(SourceInfo); |
| 48564 | bool emitShlIntAPSSint8(SourceInfo); |
| 48565 | bool emitShlIntAPSUint8(SourceInfo); |
| 48566 | bool emitShlIntAPSSint16(SourceInfo); |
| 48567 | bool emitShlIntAPSUint16(SourceInfo); |
| 48568 | bool emitShlIntAPSSint32(SourceInfo); |
| 48569 | bool emitShlIntAPSUint32(SourceInfo); |
| 48570 | bool emitShlIntAPSSint64(SourceInfo); |
| 48571 | bool emitShlIntAPSUint64(SourceInfo); |
| 48572 | bool emitShlIntAPSIntAP(SourceInfo); |
| 48573 | bool emitShlIntAPSIntAPS(SourceInfo); |
| 48574 | #endif |
| 48575 | #if defined(GET_EVAL_PROTO) || defined(GET_LINK_PROTO) |
| 48576 | [[nodiscard]] bool emitShl(PrimType, PrimType, SourceInfo I); |
| 48577 | #endif |
| 48578 | #if defined(GET_EVAL_IMPL) || defined(GET_LINK_IMPL) |
| 48579 | bool |
| 48580 | #if defined(GET_EVAL_IMPL) |
| 48581 | EvalEmitter |
| 48582 | #else |
| 48583 | ByteCodeEmitter |
| 48584 | #endif |
| 48585 | ::emitShl(PrimType T0, PrimType T1, SourceInfo I) { |
| 48586 | switch (T0) { |
| 48587 | case PT_Sint8: |
| 48588 | switch (T1) { |
| 48589 | case PT_Sint8: |
| 48590 | return emitShlSint8Sint8(I); |
| 48591 | case PT_Uint8: |
| 48592 | return emitShlSint8Uint8(I); |
| 48593 | case PT_Sint16: |
| 48594 | return emitShlSint8Sint16(I); |
| 48595 | case PT_Uint16: |
| 48596 | return emitShlSint8Uint16(I); |
| 48597 | case PT_Sint32: |
| 48598 | return emitShlSint8Sint32(I); |
| 48599 | case PT_Uint32: |
| 48600 | return emitShlSint8Uint32(I); |
| 48601 | case PT_Sint64: |
| 48602 | return emitShlSint8Sint64(I); |
| 48603 | case PT_Uint64: |
| 48604 | return emitShlSint8Uint64(I); |
| 48605 | case PT_IntAP: |
| 48606 | return emitShlSint8IntAP(I); |
| 48607 | case PT_IntAPS: |
| 48608 | return emitShlSint8IntAPS(I); |
| 48609 | default: llvm_unreachable("invalid type: emitShl" ); |
| 48610 | } |
| 48611 | llvm_unreachable("invalid enum value" ); |
| 48612 | case PT_Uint8: |
| 48613 | switch (T1) { |
| 48614 | case PT_Sint8: |
| 48615 | return emitShlUint8Sint8(I); |
| 48616 | case PT_Uint8: |
| 48617 | return emitShlUint8Uint8(I); |
| 48618 | case PT_Sint16: |
| 48619 | return emitShlUint8Sint16(I); |
| 48620 | case PT_Uint16: |
| 48621 | return emitShlUint8Uint16(I); |
| 48622 | case PT_Sint32: |
| 48623 | return emitShlUint8Sint32(I); |
| 48624 | case PT_Uint32: |
| 48625 | return emitShlUint8Uint32(I); |
| 48626 | case PT_Sint64: |
| 48627 | return emitShlUint8Sint64(I); |
| 48628 | case PT_Uint64: |
| 48629 | return emitShlUint8Uint64(I); |
| 48630 | case PT_IntAP: |
| 48631 | return emitShlUint8IntAP(I); |
| 48632 | case PT_IntAPS: |
| 48633 | return emitShlUint8IntAPS(I); |
| 48634 | default: llvm_unreachable("invalid type: emitShl" ); |
| 48635 | } |
| 48636 | llvm_unreachable("invalid enum value" ); |
| 48637 | case PT_Sint16: |
| 48638 | switch (T1) { |
| 48639 | case PT_Sint8: |
| 48640 | return emitShlSint16Sint8(I); |
| 48641 | case PT_Uint8: |
| 48642 | return emitShlSint16Uint8(I); |
| 48643 | case PT_Sint16: |
| 48644 | return emitShlSint16Sint16(I); |
| 48645 | case PT_Uint16: |
| 48646 | return emitShlSint16Uint16(I); |
| 48647 | case PT_Sint32: |
| 48648 | return emitShlSint16Sint32(I); |
| 48649 | case PT_Uint32: |
| 48650 | return emitShlSint16Uint32(I); |
| 48651 | case PT_Sint64: |
| 48652 | return emitShlSint16Sint64(I); |
| 48653 | case PT_Uint64: |
| 48654 | return emitShlSint16Uint64(I); |
| 48655 | case PT_IntAP: |
| 48656 | return emitShlSint16IntAP(I); |
| 48657 | case PT_IntAPS: |
| 48658 | return emitShlSint16IntAPS(I); |
| 48659 | default: llvm_unreachable("invalid type: emitShl" ); |
| 48660 | } |
| 48661 | llvm_unreachable("invalid enum value" ); |
| 48662 | case PT_Uint16: |
| 48663 | switch (T1) { |
| 48664 | case PT_Sint8: |
| 48665 | return emitShlUint16Sint8(I); |
| 48666 | case PT_Uint8: |
| 48667 | return emitShlUint16Uint8(I); |
| 48668 | case PT_Sint16: |
| 48669 | return emitShlUint16Sint16(I); |
| 48670 | case PT_Uint16: |
| 48671 | return emitShlUint16Uint16(I); |
| 48672 | case PT_Sint32: |
| 48673 | return emitShlUint16Sint32(I); |
| 48674 | case PT_Uint32: |
| 48675 | return emitShlUint16Uint32(I); |
| 48676 | case PT_Sint64: |
| 48677 | return emitShlUint16Sint64(I); |
| 48678 | case PT_Uint64: |
| 48679 | return emitShlUint16Uint64(I); |
| 48680 | case PT_IntAP: |
| 48681 | return emitShlUint16IntAP(I); |
| 48682 | case PT_IntAPS: |
| 48683 | return emitShlUint16IntAPS(I); |
| 48684 | default: llvm_unreachable("invalid type: emitShl" ); |
| 48685 | } |
| 48686 | llvm_unreachable("invalid enum value" ); |
| 48687 | case PT_Sint32: |
| 48688 | switch (T1) { |
| 48689 | case PT_Sint8: |
| 48690 | return emitShlSint32Sint8(I); |
| 48691 | case PT_Uint8: |
| 48692 | return emitShlSint32Uint8(I); |
| 48693 | case PT_Sint16: |
| 48694 | return emitShlSint32Sint16(I); |
| 48695 | case PT_Uint16: |
| 48696 | return emitShlSint32Uint16(I); |
| 48697 | case PT_Sint32: |
| 48698 | return emitShlSint32Sint32(I); |
| 48699 | case PT_Uint32: |
| 48700 | return emitShlSint32Uint32(I); |
| 48701 | case PT_Sint64: |
| 48702 | return emitShlSint32Sint64(I); |
| 48703 | case PT_Uint64: |
| 48704 | return emitShlSint32Uint64(I); |
| 48705 | case PT_IntAP: |
| 48706 | return emitShlSint32IntAP(I); |
| 48707 | case PT_IntAPS: |
| 48708 | return emitShlSint32IntAPS(I); |
| 48709 | default: llvm_unreachable("invalid type: emitShl" ); |
| 48710 | } |
| 48711 | llvm_unreachable("invalid enum value" ); |
| 48712 | case PT_Uint32: |
| 48713 | switch (T1) { |
| 48714 | case PT_Sint8: |
| 48715 | return emitShlUint32Sint8(I); |
| 48716 | case PT_Uint8: |
| 48717 | return emitShlUint32Uint8(I); |
| 48718 | case PT_Sint16: |
| 48719 | return emitShlUint32Sint16(I); |
| 48720 | case PT_Uint16: |
| 48721 | return emitShlUint32Uint16(I); |
| 48722 | case PT_Sint32: |
| 48723 | return emitShlUint32Sint32(I); |
| 48724 | case PT_Uint32: |
| 48725 | return emitShlUint32Uint32(I); |
| 48726 | case PT_Sint64: |
| 48727 | return emitShlUint32Sint64(I); |
| 48728 | case PT_Uint64: |
| 48729 | return emitShlUint32Uint64(I); |
| 48730 | case PT_IntAP: |
| 48731 | return emitShlUint32IntAP(I); |
| 48732 | case PT_IntAPS: |
| 48733 | return emitShlUint32IntAPS(I); |
| 48734 | default: llvm_unreachable("invalid type: emitShl" ); |
| 48735 | } |
| 48736 | llvm_unreachable("invalid enum value" ); |
| 48737 | case PT_Sint64: |
| 48738 | switch (T1) { |
| 48739 | case PT_Sint8: |
| 48740 | return emitShlSint64Sint8(I); |
| 48741 | case PT_Uint8: |
| 48742 | return emitShlSint64Uint8(I); |
| 48743 | case PT_Sint16: |
| 48744 | return emitShlSint64Sint16(I); |
| 48745 | case PT_Uint16: |
| 48746 | return emitShlSint64Uint16(I); |
| 48747 | case PT_Sint32: |
| 48748 | return emitShlSint64Sint32(I); |
| 48749 | case PT_Uint32: |
| 48750 | return emitShlSint64Uint32(I); |
| 48751 | case PT_Sint64: |
| 48752 | return emitShlSint64Sint64(I); |
| 48753 | case PT_Uint64: |
| 48754 | return emitShlSint64Uint64(I); |
| 48755 | case PT_IntAP: |
| 48756 | return emitShlSint64IntAP(I); |
| 48757 | case PT_IntAPS: |
| 48758 | return emitShlSint64IntAPS(I); |
| 48759 | default: llvm_unreachable("invalid type: emitShl" ); |
| 48760 | } |
| 48761 | llvm_unreachable("invalid enum value" ); |
| 48762 | case PT_Uint64: |
| 48763 | switch (T1) { |
| 48764 | case PT_Sint8: |
| 48765 | return emitShlUint64Sint8(I); |
| 48766 | case PT_Uint8: |
| 48767 | return emitShlUint64Uint8(I); |
| 48768 | case PT_Sint16: |
| 48769 | return emitShlUint64Sint16(I); |
| 48770 | case PT_Uint16: |
| 48771 | return emitShlUint64Uint16(I); |
| 48772 | case PT_Sint32: |
| 48773 | return emitShlUint64Sint32(I); |
| 48774 | case PT_Uint32: |
| 48775 | return emitShlUint64Uint32(I); |
| 48776 | case PT_Sint64: |
| 48777 | return emitShlUint64Sint64(I); |
| 48778 | case PT_Uint64: |
| 48779 | return emitShlUint64Uint64(I); |
| 48780 | case PT_IntAP: |
| 48781 | return emitShlUint64IntAP(I); |
| 48782 | case PT_IntAPS: |
| 48783 | return emitShlUint64IntAPS(I); |
| 48784 | default: llvm_unreachable("invalid type: emitShl" ); |
| 48785 | } |
| 48786 | llvm_unreachable("invalid enum value" ); |
| 48787 | case PT_IntAP: |
| 48788 | switch (T1) { |
| 48789 | case PT_Sint8: |
| 48790 | return emitShlIntAPSint8(I); |
| 48791 | case PT_Uint8: |
| 48792 | return emitShlIntAPUint8(I); |
| 48793 | case PT_Sint16: |
| 48794 | return emitShlIntAPSint16(I); |
| 48795 | case PT_Uint16: |
| 48796 | return emitShlIntAPUint16(I); |
| 48797 | case PT_Sint32: |
| 48798 | return emitShlIntAPSint32(I); |
| 48799 | case PT_Uint32: |
| 48800 | return emitShlIntAPUint32(I); |
| 48801 | case PT_Sint64: |
| 48802 | return emitShlIntAPSint64(I); |
| 48803 | case PT_Uint64: |
| 48804 | return emitShlIntAPUint64(I); |
| 48805 | case PT_IntAP: |
| 48806 | return emitShlIntAPIntAP(I); |
| 48807 | case PT_IntAPS: |
| 48808 | return emitShlIntAPIntAPS(I); |
| 48809 | default: llvm_unreachable("invalid type: emitShl" ); |
| 48810 | } |
| 48811 | llvm_unreachable("invalid enum value" ); |
| 48812 | case PT_IntAPS: |
| 48813 | switch (T1) { |
| 48814 | case PT_Sint8: |
| 48815 | return emitShlIntAPSSint8(I); |
| 48816 | case PT_Uint8: |
| 48817 | return emitShlIntAPSUint8(I); |
| 48818 | case PT_Sint16: |
| 48819 | return emitShlIntAPSSint16(I); |
| 48820 | case PT_Uint16: |
| 48821 | return emitShlIntAPSUint16(I); |
| 48822 | case PT_Sint32: |
| 48823 | return emitShlIntAPSSint32(I); |
| 48824 | case PT_Uint32: |
| 48825 | return emitShlIntAPSUint32(I); |
| 48826 | case PT_Sint64: |
| 48827 | return emitShlIntAPSSint64(I); |
| 48828 | case PT_Uint64: |
| 48829 | return emitShlIntAPSUint64(I); |
| 48830 | case PT_IntAP: |
| 48831 | return emitShlIntAPSIntAP(I); |
| 48832 | case PT_IntAPS: |
| 48833 | return emitShlIntAPSIntAPS(I); |
| 48834 | default: llvm_unreachable("invalid type: emitShl" ); |
| 48835 | } |
| 48836 | llvm_unreachable("invalid enum value" ); |
| 48837 | default: llvm_unreachable("invalid type: emitShl" ); |
| 48838 | } |
| 48839 | llvm_unreachable("invalid enum value" ); |
| 48840 | } |
| 48841 | #endif |
| 48842 | #ifdef GET_LINK_IMPL |
| 48843 | bool ByteCodeEmitter::emitShlSint8Sint8(SourceInfo L) { |
| 48844 | return emitOp<>(OP_ShlSint8Sint8, L); |
| 48845 | } |
| 48846 | bool ByteCodeEmitter::emitShlSint8Uint8(SourceInfo L) { |
| 48847 | return emitOp<>(OP_ShlSint8Uint8, L); |
| 48848 | } |
| 48849 | bool ByteCodeEmitter::emitShlSint8Sint16(SourceInfo L) { |
| 48850 | return emitOp<>(OP_ShlSint8Sint16, L); |
| 48851 | } |
| 48852 | bool ByteCodeEmitter::emitShlSint8Uint16(SourceInfo L) { |
| 48853 | return emitOp<>(OP_ShlSint8Uint16, L); |
| 48854 | } |
| 48855 | bool ByteCodeEmitter::emitShlSint8Sint32(SourceInfo L) { |
| 48856 | return emitOp<>(OP_ShlSint8Sint32, L); |
| 48857 | } |
| 48858 | bool ByteCodeEmitter::emitShlSint8Uint32(SourceInfo L) { |
| 48859 | return emitOp<>(OP_ShlSint8Uint32, L); |
| 48860 | } |
| 48861 | bool ByteCodeEmitter::emitShlSint8Sint64(SourceInfo L) { |
| 48862 | return emitOp<>(OP_ShlSint8Sint64, L); |
| 48863 | } |
| 48864 | bool ByteCodeEmitter::emitShlSint8Uint64(SourceInfo L) { |
| 48865 | return emitOp<>(OP_ShlSint8Uint64, L); |
| 48866 | } |
| 48867 | bool ByteCodeEmitter::emitShlSint8IntAP(SourceInfo L) { |
| 48868 | return emitOp<>(OP_ShlSint8IntAP, L); |
| 48869 | } |
| 48870 | bool ByteCodeEmitter::emitShlSint8IntAPS(SourceInfo L) { |
| 48871 | return emitOp<>(OP_ShlSint8IntAPS, L); |
| 48872 | } |
| 48873 | bool ByteCodeEmitter::emitShlUint8Sint8(SourceInfo L) { |
| 48874 | return emitOp<>(OP_ShlUint8Sint8, L); |
| 48875 | } |
| 48876 | bool ByteCodeEmitter::emitShlUint8Uint8(SourceInfo L) { |
| 48877 | return emitOp<>(OP_ShlUint8Uint8, L); |
| 48878 | } |
| 48879 | bool ByteCodeEmitter::emitShlUint8Sint16(SourceInfo L) { |
| 48880 | return emitOp<>(OP_ShlUint8Sint16, L); |
| 48881 | } |
| 48882 | bool ByteCodeEmitter::emitShlUint8Uint16(SourceInfo L) { |
| 48883 | return emitOp<>(OP_ShlUint8Uint16, L); |
| 48884 | } |
| 48885 | bool ByteCodeEmitter::emitShlUint8Sint32(SourceInfo L) { |
| 48886 | return emitOp<>(OP_ShlUint8Sint32, L); |
| 48887 | } |
| 48888 | bool ByteCodeEmitter::emitShlUint8Uint32(SourceInfo L) { |
| 48889 | return emitOp<>(OP_ShlUint8Uint32, L); |
| 48890 | } |
| 48891 | bool ByteCodeEmitter::emitShlUint8Sint64(SourceInfo L) { |
| 48892 | return emitOp<>(OP_ShlUint8Sint64, L); |
| 48893 | } |
| 48894 | bool ByteCodeEmitter::emitShlUint8Uint64(SourceInfo L) { |
| 48895 | return emitOp<>(OP_ShlUint8Uint64, L); |
| 48896 | } |
| 48897 | bool ByteCodeEmitter::emitShlUint8IntAP(SourceInfo L) { |
| 48898 | return emitOp<>(OP_ShlUint8IntAP, L); |
| 48899 | } |
| 48900 | bool ByteCodeEmitter::emitShlUint8IntAPS(SourceInfo L) { |
| 48901 | return emitOp<>(OP_ShlUint8IntAPS, L); |
| 48902 | } |
| 48903 | bool ByteCodeEmitter::emitShlSint16Sint8(SourceInfo L) { |
| 48904 | return emitOp<>(OP_ShlSint16Sint8, L); |
| 48905 | } |
| 48906 | bool ByteCodeEmitter::emitShlSint16Uint8(SourceInfo L) { |
| 48907 | return emitOp<>(OP_ShlSint16Uint8, L); |
| 48908 | } |
| 48909 | bool ByteCodeEmitter::emitShlSint16Sint16(SourceInfo L) { |
| 48910 | return emitOp<>(OP_ShlSint16Sint16, L); |
| 48911 | } |
| 48912 | bool ByteCodeEmitter::emitShlSint16Uint16(SourceInfo L) { |
| 48913 | return emitOp<>(OP_ShlSint16Uint16, L); |
| 48914 | } |
| 48915 | bool ByteCodeEmitter::emitShlSint16Sint32(SourceInfo L) { |
| 48916 | return emitOp<>(OP_ShlSint16Sint32, L); |
| 48917 | } |
| 48918 | bool ByteCodeEmitter::emitShlSint16Uint32(SourceInfo L) { |
| 48919 | return emitOp<>(OP_ShlSint16Uint32, L); |
| 48920 | } |
| 48921 | bool ByteCodeEmitter::emitShlSint16Sint64(SourceInfo L) { |
| 48922 | return emitOp<>(OP_ShlSint16Sint64, L); |
| 48923 | } |
| 48924 | bool ByteCodeEmitter::emitShlSint16Uint64(SourceInfo L) { |
| 48925 | return emitOp<>(OP_ShlSint16Uint64, L); |
| 48926 | } |
| 48927 | bool ByteCodeEmitter::emitShlSint16IntAP(SourceInfo L) { |
| 48928 | return emitOp<>(OP_ShlSint16IntAP, L); |
| 48929 | } |
| 48930 | bool ByteCodeEmitter::emitShlSint16IntAPS(SourceInfo L) { |
| 48931 | return emitOp<>(OP_ShlSint16IntAPS, L); |
| 48932 | } |
| 48933 | bool ByteCodeEmitter::emitShlUint16Sint8(SourceInfo L) { |
| 48934 | return emitOp<>(OP_ShlUint16Sint8, L); |
| 48935 | } |
| 48936 | bool ByteCodeEmitter::emitShlUint16Uint8(SourceInfo L) { |
| 48937 | return emitOp<>(OP_ShlUint16Uint8, L); |
| 48938 | } |
| 48939 | bool ByteCodeEmitter::emitShlUint16Sint16(SourceInfo L) { |
| 48940 | return emitOp<>(OP_ShlUint16Sint16, L); |
| 48941 | } |
| 48942 | bool ByteCodeEmitter::emitShlUint16Uint16(SourceInfo L) { |
| 48943 | return emitOp<>(OP_ShlUint16Uint16, L); |
| 48944 | } |
| 48945 | bool ByteCodeEmitter::emitShlUint16Sint32(SourceInfo L) { |
| 48946 | return emitOp<>(OP_ShlUint16Sint32, L); |
| 48947 | } |
| 48948 | bool ByteCodeEmitter::emitShlUint16Uint32(SourceInfo L) { |
| 48949 | return emitOp<>(OP_ShlUint16Uint32, L); |
| 48950 | } |
| 48951 | bool ByteCodeEmitter::emitShlUint16Sint64(SourceInfo L) { |
| 48952 | return emitOp<>(OP_ShlUint16Sint64, L); |
| 48953 | } |
| 48954 | bool ByteCodeEmitter::emitShlUint16Uint64(SourceInfo L) { |
| 48955 | return emitOp<>(OP_ShlUint16Uint64, L); |
| 48956 | } |
| 48957 | bool ByteCodeEmitter::emitShlUint16IntAP(SourceInfo L) { |
| 48958 | return emitOp<>(OP_ShlUint16IntAP, L); |
| 48959 | } |
| 48960 | bool ByteCodeEmitter::emitShlUint16IntAPS(SourceInfo L) { |
| 48961 | return emitOp<>(OP_ShlUint16IntAPS, L); |
| 48962 | } |
| 48963 | bool ByteCodeEmitter::emitShlSint32Sint8(SourceInfo L) { |
| 48964 | return emitOp<>(OP_ShlSint32Sint8, L); |
| 48965 | } |
| 48966 | bool ByteCodeEmitter::emitShlSint32Uint8(SourceInfo L) { |
| 48967 | return emitOp<>(OP_ShlSint32Uint8, L); |
| 48968 | } |
| 48969 | bool ByteCodeEmitter::emitShlSint32Sint16(SourceInfo L) { |
| 48970 | return emitOp<>(OP_ShlSint32Sint16, L); |
| 48971 | } |
| 48972 | bool ByteCodeEmitter::emitShlSint32Uint16(SourceInfo L) { |
| 48973 | return emitOp<>(OP_ShlSint32Uint16, L); |
| 48974 | } |
| 48975 | bool ByteCodeEmitter::emitShlSint32Sint32(SourceInfo L) { |
| 48976 | return emitOp<>(OP_ShlSint32Sint32, L); |
| 48977 | } |
| 48978 | bool ByteCodeEmitter::emitShlSint32Uint32(SourceInfo L) { |
| 48979 | return emitOp<>(OP_ShlSint32Uint32, L); |
| 48980 | } |
| 48981 | bool ByteCodeEmitter::emitShlSint32Sint64(SourceInfo L) { |
| 48982 | return emitOp<>(OP_ShlSint32Sint64, L); |
| 48983 | } |
| 48984 | bool ByteCodeEmitter::emitShlSint32Uint64(SourceInfo L) { |
| 48985 | return emitOp<>(OP_ShlSint32Uint64, L); |
| 48986 | } |
| 48987 | bool ByteCodeEmitter::emitShlSint32IntAP(SourceInfo L) { |
| 48988 | return emitOp<>(OP_ShlSint32IntAP, L); |
| 48989 | } |
| 48990 | bool ByteCodeEmitter::emitShlSint32IntAPS(SourceInfo L) { |
| 48991 | return emitOp<>(OP_ShlSint32IntAPS, L); |
| 48992 | } |
| 48993 | bool ByteCodeEmitter::emitShlUint32Sint8(SourceInfo L) { |
| 48994 | return emitOp<>(OP_ShlUint32Sint8, L); |
| 48995 | } |
| 48996 | bool ByteCodeEmitter::emitShlUint32Uint8(SourceInfo L) { |
| 48997 | return emitOp<>(OP_ShlUint32Uint8, L); |
| 48998 | } |
| 48999 | bool ByteCodeEmitter::emitShlUint32Sint16(SourceInfo L) { |
| 49000 | return emitOp<>(OP_ShlUint32Sint16, L); |
| 49001 | } |
| 49002 | bool ByteCodeEmitter::emitShlUint32Uint16(SourceInfo L) { |
| 49003 | return emitOp<>(OP_ShlUint32Uint16, L); |
| 49004 | } |
| 49005 | bool ByteCodeEmitter::emitShlUint32Sint32(SourceInfo L) { |
| 49006 | return emitOp<>(OP_ShlUint32Sint32, L); |
| 49007 | } |
| 49008 | bool ByteCodeEmitter::emitShlUint32Uint32(SourceInfo L) { |
| 49009 | return emitOp<>(OP_ShlUint32Uint32, L); |
| 49010 | } |
| 49011 | bool ByteCodeEmitter::emitShlUint32Sint64(SourceInfo L) { |
| 49012 | return emitOp<>(OP_ShlUint32Sint64, L); |
| 49013 | } |
| 49014 | bool ByteCodeEmitter::emitShlUint32Uint64(SourceInfo L) { |
| 49015 | return emitOp<>(OP_ShlUint32Uint64, L); |
| 49016 | } |
| 49017 | bool ByteCodeEmitter::emitShlUint32IntAP(SourceInfo L) { |
| 49018 | return emitOp<>(OP_ShlUint32IntAP, L); |
| 49019 | } |
| 49020 | bool ByteCodeEmitter::emitShlUint32IntAPS(SourceInfo L) { |
| 49021 | return emitOp<>(OP_ShlUint32IntAPS, L); |
| 49022 | } |
| 49023 | bool ByteCodeEmitter::emitShlSint64Sint8(SourceInfo L) { |
| 49024 | return emitOp<>(OP_ShlSint64Sint8, L); |
| 49025 | } |
| 49026 | bool ByteCodeEmitter::emitShlSint64Uint8(SourceInfo L) { |
| 49027 | return emitOp<>(OP_ShlSint64Uint8, L); |
| 49028 | } |
| 49029 | bool ByteCodeEmitter::emitShlSint64Sint16(SourceInfo L) { |
| 49030 | return emitOp<>(OP_ShlSint64Sint16, L); |
| 49031 | } |
| 49032 | bool ByteCodeEmitter::emitShlSint64Uint16(SourceInfo L) { |
| 49033 | return emitOp<>(OP_ShlSint64Uint16, L); |
| 49034 | } |
| 49035 | bool ByteCodeEmitter::emitShlSint64Sint32(SourceInfo L) { |
| 49036 | return emitOp<>(OP_ShlSint64Sint32, L); |
| 49037 | } |
| 49038 | bool ByteCodeEmitter::emitShlSint64Uint32(SourceInfo L) { |
| 49039 | return emitOp<>(OP_ShlSint64Uint32, L); |
| 49040 | } |
| 49041 | bool ByteCodeEmitter::emitShlSint64Sint64(SourceInfo L) { |
| 49042 | return emitOp<>(OP_ShlSint64Sint64, L); |
| 49043 | } |
| 49044 | bool ByteCodeEmitter::emitShlSint64Uint64(SourceInfo L) { |
| 49045 | return emitOp<>(OP_ShlSint64Uint64, L); |
| 49046 | } |
| 49047 | bool ByteCodeEmitter::emitShlSint64IntAP(SourceInfo L) { |
| 49048 | return emitOp<>(OP_ShlSint64IntAP, L); |
| 49049 | } |
| 49050 | bool ByteCodeEmitter::emitShlSint64IntAPS(SourceInfo L) { |
| 49051 | return emitOp<>(OP_ShlSint64IntAPS, L); |
| 49052 | } |
| 49053 | bool ByteCodeEmitter::emitShlUint64Sint8(SourceInfo L) { |
| 49054 | return emitOp<>(OP_ShlUint64Sint8, L); |
| 49055 | } |
| 49056 | bool ByteCodeEmitter::emitShlUint64Uint8(SourceInfo L) { |
| 49057 | return emitOp<>(OP_ShlUint64Uint8, L); |
| 49058 | } |
| 49059 | bool ByteCodeEmitter::emitShlUint64Sint16(SourceInfo L) { |
| 49060 | return emitOp<>(OP_ShlUint64Sint16, L); |
| 49061 | } |
| 49062 | bool ByteCodeEmitter::emitShlUint64Uint16(SourceInfo L) { |
| 49063 | return emitOp<>(OP_ShlUint64Uint16, L); |
| 49064 | } |
| 49065 | bool ByteCodeEmitter::emitShlUint64Sint32(SourceInfo L) { |
| 49066 | return emitOp<>(OP_ShlUint64Sint32, L); |
| 49067 | } |
| 49068 | bool ByteCodeEmitter::emitShlUint64Uint32(SourceInfo L) { |
| 49069 | return emitOp<>(OP_ShlUint64Uint32, L); |
| 49070 | } |
| 49071 | bool ByteCodeEmitter::emitShlUint64Sint64(SourceInfo L) { |
| 49072 | return emitOp<>(OP_ShlUint64Sint64, L); |
| 49073 | } |
| 49074 | bool ByteCodeEmitter::emitShlUint64Uint64(SourceInfo L) { |
| 49075 | return emitOp<>(OP_ShlUint64Uint64, L); |
| 49076 | } |
| 49077 | bool ByteCodeEmitter::emitShlUint64IntAP(SourceInfo L) { |
| 49078 | return emitOp<>(OP_ShlUint64IntAP, L); |
| 49079 | } |
| 49080 | bool ByteCodeEmitter::emitShlUint64IntAPS(SourceInfo L) { |
| 49081 | return emitOp<>(OP_ShlUint64IntAPS, L); |
| 49082 | } |
| 49083 | bool ByteCodeEmitter::emitShlIntAPSint8(SourceInfo L) { |
| 49084 | return emitOp<>(OP_ShlIntAPSint8, L); |
| 49085 | } |
| 49086 | bool ByteCodeEmitter::emitShlIntAPUint8(SourceInfo L) { |
| 49087 | return emitOp<>(OP_ShlIntAPUint8, L); |
| 49088 | } |
| 49089 | bool ByteCodeEmitter::emitShlIntAPSint16(SourceInfo L) { |
| 49090 | return emitOp<>(OP_ShlIntAPSint16, L); |
| 49091 | } |
| 49092 | bool ByteCodeEmitter::emitShlIntAPUint16(SourceInfo L) { |
| 49093 | return emitOp<>(OP_ShlIntAPUint16, L); |
| 49094 | } |
| 49095 | bool ByteCodeEmitter::emitShlIntAPSint32(SourceInfo L) { |
| 49096 | return emitOp<>(OP_ShlIntAPSint32, L); |
| 49097 | } |
| 49098 | bool ByteCodeEmitter::emitShlIntAPUint32(SourceInfo L) { |
| 49099 | return emitOp<>(OP_ShlIntAPUint32, L); |
| 49100 | } |
| 49101 | bool ByteCodeEmitter::emitShlIntAPSint64(SourceInfo L) { |
| 49102 | return emitOp<>(OP_ShlIntAPSint64, L); |
| 49103 | } |
| 49104 | bool ByteCodeEmitter::emitShlIntAPUint64(SourceInfo L) { |
| 49105 | return emitOp<>(OP_ShlIntAPUint64, L); |
| 49106 | } |
| 49107 | bool ByteCodeEmitter::emitShlIntAPIntAP(SourceInfo L) { |
| 49108 | return emitOp<>(OP_ShlIntAPIntAP, L); |
| 49109 | } |
| 49110 | bool ByteCodeEmitter::emitShlIntAPIntAPS(SourceInfo L) { |
| 49111 | return emitOp<>(OP_ShlIntAPIntAPS, L); |
| 49112 | } |
| 49113 | bool ByteCodeEmitter::emitShlIntAPSSint8(SourceInfo L) { |
| 49114 | return emitOp<>(OP_ShlIntAPSSint8, L); |
| 49115 | } |
| 49116 | bool ByteCodeEmitter::emitShlIntAPSUint8(SourceInfo L) { |
| 49117 | return emitOp<>(OP_ShlIntAPSUint8, L); |
| 49118 | } |
| 49119 | bool ByteCodeEmitter::emitShlIntAPSSint16(SourceInfo L) { |
| 49120 | return emitOp<>(OP_ShlIntAPSSint16, L); |
| 49121 | } |
| 49122 | bool ByteCodeEmitter::emitShlIntAPSUint16(SourceInfo L) { |
| 49123 | return emitOp<>(OP_ShlIntAPSUint16, L); |
| 49124 | } |
| 49125 | bool ByteCodeEmitter::emitShlIntAPSSint32(SourceInfo L) { |
| 49126 | return emitOp<>(OP_ShlIntAPSSint32, L); |
| 49127 | } |
| 49128 | bool ByteCodeEmitter::emitShlIntAPSUint32(SourceInfo L) { |
| 49129 | return emitOp<>(OP_ShlIntAPSUint32, L); |
| 49130 | } |
| 49131 | bool ByteCodeEmitter::emitShlIntAPSSint64(SourceInfo L) { |
| 49132 | return emitOp<>(OP_ShlIntAPSSint64, L); |
| 49133 | } |
| 49134 | bool ByteCodeEmitter::emitShlIntAPSUint64(SourceInfo L) { |
| 49135 | return emitOp<>(OP_ShlIntAPSUint64, L); |
| 49136 | } |
| 49137 | bool ByteCodeEmitter::emitShlIntAPSIntAP(SourceInfo L) { |
| 49138 | return emitOp<>(OP_ShlIntAPSIntAP, L); |
| 49139 | } |
| 49140 | bool ByteCodeEmitter::emitShlIntAPSIntAPS(SourceInfo L) { |
| 49141 | return emitOp<>(OP_ShlIntAPSIntAPS, L); |
| 49142 | } |
| 49143 | #endif |
| 49144 | #ifdef GET_EVAL_IMPL |
| 49145 | bool EvalEmitter::emitShlSint8Sint8(SourceInfo L) { |
| 49146 | if (!isActive()) return true; |
| 49147 | CurrentSource = L; |
| 49148 | return Shl<PT_Sint8, PT_Sint8>(S, CodePtr()); |
| 49149 | } |
| 49150 | bool EvalEmitter::emitShlSint8Uint8(SourceInfo L) { |
| 49151 | if (!isActive()) return true; |
| 49152 | CurrentSource = L; |
| 49153 | return Shl<PT_Sint8, PT_Uint8>(S, CodePtr()); |
| 49154 | } |
| 49155 | bool EvalEmitter::emitShlSint8Sint16(SourceInfo L) { |
| 49156 | if (!isActive()) return true; |
| 49157 | CurrentSource = L; |
| 49158 | return Shl<PT_Sint8, PT_Sint16>(S, CodePtr()); |
| 49159 | } |
| 49160 | bool EvalEmitter::emitShlSint8Uint16(SourceInfo L) { |
| 49161 | if (!isActive()) return true; |
| 49162 | CurrentSource = L; |
| 49163 | return Shl<PT_Sint8, PT_Uint16>(S, CodePtr()); |
| 49164 | } |
| 49165 | bool EvalEmitter::emitShlSint8Sint32(SourceInfo L) { |
| 49166 | if (!isActive()) return true; |
| 49167 | CurrentSource = L; |
| 49168 | return Shl<PT_Sint8, PT_Sint32>(S, CodePtr()); |
| 49169 | } |
| 49170 | bool EvalEmitter::emitShlSint8Uint32(SourceInfo L) { |
| 49171 | if (!isActive()) return true; |
| 49172 | CurrentSource = L; |
| 49173 | return Shl<PT_Sint8, PT_Uint32>(S, CodePtr()); |
| 49174 | } |
| 49175 | bool EvalEmitter::emitShlSint8Sint64(SourceInfo L) { |
| 49176 | if (!isActive()) return true; |
| 49177 | CurrentSource = L; |
| 49178 | return Shl<PT_Sint8, PT_Sint64>(S, CodePtr()); |
| 49179 | } |
| 49180 | bool EvalEmitter::emitShlSint8Uint64(SourceInfo L) { |
| 49181 | if (!isActive()) return true; |
| 49182 | CurrentSource = L; |
| 49183 | return Shl<PT_Sint8, PT_Uint64>(S, CodePtr()); |
| 49184 | } |
| 49185 | bool EvalEmitter::emitShlSint8IntAP(SourceInfo L) { |
| 49186 | if (!isActive()) return true; |
| 49187 | CurrentSource = L; |
| 49188 | return Shl<PT_Sint8, PT_IntAP>(S, CodePtr()); |
| 49189 | } |
| 49190 | bool EvalEmitter::emitShlSint8IntAPS(SourceInfo L) { |
| 49191 | if (!isActive()) return true; |
| 49192 | CurrentSource = L; |
| 49193 | return Shl<PT_Sint8, PT_IntAPS>(S, CodePtr()); |
| 49194 | } |
| 49195 | bool EvalEmitter::emitShlUint8Sint8(SourceInfo L) { |
| 49196 | if (!isActive()) return true; |
| 49197 | CurrentSource = L; |
| 49198 | return Shl<PT_Uint8, PT_Sint8>(S, CodePtr()); |
| 49199 | } |
| 49200 | bool EvalEmitter::emitShlUint8Uint8(SourceInfo L) { |
| 49201 | if (!isActive()) return true; |
| 49202 | CurrentSource = L; |
| 49203 | return Shl<PT_Uint8, PT_Uint8>(S, CodePtr()); |
| 49204 | } |
| 49205 | bool EvalEmitter::emitShlUint8Sint16(SourceInfo L) { |
| 49206 | if (!isActive()) return true; |
| 49207 | CurrentSource = L; |
| 49208 | return Shl<PT_Uint8, PT_Sint16>(S, CodePtr()); |
| 49209 | } |
| 49210 | bool EvalEmitter::emitShlUint8Uint16(SourceInfo L) { |
| 49211 | if (!isActive()) return true; |
| 49212 | CurrentSource = L; |
| 49213 | return Shl<PT_Uint8, PT_Uint16>(S, CodePtr()); |
| 49214 | } |
| 49215 | bool EvalEmitter::emitShlUint8Sint32(SourceInfo L) { |
| 49216 | if (!isActive()) return true; |
| 49217 | CurrentSource = L; |
| 49218 | return Shl<PT_Uint8, PT_Sint32>(S, CodePtr()); |
| 49219 | } |
| 49220 | bool EvalEmitter::emitShlUint8Uint32(SourceInfo L) { |
| 49221 | if (!isActive()) return true; |
| 49222 | CurrentSource = L; |
| 49223 | return Shl<PT_Uint8, PT_Uint32>(S, CodePtr()); |
| 49224 | } |
| 49225 | bool EvalEmitter::emitShlUint8Sint64(SourceInfo L) { |
| 49226 | if (!isActive()) return true; |
| 49227 | CurrentSource = L; |
| 49228 | return Shl<PT_Uint8, PT_Sint64>(S, CodePtr()); |
| 49229 | } |
| 49230 | bool EvalEmitter::emitShlUint8Uint64(SourceInfo L) { |
| 49231 | if (!isActive()) return true; |
| 49232 | CurrentSource = L; |
| 49233 | return Shl<PT_Uint8, PT_Uint64>(S, CodePtr()); |
| 49234 | } |
| 49235 | bool EvalEmitter::emitShlUint8IntAP(SourceInfo L) { |
| 49236 | if (!isActive()) return true; |
| 49237 | CurrentSource = L; |
| 49238 | return Shl<PT_Uint8, PT_IntAP>(S, CodePtr()); |
| 49239 | } |
| 49240 | bool EvalEmitter::emitShlUint8IntAPS(SourceInfo L) { |
| 49241 | if (!isActive()) return true; |
| 49242 | CurrentSource = L; |
| 49243 | return Shl<PT_Uint8, PT_IntAPS>(S, CodePtr()); |
| 49244 | } |
| 49245 | bool EvalEmitter::emitShlSint16Sint8(SourceInfo L) { |
| 49246 | if (!isActive()) return true; |
| 49247 | CurrentSource = L; |
| 49248 | return Shl<PT_Sint16, PT_Sint8>(S, CodePtr()); |
| 49249 | } |
| 49250 | bool EvalEmitter::emitShlSint16Uint8(SourceInfo L) { |
| 49251 | if (!isActive()) return true; |
| 49252 | CurrentSource = L; |
| 49253 | return Shl<PT_Sint16, PT_Uint8>(S, CodePtr()); |
| 49254 | } |
| 49255 | bool EvalEmitter::emitShlSint16Sint16(SourceInfo L) { |
| 49256 | if (!isActive()) return true; |
| 49257 | CurrentSource = L; |
| 49258 | return Shl<PT_Sint16, PT_Sint16>(S, CodePtr()); |
| 49259 | } |
| 49260 | bool EvalEmitter::emitShlSint16Uint16(SourceInfo L) { |
| 49261 | if (!isActive()) return true; |
| 49262 | CurrentSource = L; |
| 49263 | return Shl<PT_Sint16, PT_Uint16>(S, CodePtr()); |
| 49264 | } |
| 49265 | bool EvalEmitter::emitShlSint16Sint32(SourceInfo L) { |
| 49266 | if (!isActive()) return true; |
| 49267 | CurrentSource = L; |
| 49268 | return Shl<PT_Sint16, PT_Sint32>(S, CodePtr()); |
| 49269 | } |
| 49270 | bool EvalEmitter::emitShlSint16Uint32(SourceInfo L) { |
| 49271 | if (!isActive()) return true; |
| 49272 | CurrentSource = L; |
| 49273 | return Shl<PT_Sint16, PT_Uint32>(S, CodePtr()); |
| 49274 | } |
| 49275 | bool EvalEmitter::emitShlSint16Sint64(SourceInfo L) { |
| 49276 | if (!isActive()) return true; |
| 49277 | CurrentSource = L; |
| 49278 | return Shl<PT_Sint16, PT_Sint64>(S, CodePtr()); |
| 49279 | } |
| 49280 | bool EvalEmitter::emitShlSint16Uint64(SourceInfo L) { |
| 49281 | if (!isActive()) return true; |
| 49282 | CurrentSource = L; |
| 49283 | return Shl<PT_Sint16, PT_Uint64>(S, CodePtr()); |
| 49284 | } |
| 49285 | bool EvalEmitter::emitShlSint16IntAP(SourceInfo L) { |
| 49286 | if (!isActive()) return true; |
| 49287 | CurrentSource = L; |
| 49288 | return Shl<PT_Sint16, PT_IntAP>(S, CodePtr()); |
| 49289 | } |
| 49290 | bool EvalEmitter::emitShlSint16IntAPS(SourceInfo L) { |
| 49291 | if (!isActive()) return true; |
| 49292 | CurrentSource = L; |
| 49293 | return Shl<PT_Sint16, PT_IntAPS>(S, CodePtr()); |
| 49294 | } |
| 49295 | bool EvalEmitter::emitShlUint16Sint8(SourceInfo L) { |
| 49296 | if (!isActive()) return true; |
| 49297 | CurrentSource = L; |
| 49298 | return Shl<PT_Uint16, PT_Sint8>(S, CodePtr()); |
| 49299 | } |
| 49300 | bool EvalEmitter::emitShlUint16Uint8(SourceInfo L) { |
| 49301 | if (!isActive()) return true; |
| 49302 | CurrentSource = L; |
| 49303 | return Shl<PT_Uint16, PT_Uint8>(S, CodePtr()); |
| 49304 | } |
| 49305 | bool EvalEmitter::emitShlUint16Sint16(SourceInfo L) { |
| 49306 | if (!isActive()) return true; |
| 49307 | CurrentSource = L; |
| 49308 | return Shl<PT_Uint16, PT_Sint16>(S, CodePtr()); |
| 49309 | } |
| 49310 | bool EvalEmitter::emitShlUint16Uint16(SourceInfo L) { |
| 49311 | if (!isActive()) return true; |
| 49312 | CurrentSource = L; |
| 49313 | return Shl<PT_Uint16, PT_Uint16>(S, CodePtr()); |
| 49314 | } |
| 49315 | bool EvalEmitter::emitShlUint16Sint32(SourceInfo L) { |
| 49316 | if (!isActive()) return true; |
| 49317 | CurrentSource = L; |
| 49318 | return Shl<PT_Uint16, PT_Sint32>(S, CodePtr()); |
| 49319 | } |
| 49320 | bool EvalEmitter::emitShlUint16Uint32(SourceInfo L) { |
| 49321 | if (!isActive()) return true; |
| 49322 | CurrentSource = L; |
| 49323 | return Shl<PT_Uint16, PT_Uint32>(S, CodePtr()); |
| 49324 | } |
| 49325 | bool EvalEmitter::emitShlUint16Sint64(SourceInfo L) { |
| 49326 | if (!isActive()) return true; |
| 49327 | CurrentSource = L; |
| 49328 | return Shl<PT_Uint16, PT_Sint64>(S, CodePtr()); |
| 49329 | } |
| 49330 | bool EvalEmitter::emitShlUint16Uint64(SourceInfo L) { |
| 49331 | if (!isActive()) return true; |
| 49332 | CurrentSource = L; |
| 49333 | return Shl<PT_Uint16, PT_Uint64>(S, CodePtr()); |
| 49334 | } |
| 49335 | bool EvalEmitter::emitShlUint16IntAP(SourceInfo L) { |
| 49336 | if (!isActive()) return true; |
| 49337 | CurrentSource = L; |
| 49338 | return Shl<PT_Uint16, PT_IntAP>(S, CodePtr()); |
| 49339 | } |
| 49340 | bool EvalEmitter::emitShlUint16IntAPS(SourceInfo L) { |
| 49341 | if (!isActive()) return true; |
| 49342 | CurrentSource = L; |
| 49343 | return Shl<PT_Uint16, PT_IntAPS>(S, CodePtr()); |
| 49344 | } |
| 49345 | bool EvalEmitter::emitShlSint32Sint8(SourceInfo L) { |
| 49346 | if (!isActive()) return true; |
| 49347 | CurrentSource = L; |
| 49348 | return Shl<PT_Sint32, PT_Sint8>(S, CodePtr()); |
| 49349 | } |
| 49350 | bool EvalEmitter::emitShlSint32Uint8(SourceInfo L) { |
| 49351 | if (!isActive()) return true; |
| 49352 | CurrentSource = L; |
| 49353 | return Shl<PT_Sint32, PT_Uint8>(S, CodePtr()); |
| 49354 | } |
| 49355 | bool EvalEmitter::emitShlSint32Sint16(SourceInfo L) { |
| 49356 | if (!isActive()) return true; |
| 49357 | CurrentSource = L; |
| 49358 | return Shl<PT_Sint32, PT_Sint16>(S, CodePtr()); |
| 49359 | } |
| 49360 | bool EvalEmitter::emitShlSint32Uint16(SourceInfo L) { |
| 49361 | if (!isActive()) return true; |
| 49362 | CurrentSource = L; |
| 49363 | return Shl<PT_Sint32, PT_Uint16>(S, CodePtr()); |
| 49364 | } |
| 49365 | bool EvalEmitter::emitShlSint32Sint32(SourceInfo L) { |
| 49366 | if (!isActive()) return true; |
| 49367 | CurrentSource = L; |
| 49368 | return Shl<PT_Sint32, PT_Sint32>(S, CodePtr()); |
| 49369 | } |
| 49370 | bool EvalEmitter::emitShlSint32Uint32(SourceInfo L) { |
| 49371 | if (!isActive()) return true; |
| 49372 | CurrentSource = L; |
| 49373 | return Shl<PT_Sint32, PT_Uint32>(S, CodePtr()); |
| 49374 | } |
| 49375 | bool EvalEmitter::emitShlSint32Sint64(SourceInfo L) { |
| 49376 | if (!isActive()) return true; |
| 49377 | CurrentSource = L; |
| 49378 | return Shl<PT_Sint32, PT_Sint64>(S, CodePtr()); |
| 49379 | } |
| 49380 | bool EvalEmitter::emitShlSint32Uint64(SourceInfo L) { |
| 49381 | if (!isActive()) return true; |
| 49382 | CurrentSource = L; |
| 49383 | return Shl<PT_Sint32, PT_Uint64>(S, CodePtr()); |
| 49384 | } |
| 49385 | bool EvalEmitter::emitShlSint32IntAP(SourceInfo L) { |
| 49386 | if (!isActive()) return true; |
| 49387 | CurrentSource = L; |
| 49388 | return Shl<PT_Sint32, PT_IntAP>(S, CodePtr()); |
| 49389 | } |
| 49390 | bool EvalEmitter::emitShlSint32IntAPS(SourceInfo L) { |
| 49391 | if (!isActive()) return true; |
| 49392 | CurrentSource = L; |
| 49393 | return Shl<PT_Sint32, PT_IntAPS>(S, CodePtr()); |
| 49394 | } |
| 49395 | bool EvalEmitter::emitShlUint32Sint8(SourceInfo L) { |
| 49396 | if (!isActive()) return true; |
| 49397 | CurrentSource = L; |
| 49398 | return Shl<PT_Uint32, PT_Sint8>(S, CodePtr()); |
| 49399 | } |
| 49400 | bool EvalEmitter::emitShlUint32Uint8(SourceInfo L) { |
| 49401 | if (!isActive()) return true; |
| 49402 | CurrentSource = L; |
| 49403 | return Shl<PT_Uint32, PT_Uint8>(S, CodePtr()); |
| 49404 | } |
| 49405 | bool EvalEmitter::emitShlUint32Sint16(SourceInfo L) { |
| 49406 | if (!isActive()) return true; |
| 49407 | CurrentSource = L; |
| 49408 | return Shl<PT_Uint32, PT_Sint16>(S, CodePtr()); |
| 49409 | } |
| 49410 | bool EvalEmitter::emitShlUint32Uint16(SourceInfo L) { |
| 49411 | if (!isActive()) return true; |
| 49412 | CurrentSource = L; |
| 49413 | return Shl<PT_Uint32, PT_Uint16>(S, CodePtr()); |
| 49414 | } |
| 49415 | bool EvalEmitter::emitShlUint32Sint32(SourceInfo L) { |
| 49416 | if (!isActive()) return true; |
| 49417 | CurrentSource = L; |
| 49418 | return Shl<PT_Uint32, PT_Sint32>(S, CodePtr()); |
| 49419 | } |
| 49420 | bool EvalEmitter::emitShlUint32Uint32(SourceInfo L) { |
| 49421 | if (!isActive()) return true; |
| 49422 | CurrentSource = L; |
| 49423 | return Shl<PT_Uint32, PT_Uint32>(S, CodePtr()); |
| 49424 | } |
| 49425 | bool EvalEmitter::emitShlUint32Sint64(SourceInfo L) { |
| 49426 | if (!isActive()) return true; |
| 49427 | CurrentSource = L; |
| 49428 | return Shl<PT_Uint32, PT_Sint64>(S, CodePtr()); |
| 49429 | } |
| 49430 | bool EvalEmitter::emitShlUint32Uint64(SourceInfo L) { |
| 49431 | if (!isActive()) return true; |
| 49432 | CurrentSource = L; |
| 49433 | return Shl<PT_Uint32, PT_Uint64>(S, CodePtr()); |
| 49434 | } |
| 49435 | bool EvalEmitter::emitShlUint32IntAP(SourceInfo L) { |
| 49436 | if (!isActive()) return true; |
| 49437 | CurrentSource = L; |
| 49438 | return Shl<PT_Uint32, PT_IntAP>(S, CodePtr()); |
| 49439 | } |
| 49440 | bool EvalEmitter::emitShlUint32IntAPS(SourceInfo L) { |
| 49441 | if (!isActive()) return true; |
| 49442 | CurrentSource = L; |
| 49443 | return Shl<PT_Uint32, PT_IntAPS>(S, CodePtr()); |
| 49444 | } |
| 49445 | bool EvalEmitter::emitShlSint64Sint8(SourceInfo L) { |
| 49446 | if (!isActive()) return true; |
| 49447 | CurrentSource = L; |
| 49448 | return Shl<PT_Sint64, PT_Sint8>(S, CodePtr()); |
| 49449 | } |
| 49450 | bool EvalEmitter::emitShlSint64Uint8(SourceInfo L) { |
| 49451 | if (!isActive()) return true; |
| 49452 | CurrentSource = L; |
| 49453 | return Shl<PT_Sint64, PT_Uint8>(S, CodePtr()); |
| 49454 | } |
| 49455 | bool EvalEmitter::emitShlSint64Sint16(SourceInfo L) { |
| 49456 | if (!isActive()) return true; |
| 49457 | CurrentSource = L; |
| 49458 | return Shl<PT_Sint64, PT_Sint16>(S, CodePtr()); |
| 49459 | } |
| 49460 | bool EvalEmitter::emitShlSint64Uint16(SourceInfo L) { |
| 49461 | if (!isActive()) return true; |
| 49462 | CurrentSource = L; |
| 49463 | return Shl<PT_Sint64, PT_Uint16>(S, CodePtr()); |
| 49464 | } |
| 49465 | bool EvalEmitter::emitShlSint64Sint32(SourceInfo L) { |
| 49466 | if (!isActive()) return true; |
| 49467 | CurrentSource = L; |
| 49468 | return Shl<PT_Sint64, PT_Sint32>(S, CodePtr()); |
| 49469 | } |
| 49470 | bool EvalEmitter::emitShlSint64Uint32(SourceInfo L) { |
| 49471 | if (!isActive()) return true; |
| 49472 | CurrentSource = L; |
| 49473 | return Shl<PT_Sint64, PT_Uint32>(S, CodePtr()); |
| 49474 | } |
| 49475 | bool EvalEmitter::emitShlSint64Sint64(SourceInfo L) { |
| 49476 | if (!isActive()) return true; |
| 49477 | CurrentSource = L; |
| 49478 | return Shl<PT_Sint64, PT_Sint64>(S, CodePtr()); |
| 49479 | } |
| 49480 | bool EvalEmitter::emitShlSint64Uint64(SourceInfo L) { |
| 49481 | if (!isActive()) return true; |
| 49482 | CurrentSource = L; |
| 49483 | return Shl<PT_Sint64, PT_Uint64>(S, CodePtr()); |
| 49484 | } |
| 49485 | bool EvalEmitter::emitShlSint64IntAP(SourceInfo L) { |
| 49486 | if (!isActive()) return true; |
| 49487 | CurrentSource = L; |
| 49488 | return Shl<PT_Sint64, PT_IntAP>(S, CodePtr()); |
| 49489 | } |
| 49490 | bool EvalEmitter::emitShlSint64IntAPS(SourceInfo L) { |
| 49491 | if (!isActive()) return true; |
| 49492 | CurrentSource = L; |
| 49493 | return Shl<PT_Sint64, PT_IntAPS>(S, CodePtr()); |
| 49494 | } |
| 49495 | bool EvalEmitter::emitShlUint64Sint8(SourceInfo L) { |
| 49496 | if (!isActive()) return true; |
| 49497 | CurrentSource = L; |
| 49498 | return Shl<PT_Uint64, PT_Sint8>(S, CodePtr()); |
| 49499 | } |
| 49500 | bool EvalEmitter::emitShlUint64Uint8(SourceInfo L) { |
| 49501 | if (!isActive()) return true; |
| 49502 | CurrentSource = L; |
| 49503 | return Shl<PT_Uint64, PT_Uint8>(S, CodePtr()); |
| 49504 | } |
| 49505 | bool EvalEmitter::emitShlUint64Sint16(SourceInfo L) { |
| 49506 | if (!isActive()) return true; |
| 49507 | CurrentSource = L; |
| 49508 | return Shl<PT_Uint64, PT_Sint16>(S, CodePtr()); |
| 49509 | } |
| 49510 | bool EvalEmitter::emitShlUint64Uint16(SourceInfo L) { |
| 49511 | if (!isActive()) return true; |
| 49512 | CurrentSource = L; |
| 49513 | return Shl<PT_Uint64, PT_Uint16>(S, CodePtr()); |
| 49514 | } |
| 49515 | bool EvalEmitter::emitShlUint64Sint32(SourceInfo L) { |
| 49516 | if (!isActive()) return true; |
| 49517 | CurrentSource = L; |
| 49518 | return Shl<PT_Uint64, PT_Sint32>(S, CodePtr()); |
| 49519 | } |
| 49520 | bool EvalEmitter::emitShlUint64Uint32(SourceInfo L) { |
| 49521 | if (!isActive()) return true; |
| 49522 | CurrentSource = L; |
| 49523 | return Shl<PT_Uint64, PT_Uint32>(S, CodePtr()); |
| 49524 | } |
| 49525 | bool EvalEmitter::emitShlUint64Sint64(SourceInfo L) { |
| 49526 | if (!isActive()) return true; |
| 49527 | CurrentSource = L; |
| 49528 | return Shl<PT_Uint64, PT_Sint64>(S, CodePtr()); |
| 49529 | } |
| 49530 | bool EvalEmitter::emitShlUint64Uint64(SourceInfo L) { |
| 49531 | if (!isActive()) return true; |
| 49532 | CurrentSource = L; |
| 49533 | return Shl<PT_Uint64, PT_Uint64>(S, CodePtr()); |
| 49534 | } |
| 49535 | bool EvalEmitter::emitShlUint64IntAP(SourceInfo L) { |
| 49536 | if (!isActive()) return true; |
| 49537 | CurrentSource = L; |
| 49538 | return Shl<PT_Uint64, PT_IntAP>(S, CodePtr()); |
| 49539 | } |
| 49540 | bool EvalEmitter::emitShlUint64IntAPS(SourceInfo L) { |
| 49541 | if (!isActive()) return true; |
| 49542 | CurrentSource = L; |
| 49543 | return Shl<PT_Uint64, PT_IntAPS>(S, CodePtr()); |
| 49544 | } |
| 49545 | bool EvalEmitter::emitShlIntAPSint8(SourceInfo L) { |
| 49546 | if (!isActive()) return true; |
| 49547 | CurrentSource = L; |
| 49548 | return Shl<PT_IntAP, PT_Sint8>(S, CodePtr()); |
| 49549 | } |
| 49550 | bool EvalEmitter::emitShlIntAPUint8(SourceInfo L) { |
| 49551 | if (!isActive()) return true; |
| 49552 | CurrentSource = L; |
| 49553 | return Shl<PT_IntAP, PT_Uint8>(S, CodePtr()); |
| 49554 | } |
| 49555 | bool EvalEmitter::emitShlIntAPSint16(SourceInfo L) { |
| 49556 | if (!isActive()) return true; |
| 49557 | CurrentSource = L; |
| 49558 | return Shl<PT_IntAP, PT_Sint16>(S, CodePtr()); |
| 49559 | } |
| 49560 | bool EvalEmitter::emitShlIntAPUint16(SourceInfo L) { |
| 49561 | if (!isActive()) return true; |
| 49562 | CurrentSource = L; |
| 49563 | return Shl<PT_IntAP, PT_Uint16>(S, CodePtr()); |
| 49564 | } |
| 49565 | bool EvalEmitter::emitShlIntAPSint32(SourceInfo L) { |
| 49566 | if (!isActive()) return true; |
| 49567 | CurrentSource = L; |
| 49568 | return Shl<PT_IntAP, PT_Sint32>(S, CodePtr()); |
| 49569 | } |
| 49570 | bool EvalEmitter::emitShlIntAPUint32(SourceInfo L) { |
| 49571 | if (!isActive()) return true; |
| 49572 | CurrentSource = L; |
| 49573 | return Shl<PT_IntAP, PT_Uint32>(S, CodePtr()); |
| 49574 | } |
| 49575 | bool EvalEmitter::emitShlIntAPSint64(SourceInfo L) { |
| 49576 | if (!isActive()) return true; |
| 49577 | CurrentSource = L; |
| 49578 | return Shl<PT_IntAP, PT_Sint64>(S, CodePtr()); |
| 49579 | } |
| 49580 | bool EvalEmitter::emitShlIntAPUint64(SourceInfo L) { |
| 49581 | if (!isActive()) return true; |
| 49582 | CurrentSource = L; |
| 49583 | return Shl<PT_IntAP, PT_Uint64>(S, CodePtr()); |
| 49584 | } |
| 49585 | bool EvalEmitter::emitShlIntAPIntAP(SourceInfo L) { |
| 49586 | if (!isActive()) return true; |
| 49587 | CurrentSource = L; |
| 49588 | return Shl<PT_IntAP, PT_IntAP>(S, CodePtr()); |
| 49589 | } |
| 49590 | bool EvalEmitter::emitShlIntAPIntAPS(SourceInfo L) { |
| 49591 | if (!isActive()) return true; |
| 49592 | CurrentSource = L; |
| 49593 | return Shl<PT_IntAP, PT_IntAPS>(S, CodePtr()); |
| 49594 | } |
| 49595 | bool EvalEmitter::emitShlIntAPSSint8(SourceInfo L) { |
| 49596 | if (!isActive()) return true; |
| 49597 | CurrentSource = L; |
| 49598 | return Shl<PT_IntAPS, PT_Sint8>(S, CodePtr()); |
| 49599 | } |
| 49600 | bool EvalEmitter::emitShlIntAPSUint8(SourceInfo L) { |
| 49601 | if (!isActive()) return true; |
| 49602 | CurrentSource = L; |
| 49603 | return Shl<PT_IntAPS, PT_Uint8>(S, CodePtr()); |
| 49604 | } |
| 49605 | bool EvalEmitter::emitShlIntAPSSint16(SourceInfo L) { |
| 49606 | if (!isActive()) return true; |
| 49607 | CurrentSource = L; |
| 49608 | return Shl<PT_IntAPS, PT_Sint16>(S, CodePtr()); |
| 49609 | } |
| 49610 | bool EvalEmitter::emitShlIntAPSUint16(SourceInfo L) { |
| 49611 | if (!isActive()) return true; |
| 49612 | CurrentSource = L; |
| 49613 | return Shl<PT_IntAPS, PT_Uint16>(S, CodePtr()); |
| 49614 | } |
| 49615 | bool EvalEmitter::emitShlIntAPSSint32(SourceInfo L) { |
| 49616 | if (!isActive()) return true; |
| 49617 | CurrentSource = L; |
| 49618 | return Shl<PT_IntAPS, PT_Sint32>(S, CodePtr()); |
| 49619 | } |
| 49620 | bool EvalEmitter::emitShlIntAPSUint32(SourceInfo L) { |
| 49621 | if (!isActive()) return true; |
| 49622 | CurrentSource = L; |
| 49623 | return Shl<PT_IntAPS, PT_Uint32>(S, CodePtr()); |
| 49624 | } |
| 49625 | bool EvalEmitter::emitShlIntAPSSint64(SourceInfo L) { |
| 49626 | if (!isActive()) return true; |
| 49627 | CurrentSource = L; |
| 49628 | return Shl<PT_IntAPS, PT_Sint64>(S, CodePtr()); |
| 49629 | } |
| 49630 | bool EvalEmitter::emitShlIntAPSUint64(SourceInfo L) { |
| 49631 | if (!isActive()) return true; |
| 49632 | CurrentSource = L; |
| 49633 | return Shl<PT_IntAPS, PT_Uint64>(S, CodePtr()); |
| 49634 | } |
| 49635 | bool EvalEmitter::emitShlIntAPSIntAP(SourceInfo L) { |
| 49636 | if (!isActive()) return true; |
| 49637 | CurrentSource = L; |
| 49638 | return Shl<PT_IntAPS, PT_IntAP>(S, CodePtr()); |
| 49639 | } |
| 49640 | bool EvalEmitter::emitShlIntAPSIntAPS(SourceInfo L) { |
| 49641 | if (!isActive()) return true; |
| 49642 | CurrentSource = L; |
| 49643 | return Shl<PT_IntAPS, PT_IntAPS>(S, CodePtr()); |
| 49644 | } |
| 49645 | #endif |
| 49646 | #ifdef GET_OPCODE_NAMES |
| 49647 | OP_ShrSint8Sint8, |
| 49648 | OP_ShrSint8Uint8, |
| 49649 | OP_ShrSint8Sint16, |
| 49650 | OP_ShrSint8Uint16, |
| 49651 | OP_ShrSint8Sint32, |
| 49652 | OP_ShrSint8Uint32, |
| 49653 | OP_ShrSint8Sint64, |
| 49654 | OP_ShrSint8Uint64, |
| 49655 | OP_ShrSint8IntAP, |
| 49656 | OP_ShrSint8IntAPS, |
| 49657 | OP_ShrUint8Sint8, |
| 49658 | OP_ShrUint8Uint8, |
| 49659 | OP_ShrUint8Sint16, |
| 49660 | OP_ShrUint8Uint16, |
| 49661 | OP_ShrUint8Sint32, |
| 49662 | OP_ShrUint8Uint32, |
| 49663 | OP_ShrUint8Sint64, |
| 49664 | OP_ShrUint8Uint64, |
| 49665 | OP_ShrUint8IntAP, |
| 49666 | OP_ShrUint8IntAPS, |
| 49667 | OP_ShrSint16Sint8, |
| 49668 | OP_ShrSint16Uint8, |
| 49669 | OP_ShrSint16Sint16, |
| 49670 | OP_ShrSint16Uint16, |
| 49671 | OP_ShrSint16Sint32, |
| 49672 | OP_ShrSint16Uint32, |
| 49673 | OP_ShrSint16Sint64, |
| 49674 | OP_ShrSint16Uint64, |
| 49675 | OP_ShrSint16IntAP, |
| 49676 | OP_ShrSint16IntAPS, |
| 49677 | OP_ShrUint16Sint8, |
| 49678 | OP_ShrUint16Uint8, |
| 49679 | OP_ShrUint16Sint16, |
| 49680 | OP_ShrUint16Uint16, |
| 49681 | OP_ShrUint16Sint32, |
| 49682 | OP_ShrUint16Uint32, |
| 49683 | OP_ShrUint16Sint64, |
| 49684 | OP_ShrUint16Uint64, |
| 49685 | OP_ShrUint16IntAP, |
| 49686 | OP_ShrUint16IntAPS, |
| 49687 | OP_ShrSint32Sint8, |
| 49688 | OP_ShrSint32Uint8, |
| 49689 | OP_ShrSint32Sint16, |
| 49690 | OP_ShrSint32Uint16, |
| 49691 | OP_ShrSint32Sint32, |
| 49692 | OP_ShrSint32Uint32, |
| 49693 | OP_ShrSint32Sint64, |
| 49694 | OP_ShrSint32Uint64, |
| 49695 | OP_ShrSint32IntAP, |
| 49696 | OP_ShrSint32IntAPS, |
| 49697 | OP_ShrUint32Sint8, |
| 49698 | OP_ShrUint32Uint8, |
| 49699 | OP_ShrUint32Sint16, |
| 49700 | OP_ShrUint32Uint16, |
| 49701 | OP_ShrUint32Sint32, |
| 49702 | OP_ShrUint32Uint32, |
| 49703 | OP_ShrUint32Sint64, |
| 49704 | OP_ShrUint32Uint64, |
| 49705 | OP_ShrUint32IntAP, |
| 49706 | OP_ShrUint32IntAPS, |
| 49707 | OP_ShrSint64Sint8, |
| 49708 | OP_ShrSint64Uint8, |
| 49709 | OP_ShrSint64Sint16, |
| 49710 | OP_ShrSint64Uint16, |
| 49711 | OP_ShrSint64Sint32, |
| 49712 | OP_ShrSint64Uint32, |
| 49713 | OP_ShrSint64Sint64, |
| 49714 | OP_ShrSint64Uint64, |
| 49715 | OP_ShrSint64IntAP, |
| 49716 | OP_ShrSint64IntAPS, |
| 49717 | OP_ShrUint64Sint8, |
| 49718 | OP_ShrUint64Uint8, |
| 49719 | OP_ShrUint64Sint16, |
| 49720 | OP_ShrUint64Uint16, |
| 49721 | OP_ShrUint64Sint32, |
| 49722 | OP_ShrUint64Uint32, |
| 49723 | OP_ShrUint64Sint64, |
| 49724 | OP_ShrUint64Uint64, |
| 49725 | OP_ShrUint64IntAP, |
| 49726 | OP_ShrUint64IntAPS, |
| 49727 | OP_ShrIntAPSint8, |
| 49728 | OP_ShrIntAPUint8, |
| 49729 | OP_ShrIntAPSint16, |
| 49730 | OP_ShrIntAPUint16, |
| 49731 | OP_ShrIntAPSint32, |
| 49732 | OP_ShrIntAPUint32, |
| 49733 | OP_ShrIntAPSint64, |
| 49734 | OP_ShrIntAPUint64, |
| 49735 | OP_ShrIntAPIntAP, |
| 49736 | OP_ShrIntAPIntAPS, |
| 49737 | OP_ShrIntAPSSint8, |
| 49738 | OP_ShrIntAPSUint8, |
| 49739 | OP_ShrIntAPSSint16, |
| 49740 | OP_ShrIntAPSUint16, |
| 49741 | OP_ShrIntAPSSint32, |
| 49742 | OP_ShrIntAPSUint32, |
| 49743 | OP_ShrIntAPSSint64, |
| 49744 | OP_ShrIntAPSUint64, |
| 49745 | OP_ShrIntAPSIntAP, |
| 49746 | OP_ShrIntAPSIntAPS, |
| 49747 | #endif |
| 49748 | #ifdef GET_INTERPFN_LIST |
| 49749 | &Interp_ShrSint8Sint8, |
| 49750 | &Interp_ShrSint8Uint8, |
| 49751 | &Interp_ShrSint8Sint16, |
| 49752 | &Interp_ShrSint8Uint16, |
| 49753 | &Interp_ShrSint8Sint32, |
| 49754 | &Interp_ShrSint8Uint32, |
| 49755 | &Interp_ShrSint8Sint64, |
| 49756 | &Interp_ShrSint8Uint64, |
| 49757 | &Interp_ShrSint8IntAP, |
| 49758 | &Interp_ShrSint8IntAPS, |
| 49759 | &Interp_ShrUint8Sint8, |
| 49760 | &Interp_ShrUint8Uint8, |
| 49761 | &Interp_ShrUint8Sint16, |
| 49762 | &Interp_ShrUint8Uint16, |
| 49763 | &Interp_ShrUint8Sint32, |
| 49764 | &Interp_ShrUint8Uint32, |
| 49765 | &Interp_ShrUint8Sint64, |
| 49766 | &Interp_ShrUint8Uint64, |
| 49767 | &Interp_ShrUint8IntAP, |
| 49768 | &Interp_ShrUint8IntAPS, |
| 49769 | &Interp_ShrSint16Sint8, |
| 49770 | &Interp_ShrSint16Uint8, |
| 49771 | &Interp_ShrSint16Sint16, |
| 49772 | &Interp_ShrSint16Uint16, |
| 49773 | &Interp_ShrSint16Sint32, |
| 49774 | &Interp_ShrSint16Uint32, |
| 49775 | &Interp_ShrSint16Sint64, |
| 49776 | &Interp_ShrSint16Uint64, |
| 49777 | &Interp_ShrSint16IntAP, |
| 49778 | &Interp_ShrSint16IntAPS, |
| 49779 | &Interp_ShrUint16Sint8, |
| 49780 | &Interp_ShrUint16Uint8, |
| 49781 | &Interp_ShrUint16Sint16, |
| 49782 | &Interp_ShrUint16Uint16, |
| 49783 | &Interp_ShrUint16Sint32, |
| 49784 | &Interp_ShrUint16Uint32, |
| 49785 | &Interp_ShrUint16Sint64, |
| 49786 | &Interp_ShrUint16Uint64, |
| 49787 | &Interp_ShrUint16IntAP, |
| 49788 | &Interp_ShrUint16IntAPS, |
| 49789 | &Interp_ShrSint32Sint8, |
| 49790 | &Interp_ShrSint32Uint8, |
| 49791 | &Interp_ShrSint32Sint16, |
| 49792 | &Interp_ShrSint32Uint16, |
| 49793 | &Interp_ShrSint32Sint32, |
| 49794 | &Interp_ShrSint32Uint32, |
| 49795 | &Interp_ShrSint32Sint64, |
| 49796 | &Interp_ShrSint32Uint64, |
| 49797 | &Interp_ShrSint32IntAP, |
| 49798 | &Interp_ShrSint32IntAPS, |
| 49799 | &Interp_ShrUint32Sint8, |
| 49800 | &Interp_ShrUint32Uint8, |
| 49801 | &Interp_ShrUint32Sint16, |
| 49802 | &Interp_ShrUint32Uint16, |
| 49803 | &Interp_ShrUint32Sint32, |
| 49804 | &Interp_ShrUint32Uint32, |
| 49805 | &Interp_ShrUint32Sint64, |
| 49806 | &Interp_ShrUint32Uint64, |
| 49807 | &Interp_ShrUint32IntAP, |
| 49808 | &Interp_ShrUint32IntAPS, |
| 49809 | &Interp_ShrSint64Sint8, |
| 49810 | &Interp_ShrSint64Uint8, |
| 49811 | &Interp_ShrSint64Sint16, |
| 49812 | &Interp_ShrSint64Uint16, |
| 49813 | &Interp_ShrSint64Sint32, |
| 49814 | &Interp_ShrSint64Uint32, |
| 49815 | &Interp_ShrSint64Sint64, |
| 49816 | &Interp_ShrSint64Uint64, |
| 49817 | &Interp_ShrSint64IntAP, |
| 49818 | &Interp_ShrSint64IntAPS, |
| 49819 | &Interp_ShrUint64Sint8, |
| 49820 | &Interp_ShrUint64Uint8, |
| 49821 | &Interp_ShrUint64Sint16, |
| 49822 | &Interp_ShrUint64Uint16, |
| 49823 | &Interp_ShrUint64Sint32, |
| 49824 | &Interp_ShrUint64Uint32, |
| 49825 | &Interp_ShrUint64Sint64, |
| 49826 | &Interp_ShrUint64Uint64, |
| 49827 | &Interp_ShrUint64IntAP, |
| 49828 | &Interp_ShrUint64IntAPS, |
| 49829 | &Interp_ShrIntAPSint8, |
| 49830 | &Interp_ShrIntAPUint8, |
| 49831 | &Interp_ShrIntAPSint16, |
| 49832 | &Interp_ShrIntAPUint16, |
| 49833 | &Interp_ShrIntAPSint32, |
| 49834 | &Interp_ShrIntAPUint32, |
| 49835 | &Interp_ShrIntAPSint64, |
| 49836 | &Interp_ShrIntAPUint64, |
| 49837 | &Interp_ShrIntAPIntAP, |
| 49838 | &Interp_ShrIntAPIntAPS, |
| 49839 | &Interp_ShrIntAPSSint8, |
| 49840 | &Interp_ShrIntAPSUint8, |
| 49841 | &Interp_ShrIntAPSSint16, |
| 49842 | &Interp_ShrIntAPSUint16, |
| 49843 | &Interp_ShrIntAPSSint32, |
| 49844 | &Interp_ShrIntAPSUint32, |
| 49845 | &Interp_ShrIntAPSSint64, |
| 49846 | &Interp_ShrIntAPSUint64, |
| 49847 | &Interp_ShrIntAPSIntAP, |
| 49848 | &Interp_ShrIntAPSIntAPS, |
| 49849 | #endif |
| 49850 | #ifdef GET_INTERPFN_DISPATCHERS |
| 49851 | PRESERVE_NONE |
| 49852 | static bool Interp_ShrSint8Sint8(InterpState &S) { |
| 49853 | if (!Shr<PT_Sint8, PT_Sint8>(S, S.PC)) return false; |
| 49854 | #if USE_TAILCALLS |
| 49855 | MUSTTAIL return InterpNext(S); |
| 49856 | #else |
| 49857 | return true; |
| 49858 | #endif |
| 49859 | } |
| 49860 | PRESERVE_NONE |
| 49861 | static bool Interp_ShrSint8Uint8(InterpState &S) { |
| 49862 | if (!Shr<PT_Sint8, PT_Uint8>(S, S.PC)) return false; |
| 49863 | #if USE_TAILCALLS |
| 49864 | MUSTTAIL return InterpNext(S); |
| 49865 | #else |
| 49866 | return true; |
| 49867 | #endif |
| 49868 | } |
| 49869 | PRESERVE_NONE |
| 49870 | static bool Interp_ShrSint8Sint16(InterpState &S) { |
| 49871 | if (!Shr<PT_Sint8, PT_Sint16>(S, S.PC)) return false; |
| 49872 | #if USE_TAILCALLS |
| 49873 | MUSTTAIL return InterpNext(S); |
| 49874 | #else |
| 49875 | return true; |
| 49876 | #endif |
| 49877 | } |
| 49878 | PRESERVE_NONE |
| 49879 | static bool Interp_ShrSint8Uint16(InterpState &S) { |
| 49880 | if (!Shr<PT_Sint8, PT_Uint16>(S, S.PC)) return false; |
| 49881 | #if USE_TAILCALLS |
| 49882 | MUSTTAIL return InterpNext(S); |
| 49883 | #else |
| 49884 | return true; |
| 49885 | #endif |
| 49886 | } |
| 49887 | PRESERVE_NONE |
| 49888 | static bool Interp_ShrSint8Sint32(InterpState &S) { |
| 49889 | if (!Shr<PT_Sint8, PT_Sint32>(S, S.PC)) return false; |
| 49890 | #if USE_TAILCALLS |
| 49891 | MUSTTAIL return InterpNext(S); |
| 49892 | #else |
| 49893 | return true; |
| 49894 | #endif |
| 49895 | } |
| 49896 | PRESERVE_NONE |
| 49897 | static bool Interp_ShrSint8Uint32(InterpState &S) { |
| 49898 | if (!Shr<PT_Sint8, PT_Uint32>(S, S.PC)) return false; |
| 49899 | #if USE_TAILCALLS |
| 49900 | MUSTTAIL return InterpNext(S); |
| 49901 | #else |
| 49902 | return true; |
| 49903 | #endif |
| 49904 | } |
| 49905 | PRESERVE_NONE |
| 49906 | static bool Interp_ShrSint8Sint64(InterpState &S) { |
| 49907 | if (!Shr<PT_Sint8, PT_Sint64>(S, S.PC)) return false; |
| 49908 | #if USE_TAILCALLS |
| 49909 | MUSTTAIL return InterpNext(S); |
| 49910 | #else |
| 49911 | return true; |
| 49912 | #endif |
| 49913 | } |
| 49914 | PRESERVE_NONE |
| 49915 | static bool Interp_ShrSint8Uint64(InterpState &S) { |
| 49916 | if (!Shr<PT_Sint8, PT_Uint64>(S, S.PC)) return false; |
| 49917 | #if USE_TAILCALLS |
| 49918 | MUSTTAIL return InterpNext(S); |
| 49919 | #else |
| 49920 | return true; |
| 49921 | #endif |
| 49922 | } |
| 49923 | PRESERVE_NONE |
| 49924 | static bool Interp_ShrSint8IntAP(InterpState &S) { |
| 49925 | if (!Shr<PT_Sint8, PT_IntAP>(S, S.PC)) return false; |
| 49926 | #if USE_TAILCALLS |
| 49927 | MUSTTAIL return InterpNext(S); |
| 49928 | #else |
| 49929 | return true; |
| 49930 | #endif |
| 49931 | } |
| 49932 | PRESERVE_NONE |
| 49933 | static bool Interp_ShrSint8IntAPS(InterpState &S) { |
| 49934 | if (!Shr<PT_Sint8, PT_IntAPS>(S, S.PC)) return false; |
| 49935 | #if USE_TAILCALLS |
| 49936 | MUSTTAIL return InterpNext(S); |
| 49937 | #else |
| 49938 | return true; |
| 49939 | #endif |
| 49940 | } |
| 49941 | PRESERVE_NONE |
| 49942 | static bool Interp_ShrUint8Sint8(InterpState &S) { |
| 49943 | if (!Shr<PT_Uint8, PT_Sint8>(S, S.PC)) return false; |
| 49944 | #if USE_TAILCALLS |
| 49945 | MUSTTAIL return InterpNext(S); |
| 49946 | #else |
| 49947 | return true; |
| 49948 | #endif |
| 49949 | } |
| 49950 | PRESERVE_NONE |
| 49951 | static bool Interp_ShrUint8Uint8(InterpState &S) { |
| 49952 | if (!Shr<PT_Uint8, PT_Uint8>(S, S.PC)) return false; |
| 49953 | #if USE_TAILCALLS |
| 49954 | MUSTTAIL return InterpNext(S); |
| 49955 | #else |
| 49956 | return true; |
| 49957 | #endif |
| 49958 | } |
| 49959 | PRESERVE_NONE |
| 49960 | static bool Interp_ShrUint8Sint16(InterpState &S) { |
| 49961 | if (!Shr<PT_Uint8, PT_Sint16>(S, S.PC)) return false; |
| 49962 | #if USE_TAILCALLS |
| 49963 | MUSTTAIL return InterpNext(S); |
| 49964 | #else |
| 49965 | return true; |
| 49966 | #endif |
| 49967 | } |
| 49968 | PRESERVE_NONE |
| 49969 | static bool Interp_ShrUint8Uint16(InterpState &S) { |
| 49970 | if (!Shr<PT_Uint8, PT_Uint16>(S, S.PC)) return false; |
| 49971 | #if USE_TAILCALLS |
| 49972 | MUSTTAIL return InterpNext(S); |
| 49973 | #else |
| 49974 | return true; |
| 49975 | #endif |
| 49976 | } |
| 49977 | PRESERVE_NONE |
| 49978 | static bool Interp_ShrUint8Sint32(InterpState &S) { |
| 49979 | if (!Shr<PT_Uint8, PT_Sint32>(S, S.PC)) return false; |
| 49980 | #if USE_TAILCALLS |
| 49981 | MUSTTAIL return InterpNext(S); |
| 49982 | #else |
| 49983 | return true; |
| 49984 | #endif |
| 49985 | } |
| 49986 | PRESERVE_NONE |
| 49987 | static bool Interp_ShrUint8Uint32(InterpState &S) { |
| 49988 | if (!Shr<PT_Uint8, PT_Uint32>(S, S.PC)) return false; |
| 49989 | #if USE_TAILCALLS |
| 49990 | MUSTTAIL return InterpNext(S); |
| 49991 | #else |
| 49992 | return true; |
| 49993 | #endif |
| 49994 | } |
| 49995 | PRESERVE_NONE |
| 49996 | static bool Interp_ShrUint8Sint64(InterpState &S) { |
| 49997 | if (!Shr<PT_Uint8, PT_Sint64>(S, S.PC)) return false; |
| 49998 | #if USE_TAILCALLS |
| 49999 | MUSTTAIL return InterpNext(S); |
| 50000 | #else |
| 50001 | return true; |
| 50002 | #endif |
| 50003 | } |
| 50004 | PRESERVE_NONE |
| 50005 | static bool Interp_ShrUint8Uint64(InterpState &S) { |
| 50006 | if (!Shr<PT_Uint8, PT_Uint64>(S, S.PC)) return false; |
| 50007 | #if USE_TAILCALLS |
| 50008 | MUSTTAIL return InterpNext(S); |
| 50009 | #else |
| 50010 | return true; |
| 50011 | #endif |
| 50012 | } |
| 50013 | PRESERVE_NONE |
| 50014 | static bool Interp_ShrUint8IntAP(InterpState &S) { |
| 50015 | if (!Shr<PT_Uint8, PT_IntAP>(S, S.PC)) return false; |
| 50016 | #if USE_TAILCALLS |
| 50017 | MUSTTAIL return InterpNext(S); |
| 50018 | #else |
| 50019 | return true; |
| 50020 | #endif |
| 50021 | } |
| 50022 | PRESERVE_NONE |
| 50023 | static bool Interp_ShrUint8IntAPS(InterpState &S) { |
| 50024 | if (!Shr<PT_Uint8, PT_IntAPS>(S, S.PC)) return false; |
| 50025 | #if USE_TAILCALLS |
| 50026 | MUSTTAIL return InterpNext(S); |
| 50027 | #else |
| 50028 | return true; |
| 50029 | #endif |
| 50030 | } |
| 50031 | PRESERVE_NONE |
| 50032 | static bool Interp_ShrSint16Sint8(InterpState &S) { |
| 50033 | if (!Shr<PT_Sint16, PT_Sint8>(S, S.PC)) return false; |
| 50034 | #if USE_TAILCALLS |
| 50035 | MUSTTAIL return InterpNext(S); |
| 50036 | #else |
| 50037 | return true; |
| 50038 | #endif |
| 50039 | } |
| 50040 | PRESERVE_NONE |
| 50041 | static bool Interp_ShrSint16Uint8(InterpState &S) { |
| 50042 | if (!Shr<PT_Sint16, PT_Uint8>(S, S.PC)) return false; |
| 50043 | #if USE_TAILCALLS |
| 50044 | MUSTTAIL return InterpNext(S); |
| 50045 | #else |
| 50046 | return true; |
| 50047 | #endif |
| 50048 | } |
| 50049 | PRESERVE_NONE |
| 50050 | static bool Interp_ShrSint16Sint16(InterpState &S) { |
| 50051 | if (!Shr<PT_Sint16, PT_Sint16>(S, S.PC)) return false; |
| 50052 | #if USE_TAILCALLS |
| 50053 | MUSTTAIL return InterpNext(S); |
| 50054 | #else |
| 50055 | return true; |
| 50056 | #endif |
| 50057 | } |
| 50058 | PRESERVE_NONE |
| 50059 | static bool Interp_ShrSint16Uint16(InterpState &S) { |
| 50060 | if (!Shr<PT_Sint16, PT_Uint16>(S, S.PC)) return false; |
| 50061 | #if USE_TAILCALLS |
| 50062 | MUSTTAIL return InterpNext(S); |
| 50063 | #else |
| 50064 | return true; |
| 50065 | #endif |
| 50066 | } |
| 50067 | PRESERVE_NONE |
| 50068 | static bool Interp_ShrSint16Sint32(InterpState &S) { |
| 50069 | if (!Shr<PT_Sint16, PT_Sint32>(S, S.PC)) return false; |
| 50070 | #if USE_TAILCALLS |
| 50071 | MUSTTAIL return InterpNext(S); |
| 50072 | #else |
| 50073 | return true; |
| 50074 | #endif |
| 50075 | } |
| 50076 | PRESERVE_NONE |
| 50077 | static bool Interp_ShrSint16Uint32(InterpState &S) { |
| 50078 | if (!Shr<PT_Sint16, PT_Uint32>(S, S.PC)) return false; |
| 50079 | #if USE_TAILCALLS |
| 50080 | MUSTTAIL return InterpNext(S); |
| 50081 | #else |
| 50082 | return true; |
| 50083 | #endif |
| 50084 | } |
| 50085 | PRESERVE_NONE |
| 50086 | static bool Interp_ShrSint16Sint64(InterpState &S) { |
| 50087 | if (!Shr<PT_Sint16, PT_Sint64>(S, S.PC)) return false; |
| 50088 | #if USE_TAILCALLS |
| 50089 | MUSTTAIL return InterpNext(S); |
| 50090 | #else |
| 50091 | return true; |
| 50092 | #endif |
| 50093 | } |
| 50094 | PRESERVE_NONE |
| 50095 | static bool Interp_ShrSint16Uint64(InterpState &S) { |
| 50096 | if (!Shr<PT_Sint16, PT_Uint64>(S, S.PC)) return false; |
| 50097 | #if USE_TAILCALLS |
| 50098 | MUSTTAIL return InterpNext(S); |
| 50099 | #else |
| 50100 | return true; |
| 50101 | #endif |
| 50102 | } |
| 50103 | PRESERVE_NONE |
| 50104 | static bool Interp_ShrSint16IntAP(InterpState &S) { |
| 50105 | if (!Shr<PT_Sint16, PT_IntAP>(S, S.PC)) return false; |
| 50106 | #if USE_TAILCALLS |
| 50107 | MUSTTAIL return InterpNext(S); |
| 50108 | #else |
| 50109 | return true; |
| 50110 | #endif |
| 50111 | } |
| 50112 | PRESERVE_NONE |
| 50113 | static bool Interp_ShrSint16IntAPS(InterpState &S) { |
| 50114 | if (!Shr<PT_Sint16, PT_IntAPS>(S, S.PC)) return false; |
| 50115 | #if USE_TAILCALLS |
| 50116 | MUSTTAIL return InterpNext(S); |
| 50117 | #else |
| 50118 | return true; |
| 50119 | #endif |
| 50120 | } |
| 50121 | PRESERVE_NONE |
| 50122 | static bool Interp_ShrUint16Sint8(InterpState &S) { |
| 50123 | if (!Shr<PT_Uint16, PT_Sint8>(S, S.PC)) return false; |
| 50124 | #if USE_TAILCALLS |
| 50125 | MUSTTAIL return InterpNext(S); |
| 50126 | #else |
| 50127 | return true; |
| 50128 | #endif |
| 50129 | } |
| 50130 | PRESERVE_NONE |
| 50131 | static bool Interp_ShrUint16Uint8(InterpState &S) { |
| 50132 | if (!Shr<PT_Uint16, PT_Uint8>(S, S.PC)) return false; |
| 50133 | #if USE_TAILCALLS |
| 50134 | MUSTTAIL return InterpNext(S); |
| 50135 | #else |
| 50136 | return true; |
| 50137 | #endif |
| 50138 | } |
| 50139 | PRESERVE_NONE |
| 50140 | static bool Interp_ShrUint16Sint16(InterpState &S) { |
| 50141 | if (!Shr<PT_Uint16, PT_Sint16>(S, S.PC)) return false; |
| 50142 | #if USE_TAILCALLS |
| 50143 | MUSTTAIL return InterpNext(S); |
| 50144 | #else |
| 50145 | return true; |
| 50146 | #endif |
| 50147 | } |
| 50148 | PRESERVE_NONE |
| 50149 | static bool Interp_ShrUint16Uint16(InterpState &S) { |
| 50150 | if (!Shr<PT_Uint16, PT_Uint16>(S, S.PC)) return false; |
| 50151 | #if USE_TAILCALLS |
| 50152 | MUSTTAIL return InterpNext(S); |
| 50153 | #else |
| 50154 | return true; |
| 50155 | #endif |
| 50156 | } |
| 50157 | PRESERVE_NONE |
| 50158 | static bool Interp_ShrUint16Sint32(InterpState &S) { |
| 50159 | if (!Shr<PT_Uint16, PT_Sint32>(S, S.PC)) return false; |
| 50160 | #if USE_TAILCALLS |
| 50161 | MUSTTAIL return InterpNext(S); |
| 50162 | #else |
| 50163 | return true; |
| 50164 | #endif |
| 50165 | } |
| 50166 | PRESERVE_NONE |
| 50167 | static bool Interp_ShrUint16Uint32(InterpState &S) { |
| 50168 | if (!Shr<PT_Uint16, PT_Uint32>(S, S.PC)) return false; |
| 50169 | #if USE_TAILCALLS |
| 50170 | MUSTTAIL return InterpNext(S); |
| 50171 | #else |
| 50172 | return true; |
| 50173 | #endif |
| 50174 | } |
| 50175 | PRESERVE_NONE |
| 50176 | static bool Interp_ShrUint16Sint64(InterpState &S) { |
| 50177 | if (!Shr<PT_Uint16, PT_Sint64>(S, S.PC)) return false; |
| 50178 | #if USE_TAILCALLS |
| 50179 | MUSTTAIL return InterpNext(S); |
| 50180 | #else |
| 50181 | return true; |
| 50182 | #endif |
| 50183 | } |
| 50184 | PRESERVE_NONE |
| 50185 | static bool Interp_ShrUint16Uint64(InterpState &S) { |
| 50186 | if (!Shr<PT_Uint16, PT_Uint64>(S, S.PC)) return false; |
| 50187 | #if USE_TAILCALLS |
| 50188 | MUSTTAIL return InterpNext(S); |
| 50189 | #else |
| 50190 | return true; |
| 50191 | #endif |
| 50192 | } |
| 50193 | PRESERVE_NONE |
| 50194 | static bool Interp_ShrUint16IntAP(InterpState &S) { |
| 50195 | if (!Shr<PT_Uint16, PT_IntAP>(S, S.PC)) return false; |
| 50196 | #if USE_TAILCALLS |
| 50197 | MUSTTAIL return InterpNext(S); |
| 50198 | #else |
| 50199 | return true; |
| 50200 | #endif |
| 50201 | } |
| 50202 | PRESERVE_NONE |
| 50203 | static bool Interp_ShrUint16IntAPS(InterpState &S) { |
| 50204 | if (!Shr<PT_Uint16, PT_IntAPS>(S, S.PC)) return false; |
| 50205 | #if USE_TAILCALLS |
| 50206 | MUSTTAIL return InterpNext(S); |
| 50207 | #else |
| 50208 | return true; |
| 50209 | #endif |
| 50210 | } |
| 50211 | PRESERVE_NONE |
| 50212 | static bool Interp_ShrSint32Sint8(InterpState &S) { |
| 50213 | if (!Shr<PT_Sint32, PT_Sint8>(S, S.PC)) return false; |
| 50214 | #if USE_TAILCALLS |
| 50215 | MUSTTAIL return InterpNext(S); |
| 50216 | #else |
| 50217 | return true; |
| 50218 | #endif |
| 50219 | } |
| 50220 | PRESERVE_NONE |
| 50221 | static bool Interp_ShrSint32Uint8(InterpState &S) { |
| 50222 | if (!Shr<PT_Sint32, PT_Uint8>(S, S.PC)) return false; |
| 50223 | #if USE_TAILCALLS |
| 50224 | MUSTTAIL return InterpNext(S); |
| 50225 | #else |
| 50226 | return true; |
| 50227 | #endif |
| 50228 | } |
| 50229 | PRESERVE_NONE |
| 50230 | static bool Interp_ShrSint32Sint16(InterpState &S) { |
| 50231 | if (!Shr<PT_Sint32, PT_Sint16>(S, S.PC)) return false; |
| 50232 | #if USE_TAILCALLS |
| 50233 | MUSTTAIL return InterpNext(S); |
| 50234 | #else |
| 50235 | return true; |
| 50236 | #endif |
| 50237 | } |
| 50238 | PRESERVE_NONE |
| 50239 | static bool Interp_ShrSint32Uint16(InterpState &S) { |
| 50240 | if (!Shr<PT_Sint32, PT_Uint16>(S, S.PC)) return false; |
| 50241 | #if USE_TAILCALLS |
| 50242 | MUSTTAIL return InterpNext(S); |
| 50243 | #else |
| 50244 | return true; |
| 50245 | #endif |
| 50246 | } |
| 50247 | PRESERVE_NONE |
| 50248 | static bool Interp_ShrSint32Sint32(InterpState &S) { |
| 50249 | if (!Shr<PT_Sint32, PT_Sint32>(S, S.PC)) return false; |
| 50250 | #if USE_TAILCALLS |
| 50251 | MUSTTAIL return InterpNext(S); |
| 50252 | #else |
| 50253 | return true; |
| 50254 | #endif |
| 50255 | } |
| 50256 | PRESERVE_NONE |
| 50257 | static bool Interp_ShrSint32Uint32(InterpState &S) { |
| 50258 | if (!Shr<PT_Sint32, PT_Uint32>(S, S.PC)) return false; |
| 50259 | #if USE_TAILCALLS |
| 50260 | MUSTTAIL return InterpNext(S); |
| 50261 | #else |
| 50262 | return true; |
| 50263 | #endif |
| 50264 | } |
| 50265 | PRESERVE_NONE |
| 50266 | static bool Interp_ShrSint32Sint64(InterpState &S) { |
| 50267 | if (!Shr<PT_Sint32, PT_Sint64>(S, S.PC)) return false; |
| 50268 | #if USE_TAILCALLS |
| 50269 | MUSTTAIL return InterpNext(S); |
| 50270 | #else |
| 50271 | return true; |
| 50272 | #endif |
| 50273 | } |
| 50274 | PRESERVE_NONE |
| 50275 | static bool Interp_ShrSint32Uint64(InterpState &S) { |
| 50276 | if (!Shr<PT_Sint32, PT_Uint64>(S, S.PC)) return false; |
| 50277 | #if USE_TAILCALLS |
| 50278 | MUSTTAIL return InterpNext(S); |
| 50279 | #else |
| 50280 | return true; |
| 50281 | #endif |
| 50282 | } |
| 50283 | PRESERVE_NONE |
| 50284 | static bool Interp_ShrSint32IntAP(InterpState &S) { |
| 50285 | if (!Shr<PT_Sint32, PT_IntAP>(S, S.PC)) return false; |
| 50286 | #if USE_TAILCALLS |
| 50287 | MUSTTAIL return InterpNext(S); |
| 50288 | #else |
| 50289 | return true; |
| 50290 | #endif |
| 50291 | } |
| 50292 | PRESERVE_NONE |
| 50293 | static bool Interp_ShrSint32IntAPS(InterpState &S) { |
| 50294 | if (!Shr<PT_Sint32, PT_IntAPS>(S, S.PC)) return false; |
| 50295 | #if USE_TAILCALLS |
| 50296 | MUSTTAIL return InterpNext(S); |
| 50297 | #else |
| 50298 | return true; |
| 50299 | #endif |
| 50300 | } |
| 50301 | PRESERVE_NONE |
| 50302 | static bool Interp_ShrUint32Sint8(InterpState &S) { |
| 50303 | if (!Shr<PT_Uint32, PT_Sint8>(S, S.PC)) return false; |
| 50304 | #if USE_TAILCALLS |
| 50305 | MUSTTAIL return InterpNext(S); |
| 50306 | #else |
| 50307 | return true; |
| 50308 | #endif |
| 50309 | } |
| 50310 | PRESERVE_NONE |
| 50311 | static bool Interp_ShrUint32Uint8(InterpState &S) { |
| 50312 | if (!Shr<PT_Uint32, PT_Uint8>(S, S.PC)) return false; |
| 50313 | #if USE_TAILCALLS |
| 50314 | MUSTTAIL return InterpNext(S); |
| 50315 | #else |
| 50316 | return true; |
| 50317 | #endif |
| 50318 | } |
| 50319 | PRESERVE_NONE |
| 50320 | static bool Interp_ShrUint32Sint16(InterpState &S) { |
| 50321 | if (!Shr<PT_Uint32, PT_Sint16>(S, S.PC)) return false; |
| 50322 | #if USE_TAILCALLS |
| 50323 | MUSTTAIL return InterpNext(S); |
| 50324 | #else |
| 50325 | return true; |
| 50326 | #endif |
| 50327 | } |
| 50328 | PRESERVE_NONE |
| 50329 | static bool Interp_ShrUint32Uint16(InterpState &S) { |
| 50330 | if (!Shr<PT_Uint32, PT_Uint16>(S, S.PC)) return false; |
| 50331 | #if USE_TAILCALLS |
| 50332 | MUSTTAIL return InterpNext(S); |
| 50333 | #else |
| 50334 | return true; |
| 50335 | #endif |
| 50336 | } |
| 50337 | PRESERVE_NONE |
| 50338 | static bool Interp_ShrUint32Sint32(InterpState &S) { |
| 50339 | if (!Shr<PT_Uint32, PT_Sint32>(S, S.PC)) return false; |
| 50340 | #if USE_TAILCALLS |
| 50341 | MUSTTAIL return InterpNext(S); |
| 50342 | #else |
| 50343 | return true; |
| 50344 | #endif |
| 50345 | } |
| 50346 | PRESERVE_NONE |
| 50347 | static bool Interp_ShrUint32Uint32(InterpState &S) { |
| 50348 | if (!Shr<PT_Uint32, PT_Uint32>(S, S.PC)) return false; |
| 50349 | #if USE_TAILCALLS |
| 50350 | MUSTTAIL return InterpNext(S); |
| 50351 | #else |
| 50352 | return true; |
| 50353 | #endif |
| 50354 | } |
| 50355 | PRESERVE_NONE |
| 50356 | static bool Interp_ShrUint32Sint64(InterpState &S) { |
| 50357 | if (!Shr<PT_Uint32, PT_Sint64>(S, S.PC)) return false; |
| 50358 | #if USE_TAILCALLS |
| 50359 | MUSTTAIL return InterpNext(S); |
| 50360 | #else |
| 50361 | return true; |
| 50362 | #endif |
| 50363 | } |
| 50364 | PRESERVE_NONE |
| 50365 | static bool Interp_ShrUint32Uint64(InterpState &S) { |
| 50366 | if (!Shr<PT_Uint32, PT_Uint64>(S, S.PC)) return false; |
| 50367 | #if USE_TAILCALLS |
| 50368 | MUSTTAIL return InterpNext(S); |
| 50369 | #else |
| 50370 | return true; |
| 50371 | #endif |
| 50372 | } |
| 50373 | PRESERVE_NONE |
| 50374 | static bool Interp_ShrUint32IntAP(InterpState &S) { |
| 50375 | if (!Shr<PT_Uint32, PT_IntAP>(S, S.PC)) return false; |
| 50376 | #if USE_TAILCALLS |
| 50377 | MUSTTAIL return InterpNext(S); |
| 50378 | #else |
| 50379 | return true; |
| 50380 | #endif |
| 50381 | } |
| 50382 | PRESERVE_NONE |
| 50383 | static bool Interp_ShrUint32IntAPS(InterpState &S) { |
| 50384 | if (!Shr<PT_Uint32, PT_IntAPS>(S, S.PC)) return false; |
| 50385 | #if USE_TAILCALLS |
| 50386 | MUSTTAIL return InterpNext(S); |
| 50387 | #else |
| 50388 | return true; |
| 50389 | #endif |
| 50390 | } |
| 50391 | PRESERVE_NONE |
| 50392 | static bool Interp_ShrSint64Sint8(InterpState &S) { |
| 50393 | if (!Shr<PT_Sint64, PT_Sint8>(S, S.PC)) return false; |
| 50394 | #if USE_TAILCALLS |
| 50395 | MUSTTAIL return InterpNext(S); |
| 50396 | #else |
| 50397 | return true; |
| 50398 | #endif |
| 50399 | } |
| 50400 | PRESERVE_NONE |
| 50401 | static bool Interp_ShrSint64Uint8(InterpState &S) { |
| 50402 | if (!Shr<PT_Sint64, PT_Uint8>(S, S.PC)) return false; |
| 50403 | #if USE_TAILCALLS |
| 50404 | MUSTTAIL return InterpNext(S); |
| 50405 | #else |
| 50406 | return true; |
| 50407 | #endif |
| 50408 | } |
| 50409 | PRESERVE_NONE |
| 50410 | static bool Interp_ShrSint64Sint16(InterpState &S) { |
| 50411 | if (!Shr<PT_Sint64, PT_Sint16>(S, S.PC)) return false; |
| 50412 | #if USE_TAILCALLS |
| 50413 | MUSTTAIL return InterpNext(S); |
| 50414 | #else |
| 50415 | return true; |
| 50416 | #endif |
| 50417 | } |
| 50418 | PRESERVE_NONE |
| 50419 | static bool Interp_ShrSint64Uint16(InterpState &S) { |
| 50420 | if (!Shr<PT_Sint64, PT_Uint16>(S, S.PC)) return false; |
| 50421 | #if USE_TAILCALLS |
| 50422 | MUSTTAIL return InterpNext(S); |
| 50423 | #else |
| 50424 | return true; |
| 50425 | #endif |
| 50426 | } |
| 50427 | PRESERVE_NONE |
| 50428 | static bool Interp_ShrSint64Sint32(InterpState &S) { |
| 50429 | if (!Shr<PT_Sint64, PT_Sint32>(S, S.PC)) return false; |
| 50430 | #if USE_TAILCALLS |
| 50431 | MUSTTAIL return InterpNext(S); |
| 50432 | #else |
| 50433 | return true; |
| 50434 | #endif |
| 50435 | } |
| 50436 | PRESERVE_NONE |
| 50437 | static bool Interp_ShrSint64Uint32(InterpState &S) { |
| 50438 | if (!Shr<PT_Sint64, PT_Uint32>(S, S.PC)) return false; |
| 50439 | #if USE_TAILCALLS |
| 50440 | MUSTTAIL return InterpNext(S); |
| 50441 | #else |
| 50442 | return true; |
| 50443 | #endif |
| 50444 | } |
| 50445 | PRESERVE_NONE |
| 50446 | static bool Interp_ShrSint64Sint64(InterpState &S) { |
| 50447 | if (!Shr<PT_Sint64, PT_Sint64>(S, S.PC)) return false; |
| 50448 | #if USE_TAILCALLS |
| 50449 | MUSTTAIL return InterpNext(S); |
| 50450 | #else |
| 50451 | return true; |
| 50452 | #endif |
| 50453 | } |
| 50454 | PRESERVE_NONE |
| 50455 | static bool Interp_ShrSint64Uint64(InterpState &S) { |
| 50456 | if (!Shr<PT_Sint64, PT_Uint64>(S, S.PC)) return false; |
| 50457 | #if USE_TAILCALLS |
| 50458 | MUSTTAIL return InterpNext(S); |
| 50459 | #else |
| 50460 | return true; |
| 50461 | #endif |
| 50462 | } |
| 50463 | PRESERVE_NONE |
| 50464 | static bool Interp_ShrSint64IntAP(InterpState &S) { |
| 50465 | if (!Shr<PT_Sint64, PT_IntAP>(S, S.PC)) return false; |
| 50466 | #if USE_TAILCALLS |
| 50467 | MUSTTAIL return InterpNext(S); |
| 50468 | #else |
| 50469 | return true; |
| 50470 | #endif |
| 50471 | } |
| 50472 | PRESERVE_NONE |
| 50473 | static bool Interp_ShrSint64IntAPS(InterpState &S) { |
| 50474 | if (!Shr<PT_Sint64, PT_IntAPS>(S, S.PC)) return false; |
| 50475 | #if USE_TAILCALLS |
| 50476 | MUSTTAIL return InterpNext(S); |
| 50477 | #else |
| 50478 | return true; |
| 50479 | #endif |
| 50480 | } |
| 50481 | PRESERVE_NONE |
| 50482 | static bool Interp_ShrUint64Sint8(InterpState &S) { |
| 50483 | if (!Shr<PT_Uint64, PT_Sint8>(S, S.PC)) return false; |
| 50484 | #if USE_TAILCALLS |
| 50485 | MUSTTAIL return InterpNext(S); |
| 50486 | #else |
| 50487 | return true; |
| 50488 | #endif |
| 50489 | } |
| 50490 | PRESERVE_NONE |
| 50491 | static bool Interp_ShrUint64Uint8(InterpState &S) { |
| 50492 | if (!Shr<PT_Uint64, PT_Uint8>(S, S.PC)) return false; |
| 50493 | #if USE_TAILCALLS |
| 50494 | MUSTTAIL return InterpNext(S); |
| 50495 | #else |
| 50496 | return true; |
| 50497 | #endif |
| 50498 | } |
| 50499 | PRESERVE_NONE |
| 50500 | static bool Interp_ShrUint64Sint16(InterpState &S) { |
| 50501 | if (!Shr<PT_Uint64, PT_Sint16>(S, S.PC)) return false; |
| 50502 | #if USE_TAILCALLS |
| 50503 | MUSTTAIL return InterpNext(S); |
| 50504 | #else |
| 50505 | return true; |
| 50506 | #endif |
| 50507 | } |
| 50508 | PRESERVE_NONE |
| 50509 | static bool Interp_ShrUint64Uint16(InterpState &S) { |
| 50510 | if (!Shr<PT_Uint64, PT_Uint16>(S, S.PC)) return false; |
| 50511 | #if USE_TAILCALLS |
| 50512 | MUSTTAIL return InterpNext(S); |
| 50513 | #else |
| 50514 | return true; |
| 50515 | #endif |
| 50516 | } |
| 50517 | PRESERVE_NONE |
| 50518 | static bool Interp_ShrUint64Sint32(InterpState &S) { |
| 50519 | if (!Shr<PT_Uint64, PT_Sint32>(S, S.PC)) return false; |
| 50520 | #if USE_TAILCALLS |
| 50521 | MUSTTAIL return InterpNext(S); |
| 50522 | #else |
| 50523 | return true; |
| 50524 | #endif |
| 50525 | } |
| 50526 | PRESERVE_NONE |
| 50527 | static bool Interp_ShrUint64Uint32(InterpState &S) { |
| 50528 | if (!Shr<PT_Uint64, PT_Uint32>(S, S.PC)) return false; |
| 50529 | #if USE_TAILCALLS |
| 50530 | MUSTTAIL return InterpNext(S); |
| 50531 | #else |
| 50532 | return true; |
| 50533 | #endif |
| 50534 | } |
| 50535 | PRESERVE_NONE |
| 50536 | static bool Interp_ShrUint64Sint64(InterpState &S) { |
| 50537 | if (!Shr<PT_Uint64, PT_Sint64>(S, S.PC)) return false; |
| 50538 | #if USE_TAILCALLS |
| 50539 | MUSTTAIL return InterpNext(S); |
| 50540 | #else |
| 50541 | return true; |
| 50542 | #endif |
| 50543 | } |
| 50544 | PRESERVE_NONE |
| 50545 | static bool Interp_ShrUint64Uint64(InterpState &S) { |
| 50546 | if (!Shr<PT_Uint64, PT_Uint64>(S, S.PC)) return false; |
| 50547 | #if USE_TAILCALLS |
| 50548 | MUSTTAIL return InterpNext(S); |
| 50549 | #else |
| 50550 | return true; |
| 50551 | #endif |
| 50552 | } |
| 50553 | PRESERVE_NONE |
| 50554 | static bool Interp_ShrUint64IntAP(InterpState &S) { |
| 50555 | if (!Shr<PT_Uint64, PT_IntAP>(S, S.PC)) return false; |
| 50556 | #if USE_TAILCALLS |
| 50557 | MUSTTAIL return InterpNext(S); |
| 50558 | #else |
| 50559 | return true; |
| 50560 | #endif |
| 50561 | } |
| 50562 | PRESERVE_NONE |
| 50563 | static bool Interp_ShrUint64IntAPS(InterpState &S) { |
| 50564 | if (!Shr<PT_Uint64, PT_IntAPS>(S, S.PC)) return false; |
| 50565 | #if USE_TAILCALLS |
| 50566 | MUSTTAIL return InterpNext(S); |
| 50567 | #else |
| 50568 | return true; |
| 50569 | #endif |
| 50570 | } |
| 50571 | PRESERVE_NONE |
| 50572 | static bool Interp_ShrIntAPSint8(InterpState &S) { |
| 50573 | if (!Shr<PT_IntAP, PT_Sint8>(S, S.PC)) return false; |
| 50574 | #if USE_TAILCALLS |
| 50575 | MUSTTAIL return InterpNext(S); |
| 50576 | #else |
| 50577 | return true; |
| 50578 | #endif |
| 50579 | } |
| 50580 | PRESERVE_NONE |
| 50581 | static bool Interp_ShrIntAPUint8(InterpState &S) { |
| 50582 | if (!Shr<PT_IntAP, PT_Uint8>(S, S.PC)) return false; |
| 50583 | #if USE_TAILCALLS |
| 50584 | MUSTTAIL return InterpNext(S); |
| 50585 | #else |
| 50586 | return true; |
| 50587 | #endif |
| 50588 | } |
| 50589 | PRESERVE_NONE |
| 50590 | static bool Interp_ShrIntAPSint16(InterpState &S) { |
| 50591 | if (!Shr<PT_IntAP, PT_Sint16>(S, S.PC)) return false; |
| 50592 | #if USE_TAILCALLS |
| 50593 | MUSTTAIL return InterpNext(S); |
| 50594 | #else |
| 50595 | return true; |
| 50596 | #endif |
| 50597 | } |
| 50598 | PRESERVE_NONE |
| 50599 | static bool Interp_ShrIntAPUint16(InterpState &S) { |
| 50600 | if (!Shr<PT_IntAP, PT_Uint16>(S, S.PC)) return false; |
| 50601 | #if USE_TAILCALLS |
| 50602 | MUSTTAIL return InterpNext(S); |
| 50603 | #else |
| 50604 | return true; |
| 50605 | #endif |
| 50606 | } |
| 50607 | PRESERVE_NONE |
| 50608 | static bool Interp_ShrIntAPSint32(InterpState &S) { |
| 50609 | if (!Shr<PT_IntAP, PT_Sint32>(S, S.PC)) return false; |
| 50610 | #if USE_TAILCALLS |
| 50611 | MUSTTAIL return InterpNext(S); |
| 50612 | #else |
| 50613 | return true; |
| 50614 | #endif |
| 50615 | } |
| 50616 | PRESERVE_NONE |
| 50617 | static bool Interp_ShrIntAPUint32(InterpState &S) { |
| 50618 | if (!Shr<PT_IntAP, PT_Uint32>(S, S.PC)) return false; |
| 50619 | #if USE_TAILCALLS |
| 50620 | MUSTTAIL return InterpNext(S); |
| 50621 | #else |
| 50622 | return true; |
| 50623 | #endif |
| 50624 | } |
| 50625 | PRESERVE_NONE |
| 50626 | static bool Interp_ShrIntAPSint64(InterpState &S) { |
| 50627 | if (!Shr<PT_IntAP, PT_Sint64>(S, S.PC)) return false; |
| 50628 | #if USE_TAILCALLS |
| 50629 | MUSTTAIL return InterpNext(S); |
| 50630 | #else |
| 50631 | return true; |
| 50632 | #endif |
| 50633 | } |
| 50634 | PRESERVE_NONE |
| 50635 | static bool Interp_ShrIntAPUint64(InterpState &S) { |
| 50636 | if (!Shr<PT_IntAP, PT_Uint64>(S, S.PC)) return false; |
| 50637 | #if USE_TAILCALLS |
| 50638 | MUSTTAIL return InterpNext(S); |
| 50639 | #else |
| 50640 | return true; |
| 50641 | #endif |
| 50642 | } |
| 50643 | PRESERVE_NONE |
| 50644 | static bool Interp_ShrIntAPIntAP(InterpState &S) { |
| 50645 | if (!Shr<PT_IntAP, PT_IntAP>(S, S.PC)) return false; |
| 50646 | #if USE_TAILCALLS |
| 50647 | MUSTTAIL return InterpNext(S); |
| 50648 | #else |
| 50649 | return true; |
| 50650 | #endif |
| 50651 | } |
| 50652 | PRESERVE_NONE |
| 50653 | static bool Interp_ShrIntAPIntAPS(InterpState &S) { |
| 50654 | if (!Shr<PT_IntAP, PT_IntAPS>(S, S.PC)) return false; |
| 50655 | #if USE_TAILCALLS |
| 50656 | MUSTTAIL return InterpNext(S); |
| 50657 | #else |
| 50658 | return true; |
| 50659 | #endif |
| 50660 | } |
| 50661 | PRESERVE_NONE |
| 50662 | static bool Interp_ShrIntAPSSint8(InterpState &S) { |
| 50663 | if (!Shr<PT_IntAPS, PT_Sint8>(S, S.PC)) return false; |
| 50664 | #if USE_TAILCALLS |
| 50665 | MUSTTAIL return InterpNext(S); |
| 50666 | #else |
| 50667 | return true; |
| 50668 | #endif |
| 50669 | } |
| 50670 | PRESERVE_NONE |
| 50671 | static bool Interp_ShrIntAPSUint8(InterpState &S) { |
| 50672 | if (!Shr<PT_IntAPS, PT_Uint8>(S, S.PC)) return false; |
| 50673 | #if USE_TAILCALLS |
| 50674 | MUSTTAIL return InterpNext(S); |
| 50675 | #else |
| 50676 | return true; |
| 50677 | #endif |
| 50678 | } |
| 50679 | PRESERVE_NONE |
| 50680 | static bool Interp_ShrIntAPSSint16(InterpState &S) { |
| 50681 | if (!Shr<PT_IntAPS, PT_Sint16>(S, S.PC)) return false; |
| 50682 | #if USE_TAILCALLS |
| 50683 | MUSTTAIL return InterpNext(S); |
| 50684 | #else |
| 50685 | return true; |
| 50686 | #endif |
| 50687 | } |
| 50688 | PRESERVE_NONE |
| 50689 | static bool Interp_ShrIntAPSUint16(InterpState &S) { |
| 50690 | if (!Shr<PT_IntAPS, PT_Uint16>(S, S.PC)) return false; |
| 50691 | #if USE_TAILCALLS |
| 50692 | MUSTTAIL return InterpNext(S); |
| 50693 | #else |
| 50694 | return true; |
| 50695 | #endif |
| 50696 | } |
| 50697 | PRESERVE_NONE |
| 50698 | static bool Interp_ShrIntAPSSint32(InterpState &S) { |
| 50699 | if (!Shr<PT_IntAPS, PT_Sint32>(S, S.PC)) return false; |
| 50700 | #if USE_TAILCALLS |
| 50701 | MUSTTAIL return InterpNext(S); |
| 50702 | #else |
| 50703 | return true; |
| 50704 | #endif |
| 50705 | } |
| 50706 | PRESERVE_NONE |
| 50707 | static bool Interp_ShrIntAPSUint32(InterpState &S) { |
| 50708 | if (!Shr<PT_IntAPS, PT_Uint32>(S, S.PC)) return false; |
| 50709 | #if USE_TAILCALLS |
| 50710 | MUSTTAIL return InterpNext(S); |
| 50711 | #else |
| 50712 | return true; |
| 50713 | #endif |
| 50714 | } |
| 50715 | PRESERVE_NONE |
| 50716 | static bool Interp_ShrIntAPSSint64(InterpState &S) { |
| 50717 | if (!Shr<PT_IntAPS, PT_Sint64>(S, S.PC)) return false; |
| 50718 | #if USE_TAILCALLS |
| 50719 | MUSTTAIL return InterpNext(S); |
| 50720 | #else |
| 50721 | return true; |
| 50722 | #endif |
| 50723 | } |
| 50724 | PRESERVE_NONE |
| 50725 | static bool Interp_ShrIntAPSUint64(InterpState &S) { |
| 50726 | if (!Shr<PT_IntAPS, PT_Uint64>(S, S.PC)) return false; |
| 50727 | #if USE_TAILCALLS |
| 50728 | MUSTTAIL return InterpNext(S); |
| 50729 | #else |
| 50730 | return true; |
| 50731 | #endif |
| 50732 | } |
| 50733 | PRESERVE_NONE |
| 50734 | static bool Interp_ShrIntAPSIntAP(InterpState &S) { |
| 50735 | if (!Shr<PT_IntAPS, PT_IntAP>(S, S.PC)) return false; |
| 50736 | #if USE_TAILCALLS |
| 50737 | MUSTTAIL return InterpNext(S); |
| 50738 | #else |
| 50739 | return true; |
| 50740 | #endif |
| 50741 | } |
| 50742 | PRESERVE_NONE |
| 50743 | static bool Interp_ShrIntAPSIntAPS(InterpState &S) { |
| 50744 | if (!Shr<PT_IntAPS, PT_IntAPS>(S, S.PC)) return false; |
| 50745 | #if USE_TAILCALLS |
| 50746 | MUSTTAIL return InterpNext(S); |
| 50747 | #else |
| 50748 | return true; |
| 50749 | #endif |
| 50750 | } |
| 50751 | #endif |
| 50752 | #ifdef GET_DISASM |
| 50753 | case OP_ShrSint8Sint8: |
| 50754 | Text.Op = PrintName("ShrSint8Sint8" ); |
| 50755 | break; |
| 50756 | case OP_ShrSint8Uint8: |
| 50757 | Text.Op = PrintName("ShrSint8Uint8" ); |
| 50758 | break; |
| 50759 | case OP_ShrSint8Sint16: |
| 50760 | Text.Op = PrintName("ShrSint8Sint16" ); |
| 50761 | break; |
| 50762 | case OP_ShrSint8Uint16: |
| 50763 | Text.Op = PrintName("ShrSint8Uint16" ); |
| 50764 | break; |
| 50765 | case OP_ShrSint8Sint32: |
| 50766 | Text.Op = PrintName("ShrSint8Sint32" ); |
| 50767 | break; |
| 50768 | case OP_ShrSint8Uint32: |
| 50769 | Text.Op = PrintName("ShrSint8Uint32" ); |
| 50770 | break; |
| 50771 | case OP_ShrSint8Sint64: |
| 50772 | Text.Op = PrintName("ShrSint8Sint64" ); |
| 50773 | break; |
| 50774 | case OP_ShrSint8Uint64: |
| 50775 | Text.Op = PrintName("ShrSint8Uint64" ); |
| 50776 | break; |
| 50777 | case OP_ShrSint8IntAP: |
| 50778 | Text.Op = PrintName("ShrSint8IntAP" ); |
| 50779 | break; |
| 50780 | case OP_ShrSint8IntAPS: |
| 50781 | Text.Op = PrintName("ShrSint8IntAPS" ); |
| 50782 | break; |
| 50783 | case OP_ShrUint8Sint8: |
| 50784 | Text.Op = PrintName("ShrUint8Sint8" ); |
| 50785 | break; |
| 50786 | case OP_ShrUint8Uint8: |
| 50787 | Text.Op = PrintName("ShrUint8Uint8" ); |
| 50788 | break; |
| 50789 | case OP_ShrUint8Sint16: |
| 50790 | Text.Op = PrintName("ShrUint8Sint16" ); |
| 50791 | break; |
| 50792 | case OP_ShrUint8Uint16: |
| 50793 | Text.Op = PrintName("ShrUint8Uint16" ); |
| 50794 | break; |
| 50795 | case OP_ShrUint8Sint32: |
| 50796 | Text.Op = PrintName("ShrUint8Sint32" ); |
| 50797 | break; |
| 50798 | case OP_ShrUint8Uint32: |
| 50799 | Text.Op = PrintName("ShrUint8Uint32" ); |
| 50800 | break; |
| 50801 | case OP_ShrUint8Sint64: |
| 50802 | Text.Op = PrintName("ShrUint8Sint64" ); |
| 50803 | break; |
| 50804 | case OP_ShrUint8Uint64: |
| 50805 | Text.Op = PrintName("ShrUint8Uint64" ); |
| 50806 | break; |
| 50807 | case OP_ShrUint8IntAP: |
| 50808 | Text.Op = PrintName("ShrUint8IntAP" ); |
| 50809 | break; |
| 50810 | case OP_ShrUint8IntAPS: |
| 50811 | Text.Op = PrintName("ShrUint8IntAPS" ); |
| 50812 | break; |
| 50813 | case OP_ShrSint16Sint8: |
| 50814 | Text.Op = PrintName("ShrSint16Sint8" ); |
| 50815 | break; |
| 50816 | case OP_ShrSint16Uint8: |
| 50817 | Text.Op = PrintName("ShrSint16Uint8" ); |
| 50818 | break; |
| 50819 | case OP_ShrSint16Sint16: |
| 50820 | Text.Op = PrintName("ShrSint16Sint16" ); |
| 50821 | break; |
| 50822 | case OP_ShrSint16Uint16: |
| 50823 | Text.Op = PrintName("ShrSint16Uint16" ); |
| 50824 | break; |
| 50825 | case OP_ShrSint16Sint32: |
| 50826 | Text.Op = PrintName("ShrSint16Sint32" ); |
| 50827 | break; |
| 50828 | case OP_ShrSint16Uint32: |
| 50829 | Text.Op = PrintName("ShrSint16Uint32" ); |
| 50830 | break; |
| 50831 | case OP_ShrSint16Sint64: |
| 50832 | Text.Op = PrintName("ShrSint16Sint64" ); |
| 50833 | break; |
| 50834 | case OP_ShrSint16Uint64: |
| 50835 | Text.Op = PrintName("ShrSint16Uint64" ); |
| 50836 | break; |
| 50837 | case OP_ShrSint16IntAP: |
| 50838 | Text.Op = PrintName("ShrSint16IntAP" ); |
| 50839 | break; |
| 50840 | case OP_ShrSint16IntAPS: |
| 50841 | Text.Op = PrintName("ShrSint16IntAPS" ); |
| 50842 | break; |
| 50843 | case OP_ShrUint16Sint8: |
| 50844 | Text.Op = PrintName("ShrUint16Sint8" ); |
| 50845 | break; |
| 50846 | case OP_ShrUint16Uint8: |
| 50847 | Text.Op = PrintName("ShrUint16Uint8" ); |
| 50848 | break; |
| 50849 | case OP_ShrUint16Sint16: |
| 50850 | Text.Op = PrintName("ShrUint16Sint16" ); |
| 50851 | break; |
| 50852 | case OP_ShrUint16Uint16: |
| 50853 | Text.Op = PrintName("ShrUint16Uint16" ); |
| 50854 | break; |
| 50855 | case OP_ShrUint16Sint32: |
| 50856 | Text.Op = PrintName("ShrUint16Sint32" ); |
| 50857 | break; |
| 50858 | case OP_ShrUint16Uint32: |
| 50859 | Text.Op = PrintName("ShrUint16Uint32" ); |
| 50860 | break; |
| 50861 | case OP_ShrUint16Sint64: |
| 50862 | Text.Op = PrintName("ShrUint16Sint64" ); |
| 50863 | break; |
| 50864 | case OP_ShrUint16Uint64: |
| 50865 | Text.Op = PrintName("ShrUint16Uint64" ); |
| 50866 | break; |
| 50867 | case OP_ShrUint16IntAP: |
| 50868 | Text.Op = PrintName("ShrUint16IntAP" ); |
| 50869 | break; |
| 50870 | case OP_ShrUint16IntAPS: |
| 50871 | Text.Op = PrintName("ShrUint16IntAPS" ); |
| 50872 | break; |
| 50873 | case OP_ShrSint32Sint8: |
| 50874 | Text.Op = PrintName("ShrSint32Sint8" ); |
| 50875 | break; |
| 50876 | case OP_ShrSint32Uint8: |
| 50877 | Text.Op = PrintName("ShrSint32Uint8" ); |
| 50878 | break; |
| 50879 | case OP_ShrSint32Sint16: |
| 50880 | Text.Op = PrintName("ShrSint32Sint16" ); |
| 50881 | break; |
| 50882 | case OP_ShrSint32Uint16: |
| 50883 | Text.Op = PrintName("ShrSint32Uint16" ); |
| 50884 | break; |
| 50885 | case OP_ShrSint32Sint32: |
| 50886 | Text.Op = PrintName("ShrSint32Sint32" ); |
| 50887 | break; |
| 50888 | case OP_ShrSint32Uint32: |
| 50889 | Text.Op = PrintName("ShrSint32Uint32" ); |
| 50890 | break; |
| 50891 | case OP_ShrSint32Sint64: |
| 50892 | Text.Op = PrintName("ShrSint32Sint64" ); |
| 50893 | break; |
| 50894 | case OP_ShrSint32Uint64: |
| 50895 | Text.Op = PrintName("ShrSint32Uint64" ); |
| 50896 | break; |
| 50897 | case OP_ShrSint32IntAP: |
| 50898 | Text.Op = PrintName("ShrSint32IntAP" ); |
| 50899 | break; |
| 50900 | case OP_ShrSint32IntAPS: |
| 50901 | Text.Op = PrintName("ShrSint32IntAPS" ); |
| 50902 | break; |
| 50903 | case OP_ShrUint32Sint8: |
| 50904 | Text.Op = PrintName("ShrUint32Sint8" ); |
| 50905 | break; |
| 50906 | case OP_ShrUint32Uint8: |
| 50907 | Text.Op = PrintName("ShrUint32Uint8" ); |
| 50908 | break; |
| 50909 | case OP_ShrUint32Sint16: |
| 50910 | Text.Op = PrintName("ShrUint32Sint16" ); |
| 50911 | break; |
| 50912 | case OP_ShrUint32Uint16: |
| 50913 | Text.Op = PrintName("ShrUint32Uint16" ); |
| 50914 | break; |
| 50915 | case OP_ShrUint32Sint32: |
| 50916 | Text.Op = PrintName("ShrUint32Sint32" ); |
| 50917 | break; |
| 50918 | case OP_ShrUint32Uint32: |
| 50919 | Text.Op = PrintName("ShrUint32Uint32" ); |
| 50920 | break; |
| 50921 | case OP_ShrUint32Sint64: |
| 50922 | Text.Op = PrintName("ShrUint32Sint64" ); |
| 50923 | break; |
| 50924 | case OP_ShrUint32Uint64: |
| 50925 | Text.Op = PrintName("ShrUint32Uint64" ); |
| 50926 | break; |
| 50927 | case OP_ShrUint32IntAP: |
| 50928 | Text.Op = PrintName("ShrUint32IntAP" ); |
| 50929 | break; |
| 50930 | case OP_ShrUint32IntAPS: |
| 50931 | Text.Op = PrintName("ShrUint32IntAPS" ); |
| 50932 | break; |
| 50933 | case OP_ShrSint64Sint8: |
| 50934 | Text.Op = PrintName("ShrSint64Sint8" ); |
| 50935 | break; |
| 50936 | case OP_ShrSint64Uint8: |
| 50937 | Text.Op = PrintName("ShrSint64Uint8" ); |
| 50938 | break; |
| 50939 | case OP_ShrSint64Sint16: |
| 50940 | Text.Op = PrintName("ShrSint64Sint16" ); |
| 50941 | break; |
| 50942 | case OP_ShrSint64Uint16: |
| 50943 | Text.Op = PrintName("ShrSint64Uint16" ); |
| 50944 | break; |
| 50945 | case OP_ShrSint64Sint32: |
| 50946 | Text.Op = PrintName("ShrSint64Sint32" ); |
| 50947 | break; |
| 50948 | case OP_ShrSint64Uint32: |
| 50949 | Text.Op = PrintName("ShrSint64Uint32" ); |
| 50950 | break; |
| 50951 | case OP_ShrSint64Sint64: |
| 50952 | Text.Op = PrintName("ShrSint64Sint64" ); |
| 50953 | break; |
| 50954 | case OP_ShrSint64Uint64: |
| 50955 | Text.Op = PrintName("ShrSint64Uint64" ); |
| 50956 | break; |
| 50957 | case OP_ShrSint64IntAP: |
| 50958 | Text.Op = PrintName("ShrSint64IntAP" ); |
| 50959 | break; |
| 50960 | case OP_ShrSint64IntAPS: |
| 50961 | Text.Op = PrintName("ShrSint64IntAPS" ); |
| 50962 | break; |
| 50963 | case OP_ShrUint64Sint8: |
| 50964 | Text.Op = PrintName("ShrUint64Sint8" ); |
| 50965 | break; |
| 50966 | case OP_ShrUint64Uint8: |
| 50967 | Text.Op = PrintName("ShrUint64Uint8" ); |
| 50968 | break; |
| 50969 | case OP_ShrUint64Sint16: |
| 50970 | Text.Op = PrintName("ShrUint64Sint16" ); |
| 50971 | break; |
| 50972 | case OP_ShrUint64Uint16: |
| 50973 | Text.Op = PrintName("ShrUint64Uint16" ); |
| 50974 | break; |
| 50975 | case OP_ShrUint64Sint32: |
| 50976 | Text.Op = PrintName("ShrUint64Sint32" ); |
| 50977 | break; |
| 50978 | case OP_ShrUint64Uint32: |
| 50979 | Text.Op = PrintName("ShrUint64Uint32" ); |
| 50980 | break; |
| 50981 | case OP_ShrUint64Sint64: |
| 50982 | Text.Op = PrintName("ShrUint64Sint64" ); |
| 50983 | break; |
| 50984 | case OP_ShrUint64Uint64: |
| 50985 | Text.Op = PrintName("ShrUint64Uint64" ); |
| 50986 | break; |
| 50987 | case OP_ShrUint64IntAP: |
| 50988 | Text.Op = PrintName("ShrUint64IntAP" ); |
| 50989 | break; |
| 50990 | case OP_ShrUint64IntAPS: |
| 50991 | Text.Op = PrintName("ShrUint64IntAPS" ); |
| 50992 | break; |
| 50993 | case OP_ShrIntAPSint8: |
| 50994 | Text.Op = PrintName("ShrIntAPSint8" ); |
| 50995 | break; |
| 50996 | case OP_ShrIntAPUint8: |
| 50997 | Text.Op = PrintName("ShrIntAPUint8" ); |
| 50998 | break; |
| 50999 | case OP_ShrIntAPSint16: |
| 51000 | Text.Op = PrintName("ShrIntAPSint16" ); |
| 51001 | break; |
| 51002 | case OP_ShrIntAPUint16: |
| 51003 | Text.Op = PrintName("ShrIntAPUint16" ); |
| 51004 | break; |
| 51005 | case OP_ShrIntAPSint32: |
| 51006 | Text.Op = PrintName("ShrIntAPSint32" ); |
| 51007 | break; |
| 51008 | case OP_ShrIntAPUint32: |
| 51009 | Text.Op = PrintName("ShrIntAPUint32" ); |
| 51010 | break; |
| 51011 | case OP_ShrIntAPSint64: |
| 51012 | Text.Op = PrintName("ShrIntAPSint64" ); |
| 51013 | break; |
| 51014 | case OP_ShrIntAPUint64: |
| 51015 | Text.Op = PrintName("ShrIntAPUint64" ); |
| 51016 | break; |
| 51017 | case OP_ShrIntAPIntAP: |
| 51018 | Text.Op = PrintName("ShrIntAPIntAP" ); |
| 51019 | break; |
| 51020 | case OP_ShrIntAPIntAPS: |
| 51021 | Text.Op = PrintName("ShrIntAPIntAPS" ); |
| 51022 | break; |
| 51023 | case OP_ShrIntAPSSint8: |
| 51024 | Text.Op = PrintName("ShrIntAPSSint8" ); |
| 51025 | break; |
| 51026 | case OP_ShrIntAPSUint8: |
| 51027 | Text.Op = PrintName("ShrIntAPSUint8" ); |
| 51028 | break; |
| 51029 | case OP_ShrIntAPSSint16: |
| 51030 | Text.Op = PrintName("ShrIntAPSSint16" ); |
| 51031 | break; |
| 51032 | case OP_ShrIntAPSUint16: |
| 51033 | Text.Op = PrintName("ShrIntAPSUint16" ); |
| 51034 | break; |
| 51035 | case OP_ShrIntAPSSint32: |
| 51036 | Text.Op = PrintName("ShrIntAPSSint32" ); |
| 51037 | break; |
| 51038 | case OP_ShrIntAPSUint32: |
| 51039 | Text.Op = PrintName("ShrIntAPSUint32" ); |
| 51040 | break; |
| 51041 | case OP_ShrIntAPSSint64: |
| 51042 | Text.Op = PrintName("ShrIntAPSSint64" ); |
| 51043 | break; |
| 51044 | case OP_ShrIntAPSUint64: |
| 51045 | Text.Op = PrintName("ShrIntAPSUint64" ); |
| 51046 | break; |
| 51047 | case OP_ShrIntAPSIntAP: |
| 51048 | Text.Op = PrintName("ShrIntAPSIntAP" ); |
| 51049 | break; |
| 51050 | case OP_ShrIntAPSIntAPS: |
| 51051 | Text.Op = PrintName("ShrIntAPSIntAPS" ); |
| 51052 | break; |
| 51053 | #endif |
| 51054 | #if defined(GET_EVAL_PROTO) || defined(GET_LINK_PROTO) |
| 51055 | bool emitShrSint8Sint8(SourceInfo); |
| 51056 | bool emitShrSint8Uint8(SourceInfo); |
| 51057 | bool emitShrSint8Sint16(SourceInfo); |
| 51058 | bool emitShrSint8Uint16(SourceInfo); |
| 51059 | bool emitShrSint8Sint32(SourceInfo); |
| 51060 | bool emitShrSint8Uint32(SourceInfo); |
| 51061 | bool emitShrSint8Sint64(SourceInfo); |
| 51062 | bool emitShrSint8Uint64(SourceInfo); |
| 51063 | bool emitShrSint8IntAP(SourceInfo); |
| 51064 | bool emitShrSint8IntAPS(SourceInfo); |
| 51065 | bool emitShrUint8Sint8(SourceInfo); |
| 51066 | bool emitShrUint8Uint8(SourceInfo); |
| 51067 | bool emitShrUint8Sint16(SourceInfo); |
| 51068 | bool emitShrUint8Uint16(SourceInfo); |
| 51069 | bool emitShrUint8Sint32(SourceInfo); |
| 51070 | bool emitShrUint8Uint32(SourceInfo); |
| 51071 | bool emitShrUint8Sint64(SourceInfo); |
| 51072 | bool emitShrUint8Uint64(SourceInfo); |
| 51073 | bool emitShrUint8IntAP(SourceInfo); |
| 51074 | bool emitShrUint8IntAPS(SourceInfo); |
| 51075 | bool emitShrSint16Sint8(SourceInfo); |
| 51076 | bool emitShrSint16Uint8(SourceInfo); |
| 51077 | bool emitShrSint16Sint16(SourceInfo); |
| 51078 | bool emitShrSint16Uint16(SourceInfo); |
| 51079 | bool emitShrSint16Sint32(SourceInfo); |
| 51080 | bool emitShrSint16Uint32(SourceInfo); |
| 51081 | bool emitShrSint16Sint64(SourceInfo); |
| 51082 | bool emitShrSint16Uint64(SourceInfo); |
| 51083 | bool emitShrSint16IntAP(SourceInfo); |
| 51084 | bool emitShrSint16IntAPS(SourceInfo); |
| 51085 | bool emitShrUint16Sint8(SourceInfo); |
| 51086 | bool emitShrUint16Uint8(SourceInfo); |
| 51087 | bool emitShrUint16Sint16(SourceInfo); |
| 51088 | bool emitShrUint16Uint16(SourceInfo); |
| 51089 | bool emitShrUint16Sint32(SourceInfo); |
| 51090 | bool emitShrUint16Uint32(SourceInfo); |
| 51091 | bool emitShrUint16Sint64(SourceInfo); |
| 51092 | bool emitShrUint16Uint64(SourceInfo); |
| 51093 | bool emitShrUint16IntAP(SourceInfo); |
| 51094 | bool emitShrUint16IntAPS(SourceInfo); |
| 51095 | bool emitShrSint32Sint8(SourceInfo); |
| 51096 | bool emitShrSint32Uint8(SourceInfo); |
| 51097 | bool emitShrSint32Sint16(SourceInfo); |
| 51098 | bool emitShrSint32Uint16(SourceInfo); |
| 51099 | bool emitShrSint32Sint32(SourceInfo); |
| 51100 | bool emitShrSint32Uint32(SourceInfo); |
| 51101 | bool emitShrSint32Sint64(SourceInfo); |
| 51102 | bool emitShrSint32Uint64(SourceInfo); |
| 51103 | bool emitShrSint32IntAP(SourceInfo); |
| 51104 | bool emitShrSint32IntAPS(SourceInfo); |
| 51105 | bool emitShrUint32Sint8(SourceInfo); |
| 51106 | bool emitShrUint32Uint8(SourceInfo); |
| 51107 | bool emitShrUint32Sint16(SourceInfo); |
| 51108 | bool emitShrUint32Uint16(SourceInfo); |
| 51109 | bool emitShrUint32Sint32(SourceInfo); |
| 51110 | bool emitShrUint32Uint32(SourceInfo); |
| 51111 | bool emitShrUint32Sint64(SourceInfo); |
| 51112 | bool emitShrUint32Uint64(SourceInfo); |
| 51113 | bool emitShrUint32IntAP(SourceInfo); |
| 51114 | bool emitShrUint32IntAPS(SourceInfo); |
| 51115 | bool emitShrSint64Sint8(SourceInfo); |
| 51116 | bool emitShrSint64Uint8(SourceInfo); |
| 51117 | bool emitShrSint64Sint16(SourceInfo); |
| 51118 | bool emitShrSint64Uint16(SourceInfo); |
| 51119 | bool emitShrSint64Sint32(SourceInfo); |
| 51120 | bool emitShrSint64Uint32(SourceInfo); |
| 51121 | bool emitShrSint64Sint64(SourceInfo); |
| 51122 | bool emitShrSint64Uint64(SourceInfo); |
| 51123 | bool emitShrSint64IntAP(SourceInfo); |
| 51124 | bool emitShrSint64IntAPS(SourceInfo); |
| 51125 | bool emitShrUint64Sint8(SourceInfo); |
| 51126 | bool emitShrUint64Uint8(SourceInfo); |
| 51127 | bool emitShrUint64Sint16(SourceInfo); |
| 51128 | bool emitShrUint64Uint16(SourceInfo); |
| 51129 | bool emitShrUint64Sint32(SourceInfo); |
| 51130 | bool emitShrUint64Uint32(SourceInfo); |
| 51131 | bool emitShrUint64Sint64(SourceInfo); |
| 51132 | bool emitShrUint64Uint64(SourceInfo); |
| 51133 | bool emitShrUint64IntAP(SourceInfo); |
| 51134 | bool emitShrUint64IntAPS(SourceInfo); |
| 51135 | bool emitShrIntAPSint8(SourceInfo); |
| 51136 | bool emitShrIntAPUint8(SourceInfo); |
| 51137 | bool emitShrIntAPSint16(SourceInfo); |
| 51138 | bool emitShrIntAPUint16(SourceInfo); |
| 51139 | bool emitShrIntAPSint32(SourceInfo); |
| 51140 | bool emitShrIntAPUint32(SourceInfo); |
| 51141 | bool emitShrIntAPSint64(SourceInfo); |
| 51142 | bool emitShrIntAPUint64(SourceInfo); |
| 51143 | bool emitShrIntAPIntAP(SourceInfo); |
| 51144 | bool emitShrIntAPIntAPS(SourceInfo); |
| 51145 | bool emitShrIntAPSSint8(SourceInfo); |
| 51146 | bool emitShrIntAPSUint8(SourceInfo); |
| 51147 | bool emitShrIntAPSSint16(SourceInfo); |
| 51148 | bool emitShrIntAPSUint16(SourceInfo); |
| 51149 | bool emitShrIntAPSSint32(SourceInfo); |
| 51150 | bool emitShrIntAPSUint32(SourceInfo); |
| 51151 | bool emitShrIntAPSSint64(SourceInfo); |
| 51152 | bool emitShrIntAPSUint64(SourceInfo); |
| 51153 | bool emitShrIntAPSIntAP(SourceInfo); |
| 51154 | bool emitShrIntAPSIntAPS(SourceInfo); |
| 51155 | #endif |
| 51156 | #if defined(GET_EVAL_PROTO) || defined(GET_LINK_PROTO) |
| 51157 | [[nodiscard]] bool emitShr(PrimType, PrimType, SourceInfo I); |
| 51158 | #endif |
| 51159 | #if defined(GET_EVAL_IMPL) || defined(GET_LINK_IMPL) |
| 51160 | bool |
| 51161 | #if defined(GET_EVAL_IMPL) |
| 51162 | EvalEmitter |
| 51163 | #else |
| 51164 | ByteCodeEmitter |
| 51165 | #endif |
| 51166 | ::emitShr(PrimType T0, PrimType T1, SourceInfo I) { |
| 51167 | switch (T0) { |
| 51168 | case PT_Sint8: |
| 51169 | switch (T1) { |
| 51170 | case PT_Sint8: |
| 51171 | return emitShrSint8Sint8(I); |
| 51172 | case PT_Uint8: |
| 51173 | return emitShrSint8Uint8(I); |
| 51174 | case PT_Sint16: |
| 51175 | return emitShrSint8Sint16(I); |
| 51176 | case PT_Uint16: |
| 51177 | return emitShrSint8Uint16(I); |
| 51178 | case PT_Sint32: |
| 51179 | return emitShrSint8Sint32(I); |
| 51180 | case PT_Uint32: |
| 51181 | return emitShrSint8Uint32(I); |
| 51182 | case PT_Sint64: |
| 51183 | return emitShrSint8Sint64(I); |
| 51184 | case PT_Uint64: |
| 51185 | return emitShrSint8Uint64(I); |
| 51186 | case PT_IntAP: |
| 51187 | return emitShrSint8IntAP(I); |
| 51188 | case PT_IntAPS: |
| 51189 | return emitShrSint8IntAPS(I); |
| 51190 | default: llvm_unreachable("invalid type: emitShr" ); |
| 51191 | } |
| 51192 | llvm_unreachable("invalid enum value" ); |
| 51193 | case PT_Uint8: |
| 51194 | switch (T1) { |
| 51195 | case PT_Sint8: |
| 51196 | return emitShrUint8Sint8(I); |
| 51197 | case PT_Uint8: |
| 51198 | return emitShrUint8Uint8(I); |
| 51199 | case PT_Sint16: |
| 51200 | return emitShrUint8Sint16(I); |
| 51201 | case PT_Uint16: |
| 51202 | return emitShrUint8Uint16(I); |
| 51203 | case PT_Sint32: |
| 51204 | return emitShrUint8Sint32(I); |
| 51205 | case PT_Uint32: |
| 51206 | return emitShrUint8Uint32(I); |
| 51207 | case PT_Sint64: |
| 51208 | return emitShrUint8Sint64(I); |
| 51209 | case PT_Uint64: |
| 51210 | return emitShrUint8Uint64(I); |
| 51211 | case PT_IntAP: |
| 51212 | return emitShrUint8IntAP(I); |
| 51213 | case PT_IntAPS: |
| 51214 | return emitShrUint8IntAPS(I); |
| 51215 | default: llvm_unreachable("invalid type: emitShr" ); |
| 51216 | } |
| 51217 | llvm_unreachable("invalid enum value" ); |
| 51218 | case PT_Sint16: |
| 51219 | switch (T1) { |
| 51220 | case PT_Sint8: |
| 51221 | return emitShrSint16Sint8(I); |
| 51222 | case PT_Uint8: |
| 51223 | return emitShrSint16Uint8(I); |
| 51224 | case PT_Sint16: |
| 51225 | return emitShrSint16Sint16(I); |
| 51226 | case PT_Uint16: |
| 51227 | return emitShrSint16Uint16(I); |
| 51228 | case PT_Sint32: |
| 51229 | return emitShrSint16Sint32(I); |
| 51230 | case PT_Uint32: |
| 51231 | return emitShrSint16Uint32(I); |
| 51232 | case PT_Sint64: |
| 51233 | return emitShrSint16Sint64(I); |
| 51234 | case PT_Uint64: |
| 51235 | return emitShrSint16Uint64(I); |
| 51236 | case PT_IntAP: |
| 51237 | return emitShrSint16IntAP(I); |
| 51238 | case PT_IntAPS: |
| 51239 | return emitShrSint16IntAPS(I); |
| 51240 | default: llvm_unreachable("invalid type: emitShr" ); |
| 51241 | } |
| 51242 | llvm_unreachable("invalid enum value" ); |
| 51243 | case PT_Uint16: |
| 51244 | switch (T1) { |
| 51245 | case PT_Sint8: |
| 51246 | return emitShrUint16Sint8(I); |
| 51247 | case PT_Uint8: |
| 51248 | return emitShrUint16Uint8(I); |
| 51249 | case PT_Sint16: |
| 51250 | return emitShrUint16Sint16(I); |
| 51251 | case PT_Uint16: |
| 51252 | return emitShrUint16Uint16(I); |
| 51253 | case PT_Sint32: |
| 51254 | return emitShrUint16Sint32(I); |
| 51255 | case PT_Uint32: |
| 51256 | return emitShrUint16Uint32(I); |
| 51257 | case PT_Sint64: |
| 51258 | return emitShrUint16Sint64(I); |
| 51259 | case PT_Uint64: |
| 51260 | return emitShrUint16Uint64(I); |
| 51261 | case PT_IntAP: |
| 51262 | return emitShrUint16IntAP(I); |
| 51263 | case PT_IntAPS: |
| 51264 | return emitShrUint16IntAPS(I); |
| 51265 | default: llvm_unreachable("invalid type: emitShr" ); |
| 51266 | } |
| 51267 | llvm_unreachable("invalid enum value" ); |
| 51268 | case PT_Sint32: |
| 51269 | switch (T1) { |
| 51270 | case PT_Sint8: |
| 51271 | return emitShrSint32Sint8(I); |
| 51272 | case PT_Uint8: |
| 51273 | return emitShrSint32Uint8(I); |
| 51274 | case PT_Sint16: |
| 51275 | return emitShrSint32Sint16(I); |
| 51276 | case PT_Uint16: |
| 51277 | return emitShrSint32Uint16(I); |
| 51278 | case PT_Sint32: |
| 51279 | return emitShrSint32Sint32(I); |
| 51280 | case PT_Uint32: |
| 51281 | return emitShrSint32Uint32(I); |
| 51282 | case PT_Sint64: |
| 51283 | return emitShrSint32Sint64(I); |
| 51284 | case PT_Uint64: |
| 51285 | return emitShrSint32Uint64(I); |
| 51286 | case PT_IntAP: |
| 51287 | return emitShrSint32IntAP(I); |
| 51288 | case PT_IntAPS: |
| 51289 | return emitShrSint32IntAPS(I); |
| 51290 | default: llvm_unreachable("invalid type: emitShr" ); |
| 51291 | } |
| 51292 | llvm_unreachable("invalid enum value" ); |
| 51293 | case PT_Uint32: |
| 51294 | switch (T1) { |
| 51295 | case PT_Sint8: |
| 51296 | return emitShrUint32Sint8(I); |
| 51297 | case PT_Uint8: |
| 51298 | return emitShrUint32Uint8(I); |
| 51299 | case PT_Sint16: |
| 51300 | return emitShrUint32Sint16(I); |
| 51301 | case PT_Uint16: |
| 51302 | return emitShrUint32Uint16(I); |
| 51303 | case PT_Sint32: |
| 51304 | return emitShrUint32Sint32(I); |
| 51305 | case PT_Uint32: |
| 51306 | return emitShrUint32Uint32(I); |
| 51307 | case PT_Sint64: |
| 51308 | return emitShrUint32Sint64(I); |
| 51309 | case PT_Uint64: |
| 51310 | return emitShrUint32Uint64(I); |
| 51311 | case PT_IntAP: |
| 51312 | return emitShrUint32IntAP(I); |
| 51313 | case PT_IntAPS: |
| 51314 | return emitShrUint32IntAPS(I); |
| 51315 | default: llvm_unreachable("invalid type: emitShr" ); |
| 51316 | } |
| 51317 | llvm_unreachable("invalid enum value" ); |
| 51318 | case PT_Sint64: |
| 51319 | switch (T1) { |
| 51320 | case PT_Sint8: |
| 51321 | return emitShrSint64Sint8(I); |
| 51322 | case PT_Uint8: |
| 51323 | return emitShrSint64Uint8(I); |
| 51324 | case PT_Sint16: |
| 51325 | return emitShrSint64Sint16(I); |
| 51326 | case PT_Uint16: |
| 51327 | return emitShrSint64Uint16(I); |
| 51328 | case PT_Sint32: |
| 51329 | return emitShrSint64Sint32(I); |
| 51330 | case PT_Uint32: |
| 51331 | return emitShrSint64Uint32(I); |
| 51332 | case PT_Sint64: |
| 51333 | return emitShrSint64Sint64(I); |
| 51334 | case PT_Uint64: |
| 51335 | return emitShrSint64Uint64(I); |
| 51336 | case PT_IntAP: |
| 51337 | return emitShrSint64IntAP(I); |
| 51338 | case PT_IntAPS: |
| 51339 | return emitShrSint64IntAPS(I); |
| 51340 | default: llvm_unreachable("invalid type: emitShr" ); |
| 51341 | } |
| 51342 | llvm_unreachable("invalid enum value" ); |
| 51343 | case PT_Uint64: |
| 51344 | switch (T1) { |
| 51345 | case PT_Sint8: |
| 51346 | return emitShrUint64Sint8(I); |
| 51347 | case PT_Uint8: |
| 51348 | return emitShrUint64Uint8(I); |
| 51349 | case PT_Sint16: |
| 51350 | return emitShrUint64Sint16(I); |
| 51351 | case PT_Uint16: |
| 51352 | return emitShrUint64Uint16(I); |
| 51353 | case PT_Sint32: |
| 51354 | return emitShrUint64Sint32(I); |
| 51355 | case PT_Uint32: |
| 51356 | return emitShrUint64Uint32(I); |
| 51357 | case PT_Sint64: |
| 51358 | return emitShrUint64Sint64(I); |
| 51359 | case PT_Uint64: |
| 51360 | return emitShrUint64Uint64(I); |
| 51361 | case PT_IntAP: |
| 51362 | return emitShrUint64IntAP(I); |
| 51363 | case PT_IntAPS: |
| 51364 | return emitShrUint64IntAPS(I); |
| 51365 | default: llvm_unreachable("invalid type: emitShr" ); |
| 51366 | } |
| 51367 | llvm_unreachable("invalid enum value" ); |
| 51368 | case PT_IntAP: |
| 51369 | switch (T1) { |
| 51370 | case PT_Sint8: |
| 51371 | return emitShrIntAPSint8(I); |
| 51372 | case PT_Uint8: |
| 51373 | return emitShrIntAPUint8(I); |
| 51374 | case PT_Sint16: |
| 51375 | return emitShrIntAPSint16(I); |
| 51376 | case PT_Uint16: |
| 51377 | return emitShrIntAPUint16(I); |
| 51378 | case PT_Sint32: |
| 51379 | return emitShrIntAPSint32(I); |
| 51380 | case PT_Uint32: |
| 51381 | return emitShrIntAPUint32(I); |
| 51382 | case PT_Sint64: |
| 51383 | return emitShrIntAPSint64(I); |
| 51384 | case PT_Uint64: |
| 51385 | return emitShrIntAPUint64(I); |
| 51386 | case PT_IntAP: |
| 51387 | return emitShrIntAPIntAP(I); |
| 51388 | case PT_IntAPS: |
| 51389 | return emitShrIntAPIntAPS(I); |
| 51390 | default: llvm_unreachable("invalid type: emitShr" ); |
| 51391 | } |
| 51392 | llvm_unreachable("invalid enum value" ); |
| 51393 | case PT_IntAPS: |
| 51394 | switch (T1) { |
| 51395 | case PT_Sint8: |
| 51396 | return emitShrIntAPSSint8(I); |
| 51397 | case PT_Uint8: |
| 51398 | return emitShrIntAPSUint8(I); |
| 51399 | case PT_Sint16: |
| 51400 | return emitShrIntAPSSint16(I); |
| 51401 | case PT_Uint16: |
| 51402 | return emitShrIntAPSUint16(I); |
| 51403 | case PT_Sint32: |
| 51404 | return emitShrIntAPSSint32(I); |
| 51405 | case PT_Uint32: |
| 51406 | return emitShrIntAPSUint32(I); |
| 51407 | case PT_Sint64: |
| 51408 | return emitShrIntAPSSint64(I); |
| 51409 | case PT_Uint64: |
| 51410 | return emitShrIntAPSUint64(I); |
| 51411 | case PT_IntAP: |
| 51412 | return emitShrIntAPSIntAP(I); |
| 51413 | case PT_IntAPS: |
| 51414 | return emitShrIntAPSIntAPS(I); |
| 51415 | default: llvm_unreachable("invalid type: emitShr" ); |
| 51416 | } |
| 51417 | llvm_unreachable("invalid enum value" ); |
| 51418 | default: llvm_unreachable("invalid type: emitShr" ); |
| 51419 | } |
| 51420 | llvm_unreachable("invalid enum value" ); |
| 51421 | } |
| 51422 | #endif |
| 51423 | #ifdef GET_LINK_IMPL |
| 51424 | bool ByteCodeEmitter::emitShrSint8Sint8(SourceInfo L) { |
| 51425 | return emitOp<>(OP_ShrSint8Sint8, L); |
| 51426 | } |
| 51427 | bool ByteCodeEmitter::emitShrSint8Uint8(SourceInfo L) { |
| 51428 | return emitOp<>(OP_ShrSint8Uint8, L); |
| 51429 | } |
| 51430 | bool ByteCodeEmitter::emitShrSint8Sint16(SourceInfo L) { |
| 51431 | return emitOp<>(OP_ShrSint8Sint16, L); |
| 51432 | } |
| 51433 | bool ByteCodeEmitter::emitShrSint8Uint16(SourceInfo L) { |
| 51434 | return emitOp<>(OP_ShrSint8Uint16, L); |
| 51435 | } |
| 51436 | bool ByteCodeEmitter::emitShrSint8Sint32(SourceInfo L) { |
| 51437 | return emitOp<>(OP_ShrSint8Sint32, L); |
| 51438 | } |
| 51439 | bool ByteCodeEmitter::emitShrSint8Uint32(SourceInfo L) { |
| 51440 | return emitOp<>(OP_ShrSint8Uint32, L); |
| 51441 | } |
| 51442 | bool ByteCodeEmitter::emitShrSint8Sint64(SourceInfo L) { |
| 51443 | return emitOp<>(OP_ShrSint8Sint64, L); |
| 51444 | } |
| 51445 | bool ByteCodeEmitter::emitShrSint8Uint64(SourceInfo L) { |
| 51446 | return emitOp<>(OP_ShrSint8Uint64, L); |
| 51447 | } |
| 51448 | bool ByteCodeEmitter::emitShrSint8IntAP(SourceInfo L) { |
| 51449 | return emitOp<>(OP_ShrSint8IntAP, L); |
| 51450 | } |
| 51451 | bool ByteCodeEmitter::emitShrSint8IntAPS(SourceInfo L) { |
| 51452 | return emitOp<>(OP_ShrSint8IntAPS, L); |
| 51453 | } |
| 51454 | bool ByteCodeEmitter::emitShrUint8Sint8(SourceInfo L) { |
| 51455 | return emitOp<>(OP_ShrUint8Sint8, L); |
| 51456 | } |
| 51457 | bool ByteCodeEmitter::emitShrUint8Uint8(SourceInfo L) { |
| 51458 | return emitOp<>(OP_ShrUint8Uint8, L); |
| 51459 | } |
| 51460 | bool ByteCodeEmitter::emitShrUint8Sint16(SourceInfo L) { |
| 51461 | return emitOp<>(OP_ShrUint8Sint16, L); |
| 51462 | } |
| 51463 | bool ByteCodeEmitter::emitShrUint8Uint16(SourceInfo L) { |
| 51464 | return emitOp<>(OP_ShrUint8Uint16, L); |
| 51465 | } |
| 51466 | bool ByteCodeEmitter::emitShrUint8Sint32(SourceInfo L) { |
| 51467 | return emitOp<>(OP_ShrUint8Sint32, L); |
| 51468 | } |
| 51469 | bool ByteCodeEmitter::emitShrUint8Uint32(SourceInfo L) { |
| 51470 | return emitOp<>(OP_ShrUint8Uint32, L); |
| 51471 | } |
| 51472 | bool ByteCodeEmitter::emitShrUint8Sint64(SourceInfo L) { |
| 51473 | return emitOp<>(OP_ShrUint8Sint64, L); |
| 51474 | } |
| 51475 | bool ByteCodeEmitter::emitShrUint8Uint64(SourceInfo L) { |
| 51476 | return emitOp<>(OP_ShrUint8Uint64, L); |
| 51477 | } |
| 51478 | bool ByteCodeEmitter::emitShrUint8IntAP(SourceInfo L) { |
| 51479 | return emitOp<>(OP_ShrUint8IntAP, L); |
| 51480 | } |
| 51481 | bool ByteCodeEmitter::emitShrUint8IntAPS(SourceInfo L) { |
| 51482 | return emitOp<>(OP_ShrUint8IntAPS, L); |
| 51483 | } |
| 51484 | bool ByteCodeEmitter::emitShrSint16Sint8(SourceInfo L) { |
| 51485 | return emitOp<>(OP_ShrSint16Sint8, L); |
| 51486 | } |
| 51487 | bool ByteCodeEmitter::emitShrSint16Uint8(SourceInfo L) { |
| 51488 | return emitOp<>(OP_ShrSint16Uint8, L); |
| 51489 | } |
| 51490 | bool ByteCodeEmitter::emitShrSint16Sint16(SourceInfo L) { |
| 51491 | return emitOp<>(OP_ShrSint16Sint16, L); |
| 51492 | } |
| 51493 | bool ByteCodeEmitter::emitShrSint16Uint16(SourceInfo L) { |
| 51494 | return emitOp<>(OP_ShrSint16Uint16, L); |
| 51495 | } |
| 51496 | bool ByteCodeEmitter::emitShrSint16Sint32(SourceInfo L) { |
| 51497 | return emitOp<>(OP_ShrSint16Sint32, L); |
| 51498 | } |
| 51499 | bool ByteCodeEmitter::emitShrSint16Uint32(SourceInfo L) { |
| 51500 | return emitOp<>(OP_ShrSint16Uint32, L); |
| 51501 | } |
| 51502 | bool ByteCodeEmitter::emitShrSint16Sint64(SourceInfo L) { |
| 51503 | return emitOp<>(OP_ShrSint16Sint64, L); |
| 51504 | } |
| 51505 | bool ByteCodeEmitter::emitShrSint16Uint64(SourceInfo L) { |
| 51506 | return emitOp<>(OP_ShrSint16Uint64, L); |
| 51507 | } |
| 51508 | bool ByteCodeEmitter::emitShrSint16IntAP(SourceInfo L) { |
| 51509 | return emitOp<>(OP_ShrSint16IntAP, L); |
| 51510 | } |
| 51511 | bool ByteCodeEmitter::emitShrSint16IntAPS(SourceInfo L) { |
| 51512 | return emitOp<>(OP_ShrSint16IntAPS, L); |
| 51513 | } |
| 51514 | bool ByteCodeEmitter::emitShrUint16Sint8(SourceInfo L) { |
| 51515 | return emitOp<>(OP_ShrUint16Sint8, L); |
| 51516 | } |
| 51517 | bool ByteCodeEmitter::emitShrUint16Uint8(SourceInfo L) { |
| 51518 | return emitOp<>(OP_ShrUint16Uint8, L); |
| 51519 | } |
| 51520 | bool ByteCodeEmitter::emitShrUint16Sint16(SourceInfo L) { |
| 51521 | return emitOp<>(OP_ShrUint16Sint16, L); |
| 51522 | } |
| 51523 | bool ByteCodeEmitter::emitShrUint16Uint16(SourceInfo L) { |
| 51524 | return emitOp<>(OP_ShrUint16Uint16, L); |
| 51525 | } |
| 51526 | bool ByteCodeEmitter::emitShrUint16Sint32(SourceInfo L) { |
| 51527 | return emitOp<>(OP_ShrUint16Sint32, L); |
| 51528 | } |
| 51529 | bool ByteCodeEmitter::emitShrUint16Uint32(SourceInfo L) { |
| 51530 | return emitOp<>(OP_ShrUint16Uint32, L); |
| 51531 | } |
| 51532 | bool ByteCodeEmitter::emitShrUint16Sint64(SourceInfo L) { |
| 51533 | return emitOp<>(OP_ShrUint16Sint64, L); |
| 51534 | } |
| 51535 | bool ByteCodeEmitter::emitShrUint16Uint64(SourceInfo L) { |
| 51536 | return emitOp<>(OP_ShrUint16Uint64, L); |
| 51537 | } |
| 51538 | bool ByteCodeEmitter::emitShrUint16IntAP(SourceInfo L) { |
| 51539 | return emitOp<>(OP_ShrUint16IntAP, L); |
| 51540 | } |
| 51541 | bool ByteCodeEmitter::emitShrUint16IntAPS(SourceInfo L) { |
| 51542 | return emitOp<>(OP_ShrUint16IntAPS, L); |
| 51543 | } |
| 51544 | bool ByteCodeEmitter::emitShrSint32Sint8(SourceInfo L) { |
| 51545 | return emitOp<>(OP_ShrSint32Sint8, L); |
| 51546 | } |
| 51547 | bool ByteCodeEmitter::emitShrSint32Uint8(SourceInfo L) { |
| 51548 | return emitOp<>(OP_ShrSint32Uint8, L); |
| 51549 | } |
| 51550 | bool ByteCodeEmitter::emitShrSint32Sint16(SourceInfo L) { |
| 51551 | return emitOp<>(OP_ShrSint32Sint16, L); |
| 51552 | } |
| 51553 | bool ByteCodeEmitter::emitShrSint32Uint16(SourceInfo L) { |
| 51554 | return emitOp<>(OP_ShrSint32Uint16, L); |
| 51555 | } |
| 51556 | bool ByteCodeEmitter::emitShrSint32Sint32(SourceInfo L) { |
| 51557 | return emitOp<>(OP_ShrSint32Sint32, L); |
| 51558 | } |
| 51559 | bool ByteCodeEmitter::emitShrSint32Uint32(SourceInfo L) { |
| 51560 | return emitOp<>(OP_ShrSint32Uint32, L); |
| 51561 | } |
| 51562 | bool ByteCodeEmitter::emitShrSint32Sint64(SourceInfo L) { |
| 51563 | return emitOp<>(OP_ShrSint32Sint64, L); |
| 51564 | } |
| 51565 | bool ByteCodeEmitter::emitShrSint32Uint64(SourceInfo L) { |
| 51566 | return emitOp<>(OP_ShrSint32Uint64, L); |
| 51567 | } |
| 51568 | bool ByteCodeEmitter::emitShrSint32IntAP(SourceInfo L) { |
| 51569 | return emitOp<>(OP_ShrSint32IntAP, L); |
| 51570 | } |
| 51571 | bool ByteCodeEmitter::emitShrSint32IntAPS(SourceInfo L) { |
| 51572 | return emitOp<>(OP_ShrSint32IntAPS, L); |
| 51573 | } |
| 51574 | bool ByteCodeEmitter::emitShrUint32Sint8(SourceInfo L) { |
| 51575 | return emitOp<>(OP_ShrUint32Sint8, L); |
| 51576 | } |
| 51577 | bool ByteCodeEmitter::emitShrUint32Uint8(SourceInfo L) { |
| 51578 | return emitOp<>(OP_ShrUint32Uint8, L); |
| 51579 | } |
| 51580 | bool ByteCodeEmitter::emitShrUint32Sint16(SourceInfo L) { |
| 51581 | return emitOp<>(OP_ShrUint32Sint16, L); |
| 51582 | } |
| 51583 | bool ByteCodeEmitter::emitShrUint32Uint16(SourceInfo L) { |
| 51584 | return emitOp<>(OP_ShrUint32Uint16, L); |
| 51585 | } |
| 51586 | bool ByteCodeEmitter::emitShrUint32Sint32(SourceInfo L) { |
| 51587 | return emitOp<>(OP_ShrUint32Sint32, L); |
| 51588 | } |
| 51589 | bool ByteCodeEmitter::emitShrUint32Uint32(SourceInfo L) { |
| 51590 | return emitOp<>(OP_ShrUint32Uint32, L); |
| 51591 | } |
| 51592 | bool ByteCodeEmitter::emitShrUint32Sint64(SourceInfo L) { |
| 51593 | return emitOp<>(OP_ShrUint32Sint64, L); |
| 51594 | } |
| 51595 | bool ByteCodeEmitter::emitShrUint32Uint64(SourceInfo L) { |
| 51596 | return emitOp<>(OP_ShrUint32Uint64, L); |
| 51597 | } |
| 51598 | bool ByteCodeEmitter::emitShrUint32IntAP(SourceInfo L) { |
| 51599 | return emitOp<>(OP_ShrUint32IntAP, L); |
| 51600 | } |
| 51601 | bool ByteCodeEmitter::emitShrUint32IntAPS(SourceInfo L) { |
| 51602 | return emitOp<>(OP_ShrUint32IntAPS, L); |
| 51603 | } |
| 51604 | bool ByteCodeEmitter::emitShrSint64Sint8(SourceInfo L) { |
| 51605 | return emitOp<>(OP_ShrSint64Sint8, L); |
| 51606 | } |
| 51607 | bool ByteCodeEmitter::emitShrSint64Uint8(SourceInfo L) { |
| 51608 | return emitOp<>(OP_ShrSint64Uint8, L); |
| 51609 | } |
| 51610 | bool ByteCodeEmitter::emitShrSint64Sint16(SourceInfo L) { |
| 51611 | return emitOp<>(OP_ShrSint64Sint16, L); |
| 51612 | } |
| 51613 | bool ByteCodeEmitter::emitShrSint64Uint16(SourceInfo L) { |
| 51614 | return emitOp<>(OP_ShrSint64Uint16, L); |
| 51615 | } |
| 51616 | bool ByteCodeEmitter::emitShrSint64Sint32(SourceInfo L) { |
| 51617 | return emitOp<>(OP_ShrSint64Sint32, L); |
| 51618 | } |
| 51619 | bool ByteCodeEmitter::emitShrSint64Uint32(SourceInfo L) { |
| 51620 | return emitOp<>(OP_ShrSint64Uint32, L); |
| 51621 | } |
| 51622 | bool ByteCodeEmitter::emitShrSint64Sint64(SourceInfo L) { |
| 51623 | return emitOp<>(OP_ShrSint64Sint64, L); |
| 51624 | } |
| 51625 | bool ByteCodeEmitter::emitShrSint64Uint64(SourceInfo L) { |
| 51626 | return emitOp<>(OP_ShrSint64Uint64, L); |
| 51627 | } |
| 51628 | bool ByteCodeEmitter::emitShrSint64IntAP(SourceInfo L) { |
| 51629 | return emitOp<>(OP_ShrSint64IntAP, L); |
| 51630 | } |
| 51631 | bool ByteCodeEmitter::emitShrSint64IntAPS(SourceInfo L) { |
| 51632 | return emitOp<>(OP_ShrSint64IntAPS, L); |
| 51633 | } |
| 51634 | bool ByteCodeEmitter::emitShrUint64Sint8(SourceInfo L) { |
| 51635 | return emitOp<>(OP_ShrUint64Sint8, L); |
| 51636 | } |
| 51637 | bool ByteCodeEmitter::emitShrUint64Uint8(SourceInfo L) { |
| 51638 | return emitOp<>(OP_ShrUint64Uint8, L); |
| 51639 | } |
| 51640 | bool ByteCodeEmitter::emitShrUint64Sint16(SourceInfo L) { |
| 51641 | return emitOp<>(OP_ShrUint64Sint16, L); |
| 51642 | } |
| 51643 | bool ByteCodeEmitter::emitShrUint64Uint16(SourceInfo L) { |
| 51644 | return emitOp<>(OP_ShrUint64Uint16, L); |
| 51645 | } |
| 51646 | bool ByteCodeEmitter::emitShrUint64Sint32(SourceInfo L) { |
| 51647 | return emitOp<>(OP_ShrUint64Sint32, L); |
| 51648 | } |
| 51649 | bool ByteCodeEmitter::emitShrUint64Uint32(SourceInfo L) { |
| 51650 | return emitOp<>(OP_ShrUint64Uint32, L); |
| 51651 | } |
| 51652 | bool ByteCodeEmitter::emitShrUint64Sint64(SourceInfo L) { |
| 51653 | return emitOp<>(OP_ShrUint64Sint64, L); |
| 51654 | } |
| 51655 | bool ByteCodeEmitter::emitShrUint64Uint64(SourceInfo L) { |
| 51656 | return emitOp<>(OP_ShrUint64Uint64, L); |
| 51657 | } |
| 51658 | bool ByteCodeEmitter::emitShrUint64IntAP(SourceInfo L) { |
| 51659 | return emitOp<>(OP_ShrUint64IntAP, L); |
| 51660 | } |
| 51661 | bool ByteCodeEmitter::emitShrUint64IntAPS(SourceInfo L) { |
| 51662 | return emitOp<>(OP_ShrUint64IntAPS, L); |
| 51663 | } |
| 51664 | bool ByteCodeEmitter::emitShrIntAPSint8(SourceInfo L) { |
| 51665 | return emitOp<>(OP_ShrIntAPSint8, L); |
| 51666 | } |
| 51667 | bool ByteCodeEmitter::emitShrIntAPUint8(SourceInfo L) { |
| 51668 | return emitOp<>(OP_ShrIntAPUint8, L); |
| 51669 | } |
| 51670 | bool ByteCodeEmitter::emitShrIntAPSint16(SourceInfo L) { |
| 51671 | return emitOp<>(OP_ShrIntAPSint16, L); |
| 51672 | } |
| 51673 | bool ByteCodeEmitter::emitShrIntAPUint16(SourceInfo L) { |
| 51674 | return emitOp<>(OP_ShrIntAPUint16, L); |
| 51675 | } |
| 51676 | bool ByteCodeEmitter::emitShrIntAPSint32(SourceInfo L) { |
| 51677 | return emitOp<>(OP_ShrIntAPSint32, L); |
| 51678 | } |
| 51679 | bool ByteCodeEmitter::emitShrIntAPUint32(SourceInfo L) { |
| 51680 | return emitOp<>(OP_ShrIntAPUint32, L); |
| 51681 | } |
| 51682 | bool ByteCodeEmitter::emitShrIntAPSint64(SourceInfo L) { |
| 51683 | return emitOp<>(OP_ShrIntAPSint64, L); |
| 51684 | } |
| 51685 | bool ByteCodeEmitter::emitShrIntAPUint64(SourceInfo L) { |
| 51686 | return emitOp<>(OP_ShrIntAPUint64, L); |
| 51687 | } |
| 51688 | bool ByteCodeEmitter::emitShrIntAPIntAP(SourceInfo L) { |
| 51689 | return emitOp<>(OP_ShrIntAPIntAP, L); |
| 51690 | } |
| 51691 | bool ByteCodeEmitter::emitShrIntAPIntAPS(SourceInfo L) { |
| 51692 | return emitOp<>(OP_ShrIntAPIntAPS, L); |
| 51693 | } |
| 51694 | bool ByteCodeEmitter::emitShrIntAPSSint8(SourceInfo L) { |
| 51695 | return emitOp<>(OP_ShrIntAPSSint8, L); |
| 51696 | } |
| 51697 | bool ByteCodeEmitter::emitShrIntAPSUint8(SourceInfo L) { |
| 51698 | return emitOp<>(OP_ShrIntAPSUint8, L); |
| 51699 | } |
| 51700 | bool ByteCodeEmitter::emitShrIntAPSSint16(SourceInfo L) { |
| 51701 | return emitOp<>(OP_ShrIntAPSSint16, L); |
| 51702 | } |
| 51703 | bool ByteCodeEmitter::emitShrIntAPSUint16(SourceInfo L) { |
| 51704 | return emitOp<>(OP_ShrIntAPSUint16, L); |
| 51705 | } |
| 51706 | bool ByteCodeEmitter::emitShrIntAPSSint32(SourceInfo L) { |
| 51707 | return emitOp<>(OP_ShrIntAPSSint32, L); |
| 51708 | } |
| 51709 | bool ByteCodeEmitter::emitShrIntAPSUint32(SourceInfo L) { |
| 51710 | return emitOp<>(OP_ShrIntAPSUint32, L); |
| 51711 | } |
| 51712 | bool ByteCodeEmitter::emitShrIntAPSSint64(SourceInfo L) { |
| 51713 | return emitOp<>(OP_ShrIntAPSSint64, L); |
| 51714 | } |
| 51715 | bool ByteCodeEmitter::emitShrIntAPSUint64(SourceInfo L) { |
| 51716 | return emitOp<>(OP_ShrIntAPSUint64, L); |
| 51717 | } |
| 51718 | bool ByteCodeEmitter::emitShrIntAPSIntAP(SourceInfo L) { |
| 51719 | return emitOp<>(OP_ShrIntAPSIntAP, L); |
| 51720 | } |
| 51721 | bool ByteCodeEmitter::emitShrIntAPSIntAPS(SourceInfo L) { |
| 51722 | return emitOp<>(OP_ShrIntAPSIntAPS, L); |
| 51723 | } |
| 51724 | #endif |
| 51725 | #ifdef GET_EVAL_IMPL |
| 51726 | bool EvalEmitter::emitShrSint8Sint8(SourceInfo L) { |
| 51727 | if (!isActive()) return true; |
| 51728 | CurrentSource = L; |
| 51729 | return Shr<PT_Sint8, PT_Sint8>(S, CodePtr()); |
| 51730 | } |
| 51731 | bool EvalEmitter::emitShrSint8Uint8(SourceInfo L) { |
| 51732 | if (!isActive()) return true; |
| 51733 | CurrentSource = L; |
| 51734 | return Shr<PT_Sint8, PT_Uint8>(S, CodePtr()); |
| 51735 | } |
| 51736 | bool EvalEmitter::emitShrSint8Sint16(SourceInfo L) { |
| 51737 | if (!isActive()) return true; |
| 51738 | CurrentSource = L; |
| 51739 | return Shr<PT_Sint8, PT_Sint16>(S, CodePtr()); |
| 51740 | } |
| 51741 | bool EvalEmitter::emitShrSint8Uint16(SourceInfo L) { |
| 51742 | if (!isActive()) return true; |
| 51743 | CurrentSource = L; |
| 51744 | return Shr<PT_Sint8, PT_Uint16>(S, CodePtr()); |
| 51745 | } |
| 51746 | bool EvalEmitter::emitShrSint8Sint32(SourceInfo L) { |
| 51747 | if (!isActive()) return true; |
| 51748 | CurrentSource = L; |
| 51749 | return Shr<PT_Sint8, PT_Sint32>(S, CodePtr()); |
| 51750 | } |
| 51751 | bool EvalEmitter::emitShrSint8Uint32(SourceInfo L) { |
| 51752 | if (!isActive()) return true; |
| 51753 | CurrentSource = L; |
| 51754 | return Shr<PT_Sint8, PT_Uint32>(S, CodePtr()); |
| 51755 | } |
| 51756 | bool EvalEmitter::emitShrSint8Sint64(SourceInfo L) { |
| 51757 | if (!isActive()) return true; |
| 51758 | CurrentSource = L; |
| 51759 | return Shr<PT_Sint8, PT_Sint64>(S, CodePtr()); |
| 51760 | } |
| 51761 | bool EvalEmitter::emitShrSint8Uint64(SourceInfo L) { |
| 51762 | if (!isActive()) return true; |
| 51763 | CurrentSource = L; |
| 51764 | return Shr<PT_Sint8, PT_Uint64>(S, CodePtr()); |
| 51765 | } |
| 51766 | bool EvalEmitter::emitShrSint8IntAP(SourceInfo L) { |
| 51767 | if (!isActive()) return true; |
| 51768 | CurrentSource = L; |
| 51769 | return Shr<PT_Sint8, PT_IntAP>(S, CodePtr()); |
| 51770 | } |
| 51771 | bool EvalEmitter::emitShrSint8IntAPS(SourceInfo L) { |
| 51772 | if (!isActive()) return true; |
| 51773 | CurrentSource = L; |
| 51774 | return Shr<PT_Sint8, PT_IntAPS>(S, CodePtr()); |
| 51775 | } |
| 51776 | bool EvalEmitter::emitShrUint8Sint8(SourceInfo L) { |
| 51777 | if (!isActive()) return true; |
| 51778 | CurrentSource = L; |
| 51779 | return Shr<PT_Uint8, PT_Sint8>(S, CodePtr()); |
| 51780 | } |
| 51781 | bool EvalEmitter::emitShrUint8Uint8(SourceInfo L) { |
| 51782 | if (!isActive()) return true; |
| 51783 | CurrentSource = L; |
| 51784 | return Shr<PT_Uint8, PT_Uint8>(S, CodePtr()); |
| 51785 | } |
| 51786 | bool EvalEmitter::emitShrUint8Sint16(SourceInfo L) { |
| 51787 | if (!isActive()) return true; |
| 51788 | CurrentSource = L; |
| 51789 | return Shr<PT_Uint8, PT_Sint16>(S, CodePtr()); |
| 51790 | } |
| 51791 | bool EvalEmitter::emitShrUint8Uint16(SourceInfo L) { |
| 51792 | if (!isActive()) return true; |
| 51793 | CurrentSource = L; |
| 51794 | return Shr<PT_Uint8, PT_Uint16>(S, CodePtr()); |
| 51795 | } |
| 51796 | bool EvalEmitter::emitShrUint8Sint32(SourceInfo L) { |
| 51797 | if (!isActive()) return true; |
| 51798 | CurrentSource = L; |
| 51799 | return Shr<PT_Uint8, PT_Sint32>(S, CodePtr()); |
| 51800 | } |
| 51801 | bool EvalEmitter::emitShrUint8Uint32(SourceInfo L) { |
| 51802 | if (!isActive()) return true; |
| 51803 | CurrentSource = L; |
| 51804 | return Shr<PT_Uint8, PT_Uint32>(S, CodePtr()); |
| 51805 | } |
| 51806 | bool EvalEmitter::emitShrUint8Sint64(SourceInfo L) { |
| 51807 | if (!isActive()) return true; |
| 51808 | CurrentSource = L; |
| 51809 | return Shr<PT_Uint8, PT_Sint64>(S, CodePtr()); |
| 51810 | } |
| 51811 | bool EvalEmitter::emitShrUint8Uint64(SourceInfo L) { |
| 51812 | if (!isActive()) return true; |
| 51813 | CurrentSource = L; |
| 51814 | return Shr<PT_Uint8, PT_Uint64>(S, CodePtr()); |
| 51815 | } |
| 51816 | bool EvalEmitter::emitShrUint8IntAP(SourceInfo L) { |
| 51817 | if (!isActive()) return true; |
| 51818 | CurrentSource = L; |
| 51819 | return Shr<PT_Uint8, PT_IntAP>(S, CodePtr()); |
| 51820 | } |
| 51821 | bool EvalEmitter::emitShrUint8IntAPS(SourceInfo L) { |
| 51822 | if (!isActive()) return true; |
| 51823 | CurrentSource = L; |
| 51824 | return Shr<PT_Uint8, PT_IntAPS>(S, CodePtr()); |
| 51825 | } |
| 51826 | bool EvalEmitter::emitShrSint16Sint8(SourceInfo L) { |
| 51827 | if (!isActive()) return true; |
| 51828 | CurrentSource = L; |
| 51829 | return Shr<PT_Sint16, PT_Sint8>(S, CodePtr()); |
| 51830 | } |
| 51831 | bool EvalEmitter::emitShrSint16Uint8(SourceInfo L) { |
| 51832 | if (!isActive()) return true; |
| 51833 | CurrentSource = L; |
| 51834 | return Shr<PT_Sint16, PT_Uint8>(S, CodePtr()); |
| 51835 | } |
| 51836 | bool EvalEmitter::emitShrSint16Sint16(SourceInfo L) { |
| 51837 | if (!isActive()) return true; |
| 51838 | CurrentSource = L; |
| 51839 | return Shr<PT_Sint16, PT_Sint16>(S, CodePtr()); |
| 51840 | } |
| 51841 | bool EvalEmitter::emitShrSint16Uint16(SourceInfo L) { |
| 51842 | if (!isActive()) return true; |
| 51843 | CurrentSource = L; |
| 51844 | return Shr<PT_Sint16, PT_Uint16>(S, CodePtr()); |
| 51845 | } |
| 51846 | bool EvalEmitter::emitShrSint16Sint32(SourceInfo L) { |
| 51847 | if (!isActive()) return true; |
| 51848 | CurrentSource = L; |
| 51849 | return Shr<PT_Sint16, PT_Sint32>(S, CodePtr()); |
| 51850 | } |
| 51851 | bool EvalEmitter::emitShrSint16Uint32(SourceInfo L) { |
| 51852 | if (!isActive()) return true; |
| 51853 | CurrentSource = L; |
| 51854 | return Shr<PT_Sint16, PT_Uint32>(S, CodePtr()); |
| 51855 | } |
| 51856 | bool EvalEmitter::emitShrSint16Sint64(SourceInfo L) { |
| 51857 | if (!isActive()) return true; |
| 51858 | CurrentSource = L; |
| 51859 | return Shr<PT_Sint16, PT_Sint64>(S, CodePtr()); |
| 51860 | } |
| 51861 | bool EvalEmitter::emitShrSint16Uint64(SourceInfo L) { |
| 51862 | if (!isActive()) return true; |
| 51863 | CurrentSource = L; |
| 51864 | return Shr<PT_Sint16, PT_Uint64>(S, CodePtr()); |
| 51865 | } |
| 51866 | bool EvalEmitter::emitShrSint16IntAP(SourceInfo L) { |
| 51867 | if (!isActive()) return true; |
| 51868 | CurrentSource = L; |
| 51869 | return Shr<PT_Sint16, PT_IntAP>(S, CodePtr()); |
| 51870 | } |
| 51871 | bool EvalEmitter::emitShrSint16IntAPS(SourceInfo L) { |
| 51872 | if (!isActive()) return true; |
| 51873 | CurrentSource = L; |
| 51874 | return Shr<PT_Sint16, PT_IntAPS>(S, CodePtr()); |
| 51875 | } |
| 51876 | bool EvalEmitter::emitShrUint16Sint8(SourceInfo L) { |
| 51877 | if (!isActive()) return true; |
| 51878 | CurrentSource = L; |
| 51879 | return Shr<PT_Uint16, PT_Sint8>(S, CodePtr()); |
| 51880 | } |
| 51881 | bool EvalEmitter::emitShrUint16Uint8(SourceInfo L) { |
| 51882 | if (!isActive()) return true; |
| 51883 | CurrentSource = L; |
| 51884 | return Shr<PT_Uint16, PT_Uint8>(S, CodePtr()); |
| 51885 | } |
| 51886 | bool EvalEmitter::emitShrUint16Sint16(SourceInfo L) { |
| 51887 | if (!isActive()) return true; |
| 51888 | CurrentSource = L; |
| 51889 | return Shr<PT_Uint16, PT_Sint16>(S, CodePtr()); |
| 51890 | } |
| 51891 | bool EvalEmitter::emitShrUint16Uint16(SourceInfo L) { |
| 51892 | if (!isActive()) return true; |
| 51893 | CurrentSource = L; |
| 51894 | return Shr<PT_Uint16, PT_Uint16>(S, CodePtr()); |
| 51895 | } |
| 51896 | bool EvalEmitter::emitShrUint16Sint32(SourceInfo L) { |
| 51897 | if (!isActive()) return true; |
| 51898 | CurrentSource = L; |
| 51899 | return Shr<PT_Uint16, PT_Sint32>(S, CodePtr()); |
| 51900 | } |
| 51901 | bool EvalEmitter::emitShrUint16Uint32(SourceInfo L) { |
| 51902 | if (!isActive()) return true; |
| 51903 | CurrentSource = L; |
| 51904 | return Shr<PT_Uint16, PT_Uint32>(S, CodePtr()); |
| 51905 | } |
| 51906 | bool EvalEmitter::emitShrUint16Sint64(SourceInfo L) { |
| 51907 | if (!isActive()) return true; |
| 51908 | CurrentSource = L; |
| 51909 | return Shr<PT_Uint16, PT_Sint64>(S, CodePtr()); |
| 51910 | } |
| 51911 | bool EvalEmitter::emitShrUint16Uint64(SourceInfo L) { |
| 51912 | if (!isActive()) return true; |
| 51913 | CurrentSource = L; |
| 51914 | return Shr<PT_Uint16, PT_Uint64>(S, CodePtr()); |
| 51915 | } |
| 51916 | bool EvalEmitter::emitShrUint16IntAP(SourceInfo L) { |
| 51917 | if (!isActive()) return true; |
| 51918 | CurrentSource = L; |
| 51919 | return Shr<PT_Uint16, PT_IntAP>(S, CodePtr()); |
| 51920 | } |
| 51921 | bool EvalEmitter::emitShrUint16IntAPS(SourceInfo L) { |
| 51922 | if (!isActive()) return true; |
| 51923 | CurrentSource = L; |
| 51924 | return Shr<PT_Uint16, PT_IntAPS>(S, CodePtr()); |
| 51925 | } |
| 51926 | bool EvalEmitter::emitShrSint32Sint8(SourceInfo L) { |
| 51927 | if (!isActive()) return true; |
| 51928 | CurrentSource = L; |
| 51929 | return Shr<PT_Sint32, PT_Sint8>(S, CodePtr()); |
| 51930 | } |
| 51931 | bool EvalEmitter::emitShrSint32Uint8(SourceInfo L) { |
| 51932 | if (!isActive()) return true; |
| 51933 | CurrentSource = L; |
| 51934 | return Shr<PT_Sint32, PT_Uint8>(S, CodePtr()); |
| 51935 | } |
| 51936 | bool EvalEmitter::emitShrSint32Sint16(SourceInfo L) { |
| 51937 | if (!isActive()) return true; |
| 51938 | CurrentSource = L; |
| 51939 | return Shr<PT_Sint32, PT_Sint16>(S, CodePtr()); |
| 51940 | } |
| 51941 | bool EvalEmitter::emitShrSint32Uint16(SourceInfo L) { |
| 51942 | if (!isActive()) return true; |
| 51943 | CurrentSource = L; |
| 51944 | return Shr<PT_Sint32, PT_Uint16>(S, CodePtr()); |
| 51945 | } |
| 51946 | bool EvalEmitter::emitShrSint32Sint32(SourceInfo L) { |
| 51947 | if (!isActive()) return true; |
| 51948 | CurrentSource = L; |
| 51949 | return Shr<PT_Sint32, PT_Sint32>(S, CodePtr()); |
| 51950 | } |
| 51951 | bool EvalEmitter::emitShrSint32Uint32(SourceInfo L) { |
| 51952 | if (!isActive()) return true; |
| 51953 | CurrentSource = L; |
| 51954 | return Shr<PT_Sint32, PT_Uint32>(S, CodePtr()); |
| 51955 | } |
| 51956 | bool EvalEmitter::emitShrSint32Sint64(SourceInfo L) { |
| 51957 | if (!isActive()) return true; |
| 51958 | CurrentSource = L; |
| 51959 | return Shr<PT_Sint32, PT_Sint64>(S, CodePtr()); |
| 51960 | } |
| 51961 | bool EvalEmitter::emitShrSint32Uint64(SourceInfo L) { |
| 51962 | if (!isActive()) return true; |
| 51963 | CurrentSource = L; |
| 51964 | return Shr<PT_Sint32, PT_Uint64>(S, CodePtr()); |
| 51965 | } |
| 51966 | bool EvalEmitter::emitShrSint32IntAP(SourceInfo L) { |
| 51967 | if (!isActive()) return true; |
| 51968 | CurrentSource = L; |
| 51969 | return Shr<PT_Sint32, PT_IntAP>(S, CodePtr()); |
| 51970 | } |
| 51971 | bool EvalEmitter::emitShrSint32IntAPS(SourceInfo L) { |
| 51972 | if (!isActive()) return true; |
| 51973 | CurrentSource = L; |
| 51974 | return Shr<PT_Sint32, PT_IntAPS>(S, CodePtr()); |
| 51975 | } |
| 51976 | bool EvalEmitter::emitShrUint32Sint8(SourceInfo L) { |
| 51977 | if (!isActive()) return true; |
| 51978 | CurrentSource = L; |
| 51979 | return Shr<PT_Uint32, PT_Sint8>(S, CodePtr()); |
| 51980 | } |
| 51981 | bool EvalEmitter::emitShrUint32Uint8(SourceInfo L) { |
| 51982 | if (!isActive()) return true; |
| 51983 | CurrentSource = L; |
| 51984 | return Shr<PT_Uint32, PT_Uint8>(S, CodePtr()); |
| 51985 | } |
| 51986 | bool EvalEmitter::emitShrUint32Sint16(SourceInfo L) { |
| 51987 | if (!isActive()) return true; |
| 51988 | CurrentSource = L; |
| 51989 | return Shr<PT_Uint32, PT_Sint16>(S, CodePtr()); |
| 51990 | } |
| 51991 | bool EvalEmitter::emitShrUint32Uint16(SourceInfo L) { |
| 51992 | if (!isActive()) return true; |
| 51993 | CurrentSource = L; |
| 51994 | return Shr<PT_Uint32, PT_Uint16>(S, CodePtr()); |
| 51995 | } |
| 51996 | bool EvalEmitter::emitShrUint32Sint32(SourceInfo L) { |
| 51997 | if (!isActive()) return true; |
| 51998 | CurrentSource = L; |
| 51999 | return Shr<PT_Uint32, PT_Sint32>(S, CodePtr()); |
| 52000 | } |
| 52001 | bool EvalEmitter::emitShrUint32Uint32(SourceInfo L) { |
| 52002 | if (!isActive()) return true; |
| 52003 | CurrentSource = L; |
| 52004 | return Shr<PT_Uint32, PT_Uint32>(S, CodePtr()); |
| 52005 | } |
| 52006 | bool EvalEmitter::emitShrUint32Sint64(SourceInfo L) { |
| 52007 | if (!isActive()) return true; |
| 52008 | CurrentSource = L; |
| 52009 | return Shr<PT_Uint32, PT_Sint64>(S, CodePtr()); |
| 52010 | } |
| 52011 | bool EvalEmitter::emitShrUint32Uint64(SourceInfo L) { |
| 52012 | if (!isActive()) return true; |
| 52013 | CurrentSource = L; |
| 52014 | return Shr<PT_Uint32, PT_Uint64>(S, CodePtr()); |
| 52015 | } |
| 52016 | bool EvalEmitter::emitShrUint32IntAP(SourceInfo L) { |
| 52017 | if (!isActive()) return true; |
| 52018 | CurrentSource = L; |
| 52019 | return Shr<PT_Uint32, PT_IntAP>(S, CodePtr()); |
| 52020 | } |
| 52021 | bool EvalEmitter::emitShrUint32IntAPS(SourceInfo L) { |
| 52022 | if (!isActive()) return true; |
| 52023 | CurrentSource = L; |
| 52024 | return Shr<PT_Uint32, PT_IntAPS>(S, CodePtr()); |
| 52025 | } |
| 52026 | bool EvalEmitter::emitShrSint64Sint8(SourceInfo L) { |
| 52027 | if (!isActive()) return true; |
| 52028 | CurrentSource = L; |
| 52029 | return Shr<PT_Sint64, PT_Sint8>(S, CodePtr()); |
| 52030 | } |
| 52031 | bool EvalEmitter::emitShrSint64Uint8(SourceInfo L) { |
| 52032 | if (!isActive()) return true; |
| 52033 | CurrentSource = L; |
| 52034 | return Shr<PT_Sint64, PT_Uint8>(S, CodePtr()); |
| 52035 | } |
| 52036 | bool EvalEmitter::emitShrSint64Sint16(SourceInfo L) { |
| 52037 | if (!isActive()) return true; |
| 52038 | CurrentSource = L; |
| 52039 | return Shr<PT_Sint64, PT_Sint16>(S, CodePtr()); |
| 52040 | } |
| 52041 | bool EvalEmitter::emitShrSint64Uint16(SourceInfo L) { |
| 52042 | if (!isActive()) return true; |
| 52043 | CurrentSource = L; |
| 52044 | return Shr<PT_Sint64, PT_Uint16>(S, CodePtr()); |
| 52045 | } |
| 52046 | bool EvalEmitter::emitShrSint64Sint32(SourceInfo L) { |
| 52047 | if (!isActive()) return true; |
| 52048 | CurrentSource = L; |
| 52049 | return Shr<PT_Sint64, PT_Sint32>(S, CodePtr()); |
| 52050 | } |
| 52051 | bool EvalEmitter::emitShrSint64Uint32(SourceInfo L) { |
| 52052 | if (!isActive()) return true; |
| 52053 | CurrentSource = L; |
| 52054 | return Shr<PT_Sint64, PT_Uint32>(S, CodePtr()); |
| 52055 | } |
| 52056 | bool EvalEmitter::emitShrSint64Sint64(SourceInfo L) { |
| 52057 | if (!isActive()) return true; |
| 52058 | CurrentSource = L; |
| 52059 | return Shr<PT_Sint64, PT_Sint64>(S, CodePtr()); |
| 52060 | } |
| 52061 | bool EvalEmitter::emitShrSint64Uint64(SourceInfo L) { |
| 52062 | if (!isActive()) return true; |
| 52063 | CurrentSource = L; |
| 52064 | return Shr<PT_Sint64, PT_Uint64>(S, CodePtr()); |
| 52065 | } |
| 52066 | bool EvalEmitter::emitShrSint64IntAP(SourceInfo L) { |
| 52067 | if (!isActive()) return true; |
| 52068 | CurrentSource = L; |
| 52069 | return Shr<PT_Sint64, PT_IntAP>(S, CodePtr()); |
| 52070 | } |
| 52071 | bool EvalEmitter::emitShrSint64IntAPS(SourceInfo L) { |
| 52072 | if (!isActive()) return true; |
| 52073 | CurrentSource = L; |
| 52074 | return Shr<PT_Sint64, PT_IntAPS>(S, CodePtr()); |
| 52075 | } |
| 52076 | bool EvalEmitter::emitShrUint64Sint8(SourceInfo L) { |
| 52077 | if (!isActive()) return true; |
| 52078 | CurrentSource = L; |
| 52079 | return Shr<PT_Uint64, PT_Sint8>(S, CodePtr()); |
| 52080 | } |
| 52081 | bool EvalEmitter::emitShrUint64Uint8(SourceInfo L) { |
| 52082 | if (!isActive()) return true; |
| 52083 | CurrentSource = L; |
| 52084 | return Shr<PT_Uint64, PT_Uint8>(S, CodePtr()); |
| 52085 | } |
| 52086 | bool EvalEmitter::emitShrUint64Sint16(SourceInfo L) { |
| 52087 | if (!isActive()) return true; |
| 52088 | CurrentSource = L; |
| 52089 | return Shr<PT_Uint64, PT_Sint16>(S, CodePtr()); |
| 52090 | } |
| 52091 | bool EvalEmitter::emitShrUint64Uint16(SourceInfo L) { |
| 52092 | if (!isActive()) return true; |
| 52093 | CurrentSource = L; |
| 52094 | return Shr<PT_Uint64, PT_Uint16>(S, CodePtr()); |
| 52095 | } |
| 52096 | bool EvalEmitter::emitShrUint64Sint32(SourceInfo L) { |
| 52097 | if (!isActive()) return true; |
| 52098 | CurrentSource = L; |
| 52099 | return Shr<PT_Uint64, PT_Sint32>(S, CodePtr()); |
| 52100 | } |
| 52101 | bool EvalEmitter::emitShrUint64Uint32(SourceInfo L) { |
| 52102 | if (!isActive()) return true; |
| 52103 | CurrentSource = L; |
| 52104 | return Shr<PT_Uint64, PT_Uint32>(S, CodePtr()); |
| 52105 | } |
| 52106 | bool EvalEmitter::emitShrUint64Sint64(SourceInfo L) { |
| 52107 | if (!isActive()) return true; |
| 52108 | CurrentSource = L; |
| 52109 | return Shr<PT_Uint64, PT_Sint64>(S, CodePtr()); |
| 52110 | } |
| 52111 | bool EvalEmitter::emitShrUint64Uint64(SourceInfo L) { |
| 52112 | if (!isActive()) return true; |
| 52113 | CurrentSource = L; |
| 52114 | return Shr<PT_Uint64, PT_Uint64>(S, CodePtr()); |
| 52115 | } |
| 52116 | bool EvalEmitter::emitShrUint64IntAP(SourceInfo L) { |
| 52117 | if (!isActive()) return true; |
| 52118 | CurrentSource = L; |
| 52119 | return Shr<PT_Uint64, PT_IntAP>(S, CodePtr()); |
| 52120 | } |
| 52121 | bool EvalEmitter::emitShrUint64IntAPS(SourceInfo L) { |
| 52122 | if (!isActive()) return true; |
| 52123 | CurrentSource = L; |
| 52124 | return Shr<PT_Uint64, PT_IntAPS>(S, CodePtr()); |
| 52125 | } |
| 52126 | bool EvalEmitter::emitShrIntAPSint8(SourceInfo L) { |
| 52127 | if (!isActive()) return true; |
| 52128 | CurrentSource = L; |
| 52129 | return Shr<PT_IntAP, PT_Sint8>(S, CodePtr()); |
| 52130 | } |
| 52131 | bool EvalEmitter::emitShrIntAPUint8(SourceInfo L) { |
| 52132 | if (!isActive()) return true; |
| 52133 | CurrentSource = L; |
| 52134 | return Shr<PT_IntAP, PT_Uint8>(S, CodePtr()); |
| 52135 | } |
| 52136 | bool EvalEmitter::emitShrIntAPSint16(SourceInfo L) { |
| 52137 | if (!isActive()) return true; |
| 52138 | CurrentSource = L; |
| 52139 | return Shr<PT_IntAP, PT_Sint16>(S, CodePtr()); |
| 52140 | } |
| 52141 | bool EvalEmitter::emitShrIntAPUint16(SourceInfo L) { |
| 52142 | if (!isActive()) return true; |
| 52143 | CurrentSource = L; |
| 52144 | return Shr<PT_IntAP, PT_Uint16>(S, CodePtr()); |
| 52145 | } |
| 52146 | bool EvalEmitter::emitShrIntAPSint32(SourceInfo L) { |
| 52147 | if (!isActive()) return true; |
| 52148 | CurrentSource = L; |
| 52149 | return Shr<PT_IntAP, PT_Sint32>(S, CodePtr()); |
| 52150 | } |
| 52151 | bool EvalEmitter::emitShrIntAPUint32(SourceInfo L) { |
| 52152 | if (!isActive()) return true; |
| 52153 | CurrentSource = L; |
| 52154 | return Shr<PT_IntAP, PT_Uint32>(S, CodePtr()); |
| 52155 | } |
| 52156 | bool EvalEmitter::emitShrIntAPSint64(SourceInfo L) { |
| 52157 | if (!isActive()) return true; |
| 52158 | CurrentSource = L; |
| 52159 | return Shr<PT_IntAP, PT_Sint64>(S, CodePtr()); |
| 52160 | } |
| 52161 | bool EvalEmitter::emitShrIntAPUint64(SourceInfo L) { |
| 52162 | if (!isActive()) return true; |
| 52163 | CurrentSource = L; |
| 52164 | return Shr<PT_IntAP, PT_Uint64>(S, CodePtr()); |
| 52165 | } |
| 52166 | bool EvalEmitter::emitShrIntAPIntAP(SourceInfo L) { |
| 52167 | if (!isActive()) return true; |
| 52168 | CurrentSource = L; |
| 52169 | return Shr<PT_IntAP, PT_IntAP>(S, CodePtr()); |
| 52170 | } |
| 52171 | bool EvalEmitter::emitShrIntAPIntAPS(SourceInfo L) { |
| 52172 | if (!isActive()) return true; |
| 52173 | CurrentSource = L; |
| 52174 | return Shr<PT_IntAP, PT_IntAPS>(S, CodePtr()); |
| 52175 | } |
| 52176 | bool EvalEmitter::emitShrIntAPSSint8(SourceInfo L) { |
| 52177 | if (!isActive()) return true; |
| 52178 | CurrentSource = L; |
| 52179 | return Shr<PT_IntAPS, PT_Sint8>(S, CodePtr()); |
| 52180 | } |
| 52181 | bool EvalEmitter::emitShrIntAPSUint8(SourceInfo L) { |
| 52182 | if (!isActive()) return true; |
| 52183 | CurrentSource = L; |
| 52184 | return Shr<PT_IntAPS, PT_Uint8>(S, CodePtr()); |
| 52185 | } |
| 52186 | bool EvalEmitter::emitShrIntAPSSint16(SourceInfo L) { |
| 52187 | if (!isActive()) return true; |
| 52188 | CurrentSource = L; |
| 52189 | return Shr<PT_IntAPS, PT_Sint16>(S, CodePtr()); |
| 52190 | } |
| 52191 | bool EvalEmitter::emitShrIntAPSUint16(SourceInfo L) { |
| 52192 | if (!isActive()) return true; |
| 52193 | CurrentSource = L; |
| 52194 | return Shr<PT_IntAPS, PT_Uint16>(S, CodePtr()); |
| 52195 | } |
| 52196 | bool EvalEmitter::emitShrIntAPSSint32(SourceInfo L) { |
| 52197 | if (!isActive()) return true; |
| 52198 | CurrentSource = L; |
| 52199 | return Shr<PT_IntAPS, PT_Sint32>(S, CodePtr()); |
| 52200 | } |
| 52201 | bool EvalEmitter::emitShrIntAPSUint32(SourceInfo L) { |
| 52202 | if (!isActive()) return true; |
| 52203 | CurrentSource = L; |
| 52204 | return Shr<PT_IntAPS, PT_Uint32>(S, CodePtr()); |
| 52205 | } |
| 52206 | bool EvalEmitter::emitShrIntAPSSint64(SourceInfo L) { |
| 52207 | if (!isActive()) return true; |
| 52208 | CurrentSource = L; |
| 52209 | return Shr<PT_IntAPS, PT_Sint64>(S, CodePtr()); |
| 52210 | } |
| 52211 | bool EvalEmitter::emitShrIntAPSUint64(SourceInfo L) { |
| 52212 | if (!isActive()) return true; |
| 52213 | CurrentSource = L; |
| 52214 | return Shr<PT_IntAPS, PT_Uint64>(S, CodePtr()); |
| 52215 | } |
| 52216 | bool EvalEmitter::emitShrIntAPSIntAP(SourceInfo L) { |
| 52217 | if (!isActive()) return true; |
| 52218 | CurrentSource = L; |
| 52219 | return Shr<PT_IntAPS, PT_IntAP>(S, CodePtr()); |
| 52220 | } |
| 52221 | bool EvalEmitter::emitShrIntAPSIntAPS(SourceInfo L) { |
| 52222 | if (!isActive()) return true; |
| 52223 | CurrentSource = L; |
| 52224 | return Shr<PT_IntAPS, PT_IntAPS>(S, CodePtr()); |
| 52225 | } |
| 52226 | #endif |
| 52227 | #ifdef GET_OPCODE_NAMES |
| 52228 | OP_SideEffect, |
| 52229 | #endif |
| 52230 | #ifdef GET_INTERPFN_LIST |
| 52231 | &Interp_SideEffect, |
| 52232 | #endif |
| 52233 | #ifdef GET_INTERPFN_DISPATCHERS |
| 52234 | PRESERVE_NONE |
| 52235 | static bool Interp_SideEffect(InterpState &S) { |
| 52236 | if (!SideEffect(S)) return false; |
| 52237 | #if USE_TAILCALLS |
| 52238 | MUSTTAIL return InterpNext(S); |
| 52239 | #else |
| 52240 | return true; |
| 52241 | #endif |
| 52242 | } |
| 52243 | #endif |
| 52244 | #ifdef GET_DISASM |
| 52245 | case OP_SideEffect: |
| 52246 | Text.Op = PrintName("SideEffect" ); |
| 52247 | break; |
| 52248 | #endif |
| 52249 | #if defined(GET_EVAL_PROTO) || defined(GET_LINK_PROTO) |
| 52250 | bool emitSideEffect(SourceInfo); |
| 52251 | #endif |
| 52252 | #ifdef GET_LINK_IMPL |
| 52253 | bool ByteCodeEmitter::emitSideEffect(SourceInfo L) { |
| 52254 | return emitOp<>(OP_SideEffect, L); |
| 52255 | } |
| 52256 | #endif |
| 52257 | #ifdef GET_EVAL_IMPL |
| 52258 | bool EvalEmitter::emitSideEffect(SourceInfo L) { |
| 52259 | if (!isActive()) return true; |
| 52260 | CurrentSource = L; |
| 52261 | return SideEffect(S); |
| 52262 | } |
| 52263 | #endif |
| 52264 | #ifdef GET_OPCODE_NAMES |
| 52265 | OP_SizelessVectorElementSize, |
| 52266 | #endif |
| 52267 | #ifdef GET_INTERPFN_LIST |
| 52268 | &Interp_SizelessVectorElementSize, |
| 52269 | #endif |
| 52270 | #ifdef GET_INTERPFN_DISPATCHERS |
| 52271 | PRESERVE_NONE |
| 52272 | static bool Interp_SizelessVectorElementSize(InterpState &S) { |
| 52273 | if (!SizelessVectorElementSize(S, S.PC)) return false; |
| 52274 | #if USE_TAILCALLS |
| 52275 | MUSTTAIL return InterpNext(S); |
| 52276 | #else |
| 52277 | return true; |
| 52278 | #endif |
| 52279 | } |
| 52280 | #endif |
| 52281 | #ifdef GET_DISASM |
| 52282 | case OP_SizelessVectorElementSize: |
| 52283 | Text.Op = PrintName("SizelessVectorElementSize" ); |
| 52284 | break; |
| 52285 | #endif |
| 52286 | #if defined(GET_EVAL_PROTO) || defined(GET_LINK_PROTO) |
| 52287 | bool emitSizelessVectorElementSize(SourceInfo); |
| 52288 | #endif |
| 52289 | #ifdef GET_LINK_IMPL |
| 52290 | bool ByteCodeEmitter::emitSizelessVectorElementSize(SourceInfo L) { |
| 52291 | return emitOp<>(OP_SizelessVectorElementSize, L); |
| 52292 | } |
| 52293 | #endif |
| 52294 | #ifdef GET_EVAL_IMPL |
| 52295 | bool EvalEmitter::emitSizelessVectorElementSize(SourceInfo L) { |
| 52296 | if (!isActive()) return true; |
| 52297 | CurrentSource = L; |
| 52298 | return SizelessVectorElementSize(S, CodePtr()); |
| 52299 | } |
| 52300 | #endif |
| 52301 | #ifdef GET_OPCODE_NAMES |
| 52302 | OP_StartFieldInit, |
| 52303 | #endif |
| 52304 | #ifdef GET_INTERPFN_LIST |
| 52305 | &Interp_StartFieldInit, |
| 52306 | #endif |
| 52307 | #ifdef GET_INTERPFN_DISPATCHERS |
| 52308 | PRESERVE_NONE |
| 52309 | static bool Interp_StartFieldInit(InterpState &S) { |
| 52310 | { |
| 52311 | const auto V0 = ReadArg<uint32_t>(S, S.PC); |
| 52312 | StartFieldInit(S, V0); |
| 52313 | } |
| 52314 | #if USE_TAILCALLS |
| 52315 | MUSTTAIL return InterpNext(S); |
| 52316 | #else |
| 52317 | return true; |
| 52318 | #endif |
| 52319 | } |
| 52320 | #endif |
| 52321 | #ifdef GET_DISASM |
| 52322 | case OP_StartFieldInit: |
| 52323 | Text.Op = PrintName("StartFieldInit" ); |
| 52324 | Text.Args.push_back(printArg<uint32_t>(PC)); |
| 52325 | break; |
| 52326 | #endif |
| 52327 | #if defined(GET_EVAL_PROTO) || defined(GET_LINK_PROTO) |
| 52328 | bool emitStartFieldInit( uint32_t , SourceInfo); |
| 52329 | #endif |
| 52330 | #ifdef GET_LINK_IMPL |
| 52331 | bool ByteCodeEmitter::emitStartFieldInit( uint32_t A0, SourceInfo L) { |
| 52332 | return emitOp<uint32_t>(OP_StartFieldInit, A0, L); |
| 52333 | } |
| 52334 | #endif |
| 52335 | #ifdef GET_EVAL_IMPL |
| 52336 | bool EvalEmitter::emitStartFieldInit( uint32_t A0, SourceInfo L) { |
| 52337 | if (!isActive()) return true; |
| 52338 | CurrentSource = L; |
| 52339 | return StartFieldInit(S, A0); |
| 52340 | } |
| 52341 | #endif |
| 52342 | #ifdef GET_OPCODE_NAMES |
| 52343 | OP_StartInit, |
| 52344 | #endif |
| 52345 | #ifdef GET_INTERPFN_LIST |
| 52346 | &Interp_StartInit, |
| 52347 | #endif |
| 52348 | #ifdef GET_INTERPFN_DISPATCHERS |
| 52349 | PRESERVE_NONE |
| 52350 | static bool Interp_StartInit(InterpState &S) { |
| 52351 | StartInit(S); |
| 52352 | #if USE_TAILCALLS |
| 52353 | MUSTTAIL return InterpNext(S); |
| 52354 | #else |
| 52355 | return true; |
| 52356 | #endif |
| 52357 | } |
| 52358 | #endif |
| 52359 | #ifdef GET_DISASM |
| 52360 | case OP_StartInit: |
| 52361 | Text.Op = PrintName("StartInit" ); |
| 52362 | break; |
| 52363 | #endif |
| 52364 | #if defined(GET_EVAL_PROTO) || defined(GET_LINK_PROTO) |
| 52365 | bool emitStartInit(SourceInfo); |
| 52366 | #endif |
| 52367 | #ifdef GET_LINK_IMPL |
| 52368 | bool ByteCodeEmitter::emitStartInit(SourceInfo L) { |
| 52369 | return emitOp<>(OP_StartInit, L); |
| 52370 | } |
| 52371 | #endif |
| 52372 | #ifdef GET_EVAL_IMPL |
| 52373 | bool EvalEmitter::emitStartInit(SourceInfo L) { |
| 52374 | if (!isActive()) return true; |
| 52375 | CurrentSource = L; |
| 52376 | return StartInit(S); |
| 52377 | } |
| 52378 | #endif |
| 52379 | #ifdef GET_OPCODE_NAMES |
| 52380 | OP_StartSpeculation, |
| 52381 | #endif |
| 52382 | #ifdef GET_INTERPFN_LIST |
| 52383 | &Interp_StartSpeculation, |
| 52384 | #endif |
| 52385 | #ifdef GET_INTERPFN_DISPATCHERS |
| 52386 | PRESERVE_NONE |
| 52387 | static bool Interp_StartSpeculation(InterpState &S) { |
| 52388 | StartSpeculation(S); |
| 52389 | #if USE_TAILCALLS |
| 52390 | MUSTTAIL return InterpNext(S); |
| 52391 | #else |
| 52392 | return true; |
| 52393 | #endif |
| 52394 | } |
| 52395 | #endif |
| 52396 | #ifdef GET_DISASM |
| 52397 | case OP_StartSpeculation: |
| 52398 | Text.Op = PrintName("StartSpeculation" ); |
| 52399 | break; |
| 52400 | #endif |
| 52401 | #if defined(GET_EVAL_PROTO) || defined(GET_LINK_PROTO) |
| 52402 | bool emitStartSpeculation(SourceInfo); |
| 52403 | #endif |
| 52404 | #ifdef GET_LINK_IMPL |
| 52405 | bool ByteCodeEmitter::emitStartSpeculation(SourceInfo L) { |
| 52406 | return emitOp<>(OP_StartSpeculation, L); |
| 52407 | } |
| 52408 | #endif |
| 52409 | #ifdef GET_EVAL_IMPL |
| 52410 | bool EvalEmitter::emitStartSpeculation(SourceInfo L) { |
| 52411 | if (!isActive()) return true; |
| 52412 | CurrentSource = L; |
| 52413 | return StartSpeculation(S); |
| 52414 | } |
| 52415 | #endif |
| 52416 | #ifdef GET_OPCODE_NAMES |
| 52417 | OP_StartThisLifetime, |
| 52418 | #endif |
| 52419 | #ifdef GET_INTERPFN_LIST |
| 52420 | &Interp_StartThisLifetime, |
| 52421 | #endif |
| 52422 | #ifdef GET_INTERPFN_DISPATCHERS |
| 52423 | PRESERVE_NONE |
| 52424 | static bool Interp_StartThisLifetime(InterpState &S) { |
| 52425 | if (!StartThisLifetime(S)) return false; |
| 52426 | #if USE_TAILCALLS |
| 52427 | MUSTTAIL return InterpNext(S); |
| 52428 | #else |
| 52429 | return true; |
| 52430 | #endif |
| 52431 | } |
| 52432 | #endif |
| 52433 | #ifdef GET_DISASM |
| 52434 | case OP_StartThisLifetime: |
| 52435 | Text.Op = PrintName("StartThisLifetime" ); |
| 52436 | break; |
| 52437 | #endif |
| 52438 | #if defined(GET_EVAL_PROTO) || defined(GET_LINK_PROTO) |
| 52439 | bool emitStartThisLifetime(SourceInfo); |
| 52440 | #endif |
| 52441 | #ifdef GET_LINK_IMPL |
| 52442 | bool ByteCodeEmitter::emitStartThisLifetime(SourceInfo L) { |
| 52443 | return emitOp<>(OP_StartThisLifetime, L); |
| 52444 | } |
| 52445 | #endif |
| 52446 | #ifdef GET_EVAL_IMPL |
| 52447 | bool EvalEmitter::emitStartThisLifetime(SourceInfo L) { |
| 52448 | if (!isActive()) return true; |
| 52449 | CurrentSource = L; |
| 52450 | return StartThisLifetime(S); |
| 52451 | } |
| 52452 | #endif |
| 52453 | #ifdef GET_OPCODE_NAMES |
| 52454 | OP_StartThisLifetime1, |
| 52455 | #endif |
| 52456 | #ifdef GET_INTERPFN_LIST |
| 52457 | &Interp_StartThisLifetime1, |
| 52458 | #endif |
| 52459 | #ifdef GET_INTERPFN_DISPATCHERS |
| 52460 | PRESERVE_NONE |
| 52461 | static bool Interp_StartThisLifetime1(InterpState &S) { |
| 52462 | if (!StartThisLifetime1(S)) return false; |
| 52463 | #if USE_TAILCALLS |
| 52464 | MUSTTAIL return InterpNext(S); |
| 52465 | #else |
| 52466 | return true; |
| 52467 | #endif |
| 52468 | } |
| 52469 | #endif |
| 52470 | #ifdef GET_DISASM |
| 52471 | case OP_StartThisLifetime1: |
| 52472 | Text.Op = PrintName("StartThisLifetime1" ); |
| 52473 | break; |
| 52474 | #endif |
| 52475 | #if defined(GET_EVAL_PROTO) || defined(GET_LINK_PROTO) |
| 52476 | bool emitStartThisLifetime1(SourceInfo); |
| 52477 | #endif |
| 52478 | #ifdef GET_LINK_IMPL |
| 52479 | bool ByteCodeEmitter::emitStartThisLifetime1(SourceInfo L) { |
| 52480 | return emitOp<>(OP_StartThisLifetime1, L); |
| 52481 | } |
| 52482 | #endif |
| 52483 | #ifdef GET_EVAL_IMPL |
| 52484 | bool EvalEmitter::emitStartThisLifetime1(SourceInfo L) { |
| 52485 | if (!isActive()) return true; |
| 52486 | CurrentSource = L; |
| 52487 | return StartThisLifetime1(S); |
| 52488 | } |
| 52489 | #endif |
| 52490 | #ifdef GET_OPCODE_NAMES |
| 52491 | OP_StoreSint8, |
| 52492 | OP_StoreUint8, |
| 52493 | OP_StoreSint16, |
| 52494 | OP_StoreUint16, |
| 52495 | OP_StoreSint32, |
| 52496 | OP_StoreUint32, |
| 52497 | OP_StoreSint64, |
| 52498 | OP_StoreUint64, |
| 52499 | OP_StoreIntAP, |
| 52500 | OP_StoreIntAPS, |
| 52501 | OP_StoreBool, |
| 52502 | OP_StoreFixedPoint, |
| 52503 | OP_StorePtr, |
| 52504 | OP_StoreMemberPtr, |
| 52505 | OP_StoreFloat, |
| 52506 | OP_StoreReflect, |
| 52507 | #endif |
| 52508 | #ifdef GET_INTERPFN_LIST |
| 52509 | &Interp_StoreSint8, |
| 52510 | &Interp_StoreUint8, |
| 52511 | &Interp_StoreSint16, |
| 52512 | &Interp_StoreUint16, |
| 52513 | &Interp_StoreSint32, |
| 52514 | &Interp_StoreUint32, |
| 52515 | &Interp_StoreSint64, |
| 52516 | &Interp_StoreUint64, |
| 52517 | &Interp_StoreIntAP, |
| 52518 | &Interp_StoreIntAPS, |
| 52519 | &Interp_StoreBool, |
| 52520 | &Interp_StoreFixedPoint, |
| 52521 | &Interp_StorePtr, |
| 52522 | &Interp_StoreMemberPtr, |
| 52523 | &Interp_StoreFloat, |
| 52524 | &Interp_StoreReflect, |
| 52525 | #endif |
| 52526 | #ifdef GET_INTERPFN_DISPATCHERS |
| 52527 | PRESERVE_NONE |
| 52528 | static bool Interp_StoreSint8(InterpState &S) { |
| 52529 | if (!Store<PT_Sint8>(S, S.PC)) return false; |
| 52530 | #if USE_TAILCALLS |
| 52531 | MUSTTAIL return InterpNext(S); |
| 52532 | #else |
| 52533 | return true; |
| 52534 | #endif |
| 52535 | } |
| 52536 | PRESERVE_NONE |
| 52537 | static bool Interp_StoreUint8(InterpState &S) { |
| 52538 | if (!Store<PT_Uint8>(S, S.PC)) return false; |
| 52539 | #if USE_TAILCALLS |
| 52540 | MUSTTAIL return InterpNext(S); |
| 52541 | #else |
| 52542 | return true; |
| 52543 | #endif |
| 52544 | } |
| 52545 | PRESERVE_NONE |
| 52546 | static bool Interp_StoreSint16(InterpState &S) { |
| 52547 | if (!Store<PT_Sint16>(S, S.PC)) return false; |
| 52548 | #if USE_TAILCALLS |
| 52549 | MUSTTAIL return InterpNext(S); |
| 52550 | #else |
| 52551 | return true; |
| 52552 | #endif |
| 52553 | } |
| 52554 | PRESERVE_NONE |
| 52555 | static bool Interp_StoreUint16(InterpState &S) { |
| 52556 | if (!Store<PT_Uint16>(S, S.PC)) return false; |
| 52557 | #if USE_TAILCALLS |
| 52558 | MUSTTAIL return InterpNext(S); |
| 52559 | #else |
| 52560 | return true; |
| 52561 | #endif |
| 52562 | } |
| 52563 | PRESERVE_NONE |
| 52564 | static bool Interp_StoreSint32(InterpState &S) { |
| 52565 | if (!Store<PT_Sint32>(S, S.PC)) return false; |
| 52566 | #if USE_TAILCALLS |
| 52567 | MUSTTAIL return InterpNext(S); |
| 52568 | #else |
| 52569 | return true; |
| 52570 | #endif |
| 52571 | } |
| 52572 | PRESERVE_NONE |
| 52573 | static bool Interp_StoreUint32(InterpState &S) { |
| 52574 | if (!Store<PT_Uint32>(S, S.PC)) return false; |
| 52575 | #if USE_TAILCALLS |
| 52576 | MUSTTAIL return InterpNext(S); |
| 52577 | #else |
| 52578 | return true; |
| 52579 | #endif |
| 52580 | } |
| 52581 | PRESERVE_NONE |
| 52582 | static bool Interp_StoreSint64(InterpState &S) { |
| 52583 | if (!Store<PT_Sint64>(S, S.PC)) return false; |
| 52584 | #if USE_TAILCALLS |
| 52585 | MUSTTAIL return InterpNext(S); |
| 52586 | #else |
| 52587 | return true; |
| 52588 | #endif |
| 52589 | } |
| 52590 | PRESERVE_NONE |
| 52591 | static bool Interp_StoreUint64(InterpState &S) { |
| 52592 | if (!Store<PT_Uint64>(S, S.PC)) return false; |
| 52593 | #if USE_TAILCALLS |
| 52594 | MUSTTAIL return InterpNext(S); |
| 52595 | #else |
| 52596 | return true; |
| 52597 | #endif |
| 52598 | } |
| 52599 | PRESERVE_NONE |
| 52600 | static bool Interp_StoreIntAP(InterpState &S) { |
| 52601 | if (!Store<PT_IntAP>(S, S.PC)) return false; |
| 52602 | #if USE_TAILCALLS |
| 52603 | MUSTTAIL return InterpNext(S); |
| 52604 | #else |
| 52605 | return true; |
| 52606 | #endif |
| 52607 | } |
| 52608 | PRESERVE_NONE |
| 52609 | static bool Interp_StoreIntAPS(InterpState &S) { |
| 52610 | if (!Store<PT_IntAPS>(S, S.PC)) return false; |
| 52611 | #if USE_TAILCALLS |
| 52612 | MUSTTAIL return InterpNext(S); |
| 52613 | #else |
| 52614 | return true; |
| 52615 | #endif |
| 52616 | } |
| 52617 | PRESERVE_NONE |
| 52618 | static bool Interp_StoreBool(InterpState &S) { |
| 52619 | if (!Store<PT_Bool>(S, S.PC)) return false; |
| 52620 | #if USE_TAILCALLS |
| 52621 | MUSTTAIL return InterpNext(S); |
| 52622 | #else |
| 52623 | return true; |
| 52624 | #endif |
| 52625 | } |
| 52626 | PRESERVE_NONE |
| 52627 | static bool Interp_StoreFixedPoint(InterpState &S) { |
| 52628 | if (!Store<PT_FixedPoint>(S, S.PC)) return false; |
| 52629 | #if USE_TAILCALLS |
| 52630 | MUSTTAIL return InterpNext(S); |
| 52631 | #else |
| 52632 | return true; |
| 52633 | #endif |
| 52634 | } |
| 52635 | PRESERVE_NONE |
| 52636 | static bool Interp_StorePtr(InterpState &S) { |
| 52637 | if (!Store<PT_Ptr>(S, S.PC)) return false; |
| 52638 | #if USE_TAILCALLS |
| 52639 | MUSTTAIL return InterpNext(S); |
| 52640 | #else |
| 52641 | return true; |
| 52642 | #endif |
| 52643 | } |
| 52644 | PRESERVE_NONE |
| 52645 | static bool Interp_StoreMemberPtr(InterpState &S) { |
| 52646 | if (!Store<PT_MemberPtr>(S, S.PC)) return false; |
| 52647 | #if USE_TAILCALLS |
| 52648 | MUSTTAIL return InterpNext(S); |
| 52649 | #else |
| 52650 | return true; |
| 52651 | #endif |
| 52652 | } |
| 52653 | PRESERVE_NONE |
| 52654 | static bool Interp_StoreFloat(InterpState &S) { |
| 52655 | if (!Store<PT_Float>(S, S.PC)) return false; |
| 52656 | #if USE_TAILCALLS |
| 52657 | MUSTTAIL return InterpNext(S); |
| 52658 | #else |
| 52659 | return true; |
| 52660 | #endif |
| 52661 | } |
| 52662 | PRESERVE_NONE |
| 52663 | static bool Interp_StoreReflect(InterpState &S) { |
| 52664 | if (!Store<PT_Reflect>(S, S.PC)) return false; |
| 52665 | #if USE_TAILCALLS |
| 52666 | MUSTTAIL return InterpNext(S); |
| 52667 | #else |
| 52668 | return true; |
| 52669 | #endif |
| 52670 | } |
| 52671 | #endif |
| 52672 | #ifdef GET_DISASM |
| 52673 | case OP_StoreSint8: |
| 52674 | Text.Op = PrintName("StoreSint8" ); |
| 52675 | break; |
| 52676 | case OP_StoreUint8: |
| 52677 | Text.Op = PrintName("StoreUint8" ); |
| 52678 | break; |
| 52679 | case OP_StoreSint16: |
| 52680 | Text.Op = PrintName("StoreSint16" ); |
| 52681 | break; |
| 52682 | case OP_StoreUint16: |
| 52683 | Text.Op = PrintName("StoreUint16" ); |
| 52684 | break; |
| 52685 | case OP_StoreSint32: |
| 52686 | Text.Op = PrintName("StoreSint32" ); |
| 52687 | break; |
| 52688 | case OP_StoreUint32: |
| 52689 | Text.Op = PrintName("StoreUint32" ); |
| 52690 | break; |
| 52691 | case OP_StoreSint64: |
| 52692 | Text.Op = PrintName("StoreSint64" ); |
| 52693 | break; |
| 52694 | case OP_StoreUint64: |
| 52695 | Text.Op = PrintName("StoreUint64" ); |
| 52696 | break; |
| 52697 | case OP_StoreIntAP: |
| 52698 | Text.Op = PrintName("StoreIntAP" ); |
| 52699 | break; |
| 52700 | case OP_StoreIntAPS: |
| 52701 | Text.Op = PrintName("StoreIntAPS" ); |
| 52702 | break; |
| 52703 | case OP_StoreBool: |
| 52704 | Text.Op = PrintName("StoreBool" ); |
| 52705 | break; |
| 52706 | case OP_StoreFixedPoint: |
| 52707 | Text.Op = PrintName("StoreFixedPoint" ); |
| 52708 | break; |
| 52709 | case OP_StorePtr: |
| 52710 | Text.Op = PrintName("StorePtr" ); |
| 52711 | break; |
| 52712 | case OP_StoreMemberPtr: |
| 52713 | Text.Op = PrintName("StoreMemberPtr" ); |
| 52714 | break; |
| 52715 | case OP_StoreFloat: |
| 52716 | Text.Op = PrintName("StoreFloat" ); |
| 52717 | break; |
| 52718 | case OP_StoreReflect: |
| 52719 | Text.Op = PrintName("StoreReflect" ); |
| 52720 | break; |
| 52721 | #endif |
| 52722 | #if defined(GET_EVAL_PROTO) || defined(GET_LINK_PROTO) |
| 52723 | bool emitStoreSint8(SourceInfo); |
| 52724 | bool emitStoreUint8(SourceInfo); |
| 52725 | bool emitStoreSint16(SourceInfo); |
| 52726 | bool emitStoreUint16(SourceInfo); |
| 52727 | bool emitStoreSint32(SourceInfo); |
| 52728 | bool emitStoreUint32(SourceInfo); |
| 52729 | bool emitStoreSint64(SourceInfo); |
| 52730 | bool emitStoreUint64(SourceInfo); |
| 52731 | bool emitStoreIntAP(SourceInfo); |
| 52732 | bool emitStoreIntAPS(SourceInfo); |
| 52733 | bool emitStoreBool(SourceInfo); |
| 52734 | bool emitStoreFixedPoint(SourceInfo); |
| 52735 | bool emitStorePtr(SourceInfo); |
| 52736 | bool emitStoreMemberPtr(SourceInfo); |
| 52737 | bool emitStoreFloat(SourceInfo); |
| 52738 | bool emitStoreReflect(SourceInfo); |
| 52739 | #endif |
| 52740 | #if defined(GET_EVAL_PROTO) || defined(GET_LINK_PROTO) |
| 52741 | [[nodiscard]] bool emitStore(PrimType, SourceInfo I); |
| 52742 | #endif |
| 52743 | #if defined(GET_EVAL_IMPL) || defined(GET_LINK_IMPL) |
| 52744 | bool |
| 52745 | #if defined(GET_EVAL_IMPL) |
| 52746 | EvalEmitter |
| 52747 | #else |
| 52748 | ByteCodeEmitter |
| 52749 | #endif |
| 52750 | ::emitStore(PrimType T0, SourceInfo I) { |
| 52751 | switch (T0) { |
| 52752 | case PT_Sint8: |
| 52753 | return emitStoreSint8(I); |
| 52754 | case PT_Uint8: |
| 52755 | return emitStoreUint8(I); |
| 52756 | case PT_Sint16: |
| 52757 | return emitStoreSint16(I); |
| 52758 | case PT_Uint16: |
| 52759 | return emitStoreUint16(I); |
| 52760 | case PT_Sint32: |
| 52761 | return emitStoreSint32(I); |
| 52762 | case PT_Uint32: |
| 52763 | return emitStoreUint32(I); |
| 52764 | case PT_Sint64: |
| 52765 | return emitStoreSint64(I); |
| 52766 | case PT_Uint64: |
| 52767 | return emitStoreUint64(I); |
| 52768 | case PT_IntAP: |
| 52769 | return emitStoreIntAP(I); |
| 52770 | case PT_IntAPS: |
| 52771 | return emitStoreIntAPS(I); |
| 52772 | case PT_Bool: |
| 52773 | return emitStoreBool(I); |
| 52774 | case PT_FixedPoint: |
| 52775 | return emitStoreFixedPoint(I); |
| 52776 | case PT_Ptr: |
| 52777 | return emitStorePtr(I); |
| 52778 | case PT_MemberPtr: |
| 52779 | return emitStoreMemberPtr(I); |
| 52780 | case PT_Float: |
| 52781 | return emitStoreFloat(I); |
| 52782 | case PT_Reflect: |
| 52783 | return emitStoreReflect(I); |
| 52784 | } |
| 52785 | llvm_unreachable("invalid enum value" ); |
| 52786 | } |
| 52787 | #endif |
| 52788 | #ifdef GET_LINK_IMPL |
| 52789 | bool ByteCodeEmitter::emitStoreSint8(SourceInfo L) { |
| 52790 | return emitOp<>(OP_StoreSint8, L); |
| 52791 | } |
| 52792 | bool ByteCodeEmitter::emitStoreUint8(SourceInfo L) { |
| 52793 | return emitOp<>(OP_StoreUint8, L); |
| 52794 | } |
| 52795 | bool ByteCodeEmitter::emitStoreSint16(SourceInfo L) { |
| 52796 | return emitOp<>(OP_StoreSint16, L); |
| 52797 | } |
| 52798 | bool ByteCodeEmitter::emitStoreUint16(SourceInfo L) { |
| 52799 | return emitOp<>(OP_StoreUint16, L); |
| 52800 | } |
| 52801 | bool ByteCodeEmitter::emitStoreSint32(SourceInfo L) { |
| 52802 | return emitOp<>(OP_StoreSint32, L); |
| 52803 | } |
| 52804 | bool ByteCodeEmitter::emitStoreUint32(SourceInfo L) { |
| 52805 | return emitOp<>(OP_StoreUint32, L); |
| 52806 | } |
| 52807 | bool ByteCodeEmitter::emitStoreSint64(SourceInfo L) { |
| 52808 | return emitOp<>(OP_StoreSint64, L); |
| 52809 | } |
| 52810 | bool ByteCodeEmitter::emitStoreUint64(SourceInfo L) { |
| 52811 | return emitOp<>(OP_StoreUint64, L); |
| 52812 | } |
| 52813 | bool ByteCodeEmitter::emitStoreIntAP(SourceInfo L) { |
| 52814 | return emitOp<>(OP_StoreIntAP, L); |
| 52815 | } |
| 52816 | bool ByteCodeEmitter::emitStoreIntAPS(SourceInfo L) { |
| 52817 | return emitOp<>(OP_StoreIntAPS, L); |
| 52818 | } |
| 52819 | bool ByteCodeEmitter::emitStoreBool(SourceInfo L) { |
| 52820 | return emitOp<>(OP_StoreBool, L); |
| 52821 | } |
| 52822 | bool ByteCodeEmitter::emitStoreFixedPoint(SourceInfo L) { |
| 52823 | return emitOp<>(OP_StoreFixedPoint, L); |
| 52824 | } |
| 52825 | bool ByteCodeEmitter::emitStorePtr(SourceInfo L) { |
| 52826 | return emitOp<>(OP_StorePtr, L); |
| 52827 | } |
| 52828 | bool ByteCodeEmitter::emitStoreMemberPtr(SourceInfo L) { |
| 52829 | return emitOp<>(OP_StoreMemberPtr, L); |
| 52830 | } |
| 52831 | bool ByteCodeEmitter::emitStoreFloat(SourceInfo L) { |
| 52832 | return emitOp<>(OP_StoreFloat, L); |
| 52833 | } |
| 52834 | bool ByteCodeEmitter::emitStoreReflect(SourceInfo L) { |
| 52835 | return emitOp<>(OP_StoreReflect, L); |
| 52836 | } |
| 52837 | #endif |
| 52838 | #ifdef GET_EVAL_IMPL |
| 52839 | bool EvalEmitter::emitStoreSint8(SourceInfo L) { |
| 52840 | if (!isActive()) return true; |
| 52841 | CurrentSource = L; |
| 52842 | return Store<PT_Sint8>(S, CodePtr()); |
| 52843 | } |
| 52844 | bool EvalEmitter::emitStoreUint8(SourceInfo L) { |
| 52845 | if (!isActive()) return true; |
| 52846 | CurrentSource = L; |
| 52847 | return Store<PT_Uint8>(S, CodePtr()); |
| 52848 | } |
| 52849 | bool EvalEmitter::emitStoreSint16(SourceInfo L) { |
| 52850 | if (!isActive()) return true; |
| 52851 | CurrentSource = L; |
| 52852 | return Store<PT_Sint16>(S, CodePtr()); |
| 52853 | } |
| 52854 | bool EvalEmitter::emitStoreUint16(SourceInfo L) { |
| 52855 | if (!isActive()) return true; |
| 52856 | CurrentSource = L; |
| 52857 | return Store<PT_Uint16>(S, CodePtr()); |
| 52858 | } |
| 52859 | bool EvalEmitter::emitStoreSint32(SourceInfo L) { |
| 52860 | if (!isActive()) return true; |
| 52861 | CurrentSource = L; |
| 52862 | return Store<PT_Sint32>(S, CodePtr()); |
| 52863 | } |
| 52864 | bool EvalEmitter::emitStoreUint32(SourceInfo L) { |
| 52865 | if (!isActive()) return true; |
| 52866 | CurrentSource = L; |
| 52867 | return Store<PT_Uint32>(S, CodePtr()); |
| 52868 | } |
| 52869 | bool EvalEmitter::emitStoreSint64(SourceInfo L) { |
| 52870 | if (!isActive()) return true; |
| 52871 | CurrentSource = L; |
| 52872 | return Store<PT_Sint64>(S, CodePtr()); |
| 52873 | } |
| 52874 | bool EvalEmitter::emitStoreUint64(SourceInfo L) { |
| 52875 | if (!isActive()) return true; |
| 52876 | CurrentSource = L; |
| 52877 | return Store<PT_Uint64>(S, CodePtr()); |
| 52878 | } |
| 52879 | bool EvalEmitter::emitStoreIntAP(SourceInfo L) { |
| 52880 | if (!isActive()) return true; |
| 52881 | CurrentSource = L; |
| 52882 | return Store<PT_IntAP>(S, CodePtr()); |
| 52883 | } |
| 52884 | bool EvalEmitter::emitStoreIntAPS(SourceInfo L) { |
| 52885 | if (!isActive()) return true; |
| 52886 | CurrentSource = L; |
| 52887 | return Store<PT_IntAPS>(S, CodePtr()); |
| 52888 | } |
| 52889 | bool EvalEmitter::emitStoreBool(SourceInfo L) { |
| 52890 | if (!isActive()) return true; |
| 52891 | CurrentSource = L; |
| 52892 | return Store<PT_Bool>(S, CodePtr()); |
| 52893 | } |
| 52894 | bool EvalEmitter::emitStoreFixedPoint(SourceInfo L) { |
| 52895 | if (!isActive()) return true; |
| 52896 | CurrentSource = L; |
| 52897 | return Store<PT_FixedPoint>(S, CodePtr()); |
| 52898 | } |
| 52899 | bool EvalEmitter::emitStorePtr(SourceInfo L) { |
| 52900 | if (!isActive()) return true; |
| 52901 | CurrentSource = L; |
| 52902 | return Store<PT_Ptr>(S, CodePtr()); |
| 52903 | } |
| 52904 | bool EvalEmitter::emitStoreMemberPtr(SourceInfo L) { |
| 52905 | if (!isActive()) return true; |
| 52906 | CurrentSource = L; |
| 52907 | return Store<PT_MemberPtr>(S, CodePtr()); |
| 52908 | } |
| 52909 | bool EvalEmitter::emitStoreFloat(SourceInfo L) { |
| 52910 | if (!isActive()) return true; |
| 52911 | CurrentSource = L; |
| 52912 | return Store<PT_Float>(S, CodePtr()); |
| 52913 | } |
| 52914 | bool EvalEmitter::emitStoreReflect(SourceInfo L) { |
| 52915 | if (!isActive()) return true; |
| 52916 | CurrentSource = L; |
| 52917 | return Store<PT_Reflect>(S, CodePtr()); |
| 52918 | } |
| 52919 | #endif |
| 52920 | #ifdef GET_OPCODE_NAMES |
| 52921 | OP_StoreActivateSint8, |
| 52922 | OP_StoreActivateUint8, |
| 52923 | OP_StoreActivateSint16, |
| 52924 | OP_StoreActivateUint16, |
| 52925 | OP_StoreActivateSint32, |
| 52926 | OP_StoreActivateUint32, |
| 52927 | OP_StoreActivateSint64, |
| 52928 | OP_StoreActivateUint64, |
| 52929 | OP_StoreActivateIntAP, |
| 52930 | OP_StoreActivateIntAPS, |
| 52931 | OP_StoreActivateBool, |
| 52932 | OP_StoreActivateFixedPoint, |
| 52933 | OP_StoreActivatePtr, |
| 52934 | OP_StoreActivateMemberPtr, |
| 52935 | OP_StoreActivateFloat, |
| 52936 | OP_StoreActivateReflect, |
| 52937 | #endif |
| 52938 | #ifdef GET_INTERPFN_LIST |
| 52939 | &Interp_StoreActivateSint8, |
| 52940 | &Interp_StoreActivateUint8, |
| 52941 | &Interp_StoreActivateSint16, |
| 52942 | &Interp_StoreActivateUint16, |
| 52943 | &Interp_StoreActivateSint32, |
| 52944 | &Interp_StoreActivateUint32, |
| 52945 | &Interp_StoreActivateSint64, |
| 52946 | &Interp_StoreActivateUint64, |
| 52947 | &Interp_StoreActivateIntAP, |
| 52948 | &Interp_StoreActivateIntAPS, |
| 52949 | &Interp_StoreActivateBool, |
| 52950 | &Interp_StoreActivateFixedPoint, |
| 52951 | &Interp_StoreActivatePtr, |
| 52952 | &Interp_StoreActivateMemberPtr, |
| 52953 | &Interp_StoreActivateFloat, |
| 52954 | &Interp_StoreActivateReflect, |
| 52955 | #endif |
| 52956 | #ifdef GET_INTERPFN_DISPATCHERS |
| 52957 | PRESERVE_NONE |
| 52958 | static bool Interp_StoreActivateSint8(InterpState &S) { |
| 52959 | if (!StoreActivate<PT_Sint8>(S, S.PC)) return false; |
| 52960 | #if USE_TAILCALLS |
| 52961 | MUSTTAIL return InterpNext(S); |
| 52962 | #else |
| 52963 | return true; |
| 52964 | #endif |
| 52965 | } |
| 52966 | PRESERVE_NONE |
| 52967 | static bool Interp_StoreActivateUint8(InterpState &S) { |
| 52968 | if (!StoreActivate<PT_Uint8>(S, S.PC)) return false; |
| 52969 | #if USE_TAILCALLS |
| 52970 | MUSTTAIL return InterpNext(S); |
| 52971 | #else |
| 52972 | return true; |
| 52973 | #endif |
| 52974 | } |
| 52975 | PRESERVE_NONE |
| 52976 | static bool Interp_StoreActivateSint16(InterpState &S) { |
| 52977 | if (!StoreActivate<PT_Sint16>(S, S.PC)) return false; |
| 52978 | #if USE_TAILCALLS |
| 52979 | MUSTTAIL return InterpNext(S); |
| 52980 | #else |
| 52981 | return true; |
| 52982 | #endif |
| 52983 | } |
| 52984 | PRESERVE_NONE |
| 52985 | static bool Interp_StoreActivateUint16(InterpState &S) { |
| 52986 | if (!StoreActivate<PT_Uint16>(S, S.PC)) return false; |
| 52987 | #if USE_TAILCALLS |
| 52988 | MUSTTAIL return InterpNext(S); |
| 52989 | #else |
| 52990 | return true; |
| 52991 | #endif |
| 52992 | } |
| 52993 | PRESERVE_NONE |
| 52994 | static bool Interp_StoreActivateSint32(InterpState &S) { |
| 52995 | if (!StoreActivate<PT_Sint32>(S, S.PC)) return false; |
| 52996 | #if USE_TAILCALLS |
| 52997 | MUSTTAIL return InterpNext(S); |
| 52998 | #else |
| 52999 | return true; |
| 53000 | #endif |
| 53001 | } |
| 53002 | PRESERVE_NONE |
| 53003 | static bool Interp_StoreActivateUint32(InterpState &S) { |
| 53004 | if (!StoreActivate<PT_Uint32>(S, S.PC)) return false; |
| 53005 | #if USE_TAILCALLS |
| 53006 | MUSTTAIL return InterpNext(S); |
| 53007 | #else |
| 53008 | return true; |
| 53009 | #endif |
| 53010 | } |
| 53011 | PRESERVE_NONE |
| 53012 | static bool Interp_StoreActivateSint64(InterpState &S) { |
| 53013 | if (!StoreActivate<PT_Sint64>(S, S.PC)) return false; |
| 53014 | #if USE_TAILCALLS |
| 53015 | MUSTTAIL return InterpNext(S); |
| 53016 | #else |
| 53017 | return true; |
| 53018 | #endif |
| 53019 | } |
| 53020 | PRESERVE_NONE |
| 53021 | static bool Interp_StoreActivateUint64(InterpState &S) { |
| 53022 | if (!StoreActivate<PT_Uint64>(S, S.PC)) return false; |
| 53023 | #if USE_TAILCALLS |
| 53024 | MUSTTAIL return InterpNext(S); |
| 53025 | #else |
| 53026 | return true; |
| 53027 | #endif |
| 53028 | } |
| 53029 | PRESERVE_NONE |
| 53030 | static bool Interp_StoreActivateIntAP(InterpState &S) { |
| 53031 | if (!StoreActivate<PT_IntAP>(S, S.PC)) return false; |
| 53032 | #if USE_TAILCALLS |
| 53033 | MUSTTAIL return InterpNext(S); |
| 53034 | #else |
| 53035 | return true; |
| 53036 | #endif |
| 53037 | } |
| 53038 | PRESERVE_NONE |
| 53039 | static bool Interp_StoreActivateIntAPS(InterpState &S) { |
| 53040 | if (!StoreActivate<PT_IntAPS>(S, S.PC)) return false; |
| 53041 | #if USE_TAILCALLS |
| 53042 | MUSTTAIL return InterpNext(S); |
| 53043 | #else |
| 53044 | return true; |
| 53045 | #endif |
| 53046 | } |
| 53047 | PRESERVE_NONE |
| 53048 | static bool Interp_StoreActivateBool(InterpState &S) { |
| 53049 | if (!StoreActivate<PT_Bool>(S, S.PC)) return false; |
| 53050 | #if USE_TAILCALLS |
| 53051 | MUSTTAIL return InterpNext(S); |
| 53052 | #else |
| 53053 | return true; |
| 53054 | #endif |
| 53055 | } |
| 53056 | PRESERVE_NONE |
| 53057 | static bool Interp_StoreActivateFixedPoint(InterpState &S) { |
| 53058 | if (!StoreActivate<PT_FixedPoint>(S, S.PC)) return false; |
| 53059 | #if USE_TAILCALLS |
| 53060 | MUSTTAIL return InterpNext(S); |
| 53061 | #else |
| 53062 | return true; |
| 53063 | #endif |
| 53064 | } |
| 53065 | PRESERVE_NONE |
| 53066 | static bool Interp_StoreActivatePtr(InterpState &S) { |
| 53067 | if (!StoreActivate<PT_Ptr>(S, S.PC)) return false; |
| 53068 | #if USE_TAILCALLS |
| 53069 | MUSTTAIL return InterpNext(S); |
| 53070 | #else |
| 53071 | return true; |
| 53072 | #endif |
| 53073 | } |
| 53074 | PRESERVE_NONE |
| 53075 | static bool Interp_StoreActivateMemberPtr(InterpState &S) { |
| 53076 | if (!StoreActivate<PT_MemberPtr>(S, S.PC)) return false; |
| 53077 | #if USE_TAILCALLS |
| 53078 | MUSTTAIL return InterpNext(S); |
| 53079 | #else |
| 53080 | return true; |
| 53081 | #endif |
| 53082 | } |
| 53083 | PRESERVE_NONE |
| 53084 | static bool Interp_StoreActivateFloat(InterpState &S) { |
| 53085 | if (!StoreActivate<PT_Float>(S, S.PC)) return false; |
| 53086 | #if USE_TAILCALLS |
| 53087 | MUSTTAIL return InterpNext(S); |
| 53088 | #else |
| 53089 | return true; |
| 53090 | #endif |
| 53091 | } |
| 53092 | PRESERVE_NONE |
| 53093 | static bool Interp_StoreActivateReflect(InterpState &S) { |
| 53094 | if (!StoreActivate<PT_Reflect>(S, S.PC)) return false; |
| 53095 | #if USE_TAILCALLS |
| 53096 | MUSTTAIL return InterpNext(S); |
| 53097 | #else |
| 53098 | return true; |
| 53099 | #endif |
| 53100 | } |
| 53101 | #endif |
| 53102 | #ifdef GET_DISASM |
| 53103 | case OP_StoreActivateSint8: |
| 53104 | Text.Op = PrintName("StoreActivateSint8" ); |
| 53105 | break; |
| 53106 | case OP_StoreActivateUint8: |
| 53107 | Text.Op = PrintName("StoreActivateUint8" ); |
| 53108 | break; |
| 53109 | case OP_StoreActivateSint16: |
| 53110 | Text.Op = PrintName("StoreActivateSint16" ); |
| 53111 | break; |
| 53112 | case OP_StoreActivateUint16: |
| 53113 | Text.Op = PrintName("StoreActivateUint16" ); |
| 53114 | break; |
| 53115 | case OP_StoreActivateSint32: |
| 53116 | Text.Op = PrintName("StoreActivateSint32" ); |
| 53117 | break; |
| 53118 | case OP_StoreActivateUint32: |
| 53119 | Text.Op = PrintName("StoreActivateUint32" ); |
| 53120 | break; |
| 53121 | case OP_StoreActivateSint64: |
| 53122 | Text.Op = PrintName("StoreActivateSint64" ); |
| 53123 | break; |
| 53124 | case OP_StoreActivateUint64: |
| 53125 | Text.Op = PrintName("StoreActivateUint64" ); |
| 53126 | break; |
| 53127 | case OP_StoreActivateIntAP: |
| 53128 | Text.Op = PrintName("StoreActivateIntAP" ); |
| 53129 | break; |
| 53130 | case OP_StoreActivateIntAPS: |
| 53131 | Text.Op = PrintName("StoreActivateIntAPS" ); |
| 53132 | break; |
| 53133 | case OP_StoreActivateBool: |
| 53134 | Text.Op = PrintName("StoreActivateBool" ); |
| 53135 | break; |
| 53136 | case OP_StoreActivateFixedPoint: |
| 53137 | Text.Op = PrintName("StoreActivateFixedPoint" ); |
| 53138 | break; |
| 53139 | case OP_StoreActivatePtr: |
| 53140 | Text.Op = PrintName("StoreActivatePtr" ); |
| 53141 | break; |
| 53142 | case OP_StoreActivateMemberPtr: |
| 53143 | Text.Op = PrintName("StoreActivateMemberPtr" ); |
| 53144 | break; |
| 53145 | case OP_StoreActivateFloat: |
| 53146 | Text.Op = PrintName("StoreActivateFloat" ); |
| 53147 | break; |
| 53148 | case OP_StoreActivateReflect: |
| 53149 | Text.Op = PrintName("StoreActivateReflect" ); |
| 53150 | break; |
| 53151 | #endif |
| 53152 | #if defined(GET_EVAL_PROTO) || defined(GET_LINK_PROTO) |
| 53153 | bool emitStoreActivateSint8(SourceInfo); |
| 53154 | bool emitStoreActivateUint8(SourceInfo); |
| 53155 | bool emitStoreActivateSint16(SourceInfo); |
| 53156 | bool emitStoreActivateUint16(SourceInfo); |
| 53157 | bool emitStoreActivateSint32(SourceInfo); |
| 53158 | bool emitStoreActivateUint32(SourceInfo); |
| 53159 | bool emitStoreActivateSint64(SourceInfo); |
| 53160 | bool emitStoreActivateUint64(SourceInfo); |
| 53161 | bool emitStoreActivateIntAP(SourceInfo); |
| 53162 | bool emitStoreActivateIntAPS(SourceInfo); |
| 53163 | bool emitStoreActivateBool(SourceInfo); |
| 53164 | bool emitStoreActivateFixedPoint(SourceInfo); |
| 53165 | bool emitStoreActivatePtr(SourceInfo); |
| 53166 | bool emitStoreActivateMemberPtr(SourceInfo); |
| 53167 | bool emitStoreActivateFloat(SourceInfo); |
| 53168 | bool emitStoreActivateReflect(SourceInfo); |
| 53169 | #endif |
| 53170 | #if defined(GET_EVAL_PROTO) || defined(GET_LINK_PROTO) |
| 53171 | [[nodiscard]] bool emitStoreActivate(PrimType, SourceInfo I); |
| 53172 | #endif |
| 53173 | #if defined(GET_EVAL_IMPL) || defined(GET_LINK_IMPL) |
| 53174 | bool |
| 53175 | #if defined(GET_EVAL_IMPL) |
| 53176 | EvalEmitter |
| 53177 | #else |
| 53178 | ByteCodeEmitter |
| 53179 | #endif |
| 53180 | ::emitStoreActivate(PrimType T0, SourceInfo I) { |
| 53181 | switch (T0) { |
| 53182 | case PT_Sint8: |
| 53183 | return emitStoreActivateSint8(I); |
| 53184 | case PT_Uint8: |
| 53185 | return emitStoreActivateUint8(I); |
| 53186 | case PT_Sint16: |
| 53187 | return emitStoreActivateSint16(I); |
| 53188 | case PT_Uint16: |
| 53189 | return emitStoreActivateUint16(I); |
| 53190 | case PT_Sint32: |
| 53191 | return emitStoreActivateSint32(I); |
| 53192 | case PT_Uint32: |
| 53193 | return emitStoreActivateUint32(I); |
| 53194 | case PT_Sint64: |
| 53195 | return emitStoreActivateSint64(I); |
| 53196 | case PT_Uint64: |
| 53197 | return emitStoreActivateUint64(I); |
| 53198 | case PT_IntAP: |
| 53199 | return emitStoreActivateIntAP(I); |
| 53200 | case PT_IntAPS: |
| 53201 | return emitStoreActivateIntAPS(I); |
| 53202 | case PT_Bool: |
| 53203 | return emitStoreActivateBool(I); |
| 53204 | case PT_FixedPoint: |
| 53205 | return emitStoreActivateFixedPoint(I); |
| 53206 | case PT_Ptr: |
| 53207 | return emitStoreActivatePtr(I); |
| 53208 | case PT_MemberPtr: |
| 53209 | return emitStoreActivateMemberPtr(I); |
| 53210 | case PT_Float: |
| 53211 | return emitStoreActivateFloat(I); |
| 53212 | case PT_Reflect: |
| 53213 | return emitStoreActivateReflect(I); |
| 53214 | } |
| 53215 | llvm_unreachable("invalid enum value" ); |
| 53216 | } |
| 53217 | #endif |
| 53218 | #ifdef GET_LINK_IMPL |
| 53219 | bool ByteCodeEmitter::emitStoreActivateSint8(SourceInfo L) { |
| 53220 | return emitOp<>(OP_StoreActivateSint8, L); |
| 53221 | } |
| 53222 | bool ByteCodeEmitter::emitStoreActivateUint8(SourceInfo L) { |
| 53223 | return emitOp<>(OP_StoreActivateUint8, L); |
| 53224 | } |
| 53225 | bool ByteCodeEmitter::emitStoreActivateSint16(SourceInfo L) { |
| 53226 | return emitOp<>(OP_StoreActivateSint16, L); |
| 53227 | } |
| 53228 | bool ByteCodeEmitter::emitStoreActivateUint16(SourceInfo L) { |
| 53229 | return emitOp<>(OP_StoreActivateUint16, L); |
| 53230 | } |
| 53231 | bool ByteCodeEmitter::emitStoreActivateSint32(SourceInfo L) { |
| 53232 | return emitOp<>(OP_StoreActivateSint32, L); |
| 53233 | } |
| 53234 | bool ByteCodeEmitter::emitStoreActivateUint32(SourceInfo L) { |
| 53235 | return emitOp<>(OP_StoreActivateUint32, L); |
| 53236 | } |
| 53237 | bool ByteCodeEmitter::emitStoreActivateSint64(SourceInfo L) { |
| 53238 | return emitOp<>(OP_StoreActivateSint64, L); |
| 53239 | } |
| 53240 | bool ByteCodeEmitter::emitStoreActivateUint64(SourceInfo L) { |
| 53241 | return emitOp<>(OP_StoreActivateUint64, L); |
| 53242 | } |
| 53243 | bool ByteCodeEmitter::emitStoreActivateIntAP(SourceInfo L) { |
| 53244 | return emitOp<>(OP_StoreActivateIntAP, L); |
| 53245 | } |
| 53246 | bool ByteCodeEmitter::emitStoreActivateIntAPS(SourceInfo L) { |
| 53247 | return emitOp<>(OP_StoreActivateIntAPS, L); |
| 53248 | } |
| 53249 | bool ByteCodeEmitter::emitStoreActivateBool(SourceInfo L) { |
| 53250 | return emitOp<>(OP_StoreActivateBool, L); |
| 53251 | } |
| 53252 | bool ByteCodeEmitter::emitStoreActivateFixedPoint(SourceInfo L) { |
| 53253 | return emitOp<>(OP_StoreActivateFixedPoint, L); |
| 53254 | } |
| 53255 | bool ByteCodeEmitter::emitStoreActivatePtr(SourceInfo L) { |
| 53256 | return emitOp<>(OP_StoreActivatePtr, L); |
| 53257 | } |
| 53258 | bool ByteCodeEmitter::emitStoreActivateMemberPtr(SourceInfo L) { |
| 53259 | return emitOp<>(OP_StoreActivateMemberPtr, L); |
| 53260 | } |
| 53261 | bool ByteCodeEmitter::emitStoreActivateFloat(SourceInfo L) { |
| 53262 | return emitOp<>(OP_StoreActivateFloat, L); |
| 53263 | } |
| 53264 | bool ByteCodeEmitter::emitStoreActivateReflect(SourceInfo L) { |
| 53265 | return emitOp<>(OP_StoreActivateReflect, L); |
| 53266 | } |
| 53267 | #endif |
| 53268 | #ifdef GET_EVAL_IMPL |
| 53269 | bool EvalEmitter::emitStoreActivateSint8(SourceInfo L) { |
| 53270 | if (!isActive()) return true; |
| 53271 | CurrentSource = L; |
| 53272 | return StoreActivate<PT_Sint8>(S, CodePtr()); |
| 53273 | } |
| 53274 | bool EvalEmitter::emitStoreActivateUint8(SourceInfo L) { |
| 53275 | if (!isActive()) return true; |
| 53276 | CurrentSource = L; |
| 53277 | return StoreActivate<PT_Uint8>(S, CodePtr()); |
| 53278 | } |
| 53279 | bool EvalEmitter::emitStoreActivateSint16(SourceInfo L) { |
| 53280 | if (!isActive()) return true; |
| 53281 | CurrentSource = L; |
| 53282 | return StoreActivate<PT_Sint16>(S, CodePtr()); |
| 53283 | } |
| 53284 | bool EvalEmitter::emitStoreActivateUint16(SourceInfo L) { |
| 53285 | if (!isActive()) return true; |
| 53286 | CurrentSource = L; |
| 53287 | return StoreActivate<PT_Uint16>(S, CodePtr()); |
| 53288 | } |
| 53289 | bool EvalEmitter::emitStoreActivateSint32(SourceInfo L) { |
| 53290 | if (!isActive()) return true; |
| 53291 | CurrentSource = L; |
| 53292 | return StoreActivate<PT_Sint32>(S, CodePtr()); |
| 53293 | } |
| 53294 | bool EvalEmitter::emitStoreActivateUint32(SourceInfo L) { |
| 53295 | if (!isActive()) return true; |
| 53296 | CurrentSource = L; |
| 53297 | return StoreActivate<PT_Uint32>(S, CodePtr()); |
| 53298 | } |
| 53299 | bool EvalEmitter::emitStoreActivateSint64(SourceInfo L) { |
| 53300 | if (!isActive()) return true; |
| 53301 | CurrentSource = L; |
| 53302 | return StoreActivate<PT_Sint64>(S, CodePtr()); |
| 53303 | } |
| 53304 | bool EvalEmitter::emitStoreActivateUint64(SourceInfo L) { |
| 53305 | if (!isActive()) return true; |
| 53306 | CurrentSource = L; |
| 53307 | return StoreActivate<PT_Uint64>(S, CodePtr()); |
| 53308 | } |
| 53309 | bool EvalEmitter::emitStoreActivateIntAP(SourceInfo L) { |
| 53310 | if (!isActive()) return true; |
| 53311 | CurrentSource = L; |
| 53312 | return StoreActivate<PT_IntAP>(S, CodePtr()); |
| 53313 | } |
| 53314 | bool EvalEmitter::emitStoreActivateIntAPS(SourceInfo L) { |
| 53315 | if (!isActive()) return true; |
| 53316 | CurrentSource = L; |
| 53317 | return StoreActivate<PT_IntAPS>(S, CodePtr()); |
| 53318 | } |
| 53319 | bool EvalEmitter::emitStoreActivateBool(SourceInfo L) { |
| 53320 | if (!isActive()) return true; |
| 53321 | CurrentSource = L; |
| 53322 | return StoreActivate<PT_Bool>(S, CodePtr()); |
| 53323 | } |
| 53324 | bool EvalEmitter::emitStoreActivateFixedPoint(SourceInfo L) { |
| 53325 | if (!isActive()) return true; |
| 53326 | CurrentSource = L; |
| 53327 | return StoreActivate<PT_FixedPoint>(S, CodePtr()); |
| 53328 | } |
| 53329 | bool EvalEmitter::emitStoreActivatePtr(SourceInfo L) { |
| 53330 | if (!isActive()) return true; |
| 53331 | CurrentSource = L; |
| 53332 | return StoreActivate<PT_Ptr>(S, CodePtr()); |
| 53333 | } |
| 53334 | bool EvalEmitter::emitStoreActivateMemberPtr(SourceInfo L) { |
| 53335 | if (!isActive()) return true; |
| 53336 | CurrentSource = L; |
| 53337 | return StoreActivate<PT_MemberPtr>(S, CodePtr()); |
| 53338 | } |
| 53339 | bool EvalEmitter::emitStoreActivateFloat(SourceInfo L) { |
| 53340 | if (!isActive()) return true; |
| 53341 | CurrentSource = L; |
| 53342 | return StoreActivate<PT_Float>(S, CodePtr()); |
| 53343 | } |
| 53344 | bool EvalEmitter::emitStoreActivateReflect(SourceInfo L) { |
| 53345 | if (!isActive()) return true; |
| 53346 | CurrentSource = L; |
| 53347 | return StoreActivate<PT_Reflect>(S, CodePtr()); |
| 53348 | } |
| 53349 | #endif |
| 53350 | #ifdef GET_OPCODE_NAMES |
| 53351 | OP_StoreActivatePopSint8, |
| 53352 | OP_StoreActivatePopUint8, |
| 53353 | OP_StoreActivatePopSint16, |
| 53354 | OP_StoreActivatePopUint16, |
| 53355 | OP_StoreActivatePopSint32, |
| 53356 | OP_StoreActivatePopUint32, |
| 53357 | OP_StoreActivatePopSint64, |
| 53358 | OP_StoreActivatePopUint64, |
| 53359 | OP_StoreActivatePopIntAP, |
| 53360 | OP_StoreActivatePopIntAPS, |
| 53361 | OP_StoreActivatePopBool, |
| 53362 | OP_StoreActivatePopFixedPoint, |
| 53363 | OP_StoreActivatePopPtr, |
| 53364 | OP_StoreActivatePopMemberPtr, |
| 53365 | OP_StoreActivatePopFloat, |
| 53366 | OP_StoreActivatePopReflect, |
| 53367 | #endif |
| 53368 | #ifdef GET_INTERPFN_LIST |
| 53369 | &Interp_StoreActivatePopSint8, |
| 53370 | &Interp_StoreActivatePopUint8, |
| 53371 | &Interp_StoreActivatePopSint16, |
| 53372 | &Interp_StoreActivatePopUint16, |
| 53373 | &Interp_StoreActivatePopSint32, |
| 53374 | &Interp_StoreActivatePopUint32, |
| 53375 | &Interp_StoreActivatePopSint64, |
| 53376 | &Interp_StoreActivatePopUint64, |
| 53377 | &Interp_StoreActivatePopIntAP, |
| 53378 | &Interp_StoreActivatePopIntAPS, |
| 53379 | &Interp_StoreActivatePopBool, |
| 53380 | &Interp_StoreActivatePopFixedPoint, |
| 53381 | &Interp_StoreActivatePopPtr, |
| 53382 | &Interp_StoreActivatePopMemberPtr, |
| 53383 | &Interp_StoreActivatePopFloat, |
| 53384 | &Interp_StoreActivatePopReflect, |
| 53385 | #endif |
| 53386 | #ifdef GET_INTERPFN_DISPATCHERS |
| 53387 | PRESERVE_NONE |
| 53388 | static bool Interp_StoreActivatePopSint8(InterpState &S) { |
| 53389 | if (!StoreActivatePop<PT_Sint8>(S, S.PC)) return false; |
| 53390 | #if USE_TAILCALLS |
| 53391 | MUSTTAIL return InterpNext(S); |
| 53392 | #else |
| 53393 | return true; |
| 53394 | #endif |
| 53395 | } |
| 53396 | PRESERVE_NONE |
| 53397 | static bool Interp_StoreActivatePopUint8(InterpState &S) { |
| 53398 | if (!StoreActivatePop<PT_Uint8>(S, S.PC)) return false; |
| 53399 | #if USE_TAILCALLS |
| 53400 | MUSTTAIL return InterpNext(S); |
| 53401 | #else |
| 53402 | return true; |
| 53403 | #endif |
| 53404 | } |
| 53405 | PRESERVE_NONE |
| 53406 | static bool Interp_StoreActivatePopSint16(InterpState &S) { |
| 53407 | if (!StoreActivatePop<PT_Sint16>(S, S.PC)) return false; |
| 53408 | #if USE_TAILCALLS |
| 53409 | MUSTTAIL return InterpNext(S); |
| 53410 | #else |
| 53411 | return true; |
| 53412 | #endif |
| 53413 | } |
| 53414 | PRESERVE_NONE |
| 53415 | static bool Interp_StoreActivatePopUint16(InterpState &S) { |
| 53416 | if (!StoreActivatePop<PT_Uint16>(S, S.PC)) return false; |
| 53417 | #if USE_TAILCALLS |
| 53418 | MUSTTAIL return InterpNext(S); |
| 53419 | #else |
| 53420 | return true; |
| 53421 | #endif |
| 53422 | } |
| 53423 | PRESERVE_NONE |
| 53424 | static bool Interp_StoreActivatePopSint32(InterpState &S) { |
| 53425 | if (!StoreActivatePop<PT_Sint32>(S, S.PC)) return false; |
| 53426 | #if USE_TAILCALLS |
| 53427 | MUSTTAIL return InterpNext(S); |
| 53428 | #else |
| 53429 | return true; |
| 53430 | #endif |
| 53431 | } |
| 53432 | PRESERVE_NONE |
| 53433 | static bool Interp_StoreActivatePopUint32(InterpState &S) { |
| 53434 | if (!StoreActivatePop<PT_Uint32>(S, S.PC)) return false; |
| 53435 | #if USE_TAILCALLS |
| 53436 | MUSTTAIL return InterpNext(S); |
| 53437 | #else |
| 53438 | return true; |
| 53439 | #endif |
| 53440 | } |
| 53441 | PRESERVE_NONE |
| 53442 | static bool Interp_StoreActivatePopSint64(InterpState &S) { |
| 53443 | if (!StoreActivatePop<PT_Sint64>(S, S.PC)) return false; |
| 53444 | #if USE_TAILCALLS |
| 53445 | MUSTTAIL return InterpNext(S); |
| 53446 | #else |
| 53447 | return true; |
| 53448 | #endif |
| 53449 | } |
| 53450 | PRESERVE_NONE |
| 53451 | static bool Interp_StoreActivatePopUint64(InterpState &S) { |
| 53452 | if (!StoreActivatePop<PT_Uint64>(S, S.PC)) return false; |
| 53453 | #if USE_TAILCALLS |
| 53454 | MUSTTAIL return InterpNext(S); |
| 53455 | #else |
| 53456 | return true; |
| 53457 | #endif |
| 53458 | } |
| 53459 | PRESERVE_NONE |
| 53460 | static bool Interp_StoreActivatePopIntAP(InterpState &S) { |
| 53461 | if (!StoreActivatePop<PT_IntAP>(S, S.PC)) return false; |
| 53462 | #if USE_TAILCALLS |
| 53463 | MUSTTAIL return InterpNext(S); |
| 53464 | #else |
| 53465 | return true; |
| 53466 | #endif |
| 53467 | } |
| 53468 | PRESERVE_NONE |
| 53469 | static bool Interp_StoreActivatePopIntAPS(InterpState &S) { |
| 53470 | if (!StoreActivatePop<PT_IntAPS>(S, S.PC)) return false; |
| 53471 | #if USE_TAILCALLS |
| 53472 | MUSTTAIL return InterpNext(S); |
| 53473 | #else |
| 53474 | return true; |
| 53475 | #endif |
| 53476 | } |
| 53477 | PRESERVE_NONE |
| 53478 | static bool Interp_StoreActivatePopBool(InterpState &S) { |
| 53479 | if (!StoreActivatePop<PT_Bool>(S, S.PC)) return false; |
| 53480 | #if USE_TAILCALLS |
| 53481 | MUSTTAIL return InterpNext(S); |
| 53482 | #else |
| 53483 | return true; |
| 53484 | #endif |
| 53485 | } |
| 53486 | PRESERVE_NONE |
| 53487 | static bool Interp_StoreActivatePopFixedPoint(InterpState &S) { |
| 53488 | if (!StoreActivatePop<PT_FixedPoint>(S, S.PC)) return false; |
| 53489 | #if USE_TAILCALLS |
| 53490 | MUSTTAIL return InterpNext(S); |
| 53491 | #else |
| 53492 | return true; |
| 53493 | #endif |
| 53494 | } |
| 53495 | PRESERVE_NONE |
| 53496 | static bool Interp_StoreActivatePopPtr(InterpState &S) { |
| 53497 | if (!StoreActivatePop<PT_Ptr>(S, S.PC)) return false; |
| 53498 | #if USE_TAILCALLS |
| 53499 | MUSTTAIL return InterpNext(S); |
| 53500 | #else |
| 53501 | return true; |
| 53502 | #endif |
| 53503 | } |
| 53504 | PRESERVE_NONE |
| 53505 | static bool Interp_StoreActivatePopMemberPtr(InterpState &S) { |
| 53506 | if (!StoreActivatePop<PT_MemberPtr>(S, S.PC)) return false; |
| 53507 | #if USE_TAILCALLS |
| 53508 | MUSTTAIL return InterpNext(S); |
| 53509 | #else |
| 53510 | return true; |
| 53511 | #endif |
| 53512 | } |
| 53513 | PRESERVE_NONE |
| 53514 | static bool Interp_StoreActivatePopFloat(InterpState &S) { |
| 53515 | if (!StoreActivatePop<PT_Float>(S, S.PC)) return false; |
| 53516 | #if USE_TAILCALLS |
| 53517 | MUSTTAIL return InterpNext(S); |
| 53518 | #else |
| 53519 | return true; |
| 53520 | #endif |
| 53521 | } |
| 53522 | PRESERVE_NONE |
| 53523 | static bool Interp_StoreActivatePopReflect(InterpState &S) { |
| 53524 | if (!StoreActivatePop<PT_Reflect>(S, S.PC)) return false; |
| 53525 | #if USE_TAILCALLS |
| 53526 | MUSTTAIL return InterpNext(S); |
| 53527 | #else |
| 53528 | return true; |
| 53529 | #endif |
| 53530 | } |
| 53531 | #endif |
| 53532 | #ifdef GET_DISASM |
| 53533 | case OP_StoreActivatePopSint8: |
| 53534 | Text.Op = PrintName("StoreActivatePopSint8" ); |
| 53535 | break; |
| 53536 | case OP_StoreActivatePopUint8: |
| 53537 | Text.Op = PrintName("StoreActivatePopUint8" ); |
| 53538 | break; |
| 53539 | case OP_StoreActivatePopSint16: |
| 53540 | Text.Op = PrintName("StoreActivatePopSint16" ); |
| 53541 | break; |
| 53542 | case OP_StoreActivatePopUint16: |
| 53543 | Text.Op = PrintName("StoreActivatePopUint16" ); |
| 53544 | break; |
| 53545 | case OP_StoreActivatePopSint32: |
| 53546 | Text.Op = PrintName("StoreActivatePopSint32" ); |
| 53547 | break; |
| 53548 | case OP_StoreActivatePopUint32: |
| 53549 | Text.Op = PrintName("StoreActivatePopUint32" ); |
| 53550 | break; |
| 53551 | case OP_StoreActivatePopSint64: |
| 53552 | Text.Op = PrintName("StoreActivatePopSint64" ); |
| 53553 | break; |
| 53554 | case OP_StoreActivatePopUint64: |
| 53555 | Text.Op = PrintName("StoreActivatePopUint64" ); |
| 53556 | break; |
| 53557 | case OP_StoreActivatePopIntAP: |
| 53558 | Text.Op = PrintName("StoreActivatePopIntAP" ); |
| 53559 | break; |
| 53560 | case OP_StoreActivatePopIntAPS: |
| 53561 | Text.Op = PrintName("StoreActivatePopIntAPS" ); |
| 53562 | break; |
| 53563 | case OP_StoreActivatePopBool: |
| 53564 | Text.Op = PrintName("StoreActivatePopBool" ); |
| 53565 | break; |
| 53566 | case OP_StoreActivatePopFixedPoint: |
| 53567 | Text.Op = PrintName("StoreActivatePopFixedPoint" ); |
| 53568 | break; |
| 53569 | case OP_StoreActivatePopPtr: |
| 53570 | Text.Op = PrintName("StoreActivatePopPtr" ); |
| 53571 | break; |
| 53572 | case OP_StoreActivatePopMemberPtr: |
| 53573 | Text.Op = PrintName("StoreActivatePopMemberPtr" ); |
| 53574 | break; |
| 53575 | case OP_StoreActivatePopFloat: |
| 53576 | Text.Op = PrintName("StoreActivatePopFloat" ); |
| 53577 | break; |
| 53578 | case OP_StoreActivatePopReflect: |
| 53579 | Text.Op = PrintName("StoreActivatePopReflect" ); |
| 53580 | break; |
| 53581 | #endif |
| 53582 | #if defined(GET_EVAL_PROTO) || defined(GET_LINK_PROTO) |
| 53583 | bool emitStoreActivatePopSint8(SourceInfo); |
| 53584 | bool emitStoreActivatePopUint8(SourceInfo); |
| 53585 | bool emitStoreActivatePopSint16(SourceInfo); |
| 53586 | bool emitStoreActivatePopUint16(SourceInfo); |
| 53587 | bool emitStoreActivatePopSint32(SourceInfo); |
| 53588 | bool emitStoreActivatePopUint32(SourceInfo); |
| 53589 | bool emitStoreActivatePopSint64(SourceInfo); |
| 53590 | bool emitStoreActivatePopUint64(SourceInfo); |
| 53591 | bool emitStoreActivatePopIntAP(SourceInfo); |
| 53592 | bool emitStoreActivatePopIntAPS(SourceInfo); |
| 53593 | bool emitStoreActivatePopBool(SourceInfo); |
| 53594 | bool emitStoreActivatePopFixedPoint(SourceInfo); |
| 53595 | bool emitStoreActivatePopPtr(SourceInfo); |
| 53596 | bool emitStoreActivatePopMemberPtr(SourceInfo); |
| 53597 | bool emitStoreActivatePopFloat(SourceInfo); |
| 53598 | bool emitStoreActivatePopReflect(SourceInfo); |
| 53599 | #endif |
| 53600 | #if defined(GET_EVAL_PROTO) || defined(GET_LINK_PROTO) |
| 53601 | [[nodiscard]] bool emitStoreActivatePop(PrimType, SourceInfo I); |
| 53602 | #endif |
| 53603 | #if defined(GET_EVAL_IMPL) || defined(GET_LINK_IMPL) |
| 53604 | bool |
| 53605 | #if defined(GET_EVAL_IMPL) |
| 53606 | EvalEmitter |
| 53607 | #else |
| 53608 | ByteCodeEmitter |
| 53609 | #endif |
| 53610 | ::emitStoreActivatePop(PrimType T0, SourceInfo I) { |
| 53611 | switch (T0) { |
| 53612 | case PT_Sint8: |
| 53613 | return emitStoreActivatePopSint8(I); |
| 53614 | case PT_Uint8: |
| 53615 | return emitStoreActivatePopUint8(I); |
| 53616 | case PT_Sint16: |
| 53617 | return emitStoreActivatePopSint16(I); |
| 53618 | case PT_Uint16: |
| 53619 | return emitStoreActivatePopUint16(I); |
| 53620 | case PT_Sint32: |
| 53621 | return emitStoreActivatePopSint32(I); |
| 53622 | case PT_Uint32: |
| 53623 | return emitStoreActivatePopUint32(I); |
| 53624 | case PT_Sint64: |
| 53625 | return emitStoreActivatePopSint64(I); |
| 53626 | case PT_Uint64: |
| 53627 | return emitStoreActivatePopUint64(I); |
| 53628 | case PT_IntAP: |
| 53629 | return emitStoreActivatePopIntAP(I); |
| 53630 | case PT_IntAPS: |
| 53631 | return emitStoreActivatePopIntAPS(I); |
| 53632 | case PT_Bool: |
| 53633 | return emitStoreActivatePopBool(I); |
| 53634 | case PT_FixedPoint: |
| 53635 | return emitStoreActivatePopFixedPoint(I); |
| 53636 | case PT_Ptr: |
| 53637 | return emitStoreActivatePopPtr(I); |
| 53638 | case PT_MemberPtr: |
| 53639 | return emitStoreActivatePopMemberPtr(I); |
| 53640 | case PT_Float: |
| 53641 | return emitStoreActivatePopFloat(I); |
| 53642 | case PT_Reflect: |
| 53643 | return emitStoreActivatePopReflect(I); |
| 53644 | } |
| 53645 | llvm_unreachable("invalid enum value" ); |
| 53646 | } |
| 53647 | #endif |
| 53648 | #ifdef GET_LINK_IMPL |
| 53649 | bool ByteCodeEmitter::emitStoreActivatePopSint8(SourceInfo L) { |
| 53650 | return emitOp<>(OP_StoreActivatePopSint8, L); |
| 53651 | } |
| 53652 | bool ByteCodeEmitter::emitStoreActivatePopUint8(SourceInfo L) { |
| 53653 | return emitOp<>(OP_StoreActivatePopUint8, L); |
| 53654 | } |
| 53655 | bool ByteCodeEmitter::emitStoreActivatePopSint16(SourceInfo L) { |
| 53656 | return emitOp<>(OP_StoreActivatePopSint16, L); |
| 53657 | } |
| 53658 | bool ByteCodeEmitter::emitStoreActivatePopUint16(SourceInfo L) { |
| 53659 | return emitOp<>(OP_StoreActivatePopUint16, L); |
| 53660 | } |
| 53661 | bool ByteCodeEmitter::emitStoreActivatePopSint32(SourceInfo L) { |
| 53662 | return emitOp<>(OP_StoreActivatePopSint32, L); |
| 53663 | } |
| 53664 | bool ByteCodeEmitter::emitStoreActivatePopUint32(SourceInfo L) { |
| 53665 | return emitOp<>(OP_StoreActivatePopUint32, L); |
| 53666 | } |
| 53667 | bool ByteCodeEmitter::emitStoreActivatePopSint64(SourceInfo L) { |
| 53668 | return emitOp<>(OP_StoreActivatePopSint64, L); |
| 53669 | } |
| 53670 | bool ByteCodeEmitter::emitStoreActivatePopUint64(SourceInfo L) { |
| 53671 | return emitOp<>(OP_StoreActivatePopUint64, L); |
| 53672 | } |
| 53673 | bool ByteCodeEmitter::emitStoreActivatePopIntAP(SourceInfo L) { |
| 53674 | return emitOp<>(OP_StoreActivatePopIntAP, L); |
| 53675 | } |
| 53676 | bool ByteCodeEmitter::emitStoreActivatePopIntAPS(SourceInfo L) { |
| 53677 | return emitOp<>(OP_StoreActivatePopIntAPS, L); |
| 53678 | } |
| 53679 | bool ByteCodeEmitter::emitStoreActivatePopBool(SourceInfo L) { |
| 53680 | return emitOp<>(OP_StoreActivatePopBool, L); |
| 53681 | } |
| 53682 | bool ByteCodeEmitter::emitStoreActivatePopFixedPoint(SourceInfo L) { |
| 53683 | return emitOp<>(OP_StoreActivatePopFixedPoint, L); |
| 53684 | } |
| 53685 | bool ByteCodeEmitter::emitStoreActivatePopPtr(SourceInfo L) { |
| 53686 | return emitOp<>(OP_StoreActivatePopPtr, L); |
| 53687 | } |
| 53688 | bool ByteCodeEmitter::emitStoreActivatePopMemberPtr(SourceInfo L) { |
| 53689 | return emitOp<>(OP_StoreActivatePopMemberPtr, L); |
| 53690 | } |
| 53691 | bool ByteCodeEmitter::emitStoreActivatePopFloat(SourceInfo L) { |
| 53692 | return emitOp<>(OP_StoreActivatePopFloat, L); |
| 53693 | } |
| 53694 | bool ByteCodeEmitter::emitStoreActivatePopReflect(SourceInfo L) { |
| 53695 | return emitOp<>(OP_StoreActivatePopReflect, L); |
| 53696 | } |
| 53697 | #endif |
| 53698 | #ifdef GET_EVAL_IMPL |
| 53699 | bool EvalEmitter::emitStoreActivatePopSint8(SourceInfo L) { |
| 53700 | if (!isActive()) return true; |
| 53701 | CurrentSource = L; |
| 53702 | return StoreActivatePop<PT_Sint8>(S, CodePtr()); |
| 53703 | } |
| 53704 | bool EvalEmitter::emitStoreActivatePopUint8(SourceInfo L) { |
| 53705 | if (!isActive()) return true; |
| 53706 | CurrentSource = L; |
| 53707 | return StoreActivatePop<PT_Uint8>(S, CodePtr()); |
| 53708 | } |
| 53709 | bool EvalEmitter::emitStoreActivatePopSint16(SourceInfo L) { |
| 53710 | if (!isActive()) return true; |
| 53711 | CurrentSource = L; |
| 53712 | return StoreActivatePop<PT_Sint16>(S, CodePtr()); |
| 53713 | } |
| 53714 | bool EvalEmitter::emitStoreActivatePopUint16(SourceInfo L) { |
| 53715 | if (!isActive()) return true; |
| 53716 | CurrentSource = L; |
| 53717 | return StoreActivatePop<PT_Uint16>(S, CodePtr()); |
| 53718 | } |
| 53719 | bool EvalEmitter::emitStoreActivatePopSint32(SourceInfo L) { |
| 53720 | if (!isActive()) return true; |
| 53721 | CurrentSource = L; |
| 53722 | return StoreActivatePop<PT_Sint32>(S, CodePtr()); |
| 53723 | } |
| 53724 | bool EvalEmitter::emitStoreActivatePopUint32(SourceInfo L) { |
| 53725 | if (!isActive()) return true; |
| 53726 | CurrentSource = L; |
| 53727 | return StoreActivatePop<PT_Uint32>(S, CodePtr()); |
| 53728 | } |
| 53729 | bool EvalEmitter::emitStoreActivatePopSint64(SourceInfo L) { |
| 53730 | if (!isActive()) return true; |
| 53731 | CurrentSource = L; |
| 53732 | return StoreActivatePop<PT_Sint64>(S, CodePtr()); |
| 53733 | } |
| 53734 | bool EvalEmitter::emitStoreActivatePopUint64(SourceInfo L) { |
| 53735 | if (!isActive()) return true; |
| 53736 | CurrentSource = L; |
| 53737 | return StoreActivatePop<PT_Uint64>(S, CodePtr()); |
| 53738 | } |
| 53739 | bool EvalEmitter::emitStoreActivatePopIntAP(SourceInfo L) { |
| 53740 | if (!isActive()) return true; |
| 53741 | CurrentSource = L; |
| 53742 | return StoreActivatePop<PT_IntAP>(S, CodePtr()); |
| 53743 | } |
| 53744 | bool EvalEmitter::emitStoreActivatePopIntAPS(SourceInfo L) { |
| 53745 | if (!isActive()) return true; |
| 53746 | CurrentSource = L; |
| 53747 | return StoreActivatePop<PT_IntAPS>(S, CodePtr()); |
| 53748 | } |
| 53749 | bool EvalEmitter::emitStoreActivatePopBool(SourceInfo L) { |
| 53750 | if (!isActive()) return true; |
| 53751 | CurrentSource = L; |
| 53752 | return StoreActivatePop<PT_Bool>(S, CodePtr()); |
| 53753 | } |
| 53754 | bool EvalEmitter::emitStoreActivatePopFixedPoint(SourceInfo L) { |
| 53755 | if (!isActive()) return true; |
| 53756 | CurrentSource = L; |
| 53757 | return StoreActivatePop<PT_FixedPoint>(S, CodePtr()); |
| 53758 | } |
| 53759 | bool EvalEmitter::emitStoreActivatePopPtr(SourceInfo L) { |
| 53760 | if (!isActive()) return true; |
| 53761 | CurrentSource = L; |
| 53762 | return StoreActivatePop<PT_Ptr>(S, CodePtr()); |
| 53763 | } |
| 53764 | bool EvalEmitter::emitStoreActivatePopMemberPtr(SourceInfo L) { |
| 53765 | if (!isActive()) return true; |
| 53766 | CurrentSource = L; |
| 53767 | return StoreActivatePop<PT_MemberPtr>(S, CodePtr()); |
| 53768 | } |
| 53769 | bool EvalEmitter::emitStoreActivatePopFloat(SourceInfo L) { |
| 53770 | if (!isActive()) return true; |
| 53771 | CurrentSource = L; |
| 53772 | return StoreActivatePop<PT_Float>(S, CodePtr()); |
| 53773 | } |
| 53774 | bool EvalEmitter::emitStoreActivatePopReflect(SourceInfo L) { |
| 53775 | if (!isActive()) return true; |
| 53776 | CurrentSource = L; |
| 53777 | return StoreActivatePop<PT_Reflect>(S, CodePtr()); |
| 53778 | } |
| 53779 | #endif |
| 53780 | #ifdef GET_OPCODE_NAMES |
| 53781 | OP_StoreBitFieldSint8, |
| 53782 | OP_StoreBitFieldUint8, |
| 53783 | OP_StoreBitFieldSint16, |
| 53784 | OP_StoreBitFieldUint16, |
| 53785 | OP_StoreBitFieldSint32, |
| 53786 | OP_StoreBitFieldUint32, |
| 53787 | OP_StoreBitFieldSint64, |
| 53788 | OP_StoreBitFieldUint64, |
| 53789 | OP_StoreBitFieldIntAP, |
| 53790 | OP_StoreBitFieldIntAPS, |
| 53791 | OP_StoreBitFieldBool, |
| 53792 | OP_StoreBitFieldFixedPoint, |
| 53793 | #endif |
| 53794 | #ifdef GET_INTERPFN_LIST |
| 53795 | &Interp_StoreBitFieldSint8, |
| 53796 | &Interp_StoreBitFieldUint8, |
| 53797 | &Interp_StoreBitFieldSint16, |
| 53798 | &Interp_StoreBitFieldUint16, |
| 53799 | &Interp_StoreBitFieldSint32, |
| 53800 | &Interp_StoreBitFieldUint32, |
| 53801 | &Interp_StoreBitFieldSint64, |
| 53802 | &Interp_StoreBitFieldUint64, |
| 53803 | &Interp_StoreBitFieldIntAP, |
| 53804 | &Interp_StoreBitFieldIntAPS, |
| 53805 | &Interp_StoreBitFieldBool, |
| 53806 | &Interp_StoreBitFieldFixedPoint, |
| 53807 | #endif |
| 53808 | #ifdef GET_INTERPFN_DISPATCHERS |
| 53809 | PRESERVE_NONE |
| 53810 | static bool Interp_StoreBitFieldSint8(InterpState &S) { |
| 53811 | if (!StoreBitField<PT_Sint8>(S, S.PC)) return false; |
| 53812 | #if USE_TAILCALLS |
| 53813 | MUSTTAIL return InterpNext(S); |
| 53814 | #else |
| 53815 | return true; |
| 53816 | #endif |
| 53817 | } |
| 53818 | PRESERVE_NONE |
| 53819 | static bool Interp_StoreBitFieldUint8(InterpState &S) { |
| 53820 | if (!StoreBitField<PT_Uint8>(S, S.PC)) return false; |
| 53821 | #if USE_TAILCALLS |
| 53822 | MUSTTAIL return InterpNext(S); |
| 53823 | #else |
| 53824 | return true; |
| 53825 | #endif |
| 53826 | } |
| 53827 | PRESERVE_NONE |
| 53828 | static bool Interp_StoreBitFieldSint16(InterpState &S) { |
| 53829 | if (!StoreBitField<PT_Sint16>(S, S.PC)) return false; |
| 53830 | #if USE_TAILCALLS |
| 53831 | MUSTTAIL return InterpNext(S); |
| 53832 | #else |
| 53833 | return true; |
| 53834 | #endif |
| 53835 | } |
| 53836 | PRESERVE_NONE |
| 53837 | static bool Interp_StoreBitFieldUint16(InterpState &S) { |
| 53838 | if (!StoreBitField<PT_Uint16>(S, S.PC)) return false; |
| 53839 | #if USE_TAILCALLS |
| 53840 | MUSTTAIL return InterpNext(S); |
| 53841 | #else |
| 53842 | return true; |
| 53843 | #endif |
| 53844 | } |
| 53845 | PRESERVE_NONE |
| 53846 | static bool Interp_StoreBitFieldSint32(InterpState &S) { |
| 53847 | if (!StoreBitField<PT_Sint32>(S, S.PC)) return false; |
| 53848 | #if USE_TAILCALLS |
| 53849 | MUSTTAIL return InterpNext(S); |
| 53850 | #else |
| 53851 | return true; |
| 53852 | #endif |
| 53853 | } |
| 53854 | PRESERVE_NONE |
| 53855 | static bool Interp_StoreBitFieldUint32(InterpState &S) { |
| 53856 | if (!StoreBitField<PT_Uint32>(S, S.PC)) return false; |
| 53857 | #if USE_TAILCALLS |
| 53858 | MUSTTAIL return InterpNext(S); |
| 53859 | #else |
| 53860 | return true; |
| 53861 | #endif |
| 53862 | } |
| 53863 | PRESERVE_NONE |
| 53864 | static bool Interp_StoreBitFieldSint64(InterpState &S) { |
| 53865 | if (!StoreBitField<PT_Sint64>(S, S.PC)) return false; |
| 53866 | #if USE_TAILCALLS |
| 53867 | MUSTTAIL return InterpNext(S); |
| 53868 | #else |
| 53869 | return true; |
| 53870 | #endif |
| 53871 | } |
| 53872 | PRESERVE_NONE |
| 53873 | static bool Interp_StoreBitFieldUint64(InterpState &S) { |
| 53874 | if (!StoreBitField<PT_Uint64>(S, S.PC)) return false; |
| 53875 | #if USE_TAILCALLS |
| 53876 | MUSTTAIL return InterpNext(S); |
| 53877 | #else |
| 53878 | return true; |
| 53879 | #endif |
| 53880 | } |
| 53881 | PRESERVE_NONE |
| 53882 | static bool Interp_StoreBitFieldIntAP(InterpState &S) { |
| 53883 | if (!StoreBitField<PT_IntAP>(S, S.PC)) return false; |
| 53884 | #if USE_TAILCALLS |
| 53885 | MUSTTAIL return InterpNext(S); |
| 53886 | #else |
| 53887 | return true; |
| 53888 | #endif |
| 53889 | } |
| 53890 | PRESERVE_NONE |
| 53891 | static bool Interp_StoreBitFieldIntAPS(InterpState &S) { |
| 53892 | if (!StoreBitField<PT_IntAPS>(S, S.PC)) return false; |
| 53893 | #if USE_TAILCALLS |
| 53894 | MUSTTAIL return InterpNext(S); |
| 53895 | #else |
| 53896 | return true; |
| 53897 | #endif |
| 53898 | } |
| 53899 | PRESERVE_NONE |
| 53900 | static bool Interp_StoreBitFieldBool(InterpState &S) { |
| 53901 | if (!StoreBitField<PT_Bool>(S, S.PC)) return false; |
| 53902 | #if USE_TAILCALLS |
| 53903 | MUSTTAIL return InterpNext(S); |
| 53904 | #else |
| 53905 | return true; |
| 53906 | #endif |
| 53907 | } |
| 53908 | PRESERVE_NONE |
| 53909 | static bool Interp_StoreBitFieldFixedPoint(InterpState &S) { |
| 53910 | if (!StoreBitField<PT_FixedPoint>(S, S.PC)) return false; |
| 53911 | #if USE_TAILCALLS |
| 53912 | MUSTTAIL return InterpNext(S); |
| 53913 | #else |
| 53914 | return true; |
| 53915 | #endif |
| 53916 | } |
| 53917 | #endif |
| 53918 | #ifdef GET_DISASM |
| 53919 | case OP_StoreBitFieldSint8: |
| 53920 | Text.Op = PrintName("StoreBitFieldSint8" ); |
| 53921 | break; |
| 53922 | case OP_StoreBitFieldUint8: |
| 53923 | Text.Op = PrintName("StoreBitFieldUint8" ); |
| 53924 | break; |
| 53925 | case OP_StoreBitFieldSint16: |
| 53926 | Text.Op = PrintName("StoreBitFieldSint16" ); |
| 53927 | break; |
| 53928 | case OP_StoreBitFieldUint16: |
| 53929 | Text.Op = PrintName("StoreBitFieldUint16" ); |
| 53930 | break; |
| 53931 | case OP_StoreBitFieldSint32: |
| 53932 | Text.Op = PrintName("StoreBitFieldSint32" ); |
| 53933 | break; |
| 53934 | case OP_StoreBitFieldUint32: |
| 53935 | Text.Op = PrintName("StoreBitFieldUint32" ); |
| 53936 | break; |
| 53937 | case OP_StoreBitFieldSint64: |
| 53938 | Text.Op = PrintName("StoreBitFieldSint64" ); |
| 53939 | break; |
| 53940 | case OP_StoreBitFieldUint64: |
| 53941 | Text.Op = PrintName("StoreBitFieldUint64" ); |
| 53942 | break; |
| 53943 | case OP_StoreBitFieldIntAP: |
| 53944 | Text.Op = PrintName("StoreBitFieldIntAP" ); |
| 53945 | break; |
| 53946 | case OP_StoreBitFieldIntAPS: |
| 53947 | Text.Op = PrintName("StoreBitFieldIntAPS" ); |
| 53948 | break; |
| 53949 | case OP_StoreBitFieldBool: |
| 53950 | Text.Op = PrintName("StoreBitFieldBool" ); |
| 53951 | break; |
| 53952 | case OP_StoreBitFieldFixedPoint: |
| 53953 | Text.Op = PrintName("StoreBitFieldFixedPoint" ); |
| 53954 | break; |
| 53955 | #endif |
| 53956 | #if defined(GET_EVAL_PROTO) || defined(GET_LINK_PROTO) |
| 53957 | bool emitStoreBitFieldSint8(SourceInfo); |
| 53958 | bool emitStoreBitFieldUint8(SourceInfo); |
| 53959 | bool emitStoreBitFieldSint16(SourceInfo); |
| 53960 | bool emitStoreBitFieldUint16(SourceInfo); |
| 53961 | bool emitStoreBitFieldSint32(SourceInfo); |
| 53962 | bool emitStoreBitFieldUint32(SourceInfo); |
| 53963 | bool emitStoreBitFieldSint64(SourceInfo); |
| 53964 | bool emitStoreBitFieldUint64(SourceInfo); |
| 53965 | bool emitStoreBitFieldIntAP(SourceInfo); |
| 53966 | bool emitStoreBitFieldIntAPS(SourceInfo); |
| 53967 | bool emitStoreBitFieldBool(SourceInfo); |
| 53968 | bool emitStoreBitFieldFixedPoint(SourceInfo); |
| 53969 | #endif |
| 53970 | #if defined(GET_EVAL_PROTO) || defined(GET_LINK_PROTO) |
| 53971 | [[nodiscard]] bool emitStoreBitField(PrimType, SourceInfo I); |
| 53972 | #endif |
| 53973 | #if defined(GET_EVAL_IMPL) || defined(GET_LINK_IMPL) |
| 53974 | bool |
| 53975 | #if defined(GET_EVAL_IMPL) |
| 53976 | EvalEmitter |
| 53977 | #else |
| 53978 | ByteCodeEmitter |
| 53979 | #endif |
| 53980 | ::emitStoreBitField(PrimType T0, SourceInfo I) { |
| 53981 | switch (T0) { |
| 53982 | case PT_Sint8: |
| 53983 | return emitStoreBitFieldSint8(I); |
| 53984 | case PT_Uint8: |
| 53985 | return emitStoreBitFieldUint8(I); |
| 53986 | case PT_Sint16: |
| 53987 | return emitStoreBitFieldSint16(I); |
| 53988 | case PT_Uint16: |
| 53989 | return emitStoreBitFieldUint16(I); |
| 53990 | case PT_Sint32: |
| 53991 | return emitStoreBitFieldSint32(I); |
| 53992 | case PT_Uint32: |
| 53993 | return emitStoreBitFieldUint32(I); |
| 53994 | case PT_Sint64: |
| 53995 | return emitStoreBitFieldSint64(I); |
| 53996 | case PT_Uint64: |
| 53997 | return emitStoreBitFieldUint64(I); |
| 53998 | case PT_IntAP: |
| 53999 | return emitStoreBitFieldIntAP(I); |
| 54000 | case PT_IntAPS: |
| 54001 | return emitStoreBitFieldIntAPS(I); |
| 54002 | case PT_Bool: |
| 54003 | return emitStoreBitFieldBool(I); |
| 54004 | case PT_FixedPoint: |
| 54005 | return emitStoreBitFieldFixedPoint(I); |
| 54006 | default: llvm_unreachable("invalid type: emitStoreBitField" ); |
| 54007 | } |
| 54008 | llvm_unreachable("invalid enum value" ); |
| 54009 | } |
| 54010 | #endif |
| 54011 | #ifdef GET_LINK_IMPL |
| 54012 | bool ByteCodeEmitter::emitStoreBitFieldSint8(SourceInfo L) { |
| 54013 | return emitOp<>(OP_StoreBitFieldSint8, L); |
| 54014 | } |
| 54015 | bool ByteCodeEmitter::emitStoreBitFieldUint8(SourceInfo L) { |
| 54016 | return emitOp<>(OP_StoreBitFieldUint8, L); |
| 54017 | } |
| 54018 | bool ByteCodeEmitter::emitStoreBitFieldSint16(SourceInfo L) { |
| 54019 | return emitOp<>(OP_StoreBitFieldSint16, L); |
| 54020 | } |
| 54021 | bool ByteCodeEmitter::emitStoreBitFieldUint16(SourceInfo L) { |
| 54022 | return emitOp<>(OP_StoreBitFieldUint16, L); |
| 54023 | } |
| 54024 | bool ByteCodeEmitter::emitStoreBitFieldSint32(SourceInfo L) { |
| 54025 | return emitOp<>(OP_StoreBitFieldSint32, L); |
| 54026 | } |
| 54027 | bool ByteCodeEmitter::emitStoreBitFieldUint32(SourceInfo L) { |
| 54028 | return emitOp<>(OP_StoreBitFieldUint32, L); |
| 54029 | } |
| 54030 | bool ByteCodeEmitter::emitStoreBitFieldSint64(SourceInfo L) { |
| 54031 | return emitOp<>(OP_StoreBitFieldSint64, L); |
| 54032 | } |
| 54033 | bool ByteCodeEmitter::emitStoreBitFieldUint64(SourceInfo L) { |
| 54034 | return emitOp<>(OP_StoreBitFieldUint64, L); |
| 54035 | } |
| 54036 | bool ByteCodeEmitter::emitStoreBitFieldIntAP(SourceInfo L) { |
| 54037 | return emitOp<>(OP_StoreBitFieldIntAP, L); |
| 54038 | } |
| 54039 | bool ByteCodeEmitter::emitStoreBitFieldIntAPS(SourceInfo L) { |
| 54040 | return emitOp<>(OP_StoreBitFieldIntAPS, L); |
| 54041 | } |
| 54042 | bool ByteCodeEmitter::emitStoreBitFieldBool(SourceInfo L) { |
| 54043 | return emitOp<>(OP_StoreBitFieldBool, L); |
| 54044 | } |
| 54045 | bool ByteCodeEmitter::emitStoreBitFieldFixedPoint(SourceInfo L) { |
| 54046 | return emitOp<>(OP_StoreBitFieldFixedPoint, L); |
| 54047 | } |
| 54048 | #endif |
| 54049 | #ifdef GET_EVAL_IMPL |
| 54050 | bool EvalEmitter::emitStoreBitFieldSint8(SourceInfo L) { |
| 54051 | if (!isActive()) return true; |
| 54052 | CurrentSource = L; |
| 54053 | return StoreBitField<PT_Sint8>(S, CodePtr()); |
| 54054 | } |
| 54055 | bool EvalEmitter::emitStoreBitFieldUint8(SourceInfo L) { |
| 54056 | if (!isActive()) return true; |
| 54057 | CurrentSource = L; |
| 54058 | return StoreBitField<PT_Uint8>(S, CodePtr()); |
| 54059 | } |
| 54060 | bool EvalEmitter::emitStoreBitFieldSint16(SourceInfo L) { |
| 54061 | if (!isActive()) return true; |
| 54062 | CurrentSource = L; |
| 54063 | return StoreBitField<PT_Sint16>(S, CodePtr()); |
| 54064 | } |
| 54065 | bool EvalEmitter::emitStoreBitFieldUint16(SourceInfo L) { |
| 54066 | if (!isActive()) return true; |
| 54067 | CurrentSource = L; |
| 54068 | return StoreBitField<PT_Uint16>(S, CodePtr()); |
| 54069 | } |
| 54070 | bool EvalEmitter::emitStoreBitFieldSint32(SourceInfo L) { |
| 54071 | if (!isActive()) return true; |
| 54072 | CurrentSource = L; |
| 54073 | return StoreBitField<PT_Sint32>(S, CodePtr()); |
| 54074 | } |
| 54075 | bool EvalEmitter::emitStoreBitFieldUint32(SourceInfo L) { |
| 54076 | if (!isActive()) return true; |
| 54077 | CurrentSource = L; |
| 54078 | return StoreBitField<PT_Uint32>(S, CodePtr()); |
| 54079 | } |
| 54080 | bool EvalEmitter::emitStoreBitFieldSint64(SourceInfo L) { |
| 54081 | if (!isActive()) return true; |
| 54082 | CurrentSource = L; |
| 54083 | return StoreBitField<PT_Sint64>(S, CodePtr()); |
| 54084 | } |
| 54085 | bool EvalEmitter::emitStoreBitFieldUint64(SourceInfo L) { |
| 54086 | if (!isActive()) return true; |
| 54087 | CurrentSource = L; |
| 54088 | return StoreBitField<PT_Uint64>(S, CodePtr()); |
| 54089 | } |
| 54090 | bool EvalEmitter::emitStoreBitFieldIntAP(SourceInfo L) { |
| 54091 | if (!isActive()) return true; |
| 54092 | CurrentSource = L; |
| 54093 | return StoreBitField<PT_IntAP>(S, CodePtr()); |
| 54094 | } |
| 54095 | bool EvalEmitter::emitStoreBitFieldIntAPS(SourceInfo L) { |
| 54096 | if (!isActive()) return true; |
| 54097 | CurrentSource = L; |
| 54098 | return StoreBitField<PT_IntAPS>(S, CodePtr()); |
| 54099 | } |
| 54100 | bool EvalEmitter::emitStoreBitFieldBool(SourceInfo L) { |
| 54101 | if (!isActive()) return true; |
| 54102 | CurrentSource = L; |
| 54103 | return StoreBitField<PT_Bool>(S, CodePtr()); |
| 54104 | } |
| 54105 | bool EvalEmitter::emitStoreBitFieldFixedPoint(SourceInfo L) { |
| 54106 | if (!isActive()) return true; |
| 54107 | CurrentSource = L; |
| 54108 | return StoreBitField<PT_FixedPoint>(S, CodePtr()); |
| 54109 | } |
| 54110 | #endif |
| 54111 | #ifdef GET_OPCODE_NAMES |
| 54112 | OP_StoreBitFieldActivateSint8, |
| 54113 | OP_StoreBitFieldActivateUint8, |
| 54114 | OP_StoreBitFieldActivateSint16, |
| 54115 | OP_StoreBitFieldActivateUint16, |
| 54116 | OP_StoreBitFieldActivateSint32, |
| 54117 | OP_StoreBitFieldActivateUint32, |
| 54118 | OP_StoreBitFieldActivateSint64, |
| 54119 | OP_StoreBitFieldActivateUint64, |
| 54120 | OP_StoreBitFieldActivateIntAP, |
| 54121 | OP_StoreBitFieldActivateIntAPS, |
| 54122 | OP_StoreBitFieldActivateBool, |
| 54123 | OP_StoreBitFieldActivateFixedPoint, |
| 54124 | #endif |
| 54125 | #ifdef GET_INTERPFN_LIST |
| 54126 | &Interp_StoreBitFieldActivateSint8, |
| 54127 | &Interp_StoreBitFieldActivateUint8, |
| 54128 | &Interp_StoreBitFieldActivateSint16, |
| 54129 | &Interp_StoreBitFieldActivateUint16, |
| 54130 | &Interp_StoreBitFieldActivateSint32, |
| 54131 | &Interp_StoreBitFieldActivateUint32, |
| 54132 | &Interp_StoreBitFieldActivateSint64, |
| 54133 | &Interp_StoreBitFieldActivateUint64, |
| 54134 | &Interp_StoreBitFieldActivateIntAP, |
| 54135 | &Interp_StoreBitFieldActivateIntAPS, |
| 54136 | &Interp_StoreBitFieldActivateBool, |
| 54137 | &Interp_StoreBitFieldActivateFixedPoint, |
| 54138 | #endif |
| 54139 | #ifdef GET_INTERPFN_DISPATCHERS |
| 54140 | PRESERVE_NONE |
| 54141 | static bool Interp_StoreBitFieldActivateSint8(InterpState &S) { |
| 54142 | if (!StoreBitFieldActivate<PT_Sint8>(S, S.PC)) return false; |
| 54143 | #if USE_TAILCALLS |
| 54144 | MUSTTAIL return InterpNext(S); |
| 54145 | #else |
| 54146 | return true; |
| 54147 | #endif |
| 54148 | } |
| 54149 | PRESERVE_NONE |
| 54150 | static bool Interp_StoreBitFieldActivateUint8(InterpState &S) { |
| 54151 | if (!StoreBitFieldActivate<PT_Uint8>(S, S.PC)) return false; |
| 54152 | #if USE_TAILCALLS |
| 54153 | MUSTTAIL return InterpNext(S); |
| 54154 | #else |
| 54155 | return true; |
| 54156 | #endif |
| 54157 | } |
| 54158 | PRESERVE_NONE |
| 54159 | static bool Interp_StoreBitFieldActivateSint16(InterpState &S) { |
| 54160 | if (!StoreBitFieldActivate<PT_Sint16>(S, S.PC)) return false; |
| 54161 | #if USE_TAILCALLS |
| 54162 | MUSTTAIL return InterpNext(S); |
| 54163 | #else |
| 54164 | return true; |
| 54165 | #endif |
| 54166 | } |
| 54167 | PRESERVE_NONE |
| 54168 | static bool Interp_StoreBitFieldActivateUint16(InterpState &S) { |
| 54169 | if (!StoreBitFieldActivate<PT_Uint16>(S, S.PC)) return false; |
| 54170 | #if USE_TAILCALLS |
| 54171 | MUSTTAIL return InterpNext(S); |
| 54172 | #else |
| 54173 | return true; |
| 54174 | #endif |
| 54175 | } |
| 54176 | PRESERVE_NONE |
| 54177 | static bool Interp_StoreBitFieldActivateSint32(InterpState &S) { |
| 54178 | if (!StoreBitFieldActivate<PT_Sint32>(S, S.PC)) return false; |
| 54179 | #if USE_TAILCALLS |
| 54180 | MUSTTAIL return InterpNext(S); |
| 54181 | #else |
| 54182 | return true; |
| 54183 | #endif |
| 54184 | } |
| 54185 | PRESERVE_NONE |
| 54186 | static bool Interp_StoreBitFieldActivateUint32(InterpState &S) { |
| 54187 | if (!StoreBitFieldActivate<PT_Uint32>(S, S.PC)) return false; |
| 54188 | #if USE_TAILCALLS |
| 54189 | MUSTTAIL return InterpNext(S); |
| 54190 | #else |
| 54191 | return true; |
| 54192 | #endif |
| 54193 | } |
| 54194 | PRESERVE_NONE |
| 54195 | static bool Interp_StoreBitFieldActivateSint64(InterpState &S) { |
| 54196 | if (!StoreBitFieldActivate<PT_Sint64>(S, S.PC)) return false; |
| 54197 | #if USE_TAILCALLS |
| 54198 | MUSTTAIL return InterpNext(S); |
| 54199 | #else |
| 54200 | return true; |
| 54201 | #endif |
| 54202 | } |
| 54203 | PRESERVE_NONE |
| 54204 | static bool Interp_StoreBitFieldActivateUint64(InterpState &S) { |
| 54205 | if (!StoreBitFieldActivate<PT_Uint64>(S, S.PC)) return false; |
| 54206 | #if USE_TAILCALLS |
| 54207 | MUSTTAIL return InterpNext(S); |
| 54208 | #else |
| 54209 | return true; |
| 54210 | #endif |
| 54211 | } |
| 54212 | PRESERVE_NONE |
| 54213 | static bool Interp_StoreBitFieldActivateIntAP(InterpState &S) { |
| 54214 | if (!StoreBitFieldActivate<PT_IntAP>(S, S.PC)) return false; |
| 54215 | #if USE_TAILCALLS |
| 54216 | MUSTTAIL return InterpNext(S); |
| 54217 | #else |
| 54218 | return true; |
| 54219 | #endif |
| 54220 | } |
| 54221 | PRESERVE_NONE |
| 54222 | static bool Interp_StoreBitFieldActivateIntAPS(InterpState &S) { |
| 54223 | if (!StoreBitFieldActivate<PT_IntAPS>(S, S.PC)) return false; |
| 54224 | #if USE_TAILCALLS |
| 54225 | MUSTTAIL return InterpNext(S); |
| 54226 | #else |
| 54227 | return true; |
| 54228 | #endif |
| 54229 | } |
| 54230 | PRESERVE_NONE |
| 54231 | static bool Interp_StoreBitFieldActivateBool(InterpState &S) { |
| 54232 | if (!StoreBitFieldActivate<PT_Bool>(S, S.PC)) return false; |
| 54233 | #if USE_TAILCALLS |
| 54234 | MUSTTAIL return InterpNext(S); |
| 54235 | #else |
| 54236 | return true; |
| 54237 | #endif |
| 54238 | } |
| 54239 | PRESERVE_NONE |
| 54240 | static bool Interp_StoreBitFieldActivateFixedPoint(InterpState &S) { |
| 54241 | if (!StoreBitFieldActivate<PT_FixedPoint>(S, S.PC)) return false; |
| 54242 | #if USE_TAILCALLS |
| 54243 | MUSTTAIL return InterpNext(S); |
| 54244 | #else |
| 54245 | return true; |
| 54246 | #endif |
| 54247 | } |
| 54248 | #endif |
| 54249 | #ifdef GET_DISASM |
| 54250 | case OP_StoreBitFieldActivateSint8: |
| 54251 | Text.Op = PrintName("StoreBitFieldActivateSint8" ); |
| 54252 | break; |
| 54253 | case OP_StoreBitFieldActivateUint8: |
| 54254 | Text.Op = PrintName("StoreBitFieldActivateUint8" ); |
| 54255 | break; |
| 54256 | case OP_StoreBitFieldActivateSint16: |
| 54257 | Text.Op = PrintName("StoreBitFieldActivateSint16" ); |
| 54258 | break; |
| 54259 | case OP_StoreBitFieldActivateUint16: |
| 54260 | Text.Op = PrintName("StoreBitFieldActivateUint16" ); |
| 54261 | break; |
| 54262 | case OP_StoreBitFieldActivateSint32: |
| 54263 | Text.Op = PrintName("StoreBitFieldActivateSint32" ); |
| 54264 | break; |
| 54265 | case OP_StoreBitFieldActivateUint32: |
| 54266 | Text.Op = PrintName("StoreBitFieldActivateUint32" ); |
| 54267 | break; |
| 54268 | case OP_StoreBitFieldActivateSint64: |
| 54269 | Text.Op = PrintName("StoreBitFieldActivateSint64" ); |
| 54270 | break; |
| 54271 | case OP_StoreBitFieldActivateUint64: |
| 54272 | Text.Op = PrintName("StoreBitFieldActivateUint64" ); |
| 54273 | break; |
| 54274 | case OP_StoreBitFieldActivateIntAP: |
| 54275 | Text.Op = PrintName("StoreBitFieldActivateIntAP" ); |
| 54276 | break; |
| 54277 | case OP_StoreBitFieldActivateIntAPS: |
| 54278 | Text.Op = PrintName("StoreBitFieldActivateIntAPS" ); |
| 54279 | break; |
| 54280 | case OP_StoreBitFieldActivateBool: |
| 54281 | Text.Op = PrintName("StoreBitFieldActivateBool" ); |
| 54282 | break; |
| 54283 | case OP_StoreBitFieldActivateFixedPoint: |
| 54284 | Text.Op = PrintName("StoreBitFieldActivateFixedPoint" ); |
| 54285 | break; |
| 54286 | #endif |
| 54287 | #if defined(GET_EVAL_PROTO) || defined(GET_LINK_PROTO) |
| 54288 | bool emitStoreBitFieldActivateSint8(SourceInfo); |
| 54289 | bool emitStoreBitFieldActivateUint8(SourceInfo); |
| 54290 | bool emitStoreBitFieldActivateSint16(SourceInfo); |
| 54291 | bool emitStoreBitFieldActivateUint16(SourceInfo); |
| 54292 | bool emitStoreBitFieldActivateSint32(SourceInfo); |
| 54293 | bool emitStoreBitFieldActivateUint32(SourceInfo); |
| 54294 | bool emitStoreBitFieldActivateSint64(SourceInfo); |
| 54295 | bool emitStoreBitFieldActivateUint64(SourceInfo); |
| 54296 | bool emitStoreBitFieldActivateIntAP(SourceInfo); |
| 54297 | bool emitStoreBitFieldActivateIntAPS(SourceInfo); |
| 54298 | bool emitStoreBitFieldActivateBool(SourceInfo); |
| 54299 | bool emitStoreBitFieldActivateFixedPoint(SourceInfo); |
| 54300 | #endif |
| 54301 | #if defined(GET_EVAL_PROTO) || defined(GET_LINK_PROTO) |
| 54302 | [[nodiscard]] bool emitStoreBitFieldActivate(PrimType, SourceInfo I); |
| 54303 | #endif |
| 54304 | #if defined(GET_EVAL_IMPL) || defined(GET_LINK_IMPL) |
| 54305 | bool |
| 54306 | #if defined(GET_EVAL_IMPL) |
| 54307 | EvalEmitter |
| 54308 | #else |
| 54309 | ByteCodeEmitter |
| 54310 | #endif |
| 54311 | ::emitStoreBitFieldActivate(PrimType T0, SourceInfo I) { |
| 54312 | switch (T0) { |
| 54313 | case PT_Sint8: |
| 54314 | return emitStoreBitFieldActivateSint8(I); |
| 54315 | case PT_Uint8: |
| 54316 | return emitStoreBitFieldActivateUint8(I); |
| 54317 | case PT_Sint16: |
| 54318 | return emitStoreBitFieldActivateSint16(I); |
| 54319 | case PT_Uint16: |
| 54320 | return emitStoreBitFieldActivateUint16(I); |
| 54321 | case PT_Sint32: |
| 54322 | return emitStoreBitFieldActivateSint32(I); |
| 54323 | case PT_Uint32: |
| 54324 | return emitStoreBitFieldActivateUint32(I); |
| 54325 | case PT_Sint64: |
| 54326 | return emitStoreBitFieldActivateSint64(I); |
| 54327 | case PT_Uint64: |
| 54328 | return emitStoreBitFieldActivateUint64(I); |
| 54329 | case PT_IntAP: |
| 54330 | return emitStoreBitFieldActivateIntAP(I); |
| 54331 | case PT_IntAPS: |
| 54332 | return emitStoreBitFieldActivateIntAPS(I); |
| 54333 | case PT_Bool: |
| 54334 | return emitStoreBitFieldActivateBool(I); |
| 54335 | case PT_FixedPoint: |
| 54336 | return emitStoreBitFieldActivateFixedPoint(I); |
| 54337 | default: llvm_unreachable("invalid type: emitStoreBitFieldActivate" ); |
| 54338 | } |
| 54339 | llvm_unreachable("invalid enum value" ); |
| 54340 | } |
| 54341 | #endif |
| 54342 | #ifdef GET_LINK_IMPL |
| 54343 | bool ByteCodeEmitter::emitStoreBitFieldActivateSint8(SourceInfo L) { |
| 54344 | return emitOp<>(OP_StoreBitFieldActivateSint8, L); |
| 54345 | } |
| 54346 | bool ByteCodeEmitter::emitStoreBitFieldActivateUint8(SourceInfo L) { |
| 54347 | return emitOp<>(OP_StoreBitFieldActivateUint8, L); |
| 54348 | } |
| 54349 | bool ByteCodeEmitter::emitStoreBitFieldActivateSint16(SourceInfo L) { |
| 54350 | return emitOp<>(OP_StoreBitFieldActivateSint16, L); |
| 54351 | } |
| 54352 | bool ByteCodeEmitter::emitStoreBitFieldActivateUint16(SourceInfo L) { |
| 54353 | return emitOp<>(OP_StoreBitFieldActivateUint16, L); |
| 54354 | } |
| 54355 | bool ByteCodeEmitter::emitStoreBitFieldActivateSint32(SourceInfo L) { |
| 54356 | return emitOp<>(OP_StoreBitFieldActivateSint32, L); |
| 54357 | } |
| 54358 | bool ByteCodeEmitter::emitStoreBitFieldActivateUint32(SourceInfo L) { |
| 54359 | return emitOp<>(OP_StoreBitFieldActivateUint32, L); |
| 54360 | } |
| 54361 | bool ByteCodeEmitter::emitStoreBitFieldActivateSint64(SourceInfo L) { |
| 54362 | return emitOp<>(OP_StoreBitFieldActivateSint64, L); |
| 54363 | } |
| 54364 | bool ByteCodeEmitter::emitStoreBitFieldActivateUint64(SourceInfo L) { |
| 54365 | return emitOp<>(OP_StoreBitFieldActivateUint64, L); |
| 54366 | } |
| 54367 | bool ByteCodeEmitter::emitStoreBitFieldActivateIntAP(SourceInfo L) { |
| 54368 | return emitOp<>(OP_StoreBitFieldActivateIntAP, L); |
| 54369 | } |
| 54370 | bool ByteCodeEmitter::emitStoreBitFieldActivateIntAPS(SourceInfo L) { |
| 54371 | return emitOp<>(OP_StoreBitFieldActivateIntAPS, L); |
| 54372 | } |
| 54373 | bool ByteCodeEmitter::emitStoreBitFieldActivateBool(SourceInfo L) { |
| 54374 | return emitOp<>(OP_StoreBitFieldActivateBool, L); |
| 54375 | } |
| 54376 | bool ByteCodeEmitter::emitStoreBitFieldActivateFixedPoint(SourceInfo L) { |
| 54377 | return emitOp<>(OP_StoreBitFieldActivateFixedPoint, L); |
| 54378 | } |
| 54379 | #endif |
| 54380 | #ifdef GET_EVAL_IMPL |
| 54381 | bool EvalEmitter::emitStoreBitFieldActivateSint8(SourceInfo L) { |
| 54382 | if (!isActive()) return true; |
| 54383 | CurrentSource = L; |
| 54384 | return StoreBitFieldActivate<PT_Sint8>(S, CodePtr()); |
| 54385 | } |
| 54386 | bool EvalEmitter::emitStoreBitFieldActivateUint8(SourceInfo L) { |
| 54387 | if (!isActive()) return true; |
| 54388 | CurrentSource = L; |
| 54389 | return StoreBitFieldActivate<PT_Uint8>(S, CodePtr()); |
| 54390 | } |
| 54391 | bool EvalEmitter::emitStoreBitFieldActivateSint16(SourceInfo L) { |
| 54392 | if (!isActive()) return true; |
| 54393 | CurrentSource = L; |
| 54394 | return StoreBitFieldActivate<PT_Sint16>(S, CodePtr()); |
| 54395 | } |
| 54396 | bool EvalEmitter::emitStoreBitFieldActivateUint16(SourceInfo L) { |
| 54397 | if (!isActive()) return true; |
| 54398 | CurrentSource = L; |
| 54399 | return StoreBitFieldActivate<PT_Uint16>(S, CodePtr()); |
| 54400 | } |
| 54401 | bool EvalEmitter::emitStoreBitFieldActivateSint32(SourceInfo L) { |
| 54402 | if (!isActive()) return true; |
| 54403 | CurrentSource = L; |
| 54404 | return StoreBitFieldActivate<PT_Sint32>(S, CodePtr()); |
| 54405 | } |
| 54406 | bool EvalEmitter::emitStoreBitFieldActivateUint32(SourceInfo L) { |
| 54407 | if (!isActive()) return true; |
| 54408 | CurrentSource = L; |
| 54409 | return StoreBitFieldActivate<PT_Uint32>(S, CodePtr()); |
| 54410 | } |
| 54411 | bool EvalEmitter::emitStoreBitFieldActivateSint64(SourceInfo L) { |
| 54412 | if (!isActive()) return true; |
| 54413 | CurrentSource = L; |
| 54414 | return StoreBitFieldActivate<PT_Sint64>(S, CodePtr()); |
| 54415 | } |
| 54416 | bool EvalEmitter::emitStoreBitFieldActivateUint64(SourceInfo L) { |
| 54417 | if (!isActive()) return true; |
| 54418 | CurrentSource = L; |
| 54419 | return StoreBitFieldActivate<PT_Uint64>(S, CodePtr()); |
| 54420 | } |
| 54421 | bool EvalEmitter::emitStoreBitFieldActivateIntAP(SourceInfo L) { |
| 54422 | if (!isActive()) return true; |
| 54423 | CurrentSource = L; |
| 54424 | return StoreBitFieldActivate<PT_IntAP>(S, CodePtr()); |
| 54425 | } |
| 54426 | bool EvalEmitter::emitStoreBitFieldActivateIntAPS(SourceInfo L) { |
| 54427 | if (!isActive()) return true; |
| 54428 | CurrentSource = L; |
| 54429 | return StoreBitFieldActivate<PT_IntAPS>(S, CodePtr()); |
| 54430 | } |
| 54431 | bool EvalEmitter::emitStoreBitFieldActivateBool(SourceInfo L) { |
| 54432 | if (!isActive()) return true; |
| 54433 | CurrentSource = L; |
| 54434 | return StoreBitFieldActivate<PT_Bool>(S, CodePtr()); |
| 54435 | } |
| 54436 | bool EvalEmitter::emitStoreBitFieldActivateFixedPoint(SourceInfo L) { |
| 54437 | if (!isActive()) return true; |
| 54438 | CurrentSource = L; |
| 54439 | return StoreBitFieldActivate<PT_FixedPoint>(S, CodePtr()); |
| 54440 | } |
| 54441 | #endif |
| 54442 | #ifdef GET_OPCODE_NAMES |
| 54443 | OP_StoreBitFieldActivatePopSint8, |
| 54444 | OP_StoreBitFieldActivatePopUint8, |
| 54445 | OP_StoreBitFieldActivatePopSint16, |
| 54446 | OP_StoreBitFieldActivatePopUint16, |
| 54447 | OP_StoreBitFieldActivatePopSint32, |
| 54448 | OP_StoreBitFieldActivatePopUint32, |
| 54449 | OP_StoreBitFieldActivatePopSint64, |
| 54450 | OP_StoreBitFieldActivatePopUint64, |
| 54451 | OP_StoreBitFieldActivatePopIntAP, |
| 54452 | OP_StoreBitFieldActivatePopIntAPS, |
| 54453 | OP_StoreBitFieldActivatePopBool, |
| 54454 | OP_StoreBitFieldActivatePopFixedPoint, |
| 54455 | #endif |
| 54456 | #ifdef GET_INTERPFN_LIST |
| 54457 | &Interp_StoreBitFieldActivatePopSint8, |
| 54458 | &Interp_StoreBitFieldActivatePopUint8, |
| 54459 | &Interp_StoreBitFieldActivatePopSint16, |
| 54460 | &Interp_StoreBitFieldActivatePopUint16, |
| 54461 | &Interp_StoreBitFieldActivatePopSint32, |
| 54462 | &Interp_StoreBitFieldActivatePopUint32, |
| 54463 | &Interp_StoreBitFieldActivatePopSint64, |
| 54464 | &Interp_StoreBitFieldActivatePopUint64, |
| 54465 | &Interp_StoreBitFieldActivatePopIntAP, |
| 54466 | &Interp_StoreBitFieldActivatePopIntAPS, |
| 54467 | &Interp_StoreBitFieldActivatePopBool, |
| 54468 | &Interp_StoreBitFieldActivatePopFixedPoint, |
| 54469 | #endif |
| 54470 | #ifdef GET_INTERPFN_DISPATCHERS |
| 54471 | PRESERVE_NONE |
| 54472 | static bool Interp_StoreBitFieldActivatePopSint8(InterpState &S) { |
| 54473 | if (!StoreBitFieldActivatePop<PT_Sint8>(S, S.PC)) return false; |
| 54474 | #if USE_TAILCALLS |
| 54475 | MUSTTAIL return InterpNext(S); |
| 54476 | #else |
| 54477 | return true; |
| 54478 | #endif |
| 54479 | } |
| 54480 | PRESERVE_NONE |
| 54481 | static bool Interp_StoreBitFieldActivatePopUint8(InterpState &S) { |
| 54482 | if (!StoreBitFieldActivatePop<PT_Uint8>(S, S.PC)) return false; |
| 54483 | #if USE_TAILCALLS |
| 54484 | MUSTTAIL return InterpNext(S); |
| 54485 | #else |
| 54486 | return true; |
| 54487 | #endif |
| 54488 | } |
| 54489 | PRESERVE_NONE |
| 54490 | static bool Interp_StoreBitFieldActivatePopSint16(InterpState &S) { |
| 54491 | if (!StoreBitFieldActivatePop<PT_Sint16>(S, S.PC)) return false; |
| 54492 | #if USE_TAILCALLS |
| 54493 | MUSTTAIL return InterpNext(S); |
| 54494 | #else |
| 54495 | return true; |
| 54496 | #endif |
| 54497 | } |
| 54498 | PRESERVE_NONE |
| 54499 | static bool Interp_StoreBitFieldActivatePopUint16(InterpState &S) { |
| 54500 | if (!StoreBitFieldActivatePop<PT_Uint16>(S, S.PC)) return false; |
| 54501 | #if USE_TAILCALLS |
| 54502 | MUSTTAIL return InterpNext(S); |
| 54503 | #else |
| 54504 | return true; |
| 54505 | #endif |
| 54506 | } |
| 54507 | PRESERVE_NONE |
| 54508 | static bool Interp_StoreBitFieldActivatePopSint32(InterpState &S) { |
| 54509 | if (!StoreBitFieldActivatePop<PT_Sint32>(S, S.PC)) return false; |
| 54510 | #if USE_TAILCALLS |
| 54511 | MUSTTAIL return InterpNext(S); |
| 54512 | #else |
| 54513 | return true; |
| 54514 | #endif |
| 54515 | } |
| 54516 | PRESERVE_NONE |
| 54517 | static bool Interp_StoreBitFieldActivatePopUint32(InterpState &S) { |
| 54518 | if (!StoreBitFieldActivatePop<PT_Uint32>(S, S.PC)) return false; |
| 54519 | #if USE_TAILCALLS |
| 54520 | MUSTTAIL return InterpNext(S); |
| 54521 | #else |
| 54522 | return true; |
| 54523 | #endif |
| 54524 | } |
| 54525 | PRESERVE_NONE |
| 54526 | static bool Interp_StoreBitFieldActivatePopSint64(InterpState &S) { |
| 54527 | if (!StoreBitFieldActivatePop<PT_Sint64>(S, S.PC)) return false; |
| 54528 | #if USE_TAILCALLS |
| 54529 | MUSTTAIL return InterpNext(S); |
| 54530 | #else |
| 54531 | return true; |
| 54532 | #endif |
| 54533 | } |
| 54534 | PRESERVE_NONE |
| 54535 | static bool Interp_StoreBitFieldActivatePopUint64(InterpState &S) { |
| 54536 | if (!StoreBitFieldActivatePop<PT_Uint64>(S, S.PC)) return false; |
| 54537 | #if USE_TAILCALLS |
| 54538 | MUSTTAIL return InterpNext(S); |
| 54539 | #else |
| 54540 | return true; |
| 54541 | #endif |
| 54542 | } |
| 54543 | PRESERVE_NONE |
| 54544 | static bool Interp_StoreBitFieldActivatePopIntAP(InterpState &S) { |
| 54545 | if (!StoreBitFieldActivatePop<PT_IntAP>(S, S.PC)) return false; |
| 54546 | #if USE_TAILCALLS |
| 54547 | MUSTTAIL return InterpNext(S); |
| 54548 | #else |
| 54549 | return true; |
| 54550 | #endif |
| 54551 | } |
| 54552 | PRESERVE_NONE |
| 54553 | static bool Interp_StoreBitFieldActivatePopIntAPS(InterpState &S) { |
| 54554 | if (!StoreBitFieldActivatePop<PT_IntAPS>(S, S.PC)) return false; |
| 54555 | #if USE_TAILCALLS |
| 54556 | MUSTTAIL return InterpNext(S); |
| 54557 | #else |
| 54558 | return true; |
| 54559 | #endif |
| 54560 | } |
| 54561 | PRESERVE_NONE |
| 54562 | static bool Interp_StoreBitFieldActivatePopBool(InterpState &S) { |
| 54563 | if (!StoreBitFieldActivatePop<PT_Bool>(S, S.PC)) return false; |
| 54564 | #if USE_TAILCALLS |
| 54565 | MUSTTAIL return InterpNext(S); |
| 54566 | #else |
| 54567 | return true; |
| 54568 | #endif |
| 54569 | } |
| 54570 | PRESERVE_NONE |
| 54571 | static bool Interp_StoreBitFieldActivatePopFixedPoint(InterpState &S) { |
| 54572 | if (!StoreBitFieldActivatePop<PT_FixedPoint>(S, S.PC)) return false; |
| 54573 | #if USE_TAILCALLS |
| 54574 | MUSTTAIL return InterpNext(S); |
| 54575 | #else |
| 54576 | return true; |
| 54577 | #endif |
| 54578 | } |
| 54579 | #endif |
| 54580 | #ifdef GET_DISASM |
| 54581 | case OP_StoreBitFieldActivatePopSint8: |
| 54582 | Text.Op = PrintName("StoreBitFieldActivatePopSint8" ); |
| 54583 | break; |
| 54584 | case OP_StoreBitFieldActivatePopUint8: |
| 54585 | Text.Op = PrintName("StoreBitFieldActivatePopUint8" ); |
| 54586 | break; |
| 54587 | case OP_StoreBitFieldActivatePopSint16: |
| 54588 | Text.Op = PrintName("StoreBitFieldActivatePopSint16" ); |
| 54589 | break; |
| 54590 | case OP_StoreBitFieldActivatePopUint16: |
| 54591 | Text.Op = PrintName("StoreBitFieldActivatePopUint16" ); |
| 54592 | break; |
| 54593 | case OP_StoreBitFieldActivatePopSint32: |
| 54594 | Text.Op = PrintName("StoreBitFieldActivatePopSint32" ); |
| 54595 | break; |
| 54596 | case OP_StoreBitFieldActivatePopUint32: |
| 54597 | Text.Op = PrintName("StoreBitFieldActivatePopUint32" ); |
| 54598 | break; |
| 54599 | case OP_StoreBitFieldActivatePopSint64: |
| 54600 | Text.Op = PrintName("StoreBitFieldActivatePopSint64" ); |
| 54601 | break; |
| 54602 | case OP_StoreBitFieldActivatePopUint64: |
| 54603 | Text.Op = PrintName("StoreBitFieldActivatePopUint64" ); |
| 54604 | break; |
| 54605 | case OP_StoreBitFieldActivatePopIntAP: |
| 54606 | Text.Op = PrintName("StoreBitFieldActivatePopIntAP" ); |
| 54607 | break; |
| 54608 | case OP_StoreBitFieldActivatePopIntAPS: |
| 54609 | Text.Op = PrintName("StoreBitFieldActivatePopIntAPS" ); |
| 54610 | break; |
| 54611 | case OP_StoreBitFieldActivatePopBool: |
| 54612 | Text.Op = PrintName("StoreBitFieldActivatePopBool" ); |
| 54613 | break; |
| 54614 | case OP_StoreBitFieldActivatePopFixedPoint: |
| 54615 | Text.Op = PrintName("StoreBitFieldActivatePopFixedPoint" ); |
| 54616 | break; |
| 54617 | #endif |
| 54618 | #if defined(GET_EVAL_PROTO) || defined(GET_LINK_PROTO) |
| 54619 | bool emitStoreBitFieldActivatePopSint8(SourceInfo); |
| 54620 | bool emitStoreBitFieldActivatePopUint8(SourceInfo); |
| 54621 | bool emitStoreBitFieldActivatePopSint16(SourceInfo); |
| 54622 | bool emitStoreBitFieldActivatePopUint16(SourceInfo); |
| 54623 | bool emitStoreBitFieldActivatePopSint32(SourceInfo); |
| 54624 | bool emitStoreBitFieldActivatePopUint32(SourceInfo); |
| 54625 | bool emitStoreBitFieldActivatePopSint64(SourceInfo); |
| 54626 | bool emitStoreBitFieldActivatePopUint64(SourceInfo); |
| 54627 | bool emitStoreBitFieldActivatePopIntAP(SourceInfo); |
| 54628 | bool emitStoreBitFieldActivatePopIntAPS(SourceInfo); |
| 54629 | bool emitStoreBitFieldActivatePopBool(SourceInfo); |
| 54630 | bool emitStoreBitFieldActivatePopFixedPoint(SourceInfo); |
| 54631 | #endif |
| 54632 | #if defined(GET_EVAL_PROTO) || defined(GET_LINK_PROTO) |
| 54633 | [[nodiscard]] bool emitStoreBitFieldActivatePop(PrimType, SourceInfo I); |
| 54634 | #endif |
| 54635 | #if defined(GET_EVAL_IMPL) || defined(GET_LINK_IMPL) |
| 54636 | bool |
| 54637 | #if defined(GET_EVAL_IMPL) |
| 54638 | EvalEmitter |
| 54639 | #else |
| 54640 | ByteCodeEmitter |
| 54641 | #endif |
| 54642 | ::emitStoreBitFieldActivatePop(PrimType T0, SourceInfo I) { |
| 54643 | switch (T0) { |
| 54644 | case PT_Sint8: |
| 54645 | return emitStoreBitFieldActivatePopSint8(I); |
| 54646 | case PT_Uint8: |
| 54647 | return emitStoreBitFieldActivatePopUint8(I); |
| 54648 | case PT_Sint16: |
| 54649 | return emitStoreBitFieldActivatePopSint16(I); |
| 54650 | case PT_Uint16: |
| 54651 | return emitStoreBitFieldActivatePopUint16(I); |
| 54652 | case PT_Sint32: |
| 54653 | return emitStoreBitFieldActivatePopSint32(I); |
| 54654 | case PT_Uint32: |
| 54655 | return emitStoreBitFieldActivatePopUint32(I); |
| 54656 | case PT_Sint64: |
| 54657 | return emitStoreBitFieldActivatePopSint64(I); |
| 54658 | case PT_Uint64: |
| 54659 | return emitStoreBitFieldActivatePopUint64(I); |
| 54660 | case PT_IntAP: |
| 54661 | return emitStoreBitFieldActivatePopIntAP(I); |
| 54662 | case PT_IntAPS: |
| 54663 | return emitStoreBitFieldActivatePopIntAPS(I); |
| 54664 | case PT_Bool: |
| 54665 | return emitStoreBitFieldActivatePopBool(I); |
| 54666 | case PT_FixedPoint: |
| 54667 | return emitStoreBitFieldActivatePopFixedPoint(I); |
| 54668 | default: llvm_unreachable("invalid type: emitStoreBitFieldActivatePop" ); |
| 54669 | } |
| 54670 | llvm_unreachable("invalid enum value" ); |
| 54671 | } |
| 54672 | #endif |
| 54673 | #ifdef GET_LINK_IMPL |
| 54674 | bool ByteCodeEmitter::emitStoreBitFieldActivatePopSint8(SourceInfo L) { |
| 54675 | return emitOp<>(OP_StoreBitFieldActivatePopSint8, L); |
| 54676 | } |
| 54677 | bool ByteCodeEmitter::emitStoreBitFieldActivatePopUint8(SourceInfo L) { |
| 54678 | return emitOp<>(OP_StoreBitFieldActivatePopUint8, L); |
| 54679 | } |
| 54680 | bool ByteCodeEmitter::emitStoreBitFieldActivatePopSint16(SourceInfo L) { |
| 54681 | return emitOp<>(OP_StoreBitFieldActivatePopSint16, L); |
| 54682 | } |
| 54683 | bool ByteCodeEmitter::emitStoreBitFieldActivatePopUint16(SourceInfo L) { |
| 54684 | return emitOp<>(OP_StoreBitFieldActivatePopUint16, L); |
| 54685 | } |
| 54686 | bool ByteCodeEmitter::emitStoreBitFieldActivatePopSint32(SourceInfo L) { |
| 54687 | return emitOp<>(OP_StoreBitFieldActivatePopSint32, L); |
| 54688 | } |
| 54689 | bool ByteCodeEmitter::emitStoreBitFieldActivatePopUint32(SourceInfo L) { |
| 54690 | return emitOp<>(OP_StoreBitFieldActivatePopUint32, L); |
| 54691 | } |
| 54692 | bool ByteCodeEmitter::emitStoreBitFieldActivatePopSint64(SourceInfo L) { |
| 54693 | return emitOp<>(OP_StoreBitFieldActivatePopSint64, L); |
| 54694 | } |
| 54695 | bool ByteCodeEmitter::emitStoreBitFieldActivatePopUint64(SourceInfo L) { |
| 54696 | return emitOp<>(OP_StoreBitFieldActivatePopUint64, L); |
| 54697 | } |
| 54698 | bool ByteCodeEmitter::emitStoreBitFieldActivatePopIntAP(SourceInfo L) { |
| 54699 | return emitOp<>(OP_StoreBitFieldActivatePopIntAP, L); |
| 54700 | } |
| 54701 | bool ByteCodeEmitter::emitStoreBitFieldActivatePopIntAPS(SourceInfo L) { |
| 54702 | return emitOp<>(OP_StoreBitFieldActivatePopIntAPS, L); |
| 54703 | } |
| 54704 | bool ByteCodeEmitter::emitStoreBitFieldActivatePopBool(SourceInfo L) { |
| 54705 | return emitOp<>(OP_StoreBitFieldActivatePopBool, L); |
| 54706 | } |
| 54707 | bool ByteCodeEmitter::emitStoreBitFieldActivatePopFixedPoint(SourceInfo L) { |
| 54708 | return emitOp<>(OP_StoreBitFieldActivatePopFixedPoint, L); |
| 54709 | } |
| 54710 | #endif |
| 54711 | #ifdef GET_EVAL_IMPL |
| 54712 | bool EvalEmitter::emitStoreBitFieldActivatePopSint8(SourceInfo L) { |
| 54713 | if (!isActive()) return true; |
| 54714 | CurrentSource = L; |
| 54715 | return StoreBitFieldActivatePop<PT_Sint8>(S, CodePtr()); |
| 54716 | } |
| 54717 | bool EvalEmitter::emitStoreBitFieldActivatePopUint8(SourceInfo L) { |
| 54718 | if (!isActive()) return true; |
| 54719 | CurrentSource = L; |
| 54720 | return StoreBitFieldActivatePop<PT_Uint8>(S, CodePtr()); |
| 54721 | } |
| 54722 | bool EvalEmitter::emitStoreBitFieldActivatePopSint16(SourceInfo L) { |
| 54723 | if (!isActive()) return true; |
| 54724 | CurrentSource = L; |
| 54725 | return StoreBitFieldActivatePop<PT_Sint16>(S, CodePtr()); |
| 54726 | } |
| 54727 | bool EvalEmitter::emitStoreBitFieldActivatePopUint16(SourceInfo L) { |
| 54728 | if (!isActive()) return true; |
| 54729 | CurrentSource = L; |
| 54730 | return StoreBitFieldActivatePop<PT_Uint16>(S, CodePtr()); |
| 54731 | } |
| 54732 | bool EvalEmitter::emitStoreBitFieldActivatePopSint32(SourceInfo L) { |
| 54733 | if (!isActive()) return true; |
| 54734 | CurrentSource = L; |
| 54735 | return StoreBitFieldActivatePop<PT_Sint32>(S, CodePtr()); |
| 54736 | } |
| 54737 | bool EvalEmitter::emitStoreBitFieldActivatePopUint32(SourceInfo L) { |
| 54738 | if (!isActive()) return true; |
| 54739 | CurrentSource = L; |
| 54740 | return StoreBitFieldActivatePop<PT_Uint32>(S, CodePtr()); |
| 54741 | } |
| 54742 | bool EvalEmitter::emitStoreBitFieldActivatePopSint64(SourceInfo L) { |
| 54743 | if (!isActive()) return true; |
| 54744 | CurrentSource = L; |
| 54745 | return StoreBitFieldActivatePop<PT_Sint64>(S, CodePtr()); |
| 54746 | } |
| 54747 | bool EvalEmitter::emitStoreBitFieldActivatePopUint64(SourceInfo L) { |
| 54748 | if (!isActive()) return true; |
| 54749 | CurrentSource = L; |
| 54750 | return StoreBitFieldActivatePop<PT_Uint64>(S, CodePtr()); |
| 54751 | } |
| 54752 | bool EvalEmitter::emitStoreBitFieldActivatePopIntAP(SourceInfo L) { |
| 54753 | if (!isActive()) return true; |
| 54754 | CurrentSource = L; |
| 54755 | return StoreBitFieldActivatePop<PT_IntAP>(S, CodePtr()); |
| 54756 | } |
| 54757 | bool EvalEmitter::emitStoreBitFieldActivatePopIntAPS(SourceInfo L) { |
| 54758 | if (!isActive()) return true; |
| 54759 | CurrentSource = L; |
| 54760 | return StoreBitFieldActivatePop<PT_IntAPS>(S, CodePtr()); |
| 54761 | } |
| 54762 | bool EvalEmitter::emitStoreBitFieldActivatePopBool(SourceInfo L) { |
| 54763 | if (!isActive()) return true; |
| 54764 | CurrentSource = L; |
| 54765 | return StoreBitFieldActivatePop<PT_Bool>(S, CodePtr()); |
| 54766 | } |
| 54767 | bool EvalEmitter::emitStoreBitFieldActivatePopFixedPoint(SourceInfo L) { |
| 54768 | if (!isActive()) return true; |
| 54769 | CurrentSource = L; |
| 54770 | return StoreBitFieldActivatePop<PT_FixedPoint>(S, CodePtr()); |
| 54771 | } |
| 54772 | #endif |
| 54773 | #ifdef GET_OPCODE_NAMES |
| 54774 | OP_StoreBitFieldPopSint8, |
| 54775 | OP_StoreBitFieldPopUint8, |
| 54776 | OP_StoreBitFieldPopSint16, |
| 54777 | OP_StoreBitFieldPopUint16, |
| 54778 | OP_StoreBitFieldPopSint32, |
| 54779 | OP_StoreBitFieldPopUint32, |
| 54780 | OP_StoreBitFieldPopSint64, |
| 54781 | OP_StoreBitFieldPopUint64, |
| 54782 | OP_StoreBitFieldPopIntAP, |
| 54783 | OP_StoreBitFieldPopIntAPS, |
| 54784 | OP_StoreBitFieldPopBool, |
| 54785 | OP_StoreBitFieldPopFixedPoint, |
| 54786 | #endif |
| 54787 | #ifdef GET_INTERPFN_LIST |
| 54788 | &Interp_StoreBitFieldPopSint8, |
| 54789 | &Interp_StoreBitFieldPopUint8, |
| 54790 | &Interp_StoreBitFieldPopSint16, |
| 54791 | &Interp_StoreBitFieldPopUint16, |
| 54792 | &Interp_StoreBitFieldPopSint32, |
| 54793 | &Interp_StoreBitFieldPopUint32, |
| 54794 | &Interp_StoreBitFieldPopSint64, |
| 54795 | &Interp_StoreBitFieldPopUint64, |
| 54796 | &Interp_StoreBitFieldPopIntAP, |
| 54797 | &Interp_StoreBitFieldPopIntAPS, |
| 54798 | &Interp_StoreBitFieldPopBool, |
| 54799 | &Interp_StoreBitFieldPopFixedPoint, |
| 54800 | #endif |
| 54801 | #ifdef GET_INTERPFN_DISPATCHERS |
| 54802 | PRESERVE_NONE |
| 54803 | static bool Interp_StoreBitFieldPopSint8(InterpState &S) { |
| 54804 | if (!StoreBitFieldPop<PT_Sint8>(S, S.PC)) return false; |
| 54805 | #if USE_TAILCALLS |
| 54806 | MUSTTAIL return InterpNext(S); |
| 54807 | #else |
| 54808 | return true; |
| 54809 | #endif |
| 54810 | } |
| 54811 | PRESERVE_NONE |
| 54812 | static bool Interp_StoreBitFieldPopUint8(InterpState &S) { |
| 54813 | if (!StoreBitFieldPop<PT_Uint8>(S, S.PC)) return false; |
| 54814 | #if USE_TAILCALLS |
| 54815 | MUSTTAIL return InterpNext(S); |
| 54816 | #else |
| 54817 | return true; |
| 54818 | #endif |
| 54819 | } |
| 54820 | PRESERVE_NONE |
| 54821 | static bool Interp_StoreBitFieldPopSint16(InterpState &S) { |
| 54822 | if (!StoreBitFieldPop<PT_Sint16>(S, S.PC)) return false; |
| 54823 | #if USE_TAILCALLS |
| 54824 | MUSTTAIL return InterpNext(S); |
| 54825 | #else |
| 54826 | return true; |
| 54827 | #endif |
| 54828 | } |
| 54829 | PRESERVE_NONE |
| 54830 | static bool Interp_StoreBitFieldPopUint16(InterpState &S) { |
| 54831 | if (!StoreBitFieldPop<PT_Uint16>(S, S.PC)) return false; |
| 54832 | #if USE_TAILCALLS |
| 54833 | MUSTTAIL return InterpNext(S); |
| 54834 | #else |
| 54835 | return true; |
| 54836 | #endif |
| 54837 | } |
| 54838 | PRESERVE_NONE |
| 54839 | static bool Interp_StoreBitFieldPopSint32(InterpState &S) { |
| 54840 | if (!StoreBitFieldPop<PT_Sint32>(S, S.PC)) return false; |
| 54841 | #if USE_TAILCALLS |
| 54842 | MUSTTAIL return InterpNext(S); |
| 54843 | #else |
| 54844 | return true; |
| 54845 | #endif |
| 54846 | } |
| 54847 | PRESERVE_NONE |
| 54848 | static bool Interp_StoreBitFieldPopUint32(InterpState &S) { |
| 54849 | if (!StoreBitFieldPop<PT_Uint32>(S, S.PC)) return false; |
| 54850 | #if USE_TAILCALLS |
| 54851 | MUSTTAIL return InterpNext(S); |
| 54852 | #else |
| 54853 | return true; |
| 54854 | #endif |
| 54855 | } |
| 54856 | PRESERVE_NONE |
| 54857 | static bool Interp_StoreBitFieldPopSint64(InterpState &S) { |
| 54858 | if (!StoreBitFieldPop<PT_Sint64>(S, S.PC)) return false; |
| 54859 | #if USE_TAILCALLS |
| 54860 | MUSTTAIL return InterpNext(S); |
| 54861 | #else |
| 54862 | return true; |
| 54863 | #endif |
| 54864 | } |
| 54865 | PRESERVE_NONE |
| 54866 | static bool Interp_StoreBitFieldPopUint64(InterpState &S) { |
| 54867 | if (!StoreBitFieldPop<PT_Uint64>(S, S.PC)) return false; |
| 54868 | #if USE_TAILCALLS |
| 54869 | MUSTTAIL return InterpNext(S); |
| 54870 | #else |
| 54871 | return true; |
| 54872 | #endif |
| 54873 | } |
| 54874 | PRESERVE_NONE |
| 54875 | static bool Interp_StoreBitFieldPopIntAP(InterpState &S) { |
| 54876 | if (!StoreBitFieldPop<PT_IntAP>(S, S.PC)) return false; |
| 54877 | #if USE_TAILCALLS |
| 54878 | MUSTTAIL return InterpNext(S); |
| 54879 | #else |
| 54880 | return true; |
| 54881 | #endif |
| 54882 | } |
| 54883 | PRESERVE_NONE |
| 54884 | static bool Interp_StoreBitFieldPopIntAPS(InterpState &S) { |
| 54885 | if (!StoreBitFieldPop<PT_IntAPS>(S, S.PC)) return false; |
| 54886 | #if USE_TAILCALLS |
| 54887 | MUSTTAIL return InterpNext(S); |
| 54888 | #else |
| 54889 | return true; |
| 54890 | #endif |
| 54891 | } |
| 54892 | PRESERVE_NONE |
| 54893 | static bool Interp_StoreBitFieldPopBool(InterpState &S) { |
| 54894 | if (!StoreBitFieldPop<PT_Bool>(S, S.PC)) return false; |
| 54895 | #if USE_TAILCALLS |
| 54896 | MUSTTAIL return InterpNext(S); |
| 54897 | #else |
| 54898 | return true; |
| 54899 | #endif |
| 54900 | } |
| 54901 | PRESERVE_NONE |
| 54902 | static bool Interp_StoreBitFieldPopFixedPoint(InterpState &S) { |
| 54903 | if (!StoreBitFieldPop<PT_FixedPoint>(S, S.PC)) return false; |
| 54904 | #if USE_TAILCALLS |
| 54905 | MUSTTAIL return InterpNext(S); |
| 54906 | #else |
| 54907 | return true; |
| 54908 | #endif |
| 54909 | } |
| 54910 | #endif |
| 54911 | #ifdef GET_DISASM |
| 54912 | case OP_StoreBitFieldPopSint8: |
| 54913 | Text.Op = PrintName("StoreBitFieldPopSint8" ); |
| 54914 | break; |
| 54915 | case OP_StoreBitFieldPopUint8: |
| 54916 | Text.Op = PrintName("StoreBitFieldPopUint8" ); |
| 54917 | break; |
| 54918 | case OP_StoreBitFieldPopSint16: |
| 54919 | Text.Op = PrintName("StoreBitFieldPopSint16" ); |
| 54920 | break; |
| 54921 | case OP_StoreBitFieldPopUint16: |
| 54922 | Text.Op = PrintName("StoreBitFieldPopUint16" ); |
| 54923 | break; |
| 54924 | case OP_StoreBitFieldPopSint32: |
| 54925 | Text.Op = PrintName("StoreBitFieldPopSint32" ); |
| 54926 | break; |
| 54927 | case OP_StoreBitFieldPopUint32: |
| 54928 | Text.Op = PrintName("StoreBitFieldPopUint32" ); |
| 54929 | break; |
| 54930 | case OP_StoreBitFieldPopSint64: |
| 54931 | Text.Op = PrintName("StoreBitFieldPopSint64" ); |
| 54932 | break; |
| 54933 | case OP_StoreBitFieldPopUint64: |
| 54934 | Text.Op = PrintName("StoreBitFieldPopUint64" ); |
| 54935 | break; |
| 54936 | case OP_StoreBitFieldPopIntAP: |
| 54937 | Text.Op = PrintName("StoreBitFieldPopIntAP" ); |
| 54938 | break; |
| 54939 | case OP_StoreBitFieldPopIntAPS: |
| 54940 | Text.Op = PrintName("StoreBitFieldPopIntAPS" ); |
| 54941 | break; |
| 54942 | case OP_StoreBitFieldPopBool: |
| 54943 | Text.Op = PrintName("StoreBitFieldPopBool" ); |
| 54944 | break; |
| 54945 | case OP_StoreBitFieldPopFixedPoint: |
| 54946 | Text.Op = PrintName("StoreBitFieldPopFixedPoint" ); |
| 54947 | break; |
| 54948 | #endif |
| 54949 | #if defined(GET_EVAL_PROTO) || defined(GET_LINK_PROTO) |
| 54950 | bool emitStoreBitFieldPopSint8(SourceInfo); |
| 54951 | bool emitStoreBitFieldPopUint8(SourceInfo); |
| 54952 | bool emitStoreBitFieldPopSint16(SourceInfo); |
| 54953 | bool emitStoreBitFieldPopUint16(SourceInfo); |
| 54954 | bool emitStoreBitFieldPopSint32(SourceInfo); |
| 54955 | bool emitStoreBitFieldPopUint32(SourceInfo); |
| 54956 | bool emitStoreBitFieldPopSint64(SourceInfo); |
| 54957 | bool emitStoreBitFieldPopUint64(SourceInfo); |
| 54958 | bool emitStoreBitFieldPopIntAP(SourceInfo); |
| 54959 | bool emitStoreBitFieldPopIntAPS(SourceInfo); |
| 54960 | bool emitStoreBitFieldPopBool(SourceInfo); |
| 54961 | bool emitStoreBitFieldPopFixedPoint(SourceInfo); |
| 54962 | #endif |
| 54963 | #if defined(GET_EVAL_PROTO) || defined(GET_LINK_PROTO) |
| 54964 | [[nodiscard]] bool emitStoreBitFieldPop(PrimType, SourceInfo I); |
| 54965 | #endif |
| 54966 | #if defined(GET_EVAL_IMPL) || defined(GET_LINK_IMPL) |
| 54967 | bool |
| 54968 | #if defined(GET_EVAL_IMPL) |
| 54969 | EvalEmitter |
| 54970 | #else |
| 54971 | ByteCodeEmitter |
| 54972 | #endif |
| 54973 | ::emitStoreBitFieldPop(PrimType T0, SourceInfo I) { |
| 54974 | switch (T0) { |
| 54975 | case PT_Sint8: |
| 54976 | return emitStoreBitFieldPopSint8(I); |
| 54977 | case PT_Uint8: |
| 54978 | return emitStoreBitFieldPopUint8(I); |
| 54979 | case PT_Sint16: |
| 54980 | return emitStoreBitFieldPopSint16(I); |
| 54981 | case PT_Uint16: |
| 54982 | return emitStoreBitFieldPopUint16(I); |
| 54983 | case PT_Sint32: |
| 54984 | return emitStoreBitFieldPopSint32(I); |
| 54985 | case PT_Uint32: |
| 54986 | return emitStoreBitFieldPopUint32(I); |
| 54987 | case PT_Sint64: |
| 54988 | return emitStoreBitFieldPopSint64(I); |
| 54989 | case PT_Uint64: |
| 54990 | return emitStoreBitFieldPopUint64(I); |
| 54991 | case PT_IntAP: |
| 54992 | return emitStoreBitFieldPopIntAP(I); |
| 54993 | case PT_IntAPS: |
| 54994 | return emitStoreBitFieldPopIntAPS(I); |
| 54995 | case PT_Bool: |
| 54996 | return emitStoreBitFieldPopBool(I); |
| 54997 | case PT_FixedPoint: |
| 54998 | return emitStoreBitFieldPopFixedPoint(I); |
| 54999 | default: llvm_unreachable("invalid type: emitStoreBitFieldPop" ); |
| 55000 | } |
| 55001 | llvm_unreachable("invalid enum value" ); |
| 55002 | } |
| 55003 | #endif |
| 55004 | #ifdef GET_LINK_IMPL |
| 55005 | bool ByteCodeEmitter::emitStoreBitFieldPopSint8(SourceInfo L) { |
| 55006 | return emitOp<>(OP_StoreBitFieldPopSint8, L); |
| 55007 | } |
| 55008 | bool ByteCodeEmitter::emitStoreBitFieldPopUint8(SourceInfo L) { |
| 55009 | return emitOp<>(OP_StoreBitFieldPopUint8, L); |
| 55010 | } |
| 55011 | bool ByteCodeEmitter::emitStoreBitFieldPopSint16(SourceInfo L) { |
| 55012 | return emitOp<>(OP_StoreBitFieldPopSint16, L); |
| 55013 | } |
| 55014 | bool ByteCodeEmitter::emitStoreBitFieldPopUint16(SourceInfo L) { |
| 55015 | return emitOp<>(OP_StoreBitFieldPopUint16, L); |
| 55016 | } |
| 55017 | bool ByteCodeEmitter::emitStoreBitFieldPopSint32(SourceInfo L) { |
| 55018 | return emitOp<>(OP_StoreBitFieldPopSint32, L); |
| 55019 | } |
| 55020 | bool ByteCodeEmitter::emitStoreBitFieldPopUint32(SourceInfo L) { |
| 55021 | return emitOp<>(OP_StoreBitFieldPopUint32, L); |
| 55022 | } |
| 55023 | bool ByteCodeEmitter::emitStoreBitFieldPopSint64(SourceInfo L) { |
| 55024 | return emitOp<>(OP_StoreBitFieldPopSint64, L); |
| 55025 | } |
| 55026 | bool ByteCodeEmitter::emitStoreBitFieldPopUint64(SourceInfo L) { |
| 55027 | return emitOp<>(OP_StoreBitFieldPopUint64, L); |
| 55028 | } |
| 55029 | bool ByteCodeEmitter::emitStoreBitFieldPopIntAP(SourceInfo L) { |
| 55030 | return emitOp<>(OP_StoreBitFieldPopIntAP, L); |
| 55031 | } |
| 55032 | bool ByteCodeEmitter::emitStoreBitFieldPopIntAPS(SourceInfo L) { |
| 55033 | return emitOp<>(OP_StoreBitFieldPopIntAPS, L); |
| 55034 | } |
| 55035 | bool ByteCodeEmitter::emitStoreBitFieldPopBool(SourceInfo L) { |
| 55036 | return emitOp<>(OP_StoreBitFieldPopBool, L); |
| 55037 | } |
| 55038 | bool ByteCodeEmitter::emitStoreBitFieldPopFixedPoint(SourceInfo L) { |
| 55039 | return emitOp<>(OP_StoreBitFieldPopFixedPoint, L); |
| 55040 | } |
| 55041 | #endif |
| 55042 | #ifdef GET_EVAL_IMPL |
| 55043 | bool EvalEmitter::emitStoreBitFieldPopSint8(SourceInfo L) { |
| 55044 | if (!isActive()) return true; |
| 55045 | CurrentSource = L; |
| 55046 | return StoreBitFieldPop<PT_Sint8>(S, CodePtr()); |
| 55047 | } |
| 55048 | bool EvalEmitter::emitStoreBitFieldPopUint8(SourceInfo L) { |
| 55049 | if (!isActive()) return true; |
| 55050 | CurrentSource = L; |
| 55051 | return StoreBitFieldPop<PT_Uint8>(S, CodePtr()); |
| 55052 | } |
| 55053 | bool EvalEmitter::emitStoreBitFieldPopSint16(SourceInfo L) { |
| 55054 | if (!isActive()) return true; |
| 55055 | CurrentSource = L; |
| 55056 | return StoreBitFieldPop<PT_Sint16>(S, CodePtr()); |
| 55057 | } |
| 55058 | bool EvalEmitter::emitStoreBitFieldPopUint16(SourceInfo L) { |
| 55059 | if (!isActive()) return true; |
| 55060 | CurrentSource = L; |
| 55061 | return StoreBitFieldPop<PT_Uint16>(S, CodePtr()); |
| 55062 | } |
| 55063 | bool EvalEmitter::emitStoreBitFieldPopSint32(SourceInfo L) { |
| 55064 | if (!isActive()) return true; |
| 55065 | CurrentSource = L; |
| 55066 | return StoreBitFieldPop<PT_Sint32>(S, CodePtr()); |
| 55067 | } |
| 55068 | bool EvalEmitter::emitStoreBitFieldPopUint32(SourceInfo L) { |
| 55069 | if (!isActive()) return true; |
| 55070 | CurrentSource = L; |
| 55071 | return StoreBitFieldPop<PT_Uint32>(S, CodePtr()); |
| 55072 | } |
| 55073 | bool EvalEmitter::emitStoreBitFieldPopSint64(SourceInfo L) { |
| 55074 | if (!isActive()) return true; |
| 55075 | CurrentSource = L; |
| 55076 | return StoreBitFieldPop<PT_Sint64>(S, CodePtr()); |
| 55077 | } |
| 55078 | bool EvalEmitter::emitStoreBitFieldPopUint64(SourceInfo L) { |
| 55079 | if (!isActive()) return true; |
| 55080 | CurrentSource = L; |
| 55081 | return StoreBitFieldPop<PT_Uint64>(S, CodePtr()); |
| 55082 | } |
| 55083 | bool EvalEmitter::emitStoreBitFieldPopIntAP(SourceInfo L) { |
| 55084 | if (!isActive()) return true; |
| 55085 | CurrentSource = L; |
| 55086 | return StoreBitFieldPop<PT_IntAP>(S, CodePtr()); |
| 55087 | } |
| 55088 | bool EvalEmitter::emitStoreBitFieldPopIntAPS(SourceInfo L) { |
| 55089 | if (!isActive()) return true; |
| 55090 | CurrentSource = L; |
| 55091 | return StoreBitFieldPop<PT_IntAPS>(S, CodePtr()); |
| 55092 | } |
| 55093 | bool EvalEmitter::emitStoreBitFieldPopBool(SourceInfo L) { |
| 55094 | if (!isActive()) return true; |
| 55095 | CurrentSource = L; |
| 55096 | return StoreBitFieldPop<PT_Bool>(S, CodePtr()); |
| 55097 | } |
| 55098 | bool EvalEmitter::emitStoreBitFieldPopFixedPoint(SourceInfo L) { |
| 55099 | if (!isActive()) return true; |
| 55100 | CurrentSource = L; |
| 55101 | return StoreBitFieldPop<PT_FixedPoint>(S, CodePtr()); |
| 55102 | } |
| 55103 | #endif |
| 55104 | #ifdef GET_OPCODE_NAMES |
| 55105 | OP_StorePopSint8, |
| 55106 | OP_StorePopUint8, |
| 55107 | OP_StorePopSint16, |
| 55108 | OP_StorePopUint16, |
| 55109 | OP_StorePopSint32, |
| 55110 | OP_StorePopUint32, |
| 55111 | OP_StorePopSint64, |
| 55112 | OP_StorePopUint64, |
| 55113 | OP_StorePopIntAP, |
| 55114 | OP_StorePopIntAPS, |
| 55115 | OP_StorePopBool, |
| 55116 | OP_StorePopFixedPoint, |
| 55117 | OP_StorePopPtr, |
| 55118 | OP_StorePopMemberPtr, |
| 55119 | OP_StorePopFloat, |
| 55120 | OP_StorePopReflect, |
| 55121 | #endif |
| 55122 | #ifdef GET_INTERPFN_LIST |
| 55123 | &Interp_StorePopSint8, |
| 55124 | &Interp_StorePopUint8, |
| 55125 | &Interp_StorePopSint16, |
| 55126 | &Interp_StorePopUint16, |
| 55127 | &Interp_StorePopSint32, |
| 55128 | &Interp_StorePopUint32, |
| 55129 | &Interp_StorePopSint64, |
| 55130 | &Interp_StorePopUint64, |
| 55131 | &Interp_StorePopIntAP, |
| 55132 | &Interp_StorePopIntAPS, |
| 55133 | &Interp_StorePopBool, |
| 55134 | &Interp_StorePopFixedPoint, |
| 55135 | &Interp_StorePopPtr, |
| 55136 | &Interp_StorePopMemberPtr, |
| 55137 | &Interp_StorePopFloat, |
| 55138 | &Interp_StorePopReflect, |
| 55139 | #endif |
| 55140 | #ifdef GET_INTERPFN_DISPATCHERS |
| 55141 | PRESERVE_NONE |
| 55142 | static bool Interp_StorePopSint8(InterpState &S) { |
| 55143 | if (!StorePop<PT_Sint8>(S, S.PC)) return false; |
| 55144 | #if USE_TAILCALLS |
| 55145 | MUSTTAIL return InterpNext(S); |
| 55146 | #else |
| 55147 | return true; |
| 55148 | #endif |
| 55149 | } |
| 55150 | PRESERVE_NONE |
| 55151 | static bool Interp_StorePopUint8(InterpState &S) { |
| 55152 | if (!StorePop<PT_Uint8>(S, S.PC)) return false; |
| 55153 | #if USE_TAILCALLS |
| 55154 | MUSTTAIL return InterpNext(S); |
| 55155 | #else |
| 55156 | return true; |
| 55157 | #endif |
| 55158 | } |
| 55159 | PRESERVE_NONE |
| 55160 | static bool Interp_StorePopSint16(InterpState &S) { |
| 55161 | if (!StorePop<PT_Sint16>(S, S.PC)) return false; |
| 55162 | #if USE_TAILCALLS |
| 55163 | MUSTTAIL return InterpNext(S); |
| 55164 | #else |
| 55165 | return true; |
| 55166 | #endif |
| 55167 | } |
| 55168 | PRESERVE_NONE |
| 55169 | static bool Interp_StorePopUint16(InterpState &S) { |
| 55170 | if (!StorePop<PT_Uint16>(S, S.PC)) return false; |
| 55171 | #if USE_TAILCALLS |
| 55172 | MUSTTAIL return InterpNext(S); |
| 55173 | #else |
| 55174 | return true; |
| 55175 | #endif |
| 55176 | } |
| 55177 | PRESERVE_NONE |
| 55178 | static bool Interp_StorePopSint32(InterpState &S) { |
| 55179 | if (!StorePop<PT_Sint32>(S, S.PC)) return false; |
| 55180 | #if USE_TAILCALLS |
| 55181 | MUSTTAIL return InterpNext(S); |
| 55182 | #else |
| 55183 | return true; |
| 55184 | #endif |
| 55185 | } |
| 55186 | PRESERVE_NONE |
| 55187 | static bool Interp_StorePopUint32(InterpState &S) { |
| 55188 | if (!StorePop<PT_Uint32>(S, S.PC)) return false; |
| 55189 | #if USE_TAILCALLS |
| 55190 | MUSTTAIL return InterpNext(S); |
| 55191 | #else |
| 55192 | return true; |
| 55193 | #endif |
| 55194 | } |
| 55195 | PRESERVE_NONE |
| 55196 | static bool Interp_StorePopSint64(InterpState &S) { |
| 55197 | if (!StorePop<PT_Sint64>(S, S.PC)) return false; |
| 55198 | #if USE_TAILCALLS |
| 55199 | MUSTTAIL return InterpNext(S); |
| 55200 | #else |
| 55201 | return true; |
| 55202 | #endif |
| 55203 | } |
| 55204 | PRESERVE_NONE |
| 55205 | static bool Interp_StorePopUint64(InterpState &S) { |
| 55206 | if (!StorePop<PT_Uint64>(S, S.PC)) return false; |
| 55207 | #if USE_TAILCALLS |
| 55208 | MUSTTAIL return InterpNext(S); |
| 55209 | #else |
| 55210 | return true; |
| 55211 | #endif |
| 55212 | } |
| 55213 | PRESERVE_NONE |
| 55214 | static bool Interp_StorePopIntAP(InterpState &S) { |
| 55215 | if (!StorePop<PT_IntAP>(S, S.PC)) return false; |
| 55216 | #if USE_TAILCALLS |
| 55217 | MUSTTAIL return InterpNext(S); |
| 55218 | #else |
| 55219 | return true; |
| 55220 | #endif |
| 55221 | } |
| 55222 | PRESERVE_NONE |
| 55223 | static bool Interp_StorePopIntAPS(InterpState &S) { |
| 55224 | if (!StorePop<PT_IntAPS>(S, S.PC)) return false; |
| 55225 | #if USE_TAILCALLS |
| 55226 | MUSTTAIL return InterpNext(S); |
| 55227 | #else |
| 55228 | return true; |
| 55229 | #endif |
| 55230 | } |
| 55231 | PRESERVE_NONE |
| 55232 | static bool Interp_StorePopBool(InterpState &S) { |
| 55233 | if (!StorePop<PT_Bool>(S, S.PC)) return false; |
| 55234 | #if USE_TAILCALLS |
| 55235 | MUSTTAIL return InterpNext(S); |
| 55236 | #else |
| 55237 | return true; |
| 55238 | #endif |
| 55239 | } |
| 55240 | PRESERVE_NONE |
| 55241 | static bool Interp_StorePopFixedPoint(InterpState &S) { |
| 55242 | if (!StorePop<PT_FixedPoint>(S, S.PC)) return false; |
| 55243 | #if USE_TAILCALLS |
| 55244 | MUSTTAIL return InterpNext(S); |
| 55245 | #else |
| 55246 | return true; |
| 55247 | #endif |
| 55248 | } |
| 55249 | PRESERVE_NONE |
| 55250 | static bool Interp_StorePopPtr(InterpState &S) { |
| 55251 | if (!StorePop<PT_Ptr>(S, S.PC)) return false; |
| 55252 | #if USE_TAILCALLS |
| 55253 | MUSTTAIL return InterpNext(S); |
| 55254 | #else |
| 55255 | return true; |
| 55256 | #endif |
| 55257 | } |
| 55258 | PRESERVE_NONE |
| 55259 | static bool Interp_StorePopMemberPtr(InterpState &S) { |
| 55260 | if (!StorePop<PT_MemberPtr>(S, S.PC)) return false; |
| 55261 | #if USE_TAILCALLS |
| 55262 | MUSTTAIL return InterpNext(S); |
| 55263 | #else |
| 55264 | return true; |
| 55265 | #endif |
| 55266 | } |
| 55267 | PRESERVE_NONE |
| 55268 | static bool Interp_StorePopFloat(InterpState &S) { |
| 55269 | if (!StorePop<PT_Float>(S, S.PC)) return false; |
| 55270 | #if USE_TAILCALLS |
| 55271 | MUSTTAIL return InterpNext(S); |
| 55272 | #else |
| 55273 | return true; |
| 55274 | #endif |
| 55275 | } |
| 55276 | PRESERVE_NONE |
| 55277 | static bool Interp_StorePopReflect(InterpState &S) { |
| 55278 | if (!StorePop<PT_Reflect>(S, S.PC)) return false; |
| 55279 | #if USE_TAILCALLS |
| 55280 | MUSTTAIL return InterpNext(S); |
| 55281 | #else |
| 55282 | return true; |
| 55283 | #endif |
| 55284 | } |
| 55285 | #endif |
| 55286 | #ifdef GET_DISASM |
| 55287 | case OP_StorePopSint8: |
| 55288 | Text.Op = PrintName("StorePopSint8" ); |
| 55289 | break; |
| 55290 | case OP_StorePopUint8: |
| 55291 | Text.Op = PrintName("StorePopUint8" ); |
| 55292 | break; |
| 55293 | case OP_StorePopSint16: |
| 55294 | Text.Op = PrintName("StorePopSint16" ); |
| 55295 | break; |
| 55296 | case OP_StorePopUint16: |
| 55297 | Text.Op = PrintName("StorePopUint16" ); |
| 55298 | break; |
| 55299 | case OP_StorePopSint32: |
| 55300 | Text.Op = PrintName("StorePopSint32" ); |
| 55301 | break; |
| 55302 | case OP_StorePopUint32: |
| 55303 | Text.Op = PrintName("StorePopUint32" ); |
| 55304 | break; |
| 55305 | case OP_StorePopSint64: |
| 55306 | Text.Op = PrintName("StorePopSint64" ); |
| 55307 | break; |
| 55308 | case OP_StorePopUint64: |
| 55309 | Text.Op = PrintName("StorePopUint64" ); |
| 55310 | break; |
| 55311 | case OP_StorePopIntAP: |
| 55312 | Text.Op = PrintName("StorePopIntAP" ); |
| 55313 | break; |
| 55314 | case OP_StorePopIntAPS: |
| 55315 | Text.Op = PrintName("StorePopIntAPS" ); |
| 55316 | break; |
| 55317 | case OP_StorePopBool: |
| 55318 | Text.Op = PrintName("StorePopBool" ); |
| 55319 | break; |
| 55320 | case OP_StorePopFixedPoint: |
| 55321 | Text.Op = PrintName("StorePopFixedPoint" ); |
| 55322 | break; |
| 55323 | case OP_StorePopPtr: |
| 55324 | Text.Op = PrintName("StorePopPtr" ); |
| 55325 | break; |
| 55326 | case OP_StorePopMemberPtr: |
| 55327 | Text.Op = PrintName("StorePopMemberPtr" ); |
| 55328 | break; |
| 55329 | case OP_StorePopFloat: |
| 55330 | Text.Op = PrintName("StorePopFloat" ); |
| 55331 | break; |
| 55332 | case OP_StorePopReflect: |
| 55333 | Text.Op = PrintName("StorePopReflect" ); |
| 55334 | break; |
| 55335 | #endif |
| 55336 | #if defined(GET_EVAL_PROTO) || defined(GET_LINK_PROTO) |
| 55337 | bool emitStorePopSint8(SourceInfo); |
| 55338 | bool emitStorePopUint8(SourceInfo); |
| 55339 | bool emitStorePopSint16(SourceInfo); |
| 55340 | bool emitStorePopUint16(SourceInfo); |
| 55341 | bool emitStorePopSint32(SourceInfo); |
| 55342 | bool emitStorePopUint32(SourceInfo); |
| 55343 | bool emitStorePopSint64(SourceInfo); |
| 55344 | bool emitStorePopUint64(SourceInfo); |
| 55345 | bool emitStorePopIntAP(SourceInfo); |
| 55346 | bool emitStorePopIntAPS(SourceInfo); |
| 55347 | bool emitStorePopBool(SourceInfo); |
| 55348 | bool emitStorePopFixedPoint(SourceInfo); |
| 55349 | bool emitStorePopPtr(SourceInfo); |
| 55350 | bool emitStorePopMemberPtr(SourceInfo); |
| 55351 | bool emitStorePopFloat(SourceInfo); |
| 55352 | bool emitStorePopReflect(SourceInfo); |
| 55353 | #endif |
| 55354 | #if defined(GET_EVAL_PROTO) || defined(GET_LINK_PROTO) |
| 55355 | [[nodiscard]] bool emitStorePop(PrimType, SourceInfo I); |
| 55356 | #endif |
| 55357 | #if defined(GET_EVAL_IMPL) || defined(GET_LINK_IMPL) |
| 55358 | bool |
| 55359 | #if defined(GET_EVAL_IMPL) |
| 55360 | EvalEmitter |
| 55361 | #else |
| 55362 | ByteCodeEmitter |
| 55363 | #endif |
| 55364 | ::emitStorePop(PrimType T0, SourceInfo I) { |
| 55365 | switch (T0) { |
| 55366 | case PT_Sint8: |
| 55367 | return emitStorePopSint8(I); |
| 55368 | case PT_Uint8: |
| 55369 | return emitStorePopUint8(I); |
| 55370 | case PT_Sint16: |
| 55371 | return emitStorePopSint16(I); |
| 55372 | case PT_Uint16: |
| 55373 | return emitStorePopUint16(I); |
| 55374 | case PT_Sint32: |
| 55375 | return emitStorePopSint32(I); |
| 55376 | case PT_Uint32: |
| 55377 | return emitStorePopUint32(I); |
| 55378 | case PT_Sint64: |
| 55379 | return emitStorePopSint64(I); |
| 55380 | case PT_Uint64: |
| 55381 | return emitStorePopUint64(I); |
| 55382 | case PT_IntAP: |
| 55383 | return emitStorePopIntAP(I); |
| 55384 | case PT_IntAPS: |
| 55385 | return emitStorePopIntAPS(I); |
| 55386 | case PT_Bool: |
| 55387 | return emitStorePopBool(I); |
| 55388 | case PT_FixedPoint: |
| 55389 | return emitStorePopFixedPoint(I); |
| 55390 | case PT_Ptr: |
| 55391 | return emitStorePopPtr(I); |
| 55392 | case PT_MemberPtr: |
| 55393 | return emitStorePopMemberPtr(I); |
| 55394 | case PT_Float: |
| 55395 | return emitStorePopFloat(I); |
| 55396 | case PT_Reflect: |
| 55397 | return emitStorePopReflect(I); |
| 55398 | } |
| 55399 | llvm_unreachable("invalid enum value" ); |
| 55400 | } |
| 55401 | #endif |
| 55402 | #ifdef GET_LINK_IMPL |
| 55403 | bool ByteCodeEmitter::emitStorePopSint8(SourceInfo L) { |
| 55404 | return emitOp<>(OP_StorePopSint8, L); |
| 55405 | } |
| 55406 | bool ByteCodeEmitter::emitStorePopUint8(SourceInfo L) { |
| 55407 | return emitOp<>(OP_StorePopUint8, L); |
| 55408 | } |
| 55409 | bool ByteCodeEmitter::emitStorePopSint16(SourceInfo L) { |
| 55410 | return emitOp<>(OP_StorePopSint16, L); |
| 55411 | } |
| 55412 | bool ByteCodeEmitter::emitStorePopUint16(SourceInfo L) { |
| 55413 | return emitOp<>(OP_StorePopUint16, L); |
| 55414 | } |
| 55415 | bool ByteCodeEmitter::emitStorePopSint32(SourceInfo L) { |
| 55416 | return emitOp<>(OP_StorePopSint32, L); |
| 55417 | } |
| 55418 | bool ByteCodeEmitter::emitStorePopUint32(SourceInfo L) { |
| 55419 | return emitOp<>(OP_StorePopUint32, L); |
| 55420 | } |
| 55421 | bool ByteCodeEmitter::emitStorePopSint64(SourceInfo L) { |
| 55422 | return emitOp<>(OP_StorePopSint64, L); |
| 55423 | } |
| 55424 | bool ByteCodeEmitter::emitStorePopUint64(SourceInfo L) { |
| 55425 | return emitOp<>(OP_StorePopUint64, L); |
| 55426 | } |
| 55427 | bool ByteCodeEmitter::emitStorePopIntAP(SourceInfo L) { |
| 55428 | return emitOp<>(OP_StorePopIntAP, L); |
| 55429 | } |
| 55430 | bool ByteCodeEmitter::emitStorePopIntAPS(SourceInfo L) { |
| 55431 | return emitOp<>(OP_StorePopIntAPS, L); |
| 55432 | } |
| 55433 | bool ByteCodeEmitter::emitStorePopBool(SourceInfo L) { |
| 55434 | return emitOp<>(OP_StorePopBool, L); |
| 55435 | } |
| 55436 | bool ByteCodeEmitter::emitStorePopFixedPoint(SourceInfo L) { |
| 55437 | return emitOp<>(OP_StorePopFixedPoint, L); |
| 55438 | } |
| 55439 | bool ByteCodeEmitter::emitStorePopPtr(SourceInfo L) { |
| 55440 | return emitOp<>(OP_StorePopPtr, L); |
| 55441 | } |
| 55442 | bool ByteCodeEmitter::emitStorePopMemberPtr(SourceInfo L) { |
| 55443 | return emitOp<>(OP_StorePopMemberPtr, L); |
| 55444 | } |
| 55445 | bool ByteCodeEmitter::emitStorePopFloat(SourceInfo L) { |
| 55446 | return emitOp<>(OP_StorePopFloat, L); |
| 55447 | } |
| 55448 | bool ByteCodeEmitter::emitStorePopReflect(SourceInfo L) { |
| 55449 | return emitOp<>(OP_StorePopReflect, L); |
| 55450 | } |
| 55451 | #endif |
| 55452 | #ifdef GET_EVAL_IMPL |
| 55453 | bool EvalEmitter::emitStorePopSint8(SourceInfo L) { |
| 55454 | if (!isActive()) return true; |
| 55455 | CurrentSource = L; |
| 55456 | return StorePop<PT_Sint8>(S, CodePtr()); |
| 55457 | } |
| 55458 | bool EvalEmitter::emitStorePopUint8(SourceInfo L) { |
| 55459 | if (!isActive()) return true; |
| 55460 | CurrentSource = L; |
| 55461 | return StorePop<PT_Uint8>(S, CodePtr()); |
| 55462 | } |
| 55463 | bool EvalEmitter::emitStorePopSint16(SourceInfo L) { |
| 55464 | if (!isActive()) return true; |
| 55465 | CurrentSource = L; |
| 55466 | return StorePop<PT_Sint16>(S, CodePtr()); |
| 55467 | } |
| 55468 | bool EvalEmitter::emitStorePopUint16(SourceInfo L) { |
| 55469 | if (!isActive()) return true; |
| 55470 | CurrentSource = L; |
| 55471 | return StorePop<PT_Uint16>(S, CodePtr()); |
| 55472 | } |
| 55473 | bool EvalEmitter::emitStorePopSint32(SourceInfo L) { |
| 55474 | if (!isActive()) return true; |
| 55475 | CurrentSource = L; |
| 55476 | return StorePop<PT_Sint32>(S, CodePtr()); |
| 55477 | } |
| 55478 | bool EvalEmitter::emitStorePopUint32(SourceInfo L) { |
| 55479 | if (!isActive()) return true; |
| 55480 | CurrentSource = L; |
| 55481 | return StorePop<PT_Uint32>(S, CodePtr()); |
| 55482 | } |
| 55483 | bool EvalEmitter::emitStorePopSint64(SourceInfo L) { |
| 55484 | if (!isActive()) return true; |
| 55485 | CurrentSource = L; |
| 55486 | return StorePop<PT_Sint64>(S, CodePtr()); |
| 55487 | } |
| 55488 | bool EvalEmitter::emitStorePopUint64(SourceInfo L) { |
| 55489 | if (!isActive()) return true; |
| 55490 | CurrentSource = L; |
| 55491 | return StorePop<PT_Uint64>(S, CodePtr()); |
| 55492 | } |
| 55493 | bool EvalEmitter::emitStorePopIntAP(SourceInfo L) { |
| 55494 | if (!isActive()) return true; |
| 55495 | CurrentSource = L; |
| 55496 | return StorePop<PT_IntAP>(S, CodePtr()); |
| 55497 | } |
| 55498 | bool EvalEmitter::emitStorePopIntAPS(SourceInfo L) { |
| 55499 | if (!isActive()) return true; |
| 55500 | CurrentSource = L; |
| 55501 | return StorePop<PT_IntAPS>(S, CodePtr()); |
| 55502 | } |
| 55503 | bool EvalEmitter::emitStorePopBool(SourceInfo L) { |
| 55504 | if (!isActive()) return true; |
| 55505 | CurrentSource = L; |
| 55506 | return StorePop<PT_Bool>(S, CodePtr()); |
| 55507 | } |
| 55508 | bool EvalEmitter::emitStorePopFixedPoint(SourceInfo L) { |
| 55509 | if (!isActive()) return true; |
| 55510 | CurrentSource = L; |
| 55511 | return StorePop<PT_FixedPoint>(S, CodePtr()); |
| 55512 | } |
| 55513 | bool EvalEmitter::emitStorePopPtr(SourceInfo L) { |
| 55514 | if (!isActive()) return true; |
| 55515 | CurrentSource = L; |
| 55516 | return StorePop<PT_Ptr>(S, CodePtr()); |
| 55517 | } |
| 55518 | bool EvalEmitter::emitStorePopMemberPtr(SourceInfo L) { |
| 55519 | if (!isActive()) return true; |
| 55520 | CurrentSource = L; |
| 55521 | return StorePop<PT_MemberPtr>(S, CodePtr()); |
| 55522 | } |
| 55523 | bool EvalEmitter::emitStorePopFloat(SourceInfo L) { |
| 55524 | if (!isActive()) return true; |
| 55525 | CurrentSource = L; |
| 55526 | return StorePop<PT_Float>(S, CodePtr()); |
| 55527 | } |
| 55528 | bool EvalEmitter::emitStorePopReflect(SourceInfo L) { |
| 55529 | if (!isActive()) return true; |
| 55530 | CurrentSource = L; |
| 55531 | return StorePop<PT_Reflect>(S, CodePtr()); |
| 55532 | } |
| 55533 | #endif |
| 55534 | #ifdef GET_OPCODE_NAMES |
| 55535 | OP_SubSint8, |
| 55536 | OP_SubUint8, |
| 55537 | OP_SubSint16, |
| 55538 | OP_SubUint16, |
| 55539 | OP_SubSint32, |
| 55540 | OP_SubUint32, |
| 55541 | OP_SubSint64, |
| 55542 | OP_SubUint64, |
| 55543 | OP_SubIntAP, |
| 55544 | OP_SubIntAPS, |
| 55545 | OP_SubBool, |
| 55546 | OP_SubFixedPoint, |
| 55547 | #endif |
| 55548 | #ifdef GET_INTERPFN_LIST |
| 55549 | &Interp_SubSint8, |
| 55550 | &Interp_SubUint8, |
| 55551 | &Interp_SubSint16, |
| 55552 | &Interp_SubUint16, |
| 55553 | &Interp_SubSint32, |
| 55554 | &Interp_SubUint32, |
| 55555 | &Interp_SubSint64, |
| 55556 | &Interp_SubUint64, |
| 55557 | &Interp_SubIntAP, |
| 55558 | &Interp_SubIntAPS, |
| 55559 | &Interp_SubBool, |
| 55560 | &Interp_SubFixedPoint, |
| 55561 | #endif |
| 55562 | #ifdef GET_INTERPFN_DISPATCHERS |
| 55563 | PRESERVE_NONE |
| 55564 | static bool Interp_SubSint8(InterpState &S) { |
| 55565 | if (!Sub<PT_Sint8>(S, S.PC)) return false; |
| 55566 | #if USE_TAILCALLS |
| 55567 | MUSTTAIL return InterpNext(S); |
| 55568 | #else |
| 55569 | return true; |
| 55570 | #endif |
| 55571 | } |
| 55572 | PRESERVE_NONE |
| 55573 | static bool Interp_SubUint8(InterpState &S) { |
| 55574 | if (!Sub<PT_Uint8>(S, S.PC)) return false; |
| 55575 | #if USE_TAILCALLS |
| 55576 | MUSTTAIL return InterpNext(S); |
| 55577 | #else |
| 55578 | return true; |
| 55579 | #endif |
| 55580 | } |
| 55581 | PRESERVE_NONE |
| 55582 | static bool Interp_SubSint16(InterpState &S) { |
| 55583 | if (!Sub<PT_Sint16>(S, S.PC)) return false; |
| 55584 | #if USE_TAILCALLS |
| 55585 | MUSTTAIL return InterpNext(S); |
| 55586 | #else |
| 55587 | return true; |
| 55588 | #endif |
| 55589 | } |
| 55590 | PRESERVE_NONE |
| 55591 | static bool Interp_SubUint16(InterpState &S) { |
| 55592 | if (!Sub<PT_Uint16>(S, S.PC)) return false; |
| 55593 | #if USE_TAILCALLS |
| 55594 | MUSTTAIL return InterpNext(S); |
| 55595 | #else |
| 55596 | return true; |
| 55597 | #endif |
| 55598 | } |
| 55599 | PRESERVE_NONE |
| 55600 | static bool Interp_SubSint32(InterpState &S) { |
| 55601 | if (!Sub<PT_Sint32>(S, S.PC)) return false; |
| 55602 | #if USE_TAILCALLS |
| 55603 | MUSTTAIL return InterpNext(S); |
| 55604 | #else |
| 55605 | return true; |
| 55606 | #endif |
| 55607 | } |
| 55608 | PRESERVE_NONE |
| 55609 | static bool Interp_SubUint32(InterpState &S) { |
| 55610 | if (!Sub<PT_Uint32>(S, S.PC)) return false; |
| 55611 | #if USE_TAILCALLS |
| 55612 | MUSTTAIL return InterpNext(S); |
| 55613 | #else |
| 55614 | return true; |
| 55615 | #endif |
| 55616 | } |
| 55617 | PRESERVE_NONE |
| 55618 | static bool Interp_SubSint64(InterpState &S) { |
| 55619 | if (!Sub<PT_Sint64>(S, S.PC)) return false; |
| 55620 | #if USE_TAILCALLS |
| 55621 | MUSTTAIL return InterpNext(S); |
| 55622 | #else |
| 55623 | return true; |
| 55624 | #endif |
| 55625 | } |
| 55626 | PRESERVE_NONE |
| 55627 | static bool Interp_SubUint64(InterpState &S) { |
| 55628 | if (!Sub<PT_Uint64>(S, S.PC)) return false; |
| 55629 | #if USE_TAILCALLS |
| 55630 | MUSTTAIL return InterpNext(S); |
| 55631 | #else |
| 55632 | return true; |
| 55633 | #endif |
| 55634 | } |
| 55635 | PRESERVE_NONE |
| 55636 | static bool Interp_SubIntAP(InterpState &S) { |
| 55637 | if (!Sub<PT_IntAP>(S, S.PC)) return false; |
| 55638 | #if USE_TAILCALLS |
| 55639 | MUSTTAIL return InterpNext(S); |
| 55640 | #else |
| 55641 | return true; |
| 55642 | #endif |
| 55643 | } |
| 55644 | PRESERVE_NONE |
| 55645 | static bool Interp_SubIntAPS(InterpState &S) { |
| 55646 | if (!Sub<PT_IntAPS>(S, S.PC)) return false; |
| 55647 | #if USE_TAILCALLS |
| 55648 | MUSTTAIL return InterpNext(S); |
| 55649 | #else |
| 55650 | return true; |
| 55651 | #endif |
| 55652 | } |
| 55653 | PRESERVE_NONE |
| 55654 | static bool Interp_SubBool(InterpState &S) { |
| 55655 | if (!Sub<PT_Bool>(S, S.PC)) return false; |
| 55656 | #if USE_TAILCALLS |
| 55657 | MUSTTAIL return InterpNext(S); |
| 55658 | #else |
| 55659 | return true; |
| 55660 | #endif |
| 55661 | } |
| 55662 | PRESERVE_NONE |
| 55663 | static bool Interp_SubFixedPoint(InterpState &S) { |
| 55664 | if (!Sub<PT_FixedPoint>(S, S.PC)) return false; |
| 55665 | #if USE_TAILCALLS |
| 55666 | MUSTTAIL return InterpNext(S); |
| 55667 | #else |
| 55668 | return true; |
| 55669 | #endif |
| 55670 | } |
| 55671 | #endif |
| 55672 | #ifdef GET_DISASM |
| 55673 | case OP_SubSint8: |
| 55674 | Text.Op = PrintName("SubSint8" ); |
| 55675 | break; |
| 55676 | case OP_SubUint8: |
| 55677 | Text.Op = PrintName("SubUint8" ); |
| 55678 | break; |
| 55679 | case OP_SubSint16: |
| 55680 | Text.Op = PrintName("SubSint16" ); |
| 55681 | break; |
| 55682 | case OP_SubUint16: |
| 55683 | Text.Op = PrintName("SubUint16" ); |
| 55684 | break; |
| 55685 | case OP_SubSint32: |
| 55686 | Text.Op = PrintName("SubSint32" ); |
| 55687 | break; |
| 55688 | case OP_SubUint32: |
| 55689 | Text.Op = PrintName("SubUint32" ); |
| 55690 | break; |
| 55691 | case OP_SubSint64: |
| 55692 | Text.Op = PrintName("SubSint64" ); |
| 55693 | break; |
| 55694 | case OP_SubUint64: |
| 55695 | Text.Op = PrintName("SubUint64" ); |
| 55696 | break; |
| 55697 | case OP_SubIntAP: |
| 55698 | Text.Op = PrintName("SubIntAP" ); |
| 55699 | break; |
| 55700 | case OP_SubIntAPS: |
| 55701 | Text.Op = PrintName("SubIntAPS" ); |
| 55702 | break; |
| 55703 | case OP_SubBool: |
| 55704 | Text.Op = PrintName("SubBool" ); |
| 55705 | break; |
| 55706 | case OP_SubFixedPoint: |
| 55707 | Text.Op = PrintName("SubFixedPoint" ); |
| 55708 | break; |
| 55709 | #endif |
| 55710 | #if defined(GET_EVAL_PROTO) || defined(GET_LINK_PROTO) |
| 55711 | bool emitSubSint8(SourceInfo); |
| 55712 | bool emitSubUint8(SourceInfo); |
| 55713 | bool emitSubSint16(SourceInfo); |
| 55714 | bool emitSubUint16(SourceInfo); |
| 55715 | bool emitSubSint32(SourceInfo); |
| 55716 | bool emitSubUint32(SourceInfo); |
| 55717 | bool emitSubSint64(SourceInfo); |
| 55718 | bool emitSubUint64(SourceInfo); |
| 55719 | bool emitSubIntAP(SourceInfo); |
| 55720 | bool emitSubIntAPS(SourceInfo); |
| 55721 | bool emitSubBool(SourceInfo); |
| 55722 | bool emitSubFixedPoint(SourceInfo); |
| 55723 | #endif |
| 55724 | #if defined(GET_EVAL_PROTO) || defined(GET_LINK_PROTO) |
| 55725 | [[nodiscard]] bool emitSub(PrimType, SourceInfo I); |
| 55726 | #endif |
| 55727 | #if defined(GET_EVAL_IMPL) || defined(GET_LINK_IMPL) |
| 55728 | bool |
| 55729 | #if defined(GET_EVAL_IMPL) |
| 55730 | EvalEmitter |
| 55731 | #else |
| 55732 | ByteCodeEmitter |
| 55733 | #endif |
| 55734 | ::emitSub(PrimType T0, SourceInfo I) { |
| 55735 | switch (T0) { |
| 55736 | case PT_Sint8: |
| 55737 | return emitSubSint8(I); |
| 55738 | case PT_Uint8: |
| 55739 | return emitSubUint8(I); |
| 55740 | case PT_Sint16: |
| 55741 | return emitSubSint16(I); |
| 55742 | case PT_Uint16: |
| 55743 | return emitSubUint16(I); |
| 55744 | case PT_Sint32: |
| 55745 | return emitSubSint32(I); |
| 55746 | case PT_Uint32: |
| 55747 | return emitSubUint32(I); |
| 55748 | case PT_Sint64: |
| 55749 | return emitSubSint64(I); |
| 55750 | case PT_Uint64: |
| 55751 | return emitSubUint64(I); |
| 55752 | case PT_IntAP: |
| 55753 | return emitSubIntAP(I); |
| 55754 | case PT_IntAPS: |
| 55755 | return emitSubIntAPS(I); |
| 55756 | case PT_Bool: |
| 55757 | return emitSubBool(I); |
| 55758 | case PT_FixedPoint: |
| 55759 | return emitSubFixedPoint(I); |
| 55760 | default: llvm_unreachable("invalid type: emitSub" ); |
| 55761 | } |
| 55762 | llvm_unreachable("invalid enum value" ); |
| 55763 | } |
| 55764 | #endif |
| 55765 | #ifdef GET_LINK_IMPL |
| 55766 | bool ByteCodeEmitter::emitSubSint8(SourceInfo L) { |
| 55767 | return emitOp<>(OP_SubSint8, L); |
| 55768 | } |
| 55769 | bool ByteCodeEmitter::emitSubUint8(SourceInfo L) { |
| 55770 | return emitOp<>(OP_SubUint8, L); |
| 55771 | } |
| 55772 | bool ByteCodeEmitter::emitSubSint16(SourceInfo L) { |
| 55773 | return emitOp<>(OP_SubSint16, L); |
| 55774 | } |
| 55775 | bool ByteCodeEmitter::emitSubUint16(SourceInfo L) { |
| 55776 | return emitOp<>(OP_SubUint16, L); |
| 55777 | } |
| 55778 | bool ByteCodeEmitter::emitSubSint32(SourceInfo L) { |
| 55779 | return emitOp<>(OP_SubSint32, L); |
| 55780 | } |
| 55781 | bool ByteCodeEmitter::emitSubUint32(SourceInfo L) { |
| 55782 | return emitOp<>(OP_SubUint32, L); |
| 55783 | } |
| 55784 | bool ByteCodeEmitter::emitSubSint64(SourceInfo L) { |
| 55785 | return emitOp<>(OP_SubSint64, L); |
| 55786 | } |
| 55787 | bool ByteCodeEmitter::emitSubUint64(SourceInfo L) { |
| 55788 | return emitOp<>(OP_SubUint64, L); |
| 55789 | } |
| 55790 | bool ByteCodeEmitter::emitSubIntAP(SourceInfo L) { |
| 55791 | return emitOp<>(OP_SubIntAP, L); |
| 55792 | } |
| 55793 | bool ByteCodeEmitter::emitSubIntAPS(SourceInfo L) { |
| 55794 | return emitOp<>(OP_SubIntAPS, L); |
| 55795 | } |
| 55796 | bool ByteCodeEmitter::emitSubBool(SourceInfo L) { |
| 55797 | return emitOp<>(OP_SubBool, L); |
| 55798 | } |
| 55799 | bool ByteCodeEmitter::emitSubFixedPoint(SourceInfo L) { |
| 55800 | return emitOp<>(OP_SubFixedPoint, L); |
| 55801 | } |
| 55802 | #endif |
| 55803 | #ifdef GET_EVAL_IMPL |
| 55804 | bool EvalEmitter::emitSubSint8(SourceInfo L) { |
| 55805 | if (!isActive()) return true; |
| 55806 | CurrentSource = L; |
| 55807 | return Sub<PT_Sint8>(S, CodePtr()); |
| 55808 | } |
| 55809 | bool EvalEmitter::emitSubUint8(SourceInfo L) { |
| 55810 | if (!isActive()) return true; |
| 55811 | CurrentSource = L; |
| 55812 | return Sub<PT_Uint8>(S, CodePtr()); |
| 55813 | } |
| 55814 | bool EvalEmitter::emitSubSint16(SourceInfo L) { |
| 55815 | if (!isActive()) return true; |
| 55816 | CurrentSource = L; |
| 55817 | return Sub<PT_Sint16>(S, CodePtr()); |
| 55818 | } |
| 55819 | bool EvalEmitter::emitSubUint16(SourceInfo L) { |
| 55820 | if (!isActive()) return true; |
| 55821 | CurrentSource = L; |
| 55822 | return Sub<PT_Uint16>(S, CodePtr()); |
| 55823 | } |
| 55824 | bool EvalEmitter::emitSubSint32(SourceInfo L) { |
| 55825 | if (!isActive()) return true; |
| 55826 | CurrentSource = L; |
| 55827 | return Sub<PT_Sint32>(S, CodePtr()); |
| 55828 | } |
| 55829 | bool EvalEmitter::emitSubUint32(SourceInfo L) { |
| 55830 | if (!isActive()) return true; |
| 55831 | CurrentSource = L; |
| 55832 | return Sub<PT_Uint32>(S, CodePtr()); |
| 55833 | } |
| 55834 | bool EvalEmitter::emitSubSint64(SourceInfo L) { |
| 55835 | if (!isActive()) return true; |
| 55836 | CurrentSource = L; |
| 55837 | return Sub<PT_Sint64>(S, CodePtr()); |
| 55838 | } |
| 55839 | bool EvalEmitter::emitSubUint64(SourceInfo L) { |
| 55840 | if (!isActive()) return true; |
| 55841 | CurrentSource = L; |
| 55842 | return Sub<PT_Uint64>(S, CodePtr()); |
| 55843 | } |
| 55844 | bool EvalEmitter::emitSubIntAP(SourceInfo L) { |
| 55845 | if (!isActive()) return true; |
| 55846 | CurrentSource = L; |
| 55847 | return Sub<PT_IntAP>(S, CodePtr()); |
| 55848 | } |
| 55849 | bool EvalEmitter::emitSubIntAPS(SourceInfo L) { |
| 55850 | if (!isActive()) return true; |
| 55851 | CurrentSource = L; |
| 55852 | return Sub<PT_IntAPS>(S, CodePtr()); |
| 55853 | } |
| 55854 | bool EvalEmitter::emitSubBool(SourceInfo L) { |
| 55855 | if (!isActive()) return true; |
| 55856 | CurrentSource = L; |
| 55857 | return Sub<PT_Bool>(S, CodePtr()); |
| 55858 | } |
| 55859 | bool EvalEmitter::emitSubFixedPoint(SourceInfo L) { |
| 55860 | if (!isActive()) return true; |
| 55861 | CurrentSource = L; |
| 55862 | return Sub<PT_FixedPoint>(S, CodePtr()); |
| 55863 | } |
| 55864 | #endif |
| 55865 | #ifdef GET_OPCODE_NAMES |
| 55866 | OP_SubOffsetSint8, |
| 55867 | OP_SubOffsetUint8, |
| 55868 | OP_SubOffsetSint16, |
| 55869 | OP_SubOffsetUint16, |
| 55870 | OP_SubOffsetSint32, |
| 55871 | OP_SubOffsetUint32, |
| 55872 | OP_SubOffsetSint64, |
| 55873 | OP_SubOffsetUint64, |
| 55874 | OP_SubOffsetIntAP, |
| 55875 | OP_SubOffsetIntAPS, |
| 55876 | OP_SubOffsetBool, |
| 55877 | #endif |
| 55878 | #ifdef GET_INTERPFN_LIST |
| 55879 | &Interp_SubOffsetSint8, |
| 55880 | &Interp_SubOffsetUint8, |
| 55881 | &Interp_SubOffsetSint16, |
| 55882 | &Interp_SubOffsetUint16, |
| 55883 | &Interp_SubOffsetSint32, |
| 55884 | &Interp_SubOffsetUint32, |
| 55885 | &Interp_SubOffsetSint64, |
| 55886 | &Interp_SubOffsetUint64, |
| 55887 | &Interp_SubOffsetIntAP, |
| 55888 | &Interp_SubOffsetIntAPS, |
| 55889 | &Interp_SubOffsetBool, |
| 55890 | #endif |
| 55891 | #ifdef GET_INTERPFN_DISPATCHERS |
| 55892 | PRESERVE_NONE |
| 55893 | static bool Interp_SubOffsetSint8(InterpState &S) { |
| 55894 | if (!SubOffset<PT_Sint8>(S, S.PC)) return false; |
| 55895 | #if USE_TAILCALLS |
| 55896 | MUSTTAIL return InterpNext(S); |
| 55897 | #else |
| 55898 | return true; |
| 55899 | #endif |
| 55900 | } |
| 55901 | PRESERVE_NONE |
| 55902 | static bool Interp_SubOffsetUint8(InterpState &S) { |
| 55903 | if (!SubOffset<PT_Uint8>(S, S.PC)) return false; |
| 55904 | #if USE_TAILCALLS |
| 55905 | MUSTTAIL return InterpNext(S); |
| 55906 | #else |
| 55907 | return true; |
| 55908 | #endif |
| 55909 | } |
| 55910 | PRESERVE_NONE |
| 55911 | static bool Interp_SubOffsetSint16(InterpState &S) { |
| 55912 | if (!SubOffset<PT_Sint16>(S, S.PC)) return false; |
| 55913 | #if USE_TAILCALLS |
| 55914 | MUSTTAIL return InterpNext(S); |
| 55915 | #else |
| 55916 | return true; |
| 55917 | #endif |
| 55918 | } |
| 55919 | PRESERVE_NONE |
| 55920 | static bool Interp_SubOffsetUint16(InterpState &S) { |
| 55921 | if (!SubOffset<PT_Uint16>(S, S.PC)) return false; |
| 55922 | #if USE_TAILCALLS |
| 55923 | MUSTTAIL return InterpNext(S); |
| 55924 | #else |
| 55925 | return true; |
| 55926 | #endif |
| 55927 | } |
| 55928 | PRESERVE_NONE |
| 55929 | static bool Interp_SubOffsetSint32(InterpState &S) { |
| 55930 | if (!SubOffset<PT_Sint32>(S, S.PC)) return false; |
| 55931 | #if USE_TAILCALLS |
| 55932 | MUSTTAIL return InterpNext(S); |
| 55933 | #else |
| 55934 | return true; |
| 55935 | #endif |
| 55936 | } |
| 55937 | PRESERVE_NONE |
| 55938 | static bool Interp_SubOffsetUint32(InterpState &S) { |
| 55939 | if (!SubOffset<PT_Uint32>(S, S.PC)) return false; |
| 55940 | #if USE_TAILCALLS |
| 55941 | MUSTTAIL return InterpNext(S); |
| 55942 | #else |
| 55943 | return true; |
| 55944 | #endif |
| 55945 | } |
| 55946 | PRESERVE_NONE |
| 55947 | static bool Interp_SubOffsetSint64(InterpState &S) { |
| 55948 | if (!SubOffset<PT_Sint64>(S, S.PC)) return false; |
| 55949 | #if USE_TAILCALLS |
| 55950 | MUSTTAIL return InterpNext(S); |
| 55951 | #else |
| 55952 | return true; |
| 55953 | #endif |
| 55954 | } |
| 55955 | PRESERVE_NONE |
| 55956 | static bool Interp_SubOffsetUint64(InterpState &S) { |
| 55957 | if (!SubOffset<PT_Uint64>(S, S.PC)) return false; |
| 55958 | #if USE_TAILCALLS |
| 55959 | MUSTTAIL return InterpNext(S); |
| 55960 | #else |
| 55961 | return true; |
| 55962 | #endif |
| 55963 | } |
| 55964 | PRESERVE_NONE |
| 55965 | static bool Interp_SubOffsetIntAP(InterpState &S) { |
| 55966 | if (!SubOffset<PT_IntAP>(S, S.PC)) return false; |
| 55967 | #if USE_TAILCALLS |
| 55968 | MUSTTAIL return InterpNext(S); |
| 55969 | #else |
| 55970 | return true; |
| 55971 | #endif |
| 55972 | } |
| 55973 | PRESERVE_NONE |
| 55974 | static bool Interp_SubOffsetIntAPS(InterpState &S) { |
| 55975 | if (!SubOffset<PT_IntAPS>(S, S.PC)) return false; |
| 55976 | #if USE_TAILCALLS |
| 55977 | MUSTTAIL return InterpNext(S); |
| 55978 | #else |
| 55979 | return true; |
| 55980 | #endif |
| 55981 | } |
| 55982 | PRESERVE_NONE |
| 55983 | static bool Interp_SubOffsetBool(InterpState &S) { |
| 55984 | if (!SubOffset<PT_Bool>(S, S.PC)) return false; |
| 55985 | #if USE_TAILCALLS |
| 55986 | MUSTTAIL return InterpNext(S); |
| 55987 | #else |
| 55988 | return true; |
| 55989 | #endif |
| 55990 | } |
| 55991 | #endif |
| 55992 | #ifdef GET_DISASM |
| 55993 | case OP_SubOffsetSint8: |
| 55994 | Text.Op = PrintName("SubOffsetSint8" ); |
| 55995 | break; |
| 55996 | case OP_SubOffsetUint8: |
| 55997 | Text.Op = PrintName("SubOffsetUint8" ); |
| 55998 | break; |
| 55999 | case OP_SubOffsetSint16: |
| 56000 | Text.Op = PrintName("SubOffsetSint16" ); |
| 56001 | break; |
| 56002 | case OP_SubOffsetUint16: |
| 56003 | Text.Op = PrintName("SubOffsetUint16" ); |
| 56004 | break; |
| 56005 | case OP_SubOffsetSint32: |
| 56006 | Text.Op = PrintName("SubOffsetSint32" ); |
| 56007 | break; |
| 56008 | case OP_SubOffsetUint32: |
| 56009 | Text.Op = PrintName("SubOffsetUint32" ); |
| 56010 | break; |
| 56011 | case OP_SubOffsetSint64: |
| 56012 | Text.Op = PrintName("SubOffsetSint64" ); |
| 56013 | break; |
| 56014 | case OP_SubOffsetUint64: |
| 56015 | Text.Op = PrintName("SubOffsetUint64" ); |
| 56016 | break; |
| 56017 | case OP_SubOffsetIntAP: |
| 56018 | Text.Op = PrintName("SubOffsetIntAP" ); |
| 56019 | break; |
| 56020 | case OP_SubOffsetIntAPS: |
| 56021 | Text.Op = PrintName("SubOffsetIntAPS" ); |
| 56022 | break; |
| 56023 | case OP_SubOffsetBool: |
| 56024 | Text.Op = PrintName("SubOffsetBool" ); |
| 56025 | break; |
| 56026 | #endif |
| 56027 | #if defined(GET_EVAL_PROTO) || defined(GET_LINK_PROTO) |
| 56028 | bool emitSubOffsetSint8(SourceInfo); |
| 56029 | bool emitSubOffsetUint8(SourceInfo); |
| 56030 | bool emitSubOffsetSint16(SourceInfo); |
| 56031 | bool emitSubOffsetUint16(SourceInfo); |
| 56032 | bool emitSubOffsetSint32(SourceInfo); |
| 56033 | bool emitSubOffsetUint32(SourceInfo); |
| 56034 | bool emitSubOffsetSint64(SourceInfo); |
| 56035 | bool emitSubOffsetUint64(SourceInfo); |
| 56036 | bool emitSubOffsetIntAP(SourceInfo); |
| 56037 | bool emitSubOffsetIntAPS(SourceInfo); |
| 56038 | bool emitSubOffsetBool(SourceInfo); |
| 56039 | #endif |
| 56040 | #if defined(GET_EVAL_PROTO) || defined(GET_LINK_PROTO) |
| 56041 | [[nodiscard]] bool emitSubOffset(PrimType, SourceInfo I); |
| 56042 | #endif |
| 56043 | #if defined(GET_EVAL_IMPL) || defined(GET_LINK_IMPL) |
| 56044 | bool |
| 56045 | #if defined(GET_EVAL_IMPL) |
| 56046 | EvalEmitter |
| 56047 | #else |
| 56048 | ByteCodeEmitter |
| 56049 | #endif |
| 56050 | ::emitSubOffset(PrimType T0, SourceInfo I) { |
| 56051 | switch (T0) { |
| 56052 | case PT_Sint8: |
| 56053 | return emitSubOffsetSint8(I); |
| 56054 | case PT_Uint8: |
| 56055 | return emitSubOffsetUint8(I); |
| 56056 | case PT_Sint16: |
| 56057 | return emitSubOffsetSint16(I); |
| 56058 | case PT_Uint16: |
| 56059 | return emitSubOffsetUint16(I); |
| 56060 | case PT_Sint32: |
| 56061 | return emitSubOffsetSint32(I); |
| 56062 | case PT_Uint32: |
| 56063 | return emitSubOffsetUint32(I); |
| 56064 | case PT_Sint64: |
| 56065 | return emitSubOffsetSint64(I); |
| 56066 | case PT_Uint64: |
| 56067 | return emitSubOffsetUint64(I); |
| 56068 | case PT_IntAP: |
| 56069 | return emitSubOffsetIntAP(I); |
| 56070 | case PT_IntAPS: |
| 56071 | return emitSubOffsetIntAPS(I); |
| 56072 | case PT_Bool: |
| 56073 | return emitSubOffsetBool(I); |
| 56074 | default: llvm_unreachable("invalid type: emitSubOffset" ); |
| 56075 | } |
| 56076 | llvm_unreachable("invalid enum value" ); |
| 56077 | } |
| 56078 | #endif |
| 56079 | #ifdef GET_LINK_IMPL |
| 56080 | bool ByteCodeEmitter::emitSubOffsetSint8(SourceInfo L) { |
| 56081 | return emitOp<>(OP_SubOffsetSint8, L); |
| 56082 | } |
| 56083 | bool ByteCodeEmitter::emitSubOffsetUint8(SourceInfo L) { |
| 56084 | return emitOp<>(OP_SubOffsetUint8, L); |
| 56085 | } |
| 56086 | bool ByteCodeEmitter::emitSubOffsetSint16(SourceInfo L) { |
| 56087 | return emitOp<>(OP_SubOffsetSint16, L); |
| 56088 | } |
| 56089 | bool ByteCodeEmitter::emitSubOffsetUint16(SourceInfo L) { |
| 56090 | return emitOp<>(OP_SubOffsetUint16, L); |
| 56091 | } |
| 56092 | bool ByteCodeEmitter::emitSubOffsetSint32(SourceInfo L) { |
| 56093 | return emitOp<>(OP_SubOffsetSint32, L); |
| 56094 | } |
| 56095 | bool ByteCodeEmitter::emitSubOffsetUint32(SourceInfo L) { |
| 56096 | return emitOp<>(OP_SubOffsetUint32, L); |
| 56097 | } |
| 56098 | bool ByteCodeEmitter::emitSubOffsetSint64(SourceInfo L) { |
| 56099 | return emitOp<>(OP_SubOffsetSint64, L); |
| 56100 | } |
| 56101 | bool ByteCodeEmitter::emitSubOffsetUint64(SourceInfo L) { |
| 56102 | return emitOp<>(OP_SubOffsetUint64, L); |
| 56103 | } |
| 56104 | bool ByteCodeEmitter::emitSubOffsetIntAP(SourceInfo L) { |
| 56105 | return emitOp<>(OP_SubOffsetIntAP, L); |
| 56106 | } |
| 56107 | bool ByteCodeEmitter::emitSubOffsetIntAPS(SourceInfo L) { |
| 56108 | return emitOp<>(OP_SubOffsetIntAPS, L); |
| 56109 | } |
| 56110 | bool ByteCodeEmitter::emitSubOffsetBool(SourceInfo L) { |
| 56111 | return emitOp<>(OP_SubOffsetBool, L); |
| 56112 | } |
| 56113 | #endif |
| 56114 | #ifdef GET_EVAL_IMPL |
| 56115 | bool EvalEmitter::emitSubOffsetSint8(SourceInfo L) { |
| 56116 | if (!isActive()) return true; |
| 56117 | CurrentSource = L; |
| 56118 | return SubOffset<PT_Sint8>(S, CodePtr()); |
| 56119 | } |
| 56120 | bool EvalEmitter::emitSubOffsetUint8(SourceInfo L) { |
| 56121 | if (!isActive()) return true; |
| 56122 | CurrentSource = L; |
| 56123 | return SubOffset<PT_Uint8>(S, CodePtr()); |
| 56124 | } |
| 56125 | bool EvalEmitter::emitSubOffsetSint16(SourceInfo L) { |
| 56126 | if (!isActive()) return true; |
| 56127 | CurrentSource = L; |
| 56128 | return SubOffset<PT_Sint16>(S, CodePtr()); |
| 56129 | } |
| 56130 | bool EvalEmitter::emitSubOffsetUint16(SourceInfo L) { |
| 56131 | if (!isActive()) return true; |
| 56132 | CurrentSource = L; |
| 56133 | return SubOffset<PT_Uint16>(S, CodePtr()); |
| 56134 | } |
| 56135 | bool EvalEmitter::emitSubOffsetSint32(SourceInfo L) { |
| 56136 | if (!isActive()) return true; |
| 56137 | CurrentSource = L; |
| 56138 | return SubOffset<PT_Sint32>(S, CodePtr()); |
| 56139 | } |
| 56140 | bool EvalEmitter::emitSubOffsetUint32(SourceInfo L) { |
| 56141 | if (!isActive()) return true; |
| 56142 | CurrentSource = L; |
| 56143 | return SubOffset<PT_Uint32>(S, CodePtr()); |
| 56144 | } |
| 56145 | bool EvalEmitter::emitSubOffsetSint64(SourceInfo L) { |
| 56146 | if (!isActive()) return true; |
| 56147 | CurrentSource = L; |
| 56148 | return SubOffset<PT_Sint64>(S, CodePtr()); |
| 56149 | } |
| 56150 | bool EvalEmitter::emitSubOffsetUint64(SourceInfo L) { |
| 56151 | if (!isActive()) return true; |
| 56152 | CurrentSource = L; |
| 56153 | return SubOffset<PT_Uint64>(S, CodePtr()); |
| 56154 | } |
| 56155 | bool EvalEmitter::emitSubOffsetIntAP(SourceInfo L) { |
| 56156 | if (!isActive()) return true; |
| 56157 | CurrentSource = L; |
| 56158 | return SubOffset<PT_IntAP>(S, CodePtr()); |
| 56159 | } |
| 56160 | bool EvalEmitter::emitSubOffsetIntAPS(SourceInfo L) { |
| 56161 | if (!isActive()) return true; |
| 56162 | CurrentSource = L; |
| 56163 | return SubOffset<PT_IntAPS>(S, CodePtr()); |
| 56164 | } |
| 56165 | bool EvalEmitter::emitSubOffsetBool(SourceInfo L) { |
| 56166 | if (!isActive()) return true; |
| 56167 | CurrentSource = L; |
| 56168 | return SubOffset<PT_Bool>(S, CodePtr()); |
| 56169 | } |
| 56170 | #endif |
| 56171 | #ifdef GET_OPCODE_NAMES |
| 56172 | OP_SubPtrSint8, |
| 56173 | OP_SubPtrUint8, |
| 56174 | OP_SubPtrSint16, |
| 56175 | OP_SubPtrUint16, |
| 56176 | OP_SubPtrSint32, |
| 56177 | OP_SubPtrUint32, |
| 56178 | OP_SubPtrSint64, |
| 56179 | OP_SubPtrUint64, |
| 56180 | OP_SubPtrIntAP, |
| 56181 | OP_SubPtrIntAPS, |
| 56182 | #endif |
| 56183 | #ifdef GET_INTERPFN_LIST |
| 56184 | &Interp_SubPtrSint8, |
| 56185 | &Interp_SubPtrUint8, |
| 56186 | &Interp_SubPtrSint16, |
| 56187 | &Interp_SubPtrUint16, |
| 56188 | &Interp_SubPtrSint32, |
| 56189 | &Interp_SubPtrUint32, |
| 56190 | &Interp_SubPtrSint64, |
| 56191 | &Interp_SubPtrUint64, |
| 56192 | &Interp_SubPtrIntAP, |
| 56193 | &Interp_SubPtrIntAPS, |
| 56194 | #endif |
| 56195 | #ifdef GET_INTERPFN_DISPATCHERS |
| 56196 | PRESERVE_NONE |
| 56197 | static bool Interp_SubPtrSint8(InterpState &S) { |
| 56198 | { |
| 56199 | CodePtr OpPC = S.PC; |
| 56200 | const auto V0 = ReadArg<uint32_t>(S, S.PC); |
| 56201 | if (!SubPtr<PT_Sint8>(S, OpPC, V0)) return false; |
| 56202 | } |
| 56203 | #if USE_TAILCALLS |
| 56204 | MUSTTAIL return InterpNext(S); |
| 56205 | #else |
| 56206 | return true; |
| 56207 | #endif |
| 56208 | } |
| 56209 | PRESERVE_NONE |
| 56210 | static bool Interp_SubPtrUint8(InterpState &S) { |
| 56211 | { |
| 56212 | CodePtr OpPC = S.PC; |
| 56213 | const auto V0 = ReadArg<uint32_t>(S, S.PC); |
| 56214 | if (!SubPtr<PT_Uint8>(S, OpPC, V0)) return false; |
| 56215 | } |
| 56216 | #if USE_TAILCALLS |
| 56217 | MUSTTAIL return InterpNext(S); |
| 56218 | #else |
| 56219 | return true; |
| 56220 | #endif |
| 56221 | } |
| 56222 | PRESERVE_NONE |
| 56223 | static bool Interp_SubPtrSint16(InterpState &S) { |
| 56224 | { |
| 56225 | CodePtr OpPC = S.PC; |
| 56226 | const auto V0 = ReadArg<uint32_t>(S, S.PC); |
| 56227 | if (!SubPtr<PT_Sint16>(S, OpPC, V0)) return false; |
| 56228 | } |
| 56229 | #if USE_TAILCALLS |
| 56230 | MUSTTAIL return InterpNext(S); |
| 56231 | #else |
| 56232 | return true; |
| 56233 | #endif |
| 56234 | } |
| 56235 | PRESERVE_NONE |
| 56236 | static bool Interp_SubPtrUint16(InterpState &S) { |
| 56237 | { |
| 56238 | CodePtr OpPC = S.PC; |
| 56239 | const auto V0 = ReadArg<uint32_t>(S, S.PC); |
| 56240 | if (!SubPtr<PT_Uint16>(S, OpPC, V0)) return false; |
| 56241 | } |
| 56242 | #if USE_TAILCALLS |
| 56243 | MUSTTAIL return InterpNext(S); |
| 56244 | #else |
| 56245 | return true; |
| 56246 | #endif |
| 56247 | } |
| 56248 | PRESERVE_NONE |
| 56249 | static bool Interp_SubPtrSint32(InterpState &S) { |
| 56250 | { |
| 56251 | CodePtr OpPC = S.PC; |
| 56252 | const auto V0 = ReadArg<uint32_t>(S, S.PC); |
| 56253 | if (!SubPtr<PT_Sint32>(S, OpPC, V0)) return false; |
| 56254 | } |
| 56255 | #if USE_TAILCALLS |
| 56256 | MUSTTAIL return InterpNext(S); |
| 56257 | #else |
| 56258 | return true; |
| 56259 | #endif |
| 56260 | } |
| 56261 | PRESERVE_NONE |
| 56262 | static bool Interp_SubPtrUint32(InterpState &S) { |
| 56263 | { |
| 56264 | CodePtr OpPC = S.PC; |
| 56265 | const auto V0 = ReadArg<uint32_t>(S, S.PC); |
| 56266 | if (!SubPtr<PT_Uint32>(S, OpPC, V0)) return false; |
| 56267 | } |
| 56268 | #if USE_TAILCALLS |
| 56269 | MUSTTAIL return InterpNext(S); |
| 56270 | #else |
| 56271 | return true; |
| 56272 | #endif |
| 56273 | } |
| 56274 | PRESERVE_NONE |
| 56275 | static bool Interp_SubPtrSint64(InterpState &S) { |
| 56276 | { |
| 56277 | CodePtr OpPC = S.PC; |
| 56278 | const auto V0 = ReadArg<uint32_t>(S, S.PC); |
| 56279 | if (!SubPtr<PT_Sint64>(S, OpPC, V0)) return false; |
| 56280 | } |
| 56281 | #if USE_TAILCALLS |
| 56282 | MUSTTAIL return InterpNext(S); |
| 56283 | #else |
| 56284 | return true; |
| 56285 | #endif |
| 56286 | } |
| 56287 | PRESERVE_NONE |
| 56288 | static bool Interp_SubPtrUint64(InterpState &S) { |
| 56289 | { |
| 56290 | CodePtr OpPC = S.PC; |
| 56291 | const auto V0 = ReadArg<uint32_t>(S, S.PC); |
| 56292 | if (!SubPtr<PT_Uint64>(S, OpPC, V0)) return false; |
| 56293 | } |
| 56294 | #if USE_TAILCALLS |
| 56295 | MUSTTAIL return InterpNext(S); |
| 56296 | #else |
| 56297 | return true; |
| 56298 | #endif |
| 56299 | } |
| 56300 | PRESERVE_NONE |
| 56301 | static bool Interp_SubPtrIntAP(InterpState &S) { |
| 56302 | { |
| 56303 | CodePtr OpPC = S.PC; |
| 56304 | const auto V0 = ReadArg<uint32_t>(S, S.PC); |
| 56305 | if (!SubPtr<PT_IntAP>(S, OpPC, V0)) return false; |
| 56306 | } |
| 56307 | #if USE_TAILCALLS |
| 56308 | MUSTTAIL return InterpNext(S); |
| 56309 | #else |
| 56310 | return true; |
| 56311 | #endif |
| 56312 | } |
| 56313 | PRESERVE_NONE |
| 56314 | static bool Interp_SubPtrIntAPS(InterpState &S) { |
| 56315 | { |
| 56316 | CodePtr OpPC = S.PC; |
| 56317 | const auto V0 = ReadArg<uint32_t>(S, S.PC); |
| 56318 | if (!SubPtr<PT_IntAPS>(S, OpPC, V0)) return false; |
| 56319 | } |
| 56320 | #if USE_TAILCALLS |
| 56321 | MUSTTAIL return InterpNext(S); |
| 56322 | #else |
| 56323 | return true; |
| 56324 | #endif |
| 56325 | } |
| 56326 | #endif |
| 56327 | #ifdef GET_DISASM |
| 56328 | case OP_SubPtrSint8: |
| 56329 | Text.Op = PrintName("SubPtrSint8" ); |
| 56330 | Text.Args.push_back(printArg<uint32_t>(PC)); |
| 56331 | break; |
| 56332 | case OP_SubPtrUint8: |
| 56333 | Text.Op = PrintName("SubPtrUint8" ); |
| 56334 | Text.Args.push_back(printArg<uint32_t>(PC)); |
| 56335 | break; |
| 56336 | case OP_SubPtrSint16: |
| 56337 | Text.Op = PrintName("SubPtrSint16" ); |
| 56338 | Text.Args.push_back(printArg<uint32_t>(PC)); |
| 56339 | break; |
| 56340 | case OP_SubPtrUint16: |
| 56341 | Text.Op = PrintName("SubPtrUint16" ); |
| 56342 | Text.Args.push_back(printArg<uint32_t>(PC)); |
| 56343 | break; |
| 56344 | case OP_SubPtrSint32: |
| 56345 | Text.Op = PrintName("SubPtrSint32" ); |
| 56346 | Text.Args.push_back(printArg<uint32_t>(PC)); |
| 56347 | break; |
| 56348 | case OP_SubPtrUint32: |
| 56349 | Text.Op = PrintName("SubPtrUint32" ); |
| 56350 | Text.Args.push_back(printArg<uint32_t>(PC)); |
| 56351 | break; |
| 56352 | case OP_SubPtrSint64: |
| 56353 | Text.Op = PrintName("SubPtrSint64" ); |
| 56354 | Text.Args.push_back(printArg<uint32_t>(PC)); |
| 56355 | break; |
| 56356 | case OP_SubPtrUint64: |
| 56357 | Text.Op = PrintName("SubPtrUint64" ); |
| 56358 | Text.Args.push_back(printArg<uint32_t>(PC)); |
| 56359 | break; |
| 56360 | case OP_SubPtrIntAP: |
| 56361 | Text.Op = PrintName("SubPtrIntAP" ); |
| 56362 | Text.Args.push_back(printArg<uint32_t>(PC)); |
| 56363 | break; |
| 56364 | case OP_SubPtrIntAPS: |
| 56365 | Text.Op = PrintName("SubPtrIntAPS" ); |
| 56366 | Text.Args.push_back(printArg<uint32_t>(PC)); |
| 56367 | break; |
| 56368 | #endif |
| 56369 | #if defined(GET_EVAL_PROTO) || defined(GET_LINK_PROTO) |
| 56370 | bool emitSubPtrSint8( uint32_t , SourceInfo); |
| 56371 | bool emitSubPtrUint8( uint32_t , SourceInfo); |
| 56372 | bool emitSubPtrSint16( uint32_t , SourceInfo); |
| 56373 | bool emitSubPtrUint16( uint32_t , SourceInfo); |
| 56374 | bool emitSubPtrSint32( uint32_t , SourceInfo); |
| 56375 | bool emitSubPtrUint32( uint32_t , SourceInfo); |
| 56376 | bool emitSubPtrSint64( uint32_t , SourceInfo); |
| 56377 | bool emitSubPtrUint64( uint32_t , SourceInfo); |
| 56378 | bool emitSubPtrIntAP( uint32_t , SourceInfo); |
| 56379 | bool emitSubPtrIntAPS( uint32_t , SourceInfo); |
| 56380 | #endif |
| 56381 | #if defined(GET_EVAL_PROTO) || defined(GET_LINK_PROTO) |
| 56382 | [[nodiscard]] bool emitSubPtr(PrimType, uint32_t, SourceInfo I); |
| 56383 | #endif |
| 56384 | #if defined(GET_EVAL_IMPL) || defined(GET_LINK_IMPL) |
| 56385 | bool |
| 56386 | #if defined(GET_EVAL_IMPL) |
| 56387 | EvalEmitter |
| 56388 | #else |
| 56389 | ByteCodeEmitter |
| 56390 | #endif |
| 56391 | ::emitSubPtr(PrimType T0, uint32_t A0, SourceInfo I) { |
| 56392 | switch (T0) { |
| 56393 | case PT_Sint8: |
| 56394 | return emitSubPtrSint8(A0, I); |
| 56395 | case PT_Uint8: |
| 56396 | return emitSubPtrUint8(A0, I); |
| 56397 | case PT_Sint16: |
| 56398 | return emitSubPtrSint16(A0, I); |
| 56399 | case PT_Uint16: |
| 56400 | return emitSubPtrUint16(A0, I); |
| 56401 | case PT_Sint32: |
| 56402 | return emitSubPtrSint32(A0, I); |
| 56403 | case PT_Uint32: |
| 56404 | return emitSubPtrUint32(A0, I); |
| 56405 | case PT_Sint64: |
| 56406 | return emitSubPtrSint64(A0, I); |
| 56407 | case PT_Uint64: |
| 56408 | return emitSubPtrUint64(A0, I); |
| 56409 | case PT_IntAP: |
| 56410 | return emitSubPtrIntAP(A0, I); |
| 56411 | case PT_IntAPS: |
| 56412 | return emitSubPtrIntAPS(A0, I); |
| 56413 | default: llvm_unreachable("invalid type: emitSubPtr" ); |
| 56414 | } |
| 56415 | llvm_unreachable("invalid enum value" ); |
| 56416 | } |
| 56417 | #endif |
| 56418 | #ifdef GET_LINK_IMPL |
| 56419 | bool ByteCodeEmitter::emitSubPtrSint8( uint32_t A0, SourceInfo L) { |
| 56420 | return emitOp<uint32_t>(OP_SubPtrSint8, A0, L); |
| 56421 | } |
| 56422 | bool ByteCodeEmitter::emitSubPtrUint8( uint32_t A0, SourceInfo L) { |
| 56423 | return emitOp<uint32_t>(OP_SubPtrUint8, A0, L); |
| 56424 | } |
| 56425 | bool ByteCodeEmitter::emitSubPtrSint16( uint32_t A0, SourceInfo L) { |
| 56426 | return emitOp<uint32_t>(OP_SubPtrSint16, A0, L); |
| 56427 | } |
| 56428 | bool ByteCodeEmitter::emitSubPtrUint16( uint32_t A0, SourceInfo L) { |
| 56429 | return emitOp<uint32_t>(OP_SubPtrUint16, A0, L); |
| 56430 | } |
| 56431 | bool ByteCodeEmitter::emitSubPtrSint32( uint32_t A0, SourceInfo L) { |
| 56432 | return emitOp<uint32_t>(OP_SubPtrSint32, A0, L); |
| 56433 | } |
| 56434 | bool ByteCodeEmitter::emitSubPtrUint32( uint32_t A0, SourceInfo L) { |
| 56435 | return emitOp<uint32_t>(OP_SubPtrUint32, A0, L); |
| 56436 | } |
| 56437 | bool ByteCodeEmitter::emitSubPtrSint64( uint32_t A0, SourceInfo L) { |
| 56438 | return emitOp<uint32_t>(OP_SubPtrSint64, A0, L); |
| 56439 | } |
| 56440 | bool ByteCodeEmitter::emitSubPtrUint64( uint32_t A0, SourceInfo L) { |
| 56441 | return emitOp<uint32_t>(OP_SubPtrUint64, A0, L); |
| 56442 | } |
| 56443 | bool ByteCodeEmitter::emitSubPtrIntAP( uint32_t A0, SourceInfo L) { |
| 56444 | return emitOp<uint32_t>(OP_SubPtrIntAP, A0, L); |
| 56445 | } |
| 56446 | bool ByteCodeEmitter::emitSubPtrIntAPS( uint32_t A0, SourceInfo L) { |
| 56447 | return emitOp<uint32_t>(OP_SubPtrIntAPS, A0, L); |
| 56448 | } |
| 56449 | #endif |
| 56450 | #ifdef GET_EVAL_IMPL |
| 56451 | bool EvalEmitter::emitSubPtrSint8( uint32_t A0, SourceInfo L) { |
| 56452 | if (!isActive()) return true; |
| 56453 | CurrentSource = L; |
| 56454 | return SubPtr<PT_Sint8>(S, CodePtr(), A0); |
| 56455 | } |
| 56456 | bool EvalEmitter::emitSubPtrUint8( uint32_t A0, SourceInfo L) { |
| 56457 | if (!isActive()) return true; |
| 56458 | CurrentSource = L; |
| 56459 | return SubPtr<PT_Uint8>(S, CodePtr(), A0); |
| 56460 | } |
| 56461 | bool EvalEmitter::emitSubPtrSint16( uint32_t A0, SourceInfo L) { |
| 56462 | if (!isActive()) return true; |
| 56463 | CurrentSource = L; |
| 56464 | return SubPtr<PT_Sint16>(S, CodePtr(), A0); |
| 56465 | } |
| 56466 | bool EvalEmitter::emitSubPtrUint16( uint32_t A0, SourceInfo L) { |
| 56467 | if (!isActive()) return true; |
| 56468 | CurrentSource = L; |
| 56469 | return SubPtr<PT_Uint16>(S, CodePtr(), A0); |
| 56470 | } |
| 56471 | bool EvalEmitter::emitSubPtrSint32( uint32_t A0, SourceInfo L) { |
| 56472 | if (!isActive()) return true; |
| 56473 | CurrentSource = L; |
| 56474 | return SubPtr<PT_Sint32>(S, CodePtr(), A0); |
| 56475 | } |
| 56476 | bool EvalEmitter::emitSubPtrUint32( uint32_t A0, SourceInfo L) { |
| 56477 | if (!isActive()) return true; |
| 56478 | CurrentSource = L; |
| 56479 | return SubPtr<PT_Uint32>(S, CodePtr(), A0); |
| 56480 | } |
| 56481 | bool EvalEmitter::emitSubPtrSint64( uint32_t A0, SourceInfo L) { |
| 56482 | if (!isActive()) return true; |
| 56483 | CurrentSource = L; |
| 56484 | return SubPtr<PT_Sint64>(S, CodePtr(), A0); |
| 56485 | } |
| 56486 | bool EvalEmitter::emitSubPtrUint64( uint32_t A0, SourceInfo L) { |
| 56487 | if (!isActive()) return true; |
| 56488 | CurrentSource = L; |
| 56489 | return SubPtr<PT_Uint64>(S, CodePtr(), A0); |
| 56490 | } |
| 56491 | bool EvalEmitter::emitSubPtrIntAP( uint32_t A0, SourceInfo L) { |
| 56492 | if (!isActive()) return true; |
| 56493 | CurrentSource = L; |
| 56494 | return SubPtr<PT_IntAP>(S, CodePtr(), A0); |
| 56495 | } |
| 56496 | bool EvalEmitter::emitSubPtrIntAPS( uint32_t A0, SourceInfo L) { |
| 56497 | if (!isActive()) return true; |
| 56498 | CurrentSource = L; |
| 56499 | return SubPtr<PT_IntAPS>(S, CodePtr(), A0); |
| 56500 | } |
| 56501 | #endif |
| 56502 | #ifdef GET_OPCODE_NAMES |
| 56503 | OP_Subf, |
| 56504 | #endif |
| 56505 | #ifdef GET_INTERPFN_LIST |
| 56506 | &Interp_Subf, |
| 56507 | #endif |
| 56508 | #ifdef GET_INTERPFN_DISPATCHERS |
| 56509 | PRESERVE_NONE |
| 56510 | static bool Interp_Subf(InterpState &S) { |
| 56511 | { |
| 56512 | CodePtr OpPC = S.PC; |
| 56513 | const auto V0 = ReadArg<uint32_t>(S, S.PC); |
| 56514 | if (!Subf(S, OpPC, V0)) return false; |
| 56515 | } |
| 56516 | #if USE_TAILCALLS |
| 56517 | MUSTTAIL return InterpNext(S); |
| 56518 | #else |
| 56519 | return true; |
| 56520 | #endif |
| 56521 | } |
| 56522 | #endif |
| 56523 | #ifdef GET_DISASM |
| 56524 | case OP_Subf: |
| 56525 | Text.Op = PrintName("Subf" ); |
| 56526 | Text.Args.push_back(printArg<uint32_t>(PC)); |
| 56527 | break; |
| 56528 | #endif |
| 56529 | #if defined(GET_EVAL_PROTO) || defined(GET_LINK_PROTO) |
| 56530 | bool emitSubf( uint32_t , SourceInfo); |
| 56531 | #endif |
| 56532 | #ifdef GET_LINK_IMPL |
| 56533 | bool ByteCodeEmitter::emitSubf( uint32_t A0, SourceInfo L) { |
| 56534 | return emitOp<uint32_t>(OP_Subf, A0, L); |
| 56535 | } |
| 56536 | #endif |
| 56537 | #ifdef GET_EVAL_IMPL |
| 56538 | bool EvalEmitter::emitSubf( uint32_t A0, SourceInfo L) { |
| 56539 | if (!isActive()) return true; |
| 56540 | CurrentSource = L; |
| 56541 | return Subf(S, CodePtr(), A0); |
| 56542 | } |
| 56543 | #endif |
| 56544 | #ifdef GET_OPCODE_NAMES |
| 56545 | OP_This, |
| 56546 | #endif |
| 56547 | #ifdef GET_INTERPFN_LIST |
| 56548 | &Interp_This, |
| 56549 | #endif |
| 56550 | #ifdef GET_INTERPFN_DISPATCHERS |
| 56551 | PRESERVE_NONE |
| 56552 | static bool Interp_This(InterpState &S) { |
| 56553 | if (!This(S, S.PC)) return false; |
| 56554 | #if USE_TAILCALLS |
| 56555 | MUSTTAIL return InterpNext(S); |
| 56556 | #else |
| 56557 | return true; |
| 56558 | #endif |
| 56559 | } |
| 56560 | #endif |
| 56561 | #ifdef GET_DISASM |
| 56562 | case OP_This: |
| 56563 | Text.Op = PrintName("This" ); |
| 56564 | break; |
| 56565 | #endif |
| 56566 | #if defined(GET_EVAL_PROTO) || defined(GET_LINK_PROTO) |
| 56567 | bool emitThis(SourceInfo); |
| 56568 | #endif |
| 56569 | #ifdef GET_LINK_IMPL |
| 56570 | bool ByteCodeEmitter::emitThis(SourceInfo L) { |
| 56571 | return emitOp<>(OP_This, L); |
| 56572 | } |
| 56573 | #endif |
| 56574 | #ifdef GET_EVAL_IMPL |
| 56575 | bool EvalEmitter::emitThis(SourceInfo L) { |
| 56576 | if (!isActive()) return true; |
| 56577 | CurrentSource = L; |
| 56578 | return This(S, CodePtr()); |
| 56579 | } |
| 56580 | #endif |
| 56581 | #ifdef GET_OPCODE_NAMES |
| 56582 | OP_ToMemberPtr, |
| 56583 | #endif |
| 56584 | #ifdef GET_INTERPFN_LIST |
| 56585 | &Interp_ToMemberPtr, |
| 56586 | #endif |
| 56587 | #ifdef GET_INTERPFN_DISPATCHERS |
| 56588 | PRESERVE_NONE |
| 56589 | static bool Interp_ToMemberPtr(InterpState &S) { |
| 56590 | ToMemberPtr(S); |
| 56591 | #if USE_TAILCALLS |
| 56592 | MUSTTAIL return InterpNext(S); |
| 56593 | #else |
| 56594 | return true; |
| 56595 | #endif |
| 56596 | } |
| 56597 | #endif |
| 56598 | #ifdef GET_DISASM |
| 56599 | case OP_ToMemberPtr: |
| 56600 | Text.Op = PrintName("ToMemberPtr" ); |
| 56601 | break; |
| 56602 | #endif |
| 56603 | #if defined(GET_EVAL_PROTO) || defined(GET_LINK_PROTO) |
| 56604 | bool emitToMemberPtr(SourceInfo); |
| 56605 | #endif |
| 56606 | #ifdef GET_LINK_IMPL |
| 56607 | bool ByteCodeEmitter::emitToMemberPtr(SourceInfo L) { |
| 56608 | return emitOp<>(OP_ToMemberPtr, L); |
| 56609 | } |
| 56610 | #endif |
| 56611 | #ifdef GET_EVAL_IMPL |
| 56612 | bool EvalEmitter::emitToMemberPtr(SourceInfo L) { |
| 56613 | if (!isActive()) return true; |
| 56614 | CurrentSource = L; |
| 56615 | return ToMemberPtr(S); |
| 56616 | } |
| 56617 | #endif |
| 56618 | #ifdef GET_OPCODE_NAMES |
| 56619 | OP_TrivialCopy, |
| 56620 | #endif |
| 56621 | #ifdef GET_INTERPFN_LIST |
| 56622 | &Interp_TrivialCopy, |
| 56623 | #endif |
| 56624 | #ifdef GET_INTERPFN_DISPATCHERS |
| 56625 | PRESERVE_NONE |
| 56626 | static bool Interp_TrivialCopy(InterpState &S) { |
| 56627 | { |
| 56628 | CodePtr OpPC = S.PC; |
| 56629 | const auto V0 = ReadArg<bool>(S, S.PC); |
| 56630 | const auto V1 = ReadArg<const Function *>(S, S.PC); |
| 56631 | if (!TrivialCopy(S, OpPC, V0, V1)) return false; |
| 56632 | } |
| 56633 | #if USE_TAILCALLS |
| 56634 | MUSTTAIL return InterpNext(S); |
| 56635 | #else |
| 56636 | return true; |
| 56637 | #endif |
| 56638 | } |
| 56639 | #endif |
| 56640 | #ifdef GET_DISASM |
| 56641 | case OP_TrivialCopy: |
| 56642 | Text.Op = PrintName("TrivialCopy" ); |
| 56643 | Text.Args.push_back(printArg<bool>(PC)); |
| 56644 | Text.Args.push_back(printArg<const Function *>(PC)); |
| 56645 | break; |
| 56646 | #endif |
| 56647 | #if defined(GET_EVAL_PROTO) || defined(GET_LINK_PROTO) |
| 56648 | bool emitTrivialCopy( bool , const Function * , SourceInfo); |
| 56649 | #endif |
| 56650 | #ifdef GET_LINK_IMPL |
| 56651 | bool ByteCodeEmitter::emitTrivialCopy( bool A0, const Function * A1, SourceInfo L) { |
| 56652 | return emitOp<bool, const Function *>(OP_TrivialCopy, A0, A1, L); |
| 56653 | } |
| 56654 | #endif |
| 56655 | #ifdef GET_EVAL_IMPL |
| 56656 | bool EvalEmitter::emitTrivialCopy( bool A0, const Function * A1, SourceInfo L) { |
| 56657 | if (!isActive()) return true; |
| 56658 | CurrentSource = L; |
| 56659 | return TrivialCopy(S, CodePtr(), A0, A1); |
| 56660 | } |
| 56661 | #endif |
| 56662 | #ifdef GET_OPCODE_NAMES |
| 56663 | OP_Unsupported, |
| 56664 | #endif |
| 56665 | #ifdef GET_INTERPFN_LIST |
| 56666 | &Interp_Unsupported, |
| 56667 | #endif |
| 56668 | #ifdef GET_INTERPFN_DISPATCHERS |
| 56669 | PRESERVE_NONE |
| 56670 | static bool Interp_Unsupported(InterpState &S) { |
| 56671 | if (!Unsupported(S, S.PC)) return false; |
| 56672 | #if USE_TAILCALLS |
| 56673 | MUSTTAIL return InterpNext(S); |
| 56674 | #else |
| 56675 | return true; |
| 56676 | #endif |
| 56677 | } |
| 56678 | #endif |
| 56679 | #ifdef GET_DISASM |
| 56680 | case OP_Unsupported: |
| 56681 | Text.Op = PrintName("Unsupported" ); |
| 56682 | break; |
| 56683 | #endif |
| 56684 | #if defined(GET_EVAL_PROTO) || defined(GET_LINK_PROTO) |
| 56685 | bool emitUnsupported(SourceInfo); |
| 56686 | #endif |
| 56687 | #ifdef GET_LINK_IMPL |
| 56688 | bool ByteCodeEmitter::emitUnsupported(SourceInfo L) { |
| 56689 | return emitOp<>(OP_Unsupported, L); |
| 56690 | } |
| 56691 | #endif |
| 56692 | #ifdef GET_EVAL_IMPL |
| 56693 | bool EvalEmitter::emitUnsupported(SourceInfo L) { |
| 56694 | if (!isActive()) return true; |
| 56695 | CurrentSource = L; |
| 56696 | return Unsupported(S, CodePtr()); |
| 56697 | } |
| 56698 | #endif |
| 56699 | #ifdef GET_OPCODE_NAMES |
| 56700 | OP_ZeroSint8, |
| 56701 | OP_ZeroUint8, |
| 56702 | OP_ZeroSint16, |
| 56703 | OP_ZeroUint16, |
| 56704 | OP_ZeroSint32, |
| 56705 | OP_ZeroUint32, |
| 56706 | OP_ZeroSint64, |
| 56707 | OP_ZeroUint64, |
| 56708 | OP_ZeroBool, |
| 56709 | #endif |
| 56710 | #ifdef GET_INTERPFN_LIST |
| 56711 | &Interp_ZeroSint8, |
| 56712 | &Interp_ZeroUint8, |
| 56713 | &Interp_ZeroSint16, |
| 56714 | &Interp_ZeroUint16, |
| 56715 | &Interp_ZeroSint32, |
| 56716 | &Interp_ZeroUint32, |
| 56717 | &Interp_ZeroSint64, |
| 56718 | &Interp_ZeroUint64, |
| 56719 | &Interp_ZeroBool, |
| 56720 | #endif |
| 56721 | #ifdef GET_INTERPFN_DISPATCHERS |
| 56722 | PRESERVE_NONE |
| 56723 | static bool Interp_ZeroSint8(InterpState &S) { |
| 56724 | Zero<PT_Sint8>(S); |
| 56725 | #if USE_TAILCALLS |
| 56726 | MUSTTAIL return InterpNext(S); |
| 56727 | #else |
| 56728 | return true; |
| 56729 | #endif |
| 56730 | } |
| 56731 | PRESERVE_NONE |
| 56732 | static bool Interp_ZeroUint8(InterpState &S) { |
| 56733 | Zero<PT_Uint8>(S); |
| 56734 | #if USE_TAILCALLS |
| 56735 | MUSTTAIL return InterpNext(S); |
| 56736 | #else |
| 56737 | return true; |
| 56738 | #endif |
| 56739 | } |
| 56740 | PRESERVE_NONE |
| 56741 | static bool Interp_ZeroSint16(InterpState &S) { |
| 56742 | Zero<PT_Sint16>(S); |
| 56743 | #if USE_TAILCALLS |
| 56744 | MUSTTAIL return InterpNext(S); |
| 56745 | #else |
| 56746 | return true; |
| 56747 | #endif |
| 56748 | } |
| 56749 | PRESERVE_NONE |
| 56750 | static bool Interp_ZeroUint16(InterpState &S) { |
| 56751 | Zero<PT_Uint16>(S); |
| 56752 | #if USE_TAILCALLS |
| 56753 | MUSTTAIL return InterpNext(S); |
| 56754 | #else |
| 56755 | return true; |
| 56756 | #endif |
| 56757 | } |
| 56758 | PRESERVE_NONE |
| 56759 | static bool Interp_ZeroSint32(InterpState &S) { |
| 56760 | Zero<PT_Sint32>(S); |
| 56761 | #if USE_TAILCALLS |
| 56762 | MUSTTAIL return InterpNext(S); |
| 56763 | #else |
| 56764 | return true; |
| 56765 | #endif |
| 56766 | } |
| 56767 | PRESERVE_NONE |
| 56768 | static bool Interp_ZeroUint32(InterpState &S) { |
| 56769 | Zero<PT_Uint32>(S); |
| 56770 | #if USE_TAILCALLS |
| 56771 | MUSTTAIL return InterpNext(S); |
| 56772 | #else |
| 56773 | return true; |
| 56774 | #endif |
| 56775 | } |
| 56776 | PRESERVE_NONE |
| 56777 | static bool Interp_ZeroSint64(InterpState &S) { |
| 56778 | Zero<PT_Sint64>(S); |
| 56779 | #if USE_TAILCALLS |
| 56780 | MUSTTAIL return InterpNext(S); |
| 56781 | #else |
| 56782 | return true; |
| 56783 | #endif |
| 56784 | } |
| 56785 | PRESERVE_NONE |
| 56786 | static bool Interp_ZeroUint64(InterpState &S) { |
| 56787 | Zero<PT_Uint64>(S); |
| 56788 | #if USE_TAILCALLS |
| 56789 | MUSTTAIL return InterpNext(S); |
| 56790 | #else |
| 56791 | return true; |
| 56792 | #endif |
| 56793 | } |
| 56794 | PRESERVE_NONE |
| 56795 | static bool Interp_ZeroBool(InterpState &S) { |
| 56796 | Zero<PT_Bool>(S); |
| 56797 | #if USE_TAILCALLS |
| 56798 | MUSTTAIL return InterpNext(S); |
| 56799 | #else |
| 56800 | return true; |
| 56801 | #endif |
| 56802 | } |
| 56803 | #endif |
| 56804 | #ifdef GET_DISASM |
| 56805 | case OP_ZeroSint8: |
| 56806 | Text.Op = PrintName("ZeroSint8" ); |
| 56807 | break; |
| 56808 | case OP_ZeroUint8: |
| 56809 | Text.Op = PrintName("ZeroUint8" ); |
| 56810 | break; |
| 56811 | case OP_ZeroSint16: |
| 56812 | Text.Op = PrintName("ZeroSint16" ); |
| 56813 | break; |
| 56814 | case OP_ZeroUint16: |
| 56815 | Text.Op = PrintName("ZeroUint16" ); |
| 56816 | break; |
| 56817 | case OP_ZeroSint32: |
| 56818 | Text.Op = PrintName("ZeroSint32" ); |
| 56819 | break; |
| 56820 | case OP_ZeroUint32: |
| 56821 | Text.Op = PrintName("ZeroUint32" ); |
| 56822 | break; |
| 56823 | case OP_ZeroSint64: |
| 56824 | Text.Op = PrintName("ZeroSint64" ); |
| 56825 | break; |
| 56826 | case OP_ZeroUint64: |
| 56827 | Text.Op = PrintName("ZeroUint64" ); |
| 56828 | break; |
| 56829 | case OP_ZeroBool: |
| 56830 | Text.Op = PrintName("ZeroBool" ); |
| 56831 | break; |
| 56832 | #endif |
| 56833 | #if defined(GET_EVAL_PROTO) || defined(GET_LINK_PROTO) |
| 56834 | bool emitZeroSint8(SourceInfo); |
| 56835 | bool emitZeroUint8(SourceInfo); |
| 56836 | bool emitZeroSint16(SourceInfo); |
| 56837 | bool emitZeroUint16(SourceInfo); |
| 56838 | bool emitZeroSint32(SourceInfo); |
| 56839 | bool emitZeroUint32(SourceInfo); |
| 56840 | bool emitZeroSint64(SourceInfo); |
| 56841 | bool emitZeroUint64(SourceInfo); |
| 56842 | bool emitZeroBool(SourceInfo); |
| 56843 | #endif |
| 56844 | #if defined(GET_EVAL_PROTO) || defined(GET_LINK_PROTO) |
| 56845 | [[nodiscard]] bool emitZero(PrimType, SourceInfo I); |
| 56846 | #endif |
| 56847 | #if defined(GET_EVAL_IMPL) || defined(GET_LINK_IMPL) |
| 56848 | bool |
| 56849 | #if defined(GET_EVAL_IMPL) |
| 56850 | EvalEmitter |
| 56851 | #else |
| 56852 | ByteCodeEmitter |
| 56853 | #endif |
| 56854 | ::emitZero(PrimType T0, SourceInfo I) { |
| 56855 | switch (T0) { |
| 56856 | case PT_Sint8: |
| 56857 | return emitZeroSint8(I); |
| 56858 | case PT_Uint8: |
| 56859 | return emitZeroUint8(I); |
| 56860 | case PT_Sint16: |
| 56861 | return emitZeroSint16(I); |
| 56862 | case PT_Uint16: |
| 56863 | return emitZeroUint16(I); |
| 56864 | case PT_Sint32: |
| 56865 | return emitZeroSint32(I); |
| 56866 | case PT_Uint32: |
| 56867 | return emitZeroUint32(I); |
| 56868 | case PT_Sint64: |
| 56869 | return emitZeroSint64(I); |
| 56870 | case PT_Uint64: |
| 56871 | return emitZeroUint64(I); |
| 56872 | case PT_Bool: |
| 56873 | return emitZeroBool(I); |
| 56874 | default: llvm_unreachable("invalid type: emitZero" ); |
| 56875 | } |
| 56876 | llvm_unreachable("invalid enum value" ); |
| 56877 | } |
| 56878 | #endif |
| 56879 | #ifdef GET_LINK_IMPL |
| 56880 | bool ByteCodeEmitter::emitZeroSint8(SourceInfo L) { |
| 56881 | return emitOp<>(OP_ZeroSint8, L); |
| 56882 | } |
| 56883 | bool ByteCodeEmitter::emitZeroUint8(SourceInfo L) { |
| 56884 | return emitOp<>(OP_ZeroUint8, L); |
| 56885 | } |
| 56886 | bool ByteCodeEmitter::emitZeroSint16(SourceInfo L) { |
| 56887 | return emitOp<>(OP_ZeroSint16, L); |
| 56888 | } |
| 56889 | bool ByteCodeEmitter::emitZeroUint16(SourceInfo L) { |
| 56890 | return emitOp<>(OP_ZeroUint16, L); |
| 56891 | } |
| 56892 | bool ByteCodeEmitter::emitZeroSint32(SourceInfo L) { |
| 56893 | return emitOp<>(OP_ZeroSint32, L); |
| 56894 | } |
| 56895 | bool ByteCodeEmitter::emitZeroUint32(SourceInfo L) { |
| 56896 | return emitOp<>(OP_ZeroUint32, L); |
| 56897 | } |
| 56898 | bool ByteCodeEmitter::emitZeroSint64(SourceInfo L) { |
| 56899 | return emitOp<>(OP_ZeroSint64, L); |
| 56900 | } |
| 56901 | bool ByteCodeEmitter::emitZeroUint64(SourceInfo L) { |
| 56902 | return emitOp<>(OP_ZeroUint64, L); |
| 56903 | } |
| 56904 | bool ByteCodeEmitter::emitZeroBool(SourceInfo L) { |
| 56905 | return emitOp<>(OP_ZeroBool, L); |
| 56906 | } |
| 56907 | #endif |
| 56908 | #ifdef GET_EVAL_IMPL |
| 56909 | bool EvalEmitter::emitZeroSint8(SourceInfo L) { |
| 56910 | if (!isActive()) return true; |
| 56911 | CurrentSource = L; |
| 56912 | return Zero<PT_Sint8>(S); |
| 56913 | } |
| 56914 | bool EvalEmitter::emitZeroUint8(SourceInfo L) { |
| 56915 | if (!isActive()) return true; |
| 56916 | CurrentSource = L; |
| 56917 | return Zero<PT_Uint8>(S); |
| 56918 | } |
| 56919 | bool EvalEmitter::emitZeroSint16(SourceInfo L) { |
| 56920 | if (!isActive()) return true; |
| 56921 | CurrentSource = L; |
| 56922 | return Zero<PT_Sint16>(S); |
| 56923 | } |
| 56924 | bool EvalEmitter::emitZeroUint16(SourceInfo L) { |
| 56925 | if (!isActive()) return true; |
| 56926 | CurrentSource = L; |
| 56927 | return Zero<PT_Uint16>(S); |
| 56928 | } |
| 56929 | bool EvalEmitter::emitZeroSint32(SourceInfo L) { |
| 56930 | if (!isActive()) return true; |
| 56931 | CurrentSource = L; |
| 56932 | return Zero<PT_Sint32>(S); |
| 56933 | } |
| 56934 | bool EvalEmitter::emitZeroUint32(SourceInfo L) { |
| 56935 | if (!isActive()) return true; |
| 56936 | CurrentSource = L; |
| 56937 | return Zero<PT_Uint32>(S); |
| 56938 | } |
| 56939 | bool EvalEmitter::emitZeroSint64(SourceInfo L) { |
| 56940 | if (!isActive()) return true; |
| 56941 | CurrentSource = L; |
| 56942 | return Zero<PT_Sint64>(S); |
| 56943 | } |
| 56944 | bool EvalEmitter::emitZeroUint64(SourceInfo L) { |
| 56945 | if (!isActive()) return true; |
| 56946 | CurrentSource = L; |
| 56947 | return Zero<PT_Uint64>(S); |
| 56948 | } |
| 56949 | bool EvalEmitter::emitZeroBool(SourceInfo L) { |
| 56950 | if (!isActive()) return true; |
| 56951 | CurrentSource = L; |
| 56952 | return Zero<PT_Bool>(S); |
| 56953 | } |
| 56954 | #endif |
| 56955 | #ifdef GET_OPCODE_NAMES |
| 56956 | OP_ZeroIntAP, |
| 56957 | #endif |
| 56958 | #ifdef GET_INTERPFN_LIST |
| 56959 | &Interp_ZeroIntAP, |
| 56960 | #endif |
| 56961 | #ifdef GET_INTERPFN_DISPATCHERS |
| 56962 | PRESERVE_NONE |
| 56963 | static bool Interp_ZeroIntAP(InterpState &S) { |
| 56964 | { |
| 56965 | const auto V0 = ReadArg<uint32_t>(S, S.PC); |
| 56966 | ZeroIntAP(S, V0); |
| 56967 | } |
| 56968 | #if USE_TAILCALLS |
| 56969 | MUSTTAIL return InterpNext(S); |
| 56970 | #else |
| 56971 | return true; |
| 56972 | #endif |
| 56973 | } |
| 56974 | #endif |
| 56975 | #ifdef GET_DISASM |
| 56976 | case OP_ZeroIntAP: |
| 56977 | Text.Op = PrintName("ZeroIntAP" ); |
| 56978 | Text.Args.push_back(printArg<uint32_t>(PC)); |
| 56979 | break; |
| 56980 | #endif |
| 56981 | #if defined(GET_EVAL_PROTO) || defined(GET_LINK_PROTO) |
| 56982 | bool emitZeroIntAP( uint32_t , SourceInfo); |
| 56983 | #endif |
| 56984 | #ifdef GET_LINK_IMPL |
| 56985 | bool ByteCodeEmitter::emitZeroIntAP( uint32_t A0, SourceInfo L) { |
| 56986 | return emitOp<uint32_t>(OP_ZeroIntAP, A0, L); |
| 56987 | } |
| 56988 | #endif |
| 56989 | #ifdef GET_EVAL_IMPL |
| 56990 | bool EvalEmitter::emitZeroIntAP( uint32_t A0, SourceInfo L) { |
| 56991 | if (!isActive()) return true; |
| 56992 | CurrentSource = L; |
| 56993 | return ZeroIntAP(S, A0); |
| 56994 | } |
| 56995 | #endif |
| 56996 | #ifdef GET_OPCODE_NAMES |
| 56997 | OP_ZeroIntAPS, |
| 56998 | #endif |
| 56999 | #ifdef GET_INTERPFN_LIST |
| 57000 | &Interp_ZeroIntAPS, |
| 57001 | #endif |
| 57002 | #ifdef GET_INTERPFN_DISPATCHERS |
| 57003 | PRESERVE_NONE |
| 57004 | static bool Interp_ZeroIntAPS(InterpState &S) { |
| 57005 | { |
| 57006 | const auto V0 = ReadArg<uint32_t>(S, S.PC); |
| 57007 | ZeroIntAPS(S, V0); |
| 57008 | } |
| 57009 | #if USE_TAILCALLS |
| 57010 | MUSTTAIL return InterpNext(S); |
| 57011 | #else |
| 57012 | return true; |
| 57013 | #endif |
| 57014 | } |
| 57015 | #endif |
| 57016 | #ifdef GET_DISASM |
| 57017 | case OP_ZeroIntAPS: |
| 57018 | Text.Op = PrintName("ZeroIntAPS" ); |
| 57019 | Text.Args.push_back(printArg<uint32_t>(PC)); |
| 57020 | break; |
| 57021 | #endif |
| 57022 | #if defined(GET_EVAL_PROTO) || defined(GET_LINK_PROTO) |
| 57023 | bool emitZeroIntAPS( uint32_t , SourceInfo); |
| 57024 | #endif |
| 57025 | #ifdef GET_LINK_IMPL |
| 57026 | bool ByteCodeEmitter::emitZeroIntAPS( uint32_t A0, SourceInfo L) { |
| 57027 | return emitOp<uint32_t>(OP_ZeroIntAPS, A0, L); |
| 57028 | } |
| 57029 | #endif |
| 57030 | #ifdef GET_EVAL_IMPL |
| 57031 | bool EvalEmitter::emitZeroIntAPS( uint32_t A0, SourceInfo L) { |
| 57032 | if (!isActive()) return true; |
| 57033 | CurrentSource = L; |
| 57034 | return ZeroIntAPS(S, A0); |
| 57035 | } |
| 57036 | #endif |
| 57037 | |