LLVM: llvm::sys::detail::x86 Namespace Reference (original) (raw)

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

Enumerations
enum class VendorSignatures { UNKNOWN, GENUINE_INTEL, AUTHENTIC_AMD }

Helper functions to extract CPU details from CPUID on x86.

VendorSignatures

Enumerator
UNKNOWN
GENUINE_INTEL
AUTHENTIC_AMD

Definition at line 76 of file Host.h.

getVendorSignature()

VendorSignatures llvm::sys::detail::x86::getVendorSignature ( unsigned * MaxLeaf = nullptr )

Returns the host CPU's vendor.

MaxLeaf: if a non-nullptr pointer is specified, the EAX value will be assigned to its pointee.

Definition at line 1980 of file Host.cpp.

References UNKNOWN.