/freebsd/contrib/llvm-project/llvm/lib/Analysis/ |
H A D | TargetLibraryInfo.cpp | 1128 bool TargetLibraryInfoImpl::getLibFunc(const Function &FDecl, in getLibFunc() argument 1133 if (FDecl.isIntrinsic()) return false; in getLibFunc() 1135 const Module *M = FDecl.getParent(); in getLibFunc() 1138 if (FDecl.LibFuncCache == Function::UnknownLibFunc) in getLibFunc() 1139 if (!getLibFunc(FDecl.getName(), FDecl.LibFuncCache)) in getLibFunc() 1140 FDecl.LibFuncCache = NotLibFunc; in getLibFunc() 1142 if (FDecl.LibFuncCache == NotLibFunc) in getLibFunc() 1145 F = FDecl.LibFuncCache; in getLibFunc() 1146 return isValidProtoForLibFunc(*FDecl.getFunctionType(), F, *M); in getLibFunc()
|
/freebsd/contrib/llvm-project/clang/lib/Sema/ |
H A D | SemaChecking.cpp | 2597 << FDecl; in CheckBuiltinFunctionCall() 7293 if (FDecl) { in CheckNonNullArguments() 7315 if (FDecl && (isa<FunctionDecl>(FDecl) || isa<ObjCMethodDecl>(FDecl))) { in CheckNonNullArguments() 7447 << ParamName << (FDecl != nullptr) << FDecl; in CheckArgAlignment() 7463 if (FDecl) { in checkCall() 7479 : FDecl && isa<FunctionDecl>(FDecl) in checkCall() 7481 : FDecl && isa<ObjCMethodDecl>(FDecl) in checkCall() 7498 if (FDecl) { in checkCall() 7588 if (FDecl && FDecl->hasAttr<AllocAlignAttr>()) { in checkCall() 12895 if (!FDecl) in emitReplacement() [all …]
|
H A D | SemaExpr.cpp | 3377 if (FDecl->getBuiltinID() && FDecl->isImplicit()) in UseArgumentDependentLookup() 6539 if (FDecl) in ConvertArgumentsForCall() 6594 << FDecl << FDecl->getParametersSourceRange(); in ConvertArgumentsForCall() 6648 << FDecl << FDecl->getParametersSourceRange(); in ConvertArgumentsForCall() 7295 if (FDecl && FDecl->getBuiltinID()) { in BuildCallExpr() 7461 if (FDecl && FDecl->hasAttr<AnyX86InterruptAttr>()) { in BuildResolvedCallExpr() 7610 if (FDecl && !FDecl->hasAttr<CUDAGlobalAttr>()) in BuildResolvedCallExpr() 7622 if (FDecl && FDecl->hasAttr<CUDAGlobalAttr>()) in BuildResolvedCallExpr() 7682 (!FDecl || (!FDecl->isImplicit() && in BuildResolvedCallExpr() 7686 << (FDecl != nullptr) << FDecl; in BuildResolvedCallExpr() [all …]
|
H A D | SemaCodeComplete.cpp | 3803 auto FDecl = Result.getFunction(); in getParameterComment() local 3804 if (!FDecl) in getParameterComment() 3806 if (ArgIndex < FDecl->getNumParams()) in getParameterComment() 3807 return Ctx.getRawCommentForAnyRedecl(FDecl->getParamDecl(ArgIndex)); in getParameterComment() 4002 FunctionDecl *FDecl = getFunction(); in CreateSignatureString() local 4010 } else if (FDecl) { in CreateSignatureString() 4015 AddResultTypeChunk(S.Context, Policy, FDecl, QualType(), Result); in CreateSignatureString() 4019 FDecl->getDeclName().print(OS, Policy); in CreateSignatureString() 4033 AddOverloadParameterChunks(S.getASTContext(), Policy, FDecl, Proto, in CreateSignatureString()
|
H A D | SemaOverload.cpp | 13905 FunctionDecl *FDecl = (*Best)->Function; in FinishOverloadedCallExpr() local 13907 if (SemaRef.DiagnoseUseOfDecl(FDecl, ULE->getNameLoc())) in FinishOverloadedCallExpr() 13910 SemaRef.FixOverloadedFunctionReference(Fn, (*Best)->FoundDecl, FDecl); in FinishOverloadedCallExpr() 13914 Res.get(), FDecl, LParenLoc, Args, RParenLoc, ExecConfig, in FinishOverloadedCallExpr() 13969 FunctionDecl *FDecl = (*Best)->Function; in FinishOverloadedCallExpr() local 13971 SemaRef.FixOverloadedFunctionReference(Fn, (*Best)->FoundDecl, FDecl); in FinishOverloadedCallExpr() 13975 Res.get(), FDecl, LParenLoc, Args, RParenLoc, ExecConfig, in FinishOverloadedCallExpr() 14033 const FunctionDecl *FDecl = Best->Function; in BuildOverloadedCallExpr() local 14034 if (FDecl && FDecl->isTemplateInstantiation() && in BuildOverloadedCallExpr() 14035 FDecl->getReturnType()->isUndeducedType()) { in BuildOverloadedCallExpr() [all …]
|
H A D | SemaLookup.cpp | 3297 const FunctionDecl *FDecl = D->getUnderlyingDecl()->getAsFunction(); in FindAssociatedClassesAndNamespaces() local 3301 addAssociatedClassesAndNamespaces(Result, FDecl->getType()); in FindAssociatedClassesAndNamespaces()
|
/freebsd/contrib/llvm-project/llvm/include/llvm/Analysis/ |
H A D | TargetLibraryInfo.h | 157 bool getLibFunc(const Function &FDecl, LibFunc &F) const; 356 bool getLibFunc(const Function &FDecl, LibFunc &F) const { in getLibFunc() argument 357 return Impl->getLibFunc(FDecl, F); in getLibFunc()
|
/freebsd/contrib/llvm-project/clang/lib/Analysis/ |
H A D | ReachableCode.cpp | 65 if (const auto *FDecl = dyn_cast<FunctionDecl>(DRE->getDecl())) in isBuiltinUnreachable() local 66 return FDecl->getIdentifier() && in isBuiltinUnreachable() 67 FDecl->getBuiltinID() == Builtin::BI__builtin_unreachable; in isBuiltinUnreachable()
|
/freebsd/contrib/llvm-project/llvm/lib/Transforms/IPO/ |
H A D | LowerTypeTests.cpp | 1076 Function *FDecl; in importFunction() local 1080 FDecl = Function::Create(F->getFunctionType(), GlobalValue::ExternalLinkage, in importFunction() 1082 FDecl->setVisibility(GlobalValue::HiddenVisibility); in importFunction() 1086 FDecl = Function::Create(F->getFunctionType(), GlobalValue::ExternalLinkage, in importFunction() 1088 FDecl->setVisibility(Visibility); in importFunction() 1107 replaceWeakDeclarationWithJumpTablePtr(F, FDecl, isJumpTableCanonical); in importFunction() 1109 replaceCfiUses(F, FDecl, isJumpTableCanonical); in importFunction()
|
/freebsd/contrib/llvm-project/clang/lib/StaticAnalyzer/Checkers/ |
H A D | GenericTaintChecker.cpp | 1057 const FunctionDecl *FDecl = CallDecl->getAsFunction(); in getPrintfFormatArgumentNum() local 1058 if (!FDecl) in getPrintfFormatArgumentNum() 1063 for (const auto *Format : FDecl->specific_attrs<FormatAttr>()) { in getPrintfFormatArgumentNum()
|
/freebsd/contrib/llvm-project/clang/include/clang/Sema/ |
H A D | Sema.h | 5993 FunctionDecl *FDecl, 12690 VariadicCallType getVariadicCallType(FunctionDecl *FDecl, 12728 bool GatherArgumentsForCall(SourceLocation CallLoc, FunctionDecl *FDecl, 12739 FunctionDecl *FDecl); 13851 bool CheckFunctionCall(FunctionDecl *FDecl, CallExpr *TheCall, 13858 void CheckConstructorCall(FunctionDecl *FDecl, QualType ThisType, 13864 void CheckArgAlignment(SourceLocation Loc, NamedDecl *FDecl, 13867 void checkCall(NamedDecl *FDecl, const FunctionProtoType *Proto, 13875 ExprResult CheckBuiltinFunctionCall(FunctionDecl *FDecl, 14043 void CheckInfNaNFunction(const CallExpr *Call, const FunctionDecl *FDecl); [all …]
|
/freebsd/contrib/llvm-project/clang/lib/Frontend/Rewrite/ |
H A D | RewriteModernObjC.cpp | 211 if (FunctionDecl *FDecl = dyn_cast<FunctionDecl>(*I)) { in HandleTopLevelDecl() local 216 if (FDecl->isThisDeclarationADefinition() && in HandleTopLevelDecl() 218 !FDecl->isTopLevelDeclInObjCContainer()) { in HandleTopLevelDecl() 219 FunctionDefinitionsSeen.push_back(FDecl); in HandleTopLevelDecl() 5833 FunctionDecl *FDecl = FunctionDefinitionsSeen[i]; in HandleTranslationUnit() local 5834 HandleTopLevelSingleDecl(FDecl); in HandleTranslationUnit()
|
/freebsd/contrib/llvm-project/clang/lib/AST/ |
H A D | Expr.cpp | 1550 const auto *FDecl = getDirectCallee(); in getBuiltinCallee() local 1551 return FDecl ? FDecl->getBuiltinID() : 0; in getBuiltinCallee()
|
/freebsd/contrib/llvm-project/clang/lib/CodeGen/ |
H A D | CGCall.cpp | 1843 if (const FunctionDecl *FDecl = dyn_cast<FunctionDecl>(TargetDecl)) { in HasStrictReturn() local 1844 if (FDecl->isExternC()) in HasStrictReturn()
|