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

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

Enumerations

enum  VendorSignatures { VendorSignatures::UNKNOWN, VendorSignatures::GENUINE_INTEL, VendorSignatures::AUTHENTIC_AMD }
 

Functions

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

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 71 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 1364 of file Host.cpp.

References UNKNOWN.