Home
last modified time | relevance | path

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

/netbsd-src/external/apache2/llvm/dist/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.h236 getOrCreateFunctionType(const Decl *D, QualType FnType, llvm::DIFile *F);
425 SourceLocation ScopeLoc, QualType FnType,
436 QualType FnType, llvm::Function *Fn = nullptr);
644 getObjCMethodDeclaration(const Decl *D, llvm::DISubroutineType *FnType,
H A DCodeGenModule.h1023 llvm::FunctionType *FnType = nullptr,
1026 return cast<llvm::Constant>(getAddrAndTypeOfCXXStructor(GD, FnInfo, FnType,
1034 llvm::FunctionType *FnType = nullptr, bool DontDefer = false,
H A DCGDebugInfo.cpp3650 QualType FnType = CGM.getContext().getFunctionType( in getFunctionFwdDeclOrStub() local
3662 getOrCreateFunctionType(GD.getDecl(), FnType, Unit), 0, Flags, SPFlags, in getFunctionFwdDeclOrStub()
3668 getOrCreateFunctionType(GD.getDecl(), FnType, Unit), 0, Flags, SPFlags, in getFunctionFwdDeclOrStub()
3771 const Decl *D, llvm::DISubroutineType *FnType, unsigned LineNo, in getObjCMethodDeclaration() argument
3800 InterfaceType->getFile(), LineNo, FnType, LineNo, Flags, SPFlags); in getObjCMethodDeclaration()
3809 QualType FnType, in getOrCreateFunctionType() argument
3822 const auto *FTy = FnType->getAs<FunctionType>(); in getOrCreateFunctionType()
3842 else if (auto *FPT = dyn_cast<FunctionProtoType>(FnType)) in getOrCreateFunctionType()
3869 if (const auto *FPT = dyn_cast<FunctionProtoType>(FnType)) in getOrCreateFunctionType()
3878 return cast<llvm::DISubroutineType>(getOrCreateType(FnType, F)); in getOrCreateFunctionType()
[all …]
H A DCGExpr.cpp3152 llvm::FunctionType *FnType, in emitCheckHandlerCall() argument
3186 FnType, FnName, in emitCheckHandlerCall()
3283 llvm::FunctionType *FnType = in EmitCheck() local
3289 emitCheckHandlerCall(*this, FnType, Args, CheckHandler, RecoverKind, in EmitCheck()
3299 emitCheckHandlerCall(*this, FnType, Args, CheckHandler, RecoverKind, true, in EmitCheck()
3302 emitCheckHandlerCall(*this, FnType, Args, CheckHandler, RecoverKind, false, in EmitCheck()
5185 const auto *FnType = cast<FunctionType>(PointeeType); in EmitCall() local
5196 MD = CGM.CreateMetadataIdentifierGeneralized(QualType(FnType, 0)); in EmitCall()
5198 MD = CGM.CreateMetadataIdentifierForType(QualType(FnType, 0)); in EmitCall()
5211 EmitCheckTypeDescriptor(QualType(FnType, 0)), in EmitCall()
[all …]
H A DCGBlocks.cpp1184 QualType FnType = BPT->getPointeeType(); in EmitBlockCallExpr() local
1201 EmitCallArgs(Args, FnType->getAs<FunctionProtoType>(), E->arguments()); in EmitBlockCallExpr()
1222 EmitCallArgs(Args, FnType->getAs<FunctionProtoType>(), E->arguments()); in EmitBlockCallExpr()
1228 const FunctionType *FuncTy = FnType->castAs<FunctionType>(); in EmitBlockCallExpr()
H A DCodeGenModule.cpp6246 if (auto *FnType = Ty->getAs<FunctionProtoType>()) { in GeneralizeFunctionType() local
6248 for (auto &Param : FnType->param_types()) in GeneralizeFunctionType()
6252 GeneralizeType(Ctx, FnType->getReturnType()), in GeneralizeFunctionType()
6253 GeneralizedParams, FnType->getExtProtoInfo()); in GeneralizeFunctionType()
6256 if (auto *FnType = Ty->getAs<FunctionNoProtoType>()) in GeneralizeFunctionType() local
6258 GeneralizeType(Ctx, FnType->getReturnType())); in GeneralizeFunctionType()
H A DCGOpenMPRuntimeGPU.cpp3996 auto *FnType = OutlinedFn.getFunctionType(); in emitOutlinedFunctionCall() local
3998 if (FnType->isVarArg() && FnType->getNumParams() <= I) { in emitOutlinedFunctionCall()
4002 llvm::Type *TargetType = FnType->getParamType(I); in emitOutlinedFunctionCall()
H A DCodeGenFunction.cpp990 QualType FnType = getContext().getFunctionType( in StartFunction() local
992 DI->emitFunctionStart(GD, Loc, StartLoc, FnType, CurFn, CurFuncIsThunk); in StartFunction()
H A DCGClass.cpp1667 llvm::FunctionType *FnType = in EmitSanitizerDtorCallback() local
1670 CGF.CGM.CreateRuntimeFunction(FnType, "__sanitizer_dtor_callback"); in EmitSanitizerDtorCallback()
H A DCGCall.cpp5327 auto *FnType = llvm::FunctionType::get(CGM.VoidTy, /*isVarArg=*/false); in EmitCall() local
5329 CGM.CreateRuntimeFunction(FnType, "__asan_handle_no_return"); in EmitCall()
H A DCodeGenFunction.h3951 RValue EmitCall(QualType FnType, const CGCallee &Callee, const CallExpr *E,
/netbsd-src/external/apache2/llvm/dist/libcxx/benchmarks/
H A Dallocation.bench.cpp116 using FnType = void(*)(benchmark::State&); in RegisterAllocBenchmarks() typedef
119 FnType func; in RegisterAllocBenchmarks()
/netbsd-src/external/apache2/llvm/dist/clang/lib/Sema/
H A DSemaCoroutine.cpp54 const FunctionProtoType *FnType = FD->getType()->castAs<FunctionProtoType>(); in lookupPromiseType() local
76 AddArg(FnType->getReturnType()); in lookupPromiseType()
89 T = FnType->getRefQualifier() == RQ_RValue in lookupPromiseType()
95 for (QualType T : FnType->getParamTypes()) in lookupPromiseType()
H A DSemaOverload.cpp11230 QualType FnType = Cand->Surrogate->getConversionType(); in NoteSurrogateCandidate() local
11235 FnType->getAs<LValueReferenceType>()) { in NoteSurrogateCandidate()
11236 FnType = FnTypeRef->getPointeeType(); in NoteSurrogateCandidate()
11239 FnType->getAs<RValueReferenceType>()) { in NoteSurrogateCandidate()
11240 FnType = FnTypeRef->getPointeeType(); in NoteSurrogateCandidate()
11243 if (const PointerType *FnTypePtr = FnType->getAs<PointerType>()) { in NoteSurrogateCandidate()
11244 FnType = FnTypePtr->getPointeeType(); in NoteSurrogateCandidate()
11248 FnType = QualType(FnType->getAs<FunctionType>(), 0); in NoteSurrogateCandidate()
11250 if (isPointer) FnType = S.Context.getPointerType(FnType); in NoteSurrogateCandidate()
11251 if (isRValueReference) FnType = S.Context.getRValueReferenceType(FnType); in NoteSurrogateCandidate()
[all …]
H A DSemaLookup.cpp2895 const FunctionType *FnType = cast<FunctionType>(T); in addAssociatedClassesAndNamespaces() local
2896 T = FnType->getReturnType().getTypePtr(); in addAssociatedClassesAndNamespaces()
H A DSemaExpr.cpp19153 const FunctionType *FnType = CalleeType->castAs<FunctionType>(); in VisitCallExpr() local
19172 const FunctionProtoType *Proto = dyn_cast<FunctionProtoType>(FnType); in VisitCallExpr()
19213 FnType->getExtInfo()); in VisitCallExpr()
19324 const FunctionType *FnType = FDT->castAs<FunctionType>(); in resolveDecl() local
19325 const FunctionProtoType *Proto = dyn_cast_or_null<FunctionProtoType>(FnType); in resolveDecl()
H A DSemaExprCXX.cpp3040 QualType FnType = Context.getFunctionType(Return, Params, EPI); in DeclareGlobalAllocationFunction() local
3043 FnType, /*TInfo=*/nullptr, SC_None, false, true); in DeclareGlobalAllocationFunction()
H A DSemaCodeComplete.cpp5223 if (const FunctionType *FnType = Callee->getAs<FunctionType>()) in getApproximateType() local
5224 return FnType->getReturnType().getNonReferenceType(); in getApproximateType()
/netbsd-src/external/apache2/llvm/dist/llvm/lib/CodeGen/
H A DAtomicExpandPass.cpp1822 FunctionType *FnType = FunctionType::get(ResultTy, ArgTys, false); in expandAtomicOpToLibcall() local
1824 M->getOrInsertFunction(TLI->getLibcallName(RTLibType), FnType, Attr); in expandAtomicOpToLibcall()
/netbsd-src/external/apache2/llvm/dist/clang/lib/AST/
H A DExpr.cpp1478 const FunctionType *FnType = CalleeType->castAs<FunctionType>(); in getCallReturnType() local
1479 return FnType->getReturnType(); in getCallReturnType()