Displaying 2 results from an estimated 2 matches for "pm3func".
Did you mean:
m3func
2012 Jun 19
0
[LLVMdev] Cast Pointer Address to Functions
...* fType;
PointerType* pm3_routine;
Value* m3func;
Value* result;
margs.resize(1);
margs[0] = I64;
fType = FunctionType::get(I32, margs, false);
pm3_routine = PointerType::get(fType, 0);
m3func = Builder.CreateIntToPtr(I64_Const((uint64_t)pFunc), pm3_routine, "pm3func");
result = Builder.CreateCall(m3func, parameter, "m3func");
- Chuck
THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e...
2012 Jun 18
4
[LLVMdev] Cast Pointer Address to Functions
I have a function address held in an uint64_t. I would like to cast
the function address to a function prototype and create a call to the
function in LLVM. How could I do this ?
Thanks
Xin