Home
last modified time | relevance | path

Searched refs:FPtr (Results 1 – 18 of 18) sorted by relevance

/llvm-project-15.0.7/llvm/lib/ExecutionEngine/MCJIT/
H A DMCJIT.cpp516 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 DMCJITMultipleModuleTest.cpp58 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 DExecutorAddressTest.cpp56 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 DTypeMetadataUtils.cpp26 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 Dthread.h39 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 Ddr2xx.cpp610 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 DInstrProfReader.cpp376 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 Dtoy-jit.cpp1059 void *FPtr = TheExecutionEngine->getPointerToFunction(LF); in HandleTopLevelExpression() local
1062 double (*FP)() = (double (*)())(intptr_t)FPtr; in HandleTopLevelExpression()
H A Dtoy.cpp1428 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 Dtoy-jit.cpp1043 void *FPtr = TheExecutionEngine->getPointerToFunction(LF); in HandleTopLevelExpression() local
1046 double (*FP)() = (double (*)())(intptr_t)FPtr; in HandleTopLevelExpression()
H A Dtoy.cpp1326 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 Dtoy.cpp1285 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 Dtoy.cpp1505 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 DLangImpl09.rst116 - void *FPtr = TheExecutionEngine->getPointerToFunction(FnIR);
120 - double (*FP)() = (double (*)())(intptr_t)FPtr;
/llvm-project-15.0.7/llvm/lib/Target/XCore/
H A DXCoreISelLowering.cpp861 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 DCGCall.cpp5309 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 DPPCISelLowering.cpp3753 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 DX86ISelLowering.cpp28341 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()