[LLVMdev] Accounting for code size

Chris Lattner sabre at nondot.org
Fri Sep 28 11:06:31 PDT 2007


On Sep 28, 2007, at 11:00 AM, Sandro Magi wrote:

> On 9/28/07, Chris Lattner <sabre at nondot.org> wrote:
>>
>>> 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?
>>
>
> Assuming I don't need to keep around the IR version of a function,
> then only the machine code.

Use ExecutionEngine::freeMachineCodeForFunction to deallocate code  
from the JIT buffer.

-Chris






More information about the llvm-dev mailing list