[LLVMdev] new annotations in IR?

Mark Brown mbrowncu98 at gmail.com
Thu Sep 22 10:35:33 PDT 2011


How can they processed? I cant seem to find any solid information about how
they exist in IR form from a Passes perspective. I see things like
@llvm.var.annotation in dumps but no relevant sounding methods to get at
these.

Thank you

On Thu, Sep 22, 2011 at 1:20 PM, Julien Lerouge <jlerouge at apple.com> wrote:

> On Thu, Sep 22, 2011 at 02:46:05AM -0400, Mark Brown wrote:
> > With recent work a plugin can now Annotate a VarDecl at the AST level,
> how
> > can this be used in a Pass at the IR level? What classes are responsible
> for
> > their manipulation? I assumed it would be part of Value, or something
> common
> > like it, but I do not see any mentions of Annotation or Attribute.
> >
> > Thank you
>
> AFAIK, there is no specific code to manipulate annotations. You could
> write an analysis pass to process & use them though, that shouldn't
> require a lot of work.
>
> --
> Julien Lerouge
> PGP Key Id: 0xB1964A62
> PGP Fingerprint: 392D 4BAD DB8B CE7F 4E5F FA3C 62DB 4AA7 B196 4A62
> PGP Public Key from: keyserver.pgp.com
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20110922/3d84ba00/attachment.html>


More information about the llvm-dev mailing list