I'm part way through writing a toy language in F#. I want to target LLVM, but it looks like I'll have to do some work to make that happen.
It looks like I might be able to do some interop with the IRBuilder libraries, or I might be able to roll my own IR emitter. As far as I've searched, I couldn't find any solution that anyone else has made.
How might I do this?
I know several people who use F# + LLVM regularly, and I've seen a bunch of questions about it here on SO before: Questions tagged F# and LLVM
Anyway, take a look at the LLVM bindings for F# on Github -- that should be a good starting point.