blob: d9dd2753571acab54ea46e82b41c5fa52e7b848d [file] [log] [blame]
Jim Laskey8e8de8f2006-09-07 22:05:02 +00001//=====-- X86TargetAsmInfo.h - X86 asm properties -------------*- C++ -*--====//
2//
3// The LLVM Compiler Infrastructure
4//
Chris Lattner4ee451d2007-12-29 20:36:04 +00005// This file is distributed under the University of Illinois Open Source
6// License. See LICENSE.TXT for details.
Jim Laskey8e8de8f2006-09-07 22:05:02 +00007//
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
19namespace llvm {
Bill Wendlingeb9a42c2007-01-16 03:42:04 +000020
Jim Laskey8e8de8f2006-09-07 22:05:02 +000021 // Forward declaration.
22 class X86TargetMachine;
23
24 struct X86TargetAsmInfo : public TargetAsmInfo {
Dan Gohman677ccc62007-09-25 20:27:06 +000025 explicit X86TargetAsmInfo(const X86TargetMachine &TM);
Chris Lattner625bd052006-11-29 01:14:06 +000026
27 virtual bool ExpandInlineAsm(CallInst *CI) const;
Anton Korobeynikov8213f9c2008-02-29 22:09:08 +000028 virtual unsigned PreferredEHDataFormat(DwarfEncoding::Target Reason,
29 bool Global) const;
Anton Korobeynikovcee750f2008-02-27 23:33:50 +000030
Chris Lattner625bd052006-11-29 01:14:06 +000031 private:
Anton Korobeynikovcee750f2008-02-27 23:33:50 +000032 const X86TargetMachine* X86TM;
Chris Lattner625bd052006-11-29 01:14:06 +000033 bool LowerToBSwap(CallInst *CI) const;
Jim Laskey8e8de8f2006-09-07 22:05:02 +000034 };
Jim Laskey8e8de8f2006-09-07 22:05:02 +000035} // namespace llvm
36
37#endif