Lines Matching refs:Builtin

184   Expr *Builtin = BuiltinCall->getCallee()->IgnoreImpCasts();  in SemaBuiltinCallWithStaticChain()  local
230 Builtin = in SemaBuiltinCallWithStaticChain()
231 S.ImpCastExprToType(Builtin, BuiltinPtrTy, CK_BuiltinFnToFnPtr).get(); in SemaBuiltinCallWithStaticChain()
236 BuiltinCall->setCallee(Builtin); in SemaBuiltinCallWithStaticChain()
505 case Builtin::BIread_pipe: in checkOpenCLPipeArg()
506 case Builtin::BIreserve_read_pipe: in checkOpenCLPipeArg()
507 case Builtin::BIcommit_read_pipe: in checkOpenCLPipeArg()
508 case Builtin::BIwork_group_reserve_read_pipe: in checkOpenCLPipeArg()
509 case Builtin::BIsub_group_reserve_read_pipe: in checkOpenCLPipeArg()
510 case Builtin::BIwork_group_commit_read_pipe: in checkOpenCLPipeArg()
511 case Builtin::BIsub_group_commit_read_pipe: in checkOpenCLPipeArg()
519 case Builtin::BIwrite_pipe: in checkOpenCLPipeArg()
520 case Builtin::BIreserve_write_pipe: in checkOpenCLPipeArg()
521 case Builtin::BIcommit_write_pipe: in checkOpenCLPipeArg()
522 case Builtin::BIwork_group_reserve_write_pipe: in checkOpenCLPipeArg()
523 case Builtin::BIsub_group_reserve_write_pipe: in checkOpenCLPipeArg()
524 case Builtin::BIwork_group_commit_write_pipe: in checkOpenCLPipeArg()
525 case Builtin::BIsub_group_commit_write_pipe: in checkOpenCLPipeArg()
702 case Builtin::BIto_global: in SemaOpenCLBuiltinToAddr()
705 case Builtin::BIto_local: in SemaOpenCLBuiltinToAddr()
741 case Builtin::BI__builtin___CFStringMakeConstantString: in CheckBuiltinFunctionCall()
747 case Builtin::BI__builtin_stdarg_start: in CheckBuiltinFunctionCall()
748 case Builtin::BI__builtin_va_start: in CheckBuiltinFunctionCall()
752 case Builtin::BI__va_start: { in CheckBuiltinFunctionCall()
766 case Builtin::BI__builtin_isgreater: in CheckBuiltinFunctionCall()
767 case Builtin::BI__builtin_isgreaterequal: in CheckBuiltinFunctionCall()
768 case Builtin::BI__builtin_isless: in CheckBuiltinFunctionCall()
769 case Builtin::BI__builtin_islessequal: in CheckBuiltinFunctionCall()
770 case Builtin::BI__builtin_islessgreater: in CheckBuiltinFunctionCall()
771 case Builtin::BI__builtin_isunordered: in CheckBuiltinFunctionCall()
775 case Builtin::BI__builtin_fpclassify: in CheckBuiltinFunctionCall()
779 case Builtin::BI__builtin_isfinite: in CheckBuiltinFunctionCall()
780 case Builtin::BI__builtin_isinf: in CheckBuiltinFunctionCall()
781 case Builtin::BI__builtin_isinf_sign: in CheckBuiltinFunctionCall()
782 case Builtin::BI__builtin_isnan: in CheckBuiltinFunctionCall()
783 case Builtin::BI__builtin_isnormal: in CheckBuiltinFunctionCall()
787 case Builtin::BI__builtin_shufflevector: in CheckBuiltinFunctionCall()
791 case Builtin::BI__builtin_prefetch: in CheckBuiltinFunctionCall()
795 case Builtin::BI__assume: in CheckBuiltinFunctionCall()
796 case Builtin::BI__builtin_assume: in CheckBuiltinFunctionCall()
800 case Builtin::BI__builtin_assume_aligned: in CheckBuiltinFunctionCall()
804 case Builtin::BI__builtin_object_size: in CheckBuiltinFunctionCall()
808 case Builtin::BI__builtin_longjmp: in CheckBuiltinFunctionCall()
812 case Builtin::BI__builtin_setjmp: in CheckBuiltinFunctionCall()
816 case Builtin::BI_setjmp: in CheckBuiltinFunctionCall()
817 case Builtin::BI_setjmpex: in CheckBuiltinFunctionCall()
822 case Builtin::BI__builtin_classify_type: in CheckBuiltinFunctionCall()
826 case Builtin::BI__builtin_constant_p: in CheckBuiltinFunctionCall()
830 case Builtin::BI__sync_fetch_and_add: in CheckBuiltinFunctionCall()
831 case Builtin::BI__sync_fetch_and_add_1: in CheckBuiltinFunctionCall()
832 case Builtin::BI__sync_fetch_and_add_2: in CheckBuiltinFunctionCall()
833 case Builtin::BI__sync_fetch_and_add_4: in CheckBuiltinFunctionCall()
834 case Builtin::BI__sync_fetch_and_add_8: in CheckBuiltinFunctionCall()
835 case Builtin::BI__sync_fetch_and_add_16: in CheckBuiltinFunctionCall()
836 case Builtin::BI__sync_fetch_and_sub: in CheckBuiltinFunctionCall()
837 case Builtin::BI__sync_fetch_and_sub_1: in CheckBuiltinFunctionCall()
838 case Builtin::BI__sync_fetch_and_sub_2: in CheckBuiltinFunctionCall()
839 case Builtin::BI__sync_fetch_and_sub_4: in CheckBuiltinFunctionCall()
840 case Builtin::BI__sync_fetch_and_sub_8: in CheckBuiltinFunctionCall()
841 case Builtin::BI__sync_fetch_and_sub_16: in CheckBuiltinFunctionCall()
842 case Builtin::BI__sync_fetch_and_or: in CheckBuiltinFunctionCall()
843 case Builtin::BI__sync_fetch_and_or_1: in CheckBuiltinFunctionCall()
844 case Builtin::BI__sync_fetch_and_or_2: in CheckBuiltinFunctionCall()
845 case Builtin::BI__sync_fetch_and_or_4: in CheckBuiltinFunctionCall()
846 case Builtin::BI__sync_fetch_and_or_8: in CheckBuiltinFunctionCall()
847 case Builtin::BI__sync_fetch_and_or_16: in CheckBuiltinFunctionCall()
848 case Builtin::BI__sync_fetch_and_and: in CheckBuiltinFunctionCall()
849 case Builtin::BI__sync_fetch_and_and_1: in CheckBuiltinFunctionCall()
850 case Builtin::BI__sync_fetch_and_and_2: in CheckBuiltinFunctionCall()
851 case Builtin::BI__sync_fetch_and_and_4: in CheckBuiltinFunctionCall()
852 case Builtin::BI__sync_fetch_and_and_8: in CheckBuiltinFunctionCall()
853 case Builtin::BI__sync_fetch_and_and_16: in CheckBuiltinFunctionCall()
854 case Builtin::BI__sync_fetch_and_xor: in CheckBuiltinFunctionCall()
855 case Builtin::BI__sync_fetch_and_xor_1: in CheckBuiltinFunctionCall()
856 case Builtin::BI__sync_fetch_and_xor_2: in CheckBuiltinFunctionCall()
857 case Builtin::BI__sync_fetch_and_xor_4: in CheckBuiltinFunctionCall()
858 case Builtin::BI__sync_fetch_and_xor_8: in CheckBuiltinFunctionCall()
859 case Builtin::BI__sync_fetch_and_xor_16: in CheckBuiltinFunctionCall()
860 case Builtin::BI__sync_fetch_and_nand: in CheckBuiltinFunctionCall()
861 case Builtin::BI__sync_fetch_and_nand_1: in CheckBuiltinFunctionCall()
862 case Builtin::BI__sync_fetch_and_nand_2: in CheckBuiltinFunctionCall()
863 case Builtin::BI__sync_fetch_and_nand_4: in CheckBuiltinFunctionCall()
864 case Builtin::BI__sync_fetch_and_nand_8: in CheckBuiltinFunctionCall()
865 case Builtin::BI__sync_fetch_and_nand_16: in CheckBuiltinFunctionCall()
866 case Builtin::BI__sync_add_and_fetch: in CheckBuiltinFunctionCall()
867 case Builtin::BI__sync_add_and_fetch_1: in CheckBuiltinFunctionCall()
868 case Builtin::BI__sync_add_and_fetch_2: in CheckBuiltinFunctionCall()
869 case Builtin::BI__sync_add_and_fetch_4: in CheckBuiltinFunctionCall()
870 case Builtin::BI__sync_add_and_fetch_8: in CheckBuiltinFunctionCall()
871 case Builtin::BI__sync_add_and_fetch_16: in CheckBuiltinFunctionCall()
872 case Builtin::BI__sync_sub_and_fetch: in CheckBuiltinFunctionCall()
873 case Builtin::BI__sync_sub_and_fetch_1: in CheckBuiltinFunctionCall()
874 case Builtin::BI__sync_sub_and_fetch_2: in CheckBuiltinFunctionCall()
875 case Builtin::BI__sync_sub_and_fetch_4: in CheckBuiltinFunctionCall()
876 case Builtin::BI__sync_sub_and_fetch_8: in CheckBuiltinFunctionCall()
877 case Builtin::BI__sync_sub_and_fetch_16: in CheckBuiltinFunctionCall()
878 case Builtin::BI__sync_and_and_fetch: in CheckBuiltinFunctionCall()
879 case Builtin::BI__sync_and_and_fetch_1: in CheckBuiltinFunctionCall()
880 case Builtin::BI__sync_and_and_fetch_2: in CheckBuiltinFunctionCall()
881 case Builtin::BI__sync_and_and_fetch_4: in CheckBuiltinFunctionCall()
882 case Builtin::BI__sync_and_and_fetch_8: in CheckBuiltinFunctionCall()
883 case Builtin::BI__sync_and_and_fetch_16: in CheckBuiltinFunctionCall()
884 case Builtin::BI__sync_or_and_fetch: in CheckBuiltinFunctionCall()
885 case Builtin::BI__sync_or_and_fetch_1: in CheckBuiltinFunctionCall()
886 case Builtin::BI__sync_or_and_fetch_2: in CheckBuiltinFunctionCall()
887 case Builtin::BI__sync_or_and_fetch_4: in CheckBuiltinFunctionCall()
888 case Builtin::BI__sync_or_and_fetch_8: in CheckBuiltinFunctionCall()
889 case Builtin::BI__sync_or_and_fetch_16: in CheckBuiltinFunctionCall()
890 case Builtin::BI__sync_xor_and_fetch: in CheckBuiltinFunctionCall()
891 case Builtin::BI__sync_xor_and_fetch_1: in CheckBuiltinFunctionCall()
892 case Builtin::BI__sync_xor_and_fetch_2: in CheckBuiltinFunctionCall()
893 case Builtin::BI__sync_xor_and_fetch_4: in CheckBuiltinFunctionCall()
894 case Builtin::BI__sync_xor_and_fetch_8: in CheckBuiltinFunctionCall()
895 case Builtin::BI__sync_xor_and_fetch_16: in CheckBuiltinFunctionCall()
896 case Builtin::BI__sync_nand_and_fetch: in CheckBuiltinFunctionCall()
897 case Builtin::BI__sync_nand_and_fetch_1: in CheckBuiltinFunctionCall()
898 case Builtin::BI__sync_nand_and_fetch_2: in CheckBuiltinFunctionCall()
899 case Builtin::BI__sync_nand_and_fetch_4: in CheckBuiltinFunctionCall()
900 case Builtin::BI__sync_nand_and_fetch_8: in CheckBuiltinFunctionCall()
901 case Builtin::BI__sync_nand_and_fetch_16: in CheckBuiltinFunctionCall()
902 case Builtin::BI__sync_val_compare_and_swap: in CheckBuiltinFunctionCall()
903 case Builtin::BI__sync_val_compare_and_swap_1: in CheckBuiltinFunctionCall()
904 case Builtin::BI__sync_val_compare_and_swap_2: in CheckBuiltinFunctionCall()
905 case Builtin::BI__sync_val_compare_and_swap_4: in CheckBuiltinFunctionCall()
906 case Builtin::BI__sync_val_compare_and_swap_8: in CheckBuiltinFunctionCall()
907 case Builtin::BI__sync_val_compare_and_swap_16: in CheckBuiltinFunctionCall()
908 case Builtin::BI__sync_bool_compare_and_swap: in CheckBuiltinFunctionCall()
909 case Builtin::BI__sync_bool_compare_and_swap_1: in CheckBuiltinFunctionCall()
910 case Builtin::BI__sync_bool_compare_and_swap_2: in CheckBuiltinFunctionCall()
911 case Builtin::BI__sync_bool_compare_and_swap_4: in CheckBuiltinFunctionCall()
912 case Builtin::BI__sync_bool_compare_and_swap_8: in CheckBuiltinFunctionCall()
913 case Builtin::BI__sync_bool_compare_and_swap_16: in CheckBuiltinFunctionCall()
914 case Builtin::BI__sync_lock_test_and_set: in CheckBuiltinFunctionCall()
915 case Builtin::BI__sync_lock_test_and_set_1: in CheckBuiltinFunctionCall()
916 case Builtin::BI__sync_lock_test_and_set_2: in CheckBuiltinFunctionCall()
917 case Builtin::BI__sync_lock_test_and_set_4: in CheckBuiltinFunctionCall()
918 case Builtin::BI__sync_lock_test_and_set_8: in CheckBuiltinFunctionCall()
919 case Builtin::BI__sync_lock_test_and_set_16: in CheckBuiltinFunctionCall()
920 case Builtin::BI__sync_lock_release: in CheckBuiltinFunctionCall()
921 case Builtin::BI__sync_lock_release_1: in CheckBuiltinFunctionCall()
922 case Builtin::BI__sync_lock_release_2: in CheckBuiltinFunctionCall()
923 case Builtin::BI__sync_lock_release_4: in CheckBuiltinFunctionCall()
924 case Builtin::BI__sync_lock_release_8: in CheckBuiltinFunctionCall()
925 case Builtin::BI__sync_lock_release_16: in CheckBuiltinFunctionCall()
926 case Builtin::BI__sync_swap: in CheckBuiltinFunctionCall()
927 case Builtin::BI__sync_swap_1: in CheckBuiltinFunctionCall()
928 case Builtin::BI__sync_swap_2: in CheckBuiltinFunctionCall()
929 case Builtin::BI__sync_swap_4: in CheckBuiltinFunctionCall()
930 case Builtin::BI__sync_swap_8: in CheckBuiltinFunctionCall()
931 case Builtin::BI__sync_swap_16: in CheckBuiltinFunctionCall()
933 case Builtin::BI__builtin_nontemporal_load: in CheckBuiltinFunctionCall()
934 case Builtin::BI__builtin_nontemporal_store: in CheckBuiltinFunctionCall()
938 case Builtin::BI##ID: \ in CheckBuiltinFunctionCall()
941 case Builtin::BI__builtin_annotation: in CheckBuiltinFunctionCall()
945 case Builtin::BI__builtin_addressof: in CheckBuiltinFunctionCall()
949 case Builtin::BI__builtin_add_overflow: in CheckBuiltinFunctionCall()
950 case Builtin::BI__builtin_sub_overflow: in CheckBuiltinFunctionCall()
951 case Builtin::BI__builtin_mul_overflow: in CheckBuiltinFunctionCall()
955 case Builtin::BI__builtin_operator_new: in CheckBuiltinFunctionCall()
956 case Builtin::BI__builtin_operator_delete: in CheckBuiltinFunctionCall()
959 << (BuiltinID == Builtin::BI__builtin_operator_new in CheckBuiltinFunctionCall()
972 case Builtin::BI__builtin___memcpy_chk: in CheckBuiltinFunctionCall()
973 case Builtin::BI__builtin___memmove_chk: in CheckBuiltinFunctionCall()
974 case Builtin::BI__builtin___memset_chk: in CheckBuiltinFunctionCall()
975 case Builtin::BI__builtin___strlcat_chk: in CheckBuiltinFunctionCall()
976 case Builtin::BI__builtin___strlcpy_chk: in CheckBuiltinFunctionCall()
977 case Builtin::BI__builtin___strncat_chk: in CheckBuiltinFunctionCall()
978 case Builtin::BI__builtin___strncpy_chk: in CheckBuiltinFunctionCall()
979 case Builtin::BI__builtin___stpncpy_chk: in CheckBuiltinFunctionCall()
982 case Builtin::BI__builtin___memccpy_chk: in CheckBuiltinFunctionCall()
985 case Builtin::BI__builtin___snprintf_chk: in CheckBuiltinFunctionCall()
986 case Builtin::BI__builtin___vsnprintf_chk: in CheckBuiltinFunctionCall()
989 case Builtin::BI__builtin_call_with_static_chain: in CheckBuiltinFunctionCall()
993 case Builtin::BI__exception_code: in CheckBuiltinFunctionCall()
994 case Builtin::BI_exception_code: in CheckBuiltinFunctionCall()
999 case Builtin::BI__exception_info: in CheckBuiltinFunctionCall()
1000 case Builtin::BI_exception_info: in CheckBuiltinFunctionCall()
1005 case Builtin::BI__GetExceptionInfo: in CheckBuiltinFunctionCall()
1018 case Builtin::BIread_pipe: in CheckBuiltinFunctionCall()
1019 case Builtin::BIwrite_pipe: in CheckBuiltinFunctionCall()
1025 case Builtin::BIreserve_read_pipe: in CheckBuiltinFunctionCall()
1026 case Builtin::BIreserve_write_pipe: in CheckBuiltinFunctionCall()
1027 case Builtin::BIwork_group_reserve_read_pipe: in CheckBuiltinFunctionCall()
1028 case Builtin::BIwork_group_reserve_write_pipe: in CheckBuiltinFunctionCall()
1029 case Builtin::BIsub_group_reserve_read_pipe: in CheckBuiltinFunctionCall()
1030 case Builtin::BIsub_group_reserve_write_pipe: in CheckBuiltinFunctionCall()
1038 case Builtin::BIcommit_read_pipe: in CheckBuiltinFunctionCall()
1039 case Builtin::BIcommit_write_pipe: in CheckBuiltinFunctionCall()
1040 case Builtin::BIwork_group_commit_read_pipe: in CheckBuiltinFunctionCall()
1041 case Builtin::BIwork_group_commit_write_pipe: in CheckBuiltinFunctionCall()
1042 case Builtin::BIsub_group_commit_read_pipe: in CheckBuiltinFunctionCall()
1043 case Builtin::BIsub_group_commit_write_pipe: in CheckBuiltinFunctionCall()
1047 case Builtin::BIget_pipe_num_packets: in CheckBuiltinFunctionCall()
1048 case Builtin::BIget_pipe_max_packets: in CheckBuiltinFunctionCall()
1052 case Builtin::BIto_global: in CheckBuiltinFunctionCall()
1053 case Builtin::BIto_local: in CheckBuiltinFunctionCall()
1054 case Builtin::BIto_private: in CheckBuiltinFunctionCall()
1059 case Builtin::BIenqueue_kernel: in CheckBuiltinFunctionCall()
1063 case Builtin::BIget_kernel_work_group_size: in CheckBuiltinFunctionCall()
1064 case Builtin::BIget_kernel_preferred_work_group_size_multiple: in CheckBuiltinFunctionCall()
2184 if (CMId == Builtin::BIstrlcpy || CMId == Builtin::BIstrlcat) in CheckFunctionCall()
2186 else if (CMId == Builtin::BIstrncat) in CheckFunctionCall()
2715 { Builtin::BI##x##_1, Builtin::BI##x##_2, Builtin::BI##x##_4, \ in SemaBuiltinAtomicOverloaded()
2716 Builtin::BI##x##_8, Builtin::BI##x##_16 } in SemaBuiltinAtomicOverloaded()
2764 case Builtin::BI__sync_fetch_and_add: in SemaBuiltinAtomicOverloaded()
2765 case Builtin::BI__sync_fetch_and_add_1: in SemaBuiltinAtomicOverloaded()
2766 case Builtin::BI__sync_fetch_and_add_2: in SemaBuiltinAtomicOverloaded()
2767 case Builtin::BI__sync_fetch_and_add_4: in SemaBuiltinAtomicOverloaded()
2768 case Builtin::BI__sync_fetch_and_add_8: in SemaBuiltinAtomicOverloaded()
2769 case Builtin::BI__sync_fetch_and_add_16: in SemaBuiltinAtomicOverloaded()
2773 case Builtin::BI__sync_fetch_and_sub: in SemaBuiltinAtomicOverloaded()
2774 case Builtin::BI__sync_fetch_and_sub_1: in SemaBuiltinAtomicOverloaded()
2775 case Builtin::BI__sync_fetch_and_sub_2: in SemaBuiltinAtomicOverloaded()
2776 case Builtin::BI__sync_fetch_and_sub_4: in SemaBuiltinAtomicOverloaded()
2777 case Builtin::BI__sync_fetch_and_sub_8: in SemaBuiltinAtomicOverloaded()
2778 case Builtin::BI__sync_fetch_and_sub_16: in SemaBuiltinAtomicOverloaded()
2782 case Builtin::BI__sync_fetch_and_or: in SemaBuiltinAtomicOverloaded()
2783 case Builtin::BI__sync_fetch_and_or_1: in SemaBuiltinAtomicOverloaded()
2784 case Builtin::BI__sync_fetch_and_or_2: in SemaBuiltinAtomicOverloaded()
2785 case Builtin::BI__sync_fetch_and_or_4: in SemaBuiltinAtomicOverloaded()
2786 case Builtin::BI__sync_fetch_and_or_8: in SemaBuiltinAtomicOverloaded()
2787 case Builtin::BI__sync_fetch_and_or_16: in SemaBuiltinAtomicOverloaded()
2791 case Builtin::BI__sync_fetch_and_and: in SemaBuiltinAtomicOverloaded()
2792 case Builtin::BI__sync_fetch_and_and_1: in SemaBuiltinAtomicOverloaded()
2793 case Builtin::BI__sync_fetch_and_and_2: in SemaBuiltinAtomicOverloaded()
2794 case Builtin::BI__sync_fetch_and_and_4: in SemaBuiltinAtomicOverloaded()
2795 case Builtin::BI__sync_fetch_and_and_8: in SemaBuiltinAtomicOverloaded()
2796 case Builtin::BI__sync_fetch_and_and_16: in SemaBuiltinAtomicOverloaded()
2800 case Builtin::BI__sync_fetch_and_xor: in SemaBuiltinAtomicOverloaded()
2801 case Builtin::BI__sync_fetch_and_xor_1: in SemaBuiltinAtomicOverloaded()
2802 case Builtin::BI__sync_fetch_and_xor_2: in SemaBuiltinAtomicOverloaded()
2803 case Builtin::BI__sync_fetch_and_xor_4: in SemaBuiltinAtomicOverloaded()
2804 case Builtin::BI__sync_fetch_and_xor_8: in SemaBuiltinAtomicOverloaded()
2805 case Builtin::BI__sync_fetch_and_xor_16: in SemaBuiltinAtomicOverloaded()
2809 case Builtin::BI__sync_fetch_and_nand: in SemaBuiltinAtomicOverloaded()
2810 case Builtin::BI__sync_fetch_and_nand_1: in SemaBuiltinAtomicOverloaded()
2811 case Builtin::BI__sync_fetch_and_nand_2: in SemaBuiltinAtomicOverloaded()
2812 case Builtin::BI__sync_fetch_and_nand_4: in SemaBuiltinAtomicOverloaded()
2813 case Builtin::BI__sync_fetch_and_nand_8: in SemaBuiltinAtomicOverloaded()
2814 case Builtin::BI__sync_fetch_and_nand_16: in SemaBuiltinAtomicOverloaded()
2819 case Builtin::BI__sync_add_and_fetch: in SemaBuiltinAtomicOverloaded()
2820 case Builtin::BI__sync_add_and_fetch_1: in SemaBuiltinAtomicOverloaded()
2821 case Builtin::BI__sync_add_and_fetch_2: in SemaBuiltinAtomicOverloaded()
2822 case Builtin::BI__sync_add_and_fetch_4: in SemaBuiltinAtomicOverloaded()
2823 case Builtin::BI__sync_add_and_fetch_8: in SemaBuiltinAtomicOverloaded()
2824 case Builtin::BI__sync_add_and_fetch_16: in SemaBuiltinAtomicOverloaded()
2828 case Builtin::BI__sync_sub_and_fetch: in SemaBuiltinAtomicOverloaded()
2829 case Builtin::BI__sync_sub_and_fetch_1: in SemaBuiltinAtomicOverloaded()
2830 case Builtin::BI__sync_sub_and_fetch_2: in SemaBuiltinAtomicOverloaded()
2831 case Builtin::BI__sync_sub_and_fetch_4: in SemaBuiltinAtomicOverloaded()
2832 case Builtin::BI__sync_sub_and_fetch_8: in SemaBuiltinAtomicOverloaded()
2833 case Builtin::BI__sync_sub_and_fetch_16: in SemaBuiltinAtomicOverloaded()
2837 case Builtin::BI__sync_and_and_fetch: in SemaBuiltinAtomicOverloaded()
2838 case Builtin::BI__sync_and_and_fetch_1: in SemaBuiltinAtomicOverloaded()
2839 case Builtin::BI__sync_and_and_fetch_2: in SemaBuiltinAtomicOverloaded()
2840 case Builtin::BI__sync_and_and_fetch_4: in SemaBuiltinAtomicOverloaded()
2841 case Builtin::BI__sync_and_and_fetch_8: in SemaBuiltinAtomicOverloaded()
2842 case Builtin::BI__sync_and_and_fetch_16: in SemaBuiltinAtomicOverloaded()
2846 case Builtin::BI__sync_or_and_fetch: in SemaBuiltinAtomicOverloaded()
2847 case Builtin::BI__sync_or_and_fetch_1: in SemaBuiltinAtomicOverloaded()
2848 case Builtin::BI__sync_or_and_fetch_2: in SemaBuiltinAtomicOverloaded()
2849 case Builtin::BI__sync_or_and_fetch_4: in SemaBuiltinAtomicOverloaded()
2850 case Builtin::BI__sync_or_and_fetch_8: in SemaBuiltinAtomicOverloaded()
2851 case Builtin::BI__sync_or_and_fetch_16: in SemaBuiltinAtomicOverloaded()
2855 case Builtin::BI__sync_xor_and_fetch: in SemaBuiltinAtomicOverloaded()
2856 case Builtin::BI__sync_xor_and_fetch_1: in SemaBuiltinAtomicOverloaded()
2857 case Builtin::BI__sync_xor_and_fetch_2: in SemaBuiltinAtomicOverloaded()
2858 case Builtin::BI__sync_xor_and_fetch_4: in SemaBuiltinAtomicOverloaded()
2859 case Builtin::BI__sync_xor_and_fetch_8: in SemaBuiltinAtomicOverloaded()
2860 case Builtin::BI__sync_xor_and_fetch_16: in SemaBuiltinAtomicOverloaded()
2864 case Builtin::BI__sync_nand_and_fetch: in SemaBuiltinAtomicOverloaded()
2865 case Builtin::BI__sync_nand_and_fetch_1: in SemaBuiltinAtomicOverloaded()
2866 case Builtin::BI__sync_nand_and_fetch_2: in SemaBuiltinAtomicOverloaded()
2867 case Builtin::BI__sync_nand_and_fetch_4: in SemaBuiltinAtomicOverloaded()
2868 case Builtin::BI__sync_nand_and_fetch_8: in SemaBuiltinAtomicOverloaded()
2869 case Builtin::BI__sync_nand_and_fetch_16: in SemaBuiltinAtomicOverloaded()
2874 case Builtin::BI__sync_val_compare_and_swap: in SemaBuiltinAtomicOverloaded()
2875 case Builtin::BI__sync_val_compare_and_swap_1: in SemaBuiltinAtomicOverloaded()
2876 case Builtin::BI__sync_val_compare_and_swap_2: in SemaBuiltinAtomicOverloaded()
2877 case Builtin::BI__sync_val_compare_and_swap_4: in SemaBuiltinAtomicOverloaded()
2878 case Builtin::BI__sync_val_compare_and_swap_8: in SemaBuiltinAtomicOverloaded()
2879 case Builtin::BI__sync_val_compare_and_swap_16: in SemaBuiltinAtomicOverloaded()
2884 case Builtin::BI__sync_bool_compare_and_swap: in SemaBuiltinAtomicOverloaded()
2885 case Builtin::BI__sync_bool_compare_and_swap_1: in SemaBuiltinAtomicOverloaded()
2886 case Builtin::BI__sync_bool_compare_and_swap_2: in SemaBuiltinAtomicOverloaded()
2887 case Builtin::BI__sync_bool_compare_and_swap_4: in SemaBuiltinAtomicOverloaded()
2888 case Builtin::BI__sync_bool_compare_and_swap_8: in SemaBuiltinAtomicOverloaded()
2889 case Builtin::BI__sync_bool_compare_and_swap_16: in SemaBuiltinAtomicOverloaded()
2895 case Builtin::BI__sync_lock_test_and_set: in SemaBuiltinAtomicOverloaded()
2896 case Builtin::BI__sync_lock_test_and_set_1: in SemaBuiltinAtomicOverloaded()
2897 case Builtin::BI__sync_lock_test_and_set_2: in SemaBuiltinAtomicOverloaded()
2898 case Builtin::BI__sync_lock_test_and_set_4: in SemaBuiltinAtomicOverloaded()
2899 case Builtin::BI__sync_lock_test_and_set_8: in SemaBuiltinAtomicOverloaded()
2900 case Builtin::BI__sync_lock_test_and_set_16: in SemaBuiltinAtomicOverloaded()
2904 case Builtin::BI__sync_lock_release: in SemaBuiltinAtomicOverloaded()
2905 case Builtin::BI__sync_lock_release_1: in SemaBuiltinAtomicOverloaded()
2906 case Builtin::BI__sync_lock_release_2: in SemaBuiltinAtomicOverloaded()
2907 case Builtin::BI__sync_lock_release_4: in SemaBuiltinAtomicOverloaded()
2908 case Builtin::BI__sync_lock_release_8: in SemaBuiltinAtomicOverloaded()
2909 case Builtin::BI__sync_lock_release_16: in SemaBuiltinAtomicOverloaded()
2915 case Builtin::BI__sync_swap: in SemaBuiltinAtomicOverloaded()
2916 case Builtin::BI__sync_swap_1: in SemaBuiltinAtomicOverloaded()
2917 case Builtin::BI__sync_swap_2: in SemaBuiltinAtomicOverloaded()
2918 case Builtin::BI__sync_swap_4: in SemaBuiltinAtomicOverloaded()
2919 case Builtin::BI__sync_swap_8: in SemaBuiltinAtomicOverloaded()
2920 case Builtin::BI__sync_swap_16: in SemaBuiltinAtomicOverloaded()
3021 assert((BuiltinID == Builtin::BI__builtin_nontemporal_store || in SemaBuiltinNontemporalOverloaded()
3022 BuiltinID == Builtin::BI__builtin_nontemporal_load) && in SemaBuiltinNontemporalOverloaded()
3024 bool isStore = BuiltinID == Builtin::BI__builtin_nontemporal_store; in SemaBuiltinNontemporalOverloaded()
3973 if (BuiltinID == Builtin::BI__builtin___CFStringMakeConstantString || in checkFormatStringExpr()
3974 BuiltinID == Builtin::BI__builtin___NSStringMakeConstantString) { in checkFormatStringExpr()
5643 case Builtin::BI__builtin_abs: in getLargerAbsoluteValueFunction()
5644 return Builtin::BI__builtin_labs; in getLargerAbsoluteValueFunction()
5645 case Builtin::BI__builtin_labs: in getLargerAbsoluteValueFunction()
5646 return Builtin::BI__builtin_llabs; in getLargerAbsoluteValueFunction()
5647 case Builtin::BI__builtin_llabs: in getLargerAbsoluteValueFunction()
5650 case Builtin::BI__builtin_fabsf: in getLargerAbsoluteValueFunction()
5651 return Builtin::BI__builtin_fabs; in getLargerAbsoluteValueFunction()
5652 case Builtin::BI__builtin_fabs: in getLargerAbsoluteValueFunction()
5653 return Builtin::BI__builtin_fabsl; in getLargerAbsoluteValueFunction()
5654 case Builtin::BI__builtin_fabsl: in getLargerAbsoluteValueFunction()
5657 case Builtin::BI__builtin_cabsf: in getLargerAbsoluteValueFunction()
5658 return Builtin::BI__builtin_cabs; in getLargerAbsoluteValueFunction()
5659 case Builtin::BI__builtin_cabs: in getLargerAbsoluteValueFunction()
5660 return Builtin::BI__builtin_cabsl; in getLargerAbsoluteValueFunction()
5661 case Builtin::BI__builtin_cabsl: in getLargerAbsoluteValueFunction()
5664 case Builtin::BIabs: in getLargerAbsoluteValueFunction()
5665 return Builtin::BIlabs; in getLargerAbsoluteValueFunction()
5666 case Builtin::BIlabs: in getLargerAbsoluteValueFunction()
5667 return Builtin::BIllabs; in getLargerAbsoluteValueFunction()
5668 case Builtin::BIllabs: in getLargerAbsoluteValueFunction()
5671 case Builtin::BIfabsf: in getLargerAbsoluteValueFunction()
5672 return Builtin::BIfabs; in getLargerAbsoluteValueFunction()
5673 case Builtin::BIfabs: in getLargerAbsoluteValueFunction()
5674 return Builtin::BIfabsl; in getLargerAbsoluteValueFunction()
5675 case Builtin::BIfabsl: in getLargerAbsoluteValueFunction()
5678 case Builtin::BIcabsf: in getLargerAbsoluteValueFunction()
5679 return Builtin::BIcabs; in getLargerAbsoluteValueFunction()
5680 case Builtin::BIcabs: in getLargerAbsoluteValueFunction()
5681 return Builtin::BIcabsl; in getLargerAbsoluteValueFunction()
5682 case Builtin::BIcabsl: in getLargerAbsoluteValueFunction()
5755 case Builtin::BI__builtin_fabsf: in changeAbsFunction()
5756 case Builtin::BI__builtin_fabs: in changeAbsFunction()
5757 case Builtin::BI__builtin_fabsl: in changeAbsFunction()
5758 case Builtin::BI__builtin_cabsf: in changeAbsFunction()
5759 case Builtin::BI__builtin_cabs: in changeAbsFunction()
5760 case Builtin::BI__builtin_cabsl: in changeAbsFunction()
5761 return Builtin::BI__builtin_abs; in changeAbsFunction()
5762 case Builtin::BIfabsf: in changeAbsFunction()
5763 case Builtin::BIfabs: in changeAbsFunction()
5764 case Builtin::BIfabsl: in changeAbsFunction()
5765 case Builtin::BIcabsf: in changeAbsFunction()
5766 case Builtin::BIcabs: in changeAbsFunction()
5767 case Builtin::BIcabsl: in changeAbsFunction()
5768 return Builtin::BIabs; in changeAbsFunction()
5774 case Builtin::BI__builtin_abs: in changeAbsFunction()
5775 case Builtin::BI__builtin_labs: in changeAbsFunction()
5776 case Builtin::BI__builtin_llabs: in changeAbsFunction()
5777 case Builtin::BI__builtin_cabsf: in changeAbsFunction()
5778 case Builtin::BI__builtin_cabs: in changeAbsFunction()
5779 case Builtin::BI__builtin_cabsl: in changeAbsFunction()
5780 return Builtin::BI__builtin_fabsf; in changeAbsFunction()
5781 case Builtin::BIabs: in changeAbsFunction()
5782 case Builtin::BIlabs: in changeAbsFunction()
5783 case Builtin::BIllabs: in changeAbsFunction()
5784 case Builtin::BIcabsf: in changeAbsFunction()
5785 case Builtin::BIcabs: in changeAbsFunction()
5786 case Builtin::BIcabsl: in changeAbsFunction()
5787 return Builtin::BIfabsf; in changeAbsFunction()
5793 case Builtin::BI__builtin_abs: in changeAbsFunction()
5794 case Builtin::BI__builtin_labs: in changeAbsFunction()
5795 case Builtin::BI__builtin_llabs: in changeAbsFunction()
5796 case Builtin::BI__builtin_fabsf: in changeAbsFunction()
5797 case Builtin::BI__builtin_fabs: in changeAbsFunction()
5798 case Builtin::BI__builtin_fabsl: in changeAbsFunction()
5799 return Builtin::BI__builtin_cabsf; in changeAbsFunction()
5800 case Builtin::BIabs: in changeAbsFunction()
5801 case Builtin::BIlabs: in changeAbsFunction()
5802 case Builtin::BIllabs: in changeAbsFunction()
5803 case Builtin::BIfabsf: in changeAbsFunction()
5804 case Builtin::BIfabs: in changeAbsFunction()
5805 case Builtin::BIfabsl: in changeAbsFunction()
5806 return Builtin::BIcabsf; in changeAbsFunction()
5820 case Builtin::BI__builtin_abs: in getAbsoluteValueFunctionKind()
5821 case Builtin::BI__builtin_fabs: in getAbsoluteValueFunctionKind()
5822 case Builtin::BI__builtin_fabsf: in getAbsoluteValueFunctionKind()
5823 case Builtin::BI__builtin_fabsl: in getAbsoluteValueFunctionKind()
5824 case Builtin::BI__builtin_labs: in getAbsoluteValueFunctionKind()
5825 case Builtin::BI__builtin_llabs: in getAbsoluteValueFunctionKind()
5826 case Builtin::BI__builtin_cabs: in getAbsoluteValueFunctionKind()
5827 case Builtin::BI__builtin_cabsf: in getAbsoluteValueFunctionKind()
5828 case Builtin::BI__builtin_cabsl: in getAbsoluteValueFunctionKind()
5829 case Builtin::BIabs: in getAbsoluteValueFunctionKind()
5830 case Builtin::BIlabs: in getAbsoluteValueFunctionKind()
5831 case Builtin::BIllabs: in getAbsoluteValueFunctionKind()
5832 case Builtin::BIfabs: in getAbsoluteValueFunctionKind()
5833 case Builtin::BIfabsf: in getAbsoluteValueFunctionKind()
5834 case Builtin::BIfabsl: in getAbsoluteValueFunctionKind()
5835 case Builtin::BIcabs: in getAbsoluteValueFunctionKind()
5836 case Builtin::BIcabsf: in getAbsoluteValueFunctionKind()
5837 case Builtin::BIcabsl: in getAbsoluteValueFunctionKind()
6129 unsigned ExpectedNumArgs = (BId == Builtin::BIstrndup ? 2 : 3); in CheckMemaccessArguments()
6133 unsigned LastArg = (BId == Builtin::BImemset || in CheckMemaccessArguments()
6134 BId == Builtin::BIstrndup ? 1 : 2); in CheckMemaccessArguments()
6135 unsigned LenArg = (BId == Builtin::BIstrndup ? 1 : 2); in CheckMemaccessArguments()
6249 if (ArgIdx != 0 || BId == Builtin::BImemcmp) { in CheckMemaccessArguments()
6250 if (BId == Builtin::BImemcpy) in CheckMemaccessArguments()
6252 else if(BId == Builtin::BImemmove) in CheckMemaccessArguments()
6254 else if (BId == Builtin::BImemcmp) in CheckMemaccessArguments()
6261 << (BId == Builtin::BImemcmp ? ArgIdx + 2 : ArgIdx) in CheckMemaccessArguments()
6265 BId != Builtin::BImemset) in CheckMemaccessArguments()
6344 if (SizeCall->getBuiltinCallee() == Builtin::BIstrlen && in CheckStrlcpycatArguments()
6400 if (!FD || FD->getMemoryFunctionKind() != Builtin::BIstrlen) in getStrlenExprArg()