Displaying 2 results from an estimated 2 matches for "myjitmemorymanag".
Did you mean:
myjitmemorymanager
2009 Jan 28
1
[LLVMdev] Newbie question: Getting info about JIT-compiled function
...y to get at
> > the JitSymbolEntry for a function? If not, is there an alternate
> > way to determine the size (in bytes) of the native function?
>
> The answer seems to be "create your own memory manager and define
> endFunctionBody()". If you have a look at class MyJITMemoryManager in
> http://icedtea.classpath.org/hg/icedtea6/file/0507a324ec22/ports/hotspot/src/share/vm/shark/sharkBuilder.hpp
you'll see how I did it.
I took a look and it makes sense (though it does seem a bit heavyweight).
I'll give it a try.
> > Question (2): Does LLVM have any routin...
2009 Jan 27
1
[LLVMdev] Newbie question: Getting info about JIT-compiled function
Apologies if this is a FAQ.
I am using the LLVM JIT facility on an x86_64 platform. I generate IR for a single function using IRBuilder(), use the FunctionPassManager to do some optimization passes, and then call ExecutionEngine::getPointerToFunction() to get a native-code version of the function. Everything works fine so far.
Two questions:
Question (1): How can I get the size of the native