Mono LLVM and LLVM-IR

Viewed 2668

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 :

  1. first, normal mono JIT IR is generated from the IL code
  2. the IR is transformed to SSA form
  3. the IR is converted to the LLVM IR
  4. 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!

1 Answers
Related