LLVM API Documentation

X86Subtarget.cpp File Reference

#include "X86Subtarget.h"
#include "llvm/Module.h"
#include "X86GenSubtarget.inc"

Include dependency graph for X86Subtarget.cpp:

Go to the source code of this file.

Functions

static bool GetCpuIDAndInfo (unsigned value, unsigned *rEAX, unsigned *rEBX, unsigned *rECX, unsigned *rEDX)
static const char * GetCurrentX86CPU ()


Function Documentation

static bool GetCpuIDAndInfo ( unsigned  value,
unsigned *  rEAX,
unsigned *  rEBX,
unsigned *  rECX,
unsigned *  rEDX 
) [static]

GetCpuIDAndInfo - Execute the specified cpuid and return the 4 values in the specified arguments. If we can't run cpuid on the host, return true.

Definition at line 21 of file X86Subtarget.cpp.

Referenced by GetCurrentX86CPU().

static const char* GetCurrentX86CPU (  )  [static]

Definition at line 54 of file X86Subtarget.cpp.

References c, N86::EAX, N86::EBX, N86::ECX, N86::EDX, and GetCpuIDAndInfo().

Referenced by llvm::X86Subtarget::X86Subtarget().