Home
last modified time | relevance | path

Searched refs:getNumParams (Results 1 – 25 of 103) sorted by relevance

12345

/external/llvm/lib/Transforms/IPO/
DFunctionAttrs.cpp1017 if (FTy->getNumParams() != 1 || !FTy->getParamType(0)->isPointerTy()) in inferPrototypeAttributes()
1025 if (FTy->getNumParams() != 2 || !FTy->getParamType(0)->isPointerTy() || in inferPrototypeAttributes()
1038 if (FTy->getNumParams() < 2 || !FTy->getParamType(1)->isPointerTy()) in inferPrototypeAttributes()
1050 if (FTy->getNumParams() < 2 || !FTy->getParamType(1)->isPointerTy()) in inferPrototypeAttributes()
1057 if (FTy->getNumParams() != 3 || !FTy->getParamType(0)->isPointerTy() || in inferPrototypeAttributes()
1072 if (FTy->getNumParams() < 2 || !FTy->getParamType(0)->isPointerTy() || in inferPrototypeAttributes()
1082 if (FTy->getNumParams() != 2 || !FTy->getParamType(1)->isPointerTy()) in inferPrototypeAttributes()
1090 if (FTy->getNumParams() < 2 || !FTy->getParamType(1)->isPointerTy()) in inferPrototypeAttributes()
1097 if (FTy->getNumParams() < 1 || !FTy->getParamType(0)->isPointerTy()) in inferPrototypeAttributes()
1105 if (FTy->getNumParams() < 1 || !FTy->getParamType(0)->isPointerTy()) in inferPrototypeAttributes()
[all …]
DDeadArgumentElimination.cpp489 if (ArgNo >= F->getFunctionType()->getNumParams()) in SurveyUse()
753 SmallVector<bool, 10> ArgAlive(FTy->getNumParams(), false); in RemoveDeadStuffFromFunction()
914 for (unsigned e = FTy->getNumParams(); i != e; ++I, ++i) in RemoveDeadStuffFromFunction()
/external/llvm/lib/ExecutionEngine/Orc/
DOrcMCJITReplacement.cpp36 assert((FTy->getNumParams() == ArgValues.size() || in runFunction()
37 (FTy->isVarArg() && FTy->getNumParams() <= ArgValues.size())) && in runFunction()
39 assert(FTy->getNumParams() == ArgValues.size() && in runFunction()
74 if (FTy->getNumParams() == 1 && FTy->getParamType(0)->isIntegerTy(32)) { in runFunction()
/external/llvm/lib/Transforms/Utils/
DSimplifyLibCalls.cpp136 unsigned NumParams = FT->getNumParams(); in checkStringCopyLibFuncSignature()
185 if (NumParams == FT->getNumParams() - 1) in checkStringCopyLibFuncSignature()
186 return FT->getParamType(FT->getNumParams() - 1) == SizeTTy; in checkStringCopyLibFuncSignature()
198 if (FT->getNumParams() != 2|| in optimizeStrCat()
246 if (FT->getNumParams() != 3 || FT->getReturnType() != B.getInt8PtrTy() || in optimizeStrNCat()
288 if (FT->getNumParams() != 2 || FT->getReturnType() != B.getInt8PtrTy() || in optimizeStrChr()
333 if (FT->getNumParams() != 2 || FT->getReturnType() != B.getInt8PtrTy() || in optimizeStrRChr()
368 if (FT->getNumParams() != 2 || !FT->getReturnType()->isIntegerTy(32) || in optimizeStrCmp()
409 if (FT->getNumParams() != 3 || !FT->getReturnType()->isIntegerTy(32) || in optimizeStrNCmp()
546 if (FT->getNumParams() != 1 || FT->getParamType(0) != B.getInt8PtrTy() || in optimizeStrLen()
[all …]
/external/clang/lib/StaticAnalyzer/Checkers/
DCheckSecuritySyntaxOnly.cpp315 if (FPT->getNumParams() != 1) in checkCall_gets()
351 if (FPT->getNumParams() != 2) in checkCall_getpw()
395 if (FPT->getNumParams() != 1) in checkCall_mktemp()
564 int numArgs = FPT->getNumParams(); in checkCall_strCommon()
597 if (FTP->getNumParams() == 1) { in checkCall_rand()
606 } else if (FTP->getNumParams() != 0) in checkCall_rand()
641 if (FTP->getNumParams() != 0) in checkCall_random()
717 if (FTP->getNumParams() != (identifierid < 4 ? 1 : 2)) in checkUncheckedReturnValue()
721 for (unsigned i = 0; i < FTP->getNumParams(); i++) in checkUncheckedReturnValue()
/external/llvm/lib/Transforms/Instrumentation/
DDataFlowSanitizer.cpp382 ArgTypes.append(T->getNumParams(), ShadowTy); in getArgsFunctionType()
396 ArgTypes.append(T->getNumParams(), ShadowTy); in getTrampolineFunctionType()
416 for (unsigned i = 0, e = T->getNumParams(); i != e; ++i) in getCustomFunctionType()
558 unsigned n = FT->getNumParams(); in buildWrapperFunction()
581 for (unsigned N = FT->getNumParams(); N != 0; ++AI, --N) in getOrBuildTrampolineFunction()
593 for (unsigned N = FT->getNumParams(); N != 0; ++ValAI, ++ShadowAI, --N) in getOrBuildTrampolineFunction()
709 bool IsZeroArgsVoidRet = (FT->getNumParams() == 0 && !FT->isVarArg() && in runOnModule()
1467 for (unsigned n = FT->getNumParams(); n != 0; ++i, --n) { in visitCallSite()
1474 TName += utostr(FT->getNumParams() - n); in visitCallSite()
1487 for (unsigned n = FT->getNumParams(); n != 0; ++i, --n) in visitCallSite()
[all …]
/external/clang/lib/AST/
DDeclCXX.cpp1493 if (getNumParams() == 1) in isUsualDeallocationFunction()
1502 if (getNumParams() != 2 || in isUsualDeallocationFunction()
1513 if (FD->getNumParams() == 1) in isUsualDeallocationFunction()
1528 getNumParams() != 1) in isCopyAssignmentOperator()
1548 getNumParams() != 1) in isMoveAssignmentOperator()
1775 return (getNumParams() == 0) || in isDefaultConstructor()
1776 (getNumParams() > 0 && getParamDecl(0)->hasDefaultArg()); in isDefaultConstructor()
1802 if ((getNumParams() < 1) || in isCopyOrMoveConstructor()
1803 (getNumParams() > 1 && !getParamDecl(1)->hasDefaultArg()) || in isCopyOrMoveConstructor()
1842 return (getNumParams() == 0 && in isConvertingConstructor()
[all …]
DComment.cpp160 ParamVars = llvm::makeArrayRef(FD->param_begin(), FD->getNumParams()); in fill()
192 ParamVars = llvm::makeArrayRef(FD->param_begin(), FD->getNumParams()); in fill()
DDeclPrinter.cpp484 for (unsigned i = 0, e = D->getNumParams(); i != e; ++i) { in VisitFunctionDecl()
490 if (D->getNumParams()) POut << ", "; in VisitFunctionDecl()
494 for (unsigned i = 0, e = D->getNumParams(); i != e; ++i) { in VisitFunctionDecl()
632 if (!D->hasPrototype() && D->getNumParams()) { in VisitFunctionDecl()
638 for (unsigned i = 0, e = D->getNumParams(); i != e; ++i) { in VisitFunctionDecl()
/external/llvm/lib/IR/
DMangler.cpp164 (!FT->isVarArg() || FT->getNumParams() == 0 || in getNameWithPrefix()
165 (FT->getNumParams() == 1 && MSFunc->hasStructRetAttr()))) in getNameWithPrefix()
DFunction.cpp260 if (Ty->getNumParams()) in Function()
287 for (unsigned i = 0, e = FT->getNumParams(); i != e; ++i) { in BuildLazyArguments()
299 return getFunctionType()->getNumParams(); in arg_size()
302 return getFunctionType()->getNumParams() == 0; in arg_empty()
483 for (size_t i = 0; i < FT->getNumParams(); i++) in getMangledTypeStr()
DVerifier.cpp1380 else if (Idx-1 < FT->getNumParams()) in VerifyFunctionAttrs()
1413 Assert(Idx == FT->getNumParams(), "inalloca isn't on the last parameter!", in VerifyFunctionAttrs()
1593 const int NumParams = (int)TargetFuncType->getNumParams(); in VerifyStatepoint()
1707 Assert(FT->getNumParams() == NumArgs, in visitFunction()
1719 Assert(VerifyAttributeCount(Attrs, FT->getNumParams()), in visitFunction()
2312 Assert(CS.arg_size() >= FTy->getNumParams(), in VerifyCallSite()
2315 Assert(CS.arg_size() == FTy->getNumParams(), in VerifyCallSite()
2319 for (unsigned i = 0, e = FTy->getNumParams(); i != e; ++i) in VerifyCallSite()
2336 Value *InAllocaArg = CS.getArgument(FTy->getNumParams() - 1); in VerifyCallSite()
2347 for (unsigned Idx = 1; Idx < 1 + FTy->getNumParams(); ++Idx) { in VerifyCallSite()
[all …]
/external/llvm/lib/ExecutionEngine/MCJIT/
DMCJIT.cpp487 assert((FTy->getNumParams() == ArgValues.size() || in runFunction()
488 (FTy->isVarArg() && FTy->getNumParams() <= ArgValues.size())) && in runFunction()
490 assert(FTy->getNumParams() == ArgValues.size() && in runFunction()
525 if (FTy->getNumParams() == 1 && in runFunction()
/external/clang/include/clang/Sema/
DOverload.h682 unsigned getNumParams() const { in getNumParams() function
687 return STy->getAs<FunctionProtoType>()->getNumParams(); in getNumParams()
690 return Function->getNumParams(); in getNumParams()
/external/clang/lib/ARCMigrate/
DTransUnbridgedCasts.cpp157 FD->getNumParams() == 1 && in transformNonObjCToObjCCast()
422 if (FD->getName() == "CFRetain" && FD->getNumParams() == 1 && in isPassedToCFRetain()
441 if (i < callE->getNumArgs() && i < FD->getNumParams()) { in isPassedToCParamWithKnownOwnership()
/external/llvm/lib/ExecutionEngine/Interpreter/
DInterpreter.cpp88 const size_t ArgCount = F->getFunctionType()->getNumParams(); in runFunction()
/external/clang/lib/CodeGen/
DCGExprCXX.cpp66 FPT->getNumParams() == 0 && in commonEmitCXXMemberOrOperatorCall()
1185 assert(FPT->getNumParams() == NumPlacementArgs + 1 || in Emit()
1186 (FPT->getNumParams() == 2 && NumPlacementArgs == 0)); in Emit()
1195 if (FPT->getNumParams() == NumPlacementArgs + 2) in Emit()
1240 assert(FPT->getNumParams() == NumPlacementArgs + 1 || in Emit()
1241 (FPT->getNumParams() == 2 && NumPlacementArgs == 0)); in Emit()
1250 if (FPT->getNumParams() == NumPlacementArgs + 2) { in Emit()
1492 if (DeleteFTy->getNumParams() == 2) { in EmitDeleteCall()
1610 assert(DeleteFTy->getNumParams() == 1 || DeleteFTy->getNumParams() == 2); in Emit()
1621 if (DeleteFTy->getNumParams() == 2) { in Emit()
DCGCall.cpp111 prefix.reserve(prefix.size() + FPT->getNumParams()); in appendParameterTypes()
113 assert(FD->getNumParams() == FPT->getNumParams()); in appendParameterTypes()
114 for (unsigned I = 0, E = FPT->getNumParams(); I != E; ++I) { in appendParameterTypes()
418 required = RequiredArgs(proto->getNumParams() + numExtraRequiredArgs); in arrangeFreeFunctionLikeCall()
856 if (IRCallArgPos < IRFuncTy->getNumParams() && in ExpandTypeToArgs()
2811 auto PVD = ParmNum < FD->getNumParams() ? FD->getParamDecl(ParmNum) : nullptr; in EmitNonNullArgCheck()
2837 if (CalleeDecl == nullptr || I >= CalleeDecl->getNumParams()) in EmitCallArgs()
3301 (FirstIRArg < IRFuncTy->getNumParams() in EmitCall()
3345 if (FirstIRArg < IRFuncTy->getNumParams() && in EmitCall()
3427 IRFuncTy->getParamType(IRFuncTy->getNumParams() - 1); in EmitCall()
[all …]
/external/llvm/lib/Transforms/InstCombine/
DInstCombineCalls.cpp2026 int ix = FTy->getNumParams(); in visitCallSite()
2029 for (CallSite::arg_iterator I = CS.arg_begin() + FTy->getNumParams(), in visitCallSite()
2117 unsigned NumCommonArgs = std::min(FT->getNumParams(), NumActualArgs); in transformConstExprCastCall()
2164 if (FT->getNumParams() < NumActualArgs && !FT->isVarArg()) in transformConstExprCastCall()
2179 FT->getNumParams() != in transformConstExprCastCall()
2180 cast<FunctionType>(APTy->getElementType())->getNumParams()) in transformConstExprCastCall()
2184 if (FT->getNumParams() < NumActualArgs && FT->isVarArg() && in transformConstExprCastCall()
2191 if (Index <= FT->getNumParams()) in transformConstExprCastCall()
2239 for (unsigned i = NumCommonArgs; i != FT->getNumParams(); ++i) in transformConstExprCastCall()
2243 if (FT->getNumParams() < NumActualArgs) { in transformConstExprCastCall()
[all …]
/external/clang/utils/TableGen/
DNeonEmitter.cpp388 unsigned getNumParams() const { return Proto.size() - 1; } in getNumParams() function in __anon985e31310111::Intrinsic
1025 for (unsigned I = 0; I < getNumParams(); ++I) { in getBuiltinTypeStr()
1153 for (unsigned I = 0; I < getNumParams(); ++I) { in emitPrototype()
1222 for (unsigned I = 0; I < getNumParams(); ++I) { in emitArgumentReversal()
1254 for (unsigned I = 0; I < getNumParams(); ++I) { in emitShadowedArgs()
1318 for (unsigned I = 0; I < getNumParams(); ++I) { in emitBodyAsBuiltinCall()
1880 for (unsigned A = 0; A < I.getNumParams(); ++A) { in getIntrinsic()
1887 if (I.getNumParams() != Types.size()) in getIntrinsic()
2037 for (unsigned I = 0; I < Def->getNumParams(); ++I) { in genOverloadTypeCheckCode()
2152 unsigned Idx = Def->getNumParams(); in genIntrinsicRangeCheckCode()
/external/clang/include/clang/AST/
DDecl.h1953 unsigned param_size() const { return getNumParams(); } in param_size()
1978 unsigned getNumParams() const;
1981 assert(i < getNumParams() && "Illegal param #"); in getParamDecl()
1985 assert(i < getNumParams() && "Illegal param #"); in getParamDecl()
1995 return llvm::makeArrayRef(ParamInfo, getNumParams()); in parameters()
3522 unsigned param_size() const { return getNumParams(); } in param_size()
3551 unsigned getNumParams() const { return NumParams; } in getNumParams() function
3553 assert(i < getNumParams() && "Illegal param #"); in getParamDecl()
3557 assert(i < getNumParams() && "Illegal param #"); in getParamDecl()
3667 unsigned getNumParams() const { return NumParams; } in getNumParams() function
DTypeLoc.h1293 return llvm::makeArrayRef(getParmArray(), getNumParams()); in getParams()
1301 unsigned getNumParams() const { in getNumParams() function
1304 return cast<FunctionProtoType>(getTypePtr())->getNumParams(); in getNumParams()
1322 for (unsigned i = 0, e = getNumParams(); i != e; ++i) in initializeLocal()
1329 return getNumParams() * sizeof(ParmVarDecl *); in getExtraLocalDataSize()
/external/llvm/include/llvm/CodeGen/
DFastISel.h109 NumFixedArgs = FuncTy->getNumParams(); in setCallee()
133 NumFixedArgs = (FixedArgs == ~0U) ? FuncTy->getNumParams() : FixedArgs;
/external/clang/lib/StaticAnalyzer/Core/
DIssueHash.cpp42 for (int i = 0, paramsCount = Target->getNumParams(); i < paramsCount; ++i) { in GetSignature()
/external/llvm/lib/Analysis/
DMemoryLocation.cpp100 if (!MemsetType->isVarArg() && MemsetType->getNumParams() == 3 && in isMemsetPattern16()

12345