Move the getInlineAsmLength virtual method from TAI to TII, where
[oota-llvm.git] / lib / Target / ARM / ARMTargetAsmInfo.h
1 //=====-- ARMTargetAsmInfo.h - ARM 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 ARMTargetAsmInfo class.
11 //
12 //===----------------------------------------------------------------------===//
13
14 #ifndef ARMTARGETASMINFO_H
15 #define ARMTARGETASMINFO_H
16
17 #include "ARMTargetMachine.h"
18 #include "llvm/Target/TargetAsmInfo.h"
19 #include "llvm/Target/DarwinTargetAsmInfo.h"
20 #include "llvm/Support/Compiler.h"
21
22 namespace llvm {
23
24   extern const char *const arm_asm_table[];
25
26   template <class BaseTAI>
27   struct ARMTargetAsmInfo : public BaseTAI {
28     explicit ARMTargetAsmInfo(const ARMBaseTargetMachine &TM) {
29       BaseTAI::AsmTransCBE = arm_asm_table;
30
31       BaseTAI::AlignmentIsInBytes = false;
32       BaseTAI::Data64bitsDirective = 0;
33       BaseTAI::CommentString = "@";
34       BaseTAI::COMMDirectiveTakesAlignment = false;
35       BaseTAI::InlineAsmStart = "@ InlineAsm Start";
36       BaseTAI::InlineAsmEnd = "@ InlineAsm End";
37       BaseTAI::LCOMMDirective = "\t.lcomm\t";
38     }
39
40     const ARMSubtarget *Subtarget;
41   };
42
43   EXTERN_TEMPLATE_INSTANTIATION(class ARMTargetAsmInfo<TargetAsmInfo>);
44
45   struct ARMDarwinTargetAsmInfo : public ARMTargetAsmInfo<DarwinTargetAsmInfo> {
46     explicit ARMDarwinTargetAsmInfo(const ARMBaseTargetMachine &TM);
47   };
48
49   struct ARMELFTargetAsmInfo : public ARMTargetAsmInfo<TargetAsmInfo> {
50     explicit ARMELFTargetAsmInfo(const ARMBaseTargetMachine &TM);
51   };
52
53 } // namespace llvm
54
55 #endif