[LLVMdev] Ideas for annotating types?

Renato Golin rengolin at systemcall.org
Sun Jul 10 11:59:56 PDT 2011

On 10 July 2011 19:47, Talin <viridia at gmail.com> wrote:
> However, I would imagine other uses for this facility. What this effectively
> is "metadata for types", although unlike metadata nodes this data would be
> immutable.

Hi Talin,

The new type system allows you to name types and, if I got it rght,
that's unique and immutable.

You could use that fact, plus some metadata, to group your values and
use one annotation per group.

Should be easy to iterate through all values in a given function
testing for a given (unique) type.


More information about the llvm-dev mailing list