[STATS] Have CMake do real check for stats functionality

This change allows clang to build the stats library for every architecture
which supports __builtin_readcyclecounter().  CMake also checks for all
necessary features for stats and will error out if the platform does not
support it.

Patch by Hal Finkel and Johnny Peyton

llvm-svn: 256002
GitOrigin-RevId: b9e832608879a9defe8be23384677b9335b00546
4 files changed
tree: c07c3382e4ae0e4cddd843569f74d2cf8719ed42
  1. offload/
  2. runtime/
  3. testsuite/
  4. www/
  5. CMakeLists.txt
  6. CREDITS.txt
  7. LICENSE.txt