ORN does not require (and can not have) the ".w" suffix. "Orthogonality" is a dirty...
[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/ELFTargetAsmInfo.h"
20 #include "llvm/Target/DarwinTargetAsmInfo.h"
21 #include "llvm/Support/Compiler.h"
22
23 namespace llvm {
24
25   extern const char *const arm_asm_table[];
26
27   template <class BaseTAI>
28   struct ARMTargetAsmInfo : public BaseTAI {
29     explicit ARMTargetAsmInfo(const ARMBaseTargetMachine &TM) : BaseTAI(TM) {
30       BaseTAI::AsmTransCBE = arm_asm_table;
31
32       BaseTAI::AlignmentIsInBytes = false;
33       BaseTAI::Data64bitsDirective = 0;
34       BaseTAI::CommentString = "@";
35       BaseTAI::ConstantPoolSection = "\t.text\n";
36       BaseTAI::COMMDirectiveTakesAlignment = false;
37       BaseTAI::InlineAsmStart = "@ InlineAsm Start";
38       BaseTAI::InlineAsmEnd = "@ InlineAsm End";
39       BaseTAI::LCOMMDirective = "\t.lcomm\t";
40     }
41
42     const ARMSubtarget *Subtarget;
43
44     virtual unsigned getInlineAsmLength(const char *Str) const;
45     unsigned countArguments(const char *p) const;
46     unsigned countString(const char *p) const;
47   };
48
49   EXTERN_TEMPLATE_INSTANTIATION(class ARMTargetAsmInfo<TargetAsmInfo>);
50
51   struct ARMDarwinTargetAsmInfo : public ARMTargetAsmInfo<DarwinTargetAsmInfo> {
52     explicit ARMDarwinTargetAsmInfo(const ARMBaseTargetMachine &TM);
53   };
54
55   struct ARMELFTargetAsmInfo : public ARMTargetAsmInfo<ELFTargetAsmInfo> {
56     explicit ARMELFTargetAsmInfo(const ARMBaseTargetMachine &TM);
57   };
58
59 } // namespace llvm
60
61 #endif