Forums - Auto vectorization from clang

1 post / 0 new
Auto vectorization from clang
eric.lindemann
Join Date: 21 Sep 17
Posts: 2
Posted: Fri, 2017-10-06 13:59

Is it possible to to automatically generate vector mpy and/or add instructions from C code (clang) without using intrinsics -- i.e. just from normal for loops? The clang compiler command line options include options for Hexagon vectorization such as -mhvx -mno-hvx. However, these appear to make no difference in the assembler output from the C compiler. Only scalar mpyi instruction are generated. Never vector multiply instruction. 

  • Up0
  • Down0

Opinions expressed in the content posted here are the personal opinions of the original authors, and do not necessarily reflect those of Qualcomm Incorporated or its subsidiaries (“Qualcomm”). The content is provided for informational purposes only and is not meant to be an endorsement or representation by Qualcomm or any other party. This site may also provide links or references to non-Qualcomm sites and resources. Qualcomm makes no representations, warranties, or other commitments whatsoever about any non-Qualcomm sites or third-party resources that may be referenced, accessible from, or linked to this site.