[cpu-detection] Copy simplified version of get_cpuid_max to remove dependency to...
authorAlina Sbirlea <asbirlea@google.com>
Tue, 4 Oct 2016 22:39:53 +0000 (22:39 +0000)
committerAlina Sbirlea <asbirlea@google.com>
Tue, 4 Oct 2016 22:39:53 +0000 (22:39 +0000)
commit9a78ebd6d8aa24d0352d5a3640711aa5155dec80
treefb1777a6c8d8761931ae510b5e90587f0e885048
parentf3a0bce1557f2c070518875122a8eb648f971211
[cpu-detection] Copy simplified version of get_cpuid_max to remove dependency to clang's implementation

Summary:
Attempting to fix PR30384.
Take the same approach as in compiler_rt and add a simplified version of __get_cpuid_max.
Including cpuid.h is no longer needed.

Reviewers: echristo, joerg

Subscribers: mehdi_amini, llvm-commits

Differential Revision: https://reviews.llvm.org/D24597

llvm-svn: 283265
llvm/lib/Support/Host.cpp