[PATCH] [ARM] Restructure cpu handling in the driver to mostly use the triple

John Brawn john.brawn at arm.com
Wed May 20 06:55:07 PDT 2015


Hi rengolin,

Using the target cpu to determine some behaviour is sprinkled in several places in the driver, but in almost all the information that is needed can be found in the triple. Restructure things so that the triple is used, and the cpu is only used if the exact cpu name is needed.

Also add a check that the -mcpu argument is valid, and correct the -march argument checking so that it handles -march=native correctly. I would have liked to move these checks into the computation of the triple, but the triple is calculated several times in several places and that would lead to multiple error messages for the same thing.

REPOSITORY
  rL LLVM

http://reviews.llvm.org/D9879

Files:
  lib/Driver/Tools.cpp
  test/Driver/arm-cortex-cpus.c

EMAIL PREFERENCES
  http://reviews.llvm.org/settings/panel/emailpreferences/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D9879.26149.patch
Type: text/x-patch
Size: 8646 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20150520/83a58775/attachment.bin>


More information about the cfe-commits mailing list