[LLVMdev] [Help] calling a native C function from inside LLVM IR

Jon Harrop jon at ffconsultancy.com
Wed Jan 6 03:19:00 PST 2010

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.

More information about the llvm-dev mailing list