Displaying 2 results from an estimated 2 matches for "base_modul".
Did you mean:
base_module
2012 Nov 03
1
[LLVMdev] import/export functions between Modules
I'm having trouble figuring out how to export/import IR functions at the
C++ API level. I think I've got the linking part figured out, but I need
to get the functions exporting from one module into another. I see how I
can iterate over the functions in one, but I'm not clear on how to
expose this name/reference into the other module.
Is there a simple example/tutorial of this
2012 Nov 04
0
[LLVMdev] trying to understand linkage with linker
If I create a function in a module with:
auto f = module->getOrInsertFunction( "eval_expr", ...)
//create function
Then later I link this with other modules:
Linker link;
link.LinkInModule( base_module );
link.LinkInModule( module );
Then I create an execution engine something like:
auto ee = EngineBuilder( link.getModule() )...create();
If I attempt to run the function directly I get an error:
ee->runFunction( f, args );
"LLVM ERROR: Program used external function 'eval_expr...