[LLVMdev] Accounting for code size

Chris Lattner sabre at nondot.org
Fri Sep 28 10:55:39 PDT 2007


On Sep 28, 2007, at 10:53 AM, Sandro Magi wrote:

>
>>> Finally, can I free the memory used by the in-memory IR after the  
>>> code
>>> is generated?
>>
>> Yes, you can call F->deleteBody() after JIT'ing F.
>
> Sorry, I meant to ask whether it's still necessary to keep F around,
> ie. to delete generated code. Is there a standard approach to garbage
> collecting code in LLVM?

Machine code in the JIT buffer or the LLVM IR itself?

-Chris



More information about the llvm-dev mailing list