[libc-commits] [PATCH] D74897: [libc] Add CMake script to check host cpu features
Alex Brachet via Phabricator via libc-commits
libc-commits at lists.llvm.org
Thu Feb 20 10:57:00 PST 2020
abrachet added a comment.
> 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
I think this makes the most sense. It's also what cmake does in the initial configuration step where it creates small source files and sees if they compile. Do all of the cpu features that you are interested in have related intrinsics? Or will we need to assemble and run files to see if the cpu raises an invalid opcode exception?
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D74897/new/
https://reviews.llvm.org/D74897
More information about the libc-commits
mailing list