| /llvm-project-15.0.7/clang/unittests/CodeGen/ |
| H A D | TestCompiler.h | 85 auto FuncPtr = M->begin(); in compile() local 86 for (; FuncPtr != M->end(); ++FuncPtr) in compile() 87 if (!FuncPtr->isDeclaration()) in compile() 89 assert(FuncPtr != M->end()); in compile() 90 const llvm::Function &Func = *FuncPtr; in compile() 91 ++FuncPtr; in compile() 92 for (; FuncPtr != M->end(); ++FuncPtr) in compile() 93 if (!FuncPtr->isDeclaration()) in compile() 95 assert(FuncPtr == M->end()); in compile()
|
| /llvm-project-15.0.7/llvm/unittests/Support/DynamicLibrary/ |
| H A D | DynamicLibraryTest.cpp | 38 template <class T> static T FuncPtr(void *Ptr) { in FuncPtr() function 68 GetString GS = FuncPtr<GetString>(DL.getAddressOfSymbol("TestA")); in TEST() 73 GS = FuncPtr<GetString>(DynamicLibrary::SearchForAddressOfSymbol("TestA")); in TEST() 88 GS = FuncPtr<GetString>(DL.getAddressOfSymbol("TestA")); in TEST() 101 GS = FuncPtr<GetString>(DL.getAddressOfSymbol("TestA")); in TEST() 110 EXPECT_TRUE(FuncPtr<GetString>(DynamicLibrary::SearchForAddressOfSymbol( in TEST() 128 SetStrings SS_0 = FuncPtr<SetStrings>( in TEST() 135 TestOrder TO_0 = FuncPtr<TestOrder>( in TEST() 145 SetStrings SS_1 = FuncPtr<SetStrings>( in TEST() 150 TestOrder TO_1 = FuncPtr<TestOrder>( in TEST() [all …]
|
| /llvm-project-15.0.7/clang/test/CodeGen/ |
| H A D | attr-target-mv-func-ptrs.c | 8 typedef int (*FuncPtr)(int); typedef 9 void func(FuncPtr); 13 FuncPtr Free = &foo; in bar() 14 FuncPtr Free2 = foo; in bar()
|
| H A D | 2007-09-28-PackedUnionMember.c | 23 typedef long (*FuncPtr) (void); typedef 25 extern long bork(FuncPtr handler, const struct E *list);
|
| H A D | 2002-07-14-MiscTests3.c | 26 typedef int (*FuncPtr)(int); typedef 32 char PtrFunc2(FuncPtr FuncTab[30], int Num) { in PtrFunc2()
|
| /llvm-project-15.0.7/libc/test/src/math/ |
| H A D | FDimTest.h | 18 using FuncPtr = T (*)(T, T); 22 void test_na_n_arg(FuncPtr func) { in test_na_n_arg() 32 void test_inf_arg(FuncPtr func) { in test_inf_arg() 40 void test_neg_inf_arg(FuncPtr func) { in test_neg_inf_arg() 48 void test_both_zero(FuncPtr func) { in test_both_zero() 55 void test_in_range(FuncPtr func) { in test_in_range()
|
| /llvm-project-15.0.7/clang/test/CodeGenCXX/ |
| H A D | attr-target-mv-func-ptrs.cpp | 22 using FuncPtr = int (*)(int); typedef 25 void f(FuncPtr, MemFuncPtr); 28 FuncPtr Free = &foo; in bar()
|
| /llvm-project-15.0.7/clang/test/SemaTemplate/ |
| H A D | instantiate-function-params.cpp | 44 template<typename R, typename A1, R (*ptr)(A1)> struct FuncPtr { }; struct 45 template<typename A1, int (*ptr)(A1)> struct FuncPtr<int, A1, ptr> { }; struct 51 FuncPtr<R, A1, &unary_func<R, A1> > fp1; in use_func_ptr() 52 FuncPtr<R, A2, &unary_func<R, A2> > fp2; in use_func_ptr()
|
| /llvm-project-15.0.7/llvm/unittests/ExecutionEngine/MCJIT/ |
| H A D | MCJITTest.cpp | 90 int (*FuncPtr)() = (int(*)())ptr; in TEST_F() local 91 int returnCode = FuncPtr(); in TEST_F() 111 int32_t(*FuncPtr)() = (int32_t(*)())rgvPtr; in TEST_F() local 112 EXPECT_EQ(initialNum, FuncPtr()) in TEST_F() 189 int32_t(*FuncPtr)() = (int32_t(*)())ptr; in TEST_F() local 190 EXPECT_EQ(innerRetVal, FuncPtr()) in TEST_F()
|
| H A D | MCJITMultipleModuleTest.cpp | 233 int32_t(*FuncPtr)() = (int32_t(*)())FBPtr; in TEST_F() local 234 EXPECT_EQ(initialNum, FuncPtr()) in TEST_F() 239 FuncPtr = (int32_t(*)())FAPtr; in TEST_F() 240 EXPECT_EQ(initialNum, FuncPtr()) in TEST_F()
|
| H A D | MCJITObjectCacheTest.cpp | 103 int (*FuncPtr)() = (int(*)())(intptr_t)vPtr; in compileAndRun() local 104 int returnCode = FuncPtr(); in compileAndRun()
|
| /llvm-project-15.0.7/llvm/test/CodeGen/AArch64/ |
| H A D | arm64-homogeneous-prolog-epilog-bad-outline.mir | 5 @FuncPtr = local_unnamed_addr global i32 (i32)* null, align 8 30 $x8 = ADRP target-flags(aarch64-page) @FuncPtr 31 $x16 = LDRXui killed renamable $x8, target-flags(aarch64-pageoff, aarch64-nc) @FuncPtr
|
| /llvm-project-15.0.7/llvm/test/DebugInfo/PDB/Inputs/ |
| H A D | every-array.cpp | 21 using FuncPtr = decltype(&func1); typedef 22 FuncPtr FA[3] = {&func1, &func2, &func3};
|
| /llvm-project-15.0.7/clang/test/SemaCXX/ |
| H A D | member-pointers-2.cpp | 39 typedef void (*FuncPtr)(); typedef 45 FuncPtr X0::*fptr;
|
| H A D | nothrow-vs-exception-specs.cpp | 103 __declspec(nothrow) void (*FuncPtr)() = FuncToBeRefed; variable
|
| /llvm-project-15.0.7/llvm/test/CodeGen/ARM/ |
| H A D | 2011-04-26-SchedTweak.ll | 10 @FuncPtr = external hidden unnamed_addr global %struct.FF* 47 store %struct.FF* %tmp7, %struct.FF** @FuncPtr, align 4
|
| /llvm-project-15.0.7/llvm/test/CodeGen/Thumb2/ |
| H A D | v8_IT_3.ll | 9 @FuncPtr = external hidden unnamed_addr global %struct.FF* 47 store %struct.FF* %tmp7, %struct.FF** @FuncPtr, align 4
|
| /llvm-project-15.0.7/clang/test/Rewriter/ |
| H A D | rewrite-modern-block-ivar-call.mm | 17 …ock_impl *)(*(void (**)(void))((char *)self + OBJC_IVAR_$_Foo$_block)))->FuncPtr)((struct __block_…
|
| /llvm-project-15.0.7/llvm/unittests/FuzzMutate/ |
| H A D | RandomIRBuilderTest.cpp | 258 Instruction *FuncPtr = &*BB.begin(); in TEST() local 263 Value *V = IB.findOrCreateSource(BB, {FuncPtr, OpaquePtr}); in TEST()
|
| /llvm-project-15.0.7/polly/tools/GPURuntime/ |
| H A D | GPUJIT.c | 213 void *FuncPtr; in getAPIHandleCL() local 215 FuncPtr = dlsym(Handle, FuncName); in getAPIHandleCL() 220 return FuncPtr; in getAPIHandleCL() 1037 void *FuncPtr; in getAPIHandleCUDA() local 1039 FuncPtr = dlsym(Handle, FuncName); in getAPIHandleCUDA() 1044 return FuncPtr; in getAPIHandleCUDA()
|
| /llvm-project-15.0.7/llvm/tools/bugpoint/ |
| H A D | Miscompilation.cpp | 906 PHINode *FuncPtr = in CleanupAndPrepareModules() local 908 FuncPtr->addIncoming(CastedResolver, LookupBB); in CleanupAndPrepareModules() 909 FuncPtr->addIncoming(CachedVal, EntryBB); in CleanupAndPrepareModules() 918 CallInst::Create(FuncTy, FuncPtr, Args, "", DoCallBB); in CleanupAndPrepareModules() 922 CallInst::Create(FuncTy, FuncPtr, Args, "retval", DoCallBB); in CleanupAndPrepareModules()
|
| /llvm-project-15.0.7/clang/lib/CodeGen/ |
| H A D | CGBlocks.cpp | 1213 llvm::Value *FuncPtr = Builder.CreateStructGEP(GenBlockTy, BlockPtr, 2); in EmitBlockCallExpr() local 1214 Func = Builder.CreateAlignedLoad(GenericVoidPtrTy, FuncPtr, in EmitBlockCallExpr() 1222 llvm::Value *FuncPtr = Builder.CreateStructGEP(GenBlockTy, BlockPtr, 3); in EmitBlockCallExpr() local 1231 Func = Builder.CreateAlignedLoad(VoidPtrTy, FuncPtr, getPointerAlign()); in EmitBlockCallExpr()
|
| /llvm-project-15.0.7/bolt/lib/Passes/ |
| H A D | IndirectCallPromotion.cpp | 1219 for (BinaryFunction *FuncPtr : Functions) { in runOnFunctions() 1220 BinaryFunction &Function = *FuncPtr; in runOnFunctions()
|
| /llvm-project-15.0.7/clang-tools-extra/docs/clang-tidy/checks/readability/ |
| H A D | identifier-naming.rst | 2628 FUNC_PTR FuncPtr = NULL;
|