This is needed for gcc/cstdlib++ 5.4.0, where __get_cpuid_count is not
defined in cpuid.h.
Details
Details
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo
- Build Status
Buildable 30940 Build 30939: arc lint + arc unit
Event Timeline
Comment Actions
@labath, as discussed in D59991, I went with a local copy of the function since I didn't see an obvious opportunity to tweak the calling code, but maybe I overlooked something. My copy of cpuid.h matches https://github.com/gcc-mirror/gcc/blob/gcc-5-branch/gcc/config/i386/cpuid.h
Comment Actions
The chosen approach looks fine to me. The only nit I have is that llvm style prefers static functions over ones in anonymous namespaces (though this file is not very consistent in that aspect already).
Do you have commit access or shall I commit this for you?