[Mono-dev] Mono & LLVM IR

Alex Rønne Petersen alex at alexrp.com
Mon Jan 21 15:01:47 UTC 2013


Hi,

On Mon, Jan 21, 2013 at 2:56 PM, Ivan Radicek
<radicek at forsyte.tuwien.ac.at> wrote:
> Hello everyone,
>
> I was checking the Mono-LLVM and in the documentation it says that one phase
> of a process is:
>
> "the IR is converted to the LLVM IR"
>
> I was wondering if there is a possibility to get LLVM IR. I didn't find any
> direct method (as passing some flags to the mono). But, is there any quick
> hack in source code to accomplish this?

You can probably get away with dumping the LLVM IR somewhere in
mono_llvm_emit_method () (see mono/mini/mini-llvm.c).

Regards,
Alex


More information about the Mono-devel-list mailing list