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

Guillaume Chatelet via All-commits all-commits at lists.llvm.org
Tue Jan 24 08:04:46 PST 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: c84d74f5bfe810744de1268eb0516a6622e4aa73
      https://github.com/llvm/llvm-project/commit/c84d74f5bfe810744de1268eb0516a6622e4aa73
  Author: Guillaume Chatelet <gchatelet at google.com>
  Date:   2023-01-24 (Tue, 24 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:
  -----------
  [reland][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