]> granicus.if.org Git - llvm/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)
commitcb6a1c44adef9ad79afe4089faf42e31186ed286
treeee5f9f5e8912cdda6b54fc946720728188f32aa5
parent63c1a6eccbc8879fb5ab424acdeb113dd8d06164
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/llvm/trunk@363464 91177308-0d34-0410-b5e6-96231b3b80d8
lib/MC/MCSubtargetInfo.cpp