]> granicus.if.org Git - clang/commit
ARMV8-A archkind and target defines helper functions
authorSjoerd Meijer <sjoerd.meijer@arm.com>
Fri, 30 Jun 2017 08:07:34 +0000 (08:07 +0000)
committerSjoerd Meijer <sjoerd.meijer@arm.com>
Fri, 30 Jun 2017 08:07:34 +0000 (08:07 +0000)
commit6853ca9a40411fc4997749ee9c2d96059f35c1a7
treee589c523b60f197159960ec9e124fc87781a51c9
parent26f8a8d2c4bf101bb98ff55893198f712a60a336
ARMV8-A archkind and target defines helper functions

This introduces helper functions that set target defines for different ARMV8-A
architecture kinds. It fixes an issue that the v8.1 define ARM_FEATURE_QRDMX
was not set for v8.2. These helper functions make things more “scalable” if we
want to add ARMv8.3 at some point, and a cleanup has been done to hold the
architecture kind in one variable (instead of one for each).

Differential Revision: https://reviews.llvm.org/D34686

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@306805 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Basic/Targets.cpp
test/Preprocessor/aarch64-target-features.c
test/Preprocessor/arm-target-features.c