Evan Cheng | 3ddfbd3 | 2011-07-06 22:01:53 +0000 | [diff] [blame] | 1 | //===-- X86MCTargetDesc.h - X86 Target Descriptions -------------*- C++ -*-===// |
Evan Cheng | 2475331 | 2011-06-24 01:44:41 +0000 | [diff] [blame] | 2 | // |
| 3 | // The LLVM Compiler Infrastructure |
| 4 | // |
| 5 | // This file is distributed under the University of Illinois Open Source |
| 6 | // License. See LICENSE.TXT for details. |
| 7 | // |
| 8 | //===----------------------------------------------------------------------===// |
| 9 | // |
| 10 | // This file provides X86 specific target descriptions. |
| 11 | // |
| 12 | //===----------------------------------------------------------------------===// |
| 13 | |
Evan Cheng | 3ddfbd3 | 2011-07-06 22:01:53 +0000 | [diff] [blame] | 14 | #ifndef X86MCTARGETDESC_H |
| 15 | #define X86MCTARGETDESC_H |
Evan Cheng | b2681be | 2011-06-24 23:59:54 +0000 | [diff] [blame] | 16 | |
Evan Cheng | 13bcc6c | 2011-07-07 21:06:52 +0000 | [diff] [blame^] | 17 | #include <string> |
| 18 | |
Evan Cheng | e862d59 | 2011-06-24 20:42:09 +0000 | [diff] [blame] | 19 | namespace llvm { |
| 20 | class Target; |
Evan Cheng | 13bcc6c | 2011-07-07 21:06:52 +0000 | [diff] [blame^] | 21 | class StringRef; |
Evan Cheng | e862d59 | 2011-06-24 20:42:09 +0000 | [diff] [blame] | 22 | |
| 23 | extern Target TheX86_32Target, TheX86_64Target; |
Evan Cheng | 13bcc6c | 2011-07-07 21:06:52 +0000 | [diff] [blame^] | 24 | |
| 25 | namespace X86_MC { |
| 26 | std::string ParseX86Triple(StringRef TT); |
| 27 | |
| 28 | /// GetCpuIDAndInfo - Execute the specified cpuid and return the 4 values in |
| 29 | /// the specified arguments. If we can't run cpuid on the host, return true. |
| 30 | bool GetCpuIDAndInfo(unsigned value, unsigned *rEAX, |
| 31 | unsigned *rEBX, unsigned *rECX, unsigned *rEDX); |
| 32 | |
| 33 | void DetectFamilyModel(unsigned EAX, unsigned &Family, unsigned &Model); |
| 34 | } |
Evan Cheng | e862d59 | 2011-06-24 20:42:09 +0000 | [diff] [blame] | 35 | } // End llvm namespace |
| 36 | |
Evan Cheng | 2475331 | 2011-06-24 01:44:41 +0000 | [diff] [blame] | 37 | // Defines symbolic names for X86 registers. This defines a mapping from |
| 38 | // register name to register number. |
| 39 | // |
Evan Cheng | d9997ac | 2011-06-27 18:32:37 +0000 | [diff] [blame] | 40 | #define GET_REGINFO_ENUM |
| 41 | #include "X86GenRegisterInfo.inc" |
Evan Cheng | b2681be | 2011-06-24 23:59:54 +0000 | [diff] [blame] | 42 | |
Evan Cheng | 1e210d0 | 2011-06-28 20:07:07 +0000 | [diff] [blame] | 43 | // Defines symbolic names for the X86 instructions. |
| 44 | // |
| 45 | #define GET_INSTRINFO_ENUM |
| 46 | #include "X86GenInstrInfo.inc" |
| 47 | |
Evan Cheng | b2681be | 2011-06-24 23:59:54 +0000 | [diff] [blame] | 48 | #endif |