LLVM 22.0.0git
Host.h File Reference
#include "llvm/ADT/ArrayRef.h"
#include "llvm/Support/Compiler.h"
#include <string>

Go to the source code of this file.

Namespaces

namespace  llvm
 This is an optimization pass for GlobalISel generic memory operations.
namespace  llvm::sys
namespace  llvm::sys::detail
namespace  llvm::sys::detail::x86
 Helper functions to extract CPU details from CPUID on x86.

Enumerations

enum class  llvm::sys::detail::x86::VendorSignatures { llvm::sys::detail::x86::UNKNOWN , llvm::sys::detail::x86::GENUINE_INTEL , llvm::sys::detail::x86::AUTHENTIC_AMD }

Functions

LLVM_ABI std::string llvm::sys::getDefaultTargetTriple ()
 getDefaultTargetTriple() - Return the default target triple the compiler has been configured to produce code for.
LLVM_ABI std::string llvm::sys::getProcessTriple ()
 getProcessTriple() - Return an appropriate target triple for generating code to be loaded into the current process, e.g.
LLVM_ABI StringRef llvm::sys::getHostCPUName ()
 getHostCPUName - Get the LLVM name for the host CPU.
LLVM_ABI StringMap< bool, MallocAllocatorllvm::sys::getHostCPUFeatures ()
 getHostCPUFeatures - Get the LLVM names for the host CPU features.
LLVM_ABI void llvm::sys::printDefaultTargetAndDetectedCPU (raw_ostream &OS)
 This is a function compatible with cl::AddExtraVersionPrinter, which adds info about the current target triple and detected CPU.
LLVM_ABI StringRef llvm::sys::detail::getHostCPUNameForPowerPC (StringRef ProcCpuinfoContent)
 Helper functions to extract HostCPUName from /proc/cpuinfo on linux.
LLVM_ABI StringRef llvm::sys::detail::getHostCPUNameForARM (StringRef ProcCpuinfoContent)
LLVM_ABI StringRef llvm::sys::detail::getHostCPUNameForARM (uint64_t PrimaryCpuInfo, ArrayRef< uint64_t > UniqueCpuInfos)
LLVM_ABI StringRef llvm::sys::detail::getHostCPUNameForS390x (StringRef ProcCpuinfoContent)
LLVM_ABI StringRef llvm::sys::detail::getHostCPUNameForRISCV (StringRef ProcCpuinfoContent)
LLVM_ABI StringRef llvm::sys::detail::getHostCPUNameForSPARC (StringRef ProcCpuinfoContent)
LLVM_ABI StringRef llvm::sys::detail::getHostCPUNameForBPF ()
LLVM_ABI VendorSignatures llvm::sys::detail::x86::getVendorSignature (unsigned *MaxLeaf=nullptr)
 Returns the host CPU's vendor.