[LLVMdev] Questions on llvm and jit

Eric Christopher echristo at apple.com
Fri Mar 26 14:13:34 PDT 2010


On Mar 26, 2010, at 1:52 PM, Shasank Chavan wrote:

> So for all the reasons above, we prefer everything to be inlined where possible, and, if need be, have a mechanism to fix up target addresses of call instructions.  I'm more familiar with ia64 than x86, and so it's a learning process for me to understand how easy it is to do this.  First off, is there common code out there or in the dll that will allow me to walk through x86 instructions in search for a call?

You don't want to do this.

One way you can avoid calls would be to write an llvm pass that looks for calls and inlines the code - this will require that any additional code that you write also be in llvm ir form and then just inline to your heart's content.

-eric



More information about the llvm-dev mailing list