I’ve started implementing the backend for my toy language’s compiler using the llvm-hs-pure package, and when exploring ways to implement the exponentiation operation, I saw that LLVM has a built-in intrinsic function for that: LLVM Language Reference Manual — LLVM 17.0.0git documentation
How can I use it with the package?
(sorry if this is the wrong place, didn’t know where else to ask)
So far I’ve been using the GitHub - llvm-hs/llvm-hs-examples: Examples for Haskell bindings to LLVM repo as a base, but it doesn’t give an example of more complex operators than basic arithmetic.