[Mono-dev] Mono & LLVM IR

Ivan Radicek radicek at forsyte.tuwien.ac.at
Tue Jan 22 13:50:36 UTC 2013


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 


More information about the Mono-devel-list mailing list