[PATCH] D14660: [ARM] Introduce subtarget features per ARM architecture

Bradley Smith via llvm-commits llvm-commits at lists.llvm.org
Fri Nov 13 09:29:45 PST 2015


bsmith created this revision.
bsmith added a reviewer: t.p.northover.
bsmith added a subscriber: llvm-commits.
bsmith set the repository for this revision to rL LLVM.
Herald added subscribers: rengolin, aemerson.

This change refactors the CPU definitions in ARM.td to pull out architecture as separate subtarget features, this has a few benefits:

* It allows architectures to more accurately be targeted
* It removes the hard-coded feature strings in the ARM backend's MCTargetDesc
* It generally tidies up the target definitions ARM.td allowing CPUs to properly inherit from architectures

The rationale behind this is two fold, firstly to help support architectures being targeted using -mcpu=generic (see my next patch for details), and also so that multiple architectures without a supported CPU (such as ARMv8.1-A currently) can be targeted without having duplicate generic CPU fields in the TargetParser (which is currently broken, see my next patch also).

The intention here is not to change the the current set of features enabled for each CPU, the feature sets should be remaining the same.

Repository:
  rL LLVM

http://reviews.llvm.org/D14660

Files:
  include/llvm/MC/MCSubtargetInfo.h
  lib/MC/MCSubtargetInfo.cpp
  lib/Target/ARM/ARM.td
  lib/Target/ARM/ARMSubtarget.h
  lib/Target/ARM/AsmParser/ARMAsmParser.cpp
  lib/Target/ARM/MCTargetDesc/ARMMCTargetDesc.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D14660.40153.patch
Type: text/x-patch
Size: 47490 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20151113/784220e3/attachment.bin>


More information about the llvm-commits mailing list