[libc-commits] [PATCH] D142108: [libc][NFC] Detect host CPU features using try_compile instead of try_run.

Guillaume Chatelet via Phabricator via libc-commits libc-commits at lists.llvm.org
Thu Jan 19 06:05:04 PST 2023


gchatelet created this revision.
gchatelet added reviewers: sivachandra, lntue.
Herald added subscribers: libc-commits, ecnelises, tschuett.
Herald added projects: libc-project, All.
gchatelet requested review of this revision.

This implements the same behavior as D141997 <https://reviews.llvm.org/D141997> but makes sure that the same detection mechanism is used between CMake and source code.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D142108

Files:
  libc/cmake/modules/LLVMLibCCheckCpuFeatures.cmake
  libc/cmake/modules/cpu_features/check_AVX2.c
  libc/cmake/modules/cpu_features/check_AVX512BW.c
  libc/cmake/modules/cpu_features/check_AVX512F.c
  libc/cmake/modules/cpu_features/check_FMA.c
  libc/cmake/modules/cpu_features/check_SSE2.c
  libc/cmake/modules/cpu_features/check_SSE4_2.c
  libc/cmake/modules/cpu_features/check_cpu_features.cpp.in
  libc/src/__support/FPUtil/FMA.h
  libc/src/__support/FPUtil/aarch64/FMA.h
  libc/src/__support/FPUtil/multiply_add.h
  libc/src/__support/FPUtil/x86_64/FMA.h
  libc/src/__support/architectures.h
  libc/src/__support/cpu_features.h
  libc/src/math/generic/asinf.cpp
  libc/src/math/generic/cosf.cpp
  libc/src/math/generic/expm1f.cpp
  libc/src/math/generic/sincosf.cpp
  libc/src/math/generic/sincosf_utils.h
  libc/src/math/generic/sinf.cpp
  libc/src/math/generic/tanf.cpp
  libc/src/math/generic/tanhf.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D142108.490484.patch
Type: text/x-patch
Size: 12549 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/libc-commits/attachments/20230119/e5c512b8/attachment-0001.bin>


More information about the libc-commits mailing list