From de94ac9357750fdba45e09eefa8f67a650ae6a64 Mon Sep 17 00:00:00 2001 From: Ziang Wan Date: Tue, 25 Jun 2019 23:57:14 +0000 Subject: print-supported-cpus quality of life patch. Claim all input files so that clang does not give a warning. Add two short-cut aliases: -mcpu=? and -mtune=?. llvm-svn: 364362 --- clang/docs/ClangCommandLineReference.rst | 4 ++++ clang/docs/CommandGuide/clang.rst | 4 ++++ 2 files changed, 8 insertions(+) (limited to 'clang/docs') diff --git a/clang/docs/ClangCommandLineReference.rst b/clang/docs/ClangCommandLineReference.rst index bad91ff830d..b7f94e98d49 100644 --- a/clang/docs/ClangCommandLineReference.rst +++ b/clang/docs/ClangCommandLineReference.rst @@ -2168,6 +2168,8 @@ Link stack frames through backchain on System Z .. option:: -mcpu=, -mv5 (equivalent to -mcpu=hexagonv5), -mv55 (equivalent to -mcpu=hexagonv55), -mv60 (equivalent to -mcpu=hexagonv60), -mv62 (equivalent to -mcpu=hexagonv62), -mv65 (equivalent to -mcpu=hexagonv65) +Use -mcpu=? to see a list of supported cpu models. + .. option:: -mcrc, -mno-crc Allow use of CRC instructions (ARM/Mips only) @@ -2302,6 +2304,8 @@ The thread model to use, e.g. posix, single (posix by default) .. option:: -mtune= +Use -mtune=? to see a list of supported cpu models. + .. option:: -mtvos-version-min=, -mappletvos-version-min= .. option:: -municode diff --git a/clang/docs/CommandGuide/clang.rst b/clang/docs/CommandGuide/clang.rst index f511022dd77..7b0873600fc 100644 --- a/clang/docs/CommandGuide/clang.rst +++ b/clang/docs/CommandGuide/clang.rst @@ -330,6 +330,10 @@ number of cross compilers, or may only support a native target. through --target= or -arch ). If no target is specified, the system default target will be used. +.. option:: -mcpu=?, -mtune=? + + Aliases of --print-supported-cpus + .. option:: -march= Specify that Clang should generate code for a specific processor family -- cgit v1.2.3