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.