[LLVMdev] how to invoke C functions in llvm IR ?

2 views
Skip to first unread message

li zhijie

unread,
Dec 13, 2010, 9:02:43 AM12/13/10
to llv...@cs.uiuc.edu
Hi all,
  I am a new user of LLVM~.
  I want to use LLVM C++ API to generate the LLVM IR.The question is how I can call the C functions in LLVM IR.I did not find the APIs in the documents.

  For Example:
   Function *func = Function:Create(...) //create a LLVM function
   Here is another function I cannot represent with LLVM IR(maybe too complex),so I want to invoke the C function with LLVM IR in func.How can I do it?

--Thanks

Alexander Potapenko

unread,
Dec 13, 2010, 9:37:31 AM12/13/10
to li zhijie, llv...@cs.uiuc.edu
http://wiki.llvm.org/HowTo:_Insert_a_function_call

> _______________________________________________
> LLVM Developers mailing list
> LLV...@cs.uiuc.edu         http://llvm.cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev
>
>

_______________________________________________
LLVM Developers mailing list
LLV...@cs.uiuc.edu http://llvm.cs.uiuc.edu
http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev

Reply all
Reply to author
Forward
0 new messages