]> granicus.if.org Git - clang/commit
Add --print-supported-cpus flag for clang.
authorZiang Wan <ziangw2@illinois.edu>
Fri, 14 Jun 2019 21:42:21 +0000 (21:42 +0000)
committerZiang Wan <ziangw2@illinois.edu>
Fri, 14 Jun 2019 21:42:21 +0000 (21:42 +0000)
commitdf6a97d185f4e7ac0ea672db9c63b2273cc84cf8
tree00af281a8a29c71341b675611c1896f84826319d
parentfb6b6849966d77776e632d59b0ffca028f20a1d7
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.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@363464 91177308-0d34-0410-b5e6-96231b3b80d8
docs/ClangCommandLineReference.rst
docs/CommandGuide/clang.rst
include/clang/Driver/Options.td
include/clang/Frontend/FrontendOptions.h
lib/Driver/Driver.cpp
lib/Frontend/CompilerInvocation.cpp
test/Driver/print-supported-cpus.c [new file with mode: 0644]
tools/driver/cc1_main.cpp