OLD | NEW |
---|---|
1 // Copyright 2014 the V8 project authors. All rights reserved. | 1 // Copyright 2014 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 #include "src/compiler/machine-operator.h" | 5 #include "src/compiler/machine-operator.h" |
6 | 6 |
7 #include "src/base/lazy-instance.h" | 7 #include "src/base/lazy-instance.h" |
8 #include "src/compiler/opcodes.h" | 8 #include "src/compiler/opcodes.h" |
9 #include "src/compiler/operator.h" | 9 #include "src/compiler/operator.h" |
10 | 10 |
(...skipping 215 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
226 V(Word32PairSar, Operator::kNoProperties, 3, 0, 2) \ | 226 V(Word32PairSar, Operator::kNoProperties, 3, 0, 2) \ |
227 V(F32x4Splat, Operator::kNoProperties, 1, 0, 1) \ | 227 V(F32x4Splat, Operator::kNoProperties, 1, 0, 1) \ |
228 V(F32x4SConvertI32x4, Operator::kNoProperties, 1, 0, 1) \ | 228 V(F32x4SConvertI32x4, Operator::kNoProperties, 1, 0, 1) \ |
229 V(F32x4UConvertI32x4, Operator::kNoProperties, 1, 0, 1) \ | 229 V(F32x4UConvertI32x4, Operator::kNoProperties, 1, 0, 1) \ |
230 V(F32x4Abs, Operator::kNoProperties, 1, 0, 1) \ | 230 V(F32x4Abs, Operator::kNoProperties, 1, 0, 1) \ |
231 V(F32x4Neg, Operator::kNoProperties, 1, 0, 1) \ | 231 V(F32x4Neg, Operator::kNoProperties, 1, 0, 1) \ |
232 V(F32x4Sqrt, Operator::kNoProperties, 1, 0, 1) \ | 232 V(F32x4Sqrt, Operator::kNoProperties, 1, 0, 1) \ |
233 V(F32x4RecipApprox, Operator::kNoProperties, 1, 0, 1) \ | 233 V(F32x4RecipApprox, Operator::kNoProperties, 1, 0, 1) \ |
234 V(F32x4RecipSqrtApprox, Operator::kNoProperties, 1, 0, 1) \ | 234 V(F32x4RecipSqrtApprox, Operator::kNoProperties, 1, 0, 1) \ |
235 V(F32x4Add, Operator::kCommutative, 2, 0, 1) \ | 235 V(F32x4Add, Operator::kCommutative, 2, 0, 1) \ |
236 V(F32x4AddHoriz, Operator::kCommutative, 2, 0, 1) \ | |
georgia.kouveli
2017/04/20 14:53:06
These nodes as implemented should not be marked co
bbudge
2017/04/21 20:18:58
Good catch, done.
| |
236 V(F32x4Sub, Operator::kNoProperties, 2, 0, 1) \ | 237 V(F32x4Sub, Operator::kNoProperties, 2, 0, 1) \ |
237 V(F32x4Mul, Operator::kCommutative, 2, 0, 1) \ | 238 V(F32x4Mul, Operator::kCommutative, 2, 0, 1) \ |
238 V(F32x4Div, Operator::kNoProperties, 2, 0, 1) \ | 239 V(F32x4Div, Operator::kNoProperties, 2, 0, 1) \ |
239 V(F32x4Min, Operator::kCommutative, 2, 0, 1) \ | 240 V(F32x4Min, Operator::kCommutative, 2, 0, 1) \ |
240 V(F32x4Max, Operator::kCommutative, 2, 0, 1) \ | 241 V(F32x4Max, Operator::kCommutative, 2, 0, 1) \ |
241 V(F32x4MinNum, Operator::kCommutative, 2, 0, 1) \ | 242 V(F32x4MinNum, Operator::kCommutative, 2, 0, 1) \ |
242 V(F32x4MaxNum, Operator::kCommutative, 2, 0, 1) \ | 243 V(F32x4MaxNum, Operator::kCommutative, 2, 0, 1) \ |
243 V(F32x4RecipRefine, Operator::kNoProperties, 2, 0, 1) \ | 244 V(F32x4RecipRefine, Operator::kNoProperties, 2, 0, 1) \ |
244 V(F32x4RecipSqrtRefine, Operator::kNoProperties, 2, 0, 1) \ | 245 V(F32x4RecipSqrtRefine, Operator::kNoProperties, 2, 0, 1) \ |
245 V(F32x4Eq, Operator::kCommutative, 2, 0, 1) \ | 246 V(F32x4Eq, Operator::kCommutative, 2, 0, 1) \ |
246 V(F32x4Ne, Operator::kCommutative, 2, 0, 1) \ | 247 V(F32x4Ne, Operator::kCommutative, 2, 0, 1) \ |
247 V(F32x4Lt, Operator::kNoProperties, 2, 0, 1) \ | 248 V(F32x4Lt, Operator::kNoProperties, 2, 0, 1) \ |
248 V(F32x4Le, Operator::kNoProperties, 2, 0, 1) \ | 249 V(F32x4Le, Operator::kNoProperties, 2, 0, 1) \ |
249 V(I32x4Splat, Operator::kNoProperties, 1, 0, 1) \ | 250 V(I32x4Splat, Operator::kNoProperties, 1, 0, 1) \ |
250 V(I32x4SConvertF32x4, Operator::kNoProperties, 1, 0, 1) \ | 251 V(I32x4SConvertF32x4, Operator::kNoProperties, 1, 0, 1) \ |
251 V(I32x4SConvertI16x8Low, Operator::kNoProperties, 1, 0, 1) \ | 252 V(I32x4SConvertI16x8Low, Operator::kNoProperties, 1, 0, 1) \ |
252 V(I32x4SConvertI16x8High, Operator::kNoProperties, 1, 0, 1) \ | 253 V(I32x4SConvertI16x8High, Operator::kNoProperties, 1, 0, 1) \ |
253 V(I32x4Neg, Operator::kNoProperties, 1, 0, 1) \ | 254 V(I32x4Neg, Operator::kNoProperties, 1, 0, 1) \ |
254 V(I32x4Add, Operator::kCommutative, 2, 0, 1) \ | 255 V(I32x4Add, Operator::kCommutative, 2, 0, 1) \ |
256 V(I32x4AddHoriz, Operator::kCommutative, 2, 0, 1) \ | |
255 V(I32x4Sub, Operator::kNoProperties, 2, 0, 1) \ | 257 V(I32x4Sub, Operator::kNoProperties, 2, 0, 1) \ |
256 V(I32x4Mul, Operator::kCommutative, 2, 0, 1) \ | 258 V(I32x4Mul, Operator::kCommutative, 2, 0, 1) \ |
257 V(I32x4MinS, Operator::kCommutative, 2, 0, 1) \ | 259 V(I32x4MinS, Operator::kCommutative, 2, 0, 1) \ |
258 V(I32x4MaxS, Operator::kCommutative, 2, 0, 1) \ | 260 V(I32x4MaxS, Operator::kCommutative, 2, 0, 1) \ |
259 V(I32x4Eq, Operator::kCommutative, 2, 0, 1) \ | 261 V(I32x4Eq, Operator::kCommutative, 2, 0, 1) \ |
260 V(I32x4Ne, Operator::kCommutative, 2, 0, 1) \ | 262 V(I32x4Ne, Operator::kCommutative, 2, 0, 1) \ |
261 V(I32x4LtS, Operator::kNoProperties, 2, 0, 1) \ | 263 V(I32x4LtS, Operator::kNoProperties, 2, 0, 1) \ |
262 V(I32x4LeS, Operator::kNoProperties, 2, 0, 1) \ | 264 V(I32x4LeS, Operator::kNoProperties, 2, 0, 1) \ |
263 V(I32x4UConvertF32x4, Operator::kNoProperties, 1, 0, 1) \ | 265 V(I32x4UConvertF32x4, Operator::kNoProperties, 1, 0, 1) \ |
264 V(I32x4UConvertI16x8Low, Operator::kNoProperties, 1, 0, 1) \ | 266 V(I32x4UConvertI16x8Low, Operator::kNoProperties, 1, 0, 1) \ |
265 V(I32x4UConvertI16x8High, Operator::kNoProperties, 1, 0, 1) \ | 267 V(I32x4UConvertI16x8High, Operator::kNoProperties, 1, 0, 1) \ |
266 V(I32x4MinU, Operator::kCommutative, 2, 0, 1) \ | 268 V(I32x4MinU, Operator::kCommutative, 2, 0, 1) \ |
267 V(I32x4MaxU, Operator::kCommutative, 2, 0, 1) \ | 269 V(I32x4MaxU, Operator::kCommutative, 2, 0, 1) \ |
268 V(I32x4LtU, Operator::kNoProperties, 2, 0, 1) \ | 270 V(I32x4LtU, Operator::kNoProperties, 2, 0, 1) \ |
269 V(I32x4LeU, Operator::kNoProperties, 2, 0, 1) \ | 271 V(I32x4LeU, Operator::kNoProperties, 2, 0, 1) \ |
270 V(I16x8Splat, Operator::kNoProperties, 1, 0, 1) \ | 272 V(I16x8Splat, Operator::kNoProperties, 1, 0, 1) \ |
271 V(I16x8SConvertI8x16Low, Operator::kNoProperties, 1, 0, 1) \ | 273 V(I16x8SConvertI8x16Low, Operator::kNoProperties, 1, 0, 1) \ |
272 V(I16x8SConvertI8x16High, Operator::kNoProperties, 1, 0, 1) \ | 274 V(I16x8SConvertI8x16High, Operator::kNoProperties, 1, 0, 1) \ |
273 V(I16x8Neg, Operator::kNoProperties, 1, 0, 1) \ | 275 V(I16x8Neg, Operator::kNoProperties, 1, 0, 1) \ |
274 V(I16x8SConvertI32x4, Operator::kNoProperties, 2, 0, 1) \ | 276 V(I16x8SConvertI32x4, Operator::kNoProperties, 2, 0, 1) \ |
275 V(I16x8Add, Operator::kCommutative, 2, 0, 1) \ | 277 V(I16x8Add, Operator::kCommutative, 2, 0, 1) \ |
276 V(I16x8AddSaturateS, Operator::kCommutative, 2, 0, 1) \ | 278 V(I16x8AddSaturateS, Operator::kCommutative, 2, 0, 1) \ |
279 V(I16x8AddHoriz, Operator::kCommutative, 2, 0, 1) \ | |
277 V(I16x8Sub, Operator::kNoProperties, 2, 0, 1) \ | 280 V(I16x8Sub, Operator::kNoProperties, 2, 0, 1) \ |
278 V(I16x8SubSaturateS, Operator::kNoProperties, 2, 0, 1) \ | 281 V(I16x8SubSaturateS, Operator::kNoProperties, 2, 0, 1) \ |
279 V(I16x8Mul, Operator::kCommutative, 2, 0, 1) \ | 282 V(I16x8Mul, Operator::kCommutative, 2, 0, 1) \ |
280 V(I16x8MinS, Operator::kCommutative, 2, 0, 1) \ | 283 V(I16x8MinS, Operator::kCommutative, 2, 0, 1) \ |
281 V(I16x8MaxS, Operator::kCommutative, 2, 0, 1) \ | 284 V(I16x8MaxS, Operator::kCommutative, 2, 0, 1) \ |
282 V(I16x8Eq, Operator::kCommutative, 2, 0, 1) \ | 285 V(I16x8Eq, Operator::kCommutative, 2, 0, 1) \ |
283 V(I16x8Ne, Operator::kCommutative, 2, 0, 1) \ | 286 V(I16x8Ne, Operator::kCommutative, 2, 0, 1) \ |
284 V(I16x8LtS, Operator::kNoProperties, 2, 0, 1) \ | 287 V(I16x8LtS, Operator::kNoProperties, 2, 0, 1) \ |
285 V(I16x8LeS, Operator::kNoProperties, 2, 0, 1) \ | 288 V(I16x8LeS, Operator::kNoProperties, 2, 0, 1) \ |
286 V(I16x8UConvertI8x16Low, Operator::kNoProperties, 1, 0, 1) \ | 289 V(I16x8UConvertI8x16Low, Operator::kNoProperties, 1, 0, 1) \ |
287 V(I16x8UConvertI8x16High, Operator::kNoProperties, 1, 0, 1) \ | 290 V(I16x8UConvertI8x16High, Operator::kNoProperties, 1, 0, 1) \ |
288 V(I16x8UConvertI32x4, Operator::kNoProperties, 2, 0, 1) \ | 291 V(I16x8UConvertI32x4, Operator::kNoProperties, 2, 0, 1) \ |
289 V(I16x8AddSaturateU, Operator::kCommutative, 2, 0, 1) \ | 292 V(I16x8AddSaturateU, Operator::kCommutative, 2, 0, 1) \ |
290 V(I16x8SubSaturateU, Operator::kNoProperties, 2, 0, 1) \ | 293 V(I16x8SubSaturateU, Operator::kNoProperties, 2, 0, 1) \ |
291 V(I16x8MinU, Operator::kCommutative, 2, 0, 1) \ | 294 V(I16x8MinU, Operator::kCommutative, 2, 0, 1) \ |
292 V(I16x8MaxU, Operator::kCommutative, 2, 0, 1) \ | 295 V(I16x8MaxU, Operator::kCommutative, 2, 0, 1) \ |
293 V(I16x8LtU, Operator::kNoProperties, 2, 0, 1) \ | 296 V(I16x8LtU, Operator::kNoProperties, 2, 0, 1) \ |
294 V(I16x8LeU, Operator::kNoProperties, 2, 0, 1) \ | 297 V(I16x8LeU, Operator::kNoProperties, 2, 0, 1) \ |
295 V(I8x16Splat, Operator::kNoProperties, 1, 0, 1) \ | 298 V(I8x16Splat, Operator::kNoProperties, 1, 0, 1) \ |
296 V(I8x16Neg, Operator::kNoProperties, 1, 0, 1) \ | 299 V(I8x16Neg, Operator::kNoProperties, 1, 0, 1) \ |
297 V(I8x16SConvertI16x8, Operator::kNoProperties, 2, 0, 1) \ | 300 V(I8x16SConvertI16x8, Operator::kNoProperties, 2, 0, 1) \ |
298 V(I8x16Add, Operator::kCommutative, 2, 0, 1) \ | 301 V(I8x16Add, Operator::kCommutative, 2, 0, 1) \ |
299 V(I8x16AddSaturateS, Operator::kCommutative, 2, 0, 1) \ | 302 V(I8x16AddSaturateS, Operator::kCommutative, 2, 0, 1) \ |
303 V(I8x16AddHoriz, Operator::kCommutative, 2, 0, 1) \ | |
300 V(I8x16Sub, Operator::kNoProperties, 2, 0, 1) \ | 304 V(I8x16Sub, Operator::kNoProperties, 2, 0, 1) \ |
301 V(I8x16SubSaturateS, Operator::kNoProperties, 2, 0, 1) \ | 305 V(I8x16SubSaturateS, Operator::kNoProperties, 2, 0, 1) \ |
302 V(I8x16Mul, Operator::kCommutative, 2, 0, 1) \ | 306 V(I8x16Mul, Operator::kCommutative, 2, 0, 1) \ |
303 V(I8x16MinS, Operator::kCommutative, 2, 0, 1) \ | 307 V(I8x16MinS, Operator::kCommutative, 2, 0, 1) \ |
304 V(I8x16MaxS, Operator::kCommutative, 2, 0, 1) \ | 308 V(I8x16MaxS, Operator::kCommutative, 2, 0, 1) \ |
305 V(I8x16Eq, Operator::kCommutative, 2, 0, 1) \ | 309 V(I8x16Eq, Operator::kCommutative, 2, 0, 1) \ |
306 V(I8x16Ne, Operator::kCommutative, 2, 0, 1) \ | 310 V(I8x16Ne, Operator::kCommutative, 2, 0, 1) \ |
307 V(I8x16LtS, Operator::kNoProperties, 2, 0, 1) \ | 311 V(I8x16LtS, Operator::kNoProperties, 2, 0, 1) \ |
308 V(I8x16LeS, Operator::kNoProperties, 2, 0, 1) \ | 312 V(I8x16LeS, Operator::kNoProperties, 2, 0, 1) \ |
309 V(I8x16UConvertI16x8, Operator::kNoProperties, 2, 0, 1) \ | 313 V(I8x16UConvertI16x8, Operator::kNoProperties, 2, 0, 1) \ |
(...skipping 723 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
1033 | 1037 |
1034 const Operator* MachineOperatorBuilder::S8x16Concat(int32_t bytes) { | 1038 const Operator* MachineOperatorBuilder::S8x16Concat(int32_t bytes) { |
1035 DCHECK(0 <= bytes && bytes < kSimd128Size); | 1039 DCHECK(0 <= bytes && bytes < kSimd128Size); |
1036 return new (zone_) Operator1<int32_t>(IrOpcode::kS8x16Concat, Operator::kPure, | 1040 return new (zone_) Operator1<int32_t>(IrOpcode::kS8x16Concat, Operator::kPure, |
1037 "Concat", 2, 0, 0, 1, 0, 0, bytes); | 1041 "Concat", 2, 0, 0, 1, 0, 0, bytes); |
1038 } | 1042 } |
1039 | 1043 |
1040 } // namespace compiler | 1044 } // namespace compiler |
1041 } // namespace internal | 1045 } // namespace internal |
1042 } // namespace v8 | 1046 } // namespace v8 |
OLD | NEW |