Displaying 2 results from an estimated 2 matches for "3a8f7ca9".
2011 Feb 11
0
[LLVMdev] Unit testing with random input using JIT
If you know the prototype of f, you can just use getPointerToFunction
and cast the result:
// Let F be an llvm::Function* referring to 'f'.
void (*f)(int*) = (void (*)(int*))JIT->getPointerToFunction(F);
int a;
f(&a);
// read a
I haven't compiled this, it's a guess at the usage from memory.
Reid
On Fri, Feb 11, 2011 at 12:55 PM, Vu Le <vmle at ucdavis.edu> wrote:
2011 Feb 11
3
[LLVMdev] Unit testing with random input using JIT
Hi Reid,
If an argument is a pointer and the function changes the value it pointed
to,
do you know how to get that updated value after executing the wrapper
function?
Thanks.
Vu
On Tue, Jan 11, 2011 at 2:40 PM, Reid Kleckner <reid.kleckner at gmail.com>wrote:
> On Tue, Jan 11, 2011 at 1:41 PM, Vu Le <vmle at ucdavis.edu> wrote:
> > Hi,
> > I want to implement a tool