| /llvm-project-15.0.7/llvm/lib/ExecutionEngine/MCJIT/ |
| H A D | MCJIT.cpp | 516 void *FPtr = getPointerToFunction(F); in runFunction() local 537 (int(*)(int, char **, const char **))(intptr_t)FPtr; in runFunction() 563 int (*PF)(int) = (int(*)(int))(intptr_t)FPtr; in runFunction() 579 rv.IntVal = APInt(BitWidth, ((bool(*)())(intptr_t)FPtr)()); in runFunction() 581 rv.IntVal = APInt(BitWidth, ((char(*)())(intptr_t)FPtr)()); in runFunction() 583 rv.IntVal = APInt(BitWidth, ((short(*)())(intptr_t)FPtr)()); in runFunction() 585 rv.IntVal = APInt(BitWidth, ((int(*)())(intptr_t)FPtr)()); in runFunction() 593 rv.IntVal = APInt(32, ((int(*)())(intptr_t)FPtr)()); in runFunction() 596 rv.FloatVal = ((float(*)())(intptr_t)FPtr)(); in runFunction() 599 rv.DoubleVal = ((double(*)())(intptr_t)FPtr)(); in runFunction() [all …]
|
| /llvm-project-15.0.7/llvm/unittests/ExecutionEngine/MCJIT/ |
| H A D | MCJITMultipleModuleTest.cpp | 58 int32_t (*FPtr)(int32_t) = (int32_t (*)(int32_t))(intptr_t)ptr; in checkAccumulate() local 59 EXPECT_EQ(0, FPtr(0)); in checkAccumulate() 60 EXPECT_EQ(1, FPtr(1)); in checkAccumulate() 61 EXPECT_EQ(3, FPtr(2)); in checkAccumulate() 62 EXPECT_EQ(6, FPtr(3)); in checkAccumulate() 63 EXPECT_EQ(10, FPtr(4)); in checkAccumulate() 64 EXPECT_EQ(15, FPtr(5)); in checkAccumulate()
|
| /llvm-project-15.0.7/llvm/unittests/ExecutionEngine/Orc/ |
| H A D | ExecutorAddressTest.cpp | 56 void (*FPtr)() = FAddr.toPtr<void()>(); in TEST() local 58 EXPECT_EQ(FPtr, &F); in TEST()
|
| /llvm-project-15.0.7/llvm/lib/Analysis/ |
| H A D | TypeMetadataUtils.cpp | 26 bool *HasNonCallUses, Value *FPtr, uint64_t Offset, in findCallsAtConstantOffset() argument 28 for (const Use &U : FPtr->uses()) { in findCallsAtConstantOffset()
|
| /llvm-project-15.0.7/llvm/include/llvm/Support/ |
| H A D | thread.h | 39 template <typename FPtr, typename... Args, size_t... Indices> 40 static void Apply(std::tuple<FPtr, Args...> &Callee, in Apply() argument
|
| /llvm-project-15.0.7/clang/test/CXX/drs/ |
| H A D | dr2xx.cpp | 610 typedef void (*FPtr)(double x[]); typedef 613 FPtr fp = &f<3>; 616 FPtr gp = &g<>;
|
| /llvm-project-15.0.7/llvm/lib/ProfileData/ |
| H A D | InstrProfReader.cpp | 376 const IntPtrT FPtr = swap(I->FunctionPointer); in createSymtab() local 377 if (!FPtr) in createSymtab() 379 Symtab.mapAddress(FPtr, I->NameRef); in createSymtab()
|
| /llvm-project-15.0.7/llvm/examples/Kaleidoscope/MCJIT/cached/ |
| H A D | toy-jit.cpp | 1059 void *FPtr = TheExecutionEngine->getPointerToFunction(LF); in HandleTopLevelExpression() local 1062 double (*FP)() = (double (*)())(intptr_t)FPtr; in HandleTopLevelExpression()
|
| H A D | toy.cpp | 1428 void *FPtr = TheHelper->getPointerToFunction(LF); in HandleTopLevelExpression() local 1432 double (*FP)() = (double (*)())(intptr_t)FPtr; in HandleTopLevelExpression()
|
| /llvm-project-15.0.7/llvm/examples/Kaleidoscope/MCJIT/lazy/ |
| H A D | toy-jit.cpp | 1043 void *FPtr = TheExecutionEngine->getPointerToFunction(LF); in HandleTopLevelExpression() local 1046 double (*FP)() = (double (*)())(intptr_t)FPtr; in HandleTopLevelExpression()
|
| H A D | toy.cpp | 1326 void *FPtr = TheHelper->getPointerToFunction(LF); in HandleTopLevelExpression() local 1330 double (*FP)() = (double (*)())(intptr_t)FPtr; in HandleTopLevelExpression()
|
| /llvm-project-15.0.7/llvm/examples/Kaleidoscope/MCJIT/initial/ |
| H A D | toy.cpp | 1285 void *FPtr = TheHelper->getPointerToFunction(LF); in HandleTopLevelExpression() local 1289 double (*FP)() = (double (*)())(intptr_t)FPtr; in HandleTopLevelExpression()
|
| /llvm-project-15.0.7/llvm/examples/Kaleidoscope/MCJIT/complete/ |
| H A D | toy.cpp | 1505 void *FPtr = TheHelper->getPointerToFunction(LF); in HandleTopLevelExpression() local 1508 double (*FP)() = (double (*)())(intptr_t)FPtr; in HandleTopLevelExpression()
|
| /llvm-project-15.0.7/llvm/docs/tutorial/MyFirstLanguageFrontend/ |
| H A D | LangImpl09.rst | 116 - void *FPtr = TheExecutionEngine->getPointerToFunction(FnIR); 120 - double (*FP)() = (double (*)())(intptr_t)FPtr;
|
| /llvm-project-15.0.7/llvm/lib/Target/XCore/ |
| H A D | XCoreISelLowering.cpp | 861 SDValue FPtr = Op.getOperand(2); // nested function in LowerINIT_TRAMPOLINE() local 906 DAG.getStore(Chain, dl, FPtr, Addr, MachinePointerInfo(TrmpAddr, 16)); in LowerINIT_TRAMPOLINE()
|
| /llvm-project-15.0.7/clang/lib/CodeGen/ |
| H A D | CGCall.cpp | 5309 if (auto *FPtr = dyn_cast<llvm::Function>(CalleePtr)) in EmitCall() local 5310 if (FPtr->hasFnAttribute(llvm::Attribute::NoUnwind)) in EmitCall()
|
| /llvm-project-15.0.7/llvm/lib/Target/PowerPC/ |
| H A D | PPCISelLowering.cpp | 3753 SDValue FPtr = Op.getOperand(2); // nested function in LowerINIT_TRAMPOLINE() local 3772 Entry.Node = FPtr; Args.push_back(Entry); in LowerINIT_TRAMPOLINE()
|
| /llvm-project-15.0.7/llvm/lib/Target/X86/ |
| H A D | X86ISelLowering.cpp | 28341 SDValue FPtr = Op.getOperand(2); // nested function in LowerINIT_TRAMPOLINE() local 28368 OutChains[1] = DAG.getStore(Root, dl, FPtr, Addr, in LowerINIT_TRAMPOLINE() 28452 Disp = DAG.getNode(ISD::SUB, dl, MVT::i32, FPtr, Addr); in LowerINIT_TRAMPOLINE()
|