/external/clang/lib/StaticAnalyzer/Checkers/ |
D | CheckSecuritySyntaxOnly.cpp | 310 const FunctionProtoType *FPT = FD->getType()->getAs<FunctionProtoType>(); in checkCall_gets() local 311 if (!FPT) in checkCall_gets() 315 if (FPT->getNumParams() != 1) in checkCall_gets() 319 const PointerType *PT = FPT->getParamType(0)->getAs<PointerType>(); in checkCall_gets() 346 const FunctionProtoType *FPT = FD->getType()->getAs<FunctionProtoType>(); in checkCall_getpw() local 347 if (!FPT) in checkCall_getpw() 351 if (FPT->getNumParams() != 2) in checkCall_getpw() 355 if (!FPT->getParamType(0)->isIntegralOrUnscopedEnumerationType()) in checkCall_getpw() 359 const PointerType *PT = FPT->getParamType(1)->getAs<PointerType>(); in checkCall_getpw() 390 const FunctionProtoType *FPT = FD->getType()->getAs<FunctionProtoType>(); in checkCall_mktemp() local [all …]
|
/external/compiler-rt/test/profile/Inputs/ |
D | instrprof-value-prof-evict.c | 47 typedef void (*FPT)(void); typedef 51 FPT getCalleeFunc(int I) { return CalleeAddrs[I]; } in getCalleeFunc() 59 FPT FP = getCalleeFunc(Sequence[I]); \ in main()
|
D | instrprof-value-prof-real.c | 27 typedef void (*FPT)(void); typedef 29 FPT getFunc(int I) { return CalleeAddrs[I]; } in getFunc() 41 FPT Fp = getFunc(I);
|
/external/clang/lib/CodeGen/ |
D | CodeGenTypes.cpp | 229 if (const FunctionProtoType *FPT = dyn_cast<FunctionProtoType>(FT)) in isFuncTypeConvertible() local 230 for (unsigned i = 0, e = FPT->getNumParams(); i != e; i++) in isFuncTypeConvertible() 231 if (!isFuncParamTypeConvertible(FPT->getParamType(i))) in isFuncTypeConvertible() 323 if (const FunctionProtoType *FPT = dyn_cast<FunctionProtoType>(FT)) in ConvertFunctionType() local 324 for (unsigned i = 0, e = FPT->getNumParams(); i != e; i++) in ConvertFunctionType() 325 if (const RecordType *RT = FPT->getParamType(i)->getAs<RecordType>()) in ConvertFunctionType() 345 if (const FunctionProtoType *FPT = dyn_cast<FunctionProtoType>(FT)) { in ConvertFunctionType() local 347 CanQual<FunctionProtoType>::CreateUnsafe(QualType(FPT, 0)), FD); in ConvertFunctionType()
|
D | CGExprCXX.cpp | 56 const FunctionProtoType *FPT = MD->getType()->castAs<FunctionProtoType>(); in commonEmitCXXMemberOrOperatorCall() local 57 RequiredArgs required = RequiredArgs::forPrototypePlus(FPT, Args.size(), MD); in commonEmitCXXMemberOrOperatorCall() 63 CGF.EmitCallArgs(Args, FPT, drop_begin(CE->arguments(), ArgsToSkip), in commonEmitCXXMemberOrOperatorCall() 67 FPT->getNumParams() == 0 && in commonEmitCXXMemberOrOperatorCall() 77 const FunctionProtoType *FPT = MD->getType()->castAs<FunctionProtoType>(); in EmitCXXMemberOrOperatorCall() local 81 return EmitCall(CGM.getTypes().arrangeCXXMethodCall(Args, FPT, required), in EmitCXXMemberOrOperatorCall() 295 const FunctionProtoType *FPT = in EmitCXXMemberPointerCallExpr() local 328 RequiredArgs::forPrototypePlus(FPT, 1, /*FD=*/nullptr); in EmitCXXMemberPointerCallExpr() 331 EmitCallArgs(Args, FPT, E->arguments()); in EmitCXXMemberPointerCallExpr() 332 return EmitCall(CGM.getTypes().arrangeCXXMethodCall(Args, FPT, required), in EmitCXXMemberPointerCallExpr() [all …]
|
D | CGVTables.cpp | 148 const FunctionProtoType *FPT = MD->getType()->getAs<FunctionProtoType>(); in GenerateVarArgsThunk() local 149 QualType ResultType = FPT->getReturnType(); in GenerateVarArgsThunk() 217 const FunctionProtoType *FPT = MD->getType()->getAs<FunctionProtoType>(); in StartThunk() local 222 : FPT->getReturnType(); in StartThunk() 290 const FunctionProtoType *FPT = MD->getType()->getAs<FunctionProtoType>(); in EmitCallAndReturnForThunk() local 294 CallArgs, FPT, RequiredArgs::forPrototypePlus(FPT, 1, MD)); in EmitCallAndReturnForThunk() 314 : FPT->getReturnType(); in EmitCallAndReturnForThunk()
|
D | CGCXXABI.cpp | 83 const FunctionProtoType *FPT = in EmitLoadOfMemberFunctionPointer() local 88 CGM.getTypes().arrangeCXXMethodType(RD, FPT, /*FD=*/nullptr)); in EmitLoadOfMemberFunctionPointer()
|
D | CGCall.cpp | 107 CanQual<FunctionProtoType> FPT, in appendParameterTypes() argument 110 if (FPT->hasExtParameterInfos() || !paramInfos.empty()) { in appendParameterTypes() 112 auto protoParamInfos = FPT->getExtParameterInfos(); in appendParameterTypes() 120 prefix.append(FPT->param_type_begin(), FPT->param_type_end()); in appendParameterTypes() 127 prefix.reserve(prefix.size() + FPT->getNumParams()); in appendParameterTypes() 129 assert(FD->getNumParams() == FPT->getNumParams()); in appendParameterTypes() 130 for (unsigned I = 0, E = FPT->getNumParams(); I != E; ++I) { in appendParameterTypes() 131 prefix.push_back(FPT->getParamType(I)); in appendParameterTypes() 360 CanQual<FunctionProtoType> FPT = GetFormalType(D); in arrangeCXXConstructorCall() local 361 RequiredArgs Required = RequiredArgs::forPrototypePlus(FPT, 1 + ExtraArgs, D); in arrangeCXXConstructorCall() [all …]
|
D | CGDebugInfo.cpp | 915 else if (const FunctionProtoType *FPT = dyn_cast<FunctionProtoType>(Ty)) { in CreateType() local 916 for (unsigned i = 0, e = FPT->getNumParams(); i != e; ++i) in CreateType() 917 EltTys.push_back(getOrCreateType(FPT->getParamType(i), Unit)); in CreateType() 918 if (FPT->isVariadic()) in CreateType() 2162 const FunctionProtoType *FPT = in CreateType() local 2166 Ty->getClass(), FPT->getTypeQuals())), in CreateType() 2167 FPT, U), in CreateType() 2829 else if (auto *FPT = dyn_cast<FunctionProtoType>(FnType)) in getOrCreateFunctionType() local 2830 if (FPT->getNumParams() > 1) in getOrCreateFunctionType() 2831 SelfDeclTy = FPT->getParamType(0); in getOrCreateFunctionType() [all …]
|
D | CGClass.cpp | 2071 const FunctionProtoType *FPT = D->getType()->castAs<FunctionProtoType>(); in EmitCXXConstructorCall() local 2072 EmitCallArgs(Args, FPT, E->arguments(), E->getConstructor()); in EmitCXXConstructorCall() 2293 const FunctionProtoType *FPT = D->getType()->castAs<FunctionProtoType>(); in EmitSynthesizedCXXCopyCtorCall() local 2301 QualType QT = *(FPT->param_type_begin()); in EmitSynthesizedCXXCopyCtorCall() 2307 EmitCallArgs(Args, FPT, drop_begin(E->arguments(), 1), E->getConstructor(), in EmitSynthesizedCXXCopyCtorCall() 2909 const FunctionProtoType *FPT = in EmitForwardingCallToLambda() local 2911 QualType resultType = FPT->getReturnType(); in EmitForwardingCallToLambda()
|
D | MicrosoftCXXABI.cpp | 1244 const FunctionProtoType *FPT = CD->getType()->castAs<FunctionProtoType>(); in buildStructorSignature() local 1246 if (FPT->isVariadic()) in buildStructorSignature() 1380 const FunctionProtoType *FPT = MD->getType()->castAs<FunctionProtoType>(); in addImplicitStructorParams() local 1381 if (FPT->isVariadic()) in addImplicitStructorParams() 1466 const FunctionProtoType *FPT = D->getType()->castAs<FunctionProtoType>(); in addImplicitConstructorArgs() local 1474 if (FPT->isVariadic()) in addImplicitConstructorArgs() 2680 const FunctionProtoType *FPT = MD->getType()->castAs<FunctionProtoType>(); in EmitMemberFunctionPointer() local 2684 if (Types.isFuncTypeConvertible(FPT)) { in EmitMemberFunctionPointer() 3230 const FunctionProtoType *FPT = in EmitLoadOfMemberFunctionPointer() local 3234 CGM.getTypes().arrangeCXXMethodType(RD, FPT, /*FD=*/nullptr)); in EmitLoadOfMemberFunctionPointer() [all …]
|
D | ItaniumCXXABI.cpp | 525 const FunctionProtoType *FPT = in EmitLoadOfMemberFunctionPointer() local 531 CGM.getTypes().arrangeCXXMethodType(RD, FPT, /*FD=*/nullptr)); in EmitLoadOfMemberFunctionPointer() 821 const FunctionProtoType *FPT = MD->getType()->castAs<FunctionProtoType>(); in BuildMemberPointer() local 824 if (Types.isFuncTypeConvertible(FPT)) { in BuildMemberPointer()
|
/external/clang/lib/Sema/ |
D | SemaExceptionSpec.cpp | 147 Sema::ResolveExceptionSpec(SourceLocation Loc, const FunctionProtoType *FPT) { in ResolveExceptionSpec() argument 148 if (FPT->getExceptionSpecType() == EST_Unparsed) { in ResolveExceptionSpec() 153 if (!isUnresolvedExceptionSpec(FPT->getExceptionSpecType())) in ResolveExceptionSpec() 154 return FPT; in ResolveExceptionSpec() 156 FunctionDecl *SourceDecl = FPT->getExceptionSpecDecl(); in ResolveExceptionSpec()
|
D | SemaLambda.cpp | 367 const FunctionProtoType *FPT = MethodType->castAs<FunctionProtoType>(); in startLambdaDefinition() local 368 QualType Result = FPT->getReturnType(); in startLambdaDefinition() 371 MethodType = Context.getFunctionType(Result, FPT->getParamTypes(), in startLambdaDefinition() 372 FPT->getExtProtoInfo()); in startLambdaDefinition()
|
D | SemaDecl.cpp | 7873 const FunctionProtoType *FPT = in ActOnFunctionDeclarator() local 7876 SubstAutoType(FPT->getReturnType(), Context.DependentTy); in ActOnFunctionDeclarator() 7877 NewFD->setType(Context.getFunctionType(Result, FPT->getParamTypes(), in ActOnFunctionDeclarator() 7878 FPT->getExtProtoInfo())); in ActOnFunctionDeclarator() 7941 if (const FunctionProtoType *FPT = R->getAs<FunctionProtoType>()) { in ActOnFunctionDeclarator() local 7942 if (FPT->hasExceptionSpec()) { in ActOnFunctionDeclarator() 7956 if (!Context.hasSameType(FPT->getReturnType(), Context.BoolTy)) { in ActOnFunctionDeclarator() 7965 if (FPT->getNumParams() > 0 || FPT->isVariadic()) in ActOnFunctionDeclarator() 8074 const FunctionProtoType *FPT = R->getAs<FunctionProtoType>(); in ActOnFunctionDeclarator() local 8077 getLangOpts().CPlusPlus11 && FPT && !FPT->hasExceptionSpec()) in ActOnFunctionDeclarator() [all …]
|
D | Sema.cpp | 1379 if (const FunctionProtoType *FPT = in tryExprAsCall() local 1381 if (FPT->getNumParams() == 0) in tryExprAsCall()
|
D | SemaTemplate.cpp | 6892 const FunctionProtoType *FPT = FT->castAs<FunctionProtoType>(); in CheckFunctionTemplateSpecialization() local 6893 FunctionProtoType::ExtProtoInfo EPI = FPT->getExtProtoInfo(); in CheckFunctionTemplateSpecialization() 6895 FT = Context.getFunctionType(FPT->getReturnType(), in CheckFunctionTemplateSpecialization() 6896 FPT->getParamTypes(), EPI); in CheckFunctionTemplateSpecialization() 8016 if (auto *FPT = R->getAs<FunctionProtoType>()) in ActOnExplicitInstantiation() local 8017 if (FPT->hasExceptionSpec()) { in ActOnExplicitInstantiation() 8026 Specialization->getLocation(), FPT, D.getLocStart()); in ActOnExplicitInstantiation()
|
D | SemaType.cpp | 1926 const FunctionProtoType *FPT = T->getAs<FunctionProtoType>(); in checkQualifiedFunction() local 1927 if (!FPT || (FPT->getTypeQuals() == 0 && FPT->getRefQualifier() == RQ_None)) in checkQualifiedFunction() 1932 << getFunctionQualifiersAsString(FPT); in checkQualifiedFunction()
|
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Transforms/InstCombine/ |
D | InstCombineCasts.cpp | 1494 Instruction *InstCombiner::visitFPTrunc(FPTruncInst &FPT) { in visitFPTrunc() argument 1495 if (Instruction *I = commonCastTransforms(FPT)) in visitFPTrunc() 1505 Type *Ty = FPT.getType(); in visitFPTrunc() 1506 BinaryOperator *OpI = dyn_cast<BinaryOperator>(FPT.getOperand(0)); in visitFPTrunc() 1598 if (auto *II = dyn_cast<IntrinsicInst>(FPT.getOperand(0))) { in visitFPTrunc() 1624 Function *Overload = Intrinsic::getDeclaration(FPT.getModule(), in visitFPTrunc() 1636 if (Instruction *I = shrinkInsertElt(FPT, Builder)) in visitFPTrunc()
|
/external/clang/lib/AST/ |
D | Decl.cpp | 2594 const auto *FPT = getType()->castAs<FunctionProtoType>(); in isReplaceableGlobalAllocationFunction() local 2595 if (FPT->getNumParams() == 0 || FPT->getNumParams() > 2 || FPT->isVariadic()) in isReplaceableGlobalAllocationFunction() 2600 if (FPT->getNumParams() == 1) in isReplaceableGlobalAllocationFunction() 2605 QualType Ty = FPT->getParamType(1); in isReplaceableGlobalAllocationFunction() 2743 const auto *FPT = getType()->getAs<FunctionProtoType>(); in getNumParams() local 2744 return FPT ? FPT->getNumParams() : 0; in getNumParams()
|
D | ASTDiagnostic.cpp | 83 const FunctionProtoType *FPT = dyn_cast<FunctionProtoType>(FT); in Desugar() local 84 if (FPT) { in Desugar() 85 for (QualType SugarPT : FPT->param_types()) { in Desugar() 98 QT = FPT ? Context.getFunctionType(RT, Args, FPT->getExtProtoInfo()) in Desugar()
|
D | Type.cpp | 3352 const FunctionProtoType *FPT = cast<FunctionProtoType>(T); in computeCachedProperties() local 3353 CachedProperties result = Cache::get(FPT->getReturnType()); in computeCachedProperties() 3354 for (const auto &ai : FPT->param_types()) in computeCachedProperties() 3438 const FunctionProtoType *FPT = cast<FunctionProtoType>(T); in computeLinkageInfo() local 3439 LinkageInfo LV = computeLinkageInfo(FPT->getReturnType()); in computeLinkageInfo() 3440 for (const auto &ai : FPT->param_types()) in computeLinkageInfo()
|
D | ASTContext.cpp | 2234 const FunctionProtoType *FPT = cast<FunctionProtoType>(T); in adjustFunctionType() local 2235 FunctionProtoType::ExtProtoInfo EPI = FPT->getExtProtoInfo(); in adjustFunctionType() 2237 Result = getFunctionType(FPT->getReturnType(), FPT->getParamTypes(), EPI); in adjustFunctionType() 2247 const FunctionProtoType *FPT = FD->getType()->castAs<FunctionProtoType>(); in adjustDeducedFunctionResultType() local 2248 FunctionProtoType::ExtProtoInfo EPI = FPT->getExtProtoInfo(); in adjustDeducedFunctionResultType() 2249 FD->setType(getFunctionType(ResultType, FPT->getParamTypes(), EPI)); in adjustDeducedFunctionResultType() 5804 if (const FunctionProtoType *FPT = dyn_cast<FunctionProtoType>(FT)) { in getObjCEncodingForTypeImpl() local 5805 for (const auto &I : FPT->param_types()) in getObjCEncodingForTypeImpl() 7977 if (const FunctionProtoType *FPT = cast<FunctionProtoType>(F)) { in mergeObjCGCQualifiers() local 7978 FunctionProtoType::ExtProtoInfo EPI = FPT->getExtProtoInfo(); in mergeObjCGCQualifiers() [all …]
|
D | ASTDumper.cpp | 1139 if (const FunctionProtoType *FPT = D->getType()->getAs<FunctionProtoType>()) { in VisitFunctionDecl() local 1140 FunctionProtoType::ExtProtoInfo EPI = FPT->getExtProtoInfo(); in VisitFunctionDecl()
|
/external/clang/lib/Serialization/ |
D | ASTReaderDecl.cpp | 3077 auto *FPT = FD->getType()->getAs<FunctionProtoType>(); in attachPreviousDeclImpl() local 3079 if (FPT && PrevFPT) { in attachPreviousDeclImpl() 3080 bool IsUnresolved = isUnresolvedExceptionSpec(FPT->getExceptionSpecType()); in attachPreviousDeclImpl() 3877 auto *FPT = FD->getType()->castAs<FunctionProtoType>(); in UpdateDecl() local 3880 if (isUnresolvedExceptionSpec(FPT->getExceptionSpecType())) { in UpdateDecl() 3882 FPT->getReturnType(), FPT->getParamTypes(), in UpdateDecl() 3883 FPT->getExtProtoInfo().withExceptionSpec(ESI))); in UpdateDecl()
|