[llvm-dev] "Freeing" functions generated with SimpleORC for JIT use-case

Rajesh S R via llvm-dev llvm-dev at lists.llvm.org
Mon Sep 23 21:47:55 PDT 2019


Thanks David! If SimpleORC doesn't yet support it, i can switch to an older
API if that support is there. Any pointers to it?

On Mon, Sep 23, 2019 at 12:21 PM David Blaikie <dblaikie at gmail.com> wrote:

> (+Lang, ORC Overseer)
>
> On Mon, Sep 23, 2019 at 12:17 PM Rajesh S R via llvm-dev <
> llvm-dev at lists.llvm.org> wrote:
>
>> Hi all,
>> I am using LLVM for JIT use-case and compile functions on the fly. I want
>> to "free" the modules after some time and reclaim any memory associated
>> with it. I am using the SimpleORC API
>> <https://llvm.org/docs/tutorial/BuildingAJIT1.html> now.
>> Is there an API to "free" all the memory associated with the module? I
>> use one "compiler" instance (think similar to KaleidoscopeJIT class with
>> its ExecutionSession, CompileLayer etc.) in my process.
>>
>> Is there an API to reset all memory used? Does deleting the
>> "KaleidoscopeJIT" class ensure all memory is reclaimed? In that case i can
>> periodically re-create that class to achieve what i want.
>>
>> Thanks!
>>
>> Rajesh S R
>> _______________________________________________
>> LLVM Developers mailing list
>> llvm-dev at lists.llvm.org
>> https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-dev
>>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20190923/9d796b2a/attachment.html>


More information about the llvm-dev mailing list