/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 | 250 getOrCreateFunctionType(const Decl *D, QualType FnType, llvm::DIFile *F); 472 SourceLocation ScopeLoc, QualType FnType, 483 QualType FnType, llvm::Function *Fn = nullptr); 736 getObjCMethodDeclaration(const Decl *D, llvm::DISubroutineType *FnType,
|
H A D | CodeGenModule.h | 1163 llvm::FunctionType *FnType = nullptr, 1166 return cast<llvm::Constant>(getAddrAndTypeOfCXXStructor(GD, FnInfo, FnType, 1174 llvm::FunctionType *FnType = nullptr, bool DontDefer = false,
|
H A D | CGDebugInfo.cpp | 4109 QualType FnType = CGM.getContext().getFunctionType( in getFunctionFwdDeclOrStub() local 4121 getOrCreateFunctionType(GD.getDecl(), FnType, Unit), 0, Flags, SPFlags, in getFunctionFwdDeclOrStub() 4127 getOrCreateFunctionType(GD.getDecl(), FnType, Unit), 0, Flags, SPFlags, in getFunctionFwdDeclOrStub() 4241 const Decl *D, llvm::DISubroutineType *FnType, unsigned LineNo, in getObjCMethodDeclaration() argument 4270 InterfaceType->getFile(), LineNo, FnType, LineNo, Flags, SPFlags); in getObjCMethodDeclaration() 4279 QualType FnType, in getOrCreateFunctionType() argument 4293 const auto *FTy = FnType->getAs<FunctionType>(); in getOrCreateFunctionType() 4313 else if (auto *FPT = dyn_cast<FunctionProtoType>(FnType)) in getOrCreateFunctionType() 4340 if (const auto *FPT = dyn_cast<FunctionProtoType>(FnType)) in getOrCreateFunctionType() 4349 return cast<llvm::DISubroutineType>(getOrCreateType(FnType, F)); in getOrCreateFunctionType() [all …]
|
H A D | CodeGenModule.cpp | 2143 if (auto *FnType = T->getAs<FunctionProtoType>()) in CreateKCFITypeId() local 2145 FnType->getReturnType(), FnType->getParamTypes(), in CreateKCFITypeId() 2146 FnType->getExtProtoInfo().withExceptionSpec(EST_None)); in CreateKCFITypeId() 7513 if (auto *FnType = T->getAs<FunctionProtoType>()) in CreateMetadataIdentifierImpl() local 7515 FnType->getReturnType(), FnType->getParamTypes(), in CreateMetadataIdentifierImpl() 7516 FnType->getExtProtoInfo().withExceptionSpec(EST_None)); in CreateMetadataIdentifierImpl() 7566 if (auto *FnType = Ty->getAs<FunctionProtoType>()) { in GeneralizeFunctionType() local 7568 for (auto &Param : FnType->param_types()) in GeneralizeFunctionType() 7572 GeneralizeType(Ctx, FnType->getReturnType()), in GeneralizeFunctionType() 7573 GeneralizedParams, FnType->getExtProtoInfo()); in GeneralizeFunctionType() [all …]
|
H A D | CGExpr.cpp | 3475 llvm::FunctionType *FnType, in emitCheckHandlerCall() argument 3509 FnType, FnName, in emitCheckHandlerCall() 3618 llvm::FunctionType *FnType = in EmitCheck() local 3624 emitCheckHandlerCall(*this, FnType, Args, CheckHandler, RecoverKind, in EmitCheck() 3634 emitCheckHandlerCall(*this, FnType, Args, CheckHandler, RecoverKind, true, in EmitCheck() 3637 emitCheckHandlerCall(*this, FnType, Args, CheckHandler, RecoverKind, false, in EmitCheck() 5904 const auto *FnType = cast<FunctionType>(PointeeType); in EmitCall() local 5915 MD = CGM.CreateMetadataIdentifierGeneralized(QualType(FnType, 0)); in EmitCall() 5917 MD = CGM.CreateMetadataIdentifierForType(QualType(FnType, 0)); in EmitCall() 5929 EmitCheckTypeDescriptor(QualType(FnType, 0)), in EmitCall() [all …]
|
H A D | CGOpenMPRuntimeGPU.cpp | 1829 auto *FnType = OutlinedFn.getFunctionType(); in emitOutlinedFunctionCall() local 1831 if (FnType->isVarArg() && FnType->getNumParams() <= I) { in emitOutlinedFunctionCall() 1835 llvm::Type *TargetType = FnType->getParamType(I); in emitOutlinedFunctionCall()
|
H A D | CGBlocks.cpp | 1171 QualType FnType = BPT->getPointeeType(); in EmitBlockCallExpr() local 1188 EmitCallArgs(Args, FnType->getAs<FunctionProtoType>(), E->arguments()); in EmitBlockCallExpr() 1209 EmitCallArgs(Args, FnType->getAs<FunctionProtoType>(), E->arguments()); in EmitBlockCallExpr() 1215 const FunctionType *FuncTy = FnType->castAs<FunctionType>(); in EmitBlockCallExpr()
|
H A D | CGClass.cpp | 1693 llvm::FunctionType *FnType = local 1695 llvm::FunctionCallee Fn = CGF.CGM.CreateRuntimeFunction(FnType, Name);
|
H A D | CGCall.cpp | 5811 auto *FnType = llvm::FunctionType::get(CGM.VoidTy, /*isVarArg=*/false); in EmitCall() local 5813 CGM.CreateRuntimeFunction(FnType, "__asan_handle_no_return"); in EmitCall()
|
H A D | CodeGenFunction.h | 4386 RValue EmitCall(QualType FnType, const CGCallee &Callee, const CallExpr *E,
|
/freebsd/contrib/llvm-project/clang/lib/Sema/ |
H A D | SemaARM.cpp | 567 SemaARM::ArmStreamingType FnType = getArmStreamingFnType(FD); in checkArmStreamingBuiltin() local 585 if (FnType == SemaARM::ArmStreaming && !CallerFeatureMapWithoutSVE["sme"]) in checkArmStreamingBuiltin() 610 (SatisfiesSVE && FnType == SemaARM::ArmStreamingCompatible)) in checkArmStreamingBuiltin() 621 if (FnType != SemaARM::ArmNonStreaming && in checkArmStreamingBuiltin() 625 else if (FnType != SemaARM::ArmStreaming && in checkArmStreamingBuiltin()
|
H A D | SemaAPINotes.cpp | 72 const FunctionType *FnType = Function->getType()->castAs<FunctionType>(); in applyNullability() local 73 if (const FunctionProtoType *proto = dyn_cast<FunctionProtoType>(FnType)) in applyNullability() 78 S.Context.getFunctionNoProtoType(*Modified, FnType->getExtInfo())); in applyNullability()
|
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 | 12070 QualType FnType = Cand->Surrogate->getConversionType(); in NoteSurrogateCandidate() local 12075 FnType->getAs<LValueReferenceType>()) { in NoteSurrogateCandidate() 12076 FnType = FnTypeRef->getPointeeType(); in NoteSurrogateCandidate() 12079 FnType->getAs<RValueReferenceType>()) { in NoteSurrogateCandidate() 12080 FnType = FnTypeRef->getPointeeType(); in NoteSurrogateCandidate() 12083 if (const PointerType *FnTypePtr = FnType->getAs<PointerType>()) { in NoteSurrogateCandidate() 12084 FnType = FnTypePtr->getPointeeType(); in NoteSurrogateCandidate() 12088 FnType = QualType(FnType->getAs<FunctionType>(), 0); in NoteSurrogateCandidate() 12090 if (isPointer) FnType = S.Context.getPointerType(FnType); in NoteSurrogateCandidate() 12091 if (isRValueReference) FnType = S.Context.getRValueReferenceType(FnType); in NoteSurrogateCandidate() [all …]
|
H A D | SemaLookup.cpp | 3142 const FunctionType *FnType = cast<FunctionType>(T); in addAssociatedClassesAndNamespaces() local 3143 T = FnType->getReturnType().getTypePtr(); in addAssociatedClassesAndNamespaces()
|
H A D | SemaExpr.cpp | 20389 const FunctionType *FnType = CalleeType->castAs<FunctionType>(); in VisitCallExpr() local 20408 const FunctionProtoType *Proto = dyn_cast<FunctionProtoType>(FnType); in VisitCallExpr() 20442 FnType->getExtInfo()); in VisitCallExpr() 20553 const FunctionType *FnType = FDT->castAs<FunctionType>(); in resolveDecl() local 20554 const FunctionProtoType *Proto = dyn_cast_or_null<FunctionProtoType>(FnType); in resolveDecl()
|
H A D | SemaExprCXX.cpp | 3191 QualType FnType = Context.getFunctionType(Return, Params, EPI); in DeclareGlobalAllocationFunction() local 3193 Context, GlobalCtx, SourceLocation(), SourceLocation(), Name, FnType, in DeclareGlobalAllocationFunction()
|
H A D | SemaCodeComplete.cpp | 5637 if (const FunctionType *FnType = Callee->getAs<FunctionType>()) in getApproximateType() local 5638 return FnType->getReturnType().getNonReferenceType(); in getApproximateType()
|
/freebsd/contrib/llvm-project/llvm/lib/CodeGen/ |
H A D | AtomicExpandPass.cpp | 1995 FunctionType *FnType = FunctionType::get(ResultTy, ArgTys, false); in expandAtomicOpToLibcall() local 1997 M->getOrInsertFunction(TLI->getLibcallName(RTLibType), FnType, Attr); in expandAtomicOpToLibcall()
|
/freebsd/contrib/llvm-project/clang/lib/AST/ |
H A D | Expr.cpp | 1616 const FunctionType *FnType = CalleeType->castAs<FunctionType>(); in getCallReturnType() local 1617 return FnType->getReturnType(); in getCallReturnType()
|