Home
last modified time | relevance | path

Searched refs:NumParams (Results 1 – 25 of 51) sorted by relevance

123

/external/swiftshader/third_party/llvm-7.0/llvm/lib/Analysis/
DTargetLibraryInfo.cpp613 unsigned NumParams = FTy.getNumParams(); in isValidProtoForLibFunc() local
617 return (NumParams == 1 && FTy.getParamType(0)->isPointerTy() && in isValidProtoForLibFunc()
622 return (NumParams == 2 && FTy.getReturnType()->isPointerTy() && in isValidProtoForLibFunc()
633 return ((NumParams == 2 || NumParams == 3) && in isValidProtoForLibFunc()
637 return (NumParams == 2 && FTy.getReturnType()->isPointerTy() && in isValidProtoForLibFunc()
642 return (NumParams == 3 && FTy.getReturnType()->isPointerTy() && in isValidProtoForLibFunc()
649 --NumParams; in isValidProtoForLibFunc()
650 if (!IsSizeTTy(FTy.getParamType(NumParams))) in isValidProtoForLibFunc()
655 return (NumParams == 2 && FTy.getReturnType() == FTy.getParamType(0) && in isValidProtoForLibFunc()
661 --NumParams; in isValidProtoForLibFunc()
[all …]
DMemoryBuiltins.cpp66 unsigned NumParams; member
162 FTy->getNumParams() == FnData->NumParams && in getAllocationDataForFunction()
209 Result.NumParams = Callee->getNumOperands(); in getAllocationSize()
/external/llvm/lib/Analysis/
DTargetLibraryInfo.cpp499 unsigned NumParams = FTy.getNumParams(); in isValidProtoForLibFunc() local
503 return (NumParams == 1 && FTy.getParamType(0)->isPointerTy() && in isValidProtoForLibFunc()
508 return (NumParams == 2 && FTy.getReturnType()->isPointerTy() && in isValidProtoForLibFunc()
519 return ((NumParams == 2 || NumParams == 3) && in isValidProtoForLibFunc()
523 return (NumParams == 2 && FTy.getReturnType()->isPointerTy() && in isValidProtoForLibFunc()
528 return (NumParams == 3 && FTy.getReturnType()->isPointerTy() && in isValidProtoForLibFunc()
535 --NumParams; in isValidProtoForLibFunc()
536 if (!IsSizeTTy(FTy.getParamType(NumParams))) in isValidProtoForLibFunc()
541 return (NumParams == 2 && FTy.getReturnType() == FTy.getParamType(0) && in isValidProtoForLibFunc()
547 --NumParams; in isValidProtoForLibFunc()
[all …]
DMemoryBuiltins.cpp46 unsigned NumParams; member
125 Result.NumParams = Callee->getNumOperands(); in getAllocationData()
156 FTy->getNumParams() == FnData->NumParams && in getAllocationData()
/external/clang/test/CXX/expr/expr.prim/expr.prim.lambda/
Dp5-generic-lambda-1y.cpp20 auto NumParams = [](auto Self, auto h, auto ... rest) -> unsigned { in __anond7aad6e00202() variable
26 overload<decltype(Base), decltype(NumParams)> O(Base, NumParams);
38 auto NumParams = [](auto Self, auto h, auto ... rest) { in __anond7aad6e00402() variable
44 overload<decltype(Base), decltype(NumParams)> O(Base, NumParams);
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Transforms/Utils/
DCallPromotionUtils.cpp336 unsigned NumParams = Callee->getFunctionType()->getNumParams(); in isLegalToPromote() local
340 if (CS.arg_size() != NumParams && !Callee->isVarArg()) { in isLegalToPromote()
349 for (unsigned I = 0; I < NumParams; ++I) { in isLegalToPromote()
/external/clang/lib/Sema/
DDeclSpec.cpp156 unsigned NumParams, in getFunction() argument
196 I.Fun.NumParams = NumParams; in getFunction()
218 if (NumParams) { in getFunction()
224 NumParams <= llvm::array_lengthof(TheDeclarator.InlineParams)) { in getFunction()
229 I.Fun.Params = new DeclaratorChunk::ParamInfo[NumParams]; in getFunction()
232 memcpy(I.Fun.Params, Params, sizeof(Params[0]) * NumParams); in getFunction()
DSemaTemplateDeduction.cpp107 const TemplateArgument *Params, unsigned NumParams,
765 const QualType *Params, unsigned NumParams, in DeduceTemplateArguments() argument
772 if (NumParams != NumArgs && in DeduceTemplateArguments()
773 !(NumParams && isa<PackExpansionType>(Params[NumParams - 1])) && in DeduceTemplateArguments()
783 for (; ParamIdx != NumParams; ++ParamIdx) { in DeduceTemplateArguments()
817 if (ParamIdx + 1 < NumParams) in DeduceTemplateArguments()
1837 const TemplateArgument *Params, unsigned NumParams, in DeduceTemplateArguments() argument
1846 if (hasPackExpansionBeforeEnd(Params, NumParams)) in DeduceTemplateArguments()
1854 for (; hasTemplateArgumentForDeduction(Params, ParamIdx, NumParams); in DeduceTemplateArguments()
3331 unsigned NumParams = Function->getNumParams(); in DeduceTemplateArguments() local
[all …]
DSemaLambda.cpp477 for (unsigned p = 0, NumParams = CallOperator->getNumParams(); in addLambdaParameters() local
478 p < NumParams; ++p) { in addLambdaParameters()
868 Params.reserve(FTI.NumParams); in ActOnStartOfLambdaDefinition()
869 for (unsigned i = 0, e = FTI.NumParams; i != e; ++i) in ActOnStartOfLambdaDefinition()
DSemaDeclAttr.cpp278 unsigned NumParams = in checkFunctionOrMethodParameterIndex() local
291 if (Idx < 1 || (!IV && Idx > NumParams)) { in checkFunctionOrMethodParameterIndex()
570 unsigned int NumParams = FD->getNumParams(); in checkAttrArgsAreCapabilityObjs() local
574 if(!ArgValue.isStrictlyPositive() || ParamIdxFromOne > NumParams) { in checkAttrArgsAreCapabilityObjs()
576 << Attr.getName() << Idx + 1 << NumParams; in checkAttrArgsAreCapabilityObjs()
4761 llvm::APSInt NumParams(32); in handleMSP430InterruptAttr() local
4762 if (!NumParamsExpr->isIntegerConstantExpr(NumParams, S.Context)) { in handleMSP430InterruptAttr()
4769 unsigned Num = NumParams.getLimitedValue(255); in handleMSP430InterruptAttr()
4772 << Attr.getName() << (int)NumParams.getSExtValue() in handleMSP430InterruptAttr()
4868 unsigned NumParams = getFunctionOrMethodNumParams(D); in handleAnyX86InterruptAttr() local
[all …]
DSemaDeclCXX.cpp393 for (unsigned argIdx = 0, e = chunk.Fun.NumParams; argIdx != e; in CheckExtraCXXDefaultArguments()
421 for (unsigned NumParams = FD->getNumParams(); NumParams > 0; --NumParams) { in functionDeclHasDefaultArgument() local
422 const ParmVarDecl *PVD = FD->getParamDecl(NumParams-1); in functionDeclHasDefaultArgument()
496 for (unsigned p = 0, NumParams = PrevForDefaultArgs in MergeCXXFunctionDecl() local
499 p < NumParams; ++p) { in MergeCXXFunctionDecl()
713 unsigned NumParams = FD->getNumParams(); in CheckCXXDefaultArguments() local
717 for (p = 0; p < NumParams; ++p) { in CheckCXXDefaultArguments()
730 for (; p < NumParams; ++p) { in CheckCXXDefaultArguments()
9590 unsigned NumParams = CD->getNumParams(); in getDefaultArgExprsForConstructors() local
9591 if (ExpectedCallingConv == ActualCallingConv && NumParams == 0) in getDefaultArgExprsForConstructors()
[all …]
DSemaType.cpp3033 if (!RT->isRecordType() && FTI.NumParams > 1) in warnAboutAmbiguousFunction()
3037 if (RT->isReferenceType() && FTI.NumParams != 1) in warnAboutAmbiguousFunction()
3057 FTI.NumParams ? diag::warn_parens_disambiguated_as_function_declaration in warnAboutAmbiguousFunction()
3080 if (FTI.NumParams > 0) { in warnAboutAmbiguousFunction()
4159 if (!FTI.NumParams && !FTI.isVariadic && !LangOpts.CPlusPlus) { in GetFullTypeForDeclarator()
4166 if (!FTI.NumParams && FTI.isVariadic && !LangOpts.CPlusPlus) { in GetFullTypeForDeclarator()
4180 if (FTI.NumParams && FTI.Params[0].Param == nullptr) { in GetFullTypeForDeclarator()
4203 ParamTys.reserve(FTI.NumParams); in GetFullTypeForDeclarator()
4206 ExtParameterInfos(FTI.NumParams); in GetFullTypeForDeclarator()
4209 for (unsigned i = 0, e = FTI.NumParams; i != e; ++i) { in GetFullTypeForDeclarator()
[all …]
/external/clang/include/clang/AST/
DDecl.h3506 unsigned NumParams; variable
3522 ParamInfo(nullptr), NumParams(0), Body(nullptr), in BlockDecl()
3560 unsigned getNumParams() const { return NumParams; } in getNumParams()
3631 return NumParams; in numTrailingObjects()
3636 unsigned NumParams;
3642 explicit CapturedDecl(DeclContext *DC, unsigned NumParams);
3654 unsigned NumParams);
3656 unsigned NumParams);
3664 unsigned getNumParams() const { return NumParams; } in getNumParams()
3667 assert(i < NumParams); in getParam()
[all …]
DDeclObjC.h174 unsigned NumParams; variable
199 return reinterpret_cast<SourceLocation*>(getParams() + NumParams); in getStoredSelLocs()
202 return reinterpret_cast<const SourceLocation*>(getParams() + NumParams); in getStoredSelLocs()
242 NumParams(0), DeclEndLoc(endLoc), Body(), SelfDecl(nullptr), in NamedDecl()
348 unsigned param_size() const { return NumParams; } in param_size()
358 return param_const_iterator(getParams() + NumParams); in param_end()
361 param_iterator param_end() { return param_iterator(getParams() + NumParams); } in param_end()
373 NumParams); in parameters()
627 unsigned NumParams; variable
648 unsigned size() const { return NumParams; } in size()
DDeclTemplate.h60 unsigned NumParams : 31; variable
68 return NumParams; in numTrailingObjects()
89 iterator end() { return begin() + NumParams; } in end()
90 const_iterator end() const { return begin() + NumParams; } in end()
92 unsigned size() const { return NumParams; } in size()
2151 unsigned NumParams;
2165 : Decl(Decl::FriendTemplate, DC, Loc), NumParams(Params.size()),
2170 NumParams(0),
2202 assert(i <= NumParams);
2207 return NumParams;
/external/clang/include/clang/Sema/
DSemaInternal.h31 return FTI.NumParams == 1 && !FTI.isVariadic && in FTIHasSingleVoidParameter()
39 return FTI.NumParams && !FTIHasSingleVoidParameter(FTI); in FTIHasNonVoidParameters()
DParsedTemplate.h218 unsigned NumParams);
DDeclSpec.h1247 unsigned NumParams; member
1311 for (unsigned I = 0; I < NumParams; ++I) { in freeParams()
1319 NumParams = 0; in freeParams()
1334 bool isKNRPrototype() const { return !hasPrototype && NumParams != 0; } in isKNRPrototype()
1529 ParamInfo *Params, unsigned NumParams,
/external/clang/lib/AST/
DType.cpp2662 NumParams(params.size()), in FunctionProtoType()
2667 assert(NumParams == params.size() && "function has too many parameters"); in FunctionProtoType()
2674 for (unsigned i = 0; i != NumParams; ++i) { in FunctionProtoType()
2688 QualType *exnSlot = argSlot + NumParams; in FunctionProtoType()
2703 Expr **noexSlot = reinterpret_cast<Expr **>(argSlot + NumParams); in FunctionProtoType()
2718 reinterpret_cast<FunctionDecl **>(argSlot + NumParams); in FunctionProtoType()
2727 reinterpret_cast<FunctionDecl **>(argSlot + NumParams); in FunctionProtoType()
2734 for (unsigned i = 0; i != NumParams; ++i) in FunctionProtoType()
2809 const QualType *ArgTys, unsigned NumParams, in Profile() argument
2831 for (unsigned i = 0; i != NumParams; ++i) in Profile()
[all …]
DDecl.cpp1455 unsigned NumParams = FD->getNumParams(); in printQualifiedName() local
1456 for (unsigned i = 0; i < NumParams; ++i) { in printQualifiedName()
1463 if (NumParams > 0) in printQualifiedName()
3881 NumParams = NewParamInfo.size(); in setParams()
4057 CapturedDecl::CapturedDecl(DeclContext *DC, unsigned NumParams) in CapturedDecl() argument
4059 NumParams(NumParams), ContextParam(0), BodyAndNothrow(nullptr, false) {} in CapturedDecl()
4062 unsigned NumParams) { in Create() argument
4063 return new (C, DC, additionalSizeToAlloc<ImplicitParamDecl *>(NumParams)) in Create()
4064 CapturedDecl(DC, NumParams); in Create()
4068 unsigned NumParams) { in CreateDeserialized() argument
[all …]
DExprCXX.cpp1344 unsigned NumParams, in FunctionParmPackExpr() argument
1348 ParamPack(ParamPack), NameLoc(NameLoc), NumParameters(NumParams) { in FunctionParmPackExpr()
1350 std::uninitialized_copy(Params, Params + NumParams, in FunctionParmPackExpr()
1364 unsigned NumParams) { in CreateEmpty() argument
1365 return new (Context.Allocate(totalSizeToAlloc<ParmVarDecl *>(NumParams))) in CreateEmpty()
DDeclTemplate.cpp36 NumParams(Params.size()), ContainsUnexpandedParameterPack(false) { in TemplateParameterList()
37 assert(this->NumParams == NumParams && "Too many template parameters"); in TemplateParameterList()
38 for (unsigned Idx = 0; Idx < NumParams; ++Idx) { in TemplateParameterList()
/external/clang/lib/Serialization/
DASTReaderDecl.cpp891 unsigned NumParams = Record[Idx++]; in VisitFunctionDecl() local
893 Params.reserve(NumParams); in VisitFunctionDecl()
894 for (unsigned I = 0; I != NumParams; ++I) in VisitFunctionDecl()
928 unsigned NumParams = Record[Idx++]; in VisitObjCMethodDecl() local
930 Params.reserve(NumParams); in VisitObjCMethodDecl()
931 for (unsigned I = 0; I != NumParams; ++I) in VisitObjCMethodDecl()
1308 unsigned NumParams = Record[Idx++]; in VisitBlockDecl() local
1310 Params.reserve(NumParams); in VisitBlockDecl()
1311 for (unsigned I = 0; I != NumParams; ++I) in VisitBlockDecl()
1340 for (unsigned I = 0; I < CD->NumParams; ++I) { in VisitCapturedDecl()
[all …]
/external/swiftshader/third_party/LLVM/lib/VMCore/
DVerifier.cpp1891 unsigned NumParams, ...) { in VerifyIntrinsicPrototype() argument
1893 va_start(VA, NumParams); in VerifyIntrinsicPrototype()
1901 if (FTy->getNumParams() + FTy->isVarArg() != NumParams) { in VerifyIntrinsicPrototype()
1929 for (unsigned ArgNo = 0; ArgNo != NumParams; ++ArgNo) { in VerifyIntrinsicPrototype()
/external/swiftshader/third_party/subzero/src/
DPNaClTranslator.cpp2662 Ice::SizeT NumParams = Values.size() - ParamsStartIndex; in ProcessRecord() local
2663 if (NumParams != Signature->getNumArgs()) { in ProcessRecord()
2666 StrBuf << "Call to " << printName(Fcn) << " has " << NumParams in ProcessRecord()
2676 if (IntrinsicInfo && IntrinsicInfo->getNumArgs() != NumParams) { in ProcessRecord()
2679 StrBuf << "Call to " << printName(Fcn) << " has " << NumParams in ProcessRecord()

123