[llvm-commits] [PATCH] Review request: Lazy compilation for MCJIT

Nuno Lopes nunoplopes at sapo.pt
Thu Aug 2 15:07:54 PDT 2012


Hi,

Just to confirm: this patch still only allows 1 compilation per engine, 
right?
I still cannot add a function to a module, compile and execute it, and then 
add another function to the same module and compile it, right?


Thanks,
Nuno


----- Original Message ----- 
From: "Kaylor, Andrew" <andrew.kaylor at intel.com>
To: <llvm-commits at cs.uiuc.edu>
Sent: Thursday, August 02, 2012 10:11 PM


Hi everyone,

The attached patch implements lazy compilation for MCJIT.  That is, the 
module isn't JITed until a call is made to request a pointer to a function.

I tried to implement this in such a way as to move towards multiple module 
support.  There are still a few things to be cleaned up in that regard, but 
it seemed best to leave that for a future patch since I intend to refactor 
the memory ownership model somewhat extensively.

I'm not making any effort to respect the 'CompilingLazily' flag, since that 
couldn't be changed before the constructor and so would have no meaning in 
MCJIT.

-Andy 




More information about the llvm-commits mailing list