author | zmajo |
Tue, 01 Dec 2015 08:05:10 +0100 | |
changeset 34503 | 57d1a0e76091 |
parent 33469 | 30f4811eded0 |
child 38049 | e8541793960f |
permissions | -rw-r--r-- |
1 | 1 |
/* |
25930 | 2 |
* Copyright (c) 2007, 2014, Oracle and/or its affiliates. All rights reserved. |
1 | 3 |
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
4 |
* |
|
5 |
* This code is free software; you can redistribute it and/or modify it |
|
6 |
* under the terms of the GNU General Public License version 2 only, as |
|
7 |
* published by the Free Software Foundation. |
|
8 |
* |
|
9 |
* This code is distributed in the hope that it will be useful, but WITHOUT |
|
10 |
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or |
|
11 |
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License |
|
12 |
* version 2 for more details (a copy is included in the LICENSE file that |
|
13 |
* accompanied this code). |
|
14 |
* |
|
15 |
* You should have received a copy of the GNU General Public License version |
|
16 |
* 2 along with this work; if not, write to the Free Software Foundation, |
|
17 |
* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. |
|
18 |
* |
|
5547
f4b087cbb361
6941466: Oracle rebranding changes for Hotspot repositories
trims
parents:
670
diff
changeset
|
19 |
* Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA |
f4b087cbb361
6941466: Oracle rebranding changes for Hotspot repositories
trims
parents:
670
diff
changeset
|
20 |
* or visit www.oracle.com if you need additional information or have any |
f4b087cbb361
6941466: Oracle rebranding changes for Hotspot repositories
trims
parents:
670
diff
changeset
|
21 |
* questions. |
1 | 22 |
*/ |
23 |
||
7397 | 24 |
#ifndef SHARE_VM_OPTO_VECTORNODE_HPP |
25 |
#define SHARE_VM_OPTO_VECTORNODE_HPP |
|
26 |
||
27 |
#include "opto/matcher.hpp" |
|
28 |
#include "opto/memnode.hpp" |
|
29 |
#include "opto/node.hpp" |
|
30 |
#include "opto/opcodes.hpp" |
|
31 |
||
13930 | 32 |
//------------------------------VectorNode------------------------------------- |
1 | 33 |
// Vector Operation |
13104
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
10255
diff
changeset
|
34 |
class VectorNode : public TypeNode { |
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
10255
diff
changeset
|
35 |
public: |
1 | 36 |
|
13104
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
10255
diff
changeset
|
37 |
VectorNode(Node* n1, const TypeVect* vt) : TypeNode(vt, 2) { |
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
10255
diff
changeset
|
38 |
init_class_id(Class_Vector); |
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
10255
diff
changeset
|
39 |
init_req(1, n1); |
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
10255
diff
changeset
|
40 |
} |
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
10255
diff
changeset
|
41 |
VectorNode(Node* n1, Node* n2, const TypeVect* vt) : TypeNode(vt, 3) { |
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
10255
diff
changeset
|
42 |
init_class_id(Class_Vector); |
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
10255
diff
changeset
|
43 |
init_req(1, n1); |
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
10255
diff
changeset
|
44 |
init_req(2, n2); |
1 | 45 |
} |
46 |
||
33469
30f4811eded0
8139340: SuperWord enhancement to support vector conditional move (CMovVD) on Intel AVX cpu
iveresov
parents:
33088
diff
changeset
|
47 |
VectorNode(Node* n1, Node* n2, Node* n3, const TypeVect* vt) : TypeNode(vt, 4) { |
30f4811eded0
8139340: SuperWord enhancement to support vector conditional move (CMovVD) on Intel AVX cpu
iveresov
parents:
33088
diff
changeset
|
48 |
init_class_id(Class_Vector); |
30f4811eded0
8139340: SuperWord enhancement to support vector conditional move (CMovVD) on Intel AVX cpu
iveresov
parents:
33088
diff
changeset
|
49 |
init_req(1, n1); |
30f4811eded0
8139340: SuperWord enhancement to support vector conditional move (CMovVD) on Intel AVX cpu
iveresov
parents:
33088
diff
changeset
|
50 |
init_req(2, n2); |
30f4811eded0
8139340: SuperWord enhancement to support vector conditional move (CMovVD) on Intel AVX cpu
iveresov
parents:
33088
diff
changeset
|
51 |
init_req(3, n3); |
30f4811eded0
8139340: SuperWord enhancement to support vector conditional move (CMovVD) on Intel AVX cpu
iveresov
parents:
33088
diff
changeset
|
52 |
} |
30f4811eded0
8139340: SuperWord enhancement to support vector conditional move (CMovVD) on Intel AVX cpu
iveresov
parents:
33088
diff
changeset
|
53 |
|
13104
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
10255
diff
changeset
|
54 |
const TypeVect* vect_type() const { return type()->is_vect(); } |
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
10255
diff
changeset
|
55 |
uint length() const { return vect_type()->length(); } // Vector length |
13485
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13104
diff
changeset
|
56 |
uint length_in_bytes() const { return vect_type()->length_in_bytes(); } |
1 | 57 |
|
58 |
virtual int Opcode() const; |
|
59 |
||
13104
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
10255
diff
changeset
|
60 |
virtual uint ideal_reg() const { return Matcher::vector_ideal_reg(vect_type()->length_in_bytes()); } |
1 | 61 |
|
25930 | 62 |
static VectorNode* scalar2vector(Node* s, uint vlen, const Type* opd_t); |
63 |
static VectorNode* shift_count(Node* shift, Node* cnt, uint vlen, BasicType bt); |
|
64 |
static VectorNode* make(int opc, Node* n1, Node* n2, uint vlen, BasicType bt); |
|
13104
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
10255
diff
changeset
|
65 |
|
13490
d19348851d2e
7192963: assert(_in[req-1] == this) failed: Must pass arg count to 'new'
kvn
parents:
13485
diff
changeset
|
66 |
static int opcode(int opc, BasicType bt); |
13104
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
10255
diff
changeset
|
67 |
static bool implemented(int opc, uint vlen, BasicType bt); |
13485
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13104
diff
changeset
|
68 |
static bool is_shift(Node* n); |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13104
diff
changeset
|
69 |
static bool is_invariant_vector(Node* n); |
13490
d19348851d2e
7192963: assert(_in[req-1] == this) failed: Must pass arg count to 'new'
kvn
parents:
13485
diff
changeset
|
70 |
// [Start, end) half-open range defining which operands are vectors |
d19348851d2e
7192963: assert(_in[req-1] == this) failed: Must pass arg count to 'new'
kvn
parents:
13485
diff
changeset
|
71 |
static void vector_operands(Node* n, uint* start, uint* end); |
1 | 72 |
}; |
73 |
||
13930 | 74 |
//===========================Vector=ALU=Operations============================= |
1 | 75 |
|
13930 | 76 |
//------------------------------AddVBNode-------------------------------------- |
1 | 77 |
// Vector add byte |
78 |
class AddVBNode : public VectorNode { |
|
79 |
public: |
|
13104
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
10255
diff
changeset
|
80 |
AddVBNode(Node* in1, Node* in2, const TypeVect* vt) : VectorNode(in1,in2,vt) {} |
1 | 81 |
virtual int Opcode() const; |
82 |
}; |
|
83 |
||
13930 | 84 |
//------------------------------AddVSNode-------------------------------------- |
13104
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
10255
diff
changeset
|
85 |
// Vector add char/short |
1 | 86 |
class AddVSNode : public VectorNode { |
87 |
public: |
|
13104
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
10255
diff
changeset
|
88 |
AddVSNode(Node* in1, Node* in2, const TypeVect* vt) : VectorNode(in1,in2,vt) {} |
1 | 89 |
virtual int Opcode() const; |
90 |
}; |
|
91 |
||
13930 | 92 |
//------------------------------AddVINode-------------------------------------- |
1 | 93 |
// Vector add int |
94 |
class AddVINode : public VectorNode { |
|
95 |
public: |
|
13104
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
10255
diff
changeset
|
96 |
AddVINode(Node* in1, Node* in2, const TypeVect* vt) : VectorNode(in1,in2,vt) {} |
1 | 97 |
virtual int Opcode() const; |
98 |
}; |
|
99 |
||
30624 | 100 |
//------------------------------AddVLNode-------------------------------------- |
101 |
// Vector add long |
|
102 |
class AddVLNode : public VectorNode { |
|
103 |
public: |
|
104 |
AddVLNode(Node* in1, Node* in2, const TypeVect* vt) : VectorNode(in1, in2, vt) {} |
|
105 |
virtual int Opcode() const; |
|
106 |
}; |
|
107 |
||
108 |
//------------------------------AddVFNode-------------------------------------- |
|
109 |
// Vector add float |
|
110 |
class AddVFNode : public VectorNode { |
|
111 |
public: |
|
112 |
AddVFNode(Node* in1, Node* in2, const TypeVect* vt) : VectorNode(in1, in2, vt) {} |
|
113 |
virtual int Opcode() const; |
|
114 |
}; |
|
115 |
||
116 |
//------------------------------AddVDNode-------------------------------------- |
|
117 |
// Vector add double |
|
118 |
class AddVDNode : public VectorNode { |
|
119 |
public: |
|
120 |
AddVDNode(Node* in1, Node* in2, const TypeVect* vt) : VectorNode(in1, in2, vt) {} |
|
121 |
virtual int Opcode() const; |
|
122 |
}; |
|
123 |
||
30211 | 124 |
//------------------------------ReductionNode------------------------------------ |
125 |
// Perform reduction of a vector |
|
126 |
class ReductionNode : public Node { |
|
127 |
public: |
|
128 |
ReductionNode(Node *ctrl, Node* in1, Node* in2) : Node(ctrl, in1, in2) {} |
|
129 |
||
130 |
static ReductionNode* make(int opc, Node *ctrl, Node* in1, Node* in2, BasicType bt); |
|
131 |
static int opcode(int opc, BasicType bt); |
|
132 |
static bool implemented(int opc, uint vlen, BasicType bt); |
|
133 |
}; |
|
134 |
||
135 |
//------------------------------AddReductionVINode-------------------------------------- |
|
136 |
// Vector add int as a reduction |
|
137 |
class AddReductionVINode : public ReductionNode { |
|
138 |
public: |
|
139 |
AddReductionVINode(Node * ctrl, Node* in1, Node* in2) : ReductionNode(ctrl, in1, in2) {} |
|
140 |
virtual int Opcode() const; |
|
141 |
virtual const Type* bottom_type() const { return TypeInt::INT; } |
|
142 |
virtual uint ideal_reg() const { return Op_RegI; } |
|
143 |
}; |
|
144 |
||
145 |
//------------------------------AddReductionVLNode-------------------------------------- |
|
146 |
// Vector add long as a reduction |
|
147 |
class AddReductionVLNode : public ReductionNode { |
|
148 |
public: |
|
149 |
AddReductionVLNode(Node *ctrl, Node* in1, Node* in2) : ReductionNode(ctrl, in1, in2) {} |
|
150 |
virtual int Opcode() const; |
|
151 |
virtual const Type* bottom_type() const { return TypeLong::LONG; } |
|
152 |
virtual uint ideal_reg() const { return Op_RegL; } |
|
153 |
}; |
|
154 |
||
155 |
//------------------------------AddReductionVFNode-------------------------------------- |
|
156 |
// Vector add float as a reduction |
|
157 |
class AddReductionVFNode : public ReductionNode { |
|
158 |
public: |
|
159 |
AddReductionVFNode(Node *ctrl, Node* in1, Node* in2) : ReductionNode(ctrl, in1, in2) {} |
|
160 |
virtual int Opcode() const; |
|
161 |
virtual const Type* bottom_type() const { return Type::FLOAT; } |
|
162 |
virtual uint ideal_reg() const { return Op_RegF; } |
|
163 |
}; |
|
164 |
||
165 |
//------------------------------AddReductionVDNode-------------------------------------- |
|
166 |
// Vector add double as a reduction |
|
167 |
class AddReductionVDNode : public ReductionNode { |
|
168 |
public: |
|
169 |
AddReductionVDNode(Node *ctrl, Node* in1, Node* in2) : ReductionNode(ctrl, in1, in2) {} |
|
170 |
virtual int Opcode() const; |
|
171 |
virtual const Type* bottom_type() const { return Type::DOUBLE; } |
|
172 |
virtual uint ideal_reg() const { return Op_RegD; } |
|
173 |
}; |
|
174 |
||
13930 | 175 |
//------------------------------SubVBNode-------------------------------------- |
1 | 176 |
// Vector subtract byte |
177 |
class SubVBNode : public VectorNode { |
|
178 |
public: |
|
13104
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
10255
diff
changeset
|
179 |
SubVBNode(Node* in1, Node* in2, const TypeVect* vt) : VectorNode(in1,in2,vt) {} |
1 | 180 |
virtual int Opcode() const; |
181 |
}; |
|
182 |
||
13930 | 183 |
//------------------------------SubVSNode-------------------------------------- |
1 | 184 |
// Vector subtract short |
185 |
class SubVSNode : public VectorNode { |
|
186 |
public: |
|
13104
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
10255
diff
changeset
|
187 |
SubVSNode(Node* in1, Node* in2, const TypeVect* vt) : VectorNode(in1,in2,vt) {} |
1 | 188 |
virtual int Opcode() const; |
189 |
}; |
|
190 |
||
13930 | 191 |
//------------------------------SubVINode-------------------------------------- |
1 | 192 |
// Vector subtract int |
193 |
class SubVINode : public VectorNode { |
|
194 |
public: |
|
13104
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
10255
diff
changeset
|
195 |
SubVINode(Node* in1, Node* in2, const TypeVect* vt) : VectorNode(in1,in2,vt) {} |
1 | 196 |
virtual int Opcode() const; |
197 |
}; |
|
198 |
||
13930 | 199 |
//------------------------------SubVLNode-------------------------------------- |
1 | 200 |
// Vector subtract long |
201 |
class SubVLNode : public VectorNode { |
|
202 |
public: |
|
13104
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
10255
diff
changeset
|
203 |
SubVLNode(Node* in1, Node* in2, const TypeVect* vt) : VectorNode(in1,in2,vt) {} |
1 | 204 |
virtual int Opcode() const; |
205 |
}; |
|
206 |
||
13930 | 207 |
//------------------------------SubVFNode-------------------------------------- |
1 | 208 |
// Vector subtract float |
209 |
class SubVFNode : public VectorNode { |
|
210 |
public: |
|
13104
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
10255
diff
changeset
|
211 |
SubVFNode(Node* in1, Node* in2, const TypeVect* vt) : VectorNode(in1,in2,vt) {} |
1 | 212 |
virtual int Opcode() const; |
213 |
}; |
|
214 |
||
13930 | 215 |
//------------------------------SubVDNode-------------------------------------- |
1 | 216 |
// Vector subtract double |
217 |
class SubVDNode : public VectorNode { |
|
218 |
public: |
|
13104
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
10255
diff
changeset
|
219 |
SubVDNode(Node* in1, Node* in2, const TypeVect* vt) : VectorNode(in1,in2,vt) {} |
1 | 220 |
virtual int Opcode() const; |
221 |
}; |
|
222 |
||
13930 | 223 |
//------------------------------MulVSNode-------------------------------------- |
13485
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13104
diff
changeset
|
224 |
// Vector multiply short |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13104
diff
changeset
|
225 |
class MulVSNode : public VectorNode { |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13104
diff
changeset
|
226 |
public: |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13104
diff
changeset
|
227 |
MulVSNode(Node* in1, Node* in2, const TypeVect* vt) : VectorNode(in1,in2,vt) {} |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13104
diff
changeset
|
228 |
virtual int Opcode() const; |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13104
diff
changeset
|
229 |
}; |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13104
diff
changeset
|
230 |
|
13930 | 231 |
//------------------------------MulVINode-------------------------------------- |
13485
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13104
diff
changeset
|
232 |
// Vector multiply int |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13104
diff
changeset
|
233 |
class MulVINode : public VectorNode { |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13104
diff
changeset
|
234 |
public: |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13104
diff
changeset
|
235 |
MulVINode(Node* in1, Node* in2, const TypeVect* vt) : VectorNode(in1,in2,vt) {} |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13104
diff
changeset
|
236 |
virtual int Opcode() const; |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13104
diff
changeset
|
237 |
}; |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13104
diff
changeset
|
238 |
|
30624 | 239 |
//------------------------------MulVLNode-------------------------------------- |
240 |
// Vector multiply long |
|
241 |
class MulVLNode : public VectorNode { |
|
242 |
public: |
|
243 |
MulVLNode(Node* in1, Node* in2, const TypeVect* vt) : VectorNode(in1, in2, vt) {} |
|
244 |
virtual int Opcode() const; |
|
245 |
}; |
|
246 |
||
247 |
//------------------------------MulVFNode-------------------------------------- |
|
248 |
// Vector multiply float |
|
249 |
class MulVFNode : public VectorNode { |
|
250 |
public: |
|
251 |
MulVFNode(Node* in1, Node* in2, const TypeVect* vt) : VectorNode(in1, in2, vt) {} |
|
252 |
virtual int Opcode() const; |
|
253 |
}; |
|
254 |
||
255 |
//------------------------------MulVDNode-------------------------------------- |
|
256 |
// Vector multiply double |
|
257 |
class MulVDNode : public VectorNode { |
|
258 |
public: |
|
259 |
MulVDNode(Node* in1, Node* in2, const TypeVect* vt) : VectorNode(in1, in2, vt) {} |
|
260 |
virtual int Opcode() const; |
|
261 |
}; |
|
262 |
||
33469
30f4811eded0
8139340: SuperWord enhancement to support vector conditional move (CMovVD) on Intel AVX cpu
iveresov
parents:
33088
diff
changeset
|
263 |
//------------------------------CMoveVDNode-------------------------------------- |
30f4811eded0
8139340: SuperWord enhancement to support vector conditional move (CMovVD) on Intel AVX cpu
iveresov
parents:
33088
diff
changeset
|
264 |
// Vector multiply double |
30f4811eded0
8139340: SuperWord enhancement to support vector conditional move (CMovVD) on Intel AVX cpu
iveresov
parents:
33088
diff
changeset
|
265 |
class CMoveVDNode : public VectorNode { |
30f4811eded0
8139340: SuperWord enhancement to support vector conditional move (CMovVD) on Intel AVX cpu
iveresov
parents:
33088
diff
changeset
|
266 |
public: |
30f4811eded0
8139340: SuperWord enhancement to support vector conditional move (CMovVD) on Intel AVX cpu
iveresov
parents:
33088
diff
changeset
|
267 |
CMoveVDNode(Node* in1, Node* in2, Node* in3, const TypeVect* vt) : VectorNode(in1, in2, in3, vt) {} |
30f4811eded0
8139340: SuperWord enhancement to support vector conditional move (CMovVD) on Intel AVX cpu
iveresov
parents:
33088
diff
changeset
|
268 |
virtual int Opcode() const; |
30f4811eded0
8139340: SuperWord enhancement to support vector conditional move (CMovVD) on Intel AVX cpu
iveresov
parents:
33088
diff
changeset
|
269 |
}; |
30f4811eded0
8139340: SuperWord enhancement to support vector conditional move (CMovVD) on Intel AVX cpu
iveresov
parents:
33088
diff
changeset
|
270 |
|
30211 | 271 |
//------------------------------MulReductionVINode-------------------------------------- |
272 |
// Vector multiply int as a reduction |
|
273 |
class MulReductionVINode : public ReductionNode { |
|
274 |
public: |
|
275 |
MulReductionVINode(Node *ctrl, Node* in1, Node* in2) : ReductionNode(ctrl, in1, in2) {} |
|
276 |
virtual int Opcode() const; |
|
277 |
virtual const Type* bottom_type() const { return TypeInt::INT; } |
|
278 |
virtual uint ideal_reg() const { return Op_RegI; } |
|
279 |
}; |
|
280 |
||
30624 | 281 |
//------------------------------MulReductionVLNode-------------------------------------- |
282 |
// Vector multiply int as a reduction |
|
283 |
class MulReductionVLNode : public ReductionNode { |
|
284 |
public: |
|
285 |
MulReductionVLNode(Node *ctrl, Node* in1, Node* in2) : ReductionNode(ctrl, in1, in2) {} |
|
1 | 286 |
virtual int Opcode() const; |
30624 | 287 |
virtual const Type* bottom_type() const { return TypeLong::LONG; } |
288 |
virtual uint ideal_reg() const { return Op_RegI; } |
|
1 | 289 |
}; |
290 |
||
30211 | 291 |
//------------------------------MulReductionVFNode-------------------------------------- |
292 |
// Vector multiply float as a reduction |
|
293 |
class MulReductionVFNode : public ReductionNode { |
|
294 |
public: |
|
295 |
MulReductionVFNode(Node *ctrl, Node* in1, Node* in2) : ReductionNode(ctrl, in1, in2) {} |
|
296 |
virtual int Opcode() const; |
|
297 |
virtual const Type* bottom_type() const { return Type::FLOAT; } |
|
298 |
virtual uint ideal_reg() const { return Op_RegF; } |
|
299 |
}; |
|
300 |
||
301 |
//------------------------------MulReductionVDNode-------------------------------------- |
|
302 |
// Vector multiply double as a reduction |
|
303 |
class MulReductionVDNode : public ReductionNode { |
|
304 |
public: |
|
305 |
MulReductionVDNode(Node *ctrl, Node* in1, Node* in2) : ReductionNode(ctrl, in1, in2) {} |
|
306 |
virtual int Opcode() const; |
|
307 |
virtual const Type* bottom_type() const { return Type::DOUBLE; } |
|
308 |
virtual uint ideal_reg() const { return Op_RegD; } |
|
309 |
}; |
|
310 |
||
13930 | 311 |
//------------------------------DivVFNode-------------------------------------- |
1 | 312 |
// Vector divide float |
313 |
class DivVFNode : public VectorNode { |
|
314 |
public: |
|
13104
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
10255
diff
changeset
|
315 |
DivVFNode(Node* in1, Node* in2, const TypeVect* vt) : VectorNode(in1,in2,vt) {} |
1 | 316 |
virtual int Opcode() const; |
317 |
}; |
|
318 |
||
13930 | 319 |
//------------------------------DivVDNode-------------------------------------- |
1 | 320 |
// Vector Divide double |
321 |
class DivVDNode : public VectorNode { |
|
322 |
public: |
|
13104
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
10255
diff
changeset
|
323 |
DivVDNode(Node* in1, Node* in2, const TypeVect* vt) : VectorNode(in1,in2,vt) {} |
1 | 324 |
virtual int Opcode() const; |
325 |
}; |
|
326 |
||
33088
34fe49ecee13
8138583: aarch64: add support for vectorizing fabs/fneg
enevill
parents:
32723
diff
changeset
|
327 |
//------------------------------AbsVFNode-------------------------------------- |
34fe49ecee13
8138583: aarch64: add support for vectorizing fabs/fneg
enevill
parents:
32723
diff
changeset
|
328 |
// Vector Abs float |
34fe49ecee13
8138583: aarch64: add support for vectorizing fabs/fneg
enevill
parents:
32723
diff
changeset
|
329 |
class AbsVFNode : public VectorNode { |
34fe49ecee13
8138583: aarch64: add support for vectorizing fabs/fneg
enevill
parents:
32723
diff
changeset
|
330 |
public: |
34fe49ecee13
8138583: aarch64: add support for vectorizing fabs/fneg
enevill
parents:
32723
diff
changeset
|
331 |
AbsVFNode(Node* in, const TypeVect* vt) : VectorNode(in,vt) {} |
34fe49ecee13
8138583: aarch64: add support for vectorizing fabs/fneg
enevill
parents:
32723
diff
changeset
|
332 |
virtual int Opcode() const; |
34fe49ecee13
8138583: aarch64: add support for vectorizing fabs/fneg
enevill
parents:
32723
diff
changeset
|
333 |
}; |
34fe49ecee13
8138583: aarch64: add support for vectorizing fabs/fneg
enevill
parents:
32723
diff
changeset
|
334 |
|
34fe49ecee13
8138583: aarch64: add support for vectorizing fabs/fneg
enevill
parents:
32723
diff
changeset
|
335 |
//------------------------------AbsVDNode-------------------------------------- |
34fe49ecee13
8138583: aarch64: add support for vectorizing fabs/fneg
enevill
parents:
32723
diff
changeset
|
336 |
// Vector Abs double |
34fe49ecee13
8138583: aarch64: add support for vectorizing fabs/fneg
enevill
parents:
32723
diff
changeset
|
337 |
class AbsVDNode : public VectorNode { |
34fe49ecee13
8138583: aarch64: add support for vectorizing fabs/fneg
enevill
parents:
32723
diff
changeset
|
338 |
public: |
34fe49ecee13
8138583: aarch64: add support for vectorizing fabs/fneg
enevill
parents:
32723
diff
changeset
|
339 |
AbsVDNode(Node* in, const TypeVect* vt) : VectorNode(in,vt) {} |
34fe49ecee13
8138583: aarch64: add support for vectorizing fabs/fneg
enevill
parents:
32723
diff
changeset
|
340 |
virtual int Opcode() const; |
34fe49ecee13
8138583: aarch64: add support for vectorizing fabs/fneg
enevill
parents:
32723
diff
changeset
|
341 |
}; |
34fe49ecee13
8138583: aarch64: add support for vectorizing fabs/fneg
enevill
parents:
32723
diff
changeset
|
342 |
|
34fe49ecee13
8138583: aarch64: add support for vectorizing fabs/fneg
enevill
parents:
32723
diff
changeset
|
343 |
//------------------------------NegVFNode-------------------------------------- |
34fe49ecee13
8138583: aarch64: add support for vectorizing fabs/fneg
enevill
parents:
32723
diff
changeset
|
344 |
// Vector Neg float |
34fe49ecee13
8138583: aarch64: add support for vectorizing fabs/fneg
enevill
parents:
32723
diff
changeset
|
345 |
class NegVFNode : public VectorNode { |
34fe49ecee13
8138583: aarch64: add support for vectorizing fabs/fneg
enevill
parents:
32723
diff
changeset
|
346 |
public: |
34fe49ecee13
8138583: aarch64: add support for vectorizing fabs/fneg
enevill
parents:
32723
diff
changeset
|
347 |
NegVFNode(Node* in, const TypeVect* vt) : VectorNode(in,vt) {} |
34fe49ecee13
8138583: aarch64: add support for vectorizing fabs/fneg
enevill
parents:
32723
diff
changeset
|
348 |
virtual int Opcode() const; |
34fe49ecee13
8138583: aarch64: add support for vectorizing fabs/fneg
enevill
parents:
32723
diff
changeset
|
349 |
}; |
34fe49ecee13
8138583: aarch64: add support for vectorizing fabs/fneg
enevill
parents:
32723
diff
changeset
|
350 |
|
34fe49ecee13
8138583: aarch64: add support for vectorizing fabs/fneg
enevill
parents:
32723
diff
changeset
|
351 |
//------------------------------NegVDNode-------------------------------------- |
34fe49ecee13
8138583: aarch64: add support for vectorizing fabs/fneg
enevill
parents:
32723
diff
changeset
|
352 |
// Vector Neg double |
34fe49ecee13
8138583: aarch64: add support for vectorizing fabs/fneg
enevill
parents:
32723
diff
changeset
|
353 |
class NegVDNode : public VectorNode { |
34fe49ecee13
8138583: aarch64: add support for vectorizing fabs/fneg
enevill
parents:
32723
diff
changeset
|
354 |
public: |
34fe49ecee13
8138583: aarch64: add support for vectorizing fabs/fneg
enevill
parents:
32723
diff
changeset
|
355 |
NegVDNode(Node* in, const TypeVect* vt) : VectorNode(in,vt) {} |
34fe49ecee13
8138583: aarch64: add support for vectorizing fabs/fneg
enevill
parents:
32723
diff
changeset
|
356 |
virtual int Opcode() const; |
34fe49ecee13
8138583: aarch64: add support for vectorizing fabs/fneg
enevill
parents:
32723
diff
changeset
|
357 |
}; |
34fe49ecee13
8138583: aarch64: add support for vectorizing fabs/fneg
enevill
parents:
32723
diff
changeset
|
358 |
|
32723
56534fb3d71a
8135028: support for vectorizing double precision sqrt
mcberg
parents:
31035
diff
changeset
|
359 |
//------------------------------SqrtVDNode-------------------------------------- |
56534fb3d71a
8135028: support for vectorizing double precision sqrt
mcberg
parents:
31035
diff
changeset
|
360 |
// Vector Sqrt double |
56534fb3d71a
8135028: support for vectorizing double precision sqrt
mcberg
parents:
31035
diff
changeset
|
361 |
class SqrtVDNode : public VectorNode { |
56534fb3d71a
8135028: support for vectorizing double precision sqrt
mcberg
parents:
31035
diff
changeset
|
362 |
public: |
56534fb3d71a
8135028: support for vectorizing double precision sqrt
mcberg
parents:
31035
diff
changeset
|
363 |
SqrtVDNode(Node* in, const TypeVect* vt) : VectorNode(in,vt) {} |
56534fb3d71a
8135028: support for vectorizing double precision sqrt
mcberg
parents:
31035
diff
changeset
|
364 |
virtual int Opcode() const; |
56534fb3d71a
8135028: support for vectorizing double precision sqrt
mcberg
parents:
31035
diff
changeset
|
365 |
}; |
56534fb3d71a
8135028: support for vectorizing double precision sqrt
mcberg
parents:
31035
diff
changeset
|
366 |
|
13930 | 367 |
//------------------------------LShiftVBNode----------------------------------- |
13485
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13104
diff
changeset
|
368 |
// Vector left shift bytes |
1 | 369 |
class LShiftVBNode : public VectorNode { |
370 |
public: |
|
13104
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
10255
diff
changeset
|
371 |
LShiftVBNode(Node* in1, Node* in2, const TypeVect* vt) : VectorNode(in1,in2,vt) {} |
1 | 372 |
virtual int Opcode() const; |
373 |
}; |
|
374 |
||
13930 | 375 |
//------------------------------LShiftVSNode----------------------------------- |
13485
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13104
diff
changeset
|
376 |
// Vector left shift shorts |
1 | 377 |
class LShiftVSNode : public VectorNode { |
378 |
public: |
|
13104
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
10255
diff
changeset
|
379 |
LShiftVSNode(Node* in1, Node* in2, const TypeVect* vt) : VectorNode(in1,in2,vt) {} |
1 | 380 |
virtual int Opcode() const; |
381 |
}; |
|
382 |
||
13930 | 383 |
//------------------------------LShiftVINode----------------------------------- |
13485
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13104
diff
changeset
|
384 |
// Vector left shift ints |
1 | 385 |
class LShiftVINode : public VectorNode { |
386 |
public: |
|
13104
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
10255
diff
changeset
|
387 |
LShiftVINode(Node* in1, Node* in2, const TypeVect* vt) : VectorNode(in1,in2,vt) {} |
1 | 388 |
virtual int Opcode() const; |
389 |
}; |
|
390 |
||
13930 | 391 |
//------------------------------LShiftVLNode----------------------------------- |
13485
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13104
diff
changeset
|
392 |
// Vector left shift longs |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13104
diff
changeset
|
393 |
class LShiftVLNode : public VectorNode { |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13104
diff
changeset
|
394 |
public: |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13104
diff
changeset
|
395 |
LShiftVLNode(Node* in1, Node* in2, const TypeVect* vt) : VectorNode(in1,in2,vt) {} |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13104
diff
changeset
|
396 |
virtual int Opcode() const; |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13104
diff
changeset
|
397 |
}; |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13104
diff
changeset
|
398 |
|
13930 | 399 |
//------------------------------RShiftVBNode----------------------------------- |
13485
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13104
diff
changeset
|
400 |
// Vector right arithmetic (signed) shift bytes |
13104
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
10255
diff
changeset
|
401 |
class RShiftVBNode : public VectorNode { |
1 | 402 |
public: |
13104
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
10255
diff
changeset
|
403 |
RShiftVBNode(Node* in1, Node* in2, const TypeVect* vt) : VectorNode(in1,in2,vt) {} |
1 | 404 |
virtual int Opcode() const; |
405 |
}; |
|
406 |
||
13930 | 407 |
//------------------------------RShiftVSNode----------------------------------- |
13485
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13104
diff
changeset
|
408 |
// Vector right arithmetic (signed) shift shorts |
13104
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
10255
diff
changeset
|
409 |
class RShiftVSNode : public VectorNode { |
1 | 410 |
public: |
13104
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
10255
diff
changeset
|
411 |
RShiftVSNode(Node* in1, Node* in2, const TypeVect* vt) : VectorNode(in1,in2,vt) {} |
1 | 412 |
virtual int Opcode() const; |
413 |
}; |
|
414 |
||
13930 | 415 |
//------------------------------RShiftVINode----------------------------------- |
13485
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13104
diff
changeset
|
416 |
// Vector right arithmetic (signed) shift ints |
13104
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
10255
diff
changeset
|
417 |
class RShiftVINode : public VectorNode { |
1 | 418 |
public: |
13104
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
10255
diff
changeset
|
419 |
RShiftVINode(Node* in1, Node* in2, const TypeVect* vt) : VectorNode(in1,in2,vt) {} |
1 | 420 |
virtual int Opcode() const; |
421 |
}; |
|
422 |
||
13930 | 423 |
//------------------------------RShiftVLNode----------------------------------- |
13485
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13104
diff
changeset
|
424 |
// Vector right arithmetic (signed) shift longs |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13104
diff
changeset
|
425 |
class RShiftVLNode : public VectorNode { |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13104
diff
changeset
|
426 |
public: |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13104
diff
changeset
|
427 |
RShiftVLNode(Node* in1, Node* in2, const TypeVect* vt) : VectorNode(in1,in2,vt) {} |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13104
diff
changeset
|
428 |
virtual int Opcode() const; |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13104
diff
changeset
|
429 |
}; |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13104
diff
changeset
|
430 |
|
13930 | 431 |
//------------------------------URShiftVBNode---------------------------------- |
13485
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13104
diff
changeset
|
432 |
// Vector right logical (unsigned) shift bytes |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13104
diff
changeset
|
433 |
class URShiftVBNode : public VectorNode { |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13104
diff
changeset
|
434 |
public: |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13104
diff
changeset
|
435 |
URShiftVBNode(Node* in1, Node* in2, const TypeVect* vt) : VectorNode(in1,in2,vt) {} |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13104
diff
changeset
|
436 |
virtual int Opcode() const; |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13104
diff
changeset
|
437 |
}; |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13104
diff
changeset
|
438 |
|
13930 | 439 |
//------------------------------URShiftVSNode---------------------------------- |
13485
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13104
diff
changeset
|
440 |
// Vector right logical (unsigned) shift shorts |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13104
diff
changeset
|
441 |
class URShiftVSNode : public VectorNode { |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13104
diff
changeset
|
442 |
public: |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13104
diff
changeset
|
443 |
URShiftVSNode(Node* in1, Node* in2, const TypeVect* vt) : VectorNode(in1,in2,vt) {} |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13104
diff
changeset
|
444 |
virtual int Opcode() const; |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13104
diff
changeset
|
445 |
}; |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13104
diff
changeset
|
446 |
|
13930 | 447 |
//------------------------------URShiftVINode---------------------------------- |
13485
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13104
diff
changeset
|
448 |
// Vector right logical (unsigned) shift ints |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13104
diff
changeset
|
449 |
class URShiftVINode : public VectorNode { |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13104
diff
changeset
|
450 |
public: |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13104
diff
changeset
|
451 |
URShiftVINode(Node* in1, Node* in2, const TypeVect* vt) : VectorNode(in1,in2,vt) {} |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13104
diff
changeset
|
452 |
virtual int Opcode() const; |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13104
diff
changeset
|
453 |
}; |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13104
diff
changeset
|
454 |
|
13930 | 455 |
//------------------------------URShiftVLNode---------------------------------- |
13485
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13104
diff
changeset
|
456 |
// Vector right logical (unsigned) shift longs |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13104
diff
changeset
|
457 |
class URShiftVLNode : public VectorNode { |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13104
diff
changeset
|
458 |
public: |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13104
diff
changeset
|
459 |
URShiftVLNode(Node* in1, Node* in2, const TypeVect* vt) : VectorNode(in1,in2,vt) {} |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13104
diff
changeset
|
460 |
virtual int Opcode() const; |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13104
diff
changeset
|
461 |
}; |
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13104
diff
changeset
|
462 |
|
13930 | 463 |
//------------------------------LShiftCntVNode--------------------------------- |
464 |
// Vector left shift count |
|
465 |
class LShiftCntVNode : public VectorNode { |
|
466 |
public: |
|
467 |
LShiftCntVNode(Node* cnt, const TypeVect* vt) : VectorNode(cnt,vt) {} |
|
468 |
virtual int Opcode() const; |
|
469 |
virtual uint ideal_reg() const { return Matcher::vector_shift_count_ideal_reg(vect_type()->length_in_bytes()); } |
|
470 |
}; |
|
471 |
||
472 |
//------------------------------RShiftCntVNode--------------------------------- |
|
473 |
// Vector right shift count |
|
474 |
class RShiftCntVNode : public VectorNode { |
|
475 |
public: |
|
476 |
RShiftCntVNode(Node* cnt, const TypeVect* vt) : VectorNode(cnt,vt) {} |
|
477 |
virtual int Opcode() const; |
|
478 |
virtual uint ideal_reg() const { return Matcher::vector_shift_count_ideal_reg(vect_type()->length_in_bytes()); } |
|
479 |
}; |
|
480 |
||
13485
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13104
diff
changeset
|
481 |
|
1 | 482 |
//------------------------------AndVNode--------------------------------------- |
13485
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13104
diff
changeset
|
483 |
// Vector and integer |
1 | 484 |
class AndVNode : public VectorNode { |
485 |
public: |
|
13104
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
10255
diff
changeset
|
486 |
AndVNode(Node* in1, Node* in2, const TypeVect* vt) : VectorNode(in1,in2,vt) {} |
1 | 487 |
virtual int Opcode() const; |
488 |
}; |
|
489 |
||
490 |
//------------------------------OrVNode--------------------------------------- |
|
13485
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13104
diff
changeset
|
491 |
// Vector or integer |
1 | 492 |
class OrVNode : public VectorNode { |
493 |
public: |
|
13104
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
10255
diff
changeset
|
494 |
OrVNode(Node* in1, Node* in2, const TypeVect* vt) : VectorNode(in1,in2,vt) {} |
1 | 495 |
virtual int Opcode() const; |
496 |
}; |
|
497 |
||
498 |
//------------------------------XorVNode--------------------------------------- |
|
13485
6c7faa516fc6
6340864: Implement vectorization optimizations in hotspot-server
kvn
parents:
13104
diff
changeset
|
499 |
// Vector xor integer |
1 | 500 |
class XorVNode : public VectorNode { |
501 |
public: |
|
13104
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
10255
diff
changeset
|
502 |
XorVNode(Node* in1, Node* in2, const TypeVect* vt) : VectorNode(in1,in2,vt) {} |
1 | 503 |
virtual int Opcode() const; |
504 |
}; |
|
505 |
||
13104
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
10255
diff
changeset
|
506 |
//================================= M E M O R Y =============================== |
1 | 507 |
|
13104
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
10255
diff
changeset
|
508 |
//------------------------------LoadVectorNode--------------------------------- |
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
10255
diff
changeset
|
509 |
// Load Vector from memory |
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
10255
diff
changeset
|
510 |
class LoadVectorNode : public LoadNode { |
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
10255
diff
changeset
|
511 |
public: |
31035
0f0743952c41
8077504: Unsafe load can loose control dependency and cause crash
roland
parents:
30624
diff
changeset
|
512 |
LoadVectorNode(Node* c, Node* mem, Node* adr, const TypePtr* at, const TypeVect* vt, ControlDependency control_dependency = LoadNode::DependsOnlyOnTest) |
0f0743952c41
8077504: Unsafe load can loose control dependency and cause crash
roland
parents:
30624
diff
changeset
|
513 |
: LoadNode(c, mem, adr, at, vt, MemNode::unordered, control_dependency) { |
13104
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
10255
diff
changeset
|
514 |
init_class_id(Class_LoadVector); |
1 | 515 |
} |
516 |
||
13104
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
10255
diff
changeset
|
517 |
const TypeVect* vect_type() const { return type()->is_vect(); } |
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
10255
diff
changeset
|
518 |
uint length() const { return vect_type()->length(); } // Vector length |
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
10255
diff
changeset
|
519 |
|
1 | 520 |
virtual int Opcode() const; |
521 |
||
13104
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
10255
diff
changeset
|
522 |
virtual uint ideal_reg() const { return Matcher::vector_ideal_reg(memory_size()); } |
1 | 523 |
virtual BasicType memory_type() const { return T_VOID; } |
13104
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
10255
diff
changeset
|
524 |
virtual int memory_size() const { return vect_type()->length_in_bytes(); } |
1 | 525 |
|
13104
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
10255
diff
changeset
|
526 |
virtual int store_Opcode() const { return Op_StoreVector; } |
1 | 527 |
|
25930 | 528 |
static LoadVectorNode* make(int opc, Node* ctl, Node* mem, |
31035
0f0743952c41
8077504: Unsafe load can loose control dependency and cause crash
roland
parents:
30624
diff
changeset
|
529 |
Node* adr, const TypePtr* atyp, |
0f0743952c41
8077504: Unsafe load can loose control dependency and cause crash
roland
parents:
30624
diff
changeset
|
530 |
uint vlen, BasicType bt, |
0f0743952c41
8077504: Unsafe load can loose control dependency and cause crash
roland
parents:
30624
diff
changeset
|
531 |
ControlDependency control_dependency = LoadNode::DependsOnlyOnTest); |
1 | 532 |
}; |
533 |
||
13104
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
10255
diff
changeset
|
534 |
//------------------------------StoreVectorNode-------------------------------- |
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
10255
diff
changeset
|
535 |
// Store Vector to memory |
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
10255
diff
changeset
|
536 |
class StoreVectorNode : public StoreNode { |
1 | 537 |
public: |
13104
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
10255
diff
changeset
|
538 |
StoreVectorNode(Node* c, Node* mem, Node* adr, const TypePtr* at, Node* val) |
22845
d8812d0ff387
8024921: PPC64 (part 113): Extend Load and Store nodes to know about memory ordering
goetz
parents:
13930
diff
changeset
|
539 |
: StoreNode(c, mem, adr, at, val, MemNode::unordered) { |
13104
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
10255
diff
changeset
|
540 |
assert(val->is_Vector() || val->is_LoadVector(), "sanity"); |
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
10255
diff
changeset
|
541 |
init_class_id(Class_StoreVector); |
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
10255
diff
changeset
|
542 |
} |
1 | 543 |
|
13104
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
10255
diff
changeset
|
544 |
const TypeVect* vect_type() const { return in(MemNode::ValueIn)->bottom_type()->is_vect(); } |
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
10255
diff
changeset
|
545 |
uint length() const { return vect_type()->length(); } // Vector length |
1 | 546 |
|
547 |
virtual int Opcode() const; |
|
548 |
||
13104
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
10255
diff
changeset
|
549 |
virtual uint ideal_reg() const { return Matcher::vector_ideal_reg(memory_size()); } |
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
10255
diff
changeset
|
550 |
virtual BasicType memory_type() const { return T_VOID; } |
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
10255
diff
changeset
|
551 |
virtual int memory_size() const { return vect_type()->length_in_bytes(); } |
1 | 552 |
|
25930 | 553 |
static StoreVectorNode* make(int opc, Node* ctl, Node* mem, |
10255 | 554 |
Node* adr, const TypePtr* atyp, Node* val, |
1 | 555 |
uint vlen); |
556 |
}; |
|
557 |
||
13104
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
10255
diff
changeset
|
558 |
|
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
10255
diff
changeset
|
559 |
//=========================Promote_Scalar_to_Vector============================ |
1 | 560 |
|
13104
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
10255
diff
changeset
|
561 |
//------------------------------ReplicateBNode--------------------------------- |
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
10255
diff
changeset
|
562 |
// Replicate byte scalar to be vector |
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
10255
diff
changeset
|
563 |
class ReplicateBNode : public VectorNode { |
1 | 564 |
public: |
13104
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
10255
diff
changeset
|
565 |
ReplicateBNode(Node* in1, const TypeVect* vt) : VectorNode(in1, vt) {} |
1 | 566 |
virtual int Opcode() const; |
567 |
}; |
|
568 |
||
13104
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
10255
diff
changeset
|
569 |
//------------------------------ReplicateSNode--------------------------------- |
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
10255
diff
changeset
|
570 |
// Replicate short scalar to be vector |
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
10255
diff
changeset
|
571 |
class ReplicateSNode : public VectorNode { |
1 | 572 |
public: |
13104
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
10255
diff
changeset
|
573 |
ReplicateSNode(Node* in1, const TypeVect* vt) : VectorNode(in1, vt) {} |
1 | 574 |
virtual int Opcode() const; |
575 |
}; |
|
576 |
||
13104
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
10255
diff
changeset
|
577 |
//------------------------------ReplicateINode--------------------------------- |
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
10255
diff
changeset
|
578 |
// Replicate int scalar to be vector |
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
10255
diff
changeset
|
579 |
class ReplicateINode : public VectorNode { |
1 | 580 |
public: |
13104
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
10255
diff
changeset
|
581 |
ReplicateINode(Node* in1, const TypeVect* vt) : VectorNode(in1, vt) {} |
1 | 582 |
virtual int Opcode() const; |
583 |
}; |
|
584 |
||
13104
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
10255
diff
changeset
|
585 |
//------------------------------ReplicateLNode--------------------------------- |
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
10255
diff
changeset
|
586 |
// Replicate long scalar to be vector |
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
10255
diff
changeset
|
587 |
class ReplicateLNode : public VectorNode { |
1 | 588 |
public: |
13104
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
10255
diff
changeset
|
589 |
ReplicateLNode(Node* in1, const TypeVect* vt) : VectorNode(in1, vt) {} |
1 | 590 |
virtual int Opcode() const; |
591 |
}; |
|
592 |
||
13104
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
10255
diff
changeset
|
593 |
//------------------------------ReplicateFNode--------------------------------- |
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
10255
diff
changeset
|
594 |
// Replicate float scalar to be vector |
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
10255
diff
changeset
|
595 |
class ReplicateFNode : public VectorNode { |
1 | 596 |
public: |
13104
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
10255
diff
changeset
|
597 |
ReplicateFNode(Node* in1, const TypeVect* vt) : VectorNode(in1, vt) {} |
1 | 598 |
virtual int Opcode() const; |
599 |
}; |
|
600 |
||
13104
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
10255
diff
changeset
|
601 |
//------------------------------ReplicateDNode--------------------------------- |
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
10255
diff
changeset
|
602 |
// Replicate double scalar to be vector |
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
10255
diff
changeset
|
603 |
class ReplicateDNode : public VectorNode { |
1 | 604 |
public: |
13104
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
10255
diff
changeset
|
605 |
ReplicateDNode(Node* in1, const TypeVect* vt) : VectorNode(in1, vt) {} |
1 | 606 |
virtual int Opcode() const; |
607 |
}; |
|
608 |
||
13104
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
10255
diff
changeset
|
609 |
//========================Pack_Scalars_into_a_Vector=========================== |
1 | 610 |
|
611 |
//------------------------------PackNode--------------------------------------- |
|
612 |
// Pack parent class (not for code generation). |
|
613 |
class PackNode : public VectorNode { |
|
614 |
public: |
|
13104
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
10255
diff
changeset
|
615 |
PackNode(Node* in1, const TypeVect* vt) : VectorNode(in1, vt) {} |
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
10255
diff
changeset
|
616 |
PackNode(Node* in1, Node* n2, const TypeVect* vt) : VectorNode(in1, n2, vt) {} |
1 | 617 |
virtual int Opcode() const; |
618 |
||
13490
d19348851d2e
7192963: assert(_in[req-1] == this) failed: Must pass arg count to 'new'
kvn
parents:
13485
diff
changeset
|
619 |
void add_opd(Node* n) { |
d19348851d2e
7192963: assert(_in[req-1] == this) failed: Must pass arg count to 'new'
kvn
parents:
13485
diff
changeset
|
620 |
add_req(n); |
1 | 621 |
} |
622 |
||
623 |
// Create a binary tree form for Packs. [lo, hi) (half-open) range |
|
25930 | 624 |
PackNode* binary_tree_pack(int lo, int hi); |
1 | 625 |
|
25930 | 626 |
static PackNode* make(Node* s, uint vlen, BasicType bt); |
1 | 627 |
}; |
628 |
||
13930 | 629 |
//------------------------------PackBNode-------------------------------------- |
1 | 630 |
// Pack byte scalars into vector |
631 |
class PackBNode : public PackNode { |
|
632 |
public: |
|
13104
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
10255
diff
changeset
|
633 |
PackBNode(Node* in1, const TypeVect* vt) : PackNode(in1, vt) {} |
1 | 634 |
virtual int Opcode() const; |
635 |
}; |
|
636 |
||
13930 | 637 |
//------------------------------PackSNode-------------------------------------- |
1 | 638 |
// Pack short scalars into a vector |
639 |
class PackSNode : public PackNode { |
|
640 |
public: |
|
13104
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
10255
diff
changeset
|
641 |
PackSNode(Node* in1, const TypeVect* vt) : PackNode(in1, vt) {} |
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
10255
diff
changeset
|
642 |
PackSNode(Node* in1, Node* in2, const TypeVect* vt) : PackNode(in1, in2, vt) {} |
1 | 643 |
virtual int Opcode() const; |
644 |
}; |
|
645 |
||
13930 | 646 |
//------------------------------PackINode-------------------------------------- |
1 | 647 |
// Pack integer scalars into a vector |
648 |
class PackINode : public PackNode { |
|
649 |
public: |
|
13104
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
10255
diff
changeset
|
650 |
PackINode(Node* in1, const TypeVect* vt) : PackNode(in1, vt) {} |
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
10255
diff
changeset
|
651 |
PackINode(Node* in1, Node* in2, const TypeVect* vt) : PackNode(in1, in2, vt) {} |
1 | 652 |
virtual int Opcode() const; |
653 |
}; |
|
654 |
||
13930 | 655 |
//------------------------------PackLNode-------------------------------------- |
1 | 656 |
// Pack long scalars into a vector |
657 |
class PackLNode : public PackNode { |
|
658 |
public: |
|
13104
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
10255
diff
changeset
|
659 |
PackLNode(Node* in1, const TypeVect* vt) : PackNode(in1, vt) {} |
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
10255
diff
changeset
|
660 |
PackLNode(Node* in1, Node* in2, const TypeVect* vt) : PackNode(in1, in2, vt) {} |
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
10255
diff
changeset
|
661 |
virtual int Opcode() const; |
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
10255
diff
changeset
|
662 |
}; |
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
10255
diff
changeset
|
663 |
|
13930 | 664 |
//------------------------------Pack2LNode------------------------------------- |
13104
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
10255
diff
changeset
|
665 |
// Pack 2 long scalars into a vector |
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
10255
diff
changeset
|
666 |
class Pack2LNode : public PackNode { |
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
10255
diff
changeset
|
667 |
public: |
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
10255
diff
changeset
|
668 |
Pack2LNode(Node* in1, Node* in2, const TypeVect* vt) : PackNode(in1, in2, vt) {} |
1 | 669 |
virtual int Opcode() const; |
670 |
}; |
|
671 |
||
13930 | 672 |
//------------------------------PackFNode-------------------------------------- |
1 | 673 |
// Pack float scalars into vector |
674 |
class PackFNode : public PackNode { |
|
675 |
public: |
|
13104
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
10255
diff
changeset
|
676 |
PackFNode(Node* in1, const TypeVect* vt) : PackNode(in1, vt) {} |
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
10255
diff
changeset
|
677 |
PackFNode(Node* in1, Node* in2, const TypeVect* vt) : PackNode(in1, in2, vt) {} |
1 | 678 |
virtual int Opcode() const; |
679 |
}; |
|
680 |
||
13930 | 681 |
//------------------------------PackDNode-------------------------------------- |
1 | 682 |
// Pack double scalars into a vector |
683 |
class PackDNode : public PackNode { |
|
684 |
public: |
|
13104
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
10255
diff
changeset
|
685 |
PackDNode(Node* in1, const TypeVect* vt) : PackNode(in1, vt) {} |
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
10255
diff
changeset
|
686 |
PackDNode(Node* in1, Node* in2, const TypeVect* vt) : PackNode(in1, in2, vt) {} |
1 | 687 |
virtual int Opcode() const; |
688 |
}; |
|
689 |
||
13930 | 690 |
//------------------------------Pack2DNode------------------------------------- |
13104
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
10255
diff
changeset
|
691 |
// Pack 2 double scalars into a vector |
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
10255
diff
changeset
|
692 |
class Pack2DNode : public PackNode { |
1 | 693 |
public: |
13104
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
10255
diff
changeset
|
694 |
Pack2DNode(Node* in1, Node* in2, const TypeVect* vt) : PackNode(in1, in2, vt) {} |
1 | 695 |
virtual int Opcode() const; |
696 |
}; |
|
697 |
||
698 |
||
13930 | 699 |
//========================Extract_Scalar_from_Vector=========================== |
1 | 700 |
|
13930 | 701 |
//------------------------------ExtractNode------------------------------------ |
1 | 702 |
// Extract a scalar from a vector at position "pos" |
703 |
class ExtractNode : public Node { |
|
704 |
public: |
|
705 |
ExtractNode(Node* src, ConINode* pos) : Node(NULL, src, (Node*)pos) { |
|
706 |
assert(in(2)->get_int() >= 0, "positive constants"); |
|
707 |
} |
|
708 |
virtual int Opcode() const; |
|
709 |
uint pos() const { return in(2)->get_int(); } |
|
710 |
||
25930 | 711 |
static Node* make(Node* v, uint position, BasicType bt); |
1 | 712 |
}; |
713 |
||
13930 | 714 |
//------------------------------ExtractBNode----------------------------------- |
1 | 715 |
// Extract a byte from a vector at position "pos" |
716 |
class ExtractBNode : public ExtractNode { |
|
717 |
public: |
|
718 |
ExtractBNode(Node* src, ConINode* pos) : ExtractNode(src, pos) {} |
|
719 |
virtual int Opcode() const; |
|
720 |
virtual const Type *bottom_type() const { return TypeInt::INT; } |
|
721 |
virtual uint ideal_reg() const { return Op_RegI; } |
|
722 |
}; |
|
723 |
||
13930 | 724 |
//------------------------------ExtractUBNode---------------------------------- |
13104
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
10255
diff
changeset
|
725 |
// Extract a boolean from a vector at position "pos" |
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
10255
diff
changeset
|
726 |
class ExtractUBNode : public ExtractNode { |
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
10255
diff
changeset
|
727 |
public: |
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
10255
diff
changeset
|
728 |
ExtractUBNode(Node* src, ConINode* pos) : ExtractNode(src, pos) {} |
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
10255
diff
changeset
|
729 |
virtual int Opcode() const; |
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
10255
diff
changeset
|
730 |
virtual const Type *bottom_type() const { return TypeInt::INT; } |
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
10255
diff
changeset
|
731 |
virtual uint ideal_reg() const { return Op_RegI; } |
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
10255
diff
changeset
|
732 |
}; |
657b387034fb
7119644: Increase superword's vector size up to 256 bits
kvn
parents:
10255
diff
changeset
|
733 |
|
13930 | 734 |
//------------------------------ExtractCNode----------------------------------- |
1 | 735 |
// Extract a char from a vector at position "pos" |
736 |
class ExtractCNode : public ExtractNode { |
|
737 |
public: |
|
738 |
ExtractCNode(Node* src, ConINode* pos) : ExtractNode(src, pos) {} |
|
739 |
virtual int Opcode() const; |
|
740 |
virtual const Type *bottom_type() const { return TypeInt::INT; } |
|
741 |
virtual uint ideal_reg() const { return Op_RegI; } |
|
742 |
}; |
|
743 |
||
13930 | 744 |
//------------------------------ExtractSNode----------------------------------- |
1 | 745 |
// Extract a short from a vector at position "pos" |
746 |
class ExtractSNode : public ExtractNode { |
|
747 |
public: |
|
748 |
ExtractSNode(Node* src, ConINode* pos) : ExtractNode(src, pos) {} |
|
749 |
virtual int Opcode() const; |
|
750 |
virtual const Type *bottom_type() const { return TypeInt::INT; } |
|
751 |
virtual uint ideal_reg() const { return Op_RegI; } |
|
752 |
}; |
|
753 |
||
13930 | 754 |
//------------------------------ExtractINode----------------------------------- |
1 | 755 |
// Extract an int from a vector at position "pos" |
756 |
class ExtractINode : public ExtractNode { |
|
757 |
public: |
|
758 |
ExtractINode(Node* src, ConINode* pos) : ExtractNode(src, pos) {} |
|
759 |
virtual int Opcode() const; |
|
760 |
virtual const Type *bottom_type() const { return TypeInt::INT; } |
|
761 |
virtual uint ideal_reg() const { return Op_RegI; } |
|
762 |
}; |
|
763 |
||
13930 | 764 |
//------------------------------ExtractLNode----------------------------------- |
1 | 765 |
// Extract a long from a vector at position "pos" |
766 |
class ExtractLNode : public ExtractNode { |
|
767 |
public: |
|
768 |
ExtractLNode(Node* src, ConINode* pos) : ExtractNode(src, pos) {} |
|
769 |
virtual int Opcode() const; |
|
770 |
virtual const Type *bottom_type() const { return TypeLong::LONG; } |
|
771 |
virtual uint ideal_reg() const { return Op_RegL; } |
|
772 |
}; |
|
773 |
||
13930 | 774 |
//------------------------------ExtractFNode----------------------------------- |
1 | 775 |
// Extract a float from a vector at position "pos" |
776 |
class ExtractFNode : public ExtractNode { |
|
777 |
public: |
|
778 |
ExtractFNode(Node* src, ConINode* pos) : ExtractNode(src, pos) {} |
|
779 |
virtual int Opcode() const; |
|
780 |
virtual const Type *bottom_type() const { return Type::FLOAT; } |
|
781 |
virtual uint ideal_reg() const { return Op_RegF; } |
|
782 |
}; |
|
783 |
||
13930 | 784 |
//------------------------------ExtractDNode----------------------------------- |
1 | 785 |
// Extract a double from a vector at position "pos" |
786 |
class ExtractDNode : public ExtractNode { |
|
787 |
public: |
|
788 |
ExtractDNode(Node* src, ConINode* pos) : ExtractNode(src, pos) {} |
|
789 |
virtual int Opcode() const; |
|
790 |
virtual const Type *bottom_type() const { return Type::DOUBLE; } |
|
791 |
virtual uint ideal_reg() const { return Op_RegD; } |
|
792 |
}; |
|
7397 | 793 |
|
794 |
#endif // SHARE_VM_OPTO_VECTORNODE_HPP |