[LLVMdev] Emitting recursive types

James Jackson james.a.f.jackson.2 at googlemail.com
Sun Feb 17 09:00:56 PST 2013


Hi,

I'm having a play with LLVM to implement a custom language (for my intellectual curiosity only). I'm wondering how, when using IRBuilder, one can can it to emit a recursive type definition? The code for TypeBuilder explicitly states that it doesn't handle recursive types...

I'm after being able to emit, programmatically, stuff like the Named Types example in the Language Reference:

%mytype = type { %mytype*, i32 }
I'd welcome any advice!

Yours,
James Jackson.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20130217/030988e7/attachment.html>


More information about the llvm-dev mailing list