Lines Matching refs:FT
265 Constant *getOrBuildTrampolineFunction(FunctionType *FT, StringRef FName);
399 FunctionType *FT; in getCustomFunctionType() local
400 if (isa<PointerType>(*i) && (FT = dyn_cast<FunctionType>(cast<PointerType>( in getCustomFunctionType()
402 ArgTypes.push_back(getTrampolineFunctionType(FT)->getPointerTo()); in getCustomFunctionType()
524 FunctionType *FT = F->getFunctionType(); in buildWrapperFunction() local
545 unsigned n = FT->getNumParams(); in buildWrapperFunction()
549 if (FT->getReturnType()->isVoidTy()) in buildWrapperFunction()
558 Constant *DataFlowSanitizer::getOrBuildTrampolineFunction(FunctionType *FT, in getOrBuildTrampolineFunction() argument
560 FunctionType *FTT = getTrampolineFunctionType(FT); in getOrBuildTrampolineFunction()
568 for (unsigned N = FT->getNumParams(); N != 0; ++AI, --N) in getOrBuildTrampolineFunction()
573 if (FT->getReturnType()->isVoidTy()) in getOrBuildTrampolineFunction()
580 for (unsigned N = FT->getNumParams(); N != 0; ++ValAI, ++ShadowAI, --N) in getOrBuildTrampolineFunction()
583 if (!FT->getReturnType()->isVoidTy()) in getOrBuildTrampolineFunction()
693 FunctionType *FT = F.getFunctionType(); in runOnModule() local
695 bool IsZeroArgsVoidRet = (FT->getNumParams() == 0 && !FT->isVarArg() && in runOnModule()
696 FT->getReturnType()->isVoidTy()); in runOnModule()
702 FunctionType *NewFT = getArgsFunctionType(FT); in runOnModule()
728 ConstantExpr::getBitCast(NewF, PointerType::getUnqual(FT))); in runOnModule()
741 ? getArgsFunctionType(FT) in runOnModule()
742 : FT; in runOnModule()
750 ConstantExpr::getBitCast(NewF, PointerType::getUnqual(FT)); in runOnModule()
779 } else if (FT->isVarArg()) { in runOnModule()
1432 FunctionType *FT = F->getFunctionType(); in visitCallSite() local
1433 FunctionType *CustomFT = DFSF.DFS.getCustomFunctionType(FT); in visitCallSite()
1442 if (!FT->getReturnType()->isVoidTy()) { in visitCallSite()
1451 for (unsigned n = FT->getNumParams(); n != 0; ++i, --n) { in visitCallSite()
1458 TName += utostr(FT->getNumParams() - n); in visitCallSite()
1471 for (unsigned n = FT->getNumParams(); n != 0; ++i, --n) in visitCallSite()
1474 if (FT->isVarArg()) { in visitCallSite()
1476 CS.arg_size() - FT->getNumParams()); in visitCallSite()
1488 if (!FT->getReturnType()->isVoidTy()) { in visitCallSite()
1497 for (i = CS.arg_begin() + FT->getNumParams(); i != CS.arg_end(); ++i) in visitCallSite()
1504 if (!FT->getReturnType()->isVoidTy()) { in visitCallSite()
1518 FunctionType *FT = cast<FunctionType>( in visitCallSite() local
1521 for (unsigned i = 0, n = FT->getNumParams(); i != n; ++i) { in visitCallSite()
1553 FunctionType *NewFT = DFSF.DFS.getArgsFunctionType(FT); in visitCallSite()
1559 for (unsigned n = FT->getNumParams(); n != 0; ++i, --n) in visitCallSite()
1563 for (unsigned n = FT->getNumParams(); n != 0; ++i, --n) in visitCallSite()
1566 if (FT->isVarArg()) { in visitCallSite()
1567 unsigned VarArgSize = CS.arg_size() - FT->getNumParams(); in visitCallSite()