Hi,all. I've been reading the llvm source code for some days. Here is my problem: what does instrinsic / intrinsic function really means? Are these "the function belong to llvm and just belong to llvm"? Thanks. -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20120328/7ec7d3bd/attachment.html>
On Wed, Mar 28, 2012 at 4:01 PM, 田泽轶 <linkinkeane at gmail.com> wrote:> Hi,all. > I've been reading the llvm source code for some days. > Here is my problem: > what does instrinsic / intrinsic function really means? >like gcc built-in func.> Are these "the function belong to llvm and just belong to llvm"? > > Thanks. > > _______________________________________________ > LLVM Developers mailing list > LLVMdev at cs.uiuc.edu http://llvm.cs.uiuc.edu > http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev >
> Here is my problem: > what does instrinsic / intrinsic function really means?You probably need to look at http://llvm.org/docs/ExtendingLLVM.html. Simply put, when you want to extend LLVM IR, say adding a new LLVM instruction, you have better try to add a intrinsic function [1] which has the same effect as the instruction you want to add. I don't think they are the same as GCC built-in. Regards, chenwj [1] http://llvm.org/docs/LangRef.html#intrinsics -- Wei-Ren Chen (陳韋任) Computer Systems Lab, Institute of Information Science, Academia Sinica, Taiwan (R.O.C.) Tel:886-2-2788-3799 #1667 Homepage: http://people.cs.nctu.edu.tw/~chenwj
So much Thanks!!! I've read your articles about llvm and qemu when I started to research s2e(It contains qemu klee llvm).Your views are very helpful to me! Best wishes! �� 2012��3��28�� ����4:35����f�� <chenwj at iis.sinica.edu.tw>���> > Here is my problem: > > what does instrinsic / intrinsic function really means? > > You probably need to look at http://llvm.org/docs/ExtendingLLVM.html. > Simply put, when you want to extend LLVM IR, say adding a new LLVM > instruction, you have better try to add a intrinsic function [1] which has > the same effect as the instruction you want to add. > > I don't think they are the same as GCC built-in. > > Regards, > chenwj > > [1] http://llvm.org/docs/LangRef.html#intrinsics > > -- > Wei-Ren Chen (��f��) > Computer Systems Lab, Institute of Information Science, > Academia Sinica, Taiwan (R.O.C.) > Tel:886-2-2788-3799 #1667 > Homepage: http://people.cs.nctu.edu.tw/~chenwj >-------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20120328/3e14c472/attachment.html>