[all-commits] [llvm/llvm-project] 1aab05: [libc] Add CMake script to check host cpu features

Guillaume Chatelet via All-commits all-commits at lists.llvm.org
Thu Feb 27 00:53:29 PST 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: 1aab055dd8ecd1ce8dcc0fe21da95e08b288b24e
      https://github.com/llvm/llvm-project/commit/1aab055dd8ecd1ce8dcc0fe21da95e08b288b24e
  Author: Guillaume Chatelet <gchatelet at google.com>
  Date:   2020-02-27 (Thu, 27 Feb 2020)

  Changed paths:
    A libc/cmake/modules/LLVMLibCCheckCpuFeatures.cmake
    A libc/cmake/modules/cpu_features/check_avx.cpp
    A libc/cmake/modules/cpu_features/check_avx512f.cpp
    A libc/cmake/modules/cpu_features/check_sse.cpp
    A libc/cmake/modules/cpu_features/check_sse2.cpp

  Log Message:
  -----------
  [libc] Add CMake script to check host cpu features

Summary:
Tested on MacOSX and Linux.
For robustness we can go the OpenCV way and add individual c++ files with intrinsics.
https://github.com/opencv/opencv/blob/master/cmake/checks/cpu_avx2.cpp

Reviewers: sivachandra, abrachet

Subscribers: mgorny, MaskRay, tschuett, libc-commits

Tags: #libc-project

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




More information about the All-commits mailing list