Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(41)

Side by Side Diff: src/wasm/wasm-macro-gen.h

Issue 2498283002: [wasm] implement simd lowering for replaceLane, load, store and test for phi (Closed)
Patch Set: [wasm] implement simd lowering for replaceLane, load, store and test for phi Created 4 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « src/wasm/ast-decoder.cc ('k') | src/wasm/wasm-opcodes.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2015 the V8 project authors. All rights reserved. 1 // Copyright 2015 the V8 project authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef V8_WASM_MACRO_GEN_H_ 5 #ifndef V8_WASM_MACRO_GEN_H_
6 #define V8_WASM_MACRO_GEN_H_ 6 #define V8_WASM_MACRO_GEN_H_
7 7
8 #include "src/wasm/wasm-opcodes.h" 8 #include "src/wasm/wasm-opcodes.h"
9 9
10 #include "src/zone/zone-containers.h" 10 #include "src/zone/zone-containers.h"
(...skipping 611 matching lines...) Expand 10 before | Expand all | Expand 10 after
622 // Simd Operations. 622 // Simd Operations.
623 //------------------------------------------------------------------------------ 623 //------------------------------------------------------------------------------
624 #define WASM_SIMD_I32x4_SPLAT(x) x, kSimdPrefix, kExprI32x4Splat & 0xff 624 #define WASM_SIMD_I32x4_SPLAT(x) x, kSimdPrefix, kExprI32x4Splat & 0xff
625 #define WASM_SIMD_I32x4_EXTRACT_LANE(lane, x) \ 625 #define WASM_SIMD_I32x4_EXTRACT_LANE(lane, x) \
626 x, kSimdPrefix, kExprI32x4ExtractLane & 0xff, static_cast<byte>(lane) 626 x, kSimdPrefix, kExprI32x4ExtractLane & 0xff, static_cast<byte>(lane)
627 #define WASM_SIMD_I32x4_ADD(x, y) x, y, kSimdPrefix, kExprI32x4Add & 0xff 627 #define WASM_SIMD_I32x4_ADD(x, y) x, y, kSimdPrefix, kExprI32x4Add & 0xff
628 #define WASM_SIMD_F32x4_SPLAT(x) x, kSimdPrefix, kExprF32x4Splat & 0xff 628 #define WASM_SIMD_F32x4_SPLAT(x) x, kSimdPrefix, kExprF32x4Splat & 0xff
629 #define WASM_SIMD_F32x4_EXTRACT_LANE(lane, x) \ 629 #define WASM_SIMD_F32x4_EXTRACT_LANE(lane, x) \
630 x, kSimdPrefix, kExprF32x4ExtractLane & 0xff, static_cast<byte>(lane) 630 x, kSimdPrefix, kExprF32x4ExtractLane & 0xff, static_cast<byte>(lane)
631 #define WASM_SIMD_F32x4_ADD(x, y) x, y, kSimdPrefix, kExprF32x4Add & 0xff 631 #define WASM_SIMD_F32x4_ADD(x, y) x, y, kSimdPrefix, kExprF32x4Add & 0xff
632 #define WASM_SIMD_I32x4_REPLACE_LANE(lane, x, y) \
633 y, x, kSimdPrefix, kExprI32x4ReplaceLane & 0xff, static_cast<byte>(lane)
634 #define WASM_SIMD_F32x4_REPLACE_LANE(lane, x, y) \
635 y, x, kSimdPrefix, kExprF32x4ReplaceLane & 0xff, static_cast<byte>(lane)
632 636
633 #define SIG_ENTRY_v_v kWasmFunctionTypeForm, 0, 0 637 #define SIG_ENTRY_v_v kWasmFunctionTypeForm, 0, 0
634 #define SIZEOF_SIG_ENTRY_v_v 3 638 #define SIZEOF_SIG_ENTRY_v_v 3
635 639
636 #define SIG_ENTRY_v_x(a) kWasmFunctionTypeForm, 1, a, 0 640 #define SIG_ENTRY_v_x(a) kWasmFunctionTypeForm, 1, a, 0
637 #define SIG_ENTRY_v_xx(a, b) kWasmFunctionTypeForm, 2, a, b, 0 641 #define SIG_ENTRY_v_xx(a, b) kWasmFunctionTypeForm, 2, a, b, 0
638 #define SIG_ENTRY_v_xxx(a, b, c) kWasmFunctionTypeForm, 3, a, b, c, 0 642 #define SIG_ENTRY_v_xxx(a, b, c) kWasmFunctionTypeForm, 3, a, b, c, 0
639 #define SIZEOF_SIG_ENTRY_v_x 4 643 #define SIZEOF_SIG_ENTRY_v_x 4
640 #define SIZEOF_SIG_ENTRY_v_xx 5 644 #define SIZEOF_SIG_ENTRY_v_xx 5
641 #define SIZEOF_SIG_ENTRY_v_xxx 6 645 #define SIZEOF_SIG_ENTRY_v_xxx 6
(...skipping 10 matching lines...) Expand all
652 #define WASM_BRV(depth, val) val, kExprBr, static_cast<byte>(depth) 656 #define WASM_BRV(depth, val) val, kExprBr, static_cast<byte>(depth)
653 #define WASM_BRV_IF(depth, val, cond) \ 657 #define WASM_BRV_IF(depth, val, cond) \
654 val, cond, kExprBrIf, static_cast<byte>(depth) 658 val, cond, kExprBrIf, static_cast<byte>(depth)
655 #define WASM_BRV_IFD(depth, val, cond) \ 659 #define WASM_BRV_IFD(depth, val, cond) \
656 val, cond, kExprBrIf, static_cast<byte>(depth), kExprDrop 660 val, cond, kExprBrIf, static_cast<byte>(depth), kExprDrop
657 #define WASM_IFB(cond, ...) cond, kExprIf, kLocalVoid, __VA_ARGS__, kExprEnd 661 #define WASM_IFB(cond, ...) cond, kExprIf, kLocalVoid, __VA_ARGS__, kExprEnd
658 #define WASM_BR_TABLEV(val, key, count, ...) \ 662 #define WASM_BR_TABLEV(val, key, count, ...) \
659 val, key, kExprBrTable, U32V_1(count), __VA_ARGS__ 663 val, key, kExprBrTable, U32V_1(count), __VA_ARGS__
660 664
661 #endif // V8_WASM_MACRO_GEN_H_ 665 #endif // V8_WASM_MACRO_GEN_H_
OLDNEW
« no previous file with comments | « src/wasm/ast-decoder.cc ('k') | src/wasm/wasm-opcodes.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698