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> 25 #include <sys/types.h> 26 #define BIG_ENDIAN 4321 27 #define LITTLE_ENDIAN 1234 28 #if defined(_BIG_ENDIAN) 29 #define BYTE_ORDER BIG_ENDIAN 31 #define BYTE_ORDER LITTLE_ENDIAN 34 #if !defined(BYTE_ORDER) && !defined(_WIN32) 35 #include <machine/endian.h> 44 #if defined(BYTE_ORDER) && defined(BIG_ENDIAN) && BYTE_ORDER == BIG_ENDIAN 47 constexpr
bool IsBigEndianHost =
false;
Compute iterated dominance frontiers using a linear time algorithm.
StringRef getHostCPUNameForPowerPC(StringRef ProcCpuinfoContent)
Helper functions to extract HostCPUName from /proc/cpuinfo on linux.
std::string getDefaultTargetTriple()
getDefaultTargetTriple() - Return the default target triple the compiler has been configured to produ...
StringRef getHostCPUNameForS390x(StringRef ProcCpuinfoContent)
int getHostNumPhysicalCores()
Get the number of physical cores (as opposed to logical cores returned from thread::hardware_concurre...
constexpr bool IsBigEndianHost
static const bool IsLittleEndianHost
StringRef getHostCPUNameForBPF()
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.
StringRef getHostCPUNameForARM(StringRef ProcCpuinfoContent)
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.