[LLVMdev] manipulating @llvm.var.annotation in AST?

Eli Friedman eli.friedman at gmail.com
Wed Sep 7 13:32:52 PDT 2011


On Wed, Sep 7, 2011 at 1:01 PM, Mark Brown <mbrowncu98 at gmail.com> wrote:
> Is there anyway to manipulate @llvm.var.annotation at the AST level?
>
> In the source file you could do something like
>         __attribute__((annotate("GlobalValAnnotation")));
>
> Is it possible todo something like that with a Clang::DeclRefExpr? Could
> something be done to @llvm.var.annotation "by hand"? How do you access this?

Please send questions about the clang AST to cfe-dev.

-Eli




More information about the llvm-dev mailing list