[LLVMdev] Accounting for code size

Sandro Magi naasking at gmail.com
Thu Oct 4 08:11:18 PDT 2007


On 9/28/07, Chris Lattner <sabre at nondot.org> wrote:
>
> On Sep 28, 2007, at 11:00 AM, Sandro Magi wrote:
>
> > 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.

Right, so I need to identify the unused functions myself in some way,
and LLVM has no facility for querying what code is still referenced/in
use, etc.

Sandro



More information about the llvm-dev mailing list