blob: 9a5d1423f647383b38369826b186e14a37227aa3 [file] [log] [blame]
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001//=====-- X86TargetAsmInfo.h - X86 asm properties -------------*- C++ -*--====//
2//
3// The LLVM Compiler Infrastructure
4//
Chris Lattner081ce942007-12-29 20:36:04 +00005// This file is distributed under the University of Illinois Open Source
6// License. See LICENSE.TXT for details.
Dan Gohmanf17a25c2007-07-18 16:29:46 +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 {
20
21 // Forward declaration.
22 class X86TargetMachine;
23
24 struct X86TargetAsmInfo : public TargetAsmInfo {
Dan Gohmancdd820b2007-09-25 20:27:06 +000025 explicit X86TargetAsmInfo(const X86TargetMachine &TM);
Dan Gohmanf17a25c2007-07-18 16:29:46 +000026
27 virtual bool ExpandInlineAsm(CallInst *CI) const;
Anton Korobeynikov65c0d872008-02-27 23:33:50 +000028 virtual unsigned PreferredEHDataFormat(unsigned Reason, bool Global) const;
29
Dan Gohmanf17a25c2007-07-18 16:29:46 +000030 private:
Anton Korobeynikov65c0d872008-02-27 23:33:50 +000031 const X86TargetMachine* X86TM;
Dan Gohmanf17a25c2007-07-18 16:29:46 +000032 bool LowerToBSwap(CallInst *CI) const;
33 };
34} // namespace llvm
35
36#endif