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

Side by Side Diff: src/compiler/opcodes.h

Issue 1848433003: Turbofan: Add MachineOperators for SIMD. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Compiles Created 4 years, 8 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
OLDNEW
1 // Copyright 2013 the V8 project authors. All rights reserved. 1 // Copyright 2013 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_OPCODES_H_ 5 #ifndef V8_COMPILER_OPCODES_H_
6 #define V8_COMPILER_OPCODES_H_ 6 #define V8_COMPILER_OPCODES_H_
7 7
8 #include <iosfwd> 8 #include <iosfwd>
9 9
10 // Opcodes for control operators. 10 // Opcodes for control operators.
(...skipping 323 matching lines...) Expand 10 before | Expand all | Expand 10 after
334 V(LoadFramePointer) \ 334 V(LoadFramePointer) \
335 V(LoadParentFramePointer) \ 335 V(LoadParentFramePointer) \
336 V(CheckedLoad) \ 336 V(CheckedLoad) \
337 V(CheckedStore) \ 337 V(CheckedStore) \
338 V(Int32PairAdd) \ 338 V(Int32PairAdd) \
339 V(Int32PairSub) \ 339 V(Int32PairSub) \
340 V(Word32PairShl) \ 340 V(Word32PairShl) \
341 V(Word32PairShr) \ 341 V(Word32PairShr) \
342 V(Word32PairSar) 342 V(Word32PairSar)
343 343
344 #define VALUE_OP_LIST(V) \ 344 #define MACHINE_SIMD_OP_LIST(V) \
345 COMMON_OP_LIST(V) \ 345 V(CreateFloat32x4) \
346 SIMPLIFIED_OP_LIST(V) \ 346 V(Float32x4ExtractLane) \
347 MACHINE_OP_LIST(V) \ 347 V(Float32x4ReplaceLane) \
348 V(Float32x4Abs) \
349 V(Float32x4Neg) \
350 V(Float32x4Sqrt) \
351 V(Float32x4RecipApprox) \
352 V(Float32x4RecipSqrtApprox) \
353 V(Float32x4Add) \
354 V(Float32x4Sub) \
355 V(Float32x4Mul) \
356 V(Float32x4Div) \
357 V(Float32x4Min) \
358 V(Float32x4Max) \
359 V(Float32x4MinNum) \
360 V(Float32x4MaxNum) \
361 V(Float32x4Equal) \
362 V(Float32x4NotEqual) \
363 V(Float32x4LessThan) \
364 V(Float32x4LessThanOrEqual) \
365 V(Float32x4GreaterThan) \
366 V(Float32x4GreaterThanOrEqual) \
367 V(Float32x4Select) \
368 V(Float32x4Swizzle) \
369 V(Float32x4Shuffle) \
370 V(Float32x4FromInt32x4) \
371 V(Float32x4FromUint32x4) \
372 V(Float32x4Load1) \
373 V(Float32x4Load2) \
374 V(Float32x4Load3) \
375 V(Float32x4Store1) \
376 V(Float32x4Store2) \
377 V(Float32x4Store3) \
378 V(CreateInt32x4) \
379 V(Int32x4ExtractLane) \
380 V(Int32x4ReplaceLane) \
381 V(Int32x4Neg) \
382 V(Int32x4Add) \
383 V(Int32x4Sub) \
384 V(Int32x4Mul) \
385 V(Int32x4Min) \
386 V(Int32x4Max) \
387 V(Int32x4And) \
388 V(Int32x4Or) \
389 V(Int32x4Xor) \
390 V(Int32x4Not) \
391 V(Int32x4ShiftLeftByScalar) \
392 V(Int32x4ShiftRightByScalar) \
393 V(Int32x4Equal) \
394 V(Int32x4NotEqual) \
395 V(Int32x4LessThan) \
396 V(Int32x4LessThanOrEqual) \
397 V(Int32x4GreaterThan) \
398 V(Int32x4GreaterThanOrEqual) \
399 V(Int32x4Select) \
400 V(Int32x4Swizzle) \
401 V(Int32x4Shuffle) \
402 V(Int32x4FromFloat32x4) \
403 V(Int32x4Load1) \
404 V(Int32x4Load2) \
405 V(Int32x4Load3) \
406 V(Int32x4Store1) \
407 V(Int32x4Store2) \
408 V(Int32x4Store3) \
409 V(Uint32x4Min) \
410 V(Uint32x4Max) \
411 V(Uint32x4ShiftLeftByScalar) \
412 V(Uint32x4ShiftRightByScalar) \
413 V(Uint32x4LessThan) \
414 V(Uint32x4LessThanOrEqual) \
415 V(Uint32x4GreaterThan) \
416 V(Uint32x4GreaterThanOrEqual) \
417 V(Uint32x4FromFloat32x4) \
418 V(CreateBool32x4) \
419 V(Bool32x4ExtractLane) \
420 V(Bool32x4ReplaceLane) \
421 V(Bool32x4And) \
422 V(Bool32x4Or) \
423 V(Bool32x4Xor) \
424 V(Bool32x4Not) \
425 V(Bool32x4AnyTrue) \
426 V(Bool32x4AllTrue) \
427 V(Bool32x4Swizzle) \
428 V(Bool32x4Shuffle) \
429 V(Bool32x4Equal) \
430 V(Bool32x4NotEqual) \
431 V(CreateInt16x8) \
432 V(Int16x8ExtractLane) \
433 V(Int16x8ReplaceLane) \
434 V(Int16x8Neg) \
435 V(Int16x8Add) \
436 V(Int16x8AddSaturate) \
437 V(Int16x8Sub) \
438 V(Int16x8SubSaturate) \
439 V(Int16x8Mul) \
440 V(Int16x8Min) \
441 V(Int16x8Max) \
442 V(Int16x8And) \
443 V(Int16x8Or) \
444 V(Int16x8Xor) \
445 V(Int16x8Not) \
446 V(Int16x8ShiftLeftByScalar) \
447 V(Int16x8ShiftRightByScalar) \
448 V(Int16x8Equal) \
449 V(Int16x8NotEqual) \
450 V(Int16x8LessThan) \
451 V(Int16x8LessThanOrEqual) \
452 V(Int16x8GreaterThan) \
453 V(Int16x8GreaterThanOrEqual) \
454 V(Int16x8Select) \
455 V(Int16x8Swizzle) \
456 V(Int16x8Shuffle) \
457 V(Uint16x8AddSaturate) \
458 V(Uint16x8SubSaturate) \
459 V(Uint16x8Min) \
460 V(Uint16x8Max) \
461 V(Uint16x8ShiftLeftByScalar) \
462 V(Uint16x8ShiftRightByScalar) \
463 V(Uint16x8LessThan) \
464 V(Uint16x8LessThanOrEqual) \
465 V(Uint16x8GreaterThan) \
466 V(Uint16x8GreaterThanOrEqual) \
467 V(CreateBool16x8) \
468 V(Bool16x8ExtractLane) \
469 V(Bool16x8ReplaceLane) \
470 V(Bool16x8And) \
471 V(Bool16x8Or) \
472 V(Bool16x8Xor) \
473 V(Bool16x8Not) \
474 V(Bool16x8AnyTrue) \
475 V(Bool16x8AllTrue) \
476 V(Bool16x8Swizzle) \
477 V(Bool16x8Shuffle) \
478 V(Bool16x8Equal) \
479 V(Bool16x8NotEqual) \
480 V(CreateInt8x16) \
481 V(Int8x16ExtractLane) \
482 V(Int8x16ReplaceLane) \
483 V(Int8x16Neg) \
484 V(Int8x16Add) \
485 V(Int8x16AddSaturate) \
486 V(Int8x16Sub) \
487 V(Int8x16SubSaturate) \
488 V(Int8x16Mul) \
489 V(Int8x16Min) \
490 V(Int8x16Max) \
491 V(Int8x16And) \
492 V(Int8x16Or) \
493 V(Int8x16Xor) \
494 V(Int8x16Not) \
495 V(Int8x16ShiftLeftByScalar) \
496 V(Int8x16ShiftRightByScalar) \
497 V(Int8x16Equal) \
498 V(Int8x16NotEqual) \
499 V(Int8x16LessThan) \
500 V(Int8x16LessThanOrEqual) \
501 V(Int8x16GreaterThan) \
502 V(Int8x16GreaterThanOrEqual) \
503 V(Int8x16Select) \
504 V(Int8x16Swizzle) \
505 V(Int8x16Shuffle) \
506 V(Uint8x16AddSaturate) \
507 V(Uint8x16SubSaturate) \
508 V(Uint8x16Min) \
509 V(Uint8x16Max) \
510 V(Uint8x16ShiftLeftByScalar) \
511 V(Uint8x16ShiftRightByScalar) \
512 V(Uint8x16LessThan) \
513 V(Uint8x16LessThanOrEqual) \
514 V(Uint8x16GreaterThan) \
515 V(Uint8x16GreaterThanOrEqual) \
516 V(CreateBool8x16) \
517 V(Bool8x16ExtractLane) \
518 V(Bool8x16ReplaceLane) \
519 V(Bool8x16And) \
520 V(Bool8x16Or) \
521 V(Bool8x16Xor) \
522 V(Bool8x16Not) \
523 V(Bool8x16AnyTrue) \
524 V(Bool8x16AllTrue) \
525 V(Bool8x16Swizzle) \
526 V(Bool8x16Shuffle) \
527 V(Bool8x16Equal) \
528 V(Bool8x16NotEqual)
529
530 #define VALUE_OP_LIST(V) \
531 COMMON_OP_LIST(V) \
532 SIMPLIFIED_OP_LIST(V) \
533 MACHINE_OP_LIST(V) \
534 MACHINE_SIMD_OP_LIST(V) \
348 JS_OP_LIST(V) 535 JS_OP_LIST(V)
349 536
350 // The combination of all operators at all levels and the common operators. 537 // The combination of all operators at all levels and the common operators.
351 #define ALL_OP_LIST(V) \ 538 #define ALL_OP_LIST(V) \
352 CONTROL_OP_LIST(V) \ 539 CONTROL_OP_LIST(V) \
353 VALUE_OP_LIST(V) 540 VALUE_OP_LIST(V)
354 541
355 namespace v8 { 542 namespace v8 {
356 namespace internal { 543 namespace internal {
357 namespace compiler { 544 namespace compiler {
(...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after
418 } 605 }
419 }; 606 };
420 607
421 std::ostream& operator<<(std::ostream&, IrOpcode::Value); 608 std::ostream& operator<<(std::ostream&, IrOpcode::Value);
422 609
423 } // namespace compiler 610 } // namespace compiler
424 } // namespace internal 611 } // namespace internal
425 } // namespace v8 612 } // namespace v8
426 613
427 #endif // V8_COMPILER_OPCODES_H_ 614 #endif // V8_COMPILER_OPCODES_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698