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

Guillaume Chatelet via All-commits all-commits at lists.llvm.org
Mon Jan 23 01:09:06 PST 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 9acc2f37bdfce08ca0c2faec03392db10d1bb7a9
      https://github.com/llvm/llvm-project/commit/9acc2f37bdfce08ca0c2faec03392db10d1bb7a9
  Author: Guillaume Chatelet <gchatelet at google.com>
  Date:   2023-01-23 (Mon, 23 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.

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




More information about the All-commits mailing list