<div dir="ltr">Hi all,<div>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 <a href="https://llvm.org/docs/tutorial/BuildingAJIT1.html">SimpleORC API</a> now. </div><div>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. </div><div><br></div><div>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.</div><div><br></div><div>Thanks!</div><div><br></div><div>Rajesh S R</div></div>