| /openbsd-src/gnu/llvm/llvm/lib/ExecutionEngine/MCJIT/ |
| H A D | MCJIT.cpp | 516 void *FPtr = getPointerToFunction(F); in runFunction() local 518 assert(FPtr && "Pointer to fn's code was null after getPointerToFunction"); in runFunction() 537 (int(*)(int, char **, const char **))(intptr_t)FPtr; in runFunction() 550 int (*PF)(int, char **) = (int(*)(int, 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() 587 rv.IntVal = APInt(BitWidth, ((int64_t(*)())(intptr_t)FPtr)()); in runFunction() [all …]
|
| /openbsd-src/gnu/llvm/compiler-rt/lib/orc/tests/unit/ |
| H A D | executor_address_test.cpp | 61 void (*FPtr)() = FAddr.toPtr<void()>(); in TEST() local 63 EXPECT_EQ(FPtr, &F); in TEST()
|
| /openbsd-src/gnu/llvm/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()
|
| /openbsd-src/gnu/llvm/llvm/lib/Passes/ |
| H A D | StandardInstrumentations.cpp | 637 const Function **FPtr = any_cast<const Function *>(&IR); in analyzeIR() local 638 const Function *F = FPtr ? *FPtr : nullptr; in analyzeIR() 797 const Function **FPtr = any_cast<const Function *>(&IR); in shouldRun() local 798 const Function *F = FPtr ? *FPtr : nullptr; in shouldRun() 1134 const Function **FPtr = any_cast<const Function *>(&IR); in registerCallbacks() local 1135 const Function *F = FPtr ? *FPtr : nullptr; in registerCallbacks()
|
| /openbsd-src/gnu/llvm/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()
|
| /openbsd-src/gnu/llvm/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()
|
| /openbsd-src/gnu/llvm/llvm/lib/ProfileData/ |
| H A D | InstrProfReader.cpp | 461 const IntPtrT FPtr = swap(I->FunctionPointer); in createSymtab() local 462 if (!FPtr) in createSymtab() 464 Symtab.mapAddress(FPtr, I->NameRef); in createSymtab()
|
| /openbsd-src/gnu/llvm/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()
|
| /openbsd-src/gnu/llvm/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()
|
| /openbsd-src/gnu/llvm/llvm/docs/tutorial/MyFirstLanguageFrontend/ |
| H A D | LangImpl09.rst | 116 - void *FPtr = TheExecutionEngine->getPointerToFunction(FnIR); 120 - double (*FP)() = (double (*)())(intptr_t)FPtr;
|
| /openbsd-src/gnu/llvm/llvm/lib/Target/XCore/ |
| H A D | XCoreISelLowering.cpp | 860 SDValue FPtr = Op.getOperand(2); // nested function in LowerINIT_TRAMPOLINE() local 905 DAG.getStore(Chain, dl, FPtr, Addr, MachinePointerInfo(TrmpAddr, 16)); in LowerINIT_TRAMPOLINE()
|
| /openbsd-src/gnu/llvm/clang/lib/CodeGen/ |
| H A D | CGCall.cpp | 5381 if (auto *FPtr = dyn_cast<llvm::Function>(CalleePtr)) in EmitCall() local 5382 if (FPtr->hasFnAttribute(llvm::Attribute::NoUnwind)) in EmitCall()
|
| /openbsd-src/gnu/llvm/llvm/lib/Target/PowerPC/ |
| H A D | PPCISelLowering.cpp | 3766 SDValue FPtr = Op.getOperand(2); // nested function in LowerINIT_TRAMPOLINE() local 3785 Entry.Node = FPtr; Args.push_back(Entry); in LowerINIT_TRAMPOLINE()
|
| /openbsd-src/gnu/llvm/llvm/lib/Target/X86/ |
| H A D | X86ISelLowering.cpp | 28913 SDValue FPtr = Op.getOperand(2); // nested function in LowerINIT_TRAMPOLINE() local 28940 OutChains[1] = DAG.getStore(Root, dl, FPtr, Addr, in LowerINIT_TRAMPOLINE() 29024 Disp = DAG.getNode(ISD::SUB, dl, MVT::i32, FPtr, Addr); in LowerINIT_TRAMPOLINE()
|