[X86] Add CPU string output to getIntelProcessorTypeAndSubtype/getAMDProcessorTypeAnd...
authorCraig Topper <craig.topper@intel.com>
Sun, 12 Jul 2020 19:58:17 +0000 (12:58 -0700)
committerCraig Topper <craig.topper@intel.com>
Sun, 12 Jul 2020 19:59:25 +0000 (12:59 -0700)
commitea84dc9500df383b4fe07199134033f358411e59
tree862d66b7c8836795b2c0510c94746c6b69073bda
parentb92c2bb6a2058611d727c4e2ce3a928f0a3e647d
[X86] Add CPU string output to getIntelProcessorTypeAndSubtype/getAMDProcessorTypeAndSubtype in Host.cpp

Rather than converting type/subtype into strings, just directly
select the string as part of family/model decoding. This avoids
the need for creating fake Type/SubTypes for CPUs not supported
by compiler-rtl. I've left the Type/SubType in place where it matches
compiler-rt so that the code can be diffed, but the Type/SubType
is no longer used by Host.cpp.

compiler-rt was already updated to select strings that aren't used
so the code will look similar.
llvm/include/llvm/Support/X86TargetParser.def
llvm/lib/Support/Host.cpp