search for: function_t

Displaying 2 results from an estimated 2 matches for "function_t".

Did you mean: function_b
2008 Apr 02
2
[LLVMdev] Introduction and questions
...rating peripheral stuff like garbage collection seems pretty simple, but method dispatch seems like it will be tricky. The examples I've seen require an ExecutionEngine to execute code. Is it possible to bypass this and get a function pointer? So you could use it like this: typedef void (*function_t)(methodOop method, JavaThread *thread); function_t func = [some LLVM call here]; func(method, thread); That would solve pretty much all my problems :) Cheers, Gary -- http://gbenson.net/
2008 Apr 02
0
[LLVMdev] Introduction and questions
...collection seems pretty > simple, but method dispatch seems like it will be tricky. The > examples I've seen require an ExecutionEngine to execute code. Is > it possible to bypass this and get a function pointer? So you could > use it like this: > > typedef void (*function_t)(methodOop method, JavaThread *thread); > function_t func = [some LLVM call here]; > func(method, thread); > > That would solve pretty much all my problems :) The getPointerToFunctionOrStub method that does what you want in the JIT. http://llvm.org/docs/doxygen/html/classllvm_1_1...