[LLVMdev] Inserting annotations

kapil anand kapilanand2 at gmail.com
Thu Mar 5 16:31:28 PST 2009


Hi,

As far as I know, Instruction class does not inherit "Annotable" Class. Only
Function inherits annotable according to the documentation of annotable
class.

What you are asking would require adding annotations at instruction level,
which does not seem to be possible. You can maintain external maps between
instructions and your annotations,

--Kapil

On Thu, Mar 5, 2009 at 7:17 PM, RAAD B <raad_7007 at yahoo.com> wrote:

> Hello together,
>
> how can i insert annotations in IR ?
>
> I want actually write something like:
>
> CallInst *call = CallInst::Create( ??? , aBasicBlock);
>
> in my pass.
>
>
> Regards
> Raad
>
>
>
>
> _______________________________________________
> LLVM Developers mailing list
> LLVMdev at cs.uiuc.edu         http://llvm.cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20090305/3d37b471/attachment.html>


More information about the llvm-dev mailing list