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

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

Issue 2867343002: [wasm] Implement simd lowering for I8x16 (Closed)
Patch Set: Created 3 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
OLDNEW
1 // Copyright 2016 the V8 project authors. All rights reserved. 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 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_COMPILER_SIMD_SCALAR_LOWERING_H_ 5 #ifndef V8_COMPILER_SIMD_SCALAR_LOWERING_H_
6 #define V8_COMPILER_SIMD_SCALAR_LOWERING_H_ 6 #define V8_COMPILER_SIMD_SCALAR_LOWERING_H_
7 7
8 #include "src/compiler/common-operator.h" 8 #include "src/compiler/common-operator.h"
9 #include "src/compiler/graph.h" 9 #include "src/compiler/graph.h"
10 #include "src/compiler/js-graph.h" 10 #include "src/compiler/js-graph.h"
(...skipping 14 matching lines...) Expand all
25 25
26 int GetParameterCountAfterLowering(); 26 int GetParameterCountAfterLowering();
27 27
28 private: 28 private:
29 enum class State : uint8_t { kUnvisited, kOnStack, kVisited }; 29 enum class State : uint8_t { kUnvisited, kOnStack, kVisited };
30 30
31 enum class SimdType : uint8_t { 31 enum class SimdType : uint8_t {
32 kFloat32x4, 32 kFloat32x4,
33 kInt32x4, 33 kInt32x4,
34 kInt16x8, 34 kInt16x8,
35 kInt8x16,
35 kSimd1x4, 36 kSimd1x4,
36 kSimd1x8 37 kSimd1x8,
38 kSimd1x16
37 }; 39 };
38 40
39 struct Replacement { 41 struct Replacement {
40 Node** node = nullptr; 42 Node** node = nullptr;
41 SimdType type; // represents output type 43 SimdType type; // represents output type
42 int num_replacements = 0; 44 int num_replacements = 0;
43 }; 45 };
44 46
45 struct NodeState { 47 struct NodeState {
46 Node* node; 48 Node* node;
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after
95 Signature<MachineRepresentation>* signature_; 97 Signature<MachineRepresentation>* signature_;
96 Node* placeholder_; 98 Node* placeholder_;
97 int parameter_count_after_lowering_; 99 int parameter_count_after_lowering_;
98 }; 100 };
99 101
100 } // namespace compiler 102 } // namespace compiler
101 } // namespace internal 103 } // namespace internal
102 } // namespace v8 104 } // namespace v8
103 105
104 #endif // V8_COMPILER_SIMD_SCALAR_LOWERING_H_ 106 #endif // V8_COMPILER_SIMD_SCALAR_LOWERING_H_
OLDNEW
« no previous file with comments | « no previous file | src/compiler/simd-scalar-lowering.cc » ('j') | src/compiler/simd-scalar-lowering.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698