Files
clang-p2996/lldb/tools/debugserver/source/MacOSX/HasAVX.h
Sean Callanan c4ffe37cf1 Added support for dynamic detection of AVX, and
fixed a few bugs that revealed.  Now the "register
read" command should show AVX registers
(ymm0-ymm15) on Mac OS X platforms that support
them.

When testing this on Mac OS X, run debugserver
manually, like this:

debugserver --native-regs localhost:1111 /path/to/executable

Then

lldb /path/to/executable
...
(lldb) process connect connect://localhost:1111

llvm-svn: 135331
2011-07-16 00:49:19 +00:00

28 lines
529 B
C++

//===-- HasAVX.h ------------------------------------------------*- C++ -*-===//
//
// The LLVM Compiler Infrastructure
//
// This file is distributed under the University of Illinois Open Source
// License. See LICENSE.TXT for details.
//
//===----------------------------------------------------------------------===//
#ifndef HasAVX_h
#define HasAVX_h
#if defined (__i386__) || defined (__x86_64__)
#ifdef __cplusplus
extern "C" {
#endif
int HasAVX ();
#ifdef __cplusplus
}
#endif
#endif
#endif