Home
last modified time | relevance | path

Searched refs:FPT (Results 1 – 25 of 50) sorted by relevance

12

/llvm-project-15.0.7/clang/lib/StaticAnalyzer/Checkers/
H A DCheckSecuritySyntaxOnly.cpp354 if (!FPT) in checkCall_bcmp()
358 if (FPT->getNumParams() != 3) in checkCall_bcmp()
396 if (!FPT) in checkCall_bcopy()
400 if (FPT->getNumParams() != 3) in checkCall_bcopy()
439 if (!FPT) in checkCall_bzero()
443 if (FPT->getNumParams() != 2) in checkCall_bzero()
481 if (!FPT) in checkCall_gets()
485 if (FPT->getNumParams() != 1) in checkCall_gets()
517 if (!FPT) in checkCall_getpw()
561 if(!FPT) in checkCall_mktemp()
[all …]
/llvm-project-15.0.7/compiler-rt/test/profile/
H A Dinstrprof-value-prof-reset.c25 typedef void (*FPT)(void); typedef
29 FPT getCalleeFunc(int I) { return CalleeAddrs[I]; } in getCalleeFunc()
44 FPT FP = getCalleeFunc(I); in main()
/llvm-project-15.0.7/compiler-rt/test/profile/Inputs/
H A Dinstrprof-value-prof-evict.c47 typedef void (*FPT)(void); typedef
51 FPT getCalleeFunc(int I) { return CalleeAddrs[I]; } in getCalleeFunc()
59 FPT FP = getCalleeFunc(Sequence[I]); \ in main()
H A Dinstrprof-value-prof-real.c27 typedef void (*FPT)(void); typedef
29 FPT getFunc(int I) { return CalleeAddrs[I]; } in getFunc()
41 FPT Fp = getFunc(I);
/llvm-project-15.0.7/clang-tools-extra/clang-tidy/misc/
H A DNewDeleteOverloadsCheck.cpp55 const auto *FPT = Node.getType()->castAs<FunctionProtoType>(); in AST_MATCHER() local
58 Ctx.hasSameType(FPT->getParamType(1), Ctx.getSizeType())) in AST_MATCHER()
/llvm-project-15.0.7/clang/lib/CodeGen/
H A DCodeGenTypes.cpp253 if (const FunctionProtoType *FPT = dyn_cast<FunctionProtoType>(FT)) in isFuncTypeConvertible() local
254 for (unsigned i = 0, e = FPT->getNumParams(); i != e; i++) in isFuncTypeConvertible()
255 if (!isFuncParamTypeConvertible(FPT->getParamType(i))) in isFuncTypeConvertible()
348 if (const FunctionProtoType *FPT = dyn_cast<FunctionProtoType>(FT)) in ConvertFunctionTypeInternal() local
349 for (unsigned i = 0, e = FPT->getNumParams(); i != e; i++) in ConvertFunctionTypeInternal()
350 if (const RecordType *RT = FPT->getParamType(i)->getAs<RecordType>()) in ConvertFunctionTypeInternal()
370 if (const FunctionProtoType *FPT = dyn_cast<FunctionProtoType>(FT)) { in ConvertFunctionTypeInternal() local
372 CanQual<FunctionProtoType>::CreateUnsafe(QualType(FPT, 0))); in ConvertFunctionTypeInternal()
H A DCGExprCXX.cpp55 const FunctionProtoType *FPT = MD->getType()->castAs<FunctionProtoType>(); in commonEmitCXXMemberOrOperatorCall() local
56 RequiredArgs required = RequiredArgs::forPrototypePlus(FPT, Args.size()); in commonEmitCXXMemberOrOperatorCall()
68 CGF.EmitCallArgs(Args, FPT, drop_begin(CE->arguments(), ArgsToSkip), in commonEmitCXXMemberOrOperatorCall()
72 FPT->getNumParams() == 0 && in commonEmitCXXMemberOrOperatorCall()
88 Args, FPT, CallInfo.ReqArgs, CallInfo.PrefixSize); in EmitCXXMemberOrOperatorCall()
439 const auto *FPT = MPT->getPointeeType()->castAs<FunctionProtoType>(); in EmitCXXMemberPointerCallExpr() local
470 RequiredArgs required = RequiredArgs::forPrototypePlus(FPT, 1); in EmitCXXMemberPointerCallExpr()
473 EmitCallArgs(Args, FPT, E->arguments()); in EmitCXXMemberPointerCallExpr()
1361 auto AI = FPT->param_type_begin(), AE = FPT->param_type_end(); in getUsualDeleteParams()
1439 DeleteArgs.add(Traits::get(CGF, Ptr), FPT->getParamType(0)); in Emit()
[all …]
H A DCGCXXABI.cpp48 const auto *FPT = MPT->getPointeeType()->castAs<FunctionProtoType>(); in EmitLoadOfMemberFunctionPointer() local
52 CGM.getTypes().arrangeCXXMethodType(RD, FPT, /*FD=*/nullptr)); in EmitLoadOfMemberFunctionPointer()
54 return CGCallee::forDirect(FnPtr, FPT); in EmitLoadOfMemberFunctionPointer()
H A DCGVTables.cpp163 const FunctionProtoType *FPT = MD->getType()->castAs<FunctionProtoType>(); in GenerateVarArgsThunk() local
164 QualType ResultType = FPT->getReturnType(); in GenerateVarArgsThunk()
343 const FunctionProtoType *FPT = MD->getType()->castAs<FunctionProtoType>(); in EmitCallAndReturnForThunk() local
347 CallArgs, FPT, RequiredArgs::forPrototypePlus(FPT, 1), PrefixArgs); in EmitCallAndReturnForThunk()
367 : FPT->getReturnType(); in EmitCallAndReturnForThunk()
H A DCGCall.cpp154 if (!FPT->hasExtParameterInfos()) { in appendParameterTypes()
157 prefix.append(FPT->param_type_begin(), FPT->param_type_end()); in appendParameterTypes()
167 auto ExtInfos = FPT->getExtParameterInfos(); in appendParameterTypes()
168 assert(ExtInfos.size() == FPT->getNumParams()); in appendParameterTypes()
170 prefix.push_back(FPT->getParamType(I)); in appendParameterTypes()
1751 if (!isFuncTypeConvertible(FPT)) in GetFunctionTypeForVTable()
1760 if (!FPT) in AddAttributesFromFunctionProtoType()
1764 FPT->isNothrow()) in AddAttributesFromFunctionProtoType()
4176 IsVariadic = FPT->isVariadic(); in EmitCallArgs()
4177 ExplicitCC = FPT->getExtInfo().getCC(); in EmitCallArgs()
[all …]
H A DMicrosoftCXXABI.cpp1319 const FunctionProtoType *FPT = CD->getType()->castAs<FunctionProtoType>(); in buildStructorSignature() local
1321 if (FPT->isVariadic()) { in buildStructorSignature()
1510 if (FPT->isVariadic()) in addImplicitStructorParams()
1602 const FunctionProtoType *FPT = D->getType()->castAs<FunctionProtoType>(); in getImplicitConstructorArgs() local
1609 if (FPT->isVariadic()) { in getImplicitConstructorArgs()
2944 const FunctionProtoType *FPT = MD->getType()->castAs<FunctionProtoType>(); in EmitMemberFunctionPointer() local
2948 if (Types.isFuncTypeConvertible(FPT)) { in EmitMemberFunctionPointer()
3498 const FunctionProtoType *FPT = in EmitLoadOfMemberFunctionPointer() local
3502 CGM.getTypes().arrangeCXXMethodType(RD, FPT, /*FD=*/nullptr)); in EmitLoadOfMemberFunctionPointer()
3542 CGCallee Callee(FPT, FunctionPointer); in EmitLoadOfMemberFunctionPointer()
[all …]
H A DCGDebugInfo.cpp1368 const auto *FPT = dyn_cast<FunctionProtoType>(Ty); in CreateType() local
1369 if (FPT) { in CreateType()
1384 if (!FPT) { in CreateType()
1387 Flags = getRefFlags(FPT); in CreateType()
1388 for (const QualType &ParamType : FPT->param_types()) in CreateType()
1390 if (FPT->isVariadic()) in CreateType()
3158 const FunctionProtoType *FPT = in CreateType() local
3163 FPT, U, false), in CreateType()
3997 if (FPT->getNumParams() > 1) in getOrCreateFunctionType()
3998 SelfDeclTy = FPT->getParamType(0); in getOrCreateFunctionType()
[all …]
H A DCGClass.cpp2118 const FunctionProtoType *FPT = D->getType()->castAs<FunctionProtoType>(); in EmitCXXConstructorCall() local
2122 EmitCallArgs(Args, FPT, E->arguments(), E->getConstructor(), in EmitCXXConstructorCall()
2355 const FunctionProtoType *FPT = D->getType()->castAs<FunctionProtoType>(); in EmitSynthesizedCXXCopyCtorCall() local
2363 QualType QT = *(FPT->param_type_begin()); in EmitSynthesizedCXXCopyCtorCall()
2369 EmitCallArgs(Args, FPT, drop_begin(E->arguments(), 1), E->getConstructor(), in EmitSynthesizedCXXCopyCtorCall()
2907 const FunctionProtoType *FPT = in EmitForwardingCallToLambda() local
2909 QualType resultType = FPT->getReturnType(); in EmitForwardingCallToLambda()
/llvm-project-15.0.7/clang/lib/Sema/
H A DCodeCompleteConsumer.cpp548 if (const auto *FPT = dyn_cast<FunctionProtoType>(FT)) in getNumParams() local
549 return FPT->getNumParams(); in getNumParams()
577 if (const auto *FPT = dyn_cast<FunctionProtoType>(FT)) in getParamType() local
578 if (N < FPT->getNumParams()) in getParamType()
579 return FPT->getParamType(N); in getParamType()
H A DSemaExceptionSpec.cpp209 Sema::ResolveExceptionSpec(SourceLocation Loc, const FunctionProtoType *FPT) { in ResolveExceptionSpec() argument
210 if (FPT->getExceptionSpecType() == EST_Unparsed) { in ResolveExceptionSpec()
215 if (!isUnresolvedExceptionSpec(FPT->getExceptionSpecType())) in ResolveExceptionSpec()
216 return FPT; in ResolveExceptionSpec()
218 FunctionDecl *SourceDecl = FPT->getExceptionSpecDecl(); in ResolveExceptionSpec()
H A DSemaLambda.cpp371 const FunctionProtoType *FPT = MethodType->castAs<FunctionProtoType>(); in startLambdaDefinition() local
372 QualType Result = FPT->getReturnType(); in startLambdaDefinition()
375 MethodType = Context.getFunctionType(Result, FPT->getParamTypes(), in startLambdaDefinition()
376 FPT->getExtProtoInfo()); in startLambdaDefinition()
/llvm-project-15.0.7/clang-tools-extra/clang-tidy/utils/
H A DExceptionAnalyzer.cpp137 if (const auto *FPT = Func->getType()->getAs<FunctionProtoType>()) { in throwsException() local
138 for (const QualType &Ex : FPT->exceptions()) in throwsException()
/llvm-project-15.0.7/clang/lib/AST/
H A DComment.cpp355 if (const auto *FPT = dyn_cast<FunctionProtoType>(FTL.getTypePtr())) in fill() local
356 IsVariadic = FPT->isVariadic(); in fill()
H A DDecl.cpp3204 const auto *FPT = getType()->castAs<FunctionProtoType>(); in isReplaceableGlobalAllocationFunction() local
3205 if (FPT->getNumParams() == 0 || FPT->getNumParams() > 3 || FPT->isVariadic()) in isReplaceableGlobalAllocationFunction()
3210 if (FPT->getNumParams() == 1) in isReplaceableGlobalAllocationFunction()
3214 QualType Ty = FPT->getParamType(Params); in isReplaceableGlobalAllocationFunction()
3219 Ty = Params < FPT->getNumParams() ? FPT->getParamType(Params) : QualType(); in isReplaceableGlobalAllocationFunction()
3253 return Params == FPT->getNumParams(); in isReplaceableGlobalAllocationFunction()
3448 const auto *FPT = getType()->getAs<FunctionProtoType>(); in getNumParams() local
3449 return FPT ? FPT->getNumParams() : 0; in getNumParams()
H A DASTDiagnostic.cpp93 const FunctionProtoType *FPT = dyn_cast<FunctionProtoType>(FT); in desugarForDiagnostic() local
94 if (FPT) { in desugarForDiagnostic()
95 for (QualType SugarPT : FPT->param_types()) { in desugarForDiagnostic()
108 QT = FPT ? Context.getFunctionType(RT, Args, FPT->getExtProtoInfo()) in desugarForDiagnostic()
H A DDeclCXX.cpp2454 static QualType getThisObjectType(ASTContext &C, const FunctionProtoType *FPT, in getThisObjectType() argument
2457 return C.getQualifiedType(ClassTy, FPT->getMethodQuals()); in getThisObjectType()
2460 QualType CXXMethodDecl::getThisType(const FunctionProtoType *FPT, in getThisType() argument
2463 QualType ObjectTy = ::getThisObjectType(C, FPT, Decl); in getThisType()
2467 QualType CXXMethodDecl::getThisObjectType(const FunctionProtoType *FPT, in getThisObjectType() argument
2470 return ::getThisObjectType(C, FPT, Decl); in getThisObjectType()
/llvm-project-15.0.7/llvm/lib/Transforms/InstCombine/
H A DInstCombineCasts.cpp1770 Instruction *InstCombinerImpl::visitFPTrunc(FPTruncInst &FPT) { in visitFPTrunc() argument
1771 if (Instruction *I = commonCastTransforms(FPT)) in visitFPTrunc()
1781 Type *Ty = FPT.getType(); in visitFPTrunc()
1782 auto *BO = dyn_cast<BinaryOperator>(FPT.getOperand(0)); in visitFPTrunc()
1870 Instruction *Op = dyn_cast<Instruction>(FPT.getOperand(0)); in visitFPTrunc()
1891 return replaceInstUsesWith(FPT, Sel); in visitFPTrunc()
1898 return replaceInstUsesWith(FPT, Sel); in visitFPTrunc()
1902 if (auto *II = dyn_cast<IntrinsicInst>(FPT.getOperand(0))) { in visitFPTrunc()
1929 Function *Overload = Intrinsic::getDeclaration(FPT.getModule(), in visitFPTrunc()
1941 if (Instruction *I = shrinkInsertElt(FPT, Builder)) in visitFPTrunc()
[all …]
/llvm-project-15.0.7/clang-tools-extra/clangd/
H A DInlayHints.cpp262 if (auto *FPT = in VisitFunctionDecl() local
264 if (!FPT->hasTrailingReturn()) { in VisitFunctionDecl()
/llvm-project-15.0.7/clang/include/clang/AST/
H A DDecl.h2081 const auto *FPT = getType()->getAs<FunctionProtoType>(); in getEllipsisLoc() local
2082 if (FPT && FPT->isVariadic()) in getEllipsisLoc()
2083 return FPT->getEllipsisLoc(); in getEllipsisLoc()
2595 const auto *FPT = T->getAs<FunctionProtoType>(); in getExceptionSpecType() local
2596 return FPT ? FPT->getExceptionSpecType() : EST_None; in getExceptionSpecType()
/llvm-project-15.0.7/clang/lib/Serialization/
H A DASTReaderDecl.cpp3394 auto *FPT = FD->getType()->getAs<FunctionProtoType>(); in attachPreviousDeclImpl() local
3396 if (FPT && PrevFPT) { in attachPreviousDeclImpl()
3399 bool IsUnresolved = isUnresolvedExceptionSpec(FPT->getExceptionSpecType()); in attachPreviousDeclImpl()
3408 bool IsUndeduced = isUndeducedReturnType(FPT->getReturnType()); in attachPreviousDeclImpl()
3413 (IsUndeduced ? PrevFPT : FPT)->getReturnType()}); in attachPreviousDeclImpl()
4410 auto *FPT = FD->getType()->castAs<FunctionProtoType>(); in UpdateDecl() local
4413 if (isUnresolvedExceptionSpec(FPT->getExceptionSpecType())) { in UpdateDecl()
4415 FPT->getReturnType(), FPT->getParamTypes(), in UpdateDecl()
4416 FPT->getExtProtoInfo().withExceptionSpec(ESI))); in UpdateDecl()

12