[lldb] [lit] Add feature flags for native CPU features
authorMichal Gorny <mgorny@gentoo.org>
Fri, 26 Apr 2019 13:21:46 +0000 (13:21 +0000)
committerMichal Gorny <mgorny@gentoo.org>
Fri, 26 Apr 2019 13:21:46 +0000 (13:21 +0000)
commit9c3824aad7f727591798441a65af5e92eaef8f67
tree74181578ff81192b76afee61eee1415a6cd2dcf9
parent8245140d3f59aec53832a4c3330ae6d1646dacfd
[lldb] [lit] Add feature flags for native CPU features

Add a new lit-cpuid tool that detects CPU features used by some of
the tests, and use it to populate available_features in lit.  For now,
this means that the test for MM/XMM register read will be run only
when the host CPU support SSE instruction set.  However, this is going
to make it possible to introduce additional tests relying on AVX.

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

llvm-svn: 359303
lldb/CMakeLists.txt
lldb/lit/CMakeLists.txt
lldb/lit/Register/x86-mm-xmm-read.test
lldb/lit/lit.cfg.py
lldb/utils/lit-cpuid/CMakeLists.txt [new file with mode: 0644]
lldb/utils/lit-cpuid/lit-cpuid.cpp [new file with mode: 0644]