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

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

Issue 2919203002: [WASM] Eliminate SIMD boolean vector types. (Closed)
Patch Set: Restore DCHECKs in AssembleMove/Swap now that we're back to 1 SIMD representation. Created 3 years, 6 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/s390/instruction-selector-s390.cc ('k') | src/compiler/simd-scalar-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
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 10 matching lines...) Expand all
21 SimdScalarLowering(JSGraph* jsgraph, 21 SimdScalarLowering(JSGraph* jsgraph,
22 Signature<MachineRepresentation>* signature); 22 Signature<MachineRepresentation>* signature);
23 23
24 void LowerGraph(); 24 void LowerGraph();
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 { kFloat32x4, kInt32x4, kInt16x8, kInt8x16 };
32 kFloat32x4,
33 kInt32x4,
34 kInt16x8,
35 kInt8x16,
36 kSimd1x4,
37 kSimd1x8,
38 kSimd1x16
39 };
40 32
41 #if defined(V8_TARGET_BIG_ENDIAN) 33 #if defined(V8_TARGET_BIG_ENDIAN)
42 static constexpr int kLaneOffsets[16] = {15, 14, 13, 12, 11, 10, 9, 8, 34 static constexpr int kLaneOffsets[16] = {15, 14, 13, 12, 11, 10, 9, 8,
43 7, 6, 5, 4, 3, 2, 1, 0}; 35 7, 6, 5, 4, 3, 2, 1, 0};
44 #else 36 #else
45 static constexpr int kLaneOffsets[16] = {0, 1, 2, 3, 4, 5, 6, 7, 37 static constexpr int kLaneOffsets[16] = {0, 1, 2, 3, 4, 5, 6, 7,
46 8, 9, 10, 11, 12, 13, 14, 15}; 38 8, 9, 10, 11, 12, 13, 14, 15};
47 #endif 39 #endif
48 struct Replacement { 40 struct Replacement {
49 Node** node = nullptr; 41 Node** node = nullptr;
(...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after
104 Signature<MachineRepresentation>* signature_; 96 Signature<MachineRepresentation>* signature_;
105 Node* placeholder_; 97 Node* placeholder_;
106 int parameter_count_after_lowering_; 98 int parameter_count_after_lowering_;
107 }; 99 };
108 100
109 } // namespace compiler 101 } // namespace compiler
110 } // namespace internal 102 } // namespace internal
111 } // namespace v8 103 } // namespace v8
112 104
113 #endif // V8_COMPILER_SIMD_SCALAR_LOWERING_H_ 105 #endif // V8_COMPILER_SIMD_SCALAR_LOWERING_H_
OLDNEW
« no previous file with comments | « src/compiler/s390/instruction-selector-s390.cc ('k') | src/compiler/simd-scalar-lowering.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698