Lines Matching refs:FT

125   FunctionType *FT = F->getFunctionType();  in checkStringCopyLibFuncSignature()  local
129 unsigned NumParams = FT->getNumParams(); in checkStringCopyLibFuncSignature()
132 if (FT->getReturnType() != FT->getParamType(0)) in checkStringCopyLibFuncSignature()
143 if (NumParams != 3 || FT->getParamType(0) != FT->getParamType(1) || in checkStringCopyLibFuncSignature()
144 FT->getParamType(0) != PCharTy || !FT->getParamType(2)->isIntegerTy()) in checkStringCopyLibFuncSignature()
153 if (NumParams != 2 || FT->getParamType(0) != FT->getParamType(1) || in checkStringCopyLibFuncSignature()
154 FT->getParamType(0) != PCharTy) in checkStringCopyLibFuncSignature()
163 if (NumParams != 3 || !FT->getParamType(0)->isPointerTy() || in checkStringCopyLibFuncSignature()
164 !FT->getParamType(1)->isPointerTy() || FT->getParamType(2) != SizeTTy) in checkStringCopyLibFuncSignature()
171 if (NumParams != 3 || !FT->getParamType(0)->isPointerTy() || in checkStringCopyLibFuncSignature()
172 !FT->getParamType(1)->isIntegerTy() || FT->getParamType(2) != SizeTTy) in checkStringCopyLibFuncSignature()
178 if (NumParams == FT->getNumParams() - 1) in checkStringCopyLibFuncSignature()
179 return FT->getParamType(FT->getNumParams() - 1) == SizeTTy; in checkStringCopyLibFuncSignature()
190 FunctionType *FT = Callee->getFunctionType(); in optimizeStrCat() local
191 if (FT->getNumParams() != 2|| in optimizeStrCat()
192 FT->getReturnType() != B.getInt8PtrTy() || in optimizeStrCat()
193 FT->getParamType(0) != FT->getReturnType() || in optimizeStrCat()
194 FT->getParamType(1) != FT->getReturnType()) in optimizeStrCat()
238 FunctionType *FT = Callee->getFunctionType(); in optimizeStrNCat() local
239 if (FT->getNumParams() != 3 || FT->getReturnType() != B.getInt8PtrTy() || in optimizeStrNCat()
240 FT->getParamType(0) != FT->getReturnType() || in optimizeStrNCat()
241 FT->getParamType(1) != FT->getReturnType() || in optimizeStrNCat()
242 !FT->getParamType(2)->isIntegerTy()) in optimizeStrNCat()
280 FunctionType *FT = Callee->getFunctionType(); in optimizeStrChr() local
281 if (FT->getNumParams() != 2 || FT->getReturnType() != B.getInt8PtrTy() || in optimizeStrChr()
282 FT->getParamType(0) != FT->getReturnType() || in optimizeStrChr()
283 !FT->getParamType(1)->isIntegerTy(32)) in optimizeStrChr()
293 if (Len == 0 || !FT->getParamType(1)->isIntegerTy(32)) // memchr needs i32. in optimizeStrChr()
325 FunctionType *FT = Callee->getFunctionType(); in optimizeStrRChr() local
326 if (FT->getNumParams() != 2 || FT->getReturnType() != B.getInt8PtrTy() || in optimizeStrRChr()
327 FT->getParamType(0) != FT->getReturnType() || in optimizeStrRChr()
328 !FT->getParamType(1)->isIntegerTy(32)) in optimizeStrRChr()
360 FunctionType *FT = Callee->getFunctionType(); in optimizeStrCmp() local
361 if (FT->getNumParams() != 2 || !FT->getReturnType()->isIntegerTy(32) || in optimizeStrCmp()
362 FT->getParamType(0) != FT->getParamType(1) || in optimizeStrCmp()
363 FT->getParamType(0) != B.getInt8PtrTy()) in optimizeStrCmp()
401 FunctionType *FT = Callee->getFunctionType(); in optimizeStrNCmp() local
402 if (FT->getNumParams() != 3 || !FT->getReturnType()->isIntegerTy(32) || in optimizeStrNCmp()
403 FT->getParamType(0) != FT->getParamType(1) || in optimizeStrNCmp()
404 FT->getParamType(0) != B.getInt8PtrTy() || in optimizeStrNCmp()
405 !FT->getParamType(2)->isIntegerTy()) in optimizeStrNCmp()
471 FunctionType *FT = Callee->getFunctionType(); in optimizeStpCpy() local
487 Type *PT = FT->getParamType(0); in optimizeStpCpy()
500 FunctionType *FT = Callee->getFunctionType(); in optimizeStrNCpy() local
534 Type *PT = FT->getParamType(0); in optimizeStrNCpy()
543 FunctionType *FT = Callee->getFunctionType(); in optimizeStrLen() local
544 if (FT->getNumParams() != 1 || FT->getParamType(0) != B.getInt8PtrTy() || in optimizeStrLen()
545 !FT->getReturnType()->isIntegerTy()) in optimizeStrLen()
579 FunctionType *FT = Callee->getFunctionType(); in optimizeStrPBrk() local
580 if (FT->getNumParams() != 2 || FT->getParamType(0) != B.getInt8PtrTy() || in optimizeStrPBrk()
581 FT->getParamType(1) != FT->getParamType(0) || in optimizeStrPBrk()
582 FT->getReturnType() != FT->getParamType(0)) in optimizeStrPBrk()
612 FunctionType *FT = Callee->getFunctionType(); in optimizeStrTo() local
613 if ((FT->getNumParams() != 2 && FT->getNumParams() != 3) || in optimizeStrTo()
614 !FT->getParamType(0)->isPointerTy() || in optimizeStrTo()
615 !FT->getParamType(1)->isPointerTy()) in optimizeStrTo()
630 FunctionType *FT = Callee->getFunctionType(); in optimizeStrSpn() local
631 if (FT->getNumParams() != 2 || FT->getParamType(0) != B.getInt8PtrTy() || in optimizeStrSpn()
632 FT->getParamType(1) != FT->getParamType(0) || in optimizeStrSpn()
633 !FT->getReturnType()->isIntegerTy()) in optimizeStrSpn()
658 FunctionType *FT = Callee->getFunctionType(); in optimizeStrCSpn() local
659 if (FT->getNumParams() != 2 || FT->getParamType(0) != B.getInt8PtrTy() || in optimizeStrCSpn()
660 FT->getParamType(1) != FT->getParamType(0) || in optimizeStrCSpn()
661 !FT->getReturnType()->isIntegerTy()) in optimizeStrCSpn()
689 FunctionType *FT = Callee->getFunctionType(); in optimizeStrStr() local
690 if (FT->getNumParams() != 2 || !FT->getParamType(0)->isPointerTy() || in optimizeStrStr()
691 !FT->getParamType(1)->isPointerTy() || in optimizeStrStr()
692 !FT->getReturnType()->isPointerTy()) in optimizeStrStr()
750 FunctionType *FT = Callee->getFunctionType(); in optimizeMemChr() local
751 if (FT->getNumParams() != 3 || !FT->getParamType(0)->isPointerTy() || in optimizeMemChr()
752 !FT->getParamType(1)->isIntegerTy(32) || in optimizeMemChr()
753 !FT->getParamType(2)->isIntegerTy() || in optimizeMemChr()
754 !FT->getReturnType()->isPointerTy()) in optimizeMemChr()
836 FunctionType *FT = Callee->getFunctionType(); in optimizeMemCmp() local
837 if (FT->getNumParams() != 3 || !FT->getParamType(0)->isPointerTy() || in optimizeMemCmp()
838 !FT->getParamType(1)->isPointerTy() || in optimizeMemCmp()
839 !FT->getReturnType()->isIntegerTy(32)) in optimizeMemCmp()
954 FunctionType *FT = Callee->getFunctionType(); in optimizeUnaryDoubleFP() local
955 if (FT->getNumParams() != 1 || !FT->getReturnType()->isDoubleTy() || in optimizeUnaryDoubleFP()
956 !FT->getParamType(0)->isDoubleTy()) in optimizeUnaryDoubleFP()
990 FunctionType *FT = Callee->getFunctionType(); in optimizeBinaryDoubleFP() local
993 if (FT->getNumParams() != 2 || FT->getReturnType() != FT->getParamType(0) || in optimizeBinaryDoubleFP()
994 FT->getParamType(0) != FT->getParamType(1) || in optimizeBinaryDoubleFP()
995 !FT->getParamType(0)->isFloatingPointTy()) in optimizeBinaryDoubleFP()
1022 FunctionType *FT = Callee->getFunctionType(); in optimizeCos() local
1025 if (FT->getNumParams() != 1 || FT->getReturnType() != FT->getParamType(0) || in optimizeCos()
1026 !FT->getParamType(0)->isFloatingPointTy()) in optimizeCos()
1046 FunctionType *FT = Callee->getFunctionType(); in optimizePow() local
1049 if (FT->getNumParams() != 2 || FT->getReturnType() != FT->getParamType(0) || in optimizePow()
1050 FT->getParamType(0) != FT->getParamType(1) || in optimizePow()
1051 !FT->getParamType(0)->isFloatingPointTy()) in optimizePow()
1118 FunctionType *FT = Callee->getFunctionType(); in optimizeExp2() local
1121 if (FT->getNumParams() != 1 || FT->getReturnType() != FT->getParamType(0) || in optimizeExp2()
1122 !FT->getParamType(0)->isFloatingPointTy()) in optimizeExp2()
1171 FunctionType *FT = Callee->getFunctionType(); in optimizeFabs() local
1173 if (FT->getNumParams() != 1 || FT->getReturnType() != FT->getParamType(0) || in optimizeFabs()
1174 !FT->getParamType(0)->isFloatingPointTy()) in optimizeFabs()
1307 FunctionType *FT = Callee->getFunctionType(); in isTrigLibCall() local
1315 return AttributesSafe && FT->getNumParams() == 1 && in isTrigLibCall()
1316 FT->getReturnType() == FT->getParamType(0) && in isTrigLibCall()
1317 (FT->getParamType(0)->isFloatTy() || in isTrigLibCall()
1318 FT->getParamType(0)->isDoubleTy()); in isTrigLibCall()
1418 FunctionType *FT = Callee->getFunctionType(); in optimizeFFS() local
1421 if (FT->getNumParams() != 1 || !FT->getReturnType()->isIntegerTy(32) || in optimizeFFS()
1422 !FT->getParamType(0)->isIntegerTy()) in optimizeFFS()
1449 FunctionType *FT = Callee->getFunctionType(); in optimizeAbs() local
1451 if (FT->getNumParams() != 1 || !FT->getReturnType()->isIntegerTy() || in optimizeAbs()
1452 FT->getParamType(0) != FT->getReturnType()) in optimizeAbs()
1465 FunctionType *FT = Callee->getFunctionType(); in optimizeIsDigit() local
1467 if (FT->getNumParams() != 1 || !FT->getReturnType()->isIntegerTy() || in optimizeIsDigit()
1468 !FT->getParamType(0)->isIntegerTy(32)) in optimizeIsDigit()
1480 FunctionType *FT = Callee->getFunctionType(); in optimizeIsAscii() local
1482 if (FT->getNumParams() != 1 || !FT->getReturnType()->isIntegerTy() || in optimizeIsAscii()
1483 !FT->getParamType(0)->isIntegerTy(32)) in optimizeIsAscii()
1494 FunctionType *FT = Callee->getFunctionType(); in optimizeToAscii() local
1496 if (FT->getNumParams() != 1 || FT->getReturnType() != FT->getParamType(0) || in optimizeToAscii()
1497 !FT->getParamType(0)->isIntegerTy(32)) in optimizeToAscii()
1615 FunctionType *FT = Callee->getFunctionType(); in optimizePrintF() local
1616 if (FT->getNumParams() < 1 || !FT->getParamType(0)->isPointerTy() || in optimizePrintF()
1617 !(FT->getReturnType()->isIntegerTy() || FT->getReturnType()->isVoidTy())) in optimizePrintF()
1629 M->getOrInsertFunction("iprintf", FT, Callee->getAttributes()); in optimizePrintF()
1701 FunctionType *FT = Callee->getFunctionType(); in optimizeSPrintF() local
1702 if (FT->getNumParams() != 2 || !FT->getParamType(0)->isPointerTy() || in optimizeSPrintF()
1703 !FT->getParamType(1)->isPointerTy() || in optimizeSPrintF()
1704 !FT->getReturnType()->isIntegerTy()) in optimizeSPrintF()
1716 M->getOrInsertFunction("siprintf", FT, Callee->getAttributes()); in optimizeSPrintF()
1777 FunctionType *FT = Callee->getFunctionType(); in optimizeFPrintF() local
1778 if (FT->getNumParams() != 2 || !FT->getParamType(0)->isPointerTy() || in optimizeFPrintF()
1779 !FT->getParamType(1)->isPointerTy() || in optimizeFPrintF()
1780 !FT->getReturnType()->isIntegerTy()) in optimizeFPrintF()
1792 M->getOrInsertFunction("fiprintf", FT, Callee->getAttributes()); in optimizeFPrintF()
1806 FunctionType *FT = Callee->getFunctionType(); in optimizeFWrite() local
1807 if (FT->getNumParams() != 4 || !FT->getParamType(0)->isPointerTy() || in optimizeFWrite()
1808 !FT->getParamType(1)->isIntegerTy() || in optimizeFWrite()
1809 !FT->getParamType(2)->isIntegerTy() || in optimizeFWrite()
1810 !FT->getParamType(3)->isPointerTy() || in optimizeFWrite()
1811 !FT->getReturnType()->isIntegerTy()) in optimizeFWrite()
1842 FunctionType *FT = Callee->getFunctionType(); in optimizeFPuts() local
1843 if (FT->getNumParams() != 2 || !FT->getParamType(0)->isPointerTy() || in optimizeFPuts()
1844 !FT->getParamType(1)->isPointerTy() || !CI->use_empty()) in optimizeFPuts()
1862 FunctionType *FT = Callee->getFunctionType(); in optimizePuts() local
1863 if (FT->getNumParams() < 1 || !FT->getParamType(0)->isPointerTy() || in optimizePuts()
1864 !(FT->getReturnType()->isIntegerTy() || FT->getReturnType()->isVoidTy())) in optimizePuts()