llvm-project
599f8e11 - Reland "[compiler-rt][X86] Use functions in cpuid.h instead of inline assembly (#97877)"

Commit
1 year ago
Reland "[compiler-rt][X86] Use functions in cpuid.h instead of inline assembly (#97877)" This reverts commit f1905f064451bf688577976a13000c9c47e58452. This relands commit 19cf8deabe1124831164987f1b9bf2f806c0a875. There were issues with the preprocessor includes that should have excluded MSVC still including clang functions building on windows and using intrin.h. This relanding fixes this behavior by additionally wrapping the uses of __get_cpuid and __get_cpuid_count in _MSC_VER so that clang in MSVC mode, which includes intrin.h, does not have any conflicts.
Committer
Parents
Loading