LLVM 20.0.0git
Enumerations | Functions
llvm::sys::detail::x86 Namespace Reference

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

Enumerations

enum class  VendorSignatures { UNKNOWN , GENUINE_INTEL , AUTHENTIC_AMD }
 

Functions

VendorSignatures getVendorSignature (unsigned *MaxLeaf=nullptr)
 Returns the host CPU's vendor.
 

Detailed Description

Helper functions to extract CPU details from CPUID on x86.

Enumeration Type Documentation

◆ VendorSignatures

Enumerator
UNKNOWN 
GENUINE_INTEL 
AUTHENTIC_AMD 

Definition at line 72 of file Host.h.

Function Documentation

◆ 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 1647 of file Host.cpp.

References UNKNOWN.