[PATCH] D37938: [X86] Remove unnecessary extra encodings from the CPU name enum in clang

Craig Topper via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Fri Sep 15 15:37:41 PDT 2017


craig.topper created this revision.

For a lot of older CPUs we have a 1:1 mapping between CPU name and enum name. But many of them are effectively aliases of each other and as a result are always repeated together at every usage

This patch removes most of the duplication. It also uses StringSwitch::Cases to make the many to one mapping in the StringSwitch more obvious.


https://reviews.llvm.org/D37938

Files:
  lib/Basic/Targets/X86.cpp
  lib/Basic/Targets/X86.h

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D37938.115512.patch
Type: text/x-patch
Size: 7280 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20170915/2b027a02/attachment.bin>


More information about the cfe-commits mailing list