Hi,<br><br>As far as I know, Instruction class does not inherit "Annotable" Class. Only Function inherits annotable according to the documentation of annotable class.<br><br>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, <br>
<br>--Kapil<br><br><div class="gmail_quote">On Thu, Mar 5, 2009 at 7:17 PM, RAAD B <span dir="ltr"><<a href="mailto:raad_7007@yahoo.com">raad_7007@yahoo.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<table border="0" cellpadding="0" cellspacing="0"><tbody><tr><td style="font-family: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; font-size: inherit; line-height: inherit; font-size-adjust: inherit; font-stretch: inherit;" valign="top">
<div>Hello together,<br><br>how can i insert annotations in IR ?<br><br>I want actually write something like:<a rel="nofollow" name="11fd9264b0e1cc57_int_var_annotation"><br></a><pre><span style="font-weight: bold;">CallInst *call = CallInst::Create( ??? , aBasicBlock);</span><br>
<br>in my pass.<br><br><br>Regards<br>Raad<br></pre><a rel="nofollow" name="11fd9264b0e1cc57_int_var_annotation"></a><a rel="nofollow" name="11fd9264b0e1cc57_int_var_annotation"><br></a><a rel="nofollow" name="11fd9264b0e1cc57_int_general"></a></div>
</td></tr></tbody></table><br>



      <br>_______________________________________________<br>
LLVM Developers mailing list<br>
<a href="mailto:LLVMdev@cs.uiuc.edu">LLVMdev@cs.uiuc.edu</a>         <a href="http://llvm.cs.uiuc.edu" target="_blank">http://llvm.cs.uiuc.edu</a><br>
<a href="http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev" target="_blank">http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev</a><br>
<br></blockquote></div><br>