1 //=====-- ARMTargetAsmInfo.h - ARM asm properties -------------*- C++ -*--====//
3 // The LLVM Compiler Infrastructure
5 // This file is distributed under the University of Illinois Open Source
6 // License. See LICENSE.TXT for details.
8 //===----------------------------------------------------------------------===//
10 // This file contains the declaration of the ARMTargetAsmInfo class.
12 //===----------------------------------------------------------------------===//
14 #ifndef ARMTARGETASMINFO_H
15 #define ARMTARGETASMINFO_H
17 #include "ARMTargetMachine.h"
18 #include "llvm/Target/TargetAsmInfo.h"
19 #include "llvm/Target/DarwinTargetAsmInfo.h"
20 #include "llvm/Support/Compiler.h"
24 extern const char *const arm_asm_table[];
26 template <class BaseTAI>
27 struct ARMTargetAsmInfo : public BaseTAI {
28 explicit ARMTargetAsmInfo(const ARMBaseTargetMachine &TM) {
29 BaseTAI::AsmTransCBE = arm_asm_table;
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";
40 const ARMSubtarget *Subtarget;
42 virtual unsigned getInlineAsmLength(const char *Str) const;
45 EXTERN_TEMPLATE_INSTANTIATION(class ARMTargetAsmInfo<TargetAsmInfo>);
47 struct ARMDarwinTargetAsmInfo : public ARMTargetAsmInfo<DarwinTargetAsmInfo> {
48 explicit ARMDarwinTargetAsmInfo(const ARMBaseTargetMachine &TM);
51 struct ARMELFTargetAsmInfo : public ARMTargetAsmInfo<TargetAsmInfo> {
52 explicit ARMELFTargetAsmInfo(const ARMBaseTargetMachine &TM);