[all-commits] [llvm/llvm-project] 003078: [Clang][Driver] Add -mcpu=help and -mtune=help to ...

Michael Maitland via All-commits all-commits at lists.llvm.org
Tue Feb 28 10:46:34 PST 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 003078b62d8d40fc000462a97c3b70e01cbe4458
      https://github.com/llvm/llvm-project/commit/003078b62d8d40fc000462a97c3b70e01cbe4458
  Author: Michael Maitland <michaeltmaitland at gmail.com>
  Date:   2023-02-28 (Tue, 28 Feb 2023)

  Changed paths:
    M clang/docs/CommandGuide/clang.rst
    M clang/include/clang/Driver/Options.td
    M clang/test/Driver/print-supported-cpus.c

  Log Message:
  -----------
  [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




More information about the All-commits mailing list