search for: bitcode_name

Displaying 2 results from an estimated 2 matches for "bitcode_name".

2010 Feb 11
2
[LLVMdev] LLVM memory usage?
...llocated what memory for what purpose, what can be freed once all functions in a module have been compiled or how to do this. I'd be grateful if anyone could tell me what I'm doing wrong or point me at docs or examples covering this topic? The gist of my code is: Module *load_module(char *bitcode_name) { MemoryBuffer *buffer = MemoryBuffer::getFile(bitcode_name, &error_message); ModuleProvider *mp = getBitcodeModuleProvider(buffer, getGlobalContext(), &error_message); if( first_time ) { InitializeNativeTarget(); builder = new EngineBuilder(mp); builder->setEng...
2010 Feb 12
0
[LLVMdev] LLVM memory usage?
...pose, > what can be freed once all functions in a module have been compiled or how > to do this. > > I'd be grateful if anyone could tell me what I'm doing wrong or point me at > docs or examples covering this topic? The gist of my code is: > > Module *load_module(char *bitcode_name) { >   MemoryBuffer *buffer = MemoryBuffer::getFile(bitcode_name, > &error_message); >   ModuleProvider *mp = getBitcodeModuleProvider(buffer, getGlobalContext(), > &error_message); > >   if( first_time ) { >       InitializeNativeTarget(); >       builder = new Engi...