Home
last modified time | relevance | path

Searched refs:FnType (Results 1 – 20 of 20) sorted by relevance

/openbsd-src/gnu/llvm/clang/lib/CodeGen/
H A DCGCXX.cpp222 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 DCGDebugInfo.h238 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 DCodeGenModule.h1074 llvm::FunctionType *FnType = nullptr,
1077 return cast<llvm::Constant>(getAddrAndTypeOfCXXStructor(GD, FnInfo, FnType,
1085 llvm::FunctionType *FnType = nullptr, bool DontDefer = false,
H A DCGDebugInfo.cpp3810 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 DCGExpr.cpp3213 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 DCodeGenModule.cpp1722 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 DCGBlocks.cpp1186 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 DCGOpenMPRuntimeGPU.cpp3110 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 DCGClass.cpp1691 llvm::FunctionType *FnType = local
1693 llvm::FunctionCallee Fn = CGF.CGM.CreateRuntimeFunction(FnType, Name);
H A DCGCall.cpp5508 auto *FnType = llvm::FunctionType::get(CGM.VoidTy, /*isVarArg=*/false); in EmitCall() local
5510 CGM.CreateRuntimeFunction(FnType, "__asan_handle_no_return"); in EmitCall()
H A DCodeGenFunction.h4023 RValue EmitCall(QualType FnType, const CGCallee &Callee, const CallExpr *E,
/openbsd-src/gnu/llvm/libcxx/benchmarks/
H A Dallocation.bench.cpp115 using FnType = void(*)(benchmark::State&); in RegisterAllocBenchmarks() typedef
118 FnType func; in RegisterAllocBenchmarks()
/openbsd-src/gnu/llvm/clang/lib/Sema/
H A DSemaCoroutine.cpp54 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 DSemaOverload.cpp11562 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 DSemaLookup.cpp3162 const FunctionType *FnType = cast<FunctionType>(T); in addAssociatedClassesAndNamespaces() local
3163 T = FnType->getReturnType().getTypePtr(); in addAssociatedClassesAndNamespaces()
H A DSemaExprCXX.cpp3150 QualType FnType = Context.getFunctionType(Return, Params, EPI); in DeclareGlobalAllocationFunction() local
3152 Context, GlobalCtx, SourceLocation(), SourceLocation(), Name, FnType, in DeclareGlobalAllocationFunction()
H A DSemaExpr.cpp20636 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 DSemaCodeComplete.cpp5541 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 DAtomicExpandPass.cpp1934 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 DExpr.cpp1598 const FunctionType *FnType = CalleeType->castAs<FunctionType>(); in getCallReturnType() local
1599 return FnType->getReturnType(); in getCallReturnType()