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.
|
|
|
|
//
|
|
|
|
//===----------------------------------------------------------------------===//
|
|
|
|
|
|
|
|
#ifndef ARMTARGETASMINFO_H
|
|
|
|
#define ARMTARGETASMINFO_H
|
|
|
|
|
2008-09-25 21:00:33 +00:00
|
|
|
#include "ARMTargetMachine.h"
|
2006-09-07 22:05:02 +00:00
|
|
|
#include "llvm/Target/TargetAsmInfo.h"
|
2008-08-07 09:54:23 +00:00
|
|
|
#include "llvm/Target/ELFTargetAsmInfo.h"
|
|
|
|
#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-06-26 21:28:53 +00:00
|
|
|
explicit ARMTargetAsmInfo(const ARMBaseTargetMachine &TM) : BaseTAI(TM) {
|
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::ConstantPoolSection = "\t.text\n";
|
|
|
|
BaseTAI::COMMDirectiveTakesAlignment = false;
|
|
|
|
BaseTAI::InlineAsmStart = "@ InlineAsm Start";
|
|
|
|
BaseTAI::InlineAsmEnd = "@ InlineAsm End";
|
|
|
|
BaseTAI::LCOMMDirective = "\t.lcomm\t";
|
|
|
|
}
|
2007-04-23 20:04:35 +00:00
|
|
|
|
2007-05-02 01:02:40 +00:00
|
|
|
const ARMSubtarget *Subtarget;
|
2007-04-29 19:17:45 +00:00
|
|
|
|
|
|
|
virtual unsigned getInlineAsmLength(const char *Str) const;
|
2007-05-02 01:02:40 +00:00
|
|
|
unsigned countArguments(const char *p) const;
|
|
|
|
unsigned countString(const char *p) const;
|
2006-09-07 22:05:02 +00:00
|
|
|
};
|
|
|
|
|
2008-09-25 21:00:33 +00:00
|
|
|
typedef ARMTargetAsmInfo<TargetAsmInfo> ARMGenericTargetAsmInfo;
|
|
|
|
|
|
|
|
EXTERN_TEMPLATE_INSTANTIATION(class ARMTargetAsmInfo<TargetAsmInfo>);
|
|
|
|
|
|
|
|
struct ARMDarwinTargetAsmInfo : public ARMTargetAsmInfo<DarwinTargetAsmInfo> {
|
2009-06-26 21:28:53 +00:00
|
|
|
explicit ARMDarwinTargetAsmInfo(const ARMBaseTargetMachine &TM);
|
2008-08-07 09:54:23 +00:00
|
|
|
};
|
|
|
|
|
2008-09-25 21:00:33 +00:00
|
|
|
struct ARMELFTargetAsmInfo : public ARMTargetAsmInfo<ELFTargetAsmInfo> {
|
2009-06-26 21:28:53 +00:00
|
|
|
explicit ARMELFTargetAsmInfo(const ARMBaseTargetMachine &TM);
|
2008-08-07 09:54:23 +00:00
|
|
|
};
|
2006-09-07 22:05:02 +00:00
|
|
|
|
|
|
|
} // namespace llvm
|
|
|
|
|
|
|
|
#endif
|