[Hexagon] Alter meaning of versionless -mhvx
authorKrzysztof Parzyszek <kparzysz@quicinc.com>
Tue, 8 Feb 2022 16:45:40 +0000 (08:45 -0800)
committerKrzysztof Parzyszek <kparzysz@quicinc.com>
Tue, 8 Feb 2022 17:06:15 +0000 (09:06 -0800)
commit2ecda9ec9cc89b87ce2e56452229c9444beabf21
treeb12b724e16a3f9c2ae66864c43fe33a9a0d6e29c
parent5d8d3a11c4d4ed8bb610f60f8fa37b8043a40acd
[Hexagon] Alter meaning of versionless -mhvx

The documentation for the official (downstream) Qualcomm Hexagon Clang
states that -mhvx sets the HVX version to be the same as the CPU version.
The current implementation upstream would use the most recent versioned
-mhvx= flag first (if present), then the CPU version. Change the upstream
behavior to match the documented behavior of the downstream compiler.
clang/lib/Driver/ToolChains/Hexagon.cpp
clang/test/Driver/hexagon-hvx.c