<div dir="ltr"><div class="gmail_default" style="font-family:arial,helvetica,sans-serif"><br></div><div class="gmail_extra"><br><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div><div style="direction:ltr;font-family:Tahoma;color:rgb(0,0,0);font-size:10pt">I have read the documentation, but it is not clear to me how can I use the LLVM VLIW Packetizer to generate packets (or bundles) of independent instructions for VLIW architectures.  Is it a pass for  IR code or how can I use this feature? How can I specify
 the characteristics of the target VLIW architecture e.g. number of functional units available?<br>
<br>
Is there an example or more documentation where I can learn how to use this feature?<br></div></div></blockquote><div><br></div><div class="gmail_default" style="font-family:arial,helvetica,sans-serif">​I guess you already read the document [1]? The example I know of is test case and source code itself.</div><div class="gmail_default" style="font-family:arial,helvetica,sans-serif">Please read HexagonVLIWPacketizer.cpp [2], play with some test cases under test/CodeGen/Hexagon,</div><div class="gmail_default" style="font-family:arial,helvetica,sans-serif">say cext-valid-packet1.ll, to see how things go.</div><div class="gmail_default" style="font-family:arial,helvetica,sans-serif"><br></div><div class="gmail_default" style="font-family:arial,helvetica,sans-serif">[1] <a href="http://llvm.org/docs/CodeGenerator.html#vliw-packetizer">http://llvm.org/docs/CodeGenerator.html#vliw-packetizer</a><br></div><div class="gmail_default" style="font-family:arial,helvetica,sans-serif">[2] <a href="http://llvm.org/doxygen/HexagonVLIWPacketizer_8cpp_source.html">http://llvm.org/doxygen/HexagonVLIWPacketizer_8cpp_source.html</a></div><div class="gmail_default" style="font-family:arial,helvetica,sans-serif"><br></div><div class="gmail_default" style="font-family:arial,helvetica,sans-serif">HTH,</div><div class="gmail_default" style="font-family:arial,helvetica,sans-serif">chenwj</div></div><div><br></div>-- <br><div class="gmail_signature"><div dir="ltr"><div>Wei-Ren Chen (陳韋任)<br>Homepage: <a href="https://people.cs.nctu.edu.tw/~chenwj" target="_blank">https://people.cs.nctu.edu.tw/~chenwj</a></div></div></div>
</div></div>