summaryrefslogtreecommitdiffstats
path: root/lldb/utils/lit-cpuid/lit-cpuid.cpp
diff options
context:
space:
mode:
authorJonas Devlieghere <jonas@devlieghere.com>2019-07-23 17:23:36 +0000
committerJonas Devlieghere <jonas@devlieghere.com>2019-07-23 17:23:36 +0000
commit6491076ec6800f54a8b1d09a95566b36db00f99d (patch)
treefaee8f559629a7acaf38aac7d03522cfe49b7d3e /lldb/utils/lit-cpuid/lit-cpuid.cpp
parent6f13637a3e130980456f37647f7628aa7fa7a2b6 (diff)
downloadbcm5719-llvm-6491076ec6800f54a8b1d09a95566b36db00f99d.tar.gz
bcm5719-llvm-6491076ec6800f54a8b1d09a95566b36db00f99d.zip
[Utils] Remove legacy scripts
As pointed out by Nathan in D65155, these scrips don't seem to serve any real need anymore. llvm-svn: 366827
Diffstat (limited to 'lldb/utils/lit-cpuid/lit-cpuid.cpp')
-rw-r--r--lldb/utils/lit-cpuid/lit-cpuid.cpp37
1 files changed, 0 insertions, 37 deletions
diff --git a/lldb/utils/lit-cpuid/lit-cpuid.cpp b/lldb/utils/lit-cpuid/lit-cpuid.cpp
deleted file mode 100644
index 3ec9241ff88..00000000000
--- a/lldb/utils/lit-cpuid/lit-cpuid.cpp
+++ /dev/null
@@ -1,37 +0,0 @@
-//===- lit-cpuid.cpp - Get CPU feature flags for lit exported features ----===//
-//
-// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
-// See https://llvm.org/LICENSE.txt for license information.
-// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
-//
-//===----------------------------------------------------------------------===//
-//
-// lit-cpuid obtains the feature list for the currently running CPU, and outputs
-// those flags that are interesting for LLDB lit tests.
-//
-//===----------------------------------------------------------------------===//
-
-#include "llvm/ADT/StringMap.h"
-#include "llvm/Support/Host.h"
-#include "llvm/Support/raw_ostream.h"
-
-using namespace llvm;
-
-int main(int argc, char **argv) {
-#if defined(__i386__) || defined(_M_IX86) || \
- defined(__x86_64__) || defined(_M_X64)
- StringMap<bool> features;
-
- if (!sys::getHostCPUFeatures(features))
- return 1;
-
- if (features["sse"])
- outs() << "sse\n";
- if (features["avx"])
- outs() << "avx\n";
- if (features["avx512f"])
- outs() << "avx512f\n";
-#endif
-
- return 0;
-}
OpenPOWER on IntegriCloud