Home
last modified time | relevance | path

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

12

/llvm-project-15.0.7/libcxxabi/test/
H A Dcatch_member_function_pointer_02.pass.cpp25 template<bool Noexcept> using FnType = void (X::*)() noexcept(Noexcept); typedef
36 catch (FnType<CatchNoexcept> p) in check()
48 FnType<true> p = &X::f<true>; in check_deep()
53 catch (FnType<false> *q) in check_deep()
57 catch (FnType<true> *q) in check_deep()
H A Dcatch_function_03.pass.cpp19 template<bool Noexcept> using FnType = void() noexcept(Noexcept); typedef
30 catch (FnType<CatchNoexcept> *p) in check()
47 catch (FnType<false> **q) in check_deep()
51 catch (FnType<true> **q) in check_deep()
/llvm-project-15.0.7/clang/test/SemaCXX/
H A Daddr-of-overloaded-function-casting.cpp66 typedef void (FnType)(int); in main() typedef
67 FnType a = static_cast<FnType>(f); // expected-error{{address of overloaded function}} in main()
68 FnType b = (FnType)(f); // expected-error{{address of overloaded function}} in main()
H A Dbuiltins.cpp73 using FnType = int(char); typedef
79 void test_builtin_launder_diags(void *vp, const void *cvp, FnType *fnp, in test_builtin_launder_diags()
/llvm-project-15.0.7/libcxx/test/libcxx/utilities/memory/util.smartptr/util.smartptr.shared/
H A Dfunction_type_default_deleter.fail.cpp19 using FnType = void(Tag<ID>); typedef
25 FnType<ID>* getFn() { in getFn()
49 std::default_delete<FnType<5>> deleter{}; // expected-note {{requested here}} in main()
/llvm-project-15.0.7/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.h239 getOrCreateFunctionType(const Decl *D, QualType FnType, llvm::DIFile *F);
441 SourceLocation ScopeLoc, QualType FnType,
452 QualType FnType, llvm::Function *Fn = nullptr);
687 getObjCMethodDeclaration(const Decl *D, llvm::DISubroutineType *FnType,
H A DCodeGenModule.h1060 llvm::FunctionType *FnType = nullptr,
1063 return cast<llvm::Constant>(getAddrAndTypeOfCXXStructor(GD, FnInfo, FnType,
1071 llvm::FunctionType *FnType = nullptr, bool DontDefer = false,
H A DCGDebugInfo.cpp3793 QualType FnType = CGM.getContext().getFunctionType( in getFunctionFwdDeclOrStub() local
3811 getOrCreateFunctionType(GD.getDecl(), FnType, Unit), 0, Flags, SPFlags, in getFunctionFwdDeclOrStub()
3925 const Decl *D, llvm::DISubroutineType *FnType, unsigned LineNo, in getObjCMethodDeclaration() argument
3954 InterfaceType->getFile(), LineNo, FnType, LineNo, Flags, SPFlags); in getObjCMethodDeclaration()
3963 QualType FnType, in getOrCreateFunctionType() argument
3976 const auto *FTy = FnType->getAs<FunctionType>(); in getOrCreateFunctionType()
3996 else if (auto *FPT = dyn_cast<FunctionProtoType>(FnType)) in getOrCreateFunctionType()
4023 if (const auto *FPT = dyn_cast<FunctionProtoType>(FnType)) in getOrCreateFunctionType()
4032 return cast<llvm::DISubroutineType>(getOrCreateType(FnType, F)); in getOrCreateFunctionType()
4155 QualType FnType, llvm::Function *Fn) { in EmitFunctionDecl() argument
[all …]
H A DCGExpr.cpp3241 llvm::FunctionType *FnType, in emitCheckHandlerCall() argument
3275 FnType, FnName, in emitCheckHandlerCall()
3372 llvm::FunctionType *FnType = in EmitCheck() local
3378 emitCheckHandlerCall(*this, FnType, Args, CheckHandler, RecoverKind, in EmitCheck()
5379 const auto *FnType = cast<FunctionType>(PointeeType); in EmitCall() local
5390 MD = CGM.CreateMetadataIdentifierGeneralized(QualType(FnType, 0)); in EmitCall()
5392 MD = CGM.CreateMetadataIdentifierForType(QualType(FnType, 0)); in EmitCall()
5405 EmitCheckTypeDescriptor(QualType(FnType, 0)), in EmitCall()
5448 EmitCallArgs(Args, dyn_cast<FunctionProtoType>(FnType), E->arguments(), in EmitCall()
5452 Args, FnType, /*ChainCall=*/Chain); in EmitCall()
[all …]
H A DCGBlocks.cpp1190 QualType FnType = BPT->getPointeeType(); in EmitBlockCallExpr() local
1207 EmitCallArgs(Args, FnType->getAs<FunctionProtoType>(), E->arguments()); in EmitBlockCallExpr()
1228 EmitCallArgs(Args, FnType->getAs<FunctionProtoType>(), E->arguments()); in EmitBlockCallExpr()
1234 const FunctionType *FuncTy = FnType->castAs<FunctionType>(); in EmitBlockCallExpr()
H A DCodeGenModule.cpp6725 if (auto *FnType = T->getAs<FunctionProtoType>()) in CreateMetadataIdentifierImpl() local
6727 FnType->getReturnType(), FnType->getParamTypes(), in CreateMetadataIdentifierImpl()
6728 FnType->getExtProtoInfo().withExceptionSpec(EST_None)); in CreateMetadataIdentifierImpl()
6773 if (auto *FnType = Ty->getAs<FunctionProtoType>()) { in GeneralizeFunctionType() local
6775 for (auto &Param : FnType->param_types()) in GeneralizeFunctionType()
6779 GeneralizeType(Ctx, FnType->getReturnType()), in GeneralizeFunctionType()
6780 GeneralizedParams, FnType->getExtProtoInfo()); in GeneralizeFunctionType()
6783 if (auto *FnType = Ty->getAs<FunctionNoProtoType>()) in GeneralizeFunctionType() local
6785 GeneralizeType(Ctx, FnType->getReturnType())); in GeneralizeFunctionType()
H A DCGOpenMPRuntimeGPU.cpp3462 auto *FnType = OutlinedFn.getFunctionType(); in emitOutlinedFunctionCall() local
3464 if (FnType->isVarArg() && FnType->getNumParams() <= I) { in emitOutlinedFunctionCall()
3468 llvm::Type *TargetType = FnType->getParamType(I); in emitOutlinedFunctionCall()
H A DCGClass.cpp1662 llvm::FunctionType *FnType = in EmitSanitizerDtorCallback() local
1665 CGF.CGM.CreateRuntimeFunction(FnType, "__sanitizer_dtor_callback"); in EmitSanitizerDtorCallback()
/llvm-project-15.0.7/compiler-rt/test/sanitizer_common/TestCases/Linux/
H A Dresize_tls_dynamic.cpp40 typedef void (*FnType)(char c); in main() typedef
41 ((FnType)dlsym(handle, "StoreToTLS"))(i); in main()
/llvm-project-15.0.7/libcxx/benchmarks/
H A Dallocation.bench.cpp115 using FnType = void(*)(benchmark::State&); in RegisterAllocBenchmarks() typedef
118 FnType func; in RegisterAllocBenchmarks()
/llvm-project-15.0.7/bolt/include/bolt/Core/
H A DDynoStats.h160 template <typename FnType, typename FuncsType>
161 inline void callWithDynoStats(FnType &&Func, const FuncsType &Funcs, in callWithDynoStats()
/llvm-project-15.0.7/clang-tools-extra/clangd/
H A DHeuristicResolver.cpp146 if (const FunctionType *FnType = CalleeType->getAs<FunctionType>()) { in resolveTypeOfCallExpr() local
148 resolveTypeToRecordDecl(FnType->getReturnType().getTypePtr())) { in resolveTypeOfCallExpr()
/llvm-project-15.0.7/libcxx/test/std/utilities/tuple/tuple.tuple/tuple.apply/
H A Dapply.pass.cpp236 using FnType = RawInvokeResult (*) (index<Func>); in test() typedef
237 FnType fn = f; in test()
/llvm-project-15.0.7/llvm/unittests/Transforms/Utils/
H A DLocalTest.cpp1036 FunctionType *FnType = in TEST() local
1042 Function *TestBody = Function::Create(FnType, GlobalValue::ExternalLinkage, in TEST()
1048 FunctionCallee Intrin = M.getOrInsertFunction("llvm.foo", FnType); in TEST()
1049 FunctionCallee Func = M.getOrInsertFunction("foo", FnType); in TEST()
/llvm-project-15.0.7/llvm/unittests/ProfileData/
H A DSampleProfTest.cpp357 FunctionType *FnType = in createFunctionWithSampleProfileElisionPolicy() local
359 auto Inserted = M->getOrInsertFunction(Fname, FnType); in createFunctionWithSampleProfileElisionPolicy()
/llvm-project-15.0.7/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.cpp11415 QualType FnType = Cand->Surrogate->getConversionType(); in NoteSurrogateCandidate() local
11420 FnType->getAs<LValueReferenceType>()) { in NoteSurrogateCandidate()
11421 FnType = FnTypeRef->getPointeeType(); in NoteSurrogateCandidate()
11424 FnType->getAs<RValueReferenceType>()) { in NoteSurrogateCandidate()
11425 FnType = FnTypeRef->getPointeeType(); in NoteSurrogateCandidate()
11429 FnType = FnTypePtr->getPointeeType(); in NoteSurrogateCandidate()
11433 FnType = QualType(FnType->getAs<FunctionType>(), 0); in NoteSurrogateCandidate()
11435 if (isPointer) FnType = S.Context.getPointerType(FnType); in NoteSurrogateCandidate()
11436 if (isRValueReference) FnType = S.Context.getRValueReferenceType(FnType); in NoteSurrogateCandidate()
11437 if (isLValueReference) FnType = S.Context.getLValueReferenceType(FnType); in NoteSurrogateCandidate()
[all …]
H A DSemaLookup.cpp3151 const FunctionType *FnType = cast<FunctionType>(T); in addAssociatedClassesAndNamespaces() local
3152 T = FnType->getReturnType().getTypePtr(); in addAssociatedClassesAndNamespaces()
/llvm-project-15.0.7/llvm/lib/CodeGen/
H A DAtomicExpandPass.cpp1881 FunctionType *FnType = FunctionType::get(ResultTy, ArgTys, false); in expandAtomicOpToLibcall() local
1883 M->getOrInsertFunction(TLI->getLibcallName(RTLibType), FnType, Attr); in expandAtomicOpToLibcall()

12