OLD | NEW |
1 //===-- X86Subtarget.h - Define Subtarget for the X86 ----------*- C++ -*--===// | 1 //===-- X86Subtarget.h - Define Subtarget for the X86 ----------*- C++ -*--===// |
2 // | 2 // |
3 // The LLVM Compiler Infrastructure | 3 // The LLVM Compiler Infrastructure |
4 // | 4 // |
5 // This file is distributed under the University of Illinois Open Source | 5 // This file is distributed under the University of Illinois Open Source |
6 // License. See LICENSE.TXT for details. | 6 // License. See LICENSE.TXT for details. |
7 // | 7 // |
8 //===----------------------------------------------------------------------===// | 8 //===----------------------------------------------------------------------===// |
9 // | 9 // |
10 // This file declares the X86 specific subclass of TargetSubtargetInfo. | 10 // This file declares the X86 specific subclass of TargetSubtargetInfo. |
(...skipping 314 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
325 return In64BitMode && (TargetTriple.getEnvironment() == Triple::GNUX32 || | 325 return In64BitMode && (TargetTriple.getEnvironment() == Triple::GNUX32 || |
326 TargetTriple.isOSNaCl()); | 326 TargetTriple.isOSNaCl()); |
327 } | 327 } |
328 | 328 |
329 /// Is this x86_64 with the LP64 programming model (standard AMD64, no x32)? | 329 /// Is this x86_64 with the LP64 programming model (standard AMD64, no x32)? |
330 bool isTarget64BitLP64() const { | 330 bool isTarget64BitLP64() const { |
331 return In64BitMode && (TargetTriple.getEnvironment() != Triple::GNUX32 && | 331 return In64BitMode && (TargetTriple.getEnvironment() != Triple::GNUX32 && |
332 !TargetTriple.isOSNaCl()); | 332 !TargetTriple.isOSNaCl()); |
333 } | 333 } |
334 | 334 |
| 335 // @LOCALMOD -- TODO(jvoung): try to use isTarget64BitLP64() instead. |
| 336 bool has64BitPointers() const { return is64Bit() && !isTargetNaCl(); } |
| 337 |
335 PICStyles::Style getPICStyle() const { return PICStyle; } | 338 PICStyles::Style getPICStyle() const { return PICStyle; } |
336 void setPICStyle(PICStyles::Style Style) { PICStyle = Style; } | 339 void setPICStyle(PICStyles::Style Style) { PICStyle = Style; } |
337 | 340 |
338 bool hasCMov() const { return HasCMov; } | 341 bool hasCMov() const { return HasCMov; } |
339 bool hasMMX() const { return X86SSELevel >= MMX; } | 342 bool hasMMX() const { return X86SSELevel >= MMX; } |
340 bool hasSSE1() const { return X86SSELevel >= SSE1; } | 343 bool hasSSE1() const { return X86SSELevel >= SSE1; } |
341 bool hasSSE2() const { return X86SSELevel >= SSE2; } | 344 bool hasSSE2() const { return X86SSELevel >= SSE2; } |
342 bool hasSSE3() const { return X86SSELevel >= SSE3; } | 345 bool hasSSE3() const { return X86SSELevel >= SSE3; } |
343 bool hasSSSE3() const { return X86SSELevel >= SSSE3; } | 346 bool hasSSSE3() const { return X86SSELevel >= SSSE3; } |
344 bool hasSSE41() const { return X86SSELevel >= SSE41; } | 347 bool hasSSE41() const { return X86SSELevel >= SSE41; } |
(...skipping 161 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
506 } | 509 } |
507 | 510 |
508 AntiDepBreakMode getAntiDepBreakMode() const override { | 511 AntiDepBreakMode getAntiDepBreakMode() const override { |
509 return TargetSubtargetInfo::ANTIDEP_CRITICAL; | 512 return TargetSubtargetInfo::ANTIDEP_CRITICAL; |
510 } | 513 } |
511 }; | 514 }; |
512 | 515 |
513 } // End llvm namespace | 516 } // End llvm namespace |
514 | 517 |
515 #endif | 518 #endif |
OLD | NEW |