//=====-- ARMTargetAsmInfo.h - ARM asm properties -------------*- C++ -*--====// // // The LLVM Compiler Infrastructure // // This file is distributed under the University of Illinois Open Source // License. See LICENSE.TXT for details. // //===----------------------------------------------------------------------===// // // This file contains the declaration of the ARMTargetAsmInfo class. // //===----------------------------------------------------------------------===// #ifndef ARMTARGETASMINFO_H #define ARMTARGETASMINFO_H #include "ARMTargetMachine.h" #include "llvm/Target/TargetAsmInfo.h" #include "llvm/Target/DarwinTargetAsmInfo.h" #include "llvm/Support/Compiler.h" namespace llvm { extern const char *const arm_asm_table[]; template struct ARMTargetAsmInfo : public BaseTAI { explicit ARMTargetAsmInfo(const ARMBaseTargetMachine &TM) { BaseTAI::AsmTransCBE = arm_asm_table; BaseTAI::AlignmentIsInBytes = false; BaseTAI::Data64bitsDirective = 0; BaseTAI::CommentString = "@"; BaseTAI::COMMDirectiveTakesAlignment = false; BaseTAI::InlineAsmStart = "@ InlineAsm Start"; BaseTAI::InlineAsmEnd = "@ InlineAsm End"; BaseTAI::LCOMMDirective = "\t.lcomm\t"; } const ARMSubtarget *Subtarget; virtual unsigned getInlineAsmLength(const char *Str) const; }; EXTERN_TEMPLATE_INSTANTIATION(class ARMTargetAsmInfo); struct ARMDarwinTargetAsmInfo : public ARMTargetAsmInfo { explicit ARMDarwinTargetAsmInfo(const ARMBaseTargetMachine &TM); }; struct ARMELFTargetAsmInfo : public ARMTargetAsmInfo { explicit ARMELFTargetAsmInfo(const ARMBaseTargetMachine &TM); }; } // namespace llvm #endif