[LLVMdev] exporting Dags
amaury.pouly at gmail.com
Tue Aug 24 08:58:48 PDT 2010
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.
The format is simple: three types of lines:
Unit <unit id> Name <unit label>
To <unit id> Latency <latency> Kind order
To <unit id> Latency <latency> Kind data Reg <reg id>
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 \.
Of course, it depends on how much information you want. That's just a
PS: I don't like the way llvm draw the DAGs ;)
2010/8/24 keita abdoul-kader <abdoulk.keita at gmail.com>
> 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... )
> all ideas are welcome...
> LLVM Developers mailing list
> LLVMdev at cs.uiuc.edu http://llvm.cs.uiuc.edu
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the llvm-dev