[compiler-rt] [llvm] [compiler-rt][X86] Use functions in cpuid.h instead of inline assembly (PR #97877)

Aiden Grossman via llvm-commits llvm-commits at lists.llvm.org
Mon Jul 8 10:54:36 PDT 2024


boomanaiden154 wrote:

> clang/lib/Headers/cpuid.h did not define __get_cpuid_count before https://github.com/llvm/llvm-project/commit/f6e8408a116405d0cc25b506e8c5b60ab4ab7bcd (2017). Clang 5.0.0 (Sep 2017 https://www.llvm.org/docs/GettingStarted.html#host-c-toolchain-both-compiler-and-standard-library) contains the commit. Nice:)

Yep. I was a bit surprised when I saw everything was included in the minimum supported compiler versions as well. It definitely makes the code a lot cleaner and hopefully more robust as now there's one less inline assembly implementation.

https://github.com/llvm/llvm-project/pull/97877


More information about the llvm-commits mailing list