• Home
  • Raw
  • Download

Lines Matching refs:FTy

490 bool TargetLibraryInfoImpl::isValidProtoForLibFunc(const FunctionType &FTy,  in isValidProtoForLibFunc()  argument
493 LLVMContext &Ctx = FTy.getContext(); in isValidProtoForLibFunc()
499 unsigned NumParams = FTy.getNumParams(); in isValidProtoForLibFunc()
503 return (NumParams == 1 && FTy.getParamType(0)->isPointerTy() && in isValidProtoForLibFunc()
504 FTy.getReturnType()->isIntegerTy()); in isValidProtoForLibFunc()
508 return (NumParams == 2 && FTy.getReturnType()->isPointerTy() && in isValidProtoForLibFunc()
509 FTy.getParamType(0) == FTy.getReturnType() && in isValidProtoForLibFunc()
510 FTy.getParamType(1)->isIntegerTy()); in isValidProtoForLibFunc()
520 FTy.getParamType(0)->isPointerTy() && in isValidProtoForLibFunc()
521 FTy.getParamType(1)->isPointerTy()); in isValidProtoForLibFunc()
523 return (NumParams == 2 && FTy.getReturnType()->isPointerTy() && in isValidProtoForLibFunc()
524 FTy.getParamType(0) == FTy.getReturnType() && in isValidProtoForLibFunc()
525 FTy.getParamType(1) == FTy.getReturnType()); in isValidProtoForLibFunc()
528 return (NumParams == 3 && FTy.getReturnType()->isPointerTy() && in isValidProtoForLibFunc()
529 FTy.getParamType(0) == FTy.getReturnType() && in isValidProtoForLibFunc()
530 FTy.getParamType(1) == FTy.getReturnType() && in isValidProtoForLibFunc()
531 FTy.getParamType(2)->isIntegerTy()); in isValidProtoForLibFunc()
536 if (!IsSizeTTy(FTy.getParamType(NumParams))) in isValidProtoForLibFunc()
541 return (NumParams == 2 && FTy.getReturnType() == FTy.getParamType(0) && in isValidProtoForLibFunc()
542 FTy.getParamType(0) == FTy.getParamType(1) && in isValidProtoForLibFunc()
543 FTy.getParamType(0) == PCharTy); in isValidProtoForLibFunc()
548 if (!IsSizeTTy(FTy.getParamType(NumParams))) in isValidProtoForLibFunc()
553 return (NumParams == 3 && FTy.getReturnType() == FTy.getParamType(0) && in isValidProtoForLibFunc()
554 FTy.getParamType(0) == FTy.getParamType(1) && in isValidProtoForLibFunc()
555 FTy.getParamType(0) == PCharTy && in isValidProtoForLibFunc()
556 FTy.getParamType(2)->isIntegerTy()); in isValidProtoForLibFunc()
559 return (NumParams == 3 && FTy.getParamType(0)->isPointerTy() && in isValidProtoForLibFunc()
560 FTy.getParamType(1)->isPointerTy()); in isValidProtoForLibFunc()
563 return (NumParams == 2 && FTy.getReturnType()->isIntegerTy(32) && in isValidProtoForLibFunc()
564 FTy.getParamType(0)->isPointerTy() && in isValidProtoForLibFunc()
565 FTy.getParamType(0) == FTy.getParamType(1)); in isValidProtoForLibFunc()
568 return (NumParams == 3 && FTy.getReturnType()->isIntegerTy(32) && in isValidProtoForLibFunc()
569 FTy.getParamType(0)->isPointerTy() && in isValidProtoForLibFunc()
570 FTy.getParamType(0) == FTy.getParamType(1) && in isValidProtoForLibFunc()
571 FTy.getParamType(2)->isIntegerTy()); in isValidProtoForLibFunc()
575 return (NumParams == 2 && FTy.getParamType(0)->isPointerTy() && in isValidProtoForLibFunc()
576 FTy.getParamType(0) == FTy.getParamType(1) && in isValidProtoForLibFunc()
577 FTy.getReturnType()->isIntegerTy()); in isValidProtoForLibFunc()
582 return (NumParams >= 2 && FTy.getParamType(0)->isPointerTy() && in isValidProtoForLibFunc()
583 FTy.getParamType(1)->isPointerTy()); in isValidProtoForLibFunc()
586 return (NumParams == 2 && FTy.getReturnType()->isPointerTy() && in isValidProtoForLibFunc()
587 FTy.getParamType(0)->isPointerTy() && in isValidProtoForLibFunc()
588 FTy.getParamType(1)->isPointerTy()); in isValidProtoForLibFunc()
591 return (NumParams == 2 && FTy.getParamType(0)->isPointerTy() && in isValidProtoForLibFunc()
592 FTy.getReturnType() == FTy.getParamType(0) && in isValidProtoForLibFunc()
593 FTy.getParamType(0) == FTy.getParamType(1)); in isValidProtoForLibFunc()
597 return (NumParams >= 2 && FTy.getParamType(1)->isPointerTy()); in isValidProtoForLibFunc()
601 return (NumParams >= 1 && FTy.getParamType(0)->isPointerTy()); in isValidProtoForLibFunc()
604 return (NumParams >= 1 && FTy.getReturnType()->isPointerTy() && in isValidProtoForLibFunc()
605 FTy.getParamType(0)->isPointerTy()); in isValidProtoForLibFunc()
610 return (NumParams >= 2 && FTy.getParamType(0)->isPointerTy() && in isValidProtoForLibFunc()
611 FTy.getParamType(1)->isPointerTy()); in isValidProtoForLibFunc()
613 return (NumParams == 3 && FTy.getParamType(0)->isPointerTy() && in isValidProtoForLibFunc()
614 FTy.getParamType(2)->isPointerTy()); in isValidProtoForLibFunc()
616 return (NumParams == 3 && FTy.getParamType(1)->isPointerTy() && in isValidProtoForLibFunc()
617 FTy.getParamType(2)->isPointerTy()); in isValidProtoForLibFunc()
619 return (NumParams == 1 && FTy.getParamType(0)->isPointerTy()); in isValidProtoForLibFunc()
621 return (NumParams == 1 && FTy.getReturnType()->isPointerTy()); in isValidProtoForLibFunc()
623 return (NumParams == 3 && FTy.getParamType(0)->isPointerTy() && in isValidProtoForLibFunc()
624 FTy.getParamType(1)->isPointerTy() && in isValidProtoForLibFunc()
625 FTy.getReturnType()->isIntegerTy(32)); in isValidProtoForLibFunc()
629 return (NumParams == 3 && FTy.getParamType(0)->isPointerTy() && in isValidProtoForLibFunc()
630 FTy.getParamType(1)->isIntegerTy(32) && in isValidProtoForLibFunc()
631 FTy.getParamType(2)->isIntegerTy() && in isValidProtoForLibFunc()
632 FTy.getReturnType()->isPointerTy()); in isValidProtoForLibFunc()
636 return (NumParams >= 2 && FTy.getParamType(1)->isPointerTy()); in isValidProtoForLibFunc()
641 if (!IsSizeTTy(FTy.getParamType(NumParams))) in isValidProtoForLibFunc()
646 return (NumParams == 3 && FTy.getReturnType() == FTy.getParamType(0) && in isValidProtoForLibFunc()
647 FTy.getParamType(0)->isPointerTy() && in isValidProtoForLibFunc()
648 FTy.getParamType(1)->isPointerTy() && in isValidProtoForLibFunc()
649 IsSizeTTy(FTy.getParamType(2))); in isValidProtoForLibFunc()
653 if (!IsSizeTTy(FTy.getParamType(NumParams))) in isValidProtoForLibFunc()
657 return (NumParams == 3 && FTy.getReturnType() == FTy.getParamType(0) && in isValidProtoForLibFunc()
658 FTy.getParamType(0)->isPointerTy() && in isValidProtoForLibFunc()
659 FTy.getParamType(1)->isIntegerTy() && in isValidProtoForLibFunc()
660 IsSizeTTy(FTy.getParamType(2))); in isValidProtoForLibFunc()
663 return (NumParams >= 2 && FTy.getParamType(1)->isPointerTy()); in isValidProtoForLibFunc()
665 return (FTy.getReturnType()->isPointerTy()); in isValidProtoForLibFunc()
667 return (NumParams == 2 && FTy.getParamType(0)->isPointerTy() && in isValidProtoForLibFunc()
668 FTy.getReturnType()->isPointerTy()); in isValidProtoForLibFunc()
670 return (NumParams == 3 && FTy.getParamType(1)->isPointerTy()); in isValidProtoForLibFunc()
675 return (NumParams >= 1 && FTy.getParamType(0)->isPointerTy()); in isValidProtoForLibFunc()
677 return (NumParams >= 2 && FTy.getParamType(0)->isPointerTy() && in isValidProtoForLibFunc()
678 FTy.getParamType(1)->isPointerTy()); in isValidProtoForLibFunc()
680 return (NumParams >= 2 && FTy.getParamType(0)->isPointerTy() && in isValidProtoForLibFunc()
681 FTy.getParamType(1)->isPointerTy()); in isValidProtoForLibFunc()
683 return (NumParams == 3 && FTy.getParamType(1)->isPointerTy()); in isValidProtoForLibFunc()
686 return (NumParams == 3 && FTy.getParamType(0)->isPointerTy() && in isValidProtoForLibFunc()
687 FTy.getParamType(1)->isPointerTy()); in isValidProtoForLibFunc()
689 return (NumParams == 2 && FTy.getParamType(0)->isPointerTy()); in isValidProtoForLibFunc()
691 return (NumParams == 2 && FTy.getReturnType()->isPointerTy()); in isValidProtoForLibFunc()
708 return (NumParams == 1 && FTy.getParamType(0)->isPointerTy()); in isValidProtoForLibFunc()
737 return (NumParams != 0 && FTy.getParamType(0)->isPointerTy()); in isValidProtoForLibFunc()
740 return (NumParams == 2 && FTy.getParamType(0)->isPointerTy()); in isValidProtoForLibFunc()
742 return (NumParams == 2 && FTy.getReturnType()->isPointerTy() && in isValidProtoForLibFunc()
743 FTy.getParamType(0)->isPointerTy() && in isValidProtoForLibFunc()
744 FTy.getParamType(1)->isPointerTy()); in isValidProtoForLibFunc()
746 return (NumParams == 2 && FTy.getReturnType()->isPointerTy() && in isValidProtoForLibFunc()
747 FTy.getParamType(1)->isPointerTy()); in isValidProtoForLibFunc()
754 return (NumParams == 2 && FTy.getParamType(1)->isPointerTy()); in isValidProtoForLibFunc()
756 return (NumParams == 3 && FTy.getParamType(0)->isPointerTy() && in isValidProtoForLibFunc()
757 FTy.getParamType(2)->isPointerTy()); in isValidProtoForLibFunc()
759 return (NumParams == 4 && FTy.getParamType(0)->isPointerTy() && in isValidProtoForLibFunc()
760 FTy.getParamType(3)->isPointerTy()); in isValidProtoForLibFunc()
762 return (NumParams == 4 && FTy.getReturnType()->isIntegerTy() && in isValidProtoForLibFunc()
763 FTy.getParamType(0)->isPointerTy() && in isValidProtoForLibFunc()
764 FTy.getParamType(1)->isIntegerTy() && in isValidProtoForLibFunc()
765 FTy.getParamType(2)->isIntegerTy() && in isValidProtoForLibFunc()
766 FTy.getParamType(3)->isPointerTy()); in isValidProtoForLibFunc()
768 return (NumParams >= 2 && FTy.getParamType(0)->isPointerTy() && in isValidProtoForLibFunc()
769 FTy.getParamType(1)->isPointerTy()); in isValidProtoForLibFunc()
772 return (NumParams >= 2 && FTy.getParamType(0)->isPointerTy() && in isValidProtoForLibFunc()
773 FTy.getParamType(1)->isPointerTy()); in isValidProtoForLibFunc()
775 return (NumParams >= 2 && FTy.getParamType(0)->isPointerTy() && in isValidProtoForLibFunc()
776 FTy.getParamType(1)->isPointerTy()); in isValidProtoForLibFunc()
780 return (NumParams == 2 && FTy.getParamType(1)->isPointerTy()); in isValidProtoForLibFunc()
782 return (NumParams == 2 && FTy.getParamType(1)->isPointerTy()); in isValidProtoForLibFunc()
785 return (NumParams == 2 && FTy.getParamType(0)->isPointerTy() && in isValidProtoForLibFunc()
786 FTy.getParamType(1)->isPointerTy()); in isValidProtoForLibFunc()
788 return (NumParams == 2 && FTy.getParamType(1)->isPointerTy()); in isValidProtoForLibFunc()
791 return (NumParams == 4 && FTy.getParamType(1)->isPointerTy()); in isValidProtoForLibFunc()
793 return (NumParams == 2 && FTy.getReturnType()->isPointerTy() && in isValidProtoForLibFunc()
794 FTy.getParamType(0)->isPointerTy() && in isValidProtoForLibFunc()
795 FTy.getParamType(1)->isPointerTy()); in isValidProtoForLibFunc()
797 return (NumParams == 2 && FTy.getParamType(1)->isPointerTy()); in isValidProtoForLibFunc()
799 return (NumParams == 3 && FTy.getParamType(1)->isPointerTy() && in isValidProtoForLibFunc()
800 FTy.getParamType(2)->isPointerTy()); in isValidProtoForLibFunc()
802 return (NumParams == 3 && FTy.getParamType(1)->isPointerTy() && in isValidProtoForLibFunc()
803 FTy.getParamType(2)->isPointerTy()); in isValidProtoForLibFunc()
805 return (FTy.getReturnType()->isPointerTy()); in isValidProtoForLibFunc()
807 return (NumParams == 2 && FTy.getParamType(0)->isPointerTy()); in isValidProtoForLibFunc()
810 return (NumParams == 3 && FTy.getParamType(0)->isPointerTy() && in isValidProtoForLibFunc()
811 FTy.getParamType(1)->isPointerTy()); in isValidProtoForLibFunc()
813 return (NumParams == 4 && FTy.getParamType(0)->isPointerTy() && in isValidProtoForLibFunc()
814 FTy.getParamType(2)->isPointerTy()); in isValidProtoForLibFunc()
816 return (NumParams >= 2 && FTy.getParamType(0)->isPointerTy()); in isValidProtoForLibFunc()
818 return (NumParams == 1 && FTy.getReturnType()->isPointerTy() && in isValidProtoForLibFunc()
819 FTy.getParamType(0)->isPointerTy()); in isValidProtoForLibFunc()
821 return (FTy.getReturnType()->isPointerTy()); in isValidProtoForLibFunc()
827 return (NumParams == 2 && FTy.getParamType(0)->isPointerTy() && in isValidProtoForLibFunc()
828 FTy.getParamType(1)->isPointerTy()); in isValidProtoForLibFunc()
830 return (NumParams == 3 && FTy.getParamType(0)->isPointerTy()); in isValidProtoForLibFunc()
832 return (NumParams == 4 && FTy.getParamType(3)->isPointerTy()); in isValidProtoForLibFunc()
835 return (NumParams >= 1 && FTy.getReturnType()->isPointerTy() && in isValidProtoForLibFunc()
836 FTy.getParamType(0)->isPointerTy()); in isValidProtoForLibFunc()
838 return (NumParams == 3 && FTy.getParamType(1)->isPointerTy()); in isValidProtoForLibFunc()
840 return (NumParams == 2 && FTy.getParamType(1)->isPointerTy()); in isValidProtoForLibFunc()
842 return (NumParams >= 1 && FTy.getParamType(0)->isPointerTy()); in isValidProtoForLibFunc()
846 return (NumParams >= 1 && FTy.getParamType(0)->isPointerTy() && in isValidProtoForLibFunc()
847 FTy.getParamType(1)->isPointerTy()); in isValidProtoForLibFunc()
849 return (NumParams >= 1 && FTy.getParamType(0)->isPointerTy() && in isValidProtoForLibFunc()
850 FTy.getParamType(1)->isPointerTy()); in isValidProtoForLibFunc()
852 return (NumParams == 2 && FTy.getReturnType()->isPointerTy() && in isValidProtoForLibFunc()
853 FTy.getParamType(0)->isPointerTy() && in isValidProtoForLibFunc()
854 FTy.getParamType(1)->isPointerTy()); in isValidProtoForLibFunc()
856 return (FTy.getReturnType()->isPointerTy()); in isValidProtoForLibFunc()
859 return (NumParams == 2 && FTy.getParamType(1)->isPointerTy()); in isValidProtoForLibFunc()
861 return (NumParams >= 2 && FTy.getParamType(0)->isPointerTy()); in isValidProtoForLibFunc()
863 return (NumParams == 2 && FTy.getParamType(0)->isPointerTy() && in isValidProtoForLibFunc()
864 FTy.getParamType(1)->isPointerTy()); in isValidProtoForLibFunc()
877 return (!FTy.isVarArg() && NumParams == 3 && in isValidProtoForLibFunc()
878 isa<PointerType>(FTy.getParamType(0)) && in isValidProtoForLibFunc()
879 isa<PointerType>(FTy.getParamType(1)) && in isValidProtoForLibFunc()
880 isa<IntegerType>(FTy.getParamType(2))); in isValidProtoForLibFunc()
884 return (NumParams == 1 && isa<PointerType>(FTy.getParamType(0))); in isValidProtoForLibFunc()
934 return (NumParams == 1 && FTy.getReturnType()->isFloatingPointTy() && in isValidProtoForLibFunc()
935 FTy.getReturnType() == FTy.getParamType(0)); in isValidProtoForLibFunc()
949 return (NumParams == 2 && FTy.getReturnType()->isFloatingPointTy() && in isValidProtoForLibFunc()
950 FTy.getReturnType() == FTy.getParamType(0) && in isValidProtoForLibFunc()
951 FTy.getReturnType() == FTy.getParamType(1)); in isValidProtoForLibFunc()
959 return (NumParams == 1 && FTy.getReturnType()->isIntegerTy(32) && in isValidProtoForLibFunc()
960 FTy.getParamType(0)->isIntegerTy()); in isValidProtoForLibFunc()
968 return (NumParams == 1 && FTy.getReturnType()->isIntegerTy() && in isValidProtoForLibFunc()
969 FTy.getReturnType() == FTy.getParamType(0)); in isValidProtoForLibFunc()
972 return (NumParams == 3 && FTy.getReturnType()->isIntegerTy() && in isValidProtoForLibFunc()
973 FTy.getParamType(0)->isPointerTy() && in isValidProtoForLibFunc()
974 FTy.getParamType(1)->isPointerTy() && in isValidProtoForLibFunc()
975 FTy.getParamType(2)->isPointerTy()); in isValidProtoForLibFunc()
979 return (NumParams == 1 && FTy.getReturnType()->isDoubleTy() && in isValidProtoForLibFunc()
980 FTy.getReturnType() == FTy.getParamType(0)); in isValidProtoForLibFunc()
984 return (NumParams == 1 && FTy.getReturnType()->isFloatTy() && in isValidProtoForLibFunc()
985 FTy.getReturnType() == FTy.getParamType(0)); in isValidProtoForLibFunc()