Dan Gohman | f17a25c | 2007-07-18 16:29:46 +0000 | [diff] [blame] | 1 | //=====-- X86TargetAsmInfo.h - X86 asm properties -------------*- C++ -*--====// |
| 2 | // |
| 3 | // The LLVM Compiler Infrastructure |
| 4 | // |
Chris Lattner | 081ce94 | 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. |
Dan Gohman | f17a25c | 2007-07-18 16:29:46 +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 { |
| 20 | |
| 21 | // Forward declaration. |
| 22 | class X86TargetMachine; |
| 23 | |
| 24 | struct X86TargetAsmInfo : public TargetAsmInfo { |
Dan Gohman | cdd820b | 2007-09-25 20:27:06 +0000 | [diff] [blame] | 25 | explicit X86TargetAsmInfo(const X86TargetMachine &TM); |
Anton Korobeynikov | 8bf5d34 | 2008-07-09 13:19:08 +0000 | [diff] [blame^] | 26 | |
Dan Gohman | f17a25c | 2007-07-18 16:29:46 +0000 | [diff] [blame] | 27 | virtual bool ExpandInlineAsm(CallInst *CI) const; |
Anton Korobeynikov | 8750d7c | 2008-02-29 22:09:08 +0000 | [diff] [blame] | 28 | virtual unsigned PreferredEHDataFormat(DwarfEncoding::Target Reason, |
| 29 | bool Global) const; |
Anton Korobeynikov | 8bf5d34 | 2008-07-09 13:19:08 +0000 | [diff] [blame^] | 30 | virtual std::string SectionForGlobal(const GlobalValue *GV) const; |
Anton Korobeynikov | 65c0d87 | 2008-02-27 23:33:50 +0000 | [diff] [blame] | 31 | |
Dan Gohman | f17a25c | 2007-07-18 16:29:46 +0000 | [diff] [blame] | 32 | private: |
Anton Korobeynikov | 65c0d87 | 2008-02-27 23:33:50 +0000 | [diff] [blame] | 33 | const X86TargetMachine* X86TM; |
Dan Gohman | f17a25c | 2007-07-18 16:29:46 +0000 | [diff] [blame] | 34 | bool LowerToBSwap(CallInst *CI) const; |
| 35 | }; |
| 36 | } // namespace llvm |
| 37 | |
| 38 | #endif |