<br><div class="gmail_quote">On Thu, Apr 5, 2012 at 9:00 AM, Zeng Bin <span dir="ltr"><<a href="mailto:ezengbin@gmail.com">ezengbin@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Hi all,<div><br></div><div>Just a quick question about passing information all the way down to machine code level. Metadata provides an excellent vehicle to pass extra ad-hoc information along the compilation pipeline. However, If I understand correctly, it seems that MachineInstr does not support metadata, by which I mean metadata cannot be attached to MachineInstr's by now. Metadata can be bundled with Instruction class instances. The metadata attached to Instruction gets lost during code generation. Here is my question, is there a way to pass information attached to Instruction even further down to stages after code generation? NamedMetadata is a good example but it seems that it cannot be attached to Instruction or MachineInstr if I understand correctly. Is there something like DebugLoc which gets preserved all the way but more general than DebugLoc?</div>

<div><br></div><div>Thank you in advance.</div><span class="HOEnZb"><font color="#888888"><div>-Bin</div>
</font></span></blockquote></div><br><div>It seems that adding a pointer-typed field to NamedMetadata into DebugLoc does not work when the pointer is serialized and deserialized in a .bc file. Is there a way to add a field into DebugLoc such that it can be serialized and deserialized?</div>
<div><br></div><div>Thanks!</div><div>-Bin</div>