Home
last modified time | relevance | path

Searched refs:FnTy (Results 1 – 25 of 61) sorted by relevance

123

/external/llvm-project/clang-tools-extra/clang-tidy/modernize/
DUseNoexceptCheck.cpp55 const FunctionProtoType *FnTy = nullptr; in check() local
61 FnTy = FuncDecl->getType()->getAs<FunctionProtoType>(); in check()
67 FnTy = ParmDecl->getType() in check()
80 assert(FnTy && "FunctionProtoType is null."); in check()
81 if (isUnresolvedExceptionSpec(FnTy->getExceptionSpecType())) in check()
90 bool IsNoThrow = FnTy->isNothrow(); in check()
/external/llvm-project/llvm/unittests/Support/
DKnownBitsTest.h22 template <typename FnTy> void ForeachKnownBits(unsigned Bits, FnTy Fn) { in ForeachKnownBits()
37 template <typename FnTy>
38 void ForeachNumInKnownBits(const KnownBits &Known, FnTy Fn) { in ForeachNumInKnownBits()
/external/llvm-project/clang/test/Sema/
Dwarn-cast-align.c64 typedef int (*FnTy)(void); typedef
67 FnTy test5(void) { in test5()
68 return (FnTy)&func5; in test5()
/external/clang/lib/CodeGen/
DCGOpenMPRuntime.cpp754 auto *FnTy = CGM.getTypes().GetFunctionType(FnInfo); in emitCombinerOrInitializer() local
756 FnTy, llvm::GlobalValue::InternalLinkage, in emitCombinerOrInitializer()
1064 llvm::FunctionType *FnTy = in createRuntimeFunction() local
1066 RTLFn = CGM.CreateRuntimeFunction(FnTy, "__kmpc_fork_call"); in createRuntimeFunction()
1072 llvm::FunctionType *FnTy = in createRuntimeFunction() local
1074 RTLFn = CGM.CreateRuntimeFunction(FnTy, "__kmpc_global_thread_num"); in createRuntimeFunction()
1083 llvm::FunctionType *FnTy = in createRuntimeFunction() local
1085 RTLFn = CGM.CreateRuntimeFunction(FnTy, "__kmpc_threadprivate_cached"); in createRuntimeFunction()
1094 llvm::FunctionType *FnTy = in createRuntimeFunction() local
1096 RTLFn = CGM.CreateRuntimeFunction(FnTy, "__kmpc_critical"); in createRuntimeFunction()
[all …]
DObjectFilePCHContainerOperations.cpp111 QualType FnTy = Ctx.getFunctionType(RetTy, ArgTypes, in VisitFunctionDecl() local
113 if (CanRepresent(FnTy.getTypePtr())) in VisitFunctionDecl()
114 DI.EmitFunctionDecl(D, D->getLocation(), FnTy); in VisitFunctionDecl()
130 QualType FnTy = Ctx.getFunctionType(RetTy, ArgTypes, in VisitObjCMethodDecl() local
132 if (CanRepresent(FnTy.getTypePtr())) in VisitObjCMethodDecl()
133 DI.EmitFunctionDecl(D, D->getLocation(), FnTy); in VisitObjCMethodDecl()
/external/clang/test/SemaCXX/
Dunaddressable-functions.cpp105 using FnTy = void (*)(); typedef
114 FnTy Fn; in test()
125 FnTy Fn; in testUnavailable()
140 FnTy Fn; in testAccess()
/external/llvm-project/clang/test/SemaCXX/
Dunaddressable-functions.cpp105 using FnTy = void (*)(); typedef
114 FnTy Fn; in test()
125 FnTy Fn; in testUnavailable()
140 FnTy Fn; in testAccess()
Dcompare-cxx2a.cpp214 using FnTy = void(int); typedef
220 void test_nullptr(int *x, FnTy *fp, MemFnTy memp, MemDataTy memdp) { in test_nullptr()
235 void test_compatible_pointer(FnTy *f1, FnTy2 *f2, FnTy3 *f3) { in test_compatible_pointer()
/external/llvm-project/clang/lib/CodeGen/
DObjectFilePCHContainerOperations.cpp108 QualType FnTy = Ctx.getFunctionType(RetTy, ArgTypes, in VisitFunctionDecl() local
110 if (CanRepresent(FnTy.getTypePtr())) in VisitFunctionDecl()
111 DI.EmitFunctionDecl(D, D->getLocation(), FnTy); in VisitFunctionDecl()
127 QualType FnTy = Ctx.getFunctionType(RetTy, ArgTypes, in VisitObjCMethodDecl() local
129 if (CanRepresent(FnTy.getTypePtr())) in VisitObjCMethodDecl()
130 DI.EmitFunctionDecl(D, D->getLocation(), FnTy); in VisitObjCMethodDecl()
/external/swiftshader/third_party/llvm-10.0/llvm/include/llvm/IR/
DDerivedTypes.h176 : FnTy(Fn ? Fn->getFunctionType() : nullptr), Callee(Fn) {} in FunctionCallee()
178 FunctionCallee(FunctionType *FnTy, Value *Callee) in FunctionCallee() argument
179 : FnTy(FnTy), Callee(Callee) { in FunctionCallee()
180 assert((FnTy == nullptr) == (Callee == nullptr)); in FunctionCallee()
187 FunctionType *getFunctionType() { return FnTy; } in getFunctionType()
194 FunctionType *FnTy = nullptr;
/external/llvm/lib/Transforms/Utils/
DModuleUtils.cpp26 FunctionType *FnTy = FunctionType::get(IRB.getVoidTy(), false); in appendToGlobalArray() local
37 EltTy = StructType::get(IRB.getInt32Ty(), PointerType::getUnqual(FnTy), in appendToGlobalArray()
57 EltTy = StructType::get(IRB.getInt32Ty(), PointerType::getUnqual(FnTy), in appendToGlobalArray()
/external/llvm-project/llvm/include/llvm/IR/
DDerivedTypes.h176 : FnTy(Fn ? Fn->getFunctionType() : nullptr), Callee(Fn) {} in FunctionCallee()
178 FunctionCallee(FunctionType *FnTy, Value *Callee) in FunctionCallee() argument
179 : FnTy(FnTy), Callee(Callee) { in FunctionCallee()
180 assert((FnTy == nullptr) == (Callee == nullptr)); in FunctionCallee()
187 FunctionType *getFunctionType() { return FnTy; } in getFunctionType()
194 FunctionType *FnTy = nullptr;
/external/tensorflow/tensorflow/compiler/jit/
Dxla_activity_listener.cc41 template <typename FnTy>
42 Status ForEachListener(FnTy fn) { in ForEachListener()
Ddevice_util.h71 template <typename FnTy>
72 void ForEach(FnTy func) const { in ForEach()
/external/swiftshader/third_party/llvm-10.0/llvm/lib/Transforms/Coroutines/
DCoroEarly.cpp116 auto *FnTy = FunctionType::get(Type::getVoidTy(C), FramePtrTy, in lowerCoroNoop() local
118 auto *FnPtrTy = FnTy->getPointerTo(); in lowerCoroNoop()
123 Function::Create(FnTy, GlobalValue::LinkageTypes::PrivateLinkage, in lowerCoroNoop()
DCoroFrame.cpp409 auto *FnTy = FunctionType::get(Type::getVoidTy(C), FramePtrTy, in buildFrameType() local
411 auto *FnPtrTy = FnTy->getPointerTo(); in buildFrameType()
1166 auto FnTy = FunctionType::get(ValueTy, {}, false); in emitGetSwiftErrorValue() local
1167 auto Fn = ConstantPointerNull::get(FnTy->getPointerTo()); in emitGetSwiftErrorValue()
1181 auto FnTy = FunctionType::get(V->getType()->getPointerTo(), in emitSetSwiftErrorValue() local
1183 auto Fn = ConstantPointerNull::get(FnTy->getPointerTo()); in emitSetSwiftErrorValue()
DCoroSplit.cpp399 auto *FnTy = Shape.getResumeFunctionType(); in createCloneDeclaration() local
402 Function::Create(FnTy, GlobalValue::LinkageTypes::InternalLinkage, in createCloneDeclaration()
1416 FunctionType *FnTy = FunctionType::get(Type::getVoidTy(Context), in prepareForSplit() local
1418 auto *IndirectCall = CallInst::Create(FnTy, DevirtFnAddr, Null, "", InsertPt); in prepareForSplit()
1434 auto *FnTy = FunctionType::get(Type::getVoidTy(C), Type::getInt8PtrTy(C), in createDevirtTriggerFunc() local
1437 Function::Create(FnTy, GlobalValue::LinkageTypes::PrivateLinkage, in createDevirtTriggerFunc()
/external/llvm-project/llvm/lib/Transforms/Coroutines/
DCoroEarly.cpp111 auto *FnTy = FunctionType::get(Type::getVoidTy(C), FramePtrTy, in lowerCoroNoop() local
113 auto *FnPtrTy = FnTy->getPointerTo(); in lowerCoroNoop()
118 Function::Create(FnTy, GlobalValue::LinkageTypes::PrivateLinkage, in lowerCoroNoop()
DCoroSplit.cpp410 auto *FnTy = Shape.getResumeFunctionType(); in createCloneDeclaration() local
413 Function::Create(FnTy, GlobalValue::LinkageTypes::InternalLinkage, in createCloneDeclaration()
1373 static void coerceArguments(IRBuilder<> &Builder, FunctionType *FnTy, in coerceArguments() argument
1377 for (auto paramTy : FnTy->params()) { in coerceArguments()
1449 auto FnTy = cast<FunctionType>(Fn->getType()->getPointerElementType()); in splitAsyncCoroutine() local
1453 coerceArguments(Builder, FnTy, FnArgs, CallArgs); in splitAsyncCoroutine()
1454 auto *TailCall = Builder.CreateCall(FnTy, Fn, CallArgs); in splitAsyncCoroutine()
1739 FunctionType *FnTy = FunctionType::get(Type::getVoidTy(Context), in prepareForSplit() local
1741 auto *IndirectCall = CallInst::Create(FnTy, DevirtFnAddr, Null, "", InsertPt); in prepareForSplit()
1757 auto *FnTy = FunctionType::get(Type::getVoidTy(C), Type::getInt8PtrTy(C), in createDevirtTriggerFunc() local
[all …]
/external/llvm-project/clang/include/clang/AST/
DIgnoreExpr.h24 template <typename FnTy, typename... FnTys>
25 Expr *IgnoreExprNodesImpl(Expr *E, FnTy &&Fn, FnTys &&... Fns) { in IgnoreExprNodesImpl()
/external/llvm/unittests/IR/
DInstructionsTest.cpp496 Type *FnTy = FunctionType::get(Int32Ty, ArgTys, /*isVarArg=*/false); in TEST() local
497 Value *Callee = Constant::getNullValue(FnTy->getPointerTo()); in TEST()
528 Type *FnTy = FunctionType::get(Int32Ty, Int32Ty, /*isVarArg=*/false); in TEST() local
529 Value *Callee = Constant::getNullValue(FnTy->getPointerTo()); in TEST()
555 Type *FnTy = FunctionType::get(Int32Ty, Int32Ty, /*isVarArg=*/false); in TEST() local
556 Value *Callee = Constant::getNullValue(FnTy->getPointerTo()); in TEST()
/external/llvm-project/llvm/lib/ExecutionEngine/Orc/
DMachOPlatform.cpp46 template <typename FnTy>
47 static Error setUpObjCRegAPIFunc(FnTy &Target, sys::DynamicLibrary &LibObjC, in setUpObjCRegAPIFunc()
50 Target = reinterpret_cast<FnTy>(Addr); in setUpObjCRegAPIFunc()
/external/llvm-project/llvm/unittests/IR/
DInstructionsTest.cpp589 FunctionType *FnTy = FunctionType::get(Int32Ty, ArgTys, /*isVarArg=*/false); in TEST() local
590 Value *Callee = Constant::getNullValue(FnTy->getPointerTo()); in TEST()
597 CallInst::Create(FnTy, Callee, Args, "result")); in TEST()
623 FunctionType *FnTy = FunctionType::get(Int32Ty, Int32Ty, /*isVarArg=*/false); in TEST() local
624 Value *Callee = Constant::getNullValue(FnTy->getPointerTo()); in TEST()
628 CallInst::Create(FnTy, Callee, Args, OldBundle, "result")); in TEST()
650 FunctionType *FnTy = FunctionType::get(Int32Ty, Int32Ty, /*isVarArg=*/false); in TEST() local
651 Value *Callee = Constant::getNullValue(FnTy->getPointerTo()); in TEST()
657 InvokeInst::Create(FnTy, Callee, NormalDest.get(), UnwindDest.get(), Args, in TEST()
/external/llvm-project/llvm/lib/Transforms/Utils/
DModuleUtils.cpp28 FunctionType *FnTy = FunctionType::get(IRB.getVoidTy(), false); in appendToGlobalArray() local
34 IRB.getInt32Ty(), PointerType::getUnqual(FnTy), IRB.getInt8PtrTy()); in appendToGlobalArray()
/external/swiftshader/third_party/llvm-10.0/llvm/lib/Transforms/Utils/
DModuleUtils.cpp26 FunctionType *FnTy = FunctionType::get(IRB.getVoidTy(), false); in appendToGlobalArray() local
32 IRB.getInt32Ty(), PointerType::getUnqual(FnTy), IRB.getInt8PtrTy()); in appendToGlobalArray()

123