aboutsummaryrefslogtreecommitdiff
path: root/clang/docs/CommandGuide
diff options
context:
space:
mode:
authorZiang Wan <ziangw2@illinois.edu>2019-06-14 21:42:21 +0000
committerZiang Wan <ziangw2@illinois.edu>2019-06-14 21:42:21 +0000
commitaf857b93df36a983a27a82455c0dea39f53da5b1 (patch)
tree49e18150fe961decbffbd73a7951e2a415250e3a /clang/docs/CommandGuide
parent5501dda2479580ae84291d0237e794feeb38a8d9 (diff)
downloadllvm-af857b93df36a983a27a82455c0dea39f53da5b1.zip
llvm-af857b93df36a983a27a82455c0dea39f53da5b1.tar.gz
llvm-af857b93df36a983a27a82455c0dea39f53da5b1.tar.bz2
Add --print-supported-cpus flag for clang.
This patch allows clang users to print out a list of supported CPU models using clang [--target=<target triple>] --print-supported-cpus Then, users can select the CPU model to compile to using clang --target=<triple> -mcpu=<model> a.c It is a handy feature to help cross compilation. llvm-svn: 363464
Diffstat (limited to 'clang/docs/CommandGuide')
-rw-r--r--clang/docs/CommandGuide/clang.rst6
1 files changed, 6 insertions, 0 deletions
diff --git a/clang/docs/CommandGuide/clang.rst b/clang/docs/CommandGuide/clang.rst
index 84e0ddd..1ed11c7 100644
--- a/clang/docs/CommandGuide/clang.rst
+++ b/clang/docs/CommandGuide/clang.rst
@@ -324,6 +324,12 @@ number of cross compilers, or may only support a native target.
When building for iPhone OS, specify the minimum version supported by your
application.
+.. option:: --print-supported-cpus
+
+ Print out a list of supported processors for the given target (specified
+ through --target=<architecture> or -arch <architecture>). If no target is
+ specified, the system default target will be used.
+
.. option:: -march=<cpu>
Specify that Clang should generate code for a specific processor family