| /freebsd/contrib/llvm-project/llvm/lib/Frontend/Atomic/ |
| H A D | Atomic.cpp | 43 FunctionType *FnType = FunctionType::get(ResultType, ArgTys, false); in EmitAtomicLibcall() local 52 FunctionCallee LibcallFn = M->getOrInsertFunction(fnName, FnType, fnAttrs); in EmitAtomicLibcall() 138 FunctionType *FnType = FunctionType::get(ResultTy, ArgTys, false); in EmitAtomicLoadLibcall() local 140 M->getOrInsertFunction("__atomic_load", FnType, Attr); in EmitAtomicLoadLibcall() 177 FunctionType *FnType = FunctionType::get(Type::getVoidTy(Ctx), ArgTys, false); in EmitAtomicStoreLibcall() local 179 M->getOrInsertFunction("__atomic_store", FnType, Attr); in EmitAtomicStoreLibcall()
|
| /freebsd/contrib/llvm-project/clang/lib/CodeGen/ |
| H A D | CGCXX.cpp | 219 GlobalDecl GD, const CGFunctionInfo *FnInfo, llvm::FunctionType *FnType, in getAddrAndTypeOfCXXStructor() argument 232 if (!FnType) { in getAddrAndTypeOfCXXStructor() 235 FnType = getTypes().GetFunctionType(*FnInfo); in getAddrAndTypeOfCXXStructor() 239 getMangledName(GD), FnType, GD, /*ForVTable=*/false, DontDefer, in getAddrAndTypeOfCXXStructor() 241 return {FnType, Ptr}; in getAddrAndTypeOfCXXStructor()
|
| H A D | CGDebugInfo.h | 275 getOrCreateFunctionType(const Decl *D, QualType FnType, llvm::DIFile *F); 497 SourceLocation ScopeLoc, QualType FnType, 508 QualType FnType, llvm::Function *Fn = nullptr); 791 getObjCMethodDeclaration(const Decl *D, llvm::DISubroutineType *FnType,
|
| H A D | CGBlocks.cpp | 1180 QualType FnType = BPT->getPointeeType(); in EmitBlockCallExpr() local 1199 EmitCallArgs(Args, FnType->getAs<FunctionProtoType>(), E->arguments()); in EmitBlockCallExpr() 1220 EmitCallArgs(Args, FnType->getAs<FunctionProtoType>(), E->arguments()); in EmitBlockCallExpr() 1226 const FunctionType *FuncTy = FnType->castAs<FunctionType>(); in EmitBlockCallExpr() 1236 EmitPointerAuthInfo(AuthSchema, FuncPtr, GlobalDecl(), FnType); in EmitBlockCallExpr() 1351 QualType FnType = blockInfo.getBlockExpr() in buildGlobalBlock() local 1355 fields.addSignedPointer(blockFn, Schema, GlobalDecl(), FnType); in buildGlobalBlock()
|
| H A D | CGDebugInfo.cpp | 4359 QualType FnType = CGM.getContext().getFunctionType( in getFunctionFwdDeclOrStub() local 4371 getOrCreateFunctionType(GD.getDecl(), FnType, Unit), 0, Flags, SPFlags, in getFunctionFwdDeclOrStub() 4379 getOrCreateFunctionType(GD.getDecl(), FnType, Unit), 0, Flags, SPFlags, in getFunctionFwdDeclOrStub() 4493 const Decl *D, llvm::DISubroutineType *FnType, unsigned LineNo, in getObjCMethodDeclaration() argument 4522 InterfaceType->getFile(), LineNo, FnType, LineNo, Flags, SPFlags); in getObjCMethodDeclaration() 4531 QualType FnType, in getOrCreateFunctionType() argument 4544 return getOrCreateMethodTypeForDestructor(Method, F, FnType); in getOrCreateFunctionType() 4550 const auto *FTy = FnType->getAs<FunctionType>(); in getOrCreateFunctionType() 4570 else if (auto *FPT = dyn_cast<FunctionProtoType>(FnType)) in getOrCreateFunctionType() 4597 if (const auto *FPT = dyn_cast<FunctionProtoType>(FnType)) in getOrCreateFunctionType() [all …]
|
| H A D | CodeGenModule.h | 1223 llvm::FunctionType *FnType = nullptr, 1226 return cast<llvm::Constant>(getAddrAndTypeOfCXXStructor(GD, FnInfo, FnType, 1234 llvm::FunctionType *FnType = nullptr, bool DontDefer = false,
|
| H A D | CodeGenModule.cpp | 2341 if (auto *FnType = T->getAs<FunctionProtoType>()) in CreateKCFITypeId() local 2343 FnType->getReturnType(), FnType->getParamTypes(), in CreateKCFITypeId() 2344 FnType->getExtProtoInfo().withExceptionSpec(EST_None)); in CreateKCFITypeId() 7846 if (auto *FnType = T->getAs<FunctionProtoType>()) in CreateMetadataIdentifierImpl() local 7848 FnType->getReturnType(), FnType->getParamTypes(), in CreateMetadataIdentifierImpl() 7849 FnType->getExtProtoInfo().withExceptionSpec(EST_None)); in CreateMetadataIdentifierImpl() 7899 if (auto *FnType = Ty->getAs<FunctionProtoType>()) { in GeneralizeFunctionType() local 7901 for (auto &Param : FnType->param_types()) in GeneralizeFunctionType() 7905 GeneralizeType(Ctx, FnType->getReturnType()), in GeneralizeFunctionType() 7906 GeneralizedParams, FnType->getExtProtoInfo()); in GeneralizeFunctionType() [all …]
|
| H A D | CGExpr.cpp | 3665 llvm::FunctionType *FnType, in emitCheckHandlerCall() argument 3699 FnType, FnName, in emitCheckHandlerCall() 3817 llvm::FunctionType *FnType = in EmitCheck() local 3823 emitCheckHandlerCall(*this, FnType, Args, CheckHandler, RecoverKind, in EmitCheck() 3833 emitCheckHandlerCall(*this, FnType, Args, CheckHandler, RecoverKind, true, in EmitCheck() 3836 emitCheckHandlerCall(*this, FnType, Args, CheckHandler, RecoverKind, false, in EmitCheck() 6376 const auto *FnType = cast<FunctionType>(PointeeType); in EmitCall() local 6380 CGM.getTargetCodeGenInfo().setOCLKernelStubCallingConvention(FnType); in EmitCall() 6396 MD = CGM.CreateMetadataIdentifierGeneralized(QualType(FnType, 0)); in EmitCall() 6398 MD = CGM.CreateMetadataIdentifierForType(QualType(FnType, 0)); in EmitCall() [all …]
|
| H A D | CGHLSLBuiltins.cpp | 228 QualType FnType = in getSpecConstantFunctionName() local 233 SourceLocation(), FuncName, FnType, /*TSI=*/nullptr, SC_Extern); in getSpecConstantFunctionName()
|
| H A D | CGOpenMPRuntimeGPU.cpp | 1828 auto *FnType = OutlinedFn.getFunctionType(); in emitOutlinedFunctionCall() local 1830 if (FnType->isVarArg() && FnType->getNumParams() <= I) { in emitOutlinedFunctionCall() 1834 llvm::Type *TargetType = FnType->getParamType(I); in emitOutlinedFunctionCall()
|
| H A D | CGClass.cpp | 1697 llvm::FunctionType *FnType = local 1699 llvm::FunctionCallee Fn = CGF.CGM.CreateRuntimeFunction(FnType, Name);
|
| H A D | CGCall.cpp | 5996 auto *FnType = llvm::FunctionType::get(CGM.VoidTy, /*isVarArg=*/false); in EmitCall() local 5998 CGM.CreateRuntimeFunction(FnType, "__asan_handle_no_return"); in EmitCall()
|
| H A D | CodeGenFunction.h | 4518 RValue EmitCall(QualType FnType, const CGCallee &Callee, const CallExpr *E,
|
| /freebsd/contrib/llvm-project/clang/lib/Sema/ |
| H A D | SemaARM.cpp | 565 SemaARM::ArmStreamingType FnType = getArmStreamingFnType(FD); in checkArmStreamingBuiltin() local 576 if (FnType == SemaARM::ArmStreaming && !CallerFeatures["sme"]) in checkArmStreamingBuiltin() 607 (SatisfiesSVE && FnType == SemaARM::ArmStreamingCompatible)) in checkArmStreamingBuiltin() 618 if (FnType != SemaARM::ArmNonStreaming && in checkArmStreamingBuiltin() 622 else if (FnType != SemaARM::ArmStreaming && in checkArmStreamingBuiltin()
|
| H A D | HeuristicResolver.cpp | 332 if (const FunctionType *FnType = CalleeType->getAs<FunctionType>()) { in resolveTypeOfCallExpr() local 333 if (const auto *D = resolveTypeToTagDecl(FnType->getReturnType())) { in resolveTypeOfCallExpr()
|
| H A D | SemaAPINotes.cpp | 406 const FunctionType *FnType = Function->getType()->castAs<FunctionType>(); in ApplyNullability() local 407 if (const FunctionProtoType *proto = dyn_cast<FunctionProtoType>(FnType)) in ApplyNullability() 412 Context.getFunctionNoProtoType(*Modified, FnType->getExtInfo())); in ApplyNullability()
|
| H A D | SemaCoroutine.cpp | 54 const FunctionProtoType *FnType = FD->getType()->castAs<FunctionProtoType>(); in lookupPromiseType() local 69 AddArg(FnType->getReturnType()); in lookupPromiseType() 82 T = FnType->getRefQualifier() == RQ_RValue in lookupPromiseType() 88 for (QualType T : FnType->getParamTypes()) in lookupPromiseType()
|
| H A D | SemaOverload.cpp | 12784 QualType FnType = Cand->Surrogate->getConversionType(); in NoteSurrogateCandidate() local 12789 FnType->getAs<LValueReferenceType>()) { in NoteSurrogateCandidate() 12790 FnType = FnTypeRef->getPointeeType(); in NoteSurrogateCandidate() 12793 FnType->getAs<RValueReferenceType>()) { in NoteSurrogateCandidate() 12794 FnType = FnTypeRef->getPointeeType(); in NoteSurrogateCandidate() 12797 if (const PointerType *FnTypePtr = FnType->getAs<PointerType>()) { in NoteSurrogateCandidate() 12798 FnType = FnTypePtr->getPointeeType(); in NoteSurrogateCandidate() 12802 FnType = QualType(FnType->getAs<FunctionType>(), 0); in NoteSurrogateCandidate() 12804 if (isPointer) FnType = S.Context.getPointerType(FnType); in NoteSurrogateCandidate() 12805 if (isRValueReference) FnType = S.Context.getRValueReferenceType(FnType); in NoteSurrogateCandidate() [all …]
|
| H A D | SemaLookup.cpp | 3230 const FunctionType *FnType = cast<FunctionType>(T); in addAssociatedClassesAndNamespaces() local 3231 T = FnType->getReturnType().getTypePtr(); in addAssociatedClassesAndNamespaces()
|
| H A D | SemaExprCXX.cpp | 3503 QualType FnType = Context.getFunctionType(Return, Params, EPI); in DeclareGlobalAllocationFunction() local 3505 Context, GlobalCtx, SourceLocation(), SourceLocation(), Name, FnType, in DeclareGlobalAllocationFunction()
|
| H A D | SemaExpr.cpp | 20882 const FunctionType *FnType = CalleeType->castAs<FunctionType>(); in VisitCallExpr() local 20902 const FunctionProtoType *Proto = dyn_cast<FunctionProtoType>(FnType); in VisitCallExpr() 20936 FnType->getExtInfo()); in VisitCallExpr() 21047 const FunctionType *FnType = FDT->castAs<FunctionType>(); in resolveDecl() local 21048 const FunctionProtoType *Proto = dyn_cast_or_null<FunctionProtoType>(FnType); in resolveDecl()
|
| H A D | SemaCodeComplete.cpp | 5795 if (const FunctionType *FnType = Callee->getAs<FunctionType>()) in getApproximateType() local 5796 return FnType->getReturnType().getNonReferenceType(); in getApproximateType()
|
| H A D | SemaDeclCXX.cpp | 16581 auto *FnType = FnDecl->getType()->castAs<FunctionType>(); in CheckOperatorNewDeleteTypes() local 16582 QualType CanResultType = NormalizeType(FnType->getReturnType()); in CheckOperatorNewDeleteTypes()
|
| /freebsd/contrib/llvm-project/llvm/lib/CodeGen/ |
| H A D | AtomicExpandPass.cpp | 2063 FunctionType *FnType = FunctionType::get(ResultTy, ArgTys, false); in expandAtomicOpToLibcall() local 2065 M->getOrInsertFunction(TLI->getLibcallName(RTLibType), FnType, Attr); in expandAtomicOpToLibcall()
|
| /freebsd/contrib/llvm-project/clang/lib/AST/ |
| H A D | Expr.cpp | 1628 const FunctionType *FnType = CalleeType->castAs<FunctionType>(); in getCallReturnType() local 1629 return FnType->getReturnType(); in getCallReturnType()
|