[llvm-dev] How to use the VLIW Packetizer

陳韋任 via llvm-dev llvm-dev at lists.llvm.org
Fri Jun 23 05:18:20 PDT 2017

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?
> Is there an example or more documentation where I can learn how to use
> this feature?

​I guess you already read the document [1]? The example I know of is test
case and source code itself.
Please read HexagonVLIWPacketizer.cpp [2], play with some test cases under
say cext-valid-packet1.ll, to see how things go.

[1] http://llvm.org/docs/CodeGenerator.html#vliw-packetizer
[2] http://llvm.org/doxygen/HexagonVLIWPacketizer_8cpp_source.html


Wei-Ren Chen (陳韋任)
Homepage: https://people.cs.nctu.edu.tw/~chenwj
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20170623/1e4992bd/attachment.html>

More information about the llvm-dev mailing list