How do you call intrinsics, when generating code in memory via the C++ API? To take a concrete example, which is equivalent to what I'm trying to do: starting with Kaleidoscope, supposing you want to add exponentiation to the language, using the 'pow' intrinsic, how would you do that?
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.
Reasonably Related Threads
- [LLVMdev] JIT compiled intrinsics calls is call to null pointer
- [LLVMdev] JIT compiled intrinsics calls is call to null pointer
- [LLVMdev] dragonegg svn still broken
- LLVM IR intrinsics placeholder for strings [was Re: Back end with special loop instructions (using LLVM IR intrinsics)]
- [LLVMdev] Problem with variable argument intrinsics