[LLVMdev] new annotations in IR?

Julien Lerouge jlerouge at apple.com
Thu Sep 22 10:20:01 PDT 2011


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



More information about the llvm-dev mailing list