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

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: Created 4 years, 7 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 | « src/compiler/opcodes.h ('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 // Forward declarations.
17 class JSGraph;
18 class MachineOperatorBuilder;
19
20 class SimdLowering final : public Reducer {
21 public:
22 explicit SimdLowering(JSGraph* jsgraph, WasmGraphBuilder* builder,
bbudge 2016/05/19 09:14:28 explicit not necessary
gdeepti 2016/05/19 09:34:09 Done.
23 Handle<Context> context)
24 : jsgraph_(jsgraph), builder_(builder), context_(context) {}
25 ~SimdLowering() final;
bbudge 2016/05/19 09:14:28 virtual
gdeepti 2016/05/19 09:34:09 Done.
26
27 Reduction Reduce(Node* node) final;
bbudge 2016/05/19 09:14:28 override
gdeepti 2016/05/19 09:34:09 Done.
28
29 private:
30 enum Conversion { kNone, kOpaque, kInt32, kFloat32, kFloat64 };
31 Reduction ChangeToRuntimeCall(Node* node, Runtime::FunctionId f,
32 Conversion* signature);
33
34 JSGraph* jsgraph() const { return jsgraph_; }
35
36 JSGraph* const jsgraph_;
37 WasmGraphBuilder* builder_;
38 Handle<Context> context_;
39 };
40
41 } // namespace compiler
42 } // namespace internal
43 } // namespace v8
44
45 #endif // V8_COMPILER_SIMD_LOWERING_H_
OLDNEW
« no previous file with comments | « src/compiler/opcodes.h ('k') | src/compiler/simd-lowering.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698