[PATCH] D14660: [ARM] Introduce subtarget features per ARM architecture
David Blaikie via llvm-commits
llvm-commits at lists.llvm.org
Fri Nov 13 09:37:52 PST 2015
+echristo, since he's played with subtargets a lot recently so might have
some insight about good ways to do this/deficiencies in the current ARM
representation/whatnot
On Fri, Nov 13, 2015 at 9:29 AM, Bradley Smith via llvm-commits <
llvm-commits at lists.llvm.org> wrote:
> 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
>
>
> _______________________________________________
> llvm-commits mailing list
> llvm-commits at lists.llvm.org
> http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-commits
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20151113/595d03ea/attachment.html>
More information about the llvm-commits
mailing list