Jim Laskey | 8e8de8f | 2006-09-07 22:05:02 +0000 | [diff] [blame] | 1 | //=====-- X86TargetAsmInfo.h - X86 asm properties -------------*- C++ -*--====// |
| 2 | // |
| 3 | // The LLVM Compiler Infrastructure |
| 4 | // |
Chris Lattner | 4ee451d | 2007-12-29 20:36:04 +0000 | [diff] [blame^] | 5 | // This file is distributed under the University of Illinois Open Source |
| 6 | // License. See LICENSE.TXT for details. |
Jim Laskey | 8e8de8f | 2006-09-07 22:05:02 +0000 | [diff] [blame] | 7 | // |
| 8 | //===----------------------------------------------------------------------===// |
| 9 | // |
| 10 | // This file contains the declaration of the X86TargetAsmInfo class. |
| 11 | // |
| 12 | //===----------------------------------------------------------------------===// |
| 13 | |
| 14 | #ifndef X86TARGETASMINFO_H |
| 15 | #define X86TARGETASMINFO_H |
| 16 | |
| 17 | #include "llvm/Target/TargetAsmInfo.h" |
| 18 | |
| 19 | namespace llvm { |
Bill Wendling | eb9a42c | 2007-01-16 03:42:04 +0000 | [diff] [blame] | 20 | |
Jim Laskey | 8e8de8f | 2006-09-07 22:05:02 +0000 | [diff] [blame] | 21 | // Forward declaration. |
| 22 | class X86TargetMachine; |
| 23 | |
| 24 | struct X86TargetAsmInfo : public TargetAsmInfo { |
Dan Gohman | 677ccc6 | 2007-09-25 20:27:06 +0000 | [diff] [blame] | 25 | explicit X86TargetAsmInfo(const X86TargetMachine &TM); |
Chris Lattner | 625bd05 | 2006-11-29 01:14:06 +0000 | [diff] [blame] | 26 | |
| 27 | virtual bool ExpandInlineAsm(CallInst *CI) const; |
| 28 | private: |
| 29 | bool LowerToBSwap(CallInst *CI) const; |
Jim Laskey | 8e8de8f | 2006-09-07 22:05:02 +0000 | [diff] [blame] | 30 | }; |
Jim Laskey | 8e8de8f | 2006-09-07 22:05:02 +0000 | [diff] [blame] | 31 | } // namespace llvm |
| 32 | |
| 33 | #endif |