Hello,<br>for my own purpose I wrote an custom exporter and loader from a simple text format. The code is online but in a library so you would need to extract it.<br>The format is simple: three types of lines:<br>Unit <unit id> Name <unit label><br>

To <unit id> Latency <latency> Kind order<br>To <unit id> Latency <latency> Kind data Reg <reg id><br><br>You describe each unit with the Unit line and then the successors using the To lines. If the label needs several lines, the line ends with a \.<br>

Of course, it depends on how much information you want. That's just a proposition :)<br><br>PS: I don't like the way llvm draw the DAGs ;)<br><br clear="all">Amaury Pouly<br>
<br><br><div class="gmail_quote">2010/8/24 keita abdoul-kader <span dir="ltr"><<a href="mailto:abdoulk.keita@gmail.com" target="_blank">abdoulk.keita@gmail.com</a>></span><br><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">


Hi,<div>Did anyone thought of a serialization/deserialization mechanism for DAGs ? Right now i am using the -view-dags functions family.The dot file produced is great for drawing but i find it a bit hard to rebuilt a graph from there(the dot parser are somewhat buggy and much of the useful information is packed in the label element... )</div>



<div>all ideas are welcome...</div><div>Thanks </div>
<br>_______________________________________________<br>
LLVM Developers mailing list<br>
<a href="mailto:LLVMdev@cs.uiuc.edu" target="_blank">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>