| /llvm-project-15.0.7/libcxxabi/test/ |
| H A D | catch_member_function_pointer_02.pass.cpp | 25 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 D | catch_function_03.pass.cpp | 19 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 D | addr-of-overloaded-function-casting.cpp | 66 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 D | builtins.cpp | 73 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 D | function_type_default_deleter.fail.cpp | 19 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 D | CGCXX.cpp | 222 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 D | CGDebugInfo.h | 239 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 D | CodeGenModule.h | 1060 llvm::FunctionType *FnType = nullptr, 1063 return cast<llvm::Constant>(getAddrAndTypeOfCXXStructor(GD, FnInfo, FnType, 1071 llvm::FunctionType *FnType = nullptr, bool DontDefer = false,
|
| H A D | CGDebugInfo.cpp | 3793 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 D | CGExpr.cpp | 3241 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 D | CGBlocks.cpp | 1190 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 D | CodeGenModule.cpp | 6725 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 D | CGOpenMPRuntimeGPU.cpp | 3462 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 D | CGClass.cpp | 1662 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 D | resize_tls_dynamic.cpp | 40 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 D | allocation.bench.cpp | 115 using FnType = void(*)(benchmark::State&); in RegisterAllocBenchmarks() typedef 118 FnType func; in RegisterAllocBenchmarks()
|
| /llvm-project-15.0.7/bolt/include/bolt/Core/ |
| H A D | DynoStats.h | 160 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 D | HeuristicResolver.cpp | 146 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 D | apply.pass.cpp | 236 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 D | LocalTest.cpp | 1036 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 D | SampleProfTest.cpp | 357 FunctionType *FnType = in createFunctionWithSampleProfileElisionPolicy() local 359 auto Inserted = M->getOrInsertFunction(Fname, FnType); in createFunctionWithSampleProfileElisionPolicy()
|
| /llvm-project-15.0.7/clang/lib/Sema/ |
| H A D | SemaCoroutine.cpp | 54 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 D | SemaOverload.cpp | 11415 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 D | SemaLookup.cpp | 3151 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 D | AtomicExpandPass.cpp | 1881 FunctionType *FnType = FunctionType::get(ResultTy, ArgTys, false); in expandAtomicOpToLibcall() local 1883 M->getOrInsertFunction(TLI->getLibcallName(RTLibType), FnType, Attr); in expandAtomicOpToLibcall()
|