LLVM 22.0.0git
llvm::sys::detail Namespace Reference

Namespaces

namespace  x86
 Helper functions to extract CPU details from CPUID on x86.

Functions

LLVM_ABI StringRef getHostCPUNameForPowerPC (StringRef ProcCpuinfoContent)
 Helper functions to extract HostCPUName from /proc/cpuinfo on linux.
LLVM_ABI StringRef getHostCPUNameForARM (StringRef ProcCpuinfoContent)
LLVM_ABI StringRef getHostCPUNameForARM (uint64_t PrimaryCpuInfo, ArrayRef< uint64_t > UniqueCpuInfos)
LLVM_ABI StringRef getHostCPUNameForS390x (StringRef ProcCpuinfoContent)
LLVM_ABI StringRef getHostCPUNameForRISCV (StringRef ProcCpuinfoContent)
LLVM_ABI StringRef getHostCPUNameForSPARC (StringRef ProcCpuinfoContent)
LLVM_ABI StringRef getHostCPUNameForBPF ()

Function Documentation

◆ getHostCPUNameForARM() [1/2]

◆ getHostCPUNameForARM() [2/2]

◆ getHostCPUNameForBPF()

StringRef llvm::sys::detail::getHostCPUNameForBPF ( )

Definition at line 570 of file Host.cpp.

◆ getHostCPUNameForPowerPC()

StringRef llvm::sys::detail::getHostCPUNameForPowerPC ( StringRef ProcCpuinfoContent)

Helper functions to extract HostCPUName from /proc/cpuinfo on linux.

Definition at line 89 of file Host.cpp.

References llvm::StringRef::begin(), llvm::StringSwitch< T, R >::Case(), llvm::StringSwitch< T, R >::Default(), and llvm::StringRef::end().

◆ getHostCPUNameForRISCV()

StringRef llvm::sys::detail::getHostCPUNameForRISCV ( StringRef ProcCpuinfoContent)

◆ getHostCPUNameForS390x()

StringRef llvm::sys::detail::getHostCPUNameForS390x ( StringRef ProcCpuinfoContent)

Definition at line 504 of file Host.cpp.

References I, llvm::StringRef::npos, llvm::StringRef::split(), and starts_with().

◆ getHostCPUNameForSPARC()

LLVM_ABI StringRef llvm::sys::detail::getHostCPUNameForSPARC ( StringRef ProcCpuinfoContent)

References LLVM_ABI.