aboutsummaryrefslogtreecommitdiff
path: root/clang/tools/clang-format/clang-format-diff.py
diff options
context:
space:
mode:
authorNemanja Ivanovic <nemanja.i.ibm@gmail.com>2023-03-02 13:54:13 -0500
committerNemanja Ivanovic <nemanja.i.ibm@gmail.com>2023-03-02 14:29:40 -0500
commit59cd692454c9430f0fb77ca14b65cb9afcfe2776 (patch)
treee225e48ec0d435c8747e367efaa3521d41fa06ed /clang/tools/clang-format/clang-format-diff.py
parent1fb6cc7ee194e02a2b6923d6a7ddf82b44271ee6 (diff)
downloadllvm-59cd692454c9430f0fb77ca14b65cb9afcfe2776.zip
llvm-59cd692454c9430f0fb77ca14b65cb9afcfe2776.tar.gz
llvm-59cd692454c9430f0fb77ca14b65cb9afcfe2776.tar.bz2
[PowerPC] Recognize long CPU name for -mtune in Clang
There are two ways of specifying a CPU on PowerPC: power<N> and pwr<N>. Clang/LLVM traditionally supports the latter and Clang replaces the former with the latter when passing it to the back end for the -mcpu= option. However, when the -mtune= option was introduced, this replacement was not implemented for it. This leaves us in an inconsistent state of accepting both forms for -mcpu= and and only the latter for -mtune=. Furthermore, it leaves us incompatible with GCC which only understands the power<N> version for both options. This patch just adds the same handling for the long names for -mtune= as already exists for -mcpu=. Differential revision: https://reviews.llvm.org/D144967
Diffstat (limited to 'clang/tools/clang-format/clang-format-diff.py')
0 files changed, 0 insertions, 0 deletions