Displaying 1 result from an estimated 1 matches for "llvmcreateinterpreterformodule".
2010 Aug 12
3
[LLVMdev] LLVM-C: Calling functions contained in other libraries
...ool * pool = [[NSAutoreleasePool alloc] init];
char * error = NULL;
LLVMExecutionEngineRef engine;
LLVMModuleRef module = LLVMModuleCreateWithName("MyModule");
LLVMValueRef toCall = d(module);
LLVMDumpModule(module);
LLVMLinkInInterpreter();
LLVMCreateInterpreterForModule(&engine, module, &error);
LLVMGenericValueRef result = LLVMRunFunction(engine, toCall, 0, NULL);
LLVMDisposeModule(module);
[pool drain];
return 0;
}
Thank you,
Filip
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://list...