I am playing with Mono LLVM (http://www.mono-project.com/Mono:Runtime:Documentation:LLVM) and it seems like they are using LLVM here as a JIT, not really as a code generator. But according to the docs, they go through LLVM-IR before generating native code :
- first, normal mono JIT IR is generated from the IL code
- the IR is transformed to SSA form
- the IR is converted to the LLVM IR
- the LLVM IR is compiled by LLVM into native code
So, I am wondering if there any way to catch this 3rd phase and use the IR to feed my LLVM backend. That would allow me to get C# to LLVM-IR front end for free.
Thanks for any help!