OLD | NEW |
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 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
52 Node** GetReplacements(Node* node); | 52 Node** GetReplacements(Node* node); |
53 Node** GetReplacementsWithType(Node* node, SimdType type); | 53 Node** GetReplacementsWithType(Node* node, SimdType type); |
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 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 | 64 |
64 struct NodeState { | 65 struct NodeState { |
65 Node* node; | 66 Node* node; |
66 int input_index; | 67 int input_index; |
67 }; | 68 }; |
68 | 69 |
69 Zone* zone_; | 70 Zone* zone_; |
70 Graph* const graph_; | 71 Graph* const graph_; |
71 MachineOperatorBuilder* machine_; | 72 MachineOperatorBuilder* machine_; |
72 CommonOperatorBuilder* common_; | 73 CommonOperatorBuilder* common_; |
73 NodeMarker<State> state_; | 74 NodeMarker<State> state_; |
74 ZoneDeque<NodeState> stack_; | 75 ZoneDeque<NodeState> stack_; |
75 Replacement* replacements_; | 76 Replacement* replacements_; |
76 Signature<MachineRepresentation>* signature_; | 77 Signature<MachineRepresentation>* signature_; |
77 Node* placeholder_; | 78 Node* placeholder_; |
78 int parameter_count_after_lowering_; | 79 int parameter_count_after_lowering_; |
79 }; | 80 }; |
80 | 81 |
81 } // namespace compiler | 82 } // namespace compiler |
82 } // namespace internal | 83 } // namespace internal |
83 } // namespace v8 | 84 } // namespace v8 |
84 | 85 |
85 #endif // V8_COMPILER_SIMD_SCALAR_LOWERING_H_ | 86 #endif // V8_COMPILER_SIMD_SCALAR_LOWERING_H_ |
OLD | NEW |