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

Side by Side Diff: src/compiler/simd-lowering.h

Issue 1991143002: Convert SIMD wasm ops to runtime function calls (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Fix bot fails Created 4 years, 5 months 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 | « BUILD.gn ('k') | src/compiler/simd-lowering.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 // Copyright 2016 the V8 project authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #ifndef V8_COMPILER_SIMD_LOWERING_H_
6 #define V8_COMPILER_SIMD_LOWERING_H_
7
8 #include "src/compiler/graph-reducer.h"
9 #include "src/compiler/wasm-compiler.h"
10 #include "src/runtime/runtime.h"
11
12 namespace v8 {
13 namespace internal {
14 namespace compiler {
15
16 typedef Signature<Conversion> ConversionSignature;
17
18 class SimdLowering final : public Reducer {
19 public:
20 SimdLowering(Zone* zone, WasmGraphBuilder* builder)
21 : builder_(builder), zone_(zone) {
22 InitializeSignatures();
23 }
24 virtual ~SimdLowering();
25 Reduction Reduce(Node* node) override;
26
27 private:
28 void InitializeSignatures();
29
30 ConversionSignature* SigCreateInt32x4;
31 ConversionSignature* SigCreateFloat32x4;
32 ConversionSignature* SigCreateInt16x8;
33 ConversionSignature* SigCreateInt8x16;
34 ConversionSignature* SigExtractLaneInt;
35 ConversionSignature* SigExtractLaneFloat;
36 ConversionSignature* SigDefault;
37
38 WasmGraphBuilder* builder_;
39 Zone* zone_;
40 };
41
42 } // namespace compiler
43 } // namespace internal
44 } // namespace v8
45
46 #endif // V8_COMPILER_SIMD_LOWERING_H_
OLDNEW
« no previous file with comments | « BUILD.gn ('k') | src/compiler/simd-lowering.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698