14 #ifndef LLVM_SUPPORT_HOST_H
15 #define LLVM_SUPPORT_HOST_H
19 #if defined(__linux__) || defined(__GNU__) || defined(__HAIKU__)
22 #include <sys/machine.h>
24 #if !defined(BYTE_ORDER) && !defined(LLVM_ON_WIN32)
25 #include <machine/endian.h>
34 #if defined(BYTE_ORDER) && defined(BIG_ENDIAN) && BYTE_ORDER == BIG_ENDIAN
std::string getDefaultTargetTriple()
getDefaultTargetTriple() - Return the default target triple the compiler has been configured to produ...
int getHostNumPhysicalCores()
Get the number of physical cores (as opposed to logical cores returned from thread::hardware_concurre...
static const bool IsLittleEndianHost
std::string getProcessTriple()
getProcessTriple() - Return an appropriate target triple for generating code to be loaded into the cu...
StringRef getHostCPUName()
getHostCPUName - Get the LLVM name for the host CPU.
static const bool IsBigEndianHost
const FeatureBitset Features
StringRef - Represent a constant reference to a string, i.e.
bool getHostCPUFeatures(StringMap< bool > &Features)
getHostCPUFeatures - Get the LLVM names for the host CPU features.