diff options
author | Michael Maitland <michaeltmaitland@gmail.com> | 2023-02-27 13:54:06 -0800 |
---|---|---|
committer | Michael Maitland <michaeltmaitland@gmail.com> | 2023-02-28 10:45:35 -0800 |
commit | 003078b62d8d40fc000462a97c3b70e01cbe4458 (patch) | |
tree | 830c563260136549725647aaba71aa505102ff4c /clang/docs/CommandGuide | |
parent | 2ae39902506f38d6368a7dbe3d64109f57ad6f99 (diff) | |
download | llvm-003078b62d8d40fc000462a97c3b70e01cbe4458.zip llvm-003078b62d8d40fc000462a97c3b70e01cbe4458.tar.gz llvm-003078b62d8d40fc000462a97c3b70e01cbe4458.tar.bz2 |
[Clang][Driver] Add -mcpu=help and -mtune=help to clang
Clang currently uses `-mcpu=?` and `-mtune=?`. The `?` causes errors on some
shells such as zsh since it is a special character. In order for it to work on
shells such as zsh, the option must be passed in quotes or escaped. This patch
adds `-mcpu=help` and `-mtune=help` as another alias for `--print-supported-cpus`.
In llc, `-mcpu=help` is an alias to print supported cpus.
Differential Revision: https://reviews.llvm.org/D144914
Diffstat (limited to 'clang/docs/CommandGuide')
-rw-r--r-- | clang/docs/CommandGuide/clang.rst | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/clang/docs/CommandGuide/clang.rst b/clang/docs/CommandGuide/clang.rst index 7277b59..7fae1b5 100644 --- a/clang/docs/CommandGuide/clang.rst +++ b/clang/docs/CommandGuide/clang.rst @@ -373,6 +373,10 @@ number of cross compilers, or may only support a native target. Acts as an alias for :option:`--print-supported-cpus`. +.. option:: -mcpu=help, -mtune=help + + Acts as an alias for :option:`--print-supported-cpus`. + .. option:: -march=<cpu> Specify that Clang should generate code for a specific processor family |