aboutsummaryrefslogtreecommitdiff
path: root/clang/lib/Frontend/CompilerInvocation.cpp
diff options
context:
space:
mode:
authorAmy Kwan <amy.kwan1@ibm.com>2021-10-18 16:40:31 -0500
committerAmy Kwan <amy.kwan1@ibm.com>2021-10-19 09:01:01 -0500
commit5eaf5b916146dff0a02d8d937e88d8fb128640d2 (patch)
treec981f2af358198d8d93ba4245fb746a797c65a8a /clang/lib/Frontend/CompilerInvocation.cpp
parent607fb1bb8c91a2f284d8c63f3066ab8cc1a66955 (diff)
downloadllvm-5eaf5b916146dff0a02d8d937e88d8fb128640d2.zip
llvm-5eaf5b916146dff0a02d8d937e88d8fb128640d2.tar.gz
llvm-5eaf5b916146dff0a02d8d937e88d8fb128640d2.tar.bz2
[PowerPC] Restrict various P10 options to P10 only.
This patch attempts to restrict the following P10 options: ``` -mprefixed -mpcrel -mpaired-vector-memops ``` To P10 only. This will prevent the use of these options on P9 and earlier. The behaviour of this patch looks like the following on pre-P10: ``` $ clang -mcpu=pwr9 -mpaired-vector-memops test.c -o test error: option '-mpaired-vector-memops' cannot be specified without '-mcpu=pwr10' $ clang -mcpu=pwr9 -mprefixed test.c -o test error: option '-mprefixed' cannot be specified without '-mcpu=pwr10' $ clang -mcpu=pwr9 -mprefixed -mpcrel test.c -o test error: option '-mpcrel' cannot be specified without '-mcpu=pwr10 -mprefixed' $ clang -mcpu=pwr9 -mpcrel -mprefixed test.c -o test error: option '-mpcrel' cannot be specified without '-mcpu=pwr10 -mprefixed' $ clang -mcpu=pwr9 -mpcrel test.c -o test error: option '-mpcrel' cannot be specified without '-mcpu=pwr10 -mprefixed' ``` Differential Revision: https://reviews.llvm.org/D109652
Diffstat (limited to 'clang/lib/Frontend/CompilerInvocation.cpp')
0 files changed, 0 insertions, 0 deletions