Fix part 1 of pr4682. PICADD is a 16-bit instruction even in thumb2 mode.
[llvm/avr.git] / lib / Target / X86 / X86TargetAsmInfo.h
blob34599e5a92d238d2a17176d7c2e7aefe50d529d8
1 //=====-- X86TargetAsmInfo.h - X86 asm properties -------------*- C++ -*--====//
2 //
3 // The LLVM Compiler Infrastructure
4 //
5 // This file is distributed under the University of Illinois Open Source
6 // License. See LICENSE.TXT for details.
7 //
8 //===----------------------------------------------------------------------===//
9 //
10 // This file contains the declaration of the X86TargetAsmInfo class.
12 //===----------------------------------------------------------------------===//
14 #ifndef X86TARGETASMINFO_H
15 #define X86TARGETASMINFO_H
17 #include "X86TargetMachine.h"
18 #include "llvm/Target/TargetAsmInfo.h"
19 #include "llvm/Target/COFFTargetAsmInfo.h"
20 #include "llvm/Target/DarwinTargetAsmInfo.h"
21 #include "llvm/Support/Compiler.h"
23 namespace llvm {
25 extern const char *const x86_asm_table[];
27 template <class BaseTAI>
28 struct X86TargetAsmInfo : public BaseTAI {
29 explicit X86TargetAsmInfo(const TargetMachine &TM) {
30 BaseTAI::AsmTransCBE = x86_asm_table;
31 BaseTAI::AssemblerDialect =TM.getSubtarget<X86Subtarget>().getAsmFlavor();
35 EXTERN_TEMPLATE_INSTANTIATION(class X86TargetAsmInfo<TargetAsmInfo>);
37 struct X86DarwinTargetAsmInfo : public X86TargetAsmInfo<DarwinTargetAsmInfo> {
38 explicit X86DarwinTargetAsmInfo(const X86TargetMachine &TM);
41 struct X86ELFTargetAsmInfo : public X86TargetAsmInfo<TargetAsmInfo> {
42 explicit X86ELFTargetAsmInfo(const X86TargetMachine &TM);
45 typedef X86TargetAsmInfo<COFFTargetAsmInfo> X86COFFTargetAsmInfo;
47 struct X86WinTargetAsmInfo : public X86TargetAsmInfo<TargetAsmInfo> {
48 explicit X86WinTargetAsmInfo(const X86TargetMachine &TM);
51 } // namespace llvm
53 #endif