#include "llvm/TargetParser/Host.h"
#include "llvm/ADT/SmallVector.h"
#include "llvm/Config/config.h"
#include "llvm/Support/FileSystem.h"
#include "llvm/Support/Path.h"
#include "llvm/Support/Program.h"
#include "llvm/Support/Threading.h"
#include "llvm/TargetParser/Triple.h"
#include "gtest/gtest.h"
#define ASSERT_NO_ERROR(x) …
usingnamespacellvm;
TEST(getLinuxHostCPUName, ARM) { … }
TEST(getLinuxHostCPUName, AArch64) { … }
TEST(getLinuxHostCPUName, s390x) { … }
TEST(getLinuxHostCPUName, RISCV) { … }
static bool runAndGetCommandOutput(
const char *ExePath, ArrayRef<llvm::StringRef> argv,
std::unique_ptr<char[]> &Buffer, off_t &Size) { … }
TEST(HostTest, DummyRunAndGetCommandOutputUse) { … }
TEST(HostTest, getMacOSHostVersion) { … }
static void getAIXSystemVersion(VersionTuple &SystemVersion) { … }
TEST(HostTest, AIXHostVersionDetect) { … }
TEST(HostTest, AIXTargetVersionDetect) { … }
TEST(HostTest, AIXHostCPUDetect) { … }