/freebsd/contrib/llvm-project/clang/lib/CodeGen/ |
H A D | CGCXX.cpp | 221 GlobalDecl GD, const CGFunctionInfo *FnInfo, llvm::FunctionType *FnType, in getAddrAndTypeOfCXXStructor() argument 234 if (!FnType) { in getAddrAndTypeOfCXXStructor() 237 FnType = getTypes().GetFunctionType(*FnInfo); in getAddrAndTypeOfCXXStructor() 241 getMangledName(GD), FnType, GD, /*ForVTable=*/false, DontDefer, in getAddrAndTypeOfCXXStructor() 243 return {FnType, Ptr}; in getAddrAndTypeOfCXXStructor()
|
H A D | CGDebugInfo.h | 245 getOrCreateFunctionType(const Decl *D, QualType FnType, llvm::DIFile *F); 462 SourceLocation ScopeLoc, QualType FnType, 473 QualType FnType, llvm::Function *Fn = nullptr); 707 getObjCMethodDeclaration(const Decl *D, llvm::DISubroutineType *FnType,
|
H A D | CodeGenModule.h | 1084 llvm::FunctionType *FnType = nullptr, 1087 return cast<llvm::Constant>(getAddrAndTypeOfCXXStructor(GD, FnInfo, FnType, 1095 llvm::FunctionType *FnType = nullptr, bool DontDefer = false,
|
H A D | CGDebugInfo.cpp | 3956 QualType FnType = CGM.getContext().getFunctionType( in getFunctionFwdDeclOrStub() local 3974 getOrCreateFunctionType(GD.getDecl(), FnType, Unit), 0, Flags, SPFlags, in getFunctionFwdDeclOrStub() 4088 const Decl *D, llvm::DISubroutineType *FnType, unsigned LineNo, in getObjCMethodDeclaration() argument 4117 InterfaceType->getFile(), LineNo, FnType, LineNo, Flags, SPFlags); in getObjCMethodDeclaration() 4126 QualType FnType, in getOrCreateFunctionType() argument 4140 const auto *FTy = FnType->getAs<FunctionType>(); in getOrCreateFunctionType() 4160 else if (auto *FPT = dyn_cast<FunctionProtoType>(FnType)) in getOrCreateFunctionType() 4187 if (const auto *FPT = dyn_cast<FunctionProtoType>(FnType)) in getOrCreateFunctionType() 4196 return cast<llvm::DISubroutineType>(getOrCreateType(FnType, F)); in getOrCreateFunctionType() 4323 QualType FnType, llvm::Function *Fn) { in EmitFunctionDecl() argument [all …]
|
H A D | CodeGenModule.cpp | 2117 if (auto *FnType = T->getAs<FunctionProtoType>()) in CreateKCFITypeId() local 2119 FnType->getReturnType(), FnType->getParamTypes(), in CreateKCFITypeId() 2120 FnType->getExtProtoInfo().withExceptionSpec(EST_None)); in CreateKCFITypeId() 7364 if (auto *FnType = T->getAs<FunctionProtoType>()) in CreateMetadataIdentifierImpl() local 7366 FnType->getReturnType(), FnType->getParamTypes(), in CreateMetadataIdentifierImpl() 7417 if (auto *FnType = Ty->getAs<FunctionProtoType>()) { in GeneralizeFunctionType() local 7419 for (auto &Param : FnType->param_types()) in GeneralizeFunctionType() 7423 GeneralizeType(Ctx, FnType->getReturnType()), in GeneralizeFunctionType() 7424 GeneralizedParams, FnType->getExtProtoInfo()); in GeneralizeFunctionType() 7427 if (auto *FnType = Ty->getAs<FunctionNoProtoType>()) in GeneralizeFunctionType() local [all …]
|
H A D | CGExpr.cpp | 3475 llvm::FunctionType *FnType, in emitCheckHandlerCall() argument 3509 FnType, FnName, in emitCheckHandlerCall() 3608 llvm::FunctionType *FnType = in EmitCheck() local 3614 emitCheckHandlerCall(*this, FnType, Args, CheckHandler, RecoverKind, in EmitCheck() 5801 const auto *FnType = cast<FunctionType>(PointeeType); in EmitCall() local 5812 MD = CGM.CreateMetadataIdentifierGeneralized(QualType(FnType, 0)); in EmitCall() 5814 MD = CGM.CreateMetadataIdentifierForType(QualType(FnType, 0)); in EmitCall() 5826 EmitCheckTypeDescriptor(QualType(FnType, 0)), in EmitCall() 5881 EmitCallArgs(Args, dyn_cast<FunctionProtoType>(FnType), Arguments, in EmitCall() 5885 Args, FnType, /*ChainCall=*/Chain); in EmitCall() [all …]
|
H A D | CGBlocks.cpp | 1161 QualType FnType = BPT->getPointeeType(); in EmitBlockCallExpr() local 1178 EmitCallArgs(Args, FnType->getAs<FunctionProtoType>(), E->arguments()); in EmitBlockCallExpr() 1199 EmitCallArgs(Args, FnType->getAs<FunctionProtoType>(), E->arguments()); in EmitBlockCallExpr() 1205 const FunctionType *FuncTy = FnType->castAs<FunctionType>(); in EmitBlockCallExpr()
|
H A D | CGOpenMPRuntimeGPU.cpp | 3035 auto *FnType = OutlinedFn.getFunctionType(); in emitOutlinedFunctionCall() local 3037 if (FnType->isVarArg() && FnType->getNumParams() <= I) { in emitOutlinedFunctionCall() 3041 llvm::Type *TargetType = FnType->getParamType(I); in emitOutlinedFunctionCall()
|
H A D | CGClass.cpp | 1684 llvm::FunctionType *FnType = local 1686 llvm::FunctionCallee Fn = CGF.CGM.CreateRuntimeFunction(FnType, Name);
|
H A D | CGCall.cpp | 5720 auto *FnType = llvm::FunctionType::get(CGM.VoidTy, /*isVarArg=*/false); in EmitCall() local 5722 CGM.CreateRuntimeFunction(FnType, "__asan_handle_no_return"); in EmitCall()
|
H A D | CodeGenFunction.h | 4134 RValue EmitCall(QualType FnType, const CGCallee &Callee, const CallExpr *E,
|
/freebsd/contrib/llvm-project/clang/lib/Sema/ |
H A D | SemaCoroutine.cpp | 56 const FunctionProtoType *FnType = FD->getType()->castAs<FunctionProtoType>(); in lookupPromiseType() local 71 AddArg(FnType->getReturnType()); in lookupPromiseType() 84 T = FnType->getRefQualifier() == RQ_RValue in lookupPromiseType() 90 for (QualType T : FnType->getParamTypes()) in lookupPromiseType()
|
H A D | SemaOverload.cpp | 11973 QualType FnType = Cand->Surrogate->getConversionType(); in NoteSurrogateCandidate() local 11978 FnType->getAs<LValueReferenceType>()) { in NoteSurrogateCandidate() 11979 FnType = FnTypeRef->getPointeeType(); in NoteSurrogateCandidate() 11982 FnType->getAs<RValueReferenceType>()) { in NoteSurrogateCandidate() 11983 FnType = FnTypeRef->getPointeeType(); in NoteSurrogateCandidate() 11987 FnType = FnTypePtr->getPointeeType(); in NoteSurrogateCandidate() 11991 FnType = QualType(FnType->getAs<FunctionType>(), 0); in NoteSurrogateCandidate() 11993 if (isPointer) FnType = S.Context.getPointerType(FnType); in NoteSurrogateCandidate() 11994 if (isRValueReference) FnType = S.Context.getRValueReferenceType(FnType); in NoteSurrogateCandidate() 11995 if (isLValueReference) FnType = S.Context.getLValueReferenceType(FnType); in NoteSurrogateCandidate() [all …]
|
H A D | SemaLookup.cpp | 3179 const FunctionType *FnType = cast<FunctionType>(T); in addAssociatedClassesAndNamespaces() local 3180 T = FnType->getReturnType().getTypePtr(); in addAssociatedClassesAndNamespaces()
|
H A D | SemaExprCXX.cpp | 3189 QualType FnType = Context.getFunctionType(Return, Params, EPI); in DeclareGlobalAllocationFunction() local 3191 Context, GlobalCtx, SourceLocation(), SourceLocation(), Name, FnType, in DeclareGlobalAllocationFunction()
|
H A D | SemaExpr.cpp | 21389 const FunctionType *FnType = CalleeType->castAs<FunctionType>(); in VisitCallExpr() local 21408 const FunctionProtoType *Proto = dyn_cast<FunctionProtoType>(FnType); in VisitCallExpr() 21442 FnType->getExtInfo()); in VisitCallExpr() 21553 const FunctionType *FnType = FDT->castAs<FunctionType>(); in resolveDecl() local 21554 const FunctionProtoType *Proto = dyn_cast_or_null<FunctionProtoType>(FnType); in resolveDecl()
|
H A D | SemaChecking.cpp | 3178 ArmStreamingType FnType = getArmStreamingFnType(FD); in checkArmStreamingBuiltin() local 3189 if (FnType == ArmStreaming && BuiltinType == ArmNonStreaming) { in checkArmStreamingBuiltin() 3194 if (FnType == ArmStreamingCompatible && in checkArmStreamingBuiltin() 3201 if (FnType == ArmNonStreaming && BuiltinType == ArmStreaming) { in checkArmStreamingBuiltin()
|
H A D | SemaCodeComplete.cpp | 5622 if (const FunctionType *FnType = Callee->getAs<FunctionType>()) in getApproximateType() local 5623 return FnType->getReturnType().getNonReferenceType(); in getApproximateType()
|
/freebsd/contrib/llvm-project/llvm/lib/CodeGen/ |
H A D | AtomicExpandPass.cpp | 1911 FunctionType *FnType = FunctionType::get(ResultTy, ArgTys, false); in expandAtomicOpToLibcall() local 1913 M->getOrInsertFunction(TLI->getLibcallName(RTLibType), FnType, Attr); in expandAtomicOpToLibcall()
|
/freebsd/contrib/llvm-project/clang/lib/AST/ |
H A D | Expr.cpp | 1586 const FunctionType *FnType = CalleeType->castAs<FunctionType>(); in getCallReturnType() local 1587 return FnType->getReturnType(); in getCallReturnType()
|