[LLVMdev] new annotations in IR?

Mark Brown mbrowncu98 at gmail.com
Thu Sep 22 07:19:45 PDT 2011


Close, metadata has already been attached to Clang's VarDecls. I do not know
what this would be in LLVM, my first guess just just Value(since its kind of
a goto object for everything I need).

On Thu, Sep 22, 2011 at 2:55 AM, James Molloy <James.Molloy at arm.com> wrote:

>  Hi Mark,****
>
> ** **
>
> I don’t know anything about Clang’s annotations or attributes, but from
> what you describe it sounds like you want to attach metadata to Values?***
> *
>
> ** **
>
> Try searching for “metadata” instead, that should get you more results J**
> **
>
> ** **
>
> Cheers,****
>
> ** **
>
> James****
>
> ** **
>
> *From:* llvmdev-bounces at cs.uiuc.edu [mailto:llvmdev-bounces at cs.uiuc.edu] *On
> Behalf Of *Mark Brown
> *Sent:* 22 September 2011 07:46
> *To:* llvmdev at cs.uiuc.edu
> *Subject:* [LLVMdev] new annotations in IR?****
>
> ** **
>
> 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****
>
> -- IMPORTANT NOTICE: The contents of this email and any attachments are
> confidential and may also be privileged. If you are not the intended
> recipient, please notify the sender immediately and do not disclose the
> contents to any other person, use it for any purpose, or store or copy the
> information in any medium. Thank you.
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20110922/8ee2a64b/attachment.html>


More information about the llvm-dev mailing list