2006-09-07 22:05:02 +00:00
|
|
|
//=====-- ARMTargetAsmInfo.h - ARM asm properties -------------*- C++ -*--====//
|
|
|
|
//
|
|
|
|
// The LLVM Compiler Infrastructure
|
|
|
|
//
|
2007-12-29 20:36:04 +00:00
|
|
|
// This file is distributed under the University of Illinois Open Source
|
|
|
|
// License. See LICENSE.TXT for details.
|
2006-09-07 22:05:02 +00:00
|
|
|
//
|
|
|
|
//===----------------------------------------------------------------------===//
|
|
|
|
//
|
|
|
|
// This file contains the declaration of the ARMTargetAsmInfo class.
|
|
|
|
//
|
|
|
|
//===----------------------------------------------------------------------===//
|
|
|
|
|
2009-08-02 05:23:52 +00:00
|
|
|
#ifndef LLVM_ARMTARGETASMINFO_H
|
|
|
|
#define LLVM_ARMTARGETASMINFO_H
|
2006-09-07 22:05:02 +00:00
|
|
|
|
2008-08-07 09:54:23 +00:00
|
|
|
#include "llvm/Target/DarwinTargetAsmInfo.h"
|
2008-09-25 21:00:33 +00:00
|
|
|
#include "llvm/Support/Compiler.h"
|
2006-09-07 22:05:02 +00:00
|
|
|
|
2008-09-25 07:38:08 +00:00
|
|
|
namespace llvm {
|
2008-09-24 22:22:27 +00:00
|
|
|
|
2008-09-25 21:00:33 +00:00
|
|
|
extern const char *const arm_asm_table[];
|
|
|
|
|
|
|
|
template <class BaseTAI>
|
|
|
|
struct ARMTargetAsmInfo : public BaseTAI {
|
2009-08-02 05:23:52 +00:00
|
|
|
explicit ARMTargetAsmInfo() {
|
2008-09-25 21:00:33 +00:00
|
|
|
BaseTAI::AsmTransCBE = arm_asm_table;
|
2006-09-07 22:05:02 +00:00
|
|
|
|
2008-09-25 21:00:33 +00:00
|
|
|
BaseTAI::AlignmentIsInBytes = false;
|
|
|
|
BaseTAI::Data64bitsDirective = 0;
|
|
|
|
BaseTAI::CommentString = "@";
|
|
|
|
BaseTAI::COMMDirectiveTakesAlignment = false;
|
|
|
|
BaseTAI::InlineAsmStart = "@ InlineAsm Start";
|
|
|
|
BaseTAI::InlineAsmEnd = "@ InlineAsm End";
|
|
|
|
BaseTAI::LCOMMDirective = "\t.lcomm\t";
|
|
|
|
}
|
2006-09-07 22:05:02 +00:00
|
|
|
};
|
|
|
|
|
2009-08-02 05:23:52 +00:00
|
|
|
EXTERN_TEMPLATE_INSTANTIATION(class ARMTargetAsmInfo<DarwinTargetAsmInfo>);
|
2008-09-25 21:00:33 +00:00
|
|
|
EXTERN_TEMPLATE_INSTANTIATION(class ARMTargetAsmInfo<TargetAsmInfo>);
|
|
|
|
|
|
|
|
struct ARMDarwinTargetAsmInfo : public ARMTargetAsmInfo<DarwinTargetAsmInfo> {
|
2009-08-02 05:23:52 +00:00
|
|
|
explicit ARMDarwinTargetAsmInfo();
|
2008-08-07 09:54:23 +00:00
|
|
|
};
|
|
|
|
|
2009-08-02 04:27:24 +00:00
|
|
|
struct ARMELFTargetAsmInfo : public ARMTargetAsmInfo<TargetAsmInfo> {
|
2009-08-02 05:23:52 +00:00
|
|
|
explicit ARMELFTargetAsmInfo();
|
2008-08-07 09:54:23 +00:00
|
|
|
};
|
2006-09-07 22:05:02 +00:00
|
|
|
|
|
|
|
} // namespace llvm
|
|
|
|
|
|
|
|
#endif
|