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

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

Issue 2718323003: [wasm]implement simd lowering for f32x4->i32x4, i32x4 min/max and shift instructions (Closed)
Patch Set: comments Created 3 years, 9 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 | « no previous file | 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/machine-operator.h" 10 #include "src/compiler/machine-operator.h"
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after
54 SimdType ReplacementType(Node* node); 54 SimdType ReplacementType(Node* node);
55 void PreparePhiReplacement(Node* phi); 55 void PreparePhiReplacement(Node* phi);
56 void SetLoweredType(Node* node, Node* output); 56 void SetLoweredType(Node* node, Node* output);
57 void GetIndexNodes(Node* index, Node** new_indices); 57 void GetIndexNodes(Node* index, Node** new_indices);
58 void LowerLoadOp(MachineRepresentation rep, Node* node, 58 void LowerLoadOp(MachineRepresentation rep, Node* node,
59 const Operator* load_op); 59 const Operator* load_op);
60 void LowerStoreOp(MachineRepresentation rep, Node* node, 60 void LowerStoreOp(MachineRepresentation rep, Node* node,
61 const Operator* store_op, SimdType rep_type); 61 const Operator* store_op, SimdType rep_type);
62 void LowerBinaryOp(Node* node, SimdType input_rep_type, const Operator* op); 62 void LowerBinaryOp(Node* node, SimdType input_rep_type, const Operator* op);
63 void LowerUnaryOp(Node* node, SimdType input_rep_type, const Operator* op); 63 void LowerUnaryOp(Node* node, SimdType input_rep_type, const Operator* op);
64 void LowerIntMinMax(Node* node, const Operator* op, bool is_max);
65 void LowerConvertFromFloat(Node* node, bool is_signed);
66 void LowerShiftOp(Node* node, const Operator* op);
64 67
65 struct NodeState { 68 struct NodeState {
66 Node* node; 69 Node* node;
67 int input_index; 70 int input_index;
68 }; 71 };
69 72
70 Zone* zone_; 73 Zone* zone_;
71 Graph* const graph_; 74 Graph* const graph_;
72 MachineOperatorBuilder* machine_; 75 MachineOperatorBuilder* machine_;
73 CommonOperatorBuilder* common_; 76 CommonOperatorBuilder* common_;
74 NodeMarker<State> state_; 77 NodeMarker<State> state_;
75 ZoneDeque<NodeState> stack_; 78 ZoneDeque<NodeState> stack_;
76 Replacement* replacements_; 79 Replacement* replacements_;
77 Signature<MachineRepresentation>* signature_; 80 Signature<MachineRepresentation>* signature_;
78 Node* placeholder_; 81 Node* placeholder_;
79 int parameter_count_after_lowering_; 82 int parameter_count_after_lowering_;
80 }; 83 };
81 84
82 } // namespace compiler 85 } // namespace compiler
83 } // namespace internal 86 } // namespace internal
84 } // namespace v8 87 } // namespace v8
85 88
86 #endif // V8_COMPILER_SIMD_SCALAR_LOWERING_H_ 89 #endif // V8_COMPILER_SIMD_SCALAR_LOWERING_H_
OLDNEW
« no previous file with comments | « no previous file | src/compiler/simd-scalar-lowering.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698