| /openbsd-src/gnu/llvm/clang/lib/CodeGen/ |
| H A D | CGCXX.cpp | 222 GlobalDecl GD, const CGFunctionInfo *FnInfo, llvm::FunctionType *FnType, in getAddrAndTypeOfCXXStructor() argument 235 if (!FnType) { in getAddrAndTypeOfCXXStructor() 238 FnType = getTypes().GetFunctionType(*FnInfo); in getAddrAndTypeOfCXXStructor() 242 getMangledName(GD), FnType, GD, /*ForVTable=*/false, DontDefer, in getAddrAndTypeOfCXXStructor() 244 return {FnType, Ptr}; in getAddrAndTypeOfCXXStructor()
|
| H A D | CGDebugInfo.h | 238 getOrCreateFunctionType(const Decl *D, QualType FnType, llvm::DIFile *F); 440 SourceLocation ScopeLoc, QualType FnType, 451 QualType FnType, llvm::Function *Fn = nullptr); 686 getObjCMethodDeclaration(const Decl *D, llvm::DISubroutineType *FnType,
|
| H A D | CodeGenModule.h | 1074 llvm::FunctionType *FnType = nullptr, 1077 return cast<llvm::Constant>(getAddrAndTypeOfCXXStructor(GD, FnInfo, FnType, 1085 llvm::FunctionType *FnType = nullptr, bool DontDefer = false,
|
| H A D | CGDebugInfo.cpp | 3810 QualType FnType = CGM.getContext().getFunctionType( in getFunctionFwdDeclOrStub() local 3822 getOrCreateFunctionType(GD.getDecl(), FnType, Unit), 0, Flags, SPFlags, in getFunctionFwdDeclOrStub() 3828 getOrCreateFunctionType(GD.getDecl(), FnType, Unit), 0, Flags, SPFlags, in getFunctionFwdDeclOrStub() 3942 const Decl *D, llvm::DISubroutineType *FnType, unsigned LineNo, in getObjCMethodDeclaration() argument 3971 InterfaceType->getFile(), LineNo, FnType, LineNo, Flags, SPFlags); in getObjCMethodDeclaration() 3980 QualType FnType, in getOrCreateFunctionType() argument 3994 const auto *FTy = FnType->getAs<FunctionType>(); in getOrCreateFunctionType() 4014 else if (auto *FPT = dyn_cast<FunctionProtoType>(FnType)) in getOrCreateFunctionType() 4041 if (const auto *FPT = dyn_cast<FunctionProtoType>(FnType)) in getOrCreateFunctionType() 4050 return cast<llvm::DISubroutineType>(getOrCreateType(FnType, F)); in getOrCreateFunctionType() [all …]
|
| H A D | CGExpr.cpp | 3213 llvm::FunctionType *FnType, in emitCheckHandlerCall() argument 3247 FnType, FnName, in emitCheckHandlerCall() 3346 llvm::FunctionType *FnType = in EmitCheck() local 3352 emitCheckHandlerCall(*this, FnType, Args, CheckHandler, RecoverKind, in EmitCheck() 3362 emitCheckHandlerCall(*this, FnType, Args, CheckHandler, RecoverKind, true, in EmitCheck() 3365 emitCheckHandlerCall(*this, FnType, Args, CheckHandler, RecoverKind, false, in EmitCheck() 5366 const auto *FnType = cast<FunctionType>(PointeeType); in EmitCall() local 5377 MD = CGM.CreateMetadataIdentifierGeneralized(QualType(FnType, 0)); in EmitCall() 5379 MD = CGM.CreateMetadataIdentifierForType(QualType(FnType, 0)); in EmitCall() 5392 EmitCheckTypeDescriptor(QualType(FnType, 0)), in EmitCall() [all …]
|
| H A D | CodeGenModule.cpp | 1722 if (auto *FnType = T->getAs<FunctionProtoType>()) in CreateKCFITypeId() local 1724 FnType->getReturnType(), FnType->getParamTypes(), in CreateKCFITypeId() 1725 FnType->getExtProtoInfo().withExceptionSpec(EST_None)); in CreateKCFITypeId() 6933 if (auto *FnType = T->getAs<FunctionProtoType>()) in CreateMetadataIdentifierImpl() local 6935 FnType->getReturnType(), FnType->getParamTypes(), in CreateMetadataIdentifierImpl() 6936 FnType->getExtProtoInfo().withExceptionSpec(EST_None)); in CreateMetadataIdentifierImpl() 6981 if (auto *FnType = Ty->getAs<FunctionProtoType>()) { in GeneralizeFunctionType() local 6983 for (auto &Param : FnType->param_types()) in GeneralizeFunctionType() 6987 GeneralizeType(Ctx, FnType->getReturnType()), in GeneralizeFunctionType() 6988 GeneralizedParams, FnType->getExtProtoInfo()); in GeneralizeFunctionType() [all …]
|
| H A D | CGBlocks.cpp | 1186 QualType FnType = BPT->getPointeeType(); in EmitBlockCallExpr() local 1203 EmitCallArgs(Args, FnType->getAs<FunctionProtoType>(), E->arguments()); in EmitBlockCallExpr() 1224 EmitCallArgs(Args, FnType->getAs<FunctionProtoType>(), E->arguments()); in EmitBlockCallExpr() 1230 const FunctionType *FuncTy = FnType->castAs<FunctionType>(); in EmitBlockCallExpr()
|
| H A D | CGOpenMPRuntimeGPU.cpp | 3110 auto *FnType = OutlinedFn.getFunctionType(); in emitOutlinedFunctionCall() local 3112 if (FnType->isVarArg() && FnType->getNumParams() <= I) { in emitOutlinedFunctionCall() 3116 llvm::Type *TargetType = FnType->getParamType(I); in emitOutlinedFunctionCall()
|
| H A D | CGClass.cpp | 1691 llvm::FunctionType *FnType = local 1693 llvm::FunctionCallee Fn = CGF.CGM.CreateRuntimeFunction(FnType, Name);
|
| H A D | CGCall.cpp | 5508 auto *FnType = llvm::FunctionType::get(CGM.VoidTy, /*isVarArg=*/false); in EmitCall() local 5510 CGM.CreateRuntimeFunction(FnType, "__asan_handle_no_return"); in EmitCall()
|
| H A D | CodeGenFunction.h | 4023 RValue EmitCall(QualType FnType, const CGCallee &Callee, const CallExpr *E,
|
| /openbsd-src/gnu/llvm/libcxx/benchmarks/ |
| H A D | allocation.bench.cpp | 115 using FnType = void(*)(benchmark::State&); in RegisterAllocBenchmarks() typedef 118 FnType func; in RegisterAllocBenchmarks()
|
| /openbsd-src/gnu/llvm/clang/lib/Sema/ |
| H A D | SemaCoroutine.cpp | 54 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 | 11562 QualType FnType = Cand->Surrogate->getConversionType(); in NoteSurrogateCandidate() local 11567 FnType->getAs<LValueReferenceType>()) { in NoteSurrogateCandidate() 11568 FnType = FnTypeRef->getPointeeType(); in NoteSurrogateCandidate() 11571 FnType->getAs<RValueReferenceType>()) { in NoteSurrogateCandidate() 11572 FnType = FnTypeRef->getPointeeType(); in NoteSurrogateCandidate() 11575 if (const PointerType *FnTypePtr = FnType->getAs<PointerType>()) { in NoteSurrogateCandidate() 11576 FnType = FnTypePtr->getPointeeType(); in NoteSurrogateCandidate() 11580 FnType = QualType(FnType->getAs<FunctionType>(), 0); in NoteSurrogateCandidate() 11582 if (isPointer) FnType = S.Context.getPointerType(FnType); in NoteSurrogateCandidate() 11583 if (isRValueReference) FnType = S.Context.getRValueReferenceType(FnType); in NoteSurrogateCandidate() [all …]
|
| H A D | SemaLookup.cpp | 3162 const FunctionType *FnType = cast<FunctionType>(T); in addAssociatedClassesAndNamespaces() local 3163 T = FnType->getReturnType().getTypePtr(); in addAssociatedClassesAndNamespaces()
|
| H A D | SemaExprCXX.cpp | 3150 QualType FnType = Context.getFunctionType(Return, Params, EPI); in DeclareGlobalAllocationFunction() local 3152 Context, GlobalCtx, SourceLocation(), SourceLocation(), Name, FnType, in DeclareGlobalAllocationFunction()
|
| H A D | SemaExpr.cpp | 20636 const FunctionType *FnType = CalleeType->castAs<FunctionType>(); in VisitCallExpr() local 20655 const FunctionProtoType *Proto = dyn_cast<FunctionProtoType>(FnType); in VisitCallExpr() 20689 FnType->getExtInfo()); in VisitCallExpr() 20800 const FunctionType *FnType = FDT->castAs<FunctionType>(); in resolveDecl() local 20801 const FunctionProtoType *Proto = dyn_cast_or_null<FunctionProtoType>(FnType); in resolveDecl()
|
| H A D | SemaCodeComplete.cpp | 5541 if (const FunctionType *FnType = Callee->getAs<FunctionType>()) in getApproximateType() local 5542 return FnType->getReturnType().getNonReferenceType(); in getApproximateType()
|
| /openbsd-src/gnu/llvm/llvm/lib/CodeGen/ |
| H A D | AtomicExpandPass.cpp | 1934 FunctionType *FnType = FunctionType::get(ResultTy, ArgTys, false); in expandAtomicOpToLibcall() local 1936 M->getOrInsertFunction(TLI->getLibcallName(RTLibType), FnType, Attr); in expandAtomicOpToLibcall()
|
| /openbsd-src/gnu/llvm/clang/lib/AST/ |
| H A D | Expr.cpp | 1598 const FunctionType *FnType = CalleeType->castAs<FunctionType>(); in getCallReturnType() local 1599 return FnType->getReturnType(); in getCallReturnType()
|