[LLVMdev] How to call intrinsics?

Duncan Sands baldrick at free.fr
Mon Mar 29 23:34:07 PDT 2010


Hi Russell,

> How do you call intrinsics, when generating code in memory via the C++ API?

you call them like any other functions, i.e. if you have a Function* for the
intrinsic, then you create a call as usual.  You can get a Function* for the
intrinsic using Intrinsic::getDeclaration.

Ciao,

Duncan.



More information about the llvm-dev mailing list