aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/Support/Threading.cpp
diff options
context:
space:
mode:
authorMatthias Braun <matze@braunis.de>2016-06-02 18:03:53 +0000
committerMatthias Braun <matze@braunis.de>2016-06-02 18:03:53 +0000
commit651cff42c4775c20ae1288b965f841423001a9dc (patch)
treeebbe39e0e6bcb3732023826ed8014e198c248d0f /llvm/lib/Support/Threading.cpp
parent5c0bc02878a6334f54af3be77e17354f13254778 (diff)
downloadllvm-651cff42c4775c20ae1288b965f841423001a9dc.zip
llvm-651cff42c4775c20ae1288b965f841423001a9dc.tar.gz
llvm-651cff42c4775c20ae1288b965f841423001a9dc.tar.bz2
AArch64: Do not test for CPUs, use SubtargetFeatures
Testing for specific CPUs has a number of problems, better use subtarget features: - When some tweak is added for a specific CPU it is often desirable for the next version of that CPU as well, yet we often forget to add it. - It is hard to keep track of checks scattered around the target code; Declaring all target specifics together with the CPU in the tablegen file is a clear representation. - Subtarget features can be tweaked from the command line. To discourage people from using CPU checks in the future I removed the isCortexXX(), isCyclone(), ... functions. I added an getProcFamily() function for exceptional circumstances but made it clear in the comment that usage is discouraged. Reformat feature list in AArch64.td to have 1 feature per line in alphabetical order to simplify merging and sorting for out of tree tweaks. No functional change intended. Differential Revision: http://reviews.llvm.org/D20762 llvm-svn: 271555
Diffstat (limited to 'llvm/lib/Support/Threading.cpp')
0 files changed, 0 insertions, 0 deletions