[LLVMdev] Extending GC infrastructure for roots in SSA values

João Matos ripzonetriton at gmail.com
Sat Dec 29 18:39:04 PST 2012

On Sun, Dec 30, 2012 at 1:54 AM, Talin <viridia at gmail.com> wrote:

> I completely agree with your point about wanting to be able to attach GC
> metadata to a type (rather than attaching it to a value, as is done now).
> In the past, there have been two objections to this approach: first, the
> overhead that would be added to the Pointer type - the vast majority of
> LLVM users don't want to have to pay an extra 4-8 bytes per Pointer type.
> And second, that all of the optimization passes would have to be updated so
> as to not do illegal transformations on a GC type.

I have extended LLVM locally to support metadata on types, though right now
it is only supported on struct types. It could be a good first step to
implement this.

If someone is interested, the code is at:

João Matos
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20121230/6e198fbb/attachment.html>

More information about the llvm-dev mailing list