[Mono-dev] Mono & LLVM IR

Alex Rønne Petersen alex at alexrp.com
Tue Jan 22 22:22:05 UTC 2013


On Tue, Jan 22, 2013 at 2:50 PM, Ivan Radicek
<radicek at forsyte.tuwien.ac.at> wrote:
> Hi,
> On 01/21/2013 04:01 PM, Alex Rønne Petersen wrote:
>> You can probably get away with dumping the LLVM IR somewhere in
>> mono_llvm_emit_method () (see mono/mini/mini-llvm.c).
> I managed to find a method to emit LLVM IR to stdout. This was very helpful
> - thank you!
> Now I've got another problem which I haven't been able to solve :) When I
> try to load this IR to tool for code analysis (which operates on LLVM IR) or
> to "llvm-as", I get errors like:
> "error: use of undefined value '@llvm.eh.selector'"
> "error: use of undefined value '@llvm.mono.load.i32.p0i32'"
> If I understood correctly, those are custom-defined "intrinsic function"? Is
> there a way to accomplish that this code is accepted by llvm-as?

They may be understood by an llvm-as built from the 'mono' branch of


More information about the Mono-devel-list mailing list