Home
last modified time | relevance | path

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

/freebsd/contrib/llvm-project/clang/lib/CodeGen/
H A DCGCXX.cpp221 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 DCGDebugInfo.h245 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 DCodeGenModule.h1084 llvm::FunctionType *FnType = nullptr,
1087 return cast<llvm::Constant>(getAddrAndTypeOfCXXStructor(GD, FnInfo, FnType,
1095 llvm::FunctionType *FnType = nullptr, bool DontDefer = false,
H A DCGDebugInfo.cpp3956 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 DCodeGenModule.cpp2117 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 DCGExpr.cpp3475 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 DCGBlocks.cpp1161 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 DCGOpenMPRuntimeGPU.cpp3035 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 DCGClass.cpp1684 llvm::FunctionType *FnType = local
1686 llvm::FunctionCallee Fn = CGF.CGM.CreateRuntimeFunction(FnType, Name);
H A DCGCall.cpp5720 auto *FnType = llvm::FunctionType::get(CGM.VoidTy, /*isVarArg=*/false); in EmitCall() local
5722 CGM.CreateRuntimeFunction(FnType, "__asan_handle_no_return"); in EmitCall()
H A DCodeGenFunction.h4134 RValue EmitCall(QualType FnType, const CGCallee &Callee, const CallExpr *E,
/freebsd/contrib/llvm-project/clang/lib/Sema/
H A DSemaCoroutine.cpp56 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.cpp11973 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 DSemaLookup.cpp3179 const FunctionType *FnType = cast<FunctionType>(T); in addAssociatedClassesAndNamespaces() local
3180 T = FnType->getReturnType().getTypePtr(); in addAssociatedClassesAndNamespaces()
H A DSemaExprCXX.cpp3189 QualType FnType = Context.getFunctionType(Return, Params, EPI); in DeclareGlobalAllocationFunction() local
3191 Context, GlobalCtx, SourceLocation(), SourceLocation(), Name, FnType, in DeclareGlobalAllocationFunction()
H A DSemaExpr.cpp21389 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 DSemaChecking.cpp3178 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 DSemaCodeComplete.cpp5622 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 DAtomicExpandPass.cpp1911 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 DExpr.cpp1586 const FunctionType *FnType = CalleeType->castAs<FunctionType>(); in getCallReturnType() local
1587 return FnType->getReturnType(); in getCallReturnType()