Thanks for the reply Chris, <br><br>I would like to add Metadata to a loop.<br><br>To do this, can I simply add the Metadata Manipulation methods & Metadata private data from Instruction.h & their method bodies from Metadata.cpp into the BasicBlock.h & BasicBlock.cpp files.?<br>
<br>Or Am I missing an important dependency.<br><br>Thanks,<br><br>Kalyan the great (even greater than Chris Latner)<br><br><div class="gmail_quote">On Thu, Apr 22, 2010 at 12:44 PM, Chris Lattner <span dir="ltr"><<a href="mailto:clattner@apple.com">clattner@apple.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;"><div class="im"><br>
On Apr 22, 2010, at 2:29 AM, kalyan ponnala wrote:<br>
<br>
><br>
</div><div><div></div><div class="h5">> Hello,<br>
><br>
> I was researching how Metadata in LLVM 2.7 is represented and used and I found that Metadata can be attached and manipulated at both the module level and instruction levels.  Upon inspecting the Metadata classes, I also saw that there is an enum that contains a bit for "FunctionLocalBit" on the MDNode.<br>

><br>
> Unfortunately, I did not see any methods to attach or manipulate Metadata at the BasicBlock level or Function levels in the LLVM IR classes.<br>
><br>
> Can someone please tell me why there is no support for attaching and manipulating Metadata to BasicBlocks and Functions?<br>
<br>
</div></div><div><div></div><div class="h5">Just because no one has needed it yet.  I'm not opposed to it being added it if you have a compelling client for it.<br>
<br>
-Chris</div></div></blockquote></div><br><br clear="all"><br>-- <br>Kalyan Ponnala<br>phone: 8163772059<br>
<div style="visibility: hidden; display: inline;" id="avg_ls_inline_popup"></div><style type="text/css">#avg_ls_inline_popup {  position:absolute;  z-index:9999;  padding: 0px 0px;  margin-left: 0px;  margin-top: 0px;  width: 240px;  overflow: hidden;  word-wrap: break-word;  color: black;  font-size: 10px;  text-align: left;  line-height: 13px;}</style>