[cfe-dev] How to add LLVM IR metadata from a Clang Plugin?

Nico Weber thakis at chromium.org
Wed Oct 19 12:00:26 PDT 2011


It's not possible currently.

Nico
On Oct 19, 2011 11:57 AM, "Guillem Marpons" <gmarpons at babel.ls.fi.upm.es>
wrote:

> I want to pass some AST information from Clang to LLVM and extensible
> metadata (http://blog.llvm.org/2010/04/extensible-metadata-in-llvm-ir.html
> )
> seems the right way to do that. Is it possible to add metadata to the
> generated IR from a "PrintFunctionNames"-like plugin? Some pointers or
> code examples?
>
> I'm aware that the plugin mechanism may improve in the near future
> (http://comments.gmane.org/gmane.comp.compilers.clang.devel/17707),
> I'd like to know if it's possible (and not very difficult) to do it
> with current infrastructure.
>
> Thanks,
>
> --
> Guillem Marpons
> Universidad Polit├ęcnica de Madrid - Babel Group
>
> _______________________________________________
> cfe-dev mailing list
> cfe-dev at cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/cfe-dev
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-dev/attachments/20111019/4de59a3d/attachment.html>


More information about the cfe-dev mailing list