[LLVMdev] intrinsic

陳韋任 chenwj at iis.sinica.edu.tw
Wed Mar 28 01:35:17 PDT 2012


> 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




More information about the llvm-dev mailing list