llvm.org GIT mirror llvm / 66ebbb9
[X86] Add the GCCBuiltin name back to the deprecated avx512 gather intrinsics until the clang side patch for the new versions is approved. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@351254 91177308-0d34-0410-b5e6-96231b3b80d8 Craig Topper 1 year, 10 months ago
1 changed file(s) with 24 addition(s) and 12 deletion(s). Raw diff Collapse all Expand all
35683568
35693569 // Gather and Scatter ops
35703570 let TargetPrefix = "x86" in {
3571 // These are gather intrinsics that use a scalar integer for the mask. They
3572 // have been superceded by new versions that use a vXi1 mask. Leaving these
3573 // for now as they have multiple out of tree users that need to migrate.
3574 // TODO: Remove when we can confirm out of tree migration.
3575 def int_x86_avx512_gather_dpd_512 :
3571 def int_x86_avx512_gather_dpd_512 : GCCBuiltin<"__builtin_ia32_gathersiv8df">,
35763572 Intrinsic<[llvm_v8f64_ty], [llvm_v8f64_ty, llvm_ptr_ty,
35773573 llvm_v8i32_ty, llvm_i8_ty, llvm_i32_ty],
35783574 [IntrReadMem, IntrArgMemOnly]>;
3579 def int_x86_avx512_gather_dps_512 :
3575 def int_x86_avx512_gather_dps_512 : GCCBuiltin<"__builtin_ia32_gathersiv16sf">,
35803576 Intrinsic<[llvm_v16f32_ty], [llvm_v16f32_ty, llvm_ptr_ty,
35813577 llvm_v16i32_ty, llvm_i16_ty, llvm_i32_ty],
35823578 [IntrReadMem, IntrArgMemOnly]>;
3583 def int_x86_avx512_gather_qpd_512 :
3579 def int_x86_avx512_gather_qpd_512 : GCCBuiltin<"__builtin_ia32_gatherdiv8df">,
35843580 Intrinsic<[llvm_v8f64_ty], [llvm_v8f64_ty, llvm_ptr_ty,
35853581 llvm_v8i64_ty, llvm_i8_ty, llvm_i32_ty],
35863582 [IntrReadMem, IntrArgMemOnly]>;
3587 def int_x86_avx512_gather_qps_512 :
3583 def int_x86_avx512_gather_qps_512 : GCCBuiltin<"__builtin_ia32_gatherdiv16sf">,
35883584 Intrinsic<[llvm_v8f32_ty], [llvm_v8f32_ty, llvm_ptr_ty,
35893585 llvm_v8i64_ty, llvm_i8_ty, llvm_i32_ty],
35903586 [IntrReadMem, IntrArgMemOnly]>;
35913587
35923588
3593 def int_x86_avx512_gather_dpq_512 :
3589 def int_x86_avx512_gather_dpq_512 : GCCBuiltin<"__builtin_ia32_gathersiv8di">,
35943590 Intrinsic<[llvm_v8i64_ty], [llvm_v8i64_ty, llvm_ptr_ty,
35953591 llvm_v8i32_ty, llvm_i8_ty, llvm_i32_ty],
35963592 [IntrReadMem, IntrArgMemOnly]>;
3597 def int_x86_avx512_gather_dpi_512 :
3593 def int_x86_avx512_gather_dpi_512 : GCCBuiltin<"__builtin_ia32_gathersiv16si">,
35983594 Intrinsic<[llvm_v16i32_ty], [llvm_v16i32_ty, llvm_ptr_ty,
35993595 llvm_v16i32_ty, llvm_i16_ty, llvm_i32_ty],
36003596 [IntrReadMem, IntrArgMemOnly]>;
3601 def int_x86_avx512_gather_qpq_512 :
3597 def int_x86_avx512_gather_qpq_512 : GCCBuiltin<"__builtin_ia32_gatherdiv8di">,
36023598 Intrinsic<[llvm_v8i64_ty], [llvm_v8i64_ty, llvm_ptr_ty,
36033599 llvm_v8i64_ty, llvm_i8_ty, llvm_i32_ty],
36043600 [IntrReadMem, IntrArgMemOnly]>;
3605 def int_x86_avx512_gather_qpi_512 :
3601 def int_x86_avx512_gather_qpi_512 : GCCBuiltin<"__builtin_ia32_gatherdiv16si">,
36063602 Intrinsic<[llvm_v8i32_ty], [llvm_v8i32_ty, llvm_ptr_ty,
36073603 llvm_v8i64_ty, llvm_i8_ty, llvm_i32_ty],
36083604 [IntrReadMem, IntrArgMemOnly]>;
36093605
36103606 def int_x86_avx512_gather3div2_df :
3607 GCCBuiltin<"__builtin_ia32_gather3div2df">,
36113608 Intrinsic<[llvm_v2f64_ty],
36123609 [llvm_v2f64_ty, llvm_ptr_ty, llvm_v2i64_ty, llvm_i8_ty, llvm_i32_ty],
36133610 [IntrReadMem, IntrArgMemOnly]>;
36143611
36153612 def int_x86_avx512_gather3div2_di :
3613 GCCBuiltin<"__builtin_ia32_gather3div2di">,
36163614 Intrinsic<[llvm_v2i64_ty],
36173615 [llvm_v2i64_ty, llvm_ptr_ty, llvm_v2i64_ty, llvm_i8_ty, llvm_i32_ty],
36183616 [IntrReadMem, IntrArgMemOnly]>;
36193617
36203618 def int_x86_avx512_gather3div4_df :
3619 GCCBuiltin<"__builtin_ia32_gather3div4df">,
36213620 Intrinsic<[llvm_v4f64_ty],
36223621 [llvm_v4f64_ty, llvm_ptr_ty, llvm_v4i64_ty, llvm_i8_ty, llvm_i32_ty],
36233622 [IntrReadMem, IntrArgMemOnly]>;
36243623
36253624 def int_x86_avx512_gather3div4_di :
3625 GCCBuiltin<"__builtin_ia32_gather3div4di">,
36263626 Intrinsic<[llvm_v4i64_ty],
36273627 [llvm_v4i64_ty, llvm_ptr_ty, llvm_v4i64_ty, llvm_i8_ty, llvm_i32_ty],
36283628 [IntrReadMem, IntrArgMemOnly]>;
36293629
36303630 def int_x86_avx512_gather3div4_sf :
3631 GCCBuiltin<"__builtin_ia32_gather3div4sf">,
36313632 Intrinsic<[llvm_v4f32_ty],
36323633 [llvm_v4f32_ty, llvm_ptr_ty, llvm_v2i64_ty, llvm_i8_ty, llvm_i32_ty],
36333634 [IntrReadMem, IntrArgMemOnly]>;
36343635
36353636 def int_x86_avx512_gather3div4_si :
3637 GCCBuiltin<"__builtin_ia32_gather3div4si">,
36363638 Intrinsic<[llvm_v4i32_ty],
36373639 [llvm_v4i32_ty, llvm_ptr_ty, llvm_v2i64_ty, llvm_i8_ty, llvm_i32_ty],
36383640 [IntrReadMem, IntrArgMemOnly]>;
36393641
36403642 def int_x86_avx512_gather3div8_sf :
3643 GCCBuiltin<"__builtin_ia32_gather3div8sf">,
36413644 Intrinsic<[llvm_v4f32_ty],
36423645 [llvm_v4f32_ty, llvm_ptr_ty, llvm_v4i64_ty, llvm_i8_ty, llvm_i32_ty],
36433646 [IntrReadMem, IntrArgMemOnly]>;
36443647
36453648 def int_x86_avx512_gather3div8_si :
3649 GCCBuiltin<"__builtin_ia32_gather3div8si">,
36463650 Intrinsic<[llvm_v4i32_ty],
36473651 [llvm_v4i32_ty, llvm_ptr_ty, llvm_v4i64_ty, llvm_i8_ty, llvm_i32_ty],
36483652 [IntrReadMem, IntrArgMemOnly]>;
36493653
36503654 def int_x86_avx512_gather3siv2_df :
3655 GCCBuiltin<"__builtin_ia32_gather3siv2df">,
36513656 Intrinsic<[llvm_v2f64_ty],
36523657 [llvm_v2f64_ty, llvm_ptr_ty, llvm_v4i32_ty, llvm_i8_ty, llvm_i32_ty],
36533658 [IntrReadMem, IntrArgMemOnly]>;
36543659
36553660 def int_x86_avx512_gather3siv2_di :
3661 GCCBuiltin<"__builtin_ia32_gather3siv2di">,
36563662 Intrinsic<[llvm_v2i64_ty],
36573663 [llvm_v2i64_ty, llvm_ptr_ty, llvm_v4i32_ty, llvm_i8_ty, llvm_i32_ty],
36583664 [IntrReadMem, IntrArgMemOnly]>;
36593665
36603666 def int_x86_avx512_gather3siv4_df :
3667 GCCBuiltin<"__builtin_ia32_gather3siv4df">,
36613668 Intrinsic<[llvm_v4f64_ty],
36623669 [llvm_v4f64_ty, llvm_ptr_ty, llvm_v4i32_ty, llvm_i8_ty, llvm_i32_ty],
36633670 [IntrReadMem, IntrArgMemOnly]>;
36643671
36653672 def int_x86_avx512_gather3siv4_di :
3673 GCCBuiltin<"__builtin_ia32_gather3siv4di">,
36663674 Intrinsic<[llvm_v4i64_ty],
36673675 [llvm_v4i64_ty, llvm_ptr_ty, llvm_v4i32_ty, llvm_i8_ty, llvm_i32_ty],
36683676 [IntrReadMem, IntrArgMemOnly]>;
36693677
36703678 def int_x86_avx512_gather3siv4_sf :
3679 GCCBuiltin<"__builtin_ia32_gather3siv4sf">,
36713680 Intrinsic<[llvm_v4f32_ty],
36723681 [llvm_v4f32_ty, llvm_ptr_ty, llvm_v4i32_ty, llvm_i8_ty, llvm_i32_ty],
36733682 [IntrReadMem, IntrArgMemOnly]>;
36743683
36753684 def int_x86_avx512_gather3siv4_si :
3685 GCCBuiltin<"__builtin_ia32_gather3siv4si">,
36763686 Intrinsic<[llvm_v4i32_ty],
36773687 [llvm_v4i32_ty, llvm_ptr_ty, llvm_v4i32_ty, llvm_i8_ty, llvm_i32_ty],
36783688 [IntrReadMem, IntrArgMemOnly]>;
36793689
36803690 def int_x86_avx512_gather3siv8_sf :
3691 GCCBuiltin<"__builtin_ia32_gather3siv8sf">,
36813692 Intrinsic<[llvm_v8f32_ty],
36823693 [llvm_v8f32_ty, llvm_ptr_ty, llvm_v8i32_ty, llvm_i8_ty, llvm_i32_ty],
36833694 [IntrReadMem, IntrArgMemOnly]>;
36843695
36853696 def int_x86_avx512_gather3siv8_si :
3697 GCCBuiltin<"__builtin_ia32_gather3siv8si">,
36863698 Intrinsic<[llvm_v8i32_ty],
36873699 [llvm_v8i32_ty, llvm_ptr_ty, llvm_v8i32_ty, llvm_i8_ty, llvm_i32_ty],
36883700 [IntrReadMem, IntrArgMemOnly]>;