[all-commits] [llvm/llvm-project] fd6448: [libc][NFC] Detect host CPU features using try_com...

Guillaume Chatelet via All-commits all-commits at lists.llvm.org
Tue Jan 24 23:57:59 PST 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: fd64482e3d1a825f24248d8c39dd400573b53ca5
      https://github.com/llvm/llvm-project/commit/fd64482e3d1a825f24248d8c39dd400573b53ca5
  Author: Guillaume Chatelet <gchatelet at google.com>
  Date:   2023-01-25 (Wed, 25 Jan 2023)

  Changed paths:
    M libc/cmake/modules/LLVMLibCCheckCpuFeatures.cmake
    A libc/cmake/modules/cpu_features/check_AVX2.cpp
    A libc/cmake/modules/cpu_features/check_AVX512BW.cpp
    A libc/cmake/modules/cpu_features/check_AVX512F.cpp
    A libc/cmake/modules/cpu_features/check_FMA.cpp
    A libc/cmake/modules/cpu_features/check_SSE2.cpp
    A libc/cmake/modules/cpu_features/check_SSE4_2.cpp
    R libc/cmake/modules/cpu_features/check_cpu_features.cpp.in
    M libc/src/__support/CMakeLists.txt
    M libc/src/__support/FPUtil/FMA.h
    M libc/src/__support/FPUtil/aarch64/FMA.h
    M libc/src/__support/FPUtil/multiply_add.h
    M libc/src/__support/FPUtil/x86_64/FMA.h
    M libc/src/__support/architectures.h
    A libc/src/__support/cpu_features.h
    M libc/src/math/generic/asinf.cpp
    M libc/src/math/generic/cosf.cpp
    M libc/src/math/generic/expm1f.cpp
    M libc/src/math/generic/sincosf.cpp
    M libc/src/math/generic/sincosf_utils.h
    M libc/src/math/generic/sinf.cpp
    M libc/src/math/generic/tanf.cpp
    M libc/src/math/generic/tanhf.cpp
    M utils/bazel/llvm-project-overlay/libc/BUILD.bazel

  Log Message:
  -----------
  [libc][NFC] Detect host CPU features using try_compile instead of try_run.

This implements the same behavior as D141997 but makes sure that the same detection mechanism is used between CMake and source code.

Reviewed By: sivachandra, lntue

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




More information about the All-commits mailing list