Gyounghwa Kim
2010-Jan-06 09:17 UTC
[LLVMdev] [Help] calling a native C function from inside LLVM IR
Dear experts, Is there any way to call a native C/C++ functions from inside LLVM IR? I appreciate your help in advance. Thanks.
Jon Harrop
2010-Jan-06 11:19 UTC
[LLVMdev] [Help] calling a native C function from inside LLVM IR
On Wednesday 06 January 2010 09:17:37 Gyounghwa Kim wrote:> Dear experts, > > Is there any way to call a native C/C++ functions from inside LLVM IR? > I appreciate your help in advance.Provided you have the type information, C is easy: just declare the external function and call it from the LLVM IR using the C calling convention. -- Dr Jon Harrop, Flying Frog Consultancy Ltd. http://www.ffconsultancy.com/?e