OSDN Git Service

[X86] Calculate the needed size of the feature arrays in _cpu_indicator_init and...
authorCraig Topper <craig.topper@intel.com>
Mon, 22 Jun 2020 00:30:10 +0000 (17:30 -0700)
committerCraig Topper <craig.topper@intel.com>
Mon, 22 Jun 2020 18:46:20 +0000 (11:46 -0700)
commit5ac144fe64c6911b5b6011cac1d61e0f82562e7f
treecf7fd10879b006a3ae2d5b1f7c11231e7fb30645
parent663860f63e73518fc09e55a4a68b03f8027eafc8
[X86] Calculate the needed size of the feature arrays in _cpu_indicator_init and getHostCPUName using the size of the feature enum.

Move 0 initialization up to the caller so we don't need to know
the size.
compiler-rt/lib/builtins/cpu_model.c
llvm/include/llvm/Support/X86TargetParser.h
llvm/lib/Support/Host.cpp