Daniel Dunbar | bb14672 | 2008-10-02 01:17:28 +0000 | [diff] [blame] | 1 | //===-- Host.cpp - Implement OS Host Concept --------------------*- C++ -*-===// |
| 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 header file implements the operating system Host concept. |
| 11 | // |
| 12 | //===----------------------------------------------------------------------===// |
| 13 | |
Michael J. Spencer | 1f6efa3 | 2010-11-29 18:16:10 +0000 | [diff] [blame] | 14 | #include "llvm/Support/Host.h" |
Daniel Dunbar | bb14672 | 2008-10-02 01:17:28 +0000 | [diff] [blame] | 15 | #include "llvm/Config/config.h" |
Daniel Dunbar | 067d024 | 2009-11-14 10:09:12 +0000 | [diff] [blame] | 16 | #include <string.h> |
Daniel Dunbar | bb14672 | 2008-10-02 01:17:28 +0000 | [diff] [blame] | 17 | |
| 18 | // Include the platform-specific parts of this class. |
| 19 | #ifdef LLVM_ON_UNIX |
| 20 | #include "Unix/Host.inc" |
| 21 | #endif |
| 22 | #ifdef LLVM_ON_WIN32 |
Michael J. Spencer | 1f6efa3 | 2010-11-29 18:16:10 +0000 | [diff] [blame] | 23 | #include "Windows/Host.inc" |
Daniel Dunbar | bb14672 | 2008-10-02 01:17:28 +0000 | [diff] [blame] | 24 | #endif |
Benjamin Kramer | ac07b3d | 2009-11-19 12:17:31 +0000 | [diff] [blame] | 25 | #ifdef _MSC_VER |
| 26 | #include <intrin.h> |
| 27 | #endif |
Daniel Dunbar | bb14672 | 2008-10-02 01:17:28 +0000 | [diff] [blame] | 28 | |
Daniel Dunbar | 067d024 | 2009-11-14 10:09:12 +0000 | [diff] [blame] | 29 | //===----------------------------------------------------------------------===// |
| 30 | // |
| 31 | // Implementations of the CPU detection routines |
| 32 | // |
| 33 | //===----------------------------------------------------------------------===// |
| 34 | |
| 35 | using namespace llvm; |
| 36 | |
| 37 | #if defined(i386) || defined(__i386__) || defined(__x86__) || defined(_M_IX86)\ |
| 38 | || defined(__x86_64__) || defined(_M_AMD64) || defined (_M_X64) |
| 39 | |
| 40 | /// GetX86CpuIDAndInfo - Execute the specified cpuid and return the 4 values in the |
| 41 | /// specified arguments. If we can't run cpuid on the host, return true. |
| 42 | static bool GetX86CpuIDAndInfo(unsigned value, unsigned *rEAX, |
| 43 | unsigned *rEBX, unsigned *rECX, unsigned *rEDX) { |
| 44 | #if defined(__x86_64__) || defined(_M_AMD64) || defined (_M_X64) |
| 45 | #if defined(__GNUC__) |
| 46 | // gcc doesn't know cpuid would clobber ebx/rbx. Preseve it manually. |
| 47 | asm ("movq\t%%rbx, %%rsi\n\t" |
| 48 | "cpuid\n\t" |
| 49 | "xchgq\t%%rbx, %%rsi\n\t" |
| 50 | : "=a" (*rEAX), |
| 51 | "=S" (*rEBX), |
| 52 | "=c" (*rECX), |
| 53 | "=d" (*rEDX) |
| 54 | : "a" (value)); |
| 55 | return false; |
| 56 | #elif defined(_MSC_VER) |
| 57 | int registers[4]; |
| 58 | __cpuid(registers, value); |
| 59 | *rEAX = registers[0]; |
| 60 | *rEBX = registers[1]; |
| 61 | *rECX = registers[2]; |
| 62 | *rEDX = registers[3]; |
| 63 | return false; |
David Blaikie | fdebc38 | 2012-01-17 04:43:56 +0000 | [diff] [blame] | 64 | #else |
| 65 | return true; |
Daniel Dunbar | 067d024 | 2009-11-14 10:09:12 +0000 | [diff] [blame] | 66 | #endif |
| 67 | #elif defined(i386) || defined(__i386__) || defined(__x86__) || defined(_M_IX86) |
| 68 | #if defined(__GNUC__) |
| 69 | asm ("movl\t%%ebx, %%esi\n\t" |
| 70 | "cpuid\n\t" |
| 71 | "xchgl\t%%ebx, %%esi\n\t" |
| 72 | : "=a" (*rEAX), |
| 73 | "=S" (*rEBX), |
| 74 | "=c" (*rECX), |
| 75 | "=d" (*rEDX) |
| 76 | : "a" (value)); |
| 77 | return false; |
| 78 | #elif defined(_MSC_VER) |
| 79 | __asm { |
| 80 | mov eax,value |
| 81 | cpuid |
| 82 | mov esi,rEAX |
| 83 | mov dword ptr [esi],eax |
| 84 | mov esi,rEBX |
| 85 | mov dword ptr [esi],ebx |
| 86 | mov esi,rECX |
| 87 | mov dword ptr [esi],ecx |
| 88 | mov esi,rEDX |
| 89 | mov dword ptr [esi],edx |
| 90 | } |
| 91 | return false; |
David Blaikie | fdebc38 | 2012-01-17 04:43:56 +0000 | [diff] [blame] | 92 | // pedantic #else returns to appease -Wunreachable-code (so we don't generate |
| 93 | // postprocessed code that looks like "return true; return false;") |
| 94 | #else |
| 95 | return true; |
Daniel Dunbar | 067d024 | 2009-11-14 10:09:12 +0000 | [diff] [blame] | 96 | #endif |
David Blaikie | fdebc38 | 2012-01-17 04:43:56 +0000 | [diff] [blame] | 97 | #else |
Daniel Dunbar | 067d024 | 2009-11-14 10:09:12 +0000 | [diff] [blame] | 98 | return true; |
David Blaikie | fdebc38 | 2012-01-17 04:43:56 +0000 | [diff] [blame] | 99 | #endif |
Daniel Dunbar | 067d024 | 2009-11-14 10:09:12 +0000 | [diff] [blame] | 100 | } |
| 101 | |
Chris Lattner | 9c7f075 | 2010-09-06 05:19:44 +0000 | [diff] [blame] | 102 | static void DetectX86FamilyModel(unsigned EAX, unsigned &Family, |
| 103 | unsigned &Model) { |
Daniel Dunbar | 067d024 | 2009-11-14 10:09:12 +0000 | [diff] [blame] | 104 | Family = (EAX >> 8) & 0xf; // Bits 8 - 11 |
| 105 | Model = (EAX >> 4) & 0xf; // Bits 4 - 7 |
| 106 | if (Family == 6 || Family == 0xf) { |
| 107 | if (Family == 0xf) |
| 108 | // Examine extended family ID if family ID is F. |
| 109 | Family += (EAX >> 20) & 0xff; // Bits 20 - 27 |
| 110 | // Examine extended model ID if family ID is 6 or F. |
| 111 | Model += ((EAX >> 16) & 0xf) << 4; // Bits 16 - 19 |
| 112 | } |
| 113 | } |
Daniel Dunbar | 067d024 | 2009-11-14 10:09:12 +0000 | [diff] [blame] | 114 | |
| 115 | std::string sys::getHostCPUName() { |
Daniel Dunbar | 067d024 | 2009-11-14 10:09:12 +0000 | [diff] [blame] | 116 | unsigned EAX = 0, EBX = 0, ECX = 0, EDX = 0; |
| 117 | if (GetX86CpuIDAndInfo(0x1, &EAX, &EBX, &ECX, &EDX)) |
| 118 | return "generic"; |
| 119 | unsigned Family = 0; |
| 120 | unsigned Model = 0; |
| 121 | DetectX86FamilyModel(EAX, Family, Model); |
| 122 | |
Chris Lattner | 9c7f075 | 2010-09-06 05:19:44 +0000 | [diff] [blame] | 123 | bool HasSSE3 = (ECX & 0x1); |
Daniel Dunbar | 067d024 | 2009-11-14 10:09:12 +0000 | [diff] [blame] | 124 | GetX86CpuIDAndInfo(0x80000001, &EAX, &EBX, &ECX, &EDX); |
| 125 | bool Em64T = (EDX >> 29) & 0x1; |
Daniel Dunbar | 067d024 | 2009-11-14 10:09:12 +0000 | [diff] [blame] | 126 | |
| 127 | union { |
| 128 | unsigned u[3]; |
| 129 | char c[12]; |
| 130 | } text; |
| 131 | |
| 132 | GetX86CpuIDAndInfo(0, &EAX, text.u+0, text.u+2, text.u+1); |
| 133 | if (memcmp(text.c, "GenuineIntel", 12) == 0) { |
| 134 | switch (Family) { |
Daniel Dunbar | a7ac3ce | 2009-11-14 21:36:19 +0000 | [diff] [blame] | 135 | case 3: |
| 136 | return "i386"; |
| 137 | case 4: |
| 138 | switch (Model) { |
NAKAMURA Takumi | d4d4c7f | 2010-09-09 13:30:48 +0000 | [diff] [blame] | 139 | case 0: // Intel486 DX processors |
| 140 | case 1: // Intel486 DX processors |
Daniel Dunbar | a7ac3ce | 2009-11-14 21:36:19 +0000 | [diff] [blame] | 141 | case 2: // Intel486 SX processors |
NAKAMURA Takumi | d4d4c7f | 2010-09-09 13:30:48 +0000 | [diff] [blame] | 142 | case 3: // Intel487 processors, IntelDX2 OverDrive processors, |
| 143 | // IntelDX2 processors |
Daniel Dunbar | a7ac3ce | 2009-11-14 21:36:19 +0000 | [diff] [blame] | 144 | case 4: // Intel486 SL processor |
NAKAMURA Takumi | d4d4c7f | 2010-09-09 13:30:48 +0000 | [diff] [blame] | 145 | case 5: // IntelSX2 processors |
Daniel Dunbar | a7ac3ce | 2009-11-14 21:36:19 +0000 | [diff] [blame] | 146 | case 7: // Write-Back Enhanced IntelDX2 processors |
NAKAMURA Takumi | d4d4c7f | 2010-09-09 13:30:48 +0000 | [diff] [blame] | 147 | case 8: // IntelDX4 OverDrive processors, IntelDX4 processors |
Daniel Dunbar | a7ac3ce | 2009-11-14 21:36:19 +0000 | [diff] [blame] | 148 | default: return "i486"; |
Daniel Dunbar | 067d024 | 2009-11-14 10:09:12 +0000 | [diff] [blame] | 149 | } |
Daniel Dunbar | a7ac3ce | 2009-11-14 21:36:19 +0000 | [diff] [blame] | 150 | case 5: |
| 151 | switch (Model) { |
| 152 | case 1: // Pentium OverDrive processor for Pentium processor (60, 66), |
NAKAMURA Takumi | d4d4c7f | 2010-09-09 13:30:48 +0000 | [diff] [blame] | 153 | // Pentium processors (60, 66) |
Daniel Dunbar | a7ac3ce | 2009-11-14 21:36:19 +0000 | [diff] [blame] | 154 | case 2: // Pentium OverDrive processor for Pentium processor (75, 90, |
| 155 | // 100, 120, 133), Pentium processors (75, 90, 100, 120, 133, |
| 156 | // 150, 166, 200) |
| 157 | case 3: // Pentium OverDrive processors for Intel486 processor-based |
| 158 | // systems |
| 159 | return "pentium"; |
| 160 | |
NAKAMURA Takumi | d4d4c7f | 2010-09-09 13:30:48 +0000 | [diff] [blame] | 161 | case 4: // Pentium OverDrive processor with MMX technology for Pentium |
Daniel Dunbar | a7ac3ce | 2009-11-14 21:36:19 +0000 | [diff] [blame] | 162 | // processor (75, 90, 100, 120, 133), Pentium processor with |
NAKAMURA Takumi | d4d4c7f | 2010-09-09 13:30:48 +0000 | [diff] [blame] | 163 | // MMX technology (166, 200) |
Daniel Dunbar | a7ac3ce | 2009-11-14 21:36:19 +0000 | [diff] [blame] | 164 | return "pentium-mmx"; |
| 165 | |
| 166 | default: return "pentium"; |
| 167 | } |
| 168 | case 6: |
| 169 | switch (Model) { |
| 170 | case 1: // Pentium Pro processor |
| 171 | return "pentiumpro"; |
| 172 | |
| 173 | case 3: // Intel Pentium II OverDrive processor, Pentium II processor, |
| 174 | // model 03 |
| 175 | case 5: // Pentium II processor, model 05, Pentium II Xeon processor, |
NAKAMURA Takumi | d4d4c7f | 2010-09-09 13:30:48 +0000 | [diff] [blame] | 176 | // model 05, and Intel Celeron processor, model 05 |
Daniel Dunbar | a7ac3ce | 2009-11-14 21:36:19 +0000 | [diff] [blame] | 177 | case 6: // Celeron processor, model 06 |
| 178 | return "pentium2"; |
| 179 | |
| 180 | case 7: // Pentium III processor, model 07, and Pentium III Xeon |
| 181 | // processor, model 07 |
| 182 | case 8: // Pentium III processor, model 08, Pentium III Xeon processor, |
| 183 | // model 08, and Celeron processor, model 08 |
| 184 | case 10: // Pentium III Xeon processor, model 0Ah |
| 185 | case 11: // Pentium III processor, model 0Bh |
| 186 | return "pentium3"; |
| 187 | |
| 188 | case 9: // Intel Pentium M processor, Intel Celeron M processor model 09. |
| 189 | case 13: // Intel Pentium M processor, Intel Celeron M processor, model |
| 190 | // 0Dh. All processors are manufactured using the 90 nm process. |
| 191 | return "pentium-m"; |
| 192 | |
NAKAMURA Takumi | d4d4c7f | 2010-09-09 13:30:48 +0000 | [diff] [blame] | 193 | case 14: // Intel Core Duo processor, Intel Core Solo processor, model |
Daniel Dunbar | a7ac3ce | 2009-11-14 21:36:19 +0000 | [diff] [blame] | 194 | // 0Eh. All processors are manufactured using the 65 nm process. |
| 195 | return "yonah"; |
| 196 | |
NAKAMURA Takumi | d4d4c7f | 2010-09-09 13:30:48 +0000 | [diff] [blame] | 197 | case 15: // Intel Core 2 Duo processor, Intel Core 2 Duo mobile |
| 198 | // processor, Intel Core 2 Quad processor, Intel Core 2 Quad |
| 199 | // mobile processor, Intel Core 2 Extreme processor, Intel |
Daniel Dunbar | a7ac3ce | 2009-11-14 21:36:19 +0000 | [diff] [blame] | 200 | // Pentium Dual-Core processor, Intel Xeon processor, model |
| 201 | // 0Fh. All processors are manufactured using the 65 nm process. |
| 202 | case 22: // Intel Celeron processor model 16h. All processors are |
| 203 | // manufactured using the 65 nm process |
| 204 | return "core2"; |
| 205 | |
| 206 | case 21: // Intel EP80579 Integrated Processor and Intel EP80579 |
| 207 | // Integrated Processor with Intel QuickAssist Technology |
| 208 | return "i686"; // FIXME: ??? |
| 209 | |
NAKAMURA Takumi | d4d4c7f | 2010-09-09 13:30:48 +0000 | [diff] [blame] | 210 | case 23: // Intel Core 2 Extreme processor, Intel Xeon processor, model |
Daniel Dunbar | a7ac3ce | 2009-11-14 21:36:19 +0000 | [diff] [blame] | 211 | // 17h. All processors are manufactured using the 45 nm process. |
| 212 | // |
| 213 | // 45nm: Penryn , Wolfdale, Yorkfield (XE) |
| 214 | return "penryn"; |
| 215 | |
| 216 | case 26: // Intel Core i7 processor and Intel Xeon processor. All |
| 217 | // processors are manufactured using the 45 nm process. |
| 218 | case 29: // Intel Xeon processor MP. All processors are manufactured using |
| 219 | // the 45 nm process. |
Jakob Stoklund Olesen | 71c6095 | 2010-09-19 17:54:28 +0000 | [diff] [blame] | 220 | case 30: // Intel(R) Core(TM) i7 CPU 870 @ 2.93GHz. |
| 221 | // As found in a Summer 2010 model iMac. |
Chris Lattner | 222920d | 2010-09-19 00:31:58 +0000 | [diff] [blame] | 222 | case 37: // Intel Core i7, laptop version. |
Benjamin Kramer | cf847bf | 2011-08-25 18:05:56 +0000 | [diff] [blame] | 223 | case 44: // Intel Core i7 processor and Intel Xeon processor. All |
| 224 | // processors are manufactured using the 32 nm process. |
Daniel Dunbar | a7ac3ce | 2009-11-14 21:36:19 +0000 | [diff] [blame] | 225 | return "corei7"; |
Bob Wilson | 7c3a5ca | 2011-07-08 22:33:59 +0000 | [diff] [blame] | 226 | |
| 227 | // SandyBridge: |
| 228 | case 42: // Intel Core i7 processor. All processors are manufactured |
| 229 | // using the 32 nm process. |
Chris Lattner | 78a113c | 2011-06-09 06:38:17 +0000 | [diff] [blame] | 230 | case 45: |
Benjamin Kramer | eb274e6 | 2011-05-20 15:11:26 +0000 | [diff] [blame] | 231 | return "corei7-avx"; |
Daniel Dunbar | a7ac3ce | 2009-11-14 21:36:19 +0000 | [diff] [blame] | 232 | |
Evan Cheng | aff5968 | 2012-04-23 22:41:39 +0000 | [diff] [blame] | 233 | // Ivy Bridge: |
| 234 | case 58: |
| 235 | return "core-avx-i"; |
| 236 | |
Preston Gurd | 79bbe85 | 2012-05-02 21:38:46 +0000 | [diff] [blame] | 237 | case 28: // Most 45 nm Intel Atom processors |
| 238 | case 38: // 45 nm Atom Lincroft |
| 239 | case 39: // 32 nm Atom Medfield |
Daniel Dunbar | a7ac3ce | 2009-11-14 21:36:19 +0000 | [diff] [blame] | 240 | return "atom"; |
| 241 | |
Bob Wilson | 0d38d3a | 2012-05-09 17:47:03 +0000 | [diff] [blame^] | 242 | default: return (Em64T) ? "x86-64" : "i686"; |
Daniel Dunbar | a7ac3ce | 2009-11-14 21:36:19 +0000 | [diff] [blame] | 243 | } |
| 244 | case 15: { |
| 245 | switch (Model) { |
| 246 | case 0: // Pentium 4 processor, Intel Xeon processor. All processors are |
| 247 | // model 00h and manufactured using the 0.18 micron process. |
| 248 | case 1: // Pentium 4 processor, Intel Xeon processor, Intel Xeon |
| 249 | // processor MP, and Intel Celeron processor. All processors are |
| 250 | // model 01h and manufactured using the 0.18 micron process. |
NAKAMURA Takumi | d4d4c7f | 2010-09-09 13:30:48 +0000 | [diff] [blame] | 251 | case 2: // Pentium 4 processor, Mobile Intel Pentium 4 processor - M, |
Daniel Dunbar | a7ac3ce | 2009-11-14 21:36:19 +0000 | [diff] [blame] | 252 | // Intel Xeon processor, Intel Xeon processor MP, Intel Celeron |
| 253 | // processor, and Mobile Intel Celeron processor. All processors |
| 254 | // are model 02h and manufactured using the 0.13 micron process. |
| 255 | return (Em64T) ? "x86-64" : "pentium4"; |
| 256 | |
| 257 | case 3: // Pentium 4 processor, Intel Xeon processor, Intel Celeron D |
| 258 | // processor. All processors are model 03h and manufactured using |
| 259 | // the 90 nm process. |
| 260 | case 4: // Pentium 4 processor, Pentium 4 processor Extreme Edition, |
| 261 | // Pentium D processor, Intel Xeon processor, Intel Xeon |
| 262 | // processor MP, Intel Celeron D processor. All processors are |
| 263 | // model 04h and manufactured using the 90 nm process. |
| 264 | case 6: // Pentium 4 processor, Pentium D processor, Pentium processor |
| 265 | // Extreme Edition, Intel Xeon processor, Intel Xeon processor |
| 266 | // MP, Intel Celeron D processor. All processors are model 06h |
| 267 | // and manufactured using the 65 nm process. |
| 268 | return (Em64T) ? "nocona" : "prescott"; |
| 269 | |
Daniel Dunbar | a7ac3ce | 2009-11-14 21:36:19 +0000 | [diff] [blame] | 270 | default: |
| 271 | return (Em64T) ? "x86-64" : "pentium4"; |
| 272 | } |
| 273 | } |
| 274 | |
Daniel Dunbar | 067d024 | 2009-11-14 10:09:12 +0000 | [diff] [blame] | 275 | default: |
Benjamin Kramer | 110e7bb | 2009-11-17 17:57:04 +0000 | [diff] [blame] | 276 | return "generic"; |
Daniel Dunbar | 067d024 | 2009-11-14 10:09:12 +0000 | [diff] [blame] | 277 | } |
| 278 | } else if (memcmp(text.c, "AuthenticAMD", 12) == 0) { |
| 279 | // FIXME: this poorly matches the generated SubtargetFeatureKV table. There |
| 280 | // appears to be no way to generate the wide variety of AMD-specific targets |
| 281 | // from the information returned from CPUID. |
| 282 | switch (Family) { |
| 283 | case 4: |
| 284 | return "i486"; |
| 285 | case 5: |
| 286 | switch (Model) { |
| 287 | case 6: |
| 288 | case 7: return "k6"; |
| 289 | case 8: return "k6-2"; |
| 290 | case 9: |
| 291 | case 13: return "k6-3"; |
| 292 | default: return "pentium"; |
| 293 | } |
| 294 | case 6: |
| 295 | switch (Model) { |
| 296 | case 4: return "athlon-tbird"; |
| 297 | case 6: |
| 298 | case 7: |
| 299 | case 8: return "athlon-mp"; |
| 300 | case 10: return "athlon-xp"; |
| 301 | default: return "athlon"; |
| 302 | } |
| 303 | case 15: |
Chris Lattner | 9c7f075 | 2010-09-06 05:19:44 +0000 | [diff] [blame] | 304 | if (HasSSE3) |
Daniel Dunbar | 067d024 | 2009-11-14 10:09:12 +0000 | [diff] [blame] | 305 | return "k8-sse3"; |
Chris Lattner | 9c7f075 | 2010-09-06 05:19:44 +0000 | [diff] [blame] | 306 | switch (Model) { |
| 307 | case 1: return "opteron"; |
| 308 | case 5: return "athlon-fx"; // also opteron |
| 309 | default: return "athlon64"; |
Daniel Dunbar | 067d024 | 2009-11-14 10:09:12 +0000 | [diff] [blame] | 310 | } |
| 311 | case 16: |
| 312 | return "amdfam10"; |
Benjamin Kramer | 66a7fd7 | 2012-01-10 11:50:02 +0000 | [diff] [blame] | 313 | case 20: |
| 314 | return "btver1"; |
Benjamin Kramer | 618f89f | 2011-12-01 18:24:17 +0000 | [diff] [blame] | 315 | case 21: |
| 316 | return "bdver1"; |
Daniel Dunbar | 067d024 | 2009-11-14 10:09:12 +0000 | [diff] [blame] | 317 | default: |
Benjamin Kramer | 110e7bb | 2009-11-17 17:57:04 +0000 | [diff] [blame] | 318 | return "generic"; |
Daniel Dunbar | 067d024 | 2009-11-14 10:09:12 +0000 | [diff] [blame] | 319 | } |
Daniel Dunbar | 067d024 | 2009-11-14 10:09:12 +0000 | [diff] [blame] | 320 | } |
Torok Edwin | 546d8d0 | 2009-12-14 12:38:18 +0000 | [diff] [blame] | 321 | return "generic"; |
Torok Edwin | c4174d6 | 2009-12-13 08:59:40 +0000 | [diff] [blame] | 322 | } |
| 323 | #else |
| 324 | std::string sys::getHostCPUName() { |
Benjamin Kramer | 110e7bb | 2009-11-17 17:57:04 +0000 | [diff] [blame] | 325 | return "generic"; |
Daniel Dunbar | 067d024 | 2009-11-14 10:09:12 +0000 | [diff] [blame] | 326 | } |
Torok Edwin | c4174d6 | 2009-12-13 08:59:40 +0000 | [diff] [blame] | 327 | #endif |
Xerxes Ranby | 1c8183d | 2010-01-19 21:26:05 +0000 | [diff] [blame] | 328 | |
| 329 | bool sys::getHostCPUFeatures(StringMap<bool> &Features){ |
| 330 | return false; |
| 331 | } |