Revert "[clang][X86] Add __cpuidex function to cpuid.h"
authorAiden Grossman <agrossman154@yahoo.com>
Fri, 4 Aug 2023 16:20:50 +0000 (09:20 -0700)
committerTobias Hieta <tobias@hieta.se>
Tue, 8 Aug 2023 07:25:26 +0000 (09:25 +0200)
commitaf23bb51b5bb8c797fae63d12932c0282ddd35e4
treed4fc9b0b737c629ba6f7b31e10f199425bc16801
parent3fc4317e3c35a615121035372e4ba57bdd821a7f
Revert "[clang][X86] Add __cpuidex function to cpuid.h"

This reverts commit 2df77ac20a1ed996706b164b0c4ed5ad140f635f.

This has been causing some issues with some windows builds as
_MSC_EXTENSIONS isn't defined when only -fms-extensions is set, but the
builtin that conflicts with __cpuidex is. This was also causing problems
as it exposed some latent issues with how auxiliary triples are handled
in clang.

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

(cherry picked from commit f3baf63d9a1ba91974f4df6abb8f2abd9a0df5b5)
clang/lib/Headers/cpuid.h
clang/test/Headers/__cpuidex_conflict.c [deleted file]
clang/test/Headers/cpuid.c