[X86] Add 'znver2' and 'cascadelake' support to __cpu_indicator_init.
authorCraig Topper <craig.topper@intel.com>
Tue, 26 Feb 2019 21:51:05 +0000 (21:51 +0000)
committerCraig Topper <craig.topper@intel.com>
Tue, 26 Feb 2019 21:51:05 +0000 (21:51 +0000)
commit938d3f461bfff0d56d1b433a804528e8433df95e
tree2cae98a68c7fa417f03718ad398c6b6a3a509652
parentda1628eb679d2921e5d683e51cc9ecf6e5750295
[X86] Add 'znver2' and 'cascadelake' support to __cpu_indicator_init.

For 'cascadelake' this is adding a 'avx512vnni' feature check to the 0x55 skylake-avx512 model check. These CPUs use the same model number and only differ in the stepping number. But the feature flag is simpler than collecting all the stepping numbers.

For 'znver2' this is just syncing with LLVM's Host.cpp.

llvm-svn: 354927
compiler-rt/lib/builtins/cpu_model.c